All Classes Namespaces Functions Variables Typedefs Enumerations Enumerator Pages
Public Member Functions | List of all members
ndn::TpmKeyHandle Class Referenceabstract

TpmKeyHandle is an abstract base class for a TPM key handle, which provides an interface to perform cryptographic operations with a key in the TPM. More...

#include <tpm-key-handle.hpp>

Inheritance diagram for ndn::TpmKeyHandle:
ndn::TpmKeyHandleMemory

Public Member Functions

Blob sign (DigestAlgorithm digestAlgorithm, const uint8_t *data, size_t dataLength) const
 Compute a digital signature from the byte array using this key with digestAlgorithm. More...
 
Blob decrypt (const uint8_t *cipherText, size_t cipherTextLength) const
 Return the plain text which is decrypted from cipherText using this key. More...
 
Blob derivePublicKey () const
 Get the encoded public key derived from this key. More...
 
void setKeyName (const Name &keyName)
 
const NamegetKeyName () const
 

Detailed Description

TpmKeyHandle is an abstract base class for a TPM key handle, which provides an interface to perform cryptographic operations with a key in the TPM.

Member Function Documentation

Blob ndn::TpmKeyHandle::decrypt ( const uint8_t *  cipherText,
size_t  cipherTextLength 
) const

Return the plain text which is decrypted from cipherText using this key.

Parameters
cipherTextThe cipher text byte array.
cipherTextLengthThe length of the cipher text byte array.
Returns
The decrypted data.
Blob ndn::TpmKeyHandle::derivePublicKey ( ) const

Get the encoded public key derived from this key.

Returns
The public key encoding Blob.
Blob ndn::TpmKeyHandle::sign ( DigestAlgorithm  digestAlgorithm,
const uint8_t *  data,
size_t  dataLength 
) const

Compute a digital signature from the byte array using this key with digestAlgorithm.

Parameters
digestAlgorithmThe digest algorithm.
dataThe input byte array.
dataLengthThe length of the byte array.
Returns
The signature Blob, or an isNull Blob for an unrecognized digestAlgorithm.

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