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/buffer.hpp"
29 #include "../encoding/encoder.hpp"
30 #include "../encoding/encoding-buffer.hpp"
59 const Buffer& encryptedKeyBag);
69 const uint8_t* encryptedKey,
70 size_t encryptedKeyLen);
76 template<encoding::Tag TAG>
108 return m_encryptedKeyBag;
115 mutable Block m_wire;
121 #endif // NDN_CXX_SECURITY_SAFE_BAG_HPP
Copyright (c) 2013-2016 Regents of the University of California.
SafeBag()
Create a new empty SafeBag object.
Class representing a wire element of NDN-TLV packet format.
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.
Class representing a general-use automatically managed/resized buffer.