Michael Brown
c44a193d0d
[legal] Add a selection of FILE_LICENCE declarations
Add FILE_LICENCE declarations to almost all files that make up the
various standard builds of gPXE.
il y a 15 ans
Michael Brown
1c67623e37
[build] Enable building with the Intel C compiler (icc)
il y a 15 ans
Michael Brown
9937bf13c9
[crypto] Allow creation of arbitrary CBC cipher algorithms using CBC_CIPHER()
Given any block cipher, a corresponding CBC mode of behaviour for the
cipher can be created using the CBC_CIPHER() macro.
il y a 15 ans
Michael Brown
e950dc04ba
[crypto] Add our own general-purpose cipher-block chaining routines
il y a 15 ans
Michael Brown
b4d3d686cc
[crypto] Change cipher_{en,de}crypt() to void functions
It is a programming error, not a runtime error, if we attempt to use
block ciphers with an incorrect blocksize, so use an assert() rather
than an error status return.
il y a 15 ans
Michael Brown
a3219b24a8
[crypto] Split crypto_algorithm into {digest,cipher,pubkey}_algorithm
The various types of cryptographic algorithm are fundamentally
different, and it was probably a mistake to try to handle them via a
single common type.
pubkey_algorithm is a placeholder type for now.
il y a 15 ans
Michael Brown
5de8305feb
[crypto] Move AES_convert_key() hack into axtls_aes.c
Although the nature of the hack is essentially unchanged, this allows
us to remove the hardcoded assumption in tls.c that the RX cipher is
AES.
il y a 15 ans
Michael Brown
991f907d5b
[crypto] Rename aes_algorithm to aes_cbc_algorithm
il y a 15 ans
Michael Brown
8e960eb67c
[tls] Use our own ASN.1 routines for certificate parsing
Use our own, more robust, ASN.1 parsing routines to extract the RSA
public key from a server certificate. Remove the now-unused AXTLS
ASN.1 parser.
il y a 15 ans
Michael Brown
5a99c586cf
[crypto] Remove unused files
il y a 15 ans
Michael Brown
521549d900
[crypto] Rename <gpxe/bitops.h> to <gpxe/rotate.h>
il y a 16 ans
Michael Brown
9c71949d1f
[crypto] Remove spurious #include "config.h"
il y a 16 ans
Michael Brown
5d4839b577
[iSCSI] Add support for mutual CHAP
Allow initiator to verify target authentication using CHAP.
il y a 16 ans
Michael Brown
1949641d10
Fix compiler warnings that appear only on OpenBSD.
il y a 17 ans
Holger Lubitz
68455adf37
use malloc attribute
il y a 17 ans
Holger Lubitz
dea89e8d62
use malloc attribute
il y a 17 ans
Holger Lubitz
7815474495
Revert "malloc attribute changes"
wasn't meant for my local "master" branch ;)
This reverts commit 373022108b .
il y a 17 ans
Holger Lubitz
373022108b
malloc attribute changes
il y a 17 ans
Michael Brown
74ad5014c5
Inhibit compiler warning
il y a 17 ans
Michael Brown
9a9f46ff58
Upgrade AXTLS import to version 1.1.5-a
il y a 17 ans
Michael Brown
218314e712
Added HMAC code from TLS project
il y a 17 ans
Holger Lubitz
29134e35dc
make md5_steps static
il y a 17 ans
Holger Lubitz
42910594f7
disable AES_convert_key by #if 0'ing it out (suggested by mcb30)
il y a 17 ans
Holger Lubitz
426c2c150d
disable AES_convert_key by #if 0'ing it out (suggested by mcb30)
il y a 17 ans
Michael Brown
9aa61ad5a2
Add per-file error identifiers
il y a 17 ans
Marty Connor
c77704cb60
Warnings purge: src/{crypto,hci,net}
il y a 17 ans
Michael Brown
ff84a66c35
Conflicts with native asn1.c
il y a 17 ans
Michael Brown
95206577a7
Trivial ASN.1 decoding functions.
il y a 17 ans
Michael Brown
e01aadd5a7
Required for public key extraction
il y a 18 ans
Michael Brown
0050378f51
SHA1_DIGEST_SIZE also available as a static constant
il y a 18 ans
Michael Brown
cc8f9e4b7f
Make context sizes available for statically-allocated structures
il y a 18 ans
Michael Brown
d467552367
Vanilla copies from axtls
il y a 18 ans
Michael Brown
5c3837e0ed
Quick hacks to get it working
il y a 18 ans
Michael Brown
a01374b5cd
Add dummy setiv method
il y a 18 ans
Michael Brown
6c2f0e1bf4
Original axtls RSA code
il y a 18 ans
Michael Brown
1ae70e12e5
Added wrapper for AXTLS AES code
il y a 18 ans
Michael Brown
c1aa1d0764
Add wrapper around axtls' sha1 code
il y a 18 ans
Michael Brown
869f9bcb23
Adding missing include
il y a 18 ans
Michael Brown
413c554b34
We need this, I think
il y a 18 ans
Michael Brown
2e0548e17e
Force inlining
il y a 18 ans
Michael Brown
1fbd6f7d76
...but not when it's being used as a digest algorithm...
il y a 18 ans
Michael Brown
a502fcda45
The null crypto algorithm should at least copy data...
il y a 18 ans
Michael Brown
a008f9e85b
Add null crypto algorithm
il y a 18 ans
Michael Brown
0e996b81cf
Added blocksize for the benefit of HMAC code
il y a 18 ans
Michael Brown
db2fde474e
Generalise digest_algorithm to crypto_algorithm.
il y a 18 ans
Michael Brown
89c3c67c51
Should be correct for building RSA
il y a 18 ans
Michael Brown
3bb7c19779
Allow MatrixSSL code to compile inside gPXE
il y a 18 ans
Michael Brown
9542c016cd
Add aes.c and required headers from axtls tree
il y a 18 ans
Michael Brown
7b8859ad15
Enable the axtls code to at least build within gPXE
il y a 18 ans
Michael Brown
7993488a68
#if 0 out for now
il y a 18 ans