2
0
mirror of https://github.com/xcat2/xNBA.git synced 2024-12-15 07:41:45 +00:00
Commit Graph

49 Commits

Author SHA1 Message Date
Holger Lubitz
68455adf37 use malloc attribute 2007-08-20 20:28:47 +02:00
Holger Lubitz
dea89e8d62 use malloc attribute 2007-08-20 20:28:23 +02:00
Michael Brown
74ad5014c5 Inhibit compiler warning 2007-07-30 02:58:22 +01:00
Michael Brown
9a9f46ff58 Upgrade AXTLS import to version 1.1.5-a 2007-07-30 02:48:00 +01:00
Michael Brown
218314e712 Added HMAC code from TLS project 2007-07-29 03:09:00 +01:00
Holger Lubitz
29134e35dc make md5_steps static 2007-07-27 21:36:16 +02:00
Holger Lubitz
42910594f7 disable AES_convert_key by #if 0'ing it out (suggested by mcb30) 2007-07-27 21:33:53 +02:00
Holger Lubitz
426c2c150d disable AES_convert_key by #if 0'ing it out (suggested by mcb30) 2007-07-27 21:31:11 +02:00
Michael Brown
9aa61ad5a2 Add per-file error identifiers 2007-07-24 17:11:31 +01:00
Marty Connor
c77704cb60 Warnings purge: src/{crypto,hci,net} 2007-07-03 13:20:22 -04:00
Michael Brown
ff84a66c35 Conflicts with native asn1.c 2007-06-08 12:37:35 +00:00
Michael Brown
95206577a7 Trivial ASN.1 decoding functions. 2007-04-21 18:53:26 +00:00
Michael Brown
e01aadd5a7 Required for public key extraction 2007-02-01 09:13:27 +00:00
Michael Brown
0050378f51 SHA1_DIGEST_SIZE also available as a static constant 2007-02-01 06:36:45 +00:00
Michael Brown
cc8f9e4b7f Make context sizes available for statically-allocated structures 2007-02-01 05:48:56 +00:00
Michael Brown
d467552367 Vanilla copies from axtls 2007-02-01 04:20:12 +00:00
Michael Brown
5c3837e0ed Quick hacks to get it working 2007-02-01 02:20:35 +00:00
Michael Brown
a01374b5cd Add dummy setiv method 2007-02-01 02:19:16 +00:00
Michael Brown
6c2f0e1bf4 Original axtls RSA code 2007-01-31 22:18:29 +00:00
Michael Brown
1ae70e12e5 Added wrapper for AXTLS AES code 2007-01-31 18:09:20 +00:00
Michael Brown
c1aa1d0764 Add wrapper around axtls' sha1 code 2007-01-31 12:24:01 +00:00
Michael Brown
869f9bcb23 Adding missing include 2007-01-31 12:19:50 +00:00
Michael Brown
413c554b34 We need this, I think 2007-01-31 03:50:49 +00:00
Michael Brown
2e0548e17e Force inlining 2007-01-31 03:50:31 +00:00
Michael Brown
1fbd6f7d76 ...but not when it's being used as a digest algorithm... 2007-01-31 03:42:47 +00:00
Michael Brown
a502fcda45 The null crypto algorithm should at least copy data... 2007-01-31 03:42:07 +00:00
Michael Brown
a008f9e85b Add null crypto algorithm 2007-01-31 03:04:31 +00:00
Michael Brown
0e996b81cf Added blocksize for the benefit of HMAC code 2007-01-30 22:54:43 +00:00
Michael Brown
db2fde474e Generalise digest_algorithm to crypto_algorithm. 2007-01-30 14:55:17 +00:00
Michael Brown
89c3c67c51 Should be correct for building RSA 2007-01-28 19:50:43 +00:00
Michael Brown
3bb7c19779 Allow MatrixSSL code to compile inside gPXE 2007-01-26 03:50:17 +00:00
Michael Brown
9542c016cd Add aes.c and required headers from axtls tree 2007-01-26 01:59:37 +00:00
Michael Brown
7b8859ad15 Enable the axtls code to at least build within gPXE 2007-01-26 01:55:34 +00:00
Michael Brown
7993488a68 #if 0 out for now 2007-01-26 01:42:16 +00:00
Michael Brown
a646e38f03 Use stdlib.h for malloc() instead of malloc.h. 2006-12-19 23:42:46 +00:00
Michael Brown
fdaddd969a Added "name" field to digest algorithms 2006-11-21 16:14:50 +00:00
Michael Brown
d37f82509f Added debug statements.
Don't crash when called on an uninitialised chap structure; this
allows us to avoid extra checks within iscsi.c to make sure that we
receive the CHAP_XXX keys in a sensible order.
2006-11-21 16:14:17 +00:00
Michael Brown
a9415d3da2 Reduce from 157 to 123 bytes 2006-11-21 16:01:12 +00:00
Michael Brown
c5428303e4 Added generic CHAP layer, independent of iSCSI 2006-11-21 13:26:59 +00:00
Michael Brown
57d539aab0 Made it temporarily possible to call MD5 routines directly from external
code, rather than going through the digest layer.

Removed a spurious line of constants.
2006-11-15 04:22:22 +00:00
Michael Brown
88e38fa148 We don't actually have a stdio.h header file. Our printf() functions are
defined in vsprintf.h.  (This may change, since vsprintf.h is a
non-standard name, but for now it's the one to use.)

There should be no need to include vsprintf.h just for DBG() statements,
since include/compiler.h forces it in for a debug build anyway.
2006-09-27 10:58:14 +00:00
Marty Connor
6ac78f6aff added stdio.h to includes for DBG compilation 2006-09-27 05:57:06 +00:00
Michael Brown
4ef1ef0ee4 Restored the le32_to_cpus() and cpu_to_le32s() calls 2006-09-11 17:54:50 +00:00
Michael Brown
013f8c119a Tidied up. 2006-09-11 17:45:51 +00:00
Michael Brown
2eed0bb8e5 Reduced size from 2087 bytes to 1056 bytes 2006-09-11 17:18:06 +00:00
Michael Brown
48bdde5d7b Taken from Linux's md5.c. This implementation is not very
size-efficient, and will probably be rewritten.

The md5.c from MatrixSSL is too ugly to consider importing.
2006-09-11 16:30:36 +00:00
Michael Brown
7ab29b0bfe This file breaks "make blib"; please find a way to avoid doing this. 2006-07-17 19:19:17 +00:00
Derek Pryor
e71098a652 The first packet (ClientHello Handshake) can be constructed and is accepted
by SSL servers. Framework.c allows me to test the library against a given
https server.
2006-07-17 16:38:20 +00:00
Derek Pryor
47be47bf17 Adding SSL Constructs header file. (First version) 2006-07-10 13:26:20 +00:00