8 #ifndef RAVEN_CRYPTO_AES_H 9 #define RAVEN_CRYPTO_AES_H 15 static const int AES_BLOCKSIZE = 16;
16 static const int AES128_KEYSIZE = 16;
17 static const int AES256_KEYSIZE = 32;
28 void Encrypt(
unsigned char ciphertext[16],
const unsigned char plaintext[16])
const;
40 void Decrypt(
unsigned char plaintext[16],
const unsigned char ciphertext[16])
const;
52 void Encrypt(
unsigned char ciphertext[16],
const unsigned char plaintext[16])
const;
64 void Decrypt(
unsigned char plaintext[16],
const unsigned char ciphertext[16])
const;
70 AES256CBCEncrypt(
const unsigned char key[AES256_KEYSIZE],
const unsigned char ivIn[AES_BLOCKSIZE],
bool padIn);
72 int Encrypt(
const unsigned char* data,
int size,
unsigned char* out)
const;
77 unsigned char iv[AES_BLOCKSIZE];
83 AES256CBCDecrypt(
const unsigned char key[AES256_KEYSIZE],
const unsigned char ivIn[AES_BLOCKSIZE],
bool padIn);
85 int Decrypt(
const unsigned char* data,
int size,
unsigned char* out)
const;
90 unsigned char iv[AES_BLOCKSIZE];
96 AES128CBCEncrypt(
const unsigned char key[AES128_KEYSIZE],
const unsigned char ivIn[AES_BLOCKSIZE],
bool padIn);
98 int Encrypt(
const unsigned char* data,
int size,
unsigned char* out)
const;
103 unsigned char iv[AES_BLOCKSIZE];
109 AES128CBCDecrypt(
const unsigned char key[AES128_KEYSIZE],
const unsigned char ivIn[AES_BLOCKSIZE],
bool padIn);
111 int Decrypt(
const unsigned char* data,
int size,
unsigned char* out)
const;
116 unsigned char iv[AES_BLOCKSIZE];
119 #endif // RAVEN_CRYPTO_AES_H
A decryption class for AES-256.
AES128Encrypt(const unsigned char key[16])
An encryption class for AES-256.
void Encrypt(unsigned char ciphertext[16], const unsigned char plaintext[16]) const
A decryption class for AES-128.
An encryption class for AES-128.