20 #ifndef NDN_NAC_ENCRYPTED_CONTENT_HPP
21 #define NDN_NAC_ENCRYPTED_CONTENT_HPP
25 #include <ndn-cxx/encoding/tlv.hpp>
47 class Error :
public ndn::tlv::Error
50 using ndn::tlv::Error::Error;
74 return m_iv.isValid();
90 setIv(ConstBufferPtr iv);
95 return m_payloadKey.isValid();
116 return !m_keyLocator.empty();
131 template<encoding::Tag TAG>
148 mutable Block m_wire;
EncryptedContent & setPayloadKey(Block key)
EncryptedContent & unsetPayloadKey()
const Name & getKeyLocator() const
const Block & getPayload() const
EncryptedContent & unsetKeyLocator()
EncryptedContent & setPayload(Block payload)
const Block & getIv() const
bool hasIv() const noexcept
EncryptedContent & setIv(Block iv)
EncryptedContent()=default
EncryptedContent & setKeyLocator(Name keyLocator)
const Block & getPayloadKey() const
bool hasKeyLocator() const
const Block & wireEncode() const
EncryptedContent & unsetIv()
void wireDecode(const Block &wire)
bool hasPayloadKey() const noexcept