Crypt Class Reference

This class contains the cryptographic functions for AES. More...

#include <Crypt.h>

List of all members.

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.

Detailed Description

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.


Constructor & Destructor Documentation

Crypt::Crypt (  ) 

Construct an object to perform encryption and decryption.

The RSA structure r is allocated and the public exponent e is set.


Member Function Documentation

QByteArray Crypt::aes_decrypt ( QByteArray  in,
QByteArray  keyba 
)

AES decryption.

Decrypt using the key set in the instance of this class.

Parameters:
The ciphertext as QByteArray
Returns:
The plaintext as QByteArray
QByteArray Crypt::aes_encrypt ( QByteArray  in,
QByteArray  keyba 
)

AES Encryption.

The key is set in the instance of this class.

Parameters:
The plaintext as QByteArray
Returns:
The ciphertext as QByteArray

The documentation for this class was generated from the following files:
Generated on Thu Jun 24 21:31:43 2010 for PrivL by  doxygen 1.6.3