22 #ifndef NDN_SECURITY_TPM_BACK_END_FILE_HPP
23 #define NDN_SECURITY_TPM_BACK_END_FILE_HPP
64 static const std::string&
72 doHasKey(
const Name& keyName)
const final;
78 doGetKeyHandle(
const Name& keyName)
const final;
92 doCreateKey(
const Name& identityName,
const KeyParams& params)
final;
100 doDeleteKey(
const Name& keyName)
final;
107 doExportKey(
const Name& keyName,
const char* pw,
size_t pwLen)
final;
120 doImportKey(
const Name& keyName,
const uint8_t* buf,
size_t size,
const char* pw,
size_t pwLen)
final;
126 shared_ptr<transform::PrivateKey>
127 loadKey(
const Name& keyName)
const;
133 saveKey(
const Name& keyName, shared_ptr<transform::PrivateKey> key);
137 unique_ptr<Impl> m_impl;
144 #endif // NDN_SECURITY_TPM_BACK_END_FILE_HPP
Copyright (c) 2013-2016 Regents of the University of California.
The back-end implementation of file-based TPM.
Abstraction of Tpm back-end.
static const std::string & getScheme()
BackEndFile(const std::string &location="")
Create file-based TPM backend.
Name abstraction to represent an absolute name.
Base class of key parameters.
shared_ptr< const Buffer > ConstBufferPtr
Error(const std::string &what)