summaryrefslogtreecommitdiffstats
path: root/src/include
diff options
context:
space:
mode:
authorJoshua Oreman2009-07-04 01:07:08 +0200
committerMarty Connor2010-01-05 15:06:15 +0100
commit6c6db8647b07dd08101ef7d5950eb39cb5eb451a (patch)
tree95a45f98755125b33ca533258fc6ed5a07373d57 /src/include
parent[crypto] Make AES context size and algorithm structure externally available (diff)
downloadipxe-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.h3
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 */