#include <QtCrypto>
Message authentication code provider.
- Note
- This class is part of the provider plugin interface and should not be used directly by applications. You probably want MessageAuthenticationCode instead.
- Examples:
- aes-cmac.cpp.
QCA::MACContext::MACContext |
( |
Provider * |
p, |
|
|
const QString & |
type |
|
) |
| |
|
inline |
Standard constructor.
- Parameters
-
p | the provider associated with this context |
type | the name of the type of MAC algorithm provided by this context |
virtual void QCA::MACContext::setup |
( |
const SymmetricKey & |
key | ) |
|
|
pure virtual |
Set up the object for hashing.
- Parameters
-
key | the key to use with the MAC. |
- Examples:
- aes-cmac.cpp.
virtual KeyLength QCA::MACContext::keyLength |
( |
| ) |
const |
|
pure virtual |
virtual void QCA::MACContext::update |
( |
const MemoryRegion & |
in | ) |
|
|
pure virtual |
Process a chunk of data.
- Parameters
-
in | the input data to process |
- Examples:
- aes-cmac.cpp.
Compute the result after processing all data.
- Parameters
-
out | pointer to an array that should store the result |
KeyLength QCA::MACContext::anyKeyLength |
( |
| ) |
const |
|
inlineprotected |
Returns a KeyLength that supports any length.
The documentation for this class was generated from the following file: