22 #ifndef NDN_SECURITY_TPM_KEY_HANDLE_HPP 23 #define NDN_SECURITY_TPM_KEY_HANDLE_HPP 25 #include "../../common.hpp" 26 #include "../../name.hpp" 27 #include "../security-common.hpp" 41 class Error :
public std::runtime_error
44 using std::runtime_error::runtime_error;
61 decrypt(
const uint8_t* cipherText,
size_t cipherTextLen)
const;
77 doSign(
DigestAlgorithm digestAlgorithm,
const uint8_t* buf,
size_t size)
const = 0;
80 doDecrypt(
const uint8_t* cipherText,
size_t cipherTextLen)
const = 0;
83 doDerivePublicKey()
const = 0;
93 #endif // NDN_SECURITY_TPM_KEY_HANDLE_HPP void setKeyName(const Name &keyName)
Copyright (c) 2013-2017 Regents of the University of California.
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