SSP21-CPP
HandshakeEphemeral.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_HANDSHAKEEPHEMERAL_H
17 #define SSP21_HANDSHAKEEPHEMERAL_H
18 
19 #include <cstdint>
20 #include "ser4cpp/util/Uncopyable.h"
21 
22 namespace ssp21 {
23 
24 /**
25  Specifies the meaning of the ephemeral data in RequestHandshakeBegin
26 */
27 enum class HandshakeEphemeral : uint8_t
28 {
29  /// x25519 algorithm public key
30  x25519 = 0x0,
31  /// 32-byte random nonce
32  nonce = 0x1,
33  /// Empty ephemeral used for QKD mode
34  none = 0x2,
35  /// value not defined
36  undefined = 0xFF
37 };
38 
40 {
42 
43  static uint8_t to_type(HandshakeEphemeral arg);
44  static HandshakeEphemeral from_type(uint8_t arg);
45  static const char* to_string(HandshakeEphemeral arg);
46 };
47 
48 }
49 
50 #endif
SSP21-cpp main namespace.
Definition: BufferTypes.h:12
Empty ephemeral used for QKD mode.
x25519 algorithm public key