From 6c6db8647b07dd08101ef7d5950eb39cb5eb451a Mon Sep 17 00:00:00 2001 From: Joshua Oreman Date: Fri, 3 Jul 2009 16:07:08 -0700 Subject: [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 --- src/include/gpxe/aes.h | 3 +++ 1 file changed, 3 insertions(+) (limited to 'src/include') 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 */ -- cgit v1.2.3-55-g7522