41 class AES128_Decrypt_Impl;
94 void set_padding(
bool value =
true,
bool use_pkcs7 =
true);
97 void add(
const void *data,
int size);
116 std::shared_ptr<AES128_Decrypt_Impl> impl;
void set_padding(bool value=true, bool use_pkcs7=true)
Enable AES Padding.
void reset()
Resets the decryption.
void set_iv(const unsigned char iv[iv_size])
Sets the initialisation vector.
static const int iv_size
Definition: aes128_decrypt.h:70
DataBuffer get_data() const
Get decrypted data.
AES128_Decrypt()
Constructs a AES-128 generator (running in Cipher Block Chaining mode)
static const int key_size
Definition: aes128_decrypt.h:71
bool calculate()
Finalize decryption.
void set_key(const unsigned char key[key_size])
Sets the cipher key.
void add(const void *data, int size)
Adds data to be decrypted.
AES-128 decryption class (running in Cipher Block Chaining mode)
Definition: aes128_decrypt.h:44
General purpose data buffer.
Definition: databuffer.h:42