22 #ifndef NDN_CXX_SECURITY_TPM_KEY_HANDLE_HPP
23 #define NDN_CXX_SECURITY_TPM_KEY_HANDLE_HPP
40 class Error :
public std::runtime_error
43 using std::runtime_error::runtime_error;
66 decrypt(span<const uint8_t> cipherText)
const;
94 doDecrypt(span<const uint8_t> cipherText)
const = 0;
97 doDerivePublicKey()
const = 0;
Represents an absolute name.
Abstraction of TPM key handle.
void setKeyName(const Name &keyName)
ConstBufferPtr derivePublicKey() const
ConstBufferPtr decrypt(span< const uint8_t > cipherText) const
Return plain text content decrypted from cipherText using this key.
bool verify(DigestAlgorithm digestAlgorithm, const InputBuffers &bufs, span< const uint8_t > sig) const
Verify the signature sig over bufs using this key and digestAlgorithm.
ConstBufferPtr sign(DigestAlgorithm digestAlgorithm, const InputBuffers &bufs) const
Generate a digital signature for bufs using this key with digestAlgorithm.
shared_ptr< const Buffer > ConstBufferPtr
span< const uint8_t > sig