Go to the source code of this file.
Functions | |
int | aes_128_eax_decrypt (const u8 *key, const u8 *nonce, size_t nonce_len, const u8 *hdr, size_t hdr_len, u8 *data, size_t data_len, const u8 *tag) |
int | aes_128_eax_encrypt (const u8 *key, const u8 *nonce, size_t nonce_len, const u8 *hdr, size_t hdr_len, u8 *data, size_t data_len, u8 *tag) |
int aes_128_eax_decrypt | ( | const u8 * | key, |
const u8 * | nonce, | ||
size_t | nonce_len, | ||
const u8 * | hdr, | ||
size_t | hdr_len, | ||
u8 * | data, | ||
size_t | data_len, | ||
const u8 * | tag | ||
) |
aes_128_eax_decrypt - AES-128 EAX mode decryption : Key for decryption (16 bytes) : Nonce for counter mode : Nonce length in bytes : Header data to be authenticity protected : Length of the header data bytes : Data to encrypt in-place : Length of data in bytes : 16-byte tag value Returns: 0 on success, -1 on failure, -2 if tag does not match
int aes_128_eax_encrypt | ( | const u8 * | key, |
const u8 * | nonce, | ||
size_t | nonce_len, | ||
const u8 * | hdr, | ||
size_t | hdr_len, | ||
u8 * | data, | ||
size_t | data_len, | ||
u8 * | tag | ||
) |
aes_128_eax_encrypt - AES-128 EAX mode encryption : Key for encryption (16 bytes) : Nonce for counter mode : Nonce length in bytes : Header data to be authenticity protected : Length of the header data bytes : Data to encrypt in-place : Length of data in bytes : 16-byte tag value Returns: 0 on success, -1 on failure