#include <CipherMac.h>
|
| CipherMac (const SecurityProtocol &pSecurityProtocol, const QByteArray &pKeyBytes) |
| Creates a new instance with cipher algorithm determined by parameter and specified MAC key.
|
|
| ~CipherMac () |
|
bool | isInitialized () const |
| Returns true, if initialization succeeded, i.e.
|
|
QByteArray | generate (const QByteArray &pMessage) const |
| Generates the MAC of a message.
|
|
◆ CipherMac()
CipherMac::CipherMac |
( |
const SecurityProtocol & | pSecurityProtocol, |
|
|
const QByteArray & | pKeyBytes ) |
Creates a new instance with cipher algorithm determined by parameter and specified MAC key.
- Parameter
-
pSecurityProtocol | 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 | ) |
const |
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 |
( |
| ) |
const |
|
nodiscard |
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: