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