Encrypted content. More...
#include <encrypted-content.hpp>
Classes | |
class | Error |
Public Member Functions | |
EncryptedContent ()=default | |
EncryptedContent (const Block &block) | |
const Block & | getIv () const |
const Name & | getKeyLocator () const |
const Block & | getPayload () const |
const Block & | getPayloadKey () const |
bool | hasIv () const noexcept |
bool | hasKeyLocator () const |
bool | hasPayloadKey () const noexcept |
EncryptedContent & | setIv (Block iv) |
EncryptedContent & | setIv (ConstBufferPtr iv) |
EncryptedContent & | setKeyLocator (Name keyLocator) |
EncryptedContent & | setPayload (Block payload) |
EncryptedContent & | setPayload (ConstBufferPtr payload) |
EncryptedContent & | setPayloadKey (Block key) |
EncryptedContent & | setPayloadKey (ConstBufferPtr key) |
EncryptedContent & | unsetIv () |
EncryptedContent & | unsetKeyLocator () |
EncryptedContent & | unsetPayloadKey () |
void | wireDecode (const Block &wire) |
const Block & | wireEncode () const |
template<encoding::Tag TAG> | |
size_t | wireEncode (EncodingImpl< TAG > &block) const |
Encrypted content.
* EncryptedContent ::= ENCRYPTED-CONTENT-TYPE TLV-LENGTH * InitializationVector * EncryptedPayload * EncryptedPayloadKey * Name * * InitializationVector ::= INITIALIZATION-VECTOR-TYPE TLV-LENGTH(=N) BYTE{N} * EncryptedPayload ::= ENCRYPTED-PAYLOAD-TYPE TLV-LENGTH(=N) BYTE{N} * EncryptedPayloadKey ::= ENCRYPTED-PAYLOAD-KEY-TYPE TLV-LENGTH(=N) BYTE{N} *
Definition at line 44 of file encrypted-content.hpp.
|
default |
|
explicit |
Definition at line 33 of file encrypted-content.cpp.
|
inline |
Definition at line 78 of file encrypted-content.hpp.
|
inline |
Definition at line 120 of file encrypted-content.hpp.
|
inline |
Definition at line 60 of file encrypted-content.hpp.
|
inline |
Definition at line 99 of file encrypted-content.hpp.
|
inlinenoexcept |
Definition at line 72 of file encrypted-content.hpp.
|
inline |
Definition at line 114 of file encrypted-content.hpp.
|
inlinenoexcept |
Definition at line 93 of file encrypted-content.hpp.
EncryptedContent & ndn::nac::EncryptedContent::setIv | ( | Block | iv | ) |
Definition at line 60 of file encrypted-content.cpp.
EncryptedContent & ndn::nac::EncryptedContent::setIv | ( | ConstBufferPtr | iv | ) |
Definition at line 73 of file encrypted-content.cpp.
EncryptedContent & ndn::nac::EncryptedContent::setKeyLocator | ( | Name | keyLocator | ) |
Definition at line 118 of file encrypted-content.cpp.
EncryptedContent & ndn::nac::EncryptedContent::setPayload | ( | Block | payload | ) |
Definition at line 39 of file encrypted-content.cpp.
EncryptedContent & ndn::nac::EncryptedContent::setPayload | ( | ConstBufferPtr | payload | ) |
Definition at line 52 of file encrypted-content.cpp.
EncryptedContent & ndn::nac::EncryptedContent::setPayloadKey | ( | Block | key | ) |
Definition at line 89 of file encrypted-content.cpp.
EncryptedContent & ndn::nac::EncryptedContent::setPayloadKey | ( | ConstBufferPtr | key | ) |
Definition at line 102 of file encrypted-content.cpp.
EncryptedContent & ndn::nac::EncryptedContent::unsetIv | ( | ) |
Definition at line 81 of file encrypted-content.cpp.
EncryptedContent & ndn::nac::EncryptedContent::unsetKeyLocator | ( | ) |
Definition at line 126 of file encrypted-content.cpp.
EncryptedContent & ndn::nac::EncryptedContent::unsetPayloadKey | ( | ) |
Definition at line 110 of file encrypted-content.cpp.
void ndn::nac::EncryptedContent::wireDecode | ( | const Block & | wire | ) |
Definition at line 180 of file encrypted-content.cpp.
const Block & ndn::nac::EncryptedContent::wireEncode | ( | ) | const |
Definition at line 164 of file encrypted-content.cpp.
size_t ndn::nac::EncryptedContent::wireEncode | ( | EncodingImpl< TAG > & | block | ) | const |
Definition at line 135 of file encrypted-content.cpp.