4 FILE_LICENCE ( GPL2_OR_LATER );
6 struct cipher_algorithm;
8 /** Basic AES blocksize */
9 #define AES_BLOCKSIZE 16
11 #include "crypto/axtls/crypto.h"
15 /** AES context for AXTLS */
17 /** Cipher is being used for decrypting */
21 /** AES context size */
22 #define AES_CTX_SIZE sizeof ( struct aes_context )
25 extern void axtls_aes_encrypt ( const AES_CTX *ctx, uint32_t *data );
26 extern void axtls_aes_decrypt ( const AES_CTX *ctx, uint32_t *data );
28 extern struct cipher_algorithm aes_algorithm;
29 extern struct cipher_algorithm aes_cbc_algorithm;
31 int aes_wrap ( const void *kek, const void *src, void *dest, int nblk );
32 int aes_unwrap ( const void *kek, const void *src, void *dest, int nblk );
34 #endif /* _IPXE_AES_H */