22 #ifndef NDN_SIGNATURE_HPP 23 #define NDN_SIGNATURE_HPP 164 return !(lhs == rhs);
169 #endif // NDN_SIGNATURE_HPP Copyright (c) 2013-2017 Regents of the University of California.
Represents a SignatureInfo TLV element.
void setInfo(const SignatureInfo &info)
Set SignatureInfo.
void setKeyLocator(const KeyLocator &keyLocator)
Set KeyLocator.
void setInfo(const Block &info)
Decode SignatureInfo from wire format.
bool hasKeyLocator() const
Check if KeyLocator exists in SignatureInfo.
const KeyLocator & getKeyLocator() const
Get KeyLocator.
Represents a TLV element of NDN packet format.
const Block & getValue() const
Get SignatureValue.
bool operator!=(const Data &lhs, const Data &rhs)
void unsetKeyLocator()
Unset KeyLocator.
const KeyLocator & getKeyLocator() const
Get KeyLocator.
const SignatureInfo & getSignatureInfo() const
Get SignatureInfo.
Error(const std::string &what)
void setKeyLocator(const KeyLocator &keyLocator)
Set KeyLocator.
void setValue(const Block &value)
Set SignatureValue.
void unsetKeyLocator()
Unset KeyLocator.
tlv::SignatureTypeValue getType() const
Get SignatureType.
size_t wireEncode(EncodingImpl< TAG > &encoder) const
Fast encoding or block size estimation.
const Block & getInfo() const
Get SignatureInfo as wire format.
bool hasKeyLocator() const
Check if KeyLocator exists.
bool operator==(const Data &lhs, const Data &rhs)
int32_t getSignatureType() const
Get SignatureType.
represents an error in TLV encoding or decoding
Holds SignatureInfo and SignatureValue in a Data packet.