17#define AES_BLOCKSIZE 16
20#define AES_MAX_ROUNDS 15
47#define AES_CTX_SIZE ( sizeof ( struct aes_context ) + AES_BLOCKSIZE - 1 )
struct golan_eq_context ctx
struct cipher_algorithm aes_algorithm
Basic AES algorithm.
void aes_accelerate(void)
Enable hardware acceleration (if supported).
if(len >=6 *4) __asm__ __volatile__("movsl" if(len >=5 *4) __asm__ __volatile__("movsl" if(len >=4 *4) __asm__ __volatile__("movsl" if(len >=3 *4) __asm__ __volatile__("movsl" if(len >=2 *4) __asm__ __volatile__("movsl" if(len >=1 *4) __asm__ __volatile__("movsl" if((len % 4) >=2) __asm__ __volatile__("movsw" if((len % 2) >=1) __asm__ __volatile__("movsb" retur dest)
#define FILE_LICENCE(_licence)
Declare a particular licence as applying to a file.
#define FILE_SECBOOT(_status)
Declare a file's UEFI Secure Boot permission status.
int aes_is_accelerated(void)
Check if hardware acceleration is currently enabled (for testing).
#define AES_MAX_ROUNDS
Maximum number of AES rounds.
struct cipher_algorithm aes_ecb_algorithm
struct cipher_algorithm aes_cbc_algorithm
int aes_wrap(const void *kek, const void *src, void *dest, int nblk)
Wrap a key or other data using AES Key Wrap (RFC 3394).
void aes_decelerate(void)
Disable hardware acceleration (for testing).
static struct aes_context * aes_context(void *ctx)
Align AES context.
struct cipher_algorithm aes_gcm_algorithm
int aes_unwrap(const void *kek, const void *src, void *dest, int nblk)
Unwrap a key or other data using AES Key Wrap (RFC 3394).
#define AES_BLOCKSIZE
AES blocksize.
struct aes_round_keys decrypt
Decryption keys.
uint8_t rounds
Number of rounds.
struct aes_round_keys encrypt
Encryption keys.
union aes_matrix key[AES_MAX_ROUNDS]
Round keys.
uint32_t column[4]
Viewed as an array of four-byte columns.
u8 kek[WPA_KEK_LEN]
EAPOL-Key Key Encryption Key (KEK).