Public Member Functions | List of all members
ndn::Sha256WithEcdsaSignature Class Reference

A Sha256WithEcdsaSignature extends Signature and holds the signature bits and other info representing a SHA256-with-ECDSA signature in a data packet. More...

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

Inheritance diagram for ndn::Sha256WithEcdsaSignature:
ndn::Signature

Public Member Functions

virtual ptr_lib::shared_ptr< Signature > clone () const
 Return a pointer to a new Sha256WithEcdsaSignature which is a copy of this signature.
 
virtual void get (SignatureLite &signatureLite) const
 Set signatureLite to point to the values in this signature object, without copying any memory. More...
 
virtual void set (const SignatureLite &signatureLite)
 Clear this signature, and set the values by copying from signatureLite. More...
 
virtual const Blob & getSignature () const
 Get the signature bytes. More...
 
const KeyLocator & getKeyLocator () const
 
KeyLocator & getKeyLocator ()
 
virtual void setSignature (const Blob &signature)
 Set the signature bytes to the given value. More...
 
void setKeyLocator (const KeyLocator &keyLocator)
 
void clear ()
 Clear all the fields.
 
virtual uint64_t getChangeCount () const
 Get the change count, which is incremented each time this object (or a child object) is changed. More...
 
- Public Member Functions inherited from ndn::Signature
virtual ~Signature ()
 The virtual destructor.
 

Detailed Description

A Sha256WithEcdsaSignature extends Signature and holds the signature bits and other info representing a SHA256-with-ECDSA signature in a data packet.

Member Function Documentation

void ndn::Sha256WithEcdsaSignature::get ( SignatureLite &  signatureLite) const
virtual

Set signatureLite to point to the values in this signature object, without copying any memory.

WARNING: The resulting pointers in signatureLite are invalid after a further use of this object which could reallocate memory.

Parameters
signatureLiteA SignatureLite object where the name components array is already allocated.

Implements ndn::Signature.

uint64_t ndn::Sha256WithEcdsaSignature::getChangeCount ( ) const
virtual

Get the change count, which is incremented each time this object (or a child object) is changed.

Returns
The change count.

Implements ndn::Signature.

const Blob & ndn::Sha256WithEcdsaSignature::getSignature ( ) const
virtual

Get the signature bytes.

Returns
The signature bytes. If not specified, the value isNull().

Implements ndn::Signature.

void ndn::Sha256WithEcdsaSignature::set ( const SignatureLite &  signatureLite)
virtual

Clear this signature, and set the values by copying from signatureLite.

Parameters
signatureLiteA SignatureLite object.

Implements ndn::Signature.

void ndn::Sha256WithEcdsaSignature::setSignature ( const Blob &  signature)
virtual

Set the signature bytes to the given value.

Parameters
signatureA Blob with the signature bytes.

Implements ndn::Signature.


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