Keypop Calypso Crypto Legacy SAM C++ API - 1.0.0
Component of the Keypop C++ API
LegacyCardCertificateComputationData.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 <ctime>
15#include <memory>
16#include <vector>
17
18namespace keypop {
19namespace calypso {
20namespace crypto {
21namespace legacysam {
22namespace transaction {
23
33public:
48 setCardPublicKey(const std::vector<uint8_t>& cardPublicKey)
49 = 0;
50
64 setStartDate(const tm& startDate)
65 = 0;
66
79 = 0;
80
94 setCardAid(const std::vector<uint8_t>& aid)
95 = 0;
96
109 setCardSerialNumber(const std::vector<uint8_t>& serialNumber)
110 = 0;
111
124 setCardStartupInfo(const std::vector<uint8_t>& startupInfo)
125 = 0;
126
135 virtual const std::vector<uint8_t>& getCertificate() const = 0;
136};
137
138} /* namespace transaction */
139} /* namespace legacysam */
140} /* namespace crypto */
141} /* namespace calypso */
142} /* namespace keypop */
Contains the input/output data of the ::prepareComputeCardCertificate(LegacyCardCertificateComputatio...
virtual LegacyCardCertificateComputationData & setCardSerialNumber(const std::vector< uint8_t > &serialNumber)=0
Sets the serial number of the card for which the certificate is being generated.
virtual LegacyCardCertificateComputationData & setStartDate(const tm &startDate)=0
Sets the start date of the validity period of the certificate's public key.
virtual const std::vector< uint8_t > & getCertificate() const =0
Returns the certificate generated by the SAM after the execution of the "PSO Compute Certificate" com...
virtual LegacyCardCertificateComputationData & setCardPublicKey(const std::vector< uint8_t > &cardPublicKey)=0
Sets the public key of the card, provided as a 64-byte array.
virtual LegacyCardCertificateComputationData & setCardAid(const std::vector< uint8_t > &aid)=0
Sets the AID of the autonomous PKI application of the target card.
virtual LegacyCardCertificateComputationData & setEndDate(const tm &endDate)=0
Sets the end date of the validity period of the certificate's public key.
virtual LegacyCardCertificateComputationData & setCardStartupInfo(const std::vector< uint8_t > &startupInfo)=0
Sets the startup info of the card for which the certificate is being generated.