[crypto] Add AES key-wrap mode (RFC 3394)

The unwrapping half is used by WPA2 code; the wrapping half is currently
unused.

Signed-off-by: Marty Connor <mdc@etherboot.org>
This commit is contained in:
Joshua Oreman
2009-07-03 16:07:08 -07:00
committed by Marty Connor
parent 2dfe4c414a
commit 6c6db8647b
2 changed files with 126 additions and 0 deletions

View File

@@ -24,4 +24,7 @@ struct aes_context {
extern struct cipher_algorithm aes_algorithm;
extern struct cipher_algorithm aes_cbc_algorithm;
int aes_wrap ( const void *kek, const void *src, void *dest, int nblk );
int aes_unwrap ( const void *kek, const void *src, void *dest, int nblk );
#endif /* _GPXE_AES_H */