23 #ifndef NDN_TPM_BACK_END_FILE_HPP
24 #define NDN_TPM_BACK_END_FILE_HPP
26 #include "tpm-back-end.hpp"
47 Error(
const std::string& what)
62 getScheme() {
return "tpm-file"; }
71 doHasKey(
const Name& keyName)
const;
78 virtual ptr_lib::shared_ptr<TpmKeyHandle>
79 doGetKeyHandle(
const Name& keyName)
const;
90 virtual ptr_lib::shared_ptr<TpmKeyHandle>
91 doCreateKey(
const Name& identityName,
const KeyParams& params);
99 doDeleteKey(
const Name& keyName);
109 ptr_lib::shared_ptr<TpmPrivateKey>
110 loadKey(
const Name& keyName)
const;
118 saveKey(
const Name& keyName,
const ptr_lib::shared_ptr<TpmPrivateKey>& key);
127 toFilePath(
const Name& keyName)
const;
129 std::string keyStorePath_;
TpmBackEnd is an abstract base class for a TPM backend implementation which provides a TpmKeyHandle t...
Definition: tpm-back-end.hpp:39
TpmBackEndFile(const std::string &locationPath="")
Create a TpmBackEndFile to use the given path to store files.
Definition: tpm-back-end-file.cpp:37
A Name holds an array of Name::Component and represents an NDN name.
Definition: name.hpp:40
A TpmBackEndFile::Error extends TpmBackEnd::Error and represents a non-semantic error in backend TPM ...
Definition: tpm-back-end-file.hpp:44
KeyParams is a base class for key parameters.
Definition: key-params.hpp:36
TpmBackEndFile extends TpmBackEnd to implement a TPM back-end using on-disk file storage.
Definition: tpm-back-end-file.hpp:38
A TpmBackEnd::Error extends runtime_error and represents a non-semantic error in backend TPM processi...
Definition: tpm-back-end.hpp:45