23 #ifndef NDN_TPM_KEY_HANDLE_HPP
24 #define NDN_TPM_KEY_HANDLE_HPP
26 #include "../../name.hpp"
27 #include "../security-common.hpp"
51 (DigestAlgorithm digestAlgorithm,
const uint8_t* data,
size_t dataLength)
const;
60 decrypt(
const uint8_t* cipherText,
size_t cipherTextLength)
const;
70 setKeyName(
const Name& keyName) { keyName_ = keyName; }
73 getKeyName()
const {
return keyName_; }
81 (DigestAlgorithm digestAlgorithm,
const uint8_t* data,
size_t dataLength)
const = 0;
84 doDecrypt(
const uint8_t* cipherText,
size_t cipherTextLength)
const = 0;
87 doDerivePublicKey()
const = 0;
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.
Definition: tpm-key-handle.cpp:31
TpmKeyHandle is an abstract base class for a TPM key handle, which provides an interface to perform c...
Definition: tpm-key-handle.hpp:35
A Name holds an array of Name::Component and represents an NDN name.
Definition: name.hpp:40
A Blob holds a pointer to an immutable byte array implemented as const std::vector<uint8_t>.
Definition: blob.hpp:42
Blob decrypt(const uint8_t *cipherText, size_t cipherTextLength) const
Return the plain text which is decrypted from cipherText using this key.
Definition: tpm-key-handle.cpp:37
Blob derivePublicKey() const
Get the encoded public key derived from this key.
Definition: tpm-key-handle.cpp:43