SSP21-CPP
ssp21
crypto
gen
ContainerEntryType.h
1
//
2
// _ _ ______ _ _ _ _ _ _ _
3
// | \ | | | ____| | (_) | (_) | | | |
4
// | \| | ___ | |__ __| |_| |_ _ _ __ __ _| | | |
5
// | . ` |/ _ \ | __| / _` | | __| | '_ \ / _` | | | |
6
// | |\ | (_) | | |___| (_| | | |_| | | | | (_| |_|_|_|
7
// |_| \_|\___/ |______\__,_|_|\__|_|_| |_|\__, (_|_|_)
8
// __/ |
9
// |___/
10
//
11
// This file is auto-generated. Do not edit manually
12
//
13
// Licensed under the terms of the BSDv3 license
14
//
15
16
#ifndef SSP21_CONTAINERENTRYTYPE_H
17
#define SSP21_CONTAINERENTRYTYPE_H
18
19
#include <cstdint>
20
#include "ser4cpp/util/Uncopyable.h"
21
22
namespace
ssp21
{
23
24
/**
25
enumerates the possible entry types in a container file
26
*/
27
enum class
ContainerEntryType
: uint8_t
28
{
29
/// 256-bit shared secret
30
shared_secret
= 0x0,
31
/// industrial certificate chain
32
certificate_chain
= 0x1,
33
/// X25519 private key
34
x25519_public_key
= 0x2,
35
/// X25519 private key
36
x25519_private_key
= 0x3,
37
/// Ed25519 private key
38
ed25519_public_key = 0x4,
39
/// Ed25519 private key
40
ed25519_private_key = 0x5,
41
/// value not defined
42
undefined
= 0xFF
43
};
44
45
struct
ContainerEntryTypeSpec
:
private
ser4cpp::StaticOnly
46
{
47
typedef
ContainerEntryType
enum_type_t
;
48
49
static
uint8_t to_type(
ContainerEntryType
arg);
50
static
ContainerEntryType
from_type(uint8_t arg);
51
static
const
char
* to_string(
ContainerEntryType
arg);
52
};
53
54
}
55
56
#endif
ssp21
SSP21-cpp main namespace.
Definition:
BufferTypes.h:12
ssp21::ContainerEntryType::undefined
value not defined
ssp21::ContainerEntryType::certificate_chain
industrial certificate chain
ssp21::ContainerEntryType::x25519_public_key
X25519 private key.
ssp21::ContainerEntryType
ContainerEntryType
Definition:
ContainerEntryType.h:27
ssp21::ContainerEntryTypeSpec
Definition:
ContainerEntryType.h:45
ssp21::ContainerEntryType::shared_secret
256-bit shared secret
ssp21::ContainerEntryType::x25519_private_key
X25519 private key.
ser4cpp::StaticOnly
Definition:
Uncopyable.h:46
Generated on Tue Apr 9 2019 11:41:41 for SSP21-CPP by
1.8.15