AusweisApp
Lade ...
Suche ...
Keine Treffer
governikus::KeyAgreement Klassenreferenzabstract

#include <KeyAgreement.h>

Klassendiagramm für governikus::KeyAgreement:

Klassen

struct  CardResult
 

Öffentliche Methoden

virtual ~KeyAgreement ()
 
virtual QByteArray getUncompressedCardPublicKey ()=0
 Returns the uncompressed card's ephemeral public key calculated during key agreement.
 
virtual QByteArray getCompressedCardPublicKey ()=0
 Returns the compressed card's ephemeral public key calculated during key agreement.
 
KeyAgreementStatus perform (const QByteArray &pPin)
 Perform the key agreement.
 
const QByteArraygetEncryptionKey () const
 Subsequent to the key agreement an encryption key is determined.
 
const QByteArraygetMacKey () const
 Subsequent to the key agreement a MAC key is determined.
 
const QByteArraygetCarCurr () const
 Subsequent to the key agreement a certificate authority reference (CAR) may be determined.
 
const QByteArraygetCarPrev () const
 Subsequent to the key agreement a certificate authority reference (CAR) may be determined.
 

Öffentliche, statische Methoden

static QSharedPointer< KeyAgreementcreate (const QSharedPointer< const PaceInfo > &pPaceInfo, QSharedPointer< CardConnectionWorker > pCardConnectionWorker)
 Factory method to create an instance of KeyAgreement.
 

Geschützte Methoden

 KeyAgreement (const QSharedPointer< const PaceInfo > &pPaceInfo, const QSharedPointer< CardConnectionWorker > &pCardConnectionWorker)
 
CardResult transmitGAMappingData (const QByteArray &pMappingData) const
 Transmit the General Authenticate (Mapping Data) command to the card.
 
CardResult transmitGAEphemeralPublicKey (const QByteArray &pEphemeralPublicKey)
 Transmit the General Authenticate (Ephemeral Public Key) command to the card.
 
GAMutualAuthenticationResponse transmitGAMutualAuthentication (const QByteArray &pMutualAuthenticationData)
 Transmit the General Authenticate (Mutual Authentication) command to the card.
 
const QSharedPointer< const PaceInfo > & getPaceInfo () const
 

Beschreibung der Konstruktoren und Destruktoren

◆ KeyAgreement()

KeyAgreement::KeyAgreement ( const QSharedPointer< const PaceInfo > & pPaceInfo,
const QSharedPointer< CardConnectionWorker > & pCardConnectionWorker )
protected

◆ ~KeyAgreement()

KeyAgreement::~KeyAgreement ( )
virtualdefault

Dokumentation der Elementfunktionen

◆ create()

QSharedPointer< KeyAgreement > KeyAgreement::create ( const QSharedPointer< const PaceInfo > & pPaceInfo,
QSharedPointer< CardConnectionWorker > pCardConnectionWorker )
static

Factory method to create an instance of KeyAgreement.

Parameter
pPaceInfothe PACEInfo containing the protocol parameters
pCardConnectionWorkerthe reader connection to transmit card commands
Rückgabe
new instance
Hier ist ein Graph, der zeigt, was diese Funktion aufruft:

◆ getCarCurr()

const QByteArray & KeyAgreement::getCarCurr ( ) const

Subsequent to the key agreement a certificate authority reference (CAR) may be determined.

This method returns this CAR.

Rückgabe
the card's CAR number 1

◆ getCarPrev()

const QByteArray & KeyAgreement::getCarPrev ( ) const

Subsequent to the key agreement a certificate authority reference (CAR) may be determined.

This method returns this CAR.

Rückgabe
the card's CAR number 2

◆ getCompressedCardPublicKey()

virtual QByteArray governikus::KeyAgreement::getCompressedCardPublicKey ( )
pure virtual

Returns the compressed card's ephemeral public key calculated during key agreement.

This public key is needed for terminal authentication.

Rückgabe
the compressed card's ephemeral public key

◆ getEncryptionKey()

const QByteArray & KeyAgreement::getEncryptionKey ( ) const

Subsequent to the key agreement an encryption key is determined.

This method returns this key. I. e. the output of KDF_enc according to TR-03110 Part 3 chapter A.2.3.

Rückgabe
the encryption key

◆ getMacKey()

const QByteArray & KeyAgreement::getMacKey ( ) const

Subsequent to the key agreement a MAC key is determined.

This method returns this key. I. e. the output of KDF_mac according to TR-03110 Part 3 chapter A.2.3.

Rückgabe
the MAC key

◆ getPaceInfo()

const QSharedPointer< const PaceInfo > & KeyAgreement::getPaceInfo ( ) const
protected

◆ getUncompressedCardPublicKey()

virtual QByteArray governikus::KeyAgreement::getUncompressedCardPublicKey ( )
pure virtual

Returns the uncompressed card's ephemeral public key calculated during key agreement.

This public key is needed for mutual authentication.

Rückgabe
the uncompressed card's ephemeral public key

◆ perform()

KeyAgreementStatus KeyAgreement::perform ( const QByteArray & pPin)

Perform the key agreement.

Parameter
pPinthe PIN value
Rückgabe
the authentication result
Hier ist ein Graph, der zeigt, was diese Funktion aufruft:

◆ transmitGAEphemeralPublicKey()

KeyAgreement::CardResult KeyAgreement::transmitGAEphemeralPublicKey ( const QByteArray & pEphemeralPublicKey)
protected

Transmit the General Authenticate (Ephemeral Public Key) command to the card.

Parameter
pEphemeralPublicKeythe terminal's ephemeral public key
Rückgabe
the card's ephemeral public key
Hier ist ein Graph, der zeigt, was diese Funktion aufruft:

◆ transmitGAMappingData()

KeyAgreement::CardResult KeyAgreement::transmitGAMappingData ( const QByteArray & pMappingData) const
protected

Transmit the General Authenticate (Mapping Data) command to the card.

Parameter
pMappingDatathe terminal's mapping data.
Rückgabe
the card's mapping data
Hier ist ein Graph, der zeigt, was diese Funktion aufruft:

◆ transmitGAMutualAuthentication()

GAMutualAuthenticationResponse KeyAgreement::transmitGAMutualAuthentication ( const QByteArray & pMutualAuthenticationData)
protected

Transmit the General Authenticate (Mutual Authentication) command to the card.

Parameter
pMutualAuthenticationDatathe terminal's authentication token
Rückgabe
the complete response APDU
Hier ist ein Graph, der zeigt, was diese Funktion aufruft:

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