32 BOOST_CONCEPT_ASSERT((WireEncodable<SafeBag>));
    33 BOOST_CONCEPT_ASSERT((WireDecodable<SafeBag>));
    43                  const Buffer& encryptedKeyBag)
    44   : m_certificate(certificate)
    45   , m_encryptedKeyBag(encryptedKeyBag)
    50                  const uint8_t* encryptedKey,
    51                  size_t encryptedKeyLen)
    52   : m_certificate(certificate)
    53   , m_encryptedKeyBag(encryptedKey, encryptedKeyLen)
    59 template<encoding::Tag TAG>
    63   size_t totalLength = 0;
    67                                                m_encryptedKeyBag.data(),
    68                                                m_encryptedKeyBag.size());
    71   totalLength += this->m_certificate.
wireEncode(encoder);
    73   totalLength += encoder.prependVarNumber(totalLength);
    90   m_wire = buffer.block();
   116     m_encryptedKeyBag = 
Buffer(it->value(), it->value_size());
 
void wireDecode(const Block &wire)
Decode from wire in NDN Packet Format v0.2 or v0.3. 
SafeBag()
Create a new empty SafeBag object. 
void parse() const
Parse TLV-VALUE into sub-elements. 
Represents a TLV element of NDN packet format. 
element_const_iterator elements_begin() const
Equivalent to elements().begin() 
element_const_iterator elements_end() const
Equivalent to elements().end() 
void wireDecode(const Block &wire)
Decode the input from wire format. 
#define NDN_CXX_DEFINE_WIRE_ENCODE_INSTANTIATIONS(ClassName)
a secured container for sensitive information(certificate, private key) 
size_t wireEncode(EncodingImpl< TAG > &encoder, bool wantUnsignedPortionOnly=false) const
Prepend wire encoding to encoder in NDN Packet Format v0.2. 
const Block & wireEncode() const
Encode to a wire format. 
Represents a Data packet. 
General-purpose automatically managed/resized buffer. 
EncodingImpl< EncoderTag > EncodingBuffer
uint32_t type() const
Return the TLV-TYPE of the Block. 
represents an error in TLV encoding or decoding 
EncodingImpl< EstimatorTag > EncodingEstimator