Keypop Calypso Crypto Asymmetric C++ API 0.2.0
Reference Calypso Crypto Asymmetric API for C++
CardCertificaterSpi.hpp
Go to the documentation of this file.
1/**************************************************************************************************
2 * Copyright (c) 2024 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 https://opensource.org/licenses/MIT. *
6 * *
7 * SPDX-License-Identifier: MIT *
8 **************************************************************************************************/
9
10#pragma once
11
12#include <cstdint>
13#include <memory>
14#include <vector>
15
18
19namespace keypop {
20namespace calypso {
21namespace crypto {
22namespace asymmetric {
23namespace certificate {
24namespace spi {
25
32public:
39 virtual const std::vector<uint8_t>& getIssuerPublicKeyReference() const = 0;
40
48 virtual const std::vector<uint8_t>& getCardAid() const = 0;
49
56 virtual const std::vector<uint8_t>& getCardSerialNumber() const = 0;
57
76 virtual const std::shared_ptr<CardPublicKeySpi> checkCertificateAndGetPublicKey(
77 const std::shared_ptr<CaCertificateContentSpi> issuerCertificateContent)
78 = 0;
79};
80
81} /* namespace spi */
82} /* namespace certificate */
83} /* namespace asymmetric */
84} /* namespace crypto */
85} /* namespace calypso */
86} /* namespace keypop */
virtual const std::vector< uint8_t > & getCardSerialNumber() const =0
virtual const std::shared_ptr< CardPublicKeySpi > checkCertificateAndGetPublicKey(const std::shared_ptr< CaCertificateContentSpi > issuerCertificateContent)=0
virtual const std::vector< uint8_t > & getIssuerPublicKeyReference() const =0
virtual const std::vector< uint8_t > & getCardAid() const =0