Abstraction of TPM key handle. More...
#include <ndn-cxx/security/tpm/key-handle.hpp>
 Inheritance diagram for ndn::security::tpm::KeyHandle:
 Inheritance diagram for ndn::security::tpm::KeyHandle: Collaboration diagram for ndn::security::tpm::KeyHandle:
 Collaboration diagram for ndn::security::tpm::KeyHandle:| 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 | 
| bool | verify (DigestAlgorithm digestAlgorithm, const uint8_t *buf, size_t bufLen, const uint8_t *sig, size_t sigLen) const | 
| Verify the signature sigcreated onbufusing this key anddigestAlgorithm.  More... | |
Abstraction of TPM key handle.
KeyHandle provides an interface to perform crypto operations with a key stored in the TPM.
Definition at line 37 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 44 of file key-handle.cpp.
| ConstBufferPtr ndn::security::tpm::KeyHandle::derivePublicKey | ( | ) | const | 
Definition at line 50 of file key-handle.cpp.
| 
 | inline | 
Definition at line 76 of file key-handle.hpp.
| 
 | inline | 
Definition at line 82 of file key-handle.hpp.
| 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.
| bool ndn::security::tpm::KeyHandle::verify | ( | DigestAlgorithm | digestAlgorithm, | 
| const uint8_t * | buf, | ||
| size_t | bufLen, | ||
| const uint8_t * | sig, | ||
| size_t | sigLen | ||
| ) | const | 
Verify the signature sig created on buf using this key and digestAlgorithm. 
Definition at line 37 of file key-handle.cpp.