SSP21-CPP
ssp21
crypto
gen
PublicKeyType.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_PUBLICKEYTYPE_H
17
#define SSP21_PUBLICKEYTYPE_H
18
19
#include <cstdint>
20
#include "ser4cpp/util/Uncopyable.h"
21
22
namespace
ssp21
{
23
24
/**
25
Defines the type of the public key embedded in a certificate body
26
*/
27
enum class
PublicKeyType
: uint8_t
28
{
29
/// The key is an Ed25519 DSA public key
30
Ed25519
= 0x0,
31
/// The key is an x25519 DH key
32
X25519
= 0x1,
33
/// value not defined
34
undefined
= 0xFF
35
};
36
37
struct
PublicKeyTypeSpec
:
private
ser4cpp::StaticOnly
38
{
39
typedef
PublicKeyType
enum_type_t
;
40
41
static
uint8_t to_type(
PublicKeyType
arg);
42
static
PublicKeyType
from_type(uint8_t arg);
43
static
const
char
* to_string(
PublicKeyType
arg);
44
};
45
46
}
47
48
#endif
ssp21
SSP21-cpp main namespace.
Definition:
BufferTypes.h:12
ssp21::ContainerEntryType::undefined
value not defined
ssp21::PublicKeyType
PublicKeyType
Definition:
PublicKeyType.h:27
ssp21::PublicKeyType::Ed25519
The key is an Ed25519 DSA public key.
ssp21::PublicKeyType::X25519
The key is an x25519 DH key.
ser4cpp::StaticOnly
Definition:
Uncopyable.h:46
ssp21::PublicKeyTypeSpec
Definition:
PublicKeyType.h:37
Generated on Tue Apr 9 2019 11:41:41 for SSP21-CPP by
1.8.15