Keypop Calypso Crypto Legacy SAM C++ API - 1.0.0
Component of the Keypop C++ API
ReadTransactionManager.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
15
16namespace keypop {
17namespace calypso {
18namespace crypto {
19namespace legacysam {
20namespace transaction {
21
28template <typename T>
30public:
40 virtual T& prepareReadSamParameters() = 0;
41
54 virtual T& prepareReadSystemKeyParameters(const SystemKeyType systemKeyType)
55 = 0;
56
70 virtual T& prepareReadWorkKeyParameters(const int recordNumber) = 0;
71
84 virtual T&
85 prepareReadWorkKeyParameters(const uint8_t kif, const uint8_t kvc) = 0;
86
102 virtual T& prepareReadCounterStatus(const int counterNumber) = 0;
103
112};
113
114} /* namespace transaction */
115} /* namespace legacysam */
116} /* namespace crypto */
117} /* namespace calypso */
118} /* namespace keypop */
virtual T & prepareReadWorkKeyParameters(const uint8_t kif, const uint8_t kvc)=0
Schedules the execution of a "Read Key Parameters" command for a work key referenced by its KIF and K...
virtual T & prepareReadAllCountersStatus()=0
Schedules the execution of a "Read Event Counter" and "Read Ceiling" commands to read the status of a...
virtual T & prepareReadSystemKeyParameters(const SystemKeyType systemKeyType)=0
Schedules the execution of a "Read Key Parameters" command for a system key.
virtual T & prepareReadWorkKeyParameters(const int recordNumber)=0
Schedules the execution of a "Read Key Parameters" command for a work key referenced by its record nu...
virtual T & prepareReadSamParameters()=0
Schedules the execution of a "Read Parameters" command for the SAM.
virtual T & prepareReadCounterStatus(const int counterNumber)=0
Schedules the execution of a "Read Event Counter" and "Read Ceiling" commands to read the status of a...
Common API for all legacy SAM transaction managers.
SystemKeyType
Enumeration of the system key types of a Legacy Sam.