A TPM key handle that keeps the private key in memory. More...
#include <key-handle-mem.hpp>
Public Member Functions | |
KeyHandleMem (shared_ptr< transform::PrivateKey > key) | |
Public Member Functions inherited from ndn::security::tpm::KeyHandle | |
virtual | ~KeyHandle () |
ConstBufferPtr | sign (DigestAlgorithm digestAlgorithm, const InputBuffers &bufs) const |
Generate a digital signature for bufs using this key with digestAlgorithm . More... | |
bool | verify (DigestAlgorithm digestAlgorithm, const InputBuffers &bufs, span< const uint8_t > sig) const |
Verify the signature sig over bufs using this key and digestAlgorithm . More... | |
ConstBufferPtr | decrypt (span< const uint8_t > cipherText) const |
Return plain text content decrypted from cipherText using this key. More... | |
ConstBufferPtr | derivePublicKey () const |
Name | getKeyName () const |
void | setKeyName (const Name &keyName) |
A TPM key handle that keeps the private key in memory.
Definition at line 39 of file key-handle-mem.hpp.
|
explicit |
Definition at line 35 of file key-handle-mem.cpp.
References ndn::security::transform::boolSink(), ndn::OBufferStream::buf(), bufs, sig, ndn::security::transform::signerFilter(), ndn::security::transform::streamSink(), and ndn::security::transform::verifierFilter().