7#ifndef BITCOIN_CRYPTO_AES_H
8#define BITCOIN_CRYPTO_AES_H
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
int Encrypt(const uint8_t *data, int size, uint8_t *out) const
uint8_t iv[AES_BLOCKSIZE]
A decryption class for AES-128.
void Decrypt(uint8_t plaintext[16], const uint8_t ciphertext[16]) const
An encryption class for AES-128.
void Encrypt(uint8_t ciphertext[16], const uint8_t plaintext[16]) const
uint8_t iv[AES_BLOCKSIZE]
int Decrypt(const uint8_t *data, int size, uint8_t *out) const
uint8_t iv[AES_BLOCKSIZE]
int Encrypt(const uint8_t *data, int size, uint8_t *out) const
A decryption class for AES-256.
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
T GetRand(T nMax=std::numeric_limits< T >::max()) noexcept
Generate a uniform random integer of type T in the range [0..nMax) nMax defaults to std::numeric_limi...