22 #ifndef NDN_GENERIC_SIGNATURE_HPP
23 #define NDN_GENERIC_SIGNATURE_HPP
25 #include "signature.hpp"
51 virtual ptr_lib::shared_ptr<Signature>
91 signatureInfoEncoding_ = signatureInfoEncoding;
128 signatureInfoEncoding_.reset();
142 Blob signatureInfoEncoding_;
144 uint64_t changeCount_;
virtual const Blob & getSignature() const
Get the signature bytes.
Definition: generic-signature.cpp:35
Copyright (C) 2013-2016 Regents of the University of California.
Definition: common.hpp:35
int getTypeCode() const
Get the type code of the signature type.
Definition: generic-signature.hpp:119
A SignatureLite holds a signature type, a KeyLocatorLite, the signature bytes and other fields to rep...
Definition: signature-lite.hpp:36
const Blob & getSignatureInfoEncoding() const
Get the bytes of the entire signature info encoding (including the type code).
Definition: generic-signature.hpp:78
void setSignatureInfoEncoding(const Blob &signatureInfoEncoding, int typeCode=-1)
Set the bytes of the entire signature info encoding (including the type code).
Definition: generic-signature.hpp:89
virtual void set(const SignatureLite &signatureLite)
Clear this signature, and set the values by copying from signatureLite.
Definition: generic-signature.cpp:59
virtual uint64_t getChangeCount() const
Get the change count, which is incremented each time this object is changed.
Definition: generic-signature.cpp:74
A Signature is an abstract base class providing methods to work with the signature information in a D...
Definition: signature.hpp:35
A Blob holds a pointer to an immutable byte array implemented as const std::vector.
Definition: blob.hpp:42
virtual ptr_lib::shared_ptr< Signature > clone() const
Return a pointer to a new DigestSha256Signature which is a copy of this GenericSignature.
Definition: generic-signature.cpp:29
GenericSignature()
Create a new GenericSignature with default values.
Definition: generic-signature.hpp:40
A GenericSignature extends Signature and holds the encoding bytes of the SignatureInfo so that the ap...
Definition: generic-signature.hpp:35
void clear()
Clear all the fields.
Definition: generic-signature.hpp:125
virtual void setSignature(const Blob &signature)
Set the signature bytes to the given value.
Definition: generic-signature.cpp:41