summaryrefslogtreecommitdiffstats
path: root/src/include/gpxe/aes.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/include/gpxe/aes.h')
-rw-r--r--src/include/gpxe/aes.h17
1 files changed, 17 insertions, 0 deletions
diff --git a/src/include/gpxe/aes.h b/src/include/gpxe/aes.h
index bdc32bd6..9e0e34a9 100644
--- a/src/include/gpxe/aes.h
+++ b/src/include/gpxe/aes.h
@@ -5,6 +5,23 @@ FILE_LICENCE ( GPL2_OR_LATER );
struct cipher_algorithm;
+/** Basic AES blocksize */
+#define AES_BLOCKSIZE 16
+
+#include "crypto/axtls/crypto.h"
+
+/** AES context */
+struct aes_context {
+ /** AES context for AXTLS */
+ AES_CTX axtls_ctx;
+ /** Cipher is being used for decrypting */
+ int decrypting;
+};
+
+/** AES context size */
+#define AES_CTX_SIZE sizeof ( struct aes_context )
+
+extern struct cipher_algorithm aes_algorithm;
extern struct cipher_algorithm aes_cbc_algorithm;
#endif /* _GPXE_AES_H */