7#ifndef BITCOIN_CRYPTO_AES_H
8#define BITCOIN_CRYPTO_AES_H
26 void Encrypt(uint8_t ciphertext[16],
const uint8_t plaintext[16])
const;
37 void Decrypt(uint8_t plaintext[16],
const uint8_t ciphertext[16])
const;
48 void Encrypt(uint8_t ciphertext[16],
const uint8_t plaintext[16])
const;
59 void Decrypt(uint8_t plaintext[16],
const uint8_t ciphertext[16])
const;
67 int Encrypt(
const uint8_t *data,
int size, uint8_t *out)
const;
80 int Decrypt(
const uint8_t *data,
int size, uint8_t *out)
const;
93 int Encrypt(
const uint8_t *data,
int size, uint8_t *out)
const;
106 int Decrypt(
const uint8_t *data,
int size, uint8_t *out)
const;
static const int AES128_KEYSIZE
static const int AES256_KEYSIZE
static const int AES_BLOCKSIZE
uint8_t iv[AES_BLOCKSIZE]
int Decrypt(const uint8_t *data, int size, uint8_t *out) const
AES128CBCDecrypt(const uint8_t key[AES128_KEYSIZE], const uint8_t ivIn[AES_BLOCKSIZE], bool padIn)
int Encrypt(const uint8_t *data, int size, uint8_t *out) const
AES128CBCEncrypt(const uint8_t key[AES128_KEYSIZE], const uint8_t ivIn[AES_BLOCKSIZE], bool padIn)
uint8_t iv[AES_BLOCKSIZE]
A decryption class for AES-128.
AES128Decrypt(const uint8_t key[16])
void Decrypt(uint8_t plaintext[16], const uint8_t ciphertext[16]) const
An encryption class for AES-128.
AES128Encrypt(const uint8_t key[16])
void Encrypt(uint8_t ciphertext[16], const uint8_t plaintext[16]) const
AES256CBCDecrypt(const uint8_t key[AES256_KEYSIZE], const uint8_t ivIn[AES_BLOCKSIZE], bool padIn)
uint8_t iv[AES_BLOCKSIZE]
int Decrypt(const uint8_t *data, int size, uint8_t *out) const
uint8_t iv[AES_BLOCKSIZE]
AES256CBCEncrypt(const uint8_t key[AES256_KEYSIZE], const uint8_t ivIn[AES_BLOCKSIZE], bool padIn)
int Encrypt(const uint8_t *data, int size, uint8_t *out) const
A decryption class for AES-256.
AES256Decrypt(const uint8_t key[32])
void Decrypt(uint8_t plaintext[16], const uint8_t ciphertext[16]) const
An encryption class for AES-256.
void Encrypt(uint8_t ciphertext[16], const uint8_t plaintext[16]) const
AES256Encrypt(const uint8_t key[32])