24 #ifndef NDN_CXX_SECURITY_SAFE_BAG_HPP 25 #define NDN_CXX_SECURITY_SAFE_BAG_HPP 58 const Buffer& encryptedKeyBag);
68 const uint8_t* encryptedKey,
69 size_t encryptedKeyLen);
75 template<encoding::Tag TAG>
107 return m_encryptedKeyBag;
114 mutable Block m_wire;
122 #endif // NDN_CXX_SECURITY_SAFE_BAG_HPP
SafeBag()
Create a new empty SafeBag object.
Represents a TLV element of the NDN packet format.
#define NDN_CXX_DECLARE_WIRE_ENCODE_INSTANTIATIONS(ClassName)
const Buffer & getEncryptedKeyBag() const
Get the private key in PKCS#8 from safe bag.
const Data & getCertificate() const
Get the certificate data packet from safe bag.
void wireDecode(const Block &wire)
Decode the input from wire format.
a secured container for sensitive information(certificate, private key)
const Block & wireEncode() const
Encode to a wire format.
Represents a Data packet.
General-purpose automatically managed/resized buffer.