Represents a signature of Sha256WithRsa type. More...
#include <signature-sha256-with-rsa.hpp>
Public Member Functions | |
SignatureSha256WithRsa (const KeyLocator &keyLocator=KeyLocator()) | |
Create Sha256WithRsa signature with specified KeyLocator. More... | |
SignatureSha256WithRsa (const Signature &signature) | |
Convert base Signature to Sha256WithRsa 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 Sha256WithRsa type.
This signature type provides integrity and provenance protection using a RSA signature over a SHA-256 digest.
Definition at line 34 of file signature-sha256-with-rsa.hpp.
|
explicit |
Create Sha256WithRsa signature with specified KeyLocator.
Definition at line 26 of file signature-sha256-with-rsa.cpp.
|
explicit |
Convert base Signature to Sha256WithRsa signature.
Signature::Error | SignatureType is not Sha256WithRsa |
Definition at line 31 of file signature-sha256-with-rsa.cpp.
References ndn::Signature::getType(), ndn::Signature::hasKeyLocator(), ndn::tlv::SignatureSha256WithRsa, and ndn::to_string().