Keypop Calypso Crypto Asymmetric C++ API 0.2.0
Reference Calypso Crypto Asymmetric API for C++
AsymmetricCryptoCardTransactionManagerFactorySpi.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 <memory>
13#include <vector>
14
16
17namespace keypop {
18namespace calypso {
19namespace crypto {
20namespace asymmetric {
21namespace transaction {
22namespace spi {
23
25
37class AsymmetricCryptoCardTransactionManagerSpi {
38public:
48 virtual void initTerminalPkiSession(const std::shared_ptr<CardPublicKeySpi> cardPublicKey) = 0;
49
62 virtual void updateTerminalPkiSession(const std::vector<uint8_t>& cardApdu) = 0;
63
73 virtual bool isCardPkiSessionValid(const std::vector<uint8_t>& cardSessionSignature) = 0;
74};
75
76} /* namespace spi */
77} /* namespace transaction */
78} /* namespace asymmetric */
79} /* namespace crypto */
80} /* namespace calypso */
81} /* namespace keypop */
virtual bool isCardPkiSessionValid(const std::vector< uint8_t > &cardSessionSignature)=0
virtual void initTerminalPkiSession(const std::shared_ptr< CardPublicKeySpi > cardPublicKey)=0