SSP21-CPP
ssp21
crypto
gen
HandshakeMode.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_HANDSHAKEMODE_H
17
#define SSP21_HANDSHAKEMODE_H
18
19
#include <cstdint>
20
#include "ser4cpp/util/Uncopyable.h"
21
22
namespace
ssp21
{
23
24
/**
25
specifies how key derivation occurs
26
*/
27
enum class
HandshakeMode
: uint8_t
28
{
29
/// both parties have a shared secret
30
shared_secret
= 0x0,
31
/// both parties know each others public DH keys
32
preshared_public_keys
= 0x1,
33
/// Industrial certificate format
34
industrial_certificates
= 0x2,
35
/// Single-use shared secrets
36
quantum_key_distribution
= 0x3,
37
/// value not defined
38
undefined
= 0xFF
39
};
40
41
struct
HandshakeModeSpec
:
private
ser4cpp::StaticOnly
42
{
43
typedef
HandshakeMode
enum_type_t
;
44
45
static
uint8_t to_type(
HandshakeMode
arg);
46
static
HandshakeMode
from_type(uint8_t arg);
47
static
const
char
* to_string(
HandshakeMode
arg);
48
};
49
50
}
51
52
#endif
ssp21
SSP21-cpp main namespace.
Definition:
BufferTypes.h:12
ssp21::HandshakeMode::preshared_public_keys
both parties know each others public DH keys
ssp21::ContainerEntryType::undefined
value not defined
ssp21::HandshakeMode
HandshakeMode
Definition:
HandshakeMode.h:27
ssp21::ContainerEntryType::shared_secret
256-bit shared secret
ssp21::HandshakeModeSpec
Definition:
HandshakeMode.h:41
ssp21::HandshakeMode::quantum_key_distribution
Single-use shared secrets.
ssp21::HandshakeMode::industrial_certificates
Industrial certificate format.
ser4cpp::StaticOnly
Definition:
Uncopyable.h:46
Generated on Tue Apr 9 2019 11:41:41 for SSP21-CPP by
1.8.15