NS-3 based Named Data Networking (NDN) simulator
ndnSIM 2.5: NDN, CCN, CCNx, content centric networks
API Documentation
ndn::SignatureSha256WithEcdsa Class Reference

Represents a signature of Sha256WithEcdsa type. More...

#include <signature-sha256-with-ecdsa.hpp>

Inheritance diagram for ndn::SignatureSha256WithEcdsa:
Collaboration diagram for ndn::SignatureSha256WithEcdsa:

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 SignatureInfogetSignatureInfo () const
 Get SignatureInfo. More...
 
const BlockgetInfo () 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 BlockgetValue () 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 KeyLocatorgetKeyLocator () 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
 

Detailed Description

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.

Constructor & Destructor Documentation

◆ SignatureSha256WithEcdsa() [1/2]

ndn::SignatureSha256WithEcdsa::SignatureSha256WithEcdsa ( const KeyLocator keyLocator = KeyLocator())
explicit

Create Sha256WithEcdsa signature with specified KeyLocator.

Definition at line 26 of file signature-sha256-with-ecdsa.cpp.

◆ SignatureSha256WithEcdsa() [2/2]

ndn::SignatureSha256WithEcdsa::SignatureSha256WithEcdsa ( const Signature signature)
explicit

Convert base Signature to Sha256WithEcdsa signature.

Exceptions
Signature::ErrorSignatureType 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().


The documentation for this class was generated from the following files: