 |
Bitcoin Core
22.99.0
P2P Digital Currency
|
Go to the documentation of this file.
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;
67 #endif // BITCOIN_CRYPTO_AES_H
unsigned char iv[AES_BLOCKSIZE]
unsigned char iv[AES_BLOCKSIZE]
AES256Decrypt(const unsigned char key[32])
AES256Encrypt(const unsigned char key[32])
void Encrypt(unsigned char ciphertext[16], const unsigned char plaintext[16]) const
void Decrypt(unsigned char plaintext[16], const unsigned char ciphertext[16]) const
static const int AES256_KEYSIZE
int Decrypt(const unsigned char *data, int size, unsigned char *out) const
AES256CBCDecrypt(const unsigned char key[AES256_KEYSIZE], const unsigned char ivIn[AES_BLOCKSIZE], bool padIn)
AES256CBCEncrypt(const unsigned char key[AES256_KEYSIZE], const unsigned char ivIn[AES_BLOCKSIZE], bool padIn)
An encryption class for AES-256.
static const int AES_BLOCKSIZE
int Encrypt(const unsigned char *data, int size, unsigned char *out) const
A decryption class for AES-256.