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
46 :
std::runtime_error(what)
65 decrypt(
const uint8_t* cipherText,
size_t cipherTextLen)
const;
81 doSign(
DigestAlgorithm digestAlgorithm,
const uint8_t* buf,
size_t size)
const = 0;
84 doDecrypt(
const uint8_t* cipherText,
size_t cipherTextLen)
const = 0;
87 doDerivePublicKey()
const = 0;
97 #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.
Error(const std::string &what)
ConstBufferPtr decrypt(const uint8_t *cipherText, size_t cipherTextLen) const
shared_ptr< const Buffer > ConstBufferPtr