Rudiments
|
Inherits encryption.
Public Member Functions | |
aes128 () | |
~aes128 () | |
uint32_t | getKeySize () |
uint32_t | getIvSize () |
const unsigned char * | getEncryptedData () |
const unsigned char * | getDecryptedData () |
![]() | |
encryption () | |
virtual | ~encryption () |
virtual bool | setKey (const unsigned char *key, size_t keysize) |
virtual void | setRandomKey () |
virtual unsigned char * | getKey () |
virtual bool | setIv (const unsigned char *iv, size_t ivsize) |
virtual void | setRandomIv () |
virtual unsigned char * | getIv () |
virtual bool | append (const unsigned char *data, uint32_t size) |
virtual uint64_t | getEncryptedDataSize () |
virtual uint64_t | getDecryptedDataSize () |
virtual bool | clear () |
virtual encryptionerror_t | getError () |
aes128::aes128 | ( | ) |
Creates an instance of the aes128 class.
aes128::~aes128 | ( | ) |
Deletes this instance of the aes128 class.
|
virtual |
Interprets the current data as encrypted. Decrypts the current data. Returns the decrypted data on success or NULL if an error occurred. Note that the decrypted data returned will be an empty string if no data has been appended yet.
Implements encryption.
|
virtual |
Interprets the current data as unencrypted. Encrypts the current data. Returns the encrypted data on success or NULL if an error occurred. Note that the encrypted data returned will be an empty string if no data has been appended yet.
Implements encryption.
|
virtual |
Returns the number of bytes in the initialization vector.
Implements encryption.
|
virtual |
Returns the number of bytes in the key.
Implements encryption.