#include <QtCrypto>
Public Member Functions | |
virtual int | blockSize () const =0 |
CipherContext (Provider *p, const QString &type) | |
virtual bool | final (SecureArray *out)=0 |
virtual KeyLength | keyLength () const =0 |
virtual void | setup (Direction dir, const SymmetricKey &key, const InitializationVector &iv)=0 |
virtual bool | update (const SecureArray &in, SecureArray *out)=0 |
Standard constructor.
p | the provider associated with this context | |
type | the name of the type of cipher provided by this context |
virtual int QCA::CipherContext::blockSize | ( | ) | const [pure virtual] |
Returns the block size for this cipher.
virtual bool QCA::CipherContext::final | ( | SecureArray * | out | ) | [pure virtual] |
Finish the cipher processing.
Returns true if successful.
out | pointer to an array that should store the result |
virtual KeyLength QCA::CipherContext::keyLength | ( | ) | const [pure virtual] |
Returns the KeyLength for this cipher.
virtual void QCA::CipherContext::setup | ( | Direction | dir, | |
const SymmetricKey & | key, | |||
const InitializationVector & | iv | |||
) | [pure virtual] |
Set up the object for encrypt/decrypt.
dir | the direction for the cipher (encryption/decryption) | |
key | the symmetric key to use for the cipher | |
iv | the initialization vector to use for the cipher (not used in ECB mode) |
virtual bool QCA::CipherContext::update | ( | const SecureArray & | in, | |
SecureArray * | out | |||
) | [pure virtual] |
Process a chunk of data.
Returns true if successful.
in | the input data to process | |
out | pointer to an array that should store the result |