AusweisApp2
governikus::KeyDerivationFunction Klassenreferenzfinal

#include <KeyDerivationFunction.h>

Öffentliche Methoden

 KeyDerivationFunction (const QByteArray &pPaceAlgorithm)
 Creates a new instance with derivation function algorithm determined by parameter. Mehr ...
 
 ~KeyDerivationFunction ()=default
 
bool isInitialized ()
 Returns true, if initialization succeeded, i.e. Mehr ...
 
QByteArray enc (const QByteArray &pSecret)
 Derive the encryption key. Mehr ...
 
QByteArray mac (const QByteArray &pSecret)
 Derive the MAC key. Mehr ...
 
QByteArray pi (const QString &pSecret)
 Derive the password key. Mehr ...
 

Beschreibung der Konstruktoren und Destruktoren

◆ KeyDerivationFunction()

KeyDerivationFunction::KeyDerivationFunction ( const QByteArray &  pPaceAlgorithm)
explicit

Creates a new instance with derivation function algorithm determined by parameter.

Parameter
pPaceAlgorithmalgorithm of PACE protocol. This will determine the key derivation algorithm to use. E.g. a PACE protocol of id_PACE::DH::GM_AES_CBC_CMAC_128 will result in SHA256 to be used internally to derive keys.

◆ ~KeyDerivationFunction()

governikus::KeyDerivationFunction::~KeyDerivationFunction ( )
default

Dokumentation der Elementfunktionen

◆ enc()

QByteArray KeyDerivationFunction::enc ( const QByteArray &  pSecret)

Derive the encryption key.

Parameter
pSecretthe secret to use.
Rückgabe
the encryption key
Hier ist ein Graph der zeigt, wo diese Funktion aufgerufen wird:

◆ isInitialized()

bool KeyDerivationFunction::isInitialized ( )

Returns true, if initialization succeeded, i.e.

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

◆ mac()

QByteArray KeyDerivationFunction::mac ( const QByteArray &  pSecret)

Derive the MAC key.

Parameter
pSecretthe secret to use.
Rückgabe
the MAC key
Hier ist ein Graph der zeigt, wo diese Funktion aufgerufen wird:

◆ pi()

QByteArray KeyDerivationFunction::pi ( const QString &  pSecret)

Derive the password key.

Parameter
pSecretthe secret to use.
Rückgabe
the password key

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