33 #include "../System/databuffer.h"
42 static std::shared_ptr<AES128_Decrypt>
create();
55 virtual void reset() = 0;
61 virtual void set_iv(
const unsigned char iv[iv_size]) = 0;
66 virtual void set_key(
const unsigned char key[key_size]) = 0;
75 virtual void set_padding(
bool value =
true,
bool use_pkcs7 =
true) = 0;
78 virtual void add(
const void *
data,
int size) = 0;
static const int key_size
Definition: aes128_decrypt.h:52
virtual void add(const void *data, int size)=0
Adds data to be decrypted.
virtual void set_padding(bool value=true, bool use_pkcs7=true)=0
Enable AES Padding.
virtual DataBufferPtr data() const =0
Get decrypted data.
AES-128 decryption class (running in Cipher Block Chaining mode)
Definition: aes128_decrypt.h:38
static const int iv_size
Definition: aes128_decrypt.h:51
std::shared_ptr< AES128_Decrypt > AES128_DecryptPtr
Definition: aes128_decrypt.h:93
virtual bool calculate()=0
Finalize decryption.
virtual void reset()=0
Resets the decryption.
static std::shared_ptr< AES128_Decrypt > create()
Constructs a AES-128 generator (running in Cipher Block Chaining mode)
std::shared_ptr< DataBuffer > DataBufferPtr
Definition: databuffer.h:66
virtual void set_key(const unsigned char key[key_size])=0
Sets the cipher key.
virtual void set_iv(const unsigned char iv[iv_size])=0
Sets the initialisation vector.
Definition: Application/application.h:35