23 #include "../transform/buffer-source.hpp" 24 #include "../transform/private-key.hpp" 25 #include "../transform/signer-filter.hpp" 26 #include "../transform/stream-sink.hpp" 27 #include "../../encoding/buffer-stream.hpp" 34 : m_key(
std::move(key))
36 BOOST_ASSERT(m_key !=
nullptr);
40 KeyHandleMem::doSign(
DigestAlgorithm digestAlgorithm,
const uint8_t* buf,
size_t size)
const 50 KeyHandleMem::doDecrypt(
const uint8_t* cipherText,
size_t cipherTextLen)
const 52 return m_key->decrypt(cipherText, cipherTextLen);
56 KeyHandleMem::doDerivePublicKey()
const 58 return m_key->derivePublicKey();
Copyright (c) 2013-2017 Regents of the University of California.
KeyHandleMem(shared_ptr< transform::PrivateKey > key)
shared_ptr< Buffer > buf()
Flush written data to the stream and return shared pointer to the underlying buffer.
implements an output stream that constructs ndn::Buffer
shared_ptr< const Buffer > ConstBufferPtr