Abstraction of TPM key handle. More...
#include <key-handle.hpp>
Classes | |
class | Error |
Public Member Functions | |
virtual | ~KeyHandle () |
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 |
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.
|
virtualdefault |
ConstBufferPtr ndn::security::tpm::KeyHandle::decrypt | ( | const uint8_t * | cipherText, |
size_t | cipherTextLen | ||
) | const |
cipherText
using this key. Definition at line 37 of file key-handle.cpp.
ConstBufferPtr ndn::security::tpm::KeyHandle::derivePublicKey | ( | ) | const |
Definition at line 43 of file key-handle.cpp.
Name ndn::security::tpm::KeyHandle::getKeyName | ( | ) | const |
Definition at line 55 of file key-handle.cpp.
void ndn::security::tpm::KeyHandle::setKeyName | ( | const Name & | keyName | ) |
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 |
buf
using this key with digestAlgorithm
. Definition at line 31 of file key-handle.cpp.