#include <SignatureVerificationData.hpp>
|
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 |
|
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.
◆ isSignatureValid()
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
-
IllegalStateException | If the command has not yet been processed. |
- Since
- 0.1.0
◆ setData()
Sets the signed data, the associated signature and the KIF/KVC of the key to be used for the signature verification.
- Parameters
-
data | The signed data. |
signature | The associated signature. |
kif | The KIF of the key to be used for the signature verification. |
kvc | The KVC of the key to be used for the signature verification. |
- Returns
- The current instance.
- Since
- 0.1.0
◆ setKeyDiversifier()
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
-
diversifier | The 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: