SSP21-CPP
ssp21
crypto
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
SSP21-cpp main namespace.
Definition:
BufferTypes.h:12
ssp21::KeyRecord
Definition:
KeyRecord.h:14
ser4cpp::RSeq
Definition:
RSeq.h:45
Generated on Tue Apr 9 2019 11:41:41 for SSP21-CPP by
1.8.15