7#ifndef BITCOIN_CRYPTO_AES_H
8#define BITCOIN_CRYPTO_AES_H
26 void Encrypt(
unsigned char ciphertext[16],
const unsigned char plaintext[16])
const;
38 void Decrypt(
unsigned char plaintext[16],
const unsigned char ciphertext[16])
const;
46 int Encrypt(
const unsigned char*
data,
int size,
unsigned char*
out)
const;
59 int Decrypt(
const unsigned char*
data,
int size,
unsigned char*
out)
const;
static const int AES256_KEYSIZE
static const int AES_BLOCKSIZE
AES256CBCDecrypt(const unsigned char key[AES256_KEYSIZE], const unsigned char ivIn[AES_BLOCKSIZE], bool padIn)
int Decrypt(const unsigned char *data, int size, unsigned char *out) const
unsigned char iv[AES_BLOCKSIZE]
AES256CBCEncrypt(const unsigned char key[AES256_KEYSIZE], const unsigned char ivIn[AES_BLOCKSIZE], bool padIn)
int Encrypt(const unsigned char *data, int size, unsigned char *out) const
unsigned char iv[AES_BLOCKSIZE]
A decryption class for AES-256.
AES256Decrypt(const unsigned char key[32])
void Decrypt(unsigned char plaintext[16], const unsigned char ciphertext[16]) const
An encryption class for AES-256.
AES256Encrypt(const unsigned char key[32])
void Encrypt(unsigned char ciphertext[16], const unsigned char plaintext[16]) const