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

A DigestSha256Signature extends Signature and holds the signature bits (which are only the SHA256 digest) and an empty SignatureInfo for a data packet or signed interest. More...

#include <digest-sha256-signature.hpp>

Inheritance diagram for ndn::DigestSha256Signature:
ndn::Signature

Public Member Functions

virtual ptr_lib::shared_ptr< Signatureclone () const
 Return a pointer to a new DigestSha256Signature which is a copy of this signature.
 
virtual void get (struct ndn_Signature &signatureStruct) const
 Set the signatureStruct to point to the values in this signature object, without copying any memory. More...
 
virtual void set (const struct ndn_Signature &signatureStruct)
 Clear this signature, and set the values by copying from the ndn_Signature struct. More...
 
virtual const BlobgetSignature () const
 Get the signature bytes (which are only the digest). More...
 
virtual void setSignature (const Blob &signature)
 Set the signature bytes to the given value. More...
 
void clear ()
 Clear all the fields.
 
virtual uint64_t getChangeCount () const
 Get the change count, which is incremented each time this object is changed. More...
 
- Public Member Functions inherited from ndn::Signature
virtual ~Signature ()
 The virtual destructor.
 

Detailed Description

A DigestSha256Signature extends Signature and holds the signature bits (which are only the SHA256 digest) and an empty SignatureInfo for a data packet or signed interest.

Member Function Documentation

void ndn::DigestSha256Signature::get ( struct ndn_Signature & signatureStruct  ) const
virtual

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

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

Parameters
signatureStructa C ndn_Signature struct where the name components array is already allocated.

Implements ndn::Signature.

virtual uint64_t ndn::DigestSha256Signature::getChangeCount ( ) const
inlinevirtual

Get the change count, which is incremented each time this object is changed.

Returns
The change count.

Implements ndn::Signature.

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

Get the signature bytes (which are only the digest).

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

Implements ndn::Signature.

void ndn::DigestSha256Signature::set ( const struct ndn_Signature & signatureStruct  )
virtual

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

Parameters
signatureStructa C ndn_Signature struct

Implements ndn::Signature.

void ndn::DigestSha256Signature::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: