23 #ifndef NDN_ENCRYPTOR_HPP
24 #define NDN_ENCRYPTOR_HPP
26 #include "../../data.hpp"
27 #include "encrypt-params.hpp"
59 getNAME_COMPONENT_FOR() {
return getValues().NAME_COMPONENT_FOR; }
62 getNAME_COMPONENT_READ() {
return getValues().NAME_COMPONENT_READ; }
65 getNAME_COMPONENT_SAMPLE() {
return getValues().NAME_COMPONENT_SAMPLE; }
68 getNAME_COMPONENT_ACCESS() {
return getValues().NAME_COMPONENT_ACCESS; }
71 getNAME_COMPONENT_E_KEY() {
return getValues().NAME_COMPONENT_E_KEY; }
74 getNAME_COMPONENT_D_KEY() {
return getValues().NAME_COMPONENT_D_KEY; }
77 getNAME_COMPONENT_C_KEY() {
return getValues().NAME_COMPONENT_C_KEY; }
86 : NAME_COMPONENT_FOR(
"FOR"),
87 NAME_COMPONENT_READ(
"READ"),
88 NAME_COMPONENT_SAMPLE(
"SAMPLE"),
89 NAME_COMPONENT_ACCESS(
"ACCESS"),
90 NAME_COMPONENT_E_KEY(
"E-KEY"),
91 NAME_COMPONENT_D_KEY(
"D-KEY"),
92 NAME_COMPONENT_C_KEY(
"C-KEY")
113 values_ =
new Values();
118 static Values* values_;
Copyright (C) 2013-2016 Regents of the University of California.
Definition: common.hpp:36
An EncryptParams holds an algorithm type and other parameters used to encrypt and decrypt...
Definition: encrypt-params.hpp:36
Encryptor has static constants and utility methods for encryption, such as encryptData.
Definition: encryptor.hpp:35
A Name::Component holds a read-only name component value.
Definition: name.hpp:45
A Name holds an array of Name::Component and represents an NDN name.
Definition: name.hpp:40
A Blob holds a pointer to an immutable byte array implemented as const std::vector.
Definition: blob.hpp:42
static void encryptData(Data &data, const Blob &payload, const Name &keyName, const Blob &key, const EncryptParams ¶ms)
Prepare an encrypted data packet by encrypting the payload using the key according to the params...
Definition: encryptor.cpp:109