AES-128 EAX. More...
#include "includes.h"
#include "common.h"
#include "aes.h"
#include "aes_wrap.h"
Go to the source code of this file.
Functions | |
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 mode encryption. | |
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 mode decryption. |
AES-128 EAX.
This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License version 2 as published by the Free Software Foundation.
Alternatively, this software may be distributed under the terms of BSD license.
See README and COPYING for more details.
Definition in file aes-eax.c.
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 mode decryption.
key | Key for decryption (16 bytes) | |
nonce | Nonce for counter mode | |
nonce_len | Nonce length in bytes | |
hdr | Header data to be authenticity protected | |
hdr_len | Length of the header data bytes | |
data | Data to encrypt in-place | |
data_len | Length of data in bytes | |
tag | 16-byte tag value |
Definition at line 101 of file aes-eax.c.
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 mode encryption.
key | Key for encryption (16 bytes) | |
nonce | Nonce for counter mode | |
nonce_len | Nonce length in bytes | |
hdr | Header data to be authenticity protected | |
hdr_len | Length of the header data bytes | |
data | Data to encrypt in-place | |
data_len | Length of data in bytes | |
tag | 16-byte tag value |
Definition at line 36 of file aes-eax.c.