BEECRYPTAPI int aesSetCTR(aesParam *ap, const byte *nivz, size_t counter)
This function sets the CTR mode counter.
BEECRYPTAPI uint32_t * aesFeedback(aesParam *ap)
const BEECRYPTAPI blockCipher aes
Holds the full API description of the AES algorithm.
BEECRYPTAPI int aesEncrypt(aesParam *ap, uint32_t *dst, const uint32_t *src)
This function performs the raw AES encryption; it encrypts one block of 128 bits.
BEECRYPTAPI int aesSetIV(aesParam *ap, const byte *iv)
This function sets the Initialization Vector.
BEECRYPTAPI int aesDecrypt(aesParam *ap, uint32_t *dst, const uint32_t *src)
This function performs the raw AES decryption; it decrypts one block of 128 bits.
BEECRYPTAPI int aesSetup(aesParam *ap, const byte *key, size_t keybits, cipherOperation op)
This function performs the cipher's key expansion.
AES block cipher, assembler-optimized routines, headers.
#define BEECRYPTAPI
Definition api.h:52
cipherOperation
Specifies whether to perform encryption or decryption.
Definition beecrypt.h:557
Holds all the parameters necessary for the AES cipher.
Definition aes.h:40
uint32_t fdback[4]
Buffer to be used by block chaining or feedback modes.
Definition aes.h:52
uint32_t k[64]
Holds the key expansion.
Definition aes.h:44
uint32_t nr
Number of rounds to be used in encryption/decryption.
Definition aes.h:48
Holds information and pointers to code specific to each cipher.
Definition beecrypt.h:648