24 #ifndef NDN_CXX_SECURITY_SAFE_BAG_HPP
25 #define NDN_CXX_SECURITY_SAFE_BAG_HPP
57 SafeBag(
const Data& certificate, span<const uint8_t> encryptedKey);
62 template<encoding::Tag TAG>
94 return m_encryptedKey;
101 mutable Block m_wire;
Represents a TLV element of the NDN packet format.
General-purpose automatically managed/resized buffer.
Represents a Data packet.
A secured container for sensitive information (certificate, private key)
span< const uint8_t > getEncryptedKey() const
Get the private key in PKCS #8 format from safe bag.
void wireDecode(const Block &wire)
Decode the input from wire format.
SafeBag()
Create a new empty SafeBag object.
const Data & getCertificate() const
Get the certificate data packet from safe bag.
const Block & wireEncode() const
Encode to wire format.
#define NDN_CXX_DECLARE_WIRE_ENCODE_INSTANTIATIONS(ClassName)
Contains the ndn-cxx security framework.