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;
74 const uint8_t* sig,
size_t sigLen)
const;
80 decrypt(
const uint8_t* cipherText,
size_t cipherTextLen)
const;
102 doSign(
DigestAlgorithm digestAlgorithm,
const InputBuffers& bufs)
const = 0;
106 const uint8_t* sig,
size_t sigLen)
const = 0;
109 doDecrypt(
const uint8_t* cipherText,
size_t cipherTextLen)
const = 0;
112 doDerivePublicKey()
const = 0;
122 #endif // NDN_SECURITY_TPM_KEY_HANDLE_HPP void setKeyName(const Name &keyName)
ConstBufferPtr sign(DigestAlgorithm digestAlgorithm, const InputBuffers &bufs) const
Generate a digital signature for bufs using this key with digestAlgorithm.
ConstBufferPtr derivePublicKey() const
ConstBufferPtr decrypt(const uint8_t *cipherText, size_t cipherTextLen) const
Return plain text content decrypted from cipherText using this key.
bool verify(DigestAlgorithm digestAlgorithm, const InputBuffers &bufs, const uint8_t *sig, size_t sigLen) const
Verify the signature sig for bufs using this key and digestAlgorithm.
Abstraction of TPM key handle.
Represents an absolute name.
shared_ptr< const Buffer > ConstBufferPtr