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>
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 Name & | getKeyName () const |
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.
| Blob ndn::TpmKeyHandle::decrypt | ( | const uint8_t * | cipherText, |
| size_t | cipherTextLength | ||
| ) | const |
Return the plain text which is decrypted from cipherText using this key.
| cipherText | The cipher text byte array. |
| cipherTextLength | The length of the cipher text byte array. |
| Blob ndn::TpmKeyHandle::derivePublicKey | ( | ) | const |
Get the encoded public key derived from this key.
| Blob ndn::TpmKeyHandle::sign | ( | DigestAlgorithm | digestAlgorithm, |
| const uint8_t * | data, | ||
| size_t | dataLength | ||
| ) | const |
1.8.6