7 #ifndef NDN_SECURITY_SECURED_BAG_HPP
8 #define NDN_SECURITY_SECURED_BAG_HPP
10 #include "../common.hpp"
12 #include "../encoding/tlv-security.hpp"
19 class Error :
public std::runtime_error
24 : std::runtime_error(what)
60 shared_ptr<Buffer> key = make_shared<Buffer>(wireKey.
value(), wireKey.
value_size());
92 #endif //NDN_SECURITY_IDENTITY_CERTIFICATE_HPP
void wireDecode(const Block &wire)
ConstBufferPtr getKey() const
Class representing wire element of the NDN packet.
void wireDecode(const Block &wire)
size_t wireEncode(EncodingImpl< T > &block, bool unsignedPortion=false) const
Fast encoding or block size estimation.
ptr_lib::shared_ptr< const Buffer > ConstBufferPtr
Block blockFromValue() const
Error(const std::string &what)
const Block & get(uint32_t type) const
Get the first subelement of the requested type.
void push_back(const Block &element)
size_t value_size() const
void parse() const
Parse wire buffer into subblocks.
void encode()
Encode subblocks into wire buffer.
const IdentityCertificate & getCertificate() const
SecuredBag(const IdentityCertificate &cert, ConstBufferPtr key)
const uint8_t * value() const
const Block & wireEncode() const