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