mirror of
https://github.com/xcat2/xNBA.git
synced 2026-05-13 01:44:11 +00:00
2dfe4c414a
This is required to support modes of AES beyond cipher-block chaining. Signed-off-by: Marty Connor <mdc@etherboot.org>
28 lines
540 B
C
28 lines
540 B
C
#ifndef _GPXE_AES_H
|
|
#define _GPXE_AES_H
|
|
|
|
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 */
|