Keypop Calypso Crypto Legacy SAM C++ API 0.6.0
Reference Calypso Crypto Legacy SAM API for C++
|
#include <LegacySam.hpp>
Public Types | |
enum class | ProductType { SAM_C1 , HSM_C1 , SAM_S1E1 , SAM_S1DX , UNKNOWN } |
Public Member Functions | |
virtual ProductType | getProductType () const =0 |
virtual const std::string & | getProductInfo () const =0 |
virtual const std::vector< uint8_t > & | getSerialNumber () const =0 |
virtual uint8_t | getPlatform () const =0 |
virtual uint8_t | getApplicationType () const =0 |
virtual uint8_t | getApplicationSubType () const =0 |
virtual uint8_t | getSoftwareIssuer () const =0 |
virtual uint8_t | getSoftwareVersion () const =0 |
virtual uint8_t | getSoftwareRevision () const =0 |
virtual std::shared_ptr< int > | getCounter (const int counterNumber) const =0 |
virtual const std::map< const int, const int > & | getCounters () const =0 |
virtual CounterIncrementAccess | getCounterIncrementAccess (const int counterNumber) const =0 |
virtual std::shared_ptr< int > | getCounterCeiling (const int counterNumber) const =0 |
virtual const std::map< const int, const int > & | getCounterCeilings () const =0 |
virtual KeyParameter | getSystemKeyParameter (const SystemKeyType systemKeyType) const =0 |
virtual const std::vector< uint8_t > & | getCaCertificate () const =0 |
Extends the SmartCard interface of the "Keypop Reader API" to provide additional functionality specific to Calypso legacy SAMs.
An instance of
is obtained by casting the SmartCard object from the selection process defined by the "Keypop Reader API".
It is a dynamic view of the SAM's content, regularly updated from the selection stage to the end of the transaction.
Definition at line 43 of file LegacySam.hpp.
|
strong |
All Calypso SAM products supported by this API.
Enumerator | |
---|---|
SAM_C1 | SAM C1
|
HSM_C1 | SAM C1 HSM
|
SAM_S1E1 | SAM S1E1
|
SAM_S1DX | SAM S1Dx
|
UNKNOWN | Unidentified smart card.
|
Definition at line 50 of file LegacySam.hpp.
|
pure virtual |
Returns the application subtype.
|
pure virtual |
Returns the application type.
|
pure virtual |
Gets the CA certificate retrieved from the SAM as a 384-byte byte array.
|
pure virtual |
Returns the value of a counter.
counterNumber | The number of the counter (in range [0..26]). |
|
pure virtual |
Returns the value of a counter ceiling.
counterNumber | The number of the counter ceiling (in range [0..26]). |
|
pure virtual |
Returns the value of known counter ceilings in a sorted map where
is the ceiling number and
is the ceiling value.
|
pure virtual |
Returns the counter increment access mode.
counterNumber | The number of the counter being checked. |
|
pure virtual |
Returns the value of known counters in a sorted map where
is the counter number and
is the counter value.
|
pure virtual |
Returns the platform identifier.
|
pure virtual |
Returns a text description of the SAM.
|
pure virtual |
Returns the SAM product type.
|
pure virtual |
Returns the SAM serial number as a byte array.
|
pure virtual |
Returns the software issuer identifier.
|
pure virtual |
Returns the software revision number.
|
pure virtual |
Returns the software version number.
|
pure virtual |
Returns the parameters of the system key whose type is provided.
systemKeyType | The type of system key. |