Namespaces | |
tlv | |
Classes | |
class | AccessManager |
Access Manager. More... | |
class | Decryptor |
NAC Decryptor. More... | |
class | EncryptedContent |
Encrypted content. More... | |
class | Encryptor |
NAC Encryptor. More... | |
class | Error |
Typedefs | |
using | ErrorCallback = std::function< void(const ErrorCode &, const std::string &)> |
Enumerations | |
enum class | ErrorCode { KekRetrievalFailure = 1 , KekRetrievalTimeout = 2 , KekInvalidName = 3 , KdkRetrievalFailure = 11 , KdkRetrievalTimeout = 12 , KdkInvalidName = 13 , KdkDecryptionFailure = 14 , CkRetrievalFailure = 21 , CkRetrievalTimeout = 22 , CkInvalidName = 23 , MissingRequiredKeyLocator = 101 , TpmKeyNotFound = 102 , EncryptionFailure = 103 } |
Functions | |
Name | convertKekNameToKdkPrefix (const Name &kekName, const ErrorCallback &onFailure) |
Convert KEK name to KDK prefix: More... | |
std::tuple< Name, Name, Name > | extractKdkInfoFromCkName (const Name &ckDataName, const Name &ckName, const ErrorCallback &onFailure) |
Extract KDK information from name of CK data packet name. More... | |
Variables | |
constexpr size_t | AES_IV_SIZE = 16 |
constexpr size_t | AES_KEY_SIZE = 32 |
const name::Component | CK {"CK"} |
constexpr time::seconds | DEFAULT_CK_FRESHNESS_PERIOD = 1_h |
constexpr time::seconds | DEFAULT_KDK_FRESHNESS_PERIOD = 1_h |
constexpr time::seconds | DEFAULT_KEK_FRESHNESS_PERIOD = 1_h |
const name::Component | ENCRYPTED_BY {"ENCRYPTED-BY"} |
const name::Component | KDK {"KDK"} |
const name::Component | KEK {"KEK"} |
constexpr size_t | N_RETRIES = 3 |
const name::Component | NAC {"NAC"} |
constexpr time::seconds | RETRY_DELAY_AFTER_NACK = 1_s |
constexpr time::seconds | RETRY_DELAY_KEK_RETRIEVAL = 60_s |
using ndn::nac::ErrorCallback = typedef std::function<void(const ErrorCode&, const std::string&)> |
Definition at line 117 of file common.hpp.
|
strong |
Definition at line 98 of file common.hpp.
Name ndn::nac::convertKekNameToKdkPrefix | ( | const Name & | kekName, |
const ErrorCallback & | onFailure | ||
) |
Convert KEK name to KDK prefix:
<identity>/NAC/KEK/<key-id>
=>> <identity>/NAC/KDK/<key-id>
Definition at line 25 of file common.cpp.
std::tuple< Name, Name, Name > ndn::nac::extractKdkInfoFromCkName | ( | const Name & | ckDataName, |
const Name & | ckName, | ||
const ErrorCallback & | onFailure | ||
) |
Extract KDK information from name of CK data packet name.
Definition at line 37 of file common.cpp.
|
inlineconstexpr |
Definition at line 89 of file common.hpp.
|
inlineconstexpr |
Definition at line 88 of file common.hpp.
|
inline |
Definition at line 86 of file common.hpp.
|
inlineconstexpr |
Definition at line 93 of file common.hpp.
|
inlineconstexpr |
Definition at line 92 of file common.hpp.
|
inlineconstexpr |
Definition at line 91 of file common.hpp.
|
inline |
Definition at line 82 of file common.hpp.
|
inline |
Definition at line 85 of file common.hpp.
|
inline |
Definition at line 84 of file common.hpp.
|
constexpr |
Definition at line 34 of file decryptor.cpp.
|
inline |
Definition at line 83 of file common.hpp.
|
inlineconstexpr |
Definition at line 95 of file common.hpp.
|
inlineconstexpr |
Definition at line 96 of file common.hpp.