Keypop Calypso Crypto Asymmetric C++ API 0.2.0
Reference Calypso Crypto Asymmetric API for C++
|
#include <AsymmetricCryptoCardTransactionManagerFactorySpi copy.hpp>
Public Member Functions | |
virtual std::shared_ptr< AsymmetricCryptoCardTransactionManagerSpi > | createCardTransactionManager () const =0 |
virtual void | initTerminalPkiSession (const std::shared_ptr< CardPublicKeySpi > cardPublicKey)=0 |
virtual void | updateTerminalPkiSession (const std::vector< uint8_t > &cardApdu)=0 |
virtual bool | isCardPkiSessionValid (const std::vector< uint8_t > &cardSessionSignature)=0 |
Factory of AsymmetricCryptoCardTransactionManagerSpi.
Calypso card asymmetric key cryptography service.
It defines the API needed by a terminal to perform the cryptographic operations required by a Calypso card when using asymmetric keys.
An instance of this interface can be obtained via the method AsymmetricCryptoCardTransactionManagerFactorySpi::createCardTransactionManager().
Definition at line 28 of file AsymmetricCryptoCardTransactionManagerFactorySpi copy.hpp.
|
pure virtual |
Returns a new instance of AsymmetricCryptoCardTransactionManagerSpi.
|
pure virtual |
Initialize the cryptographic context for a new secure session in PKI mode with the provided card public key.
cardPublicKey | The card public key. |
AsymmetricCryptoException | If the provided public key value is not compliant with the current elliptic curve or if an error occurs during the initialization. |
|
pure virtual |
Verifies the provided secure session signature (a 64-byte byte array) from the previously initialized and updated context.
cardSessionSignature | The card signature. |
AsymmetricCryptoException | If an error occurs while verifying the signature. |
|
pure virtual |
Updates the session signature verification engine with data sent or received from the card as a byte array.
In the case of ingoing data, the input length must be >= 5.
In the case of outgoing data, the input length must be >= 2.
cardApdu | The APDU bytes exchanged with the card (ingoing or outgoing). |
AsymmetricCryptoException | If an error occurs while updating the session. |