41 class AES256_Encrypt_Impl;
96 void set_padding(
bool value =
true,
bool use_pkcs7 =
true,
unsigned int num_additional_padded_blocks = 0);
99 void add(
const void *data,
int size);
114 std::shared_ptr<AES256_Encrypt_Impl> impl;
void add(const void *data, int size)
Adds data to be encrypted.
void set_padding(bool value=true, bool use_pkcs7=true, unsigned int num_additional_padded_blocks=0)
Enable AES Padding.
void set_iv(const unsigned char iv[iv_size])
Sets the initialisation vector.
static const int block_size
Definition: aes256_encrypt.h:72
General purpose data buffer.
Definition: databuffer.h:43
void add(const DataBuffer &data)
Add data to be encrypted.
AES256_Encrypt()
Constructs a AES-256 generator (running in Cipher Block Chaining mode)
void set_key(const unsigned char key[key_size])
Sets the cipher key.
AES-256 encryption class (running in Cipher Block Chaining mode)
Definition: aes256_encrypt.h:45
static const int key_size
Definition: aes256_encrypt.h:71
DataBuffer get_data() const
Get encrypted data.
static const int iv_size
Definition: aes256_encrypt.h:70
void calculate()
Finalize encryption.
void reset()
Resets the encryption.