#include <crypto/aes.h>
#include <cstring>
#include <crypto/ctaes/ctaes.c>
Go to the source code of this file.
|
template<typename T > |
static int | CBCEncrypt (const T &enc, const uint8_t iv[AES_BLOCKSIZE], const uint8_t *data, int size, bool pad, uint8_t *out) |
|
template<typename T > |
static int | CBCDecrypt (const T &dec, const uint8_t iv[AES_BLOCKSIZE], const uint8_t *data, int size, bool pad, uint8_t *out) |
|
◆ CBCDecrypt()
template<typename T >
static int CBCDecrypt |
( |
const T & |
dec, |
|
|
const uint8_t |
iv[AES_BLOCKSIZE], |
|
|
const uint8_t * |
data, |
|
|
int |
size, |
|
|
bool |
pad, |
|
|
uint8_t * |
out |
|
) |
| |
|
static |
◆ CBCEncrypt()
template<typename T >
static int CBCEncrypt |
( |
const T & |
enc, |
|
|
const uint8_t |
iv[AES_BLOCKSIZE], |
|
|
const uint8_t * |
data, |
|
|
int |
size, |
|
|
bool |
pad, |
|
|
uint8_t * |
out |
|
) |
| |
|
static |