Keypop Calypso Crypto Legacy SAM C++ API - 1.0.0
Component of the Keypop C++ API
FreeTransactionManager.hpp
Go to the documentation of this file.
1/******************************************************************************
2 * Copyright (c) 2025 Calypso Networks Association https://calypsonet.org/ *
3 * *
4 * This program and the accompanying materials are made available under the *
5 * terms of the MIT License which is available at *
6 * https://opensource.org/licenses/MIT. *
7 * *
8 * SPDX-License-Identifier: MIT *
9 ******************************************************************************/
10
11#pragma once
12
13#include <cstdint>
14#include <memory>
15#include <string>
16#include <vector>
17
24
25namespace keypop {
26namespace calypso {
27namespace crypto {
28namespace legacysam {
29namespace transaction {
30
41: public ReadTransactionManager<FreeTransactionManager> {
42public:
55
70 const std::shared_ptr<KeyPairContainer> keyPairContainer)
71 = 0;
72
88 const std::shared_ptr<LegacyCardCertificateComputationData> data)
89 = 0;
90
105 const uint8_t lockIndex,
106 const uint8_t lockParameters,
107 const std::vector<uint8_t>& lockValue)
108 = 0;
109
146 const std::shared_ptr<SignatureComputationDataBase> data)
147 = 0;
148
171 const std::shared_ptr<SignatureVerificationDataBase> data)
172 = 0;
173
187};
188
189} /* namespace transaction */
190} /* namespace legacysam */
191} /* namespace crypto */
192} /* namespace calypso */
193} /* namespace keypop */
Transaction manager dedicated to operations performed without control SAM.
virtual std::string exportTargetSamContextForAsyncTransaction()=0
Executes the required commands to obtain the security context, which will be used for future asynchro...
virtual FreeTransactionManager & prepareVerifySignature(const std::shared_ptr< SignatureVerificationDataBase > data)=0
Schedules the execution of a "Data Cipher" or "PSO Verify Signature" command.
virtual FreeTransactionManager & prepareComputeSignature(const std::shared_ptr< SignatureComputationDataBase > data)=0
Schedules the execution of a "Data Cipher" or "PSO Compute Signature" command.
virtual FreeTransactionManager & preparePlainWriteLock(const uint8_t lockIndex, const uint8_t lockParameters, const std::vector< uint8_t > &lockValue)=0
Schedules the execution of a "Write Key" command to set the lock file of the SAM.
virtual FreeTransactionManager & prepareGenerateCardAsymmetricKeyPair(const std::shared_ptr< KeyPairContainer > keyPairContainer)=0
Schedules the execution of "Card Generate Asymmetric Key Pair" command.
virtual FreeTransactionManager & prepareGetData(GetDataTag tag)=0
Schedules the execution of a "Get Data" command for the specified tag.
virtual FreeTransactionManager & prepareComputeCardCertificate(const std::shared_ptr< LegacyCardCertificateComputationData > data)=0
Schedules the execution of a "PSO Compute Certificate" command.
GetDataTag
Enumeration of all output data tags.
Definition: GetDataTag.hpp:25