Keypop Calypso Crypto Legacy SAM C++ API - 1.0.0
Component of the Keypop C++ API
KeyParameter.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 <vector>
15
16namespace keypop {
17namespace calypso {
18namespace crypto {
19namespace legacysam {
20namespace sam {
21
29public:
37 virtual const std::vector<uint8_t>& getRawData() const = 0;
38
45 virtual uint8_t getKif() const = 0;
46
53 virtual uint8_t getKvc() const = 0;
54
61 virtual uint8_t getAlgorithm() const = 0;
62
72 virtual uint8_t getParameterValue(const int parameterNumber) const = 0;
73};
74
75} /* namespace sam */
76} /* namespace legacysam */
77} /* namespace crypto */
78} /* namespace calypso */
79} /* namespace keypop */
POJO containing the parameters for a key managed by SAM, whether it's a system key or a work key.
virtual uint8_t getParameterValue(const int parameterNumber) const =0
Returns the value of the parameter whose number is provided.
virtual uint8_t getKif() const =0
Returns the key identifier (KIF).
virtual uint8_t getAlgorithm() const =0
Returns the key algorithm.
virtual const std::vector< uint8_t > & getRawData() const =0
Retrieves the raw data of the key's parameters.
virtual uint8_t getKvc() const =0
Returns the key version (KVC).