aes-cbc.c File Reference
#include "includes.h"
#include "common.h"
#include "aes.h"
Go to the source code of this file.
Function Documentation
int aes_128_cbc_decrypt |
( |
const u8 * |
key, |
|
|
const u8 * |
iv, |
|
|
u8 * |
data, |
|
|
size_t |
data_len | |
|
) |
| | |
aes_128_cbc_decrypt - AES-128 CBC decryption : Decryption key : Decryption IV for CBC mode (16 bytes) : Data to decrypt in-place : Length of data in bytes (must be divisible by 16) Returns: 0 on success, -1 on failure
Definition at line 63 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_encrypt - AES-128 CBC encryption : Encryption key : Encryption IV for CBC mode (16 bytes) : Data to encrypt in-place : Length of data in bytes (must be divisible by 16) Returns: 0 on success, -1 on failure
Definition at line 30 of file aes-cbc.c.