SSP21-CPP
KeyRecord.h
1 
2 #ifndef SSP21_KEYRECORD_H
3 #define SSP21_KEYRECORD_H
4 
5 #include "ssp21/crypto/BufferTypes.h"
6 
7 #include <memory>
8 
9 namespace ssp21
10 {
11  /**
12  * symmetric key + 64-bit identifier
13  */
14  class KeyRecord
15  {
16  public:
17 
18  KeyRecord() = delete;
19 
20  KeyRecord(uint64_t id, const ssp21::seq32_t& key);
21 
22  const uint64_t id;
23  const std::shared_ptr<const SymmetricKey> key;
24 
25  private:
26 
27  static std::shared_ptr<const SymmetricKey> create_key(const ssp21::seq32_t& key);
28  };
29 
30 
31 
32 
33 }
34 
35 #endif
SSP21-cpp main namespace.
Definition: BufferTypes.h:12