This class contains the cryptographic functions for AES. More...
#include <Crypt.h>
Public Member Functions | |
Crypt () | |
Construct an object to perform encryption and decryption. | |
QByteArray | aes_encrypt (QByteArray in, QByteArray keyba) |
AES Encryption. | |
QByteArray | aes_decrypt (QByteArray in, QByteArray keyba) |
AES decryption. |
This class contains the cryptographic functions for AES.
The crypt class provides simple function calls to use AES for Symmetric Encryption. This class also contains (a currently disabled) RSA implementation wrapper.
Crypt::Crypt | ( | ) |
Construct an object to perform encryption and decryption.
The RSA structure r is allocated and the public exponent e is set.
QByteArray Crypt::aes_decrypt | ( | QByteArray | in, | |
QByteArray | keyba | |||
) |
AES decryption.
Decrypt using the key set in the instance of this class.
The | ciphertext as QByteArray |
QByteArray Crypt::aes_encrypt | ( | QByteArray | in, | |
QByteArray | keyba | |||
) |
AES Encryption.
The key is set in the instance of this class.
The | plaintext as QByteArray |