SilentEye 0.4.1
Public Member Functions | Private Member Functions | Private Attributes

SECryptoAES::SECryptoAES Class Reference

#include <secryptoaes.h>

Inheritance diagram for SECryptoAES::SECryptoAES:
SilentEyeFramework::CryptoModuleInterface SilentEyeFramework::ModuleInterface

List of all members.

Public Member Functions

 SECryptoAES ()
 ~SECryptoAES ()
QString name () const
 Plug-in name (ex: FooBar)
QString version () const
 Plug-in version (ex: 1.2.0)
QString status ()
 Current status of the module (ex: KO|qca2-plugin-ossl missing)
QString typeSupported () const
 Type supported (ex: BMP, JPEG, AES128, etc.)
QPointer< EncodedDataencode (QString key, QPointer< EncodedData > msg)
 Encrypte data using a specific key.
QPointer< EncodedDatadecode (QString key, QPointer< EncodedData > data)
 Decrypte data using a specific key.

Private Member Functions

 Q_INTERFACES (SilentEyeFramework::CryptoModuleInterface)
void init ()
QCA::SecureArray initializationVector (QString)

Private Attributes

QPointer< Loggerm_logger
bool m_isQcaCompatible
QCA::SymmetricKey m_key
QCA::Initializer * m_init

Detailed Description

Definition at line 33 of file secryptoaes.h.


Constructor & Destructor Documentation

SECryptoAES::SECryptoAES::SECryptoAES ( )
SECryptoAES::SECryptoAES::~SECryptoAES ( )

Definition at line 30 of file secryptoaes.cpp.

References m_init, and m_logger.


Member Function Documentation

QPointer< EncodedData > SECryptoAES::SECryptoAES::decode ( QString  key,
QPointer< EncodedData data 
) [virtual]

Decrypte data using a specific key.

Implements SilentEyeFramework::CryptoModuleInterface.

Definition at line 141 of file secryptoaes.cpp.

References init(), initializationVector(), m_isQcaCompatible, m_key, and m_logger.

QPointer< EncodedData > SECryptoAES::SECryptoAES::encode ( QString  key,
QPointer< EncodedData msg 
) [virtual]

Encrypte data using a specific key.

Implements SilentEyeFramework::CryptoModuleInterface.

Definition at line 100 of file secryptoaes.cpp.

References init(), initializationVector(), m_isQcaCompatible, m_key, and m_logger.

void SECryptoAES::SECryptoAES::init ( ) [private]

Definition at line 37 of file secryptoaes.cpp.

References m_init, m_isQcaCompatible, m_key, m_logger, and name().

Referenced by decode(), encode(), and status().

QCA::SecureArray SECryptoAES::SECryptoAES::initializationVector ( QString  key) [private]

Definition at line 87 of file secryptoaes.cpp.

References m_logger.

Referenced by decode(), and encode().

QString SECryptoAES::SECryptoAES::name ( ) const [virtual]

Plug-in name (ex: FooBar)

Implements SilentEyeFramework::ModuleInterface.

Definition at line 63 of file secryptoaes.cpp.

References typeSupported().

Referenced by init().

SECryptoAES::SECryptoAES::Q_INTERFACES ( SilentEyeFramework::CryptoModuleInterface  ) [private]
QString SECryptoAES::SECryptoAES::status ( ) [virtual]

Current status of the module (ex: KO|qca2-plugin-ossl missing)

Implements SilentEyeFramework::ModuleInterface.

Definition at line 73 of file secryptoaes.cpp.

References init(), and m_isQcaCompatible.

QString SECryptoAES::SECryptoAES::typeSupported ( ) const [virtual]

Type supported (ex: BMP, JPEG, AES128, etc.)

Implements SilentEyeFramework::ModuleInterface.

Definition at line 82 of file secryptoaes.cpp.

Referenced by name().

QString SECryptoAES::SECryptoAES::version ( ) const [virtual]

Plug-in version (ex: 1.2.0)

Implements SilentEyeFramework::ModuleInterface.

Definition at line 68 of file secryptoaes.cpp.


Member Data Documentation

QCA::Initializer* SECryptoAES::SECryptoAES::m_init [private]

Definition at line 42 of file secryptoaes.h.

Referenced by init(), and ~SECryptoAES().

Definition at line 40 of file secryptoaes.h.

Referenced by decode(), encode(), init(), and status().

QCA::SymmetricKey SECryptoAES::SECryptoAES::m_key [private]

Definition at line 41 of file secryptoaes.h.

Referenced by decode(), encode(), and init().

Definition at line 39 of file secryptoaes.h.

Referenced by decode(), encode(), init(), initializationVector(), and ~SECryptoAES().


The documentation for this class was generated from the following files: