AusweisApp
Lade ...
Suche ...
Keine Treffer
governikus::CipherMac Klassenreferenzfinal

#include <CipherMac.h>

Öffentliche Methoden

 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)
 Generates the MAC of a message.
 

Beschreibung der Konstruktoren und Destruktoren

◆ CipherMac()

CipherMac::CipherMac ( const SecurityProtocol & pSecurityProtocol,
const QByteArray & pKeyBytes )

Creates a new instance with cipher algorithm determined by parameter and specified MAC key.

Parameter
pSecurityProtocolwill 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.
pKeyBytesthe bytes of the key
Hier ist ein Graph, der zeigt, was diese Funktion aufruft:

◆ ~CipherMac()

CipherMac::~CipherMac ( )
Hier ist ein Graph, der zeigt, was diese Funktion aufruft:

Dokumentation der Elementfunktionen

◆ generate()

QByteArray CipherMac::generate ( const QByteArray & pMessage)

Generates the MAC of a message.

Parameter
pMessagethe message to build the MAC for.
Rückgabe
the MAC of the message
Hier ist ein Graph, der zeigt, was diese Funktion aufruft:
Hier ist ein Graph der zeigt, wo diese Funktion aufgerufen wird:

◆ isInitialized()

bool CipherMac::isInitialized ( ) const

Returns true, if initialization succeeded, i.e.

the algorithm is known, supported and the key bytes have correct size.

Hier ist ein Graph, der zeigt, was diese Funktion aufruft:
Hier ist ein Graph der zeigt, wo diese Funktion aufgerufen wird:

Die Dokumentation für diese Klasse wurde erzeugt aufgrund der Dateien: