#include <CipherMac.h>
|
| CipherMac (const QByteArray &pPaceAlgorithm, const QByteArray &pKeyBytes) |
| Creates a new instance with cipher algorithm determined by parameter and specified MAC key. Mehr ...
|
|
| ~CipherMac () |
|
bool | isInitialized () |
| Returns true, if initialization succeeded, i.e. Mehr ...
|
|
QByteArray | generate (const QByteArray &pMessage) |
| Generates the MAC of a message. Mehr ...
|
|
◆ CipherMac()
CipherMac::CipherMac |
( |
const QByteArray & |
pPaceAlgorithm, |
|
|
const QByteArray & |
pKeyBytes |
|
) |
| |
Creates a new instance with cipher algorithm determined by parameter and specified MAC key.
- Parameter
-
pPaceAlgorithm | algorithm of PACE protocol. This will determine the cipher algorithm to use. E.g. a PACE protocol of id_PACE::DH::GM_AES_CBC_CMAC_128 will result in AES to be used for CMAC. |
pKeyBytes | the bytes of the key |
◆ ~CipherMac()
CipherMac::~CipherMac |
( |
| ) |
|
◆ generate()
QByteArray CipherMac::generate |
( |
const QByteArray & |
pMessage | ) |
|
Generates the MAC of a message.
- Parameter
-
pMessage | the message to build the MAC for. |
- Rückgabe
- the MAC of the message
◆ isInitialized()
bool CipherMac::isInitialized |
( |
| ) |
|
Returns true, if initialization succeeded, i.e.
the algorithm is known, supported and the key bytes have correct size.
Die Dokumentation für diese Klasse wurde erzeugt aufgrund der Dateien: