#include <QtCrypto>
Public Member Functions | |
virtual void | final (MemoryRegion *out)=0 |
virtual KeyLength | keyLength () const =0 |
MACContext (Provider *p, const QString &type) | |
virtual void | setup (const SymmetricKey &key)=0 |
virtual void | update (const MemoryRegion &in)=0 |
Protected Member Functions | |
KeyLength | anyKeyLength () const |
Standard constructor.
p | the provider associated with this context | |
type | the name of the type of MAC algorithm provided by this context |
KeyLength QCA::MACContext::anyKeyLength | ( | ) | const [inline, protected] |
Returns a KeyLength that supports any length.
virtual void QCA::MACContext::final | ( | MemoryRegion * | out | ) | [pure virtual] |
Compute the result after processing all data.
out | pointer to an array that should store the result |
virtual KeyLength QCA::MACContext::keyLength | ( | ) | const [pure virtual] |
Returns the KeyLength for this MAC algorithm.
virtual void QCA::MACContext::setup | ( | const SymmetricKey & | key | ) | [pure virtual] |
Set up the object for hashing.
key | the key to use with the MAC. |
virtual void QCA::MACContext::update | ( | const MemoryRegion & | in | ) | [pure virtual] |
Process a chunk of data.
in | the input data to process |