22 #ifndef NDN_SHA256_WITH_RSA_SIGNATURE_HPP
23 #define NDN_SHA256_WITH_RSA_SIGNATURE_HPP
25 #include "signature.hpp"
26 #include "key-locator.hpp"
27 #include "util/change-counter.hpp"
45 virtual ptr_lib::shared_ptr<Signature>
74 getKeyLocator()
const {
return keyLocator_.get(); }
77 getKeyLocator() {
return keyLocator_.get(); }
89 keyLocator_.set(keyLocator);
100 keyLocator_.get().clear();
114 uint64_t changeCount_;
A Sha256WithRsaSignature extends Signature and holds the signature bits and other info representing a...
Definition: sha256-with-rsa-signature.hpp:35
Copyright (C) 2013-2016 Regents of the University of California.
Definition: common.hpp:35
A SignatureLite holds a signature type, a KeyLocatorLite, the signature bytes and other fields to rep...
Definition: signature-lite.hpp:36
virtual ptr_lib::shared_ptr< Signature > clone() const
Return a pointer to a new Sha256WithRsaSignature which is a copy of this signature.
Definition: sha256-with-rsa-signature.cpp:30
A ChangeCounter keeps a target object whose change count is tracked by a local change count...
Definition: change-counter.hpp:37
virtual uint64_t getChangeCount() const
Get the change count, which is incremented each time this object (or a child object) is changed...
Definition: sha256-with-rsa-signature.cpp:68
void clear()
Clear all the fields.
Definition: sha256-with-rsa-signature.hpp:97
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 const Blob & getSignature() const
Get the signature bytes.
Definition: sha256-with-rsa-signature.cpp:36
virtual void setSignature(const Blob &signature)
Set the signature bytes to the given value.
Definition: sha256-with-rsa-signature.cpp:42
Definition: key-locator.hpp:35
virtual void set(const SignatureLite &signatureLite)
Clear this signature, and set the values by copying from signatureLite.
Definition: sha256-with-rsa-signature.cpp:57