aes-ctr.c File Reference
#include "includes.h"
#include "common.h"
#include "aes.h"
#include "aes_wrap.h"
Go to the source code of this file.
Function Documentation
int aes_128_ctr_encrypt |
( |
const u8 * |
key, |
|
|
const u8 * |
nonce, |
|
|
u8 * |
data, |
|
|
size_t |
data_len | |
|
) |
| | |
aes_128_ctr_encrypt - AES-128 CTR mode encryption : Key for encryption (16 bytes) : Nonce for counter mode (16 bytes) : Data to encrypt in-place : Length of data in bytes Returns: 0 on success, -1 on failure
Definition at line 30 of file aes-ctr.c.