Keypop Calypso Crypto Legacy SAM C++ API 0.6.0
Reference Calypso Crypto Legacy SAM API for C++
Public Member Functions | List of all members
keypop::calypso::crypto::legacysam::transaction::SignatureVerificationData< T > Class Template Referenceabstract

#include <SignatureVerificationData.hpp>

Public Member Functions

virtual T & setData (const std::vector< uint8_t > &data, const std::vector< uint8_t > &signature, const uint8_t kif, const uint8_t kvc)=0
 
virtual T & setKeyDiversifier (const std::vector< uint8_t > &diversifier)=0
 
virtual bool isSignatureValid () const =0
 

Detailed Description

template<typename T>
class keypop::calypso::crypto::legacysam::transaction::SignatureVerificationData< T >

Contains the input/output data of the FreeTransactionManager#prepareVerifySignature(SignatureVerificationData) method for common signature verification modes.

Parameters
<T>The type of the lowest level child object.
Since
0.1.0

Definition at line 30 of file SignatureVerificationData.hpp.

Member Function Documentation

◆ isSignatureValid()

template<typename T >
virtual bool keypop::calypso::crypto::legacysam::transaction::SignatureVerificationData< T >::isSignatureValid ( ) const
pure virtual

Returns the result of the signature verification process by indicating if the signature is valid or not.

Returns
True if the signature is valid.
Exceptions
IllegalStateExceptionIf the command has not yet been processed.
Since
0.1.0

◆ setData()

template<typename T >
virtual T & keypop::calypso::crypto::legacysam::transaction::SignatureVerificationData< T >::setData ( const std::vector< uint8_t > &  data,
const std::vector< uint8_t > &  signature,
const uint8_t  kif,
const uint8_t  kvc 
)
pure virtual

Sets the signed data, the associated signature and the KIF/KVC of the key to be used for the signature verification.

Parameters
dataThe signed data.
signatureThe associated signature.
kifThe KIF of the key to be used for the signature verification.
kvcThe KVC of the key to be used for the signature verification.
Returns
The current instance.
Since
0.1.0

◆ setKeyDiversifier()

template<typename T >
virtual T & keypop::calypso::crypto::legacysam::transaction::SignatureVerificationData< T >::setKeyDiversifier ( const std::vector< uint8_t > &  diversifier)
pure virtual

Sets a specific key diversifier to use before verifying the signature (optional).

By default, the key diversification is performed with the full serial number of the target card or SAM depending on the transaction context (Card or SAM transaction).

Parameters
diversifierThe diversifier to be used (from 1 to 8 bytes long).
Returns
The current instance.
Since
0.1.0

The documentation for this class was generated from the following file: