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