Search for usage in LXR

QCA::CipherContext Class Referenceabstract

#include <QtCrypto>

Inheritance diagram for QCA::CipherContext:

Public Member Functions

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

Additional Inherited Members

- Protected Member Functions inherited from QCA::BasicContext
 BasicContext (const BasicContext &from)
 BasicContext (Provider *parent, const QString &type)

Detailed Description

Cipher provider.

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

Definition at line 227 of file qcaprovider.h.

Constructor & Destructor Documentation

◆ CipherContext()

QCA::CipherContext::CipherContext ( Provider * p,
const QString & type )

Standard constructor.

pthe provider associated with this context
typethe name of the type of cipher provided by this context
type includes the name of the cipher (e.g. "aes256"), the operating mode (e.g. "cbc" or "ofb") and the padding type (e.g. "pkcs7") if any.

Definition at line 240 of file qcaprovider.h.

Member Function Documentation

◆ blockSize()

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

Returns the block size for this cipher.

◆ final()

virtual bool QCA::CipherContext::final ( SecureArray * out)
pure virtual

Finish the cipher processing.

Returns true if successful.

outpointer to an array that should store the result

◆ keyLength()

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

Returns the KeyLength for this cipher.

◆ setup()

virtual void QCA::CipherContext::setup ( Direction dir,
const SymmetricKey & key,
const InitializationVector & iv,
const AuthTag & tag )
pure virtual

Set up the object for encrypt/decrypt.

dirthe direction for the cipher (encryption/decryption)
keythe symmetric key to use for the cipher
ivthe initialization vector to use for the cipher (not used in ECB mode)
tagthe AuthTag to use (only for GCM and CCM modes)

◆ tag()

virtual AuthTag QCA::CipherContext::tag ( ) const
pure virtual

Returns the authentication tag for this cipher.

◆ update()

virtual bool QCA::CipherContext::update ( const SecureArray & in,
SecureArray * out )
pure virtual

Process a chunk of data.

Returns true if successful.

inthe input data to process
outpointer to an array that should store the result

The documentation for this class was generated from the following file:
This file is part of the KDE documentation.
Documentation copyright © 1996-2024 The KDE developers.
Generated on Tue Mar 26 2024 11:18:26 by doxygen 1.10.0 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.