Represents a signature of Sha256WithEcdsa type. More...
#include <signature-sha256-with-ecdsa.hpp>
Public Member Functions | |
SignatureSha256WithEcdsa (const KeyLocator &keyLocator=KeyLocator()) | |
Create Sha256WithEcdsa signature with specified KeyLocator. More... | |
SignatureSha256WithEcdsa (const Signature &signature) | |
Convert base Signature to Sha256WithEcdsa signature. More... | |
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 | |
Determine whether SignatureInfo is valid. More... | |
const SignatureInfo & | getSignatureInfo () const |
Get SignatureInfo. More... | |
const Block & | getInfo () const |
Get SignatureInfo as wire format. More... | |
void | setInfo (const Block &info) |
Decode SignatureInfo from wire format. More... | |
void | setInfo (const SignatureInfo &info) |
Set SignatureInfo. More... | |
const Block & | getValue () const |
Get SignatureValue. More... | |
void | setValue (const Block &value) |
Set SignatureValue. More... | |
tlv::SignatureTypeValue | getType () const |
Get SignatureType. More... | |
bool | hasKeyLocator () const |
Check if KeyLocator exists in SignatureInfo. More... | |
const KeyLocator & | getKeyLocator () const |
Get KeyLocator. More... | |
void | setKeyLocator (const KeyLocator &keyLocator) |
Set KeyLocator. More... | |
void | unsetKeyLocator () |
Unset KeyLocator. More... | |
Additional Inherited Members | |
Protected Attributes inherited from ndn::Signature | |
SignatureInfo | m_info |
Block | m_value |
Represents a signature of Sha256WithEcdsa type.
This signature type provides integrity and provenance protection using an ECDSA signature over a SHA-256 digest.
Definition at line 34 of file signature-sha256-with-ecdsa.hpp.
|
explicit |
Create Sha256WithEcdsa signature with specified KeyLocator.
Definition at line 26 of file signature-sha256-with-ecdsa.cpp.
|
explicit |
Convert base Signature to Sha256WithEcdsa signature.
Signature::Error | SignatureType is not Sha256WithEcdsa |
Definition at line 31 of file signature-sha256-with-ecdsa.cpp.
References ndn::Signature::getType(), ndn::Signature::hasKeyLocator(), NDN_THROW, ndn::tlv::SignatureSha256WithEcdsa, and ndn::to_string().