NS-3 based Named Data Networking (NDN) simulator
ndnSIM 2.5: NDN, CCN, CCNx, content centric networks
API Documentation
ndn::security::tpm::DummyKeyHandle Class Reference

#include <dummy-keychain.hpp>

Inheritance diagram for ndn::security::tpm::DummyKeyHandle:
Collaboration diagram for ndn::security::tpm::DummyKeyHandle:

Public Member Functions

 DummyKeyHandle (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)

Detailed Description

Definition at line 139 of file dummy-keychain.hpp.

Constructor & Destructor Documentation

◆ DummyKeyHandle()

ndn::security::tpm::DummyKeyHandle::DummyKeyHandle ( shared_ptr< transform::PrivateKey key)

Definition at line 243 of file dummy-keychain.cpp.

References bufs, ndn::security::DUMMY_SIGNATURE, and sig.

The documentation for this class was generated from the following files: