ndn::security::tpm::KeyHandleMem Class Reference

A TPM key handle that keeps the private key in memory. More...

#include <key-handle-mem.hpp>

+ Inheritance diagram for ndn::security::tpm::KeyHandleMem:
+ Collaboration diagram for ndn::security::tpm::KeyHandleMem:

Public Member Functions

 KeyHandleMem (shared_ptr< transform::PrivateKey > key)
 
ConstBufferPtr decrypt (const uint8_t *cipherText, size_t cipherTextLen) const
 
ConstBufferPtr derivePublicKey () const
 
Name getKeyName () const
 
void setKeyName (const Name &keyName)
 
ConstBufferPtr sign (DigestAlgorithm digestAlgorithm, const uint8_t *buf, size_t size) const
 

Detailed Description

A TPM key handle that keeps the private key in memory.

Definition at line 39 of file key-handle-mem.hpp.

Constructor & Destructor Documentation

ndn::security::tpm::KeyHandleMem::KeyHandleMem ( shared_ptr< transform::PrivateKey key)
explicit

Definition at line 33 of file key-handle-mem.cpp.

Member Function Documentation

ConstBufferPtr ndn::security::tpm::KeyHandle::decrypt ( const uint8_t *  cipherText,
size_t  cipherTextLen 
) const
inherited
Returns
plain text content decrypted from cipherText using this key.

Definition at line 37 of file key-handle.cpp.

ConstBufferPtr ndn::security::tpm::KeyHandle::derivePublicKey ( ) const
inherited
Returns
the PCKS#8 encoded public key bits derived from this key.

Definition at line 43 of file key-handle.cpp.

Name ndn::security::tpm::KeyHandle::getKeyName ( ) const
inherited

Definition at line 55 of file key-handle.cpp.

void ndn::security::tpm::KeyHandle::setKeyName ( const Name keyName)
inherited

Definition at line 49 of file key-handle.cpp.

ConstBufferPtr ndn::security::tpm::KeyHandle::sign ( DigestAlgorithm  digestAlgorithm,
const uint8_t *  buf,
size_t  size 
) const
inherited
Returns
a digital signature created on buf using this key with digestAlgorithm.

Definition at line 31 of file key-handle.cpp.