QCA::CipherContext Class Reference
[QCA provider API]

Cipher provider. More...

#include <QtCrypto>

Inheritance diagram for QCA::CipherContext:

QCA::BasicContext QCA::Provider::Context Collaboration diagram for QCA::CipherContext:

Collaboration graph
[legend]
List of all members.

Public Member Functions

 CipherContext (Provider *p, const QString &type)
virtual void setup (Direction dir, const SymmetricKey &key, const InitializationVector &iv)=0
virtual KeyLength keyLength () const=0
virtual int blockSize () const=0
virtual bool update (const SecureArray &in, SecureArray *out)=0
virtual bool final (SecureArray *out)=0

Detailed Description

Cipher provider.

Note:
This class is part of the provider plugin interface and should not be used directly by applications. You probably want Cipher instead.


Constructor & Destructor Documentation

QCA::CipherContext::CipherContext ( Provider p,
const QString type 
) [inline]

Standard constructor.


Member Function Documentation

virtual void QCA::CipherContext::setup ( Direction  dir,
const SymmetricKey key,
const InitializationVector iv 
) [pure virtual]

Set up the object for encrypt/decrypt.

virtual KeyLength QCA::CipherContext::keyLength (  )  const [pure virtual]

Returns the KeyLength for this cipher.

virtual int QCA::CipherContext::blockSize (  )  const [pure virtual]

Returns the block size for this cipher.

virtual bool QCA::CipherContext::update ( const SecureArray in,
SecureArray out 
) [pure virtual]

Process a chunk of data.

Returns true if successful.

Parameters:
in the input data to process
out pointer to an array that should store the result

virtual bool QCA::CipherContext::final ( SecureArray out  )  [pure virtual]

Finish the cipher processing.

Returns true if successful.

Parameters:
out pointer to an array that should store the result


The documentation for this class was generated from the following file:
Generated on Tue Aug 28 08:22:34 2007 for Qt Cryptographic Architecture by  doxygen 1.5.2