SSP21-CPP
NonceMode.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_NONCEMODE_H
17 #define SSP21_NONCEMODE_H
18 
19 #include <cstdint>
20 #include "ser4cpp/util/Uncopyable.h"
21 
22 namespace ssp21 {
23 
24 /**
25  Determines how nonces are verified during the session
26 */
27 enum class NonceMode : uint8_t
28 {
29  /// new nonce must strictly be equal to last nonce plus one
30  increment_last_rx = 0x0,
31  /// new nonce must be greater than last nonce
33  /// value not defined
34  undefined = 0xFF
35 };
36 
38 {
39  typedef NonceMode enum_type_t;
40 
41  static uint8_t to_type(NonceMode arg);
42  static NonceMode from_type(uint8_t arg);
43  static const char* to_string(NonceMode arg);
44 };
45 
46 }
47 
48 #endif
SSP21-cpp main namespace.
Definition: BufferTypes.h:12
new nonce must strictly be equal to last nonce plus one
NonceMode
Definition: NonceMode.h:27
new nonce must be greater than last nonce