22 #ifndef NDN_SECURITY_TPM_KEY_HANDLE_HPP 23 #define NDN_SECURITY_TPM_KEY_HANDLE_HPP 40 class Error :
public std::runtime_error
43 using std::runtime_error::runtime_error;
60 decrypt(
const uint8_t* cipherText,
size_t cipherTextLen)
const;
76 doSign(
DigestAlgorithm digestAlgorithm,
const uint8_t* buf,
size_t size)
const = 0;
79 doDecrypt(
const uint8_t* cipherText,
size_t cipherTextLen)
const = 0;
82 doDerivePublicKey()
const = 0;
92 #endif // NDN_SECURITY_TPM_KEY_HANDLE_HPP void setKeyName(const Name &keyName)
ConstBufferPtr derivePublicKey() const
ConstBufferPtr sign(DigestAlgorithm digestAlgorithm, const uint8_t *buf, size_t size) const
Abstraction of TPM key handle.
Represents an absolute name.
ConstBufferPtr decrypt(const uint8_t *cipherText, size_t cipherTextLen) const
shared_ptr< const Buffer > ConstBufferPtr