The module to sign data. More...
#include <signer-filter.hpp>
Classes | |
class | Impl |
Public Member Functions | |
SignerFilter (DigestAlgorithm algo, const PrivateKey &key) | |
Create a module to sign using digest algorithm algo and private key key . More... | |
~SignerFilter () final | |
![]() | |
virtual | ~Upstream ()=default |
![]() | |
virtual | ~Downstream ()=default |
size_t | write (span< const uint8_t > buf) |
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 | |
![]() | |
using | OBuffer = std::vector< uint8_t > |
![]() | |
Transform ()=default | |
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 ()=default | |
void | appendChain (unique_ptr< Downstream > tail) |
Connect to the next transformation module. More... | |
Downstream * | getNext () |
![]() | |
Downstream ()=default | |
![]() | |
unique_ptr< Downstream > | m_next |
The module to sign data.
Definition at line 37 of file signer-filter.hpp.
ndn::security::transform::SignerFilter::SignerFilter | ( | DigestAlgorithm | algo, |
const PrivateKey & | key | ||
) |
Create a module to sign using digest algorithm algo
and private key key
.
Definition at line 39 of file signer-filter.cpp.
References ndn::security::detail::digestAlgorithmToEvpMd(), ndn::security::transform::Transform::flushAllOutput(), ndn::security::transform::Downstream::getIndex(), ndn::security::transform::PrivateKey::getKeyType(), nonstd::optional_lite::std11::move(), NDN_THROW, ndn::security::transform::Transform::setOutputBuffer(), and ~SignerFilter().
|
finaldefault |
Referenced by SignerFilter().