diff options
| author | Joshua Oreman | 2009-07-04 01:07:08 +0200 |
|---|---|---|
| committer | Marty Connor | 2010-01-05 15:06:15 +0100 |
| commit | 6c6db8647b07dd08101ef7d5950eb39cb5eb451a (patch) | |
| tree | 95a45f98755125b33ca533258fc6ed5a07373d57 /src/include | |
| parent | [crypto] Make AES context size and algorithm structure externally available (diff) | |
| download | ipxe-6c6db8647b07dd08101ef7d5950eb39cb5eb451a.tar.gz ipxe-6c6db8647b07dd08101ef7d5950eb39cb5eb451a.tar.xz ipxe-6c6db8647b07dd08101ef7d5950eb39cb5eb451a.zip | |
[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>
Diffstat (limited to 'src/include')
| -rw-r--r-- | src/include/gpxe/aes.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/include/gpxe/aes.h b/src/include/gpxe/aes.h index 9e0e34a9d..fc1694b3b 100644 --- a/src/include/gpxe/aes.h +++ b/src/include/gpxe/aes.h @@ -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 */ |
