#include <KeyAgreement.h>
◆ KeyAgreement()
◆ ~KeyAgreement()
KeyAgreement::~KeyAgreement |
( |
| ) |
|
|
virtualdefault |
◆ create()
Factory method to create an instance of KeyAgreement.
- Parameter
-
pPaceInfo | the PACEInfo containing the protocol parameters |
pCardConnectionWorker | the reader connection to transmit card commands |
- Rückgabe
- new instance
◆ getCarCurr()
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()
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()
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()
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()
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()
◆ getUncompressedCardPublicKey()
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()
Perform the key agreement.
- Parameter
-
- Rückgabe
- the authentication result
◆ transmitGAEphemeralPublicKey()
Transmit the General Authenticate (Ephemeral Public Key) command to the card.
- Parameter
-
pEphemeralPublicKey | the terminal's ephemeral public key |
- Rückgabe
- the card's ephemeral public key
◆ transmitGAMappingData()
Transmit the General Authenticate (Mapping Data) command to the card.
- Parameter
-
pMappingData | the terminal's mapping data. |
- Rückgabe
- the card's mapping data
◆ transmitGAMutualAuthentication()
Transmit the General Authenticate (Mutual Authentication) command to the card.
- Parameter
-
pMutualAuthenticationData | the terminal's authentication token |
- Rückgabe
- the complete response APDU
Die Dokumentation für diese Klasse wurde erzeugt aufgrund der Dateien: