#include "includes.h"
#include "common.h"
#include "aes_wrap.h"
#include "crypto.h"
#include "aes.c"
Include dependency graph for aes_wrap.c:
Go to the source code of this file.
Defines | |
#define | BLOCK_SIZE 16 |
Functions | |
int | aes_wrap (const u8 *kek, int n, const u8 *plain, u8 *cipher) |
Wrap keys with AES Key Wrap Algorithm (128-bit KEK) (RFC3394). | |
int | aes_unwrap (const u8 *kek, int n, const u8 *cipher, u8 *plain) |
Unwrap key with AES Key Wrap Algorithm (128-bit KEK) (RFC3394). | |
int | omac1_aes_128 (const u8 *key, const u8 *data, size_t data_len, u8 *mac) |
One-Key CBC MAC (OMAC1) hash with AES-128. | |
int | aes_128_encrypt_block (const u8 *key, const u8 *in, u8 *out) |
Perform one AES 128-bit block operation. | |
int | aes_128_ctr_encrypt (const u8 *key, const u8 *nonce, u8 *data, size_t data_len) |
AES-128 CTR mode encryption. | |
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. | |
int | aes_128_cbc_encrypt (const u8 *key, const u8 *iv, u8 *data, size_t data_len) |
AES-128 CBC encryption. | |
int | aes_128_cbc_decrypt (const u8 *key, const u8 *iv, u8 *data, size_t data_len) |
AES-128 CBC decryption. |
Alternatively, this software may be distributed under the terms of BSD license.
See README and COPYING for more details.
Definition in file aes_wrap.c.
|
AES-128 CBC decryption.
Definition at line 457 of file aes_wrap.c. Here is the call graph for this function: |
|
AES-128 CBC encryption.
Definition at line 423 of file aes_wrap.c. Here is the call graph for this function: |
|
AES-128 CTR mode encryption.
Definition at line 253 of file aes_wrap.c. Here is the call graph for this function: |
|
AES-128 EAX mode decryption.
Definition at line 362 of file aes_wrap.c. Here is the call graph for this function: |
|
AES-128 EAX mode encryption.
Definition at line 304 of file aes_wrap.c. Here is the call graph for this function: |
|
Perform one AES 128-bit block operation.
Definition at line 230 of file aes_wrap.c. Here is the call graph for this function: |
|
Unwrap key with AES Key Wrap Algorithm (128-bit KEK) (RFC3394).
Definition at line 104 of file aes_wrap.c. Here is the call graph for this function: |
|
Wrap keys with AES Key Wrap Algorithm (128-bit KEK) (RFC3394).
Definition at line 45 of file aes_wrap.c. Here is the call graph for this function: |
|
One-Key CBC MAC (OMAC1) hash with AES-128.
Definition at line 181 of file aes_wrap.c. Here is the call graph for this function: |