Joshua Oreman
2dfe4c414a
[crypto] Make AES context size and algorithm structure externally available
This is required to support modes of AES beyond cipher-block chaining.
Signed-off-by: Marty Connor <mdc@etherboot.org >
пре 15 година
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.
пре 15 година
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.
пре 15 година
Michael Brown
e950dc04ba
[crypto] Add our own general-purpose cipher-block chaining routines
пре 15 година
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.
пре 15 година
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.
пре 15 година
Michael Brown
991f907d5b
[crypto] Rename aes_algorithm to aes_cbc_algorithm
пре 15 година
Michael Brown
9aa61ad5a2
Add per-file error identifiers
пре 17 година
Michael Brown
1ae70e12e5
Added wrapper for AXTLS AES code
пре 18 година