AES-128 CBC. More...
#include "includes.h"
#include "common.h"
#include "aes.h"
Go to the source code of this file.
Functions | |
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. |
AES-128 CBC.
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-cbc.c.
int aes_128_cbc_decrypt | ( | const u8 * | key, | |
const u8 * | iv, | |||
u8 * | data, | |||
size_t | data_len | |||
) |
AES-128 CBC decryption.
key | Decryption key | |
iv | Decryption IV for CBC mode (16 bytes) | |
data | Data to decrypt in-place | |
data_len | Length of data in bytes (must be divisible by 16) |
Definition at line 65 of file aes-cbc.c.
int aes_128_cbc_encrypt | ( | const u8 * | key, | |
const u8 * | iv, | |||
u8 * | data, | |||
size_t | data_len | |||
) |
AES-128 CBC encryption.
key | Encryption key | |
iv | Encryption IV for CBC mode (16 bytes) | |
data | Data to encrypt in-place | |
data_len | Length of data in bytes (must be divisible by 16) |
Definition at line 31 of file aes-cbc.c.