22 #ifndef NDN_CXX_SECURITY_TPM_KEY_HANDLE_HPP
23 #define NDN_CXX_SECURITY_TPM_KEY_HANDLE_HPP
38 class Error :
public std::runtime_error
41 using std::runtime_error::runtime_error;
64 decrypt(span<const uint8_t> cipherText)
const;
92 doDecrypt(span<const uint8_t> cipherText)
const = 0;
95 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.
std::shared_ptr< const Buffer > ConstBufferPtr
span< const uint8_t > sig