#include "src/crypt/cryptclassbase.h" CryptClassBase::CryptClassBase() { } CryptClassBase::~CryptClassBase() { m_key.fill(0); m_cryptText.fill(0); m_clearText.fill(0); m_binaryData = false; m_keyLength = 0; } void CryptClassBase::generateRandomKey() { qDebug("CryptClassBase::generateRandomKey - This Method does nothing so far!"); } void CryptClassBase::setKey(QByteArray value) { m_key = value; } void CryptClassBase::setKey(const uchar* value, int keyLength ) { m_key.setRawData( (const char*)value, keyLength ); } void CryptClassBase::setCryptText( QByteArray value ) { m_cryptText = value; } void CryptClassBase::setCryptText( const uchar* value, int dataLength ) { m_cryptText.setRawData( (const char*)value, dataLength ); } void CryptClassBase::setClearText( QByteArray value ) { m_clearText = value; } void CryptClassBase::setClearText( const uchar* value, int dataLength ) { m_clearText.setRawData( (const char*)value, dataLength ); }