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

Abstraction of TPM key handle. More...

#include <key-handle.hpp>

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

Classes

class  Error
 

Public Member Functions

virtual ~KeyHandle ()
 
ConstBufferPtr sign (DigestAlgorithm digestAlgorithm, const uint8_t *buf, size_t size) const
 
ConstBufferPtr decrypt (const uint8_t *cipherText, size_t cipherTextLen) const
 
ConstBufferPtr derivePublicKey () const
 
void setKeyName (const Name &keyName)
 
Name getKeyName () const
 

Detailed Description

Abstraction of TPM key handle.

Handle provides an interface to perform crypto operations with a key in TPM.

Definition at line 38 of file key-handle.hpp.

Constructor & Destructor Documentation

ndn::security::tpm::KeyHandle::~KeyHandle ( )
virtualdefault

Member Function Documentation

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

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

Referenced by ndn::security::tpm::KeyHandle::Error::Error(), and ndn::security::tpm::Tpm::sign().

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

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

Referenced by ndn::security::tpm::Tpm::decrypt(), and ndn::security::tpm::KeyHandle::Error::Error().

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

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

Referenced by ndn::security::tpm::KeyHandle::Error::Error(), ndn::security::tpm::Tpm::getPublicKey(), and ndn::security::tpm::BackEnd::setKeyName().

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

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

Referenced by ndn::security::tpm::KeyHandle::Error::Error().


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