![]() |
Keyple Card Calypso C++ Library 2.1.0
Reference Terminal Reader API for C++
|
#include <CmdSamCardGenerateKey.h>
Public Member Functions | |
CmdSamCardGenerateKey (const CalypsoSam::ProductType productType, const uint8_t cipheringKif, const uint8_t cipheringKvc, const uint8_t sourceKif, const uint8_t sourceKvc) | |
const std::vector< uint8_t > | getCipheredData () const |
const std::map< const int, const std::shared_ptr< StatusProperties > > & | getStatusTable () const override |
![]() | |
AbstractSamCommand (const CalypsoSamCommand &commandRef) | |
const CalypsoSamCommand & | getCommandRef () const override |
const CalypsoApduCommandException | buildCommandException (const std::type_info &exceptionClass, const std::string &message, const CardCommand &commandRef, const int statusWord) const final |
AbstractSamCommand & | setApduResponse (const std::shared_ptr< ApduResponseApi > apduResponse) override |
void | checkStatus () override |
![]() | |
AbstractApduCommand (const CardCommand &commandRef) | |
virtual void | addSubName (const std::string &subName) final |
virtual const std::string & | getName () const final |
virtual void | setApduRequest (const std::shared_ptr< ApduRequestAdapter > apduRequest) final |
virtual const std::shared_ptr< ApduRequestAdapter > | getApduRequest () const final |
virtual const std::shared_ptr< ApduResponseApi > | getApduResponse () const final |
virtual bool | isSuccessful () const final |
virtual const std::string | getStatusInformation () const final |
Additional Inherited Members | |
![]() | |
static const std::map< const int, const std::shared_ptr< StatusProperties > > | STATUS_TABLE = initStatusTable() |
![]() | |
static const std::map< const int, const std::shared_ptr< StatusProperties > > | STATUS_TABLE |
(package-private)
Builds the Give Random APDU command.
Definition at line 37 of file CmdSamCardGenerateKey.h.
keyple::card::calypso::CmdSamCardGenerateKey::CmdSamCardGenerateKey | ( | const CalypsoSam::ProductType | productType, |
const uint8_t | cipheringKif, | ||
const uint8_t | cipheringKvc, | ||
const uint8_t | sourceKif, | ||
const uint8_t | sourceKvc | ||
) |
(package-private)
Instantiates a new CmdSamCardGenerateKey and generate the ciphered data for a key ciphered by another.
If bot KIF and KVC of the ciphering are equal to 0, the source key is ciphered with the null key.
productType | the SAM product type. |
cipheringKif | The KIF of the ciphering key. |
cipheringKvc | The KVC of the ciphering key. |
sourceKif | The KIF of the source key. |
sourceKvc | The KVC of the source key. |
Definition at line 38 of file CmdSamCardGenerateKey.cpp.
const std::vector< uint8_t > keyple::card::calypso::CmdSamCardGenerateKey::getCipheredData | ( | ) | const |
(package-private)
Gets the 32 bytes of ciphered data.
Definition at line 77 of file CmdSamCardGenerateKey.cpp.
|
overridevirtual |
(package-private)
Returns the internal status table
Reimplemented from keyple::card::calypso::AbstractSamCommand.
Definition at line 110 of file CmdSamCardGenerateKey.cpp.