Represent a SHA256 digest. More...
#include <digest-sha256.hpp>
Classes | |
class | Error |
Public Member Functions | |
DigestSha256 () | |
DigestSha256 (const Signature &signature) | |
Public Member Functions inherited from ndn::Signature | |
Signature ()=default | |
Signature (const Block &info, const Block &value=Block()) | |
Signature (const SignatureInfo &info, const Block &value=Block()) | |
operator bool () const | |
const Block & | getInfo () const |
Get SignatureInfo in the wire format. More... | |
void | setInfo (const Block &info) |
Set SignatureInfo from a block. More... | |
void | setInfo (const SignatureInfo &info) |
Set SignatureInfo. More... | |
const Block & | getValue () const |
Get SignatureValue in the wire format. More... | |
void | setValue (const Block &value) |
Get SignatureValue from a block. More... | |
uint32_t | getType () const |
Get signature type. More... | |
bool | hasKeyLocator () const |
Check if SignatureInfo block has a KeyLocator. More... | |
const KeyLocator & | getKeyLocator () const |
Get KeyLocator. More... | |
void | setKeyLocator (const KeyLocator &keyLocator) |
Set KeyLocator. More... | |
void | unsetKeyLocator () |
Unset KeyLocator. More... | |
bool | operator== (const Signature &other) const |
bool | operator!= (const Signature &other) const |
Additional Inherited Members | |
Public Types inherited from ndn::Signature | |
enum | { Sha256 = tlv::DigestSha256, Sha256WithRsa = tlv::SignatureSha256WithRsa, Sha256WithEcdsa = tlv::SignatureSha256WithEcdsa } |
Protected Attributes inherited from ndn::Signature | |
SignatureInfo | m_info |
Block | m_value |
Represent a SHA256 digest.
Definition at line 33 of file digest-sha256.hpp.
ndn::DigestSha256::DigestSha256 | ( | ) |
Definition at line 26 of file digest-sha256.cpp.
Referenced by ndn::DigestSha256::Error::Error().
|
explicit |
Definition at line 31 of file digest-sha256.cpp.
References ndn::tlv::DigestSha256, and ndn::Signature::getType().