23 #ifndef NDN_CXX_SECURITY_SAFE_BAG_HPP 24 #define NDN_CXX_SECURITY_SAFE_BAG_HPP 26 #include "../common.hpp" 27 #include "../data.hpp" 28 #include "../encoding/block.hpp" 29 #include "../encoding/buffer.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 Copyright (c) 2013-2017 Regents of the University of California.
SafeBag()
Create a new empty SafeBag object.
Represents a TLV element of NDN packet format.
#define NDN_CXX_DECLARE_WIRE_ENCODE_INSTANTIATIONS(ClassName)
void wireDecode(const Block &wire)
Decode the input from wire format.
const Buffer & getEncryptedKeyBag() const
Get the private key in PKCS#8 from safe bag.
a secured container for sensitive information(certificate, private key)
const Data & getCertificate() const
Get the certificate data packet from safe bag.
const Block & wireEncode() const
Encode to a wire format.
Represents a Data packet.
General-purpose automatically managed/resized buffer.