23 #include "../../encoding/tlv-security.hpp" 24 #include "../../util/concepts.hpp" 33 static_assert(std::is_base_of<tlv::Error, SecuredBag::Error>::value,
34 "SecuredBag::Error must inherit from tlv::Error");
70 shared_ptr<Buffer> key = make_shared<Buffer>(wireKey.
value(), wireKey.
value_size());
Copyright (c) 2013-2017 Regents of the University of California.
Represents a TLV element of NDN packet format.
BOOST_CONCEPT_ASSERT((WireEncodable< Certificate >))
void wireDecode(const Block &wire)
size_t wireEncode(EncodingImpl< TAG > &encoder, bool wantUnsignedPortionOnly=false) const
Fast encoding or block size estimation.
void wireDecode(const Block &wire)
Block blockFromValue() const
const Block & get(uint32_t type) const
Get the first sub element of specified TLV-TYPE.
void push_back(const Block &element)
Append a sub element.
size_t value_size() const
Get size of TLV-VALUE aka TLV-LENGTH.
void parse() const
Parse TLV-VALUE into sub elements.
void encode()
Encode sub elements into TLV-VALUE.
const uint8_t * value() const
Get pointer to TLV-VALUE.
const Block & wireEncode() const
shared_ptr< const Buffer > ConstBufferPtr