13 #include <QSharedPointer>
33 QByteArray
mData = QByteArray();
37 const QSharedPointer<CardConnectionWorker> mCardConnectionWorker;
38 QByteArray mEncryptionKey;
40 QByteArray mCarCurr, mCarPrev;
43 CardResult createTransmitResult(CardReturnCode pReturnCode,
44 StatusCode pResponseReturnCode,
45 const QByteArray& pResultData,
46 const char* pLogMessage);
54 CardResult determineNonce(
const QString& pPin);
62 virtual CardResult determineSharedSecret(
const QByteArray& pNonce) = 0;
69 virtual QByteArray getUncompressedTerminalPublicKey() = 0;
88 KeyAgreement(
const QSharedPointer<const PaceInfo>& pPaceInfo,
const QSharedPointer<CardConnectionWorker>& pCardConnectionWorker);
132 static QSharedPointer<KeyAgreement>
create(
const QSharedPointer<const PaceInfo>& pPaceInfo,
133 QSharedPointer<CardConnectionWorker> pCardConnectionWorker);
Definition: GeneralAuthenticateResponse.h:126
Definition: KeyAgreement.h:28
const QByteArray & getEncryptionKey() const
Subsequent to the key agreement an encryption key is determined.
Definition: KeyAgreement.cpp:233
KeyAgreement(const QSharedPointer< const PaceInfo > &pPaceInfo, const QSharedPointer< CardConnectionWorker > &pCardConnectionWorker)
Definition: KeyAgreement.cpp:71
const QByteArray & getCarPrev() const
Subsequent to the key agreement a certificate authority reference (CAR) may be determined.
Definition: KeyAgreement.cpp:245
KeyDerivationFunction mKeyDerivationFunction
Definition: KeyAgreement.h:86
GAMutualAuthenticationResponse transmitGAMutualAuthentication(const QByteArray &pMutualAuthenticationData)
Transmit the General Authenticate (Mutual Authentication) command to the card.
Definition: KeyAgreement.cpp:219
virtual ~KeyAgreement()
Definition: KeyAgreement.cpp:83
CardResult transmitGAMappingData(const QByteArray &pMappingData)
Transmit the General Authenticate (Mapping Data) command to the card.
Definition: KeyAgreement.cpp:207
KeyAgreementStatus perform(const QString &pPin)
Perform the key agreement.
Definition: KeyAgreement.cpp:88
virtual QByteArray getUncompressedCardPublicKey()=0
Returns the uncompressed card's ephemeral public key calculated during key agreement.
const QByteArray & getCarCurr() const
Subsequent to the key agreement a certificate authority reference (CAR) may be determined.
Definition: KeyAgreement.cpp:239
const QByteArray & getMacKey() const
Subsequent to the key agreement a MAC key is determined.
Definition: KeyAgreement.cpp:251
const QSharedPointer< const PaceInfo > mPaceInfo
Definition: KeyAgreement.h:85
virtual QByteArray getCompressedCardPublicKey()=0
Returns the compressed card's ephemeral public key calculated during key agreement.
CardResult transmitGAEphemeralPublicKey(const QByteArray &pEphemeralPublicKey)
Transmit the General Authenticate (Ephemeral Public Key) command to the card.
Definition: KeyAgreement.cpp:196
static QSharedPointer< KeyAgreement > create(const QSharedPointer< const PaceInfo > &pPaceInfo, QSharedPointer< CardConnectionWorker > pCardConnectionWorker)
Factory method to create an instance of KeyAgreement.
Definition: KeyAgreement.cpp:56
Definition: KeyDerivationFunction.h:17
Implementation of ActivationContext for Intent based activation on Android systems.
Definition: ActivationContext.h:15
KeyAgreementStatus
Definition: KeyAgreement.h:19
Definition: KeyAgreement.h:31
QByteArray mData
Definition: KeyAgreement.h:33
CardReturnCode mReturnCode
Definition: KeyAgreement.h:32