Keypop Calypso Crypto Legacy SAM C++ API - 1.0.0
Component of the Keypop C++ API
SystemKeyType.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
13namespace keypop {
14namespace calypso {
15namespace crypto {
16namespace legacysam {
17
25enum class SystemKeyType {
26 UNKNOWN = 0,
27
35
42
49
56};
57
58inline const char*
59name(SystemKeyType systemKeyType) {
60 switch (systemKeyType) {
62 return "PERSONALIZATION";
64 return "KEY_MANAGEMENT";
66 return "RELOADING";
68 return "AUTHENTICATION";
69 default:
70 return "UNKNOWN";
71 }
72}
73
74} /* namespace legacysam */
75} /* namespace crypto */
76} /* namespace calypso */
77} /* namespace keypop */
const char * name(GetDataTag getDataTag)
Definition: GetDataTag.hpp:37
SystemKeyType
Enumeration of the system key types of a Legacy Sam.
@ KEY_MANAGEMENT
Work file key, to decipher and authorize the writing of work keys.
@ PERSONALIZATION
Personalization key, to decipher and authorize the writing of parameters and system keys.
@ RELOADING
Reloading key, to decipher and authorize the writing of counter ceilings.
@ AUTHENTICATION
Authentication key, to generate the signature of data read from the SAM.