The module to verify signatures. More...
#include <verifier-filter.hpp>
Classes | |
class | Impl |
Public Member Functions | |
VerifierFilter (DigestAlgorithm algo, const PublicKey &key, const uint8_t *sig, size_t sigLen) | |
Create a verifier module to verify signature sig using algorithm algo and key key . More... | |
~VerifierFilter () | |
![]() | |
virtual | ~Upstream ()=default |
![]() | |
virtual | ~Downstream ()=default |
size_t | write (const uint8_t *buf, size_t size) |
Accept input data and perform transformation. More... | |
void | end () |
Close the input interface of a module. More... | |
bool | isEnd () const |
Check if the input interface of a module is closed. More... | |
void | setIndex (size_t index) |
Set the module index. More... | |
size_t | getIndex () const |
Get the module index. More... | |
Additional Inherited Members | |
![]() | |
typedef std::vector< uint8_t > | OBuffer |
![]() | |
Transform () | |
void | flushOutputBuffer () |
Read the content from output buffer and write it into next module. More... | |
void | flushAllOutput () |
Read the all the content from output buffer and write it into next module. More... | |
void | setOutputBuffer (unique_ptr< OBuffer > buffer) |
Set output buffer to buffer . More... | |
bool | isOutputBufferEmpty () const |
Check if output buffer is empty. More... | |
![]() | |
Upstream () | |
void | appendChain (unique_ptr< Downstream > tail) |
connect to next transformation module More... | |
Downstream * | getNext () |
![]() | |
Downstream () | |
![]() | |
unique_ptr< Downstream > | m_next |
The module to verify signatures.
The next module in the chain is usually BoolSink.
Definition at line 41 of file verifier-filter.hpp.
ndn::security::transform::VerifierFilter::VerifierFilter | ( | DigestAlgorithm | algo, |
const PublicKey & | key, | ||
const uint8_t * | sig, | ||
size_t | sigLen | ||
) |
Create a verifier module to verify signature sig
using algorithm algo
and key key
.
Definition at line 48 of file verifier-filter.cpp.
References ndn::security::detail::digestAlgorithmToEvpMd(), ndn::security::transform::Downstream::getIndex(), and ndn::security::transform::PublicKey::getKeyType().
|
default |