23 #ifndef NDN_TPM_BACK_END_MEMORY_HPP
24 #define NDN_TPM_BACK_END_MEMORY_HPP
27 #include "tpm-back-end.hpp"
42 getScheme() {
return "tpm-memory"; }
51 doHasKey(
const Name& keyName)
const;
58 virtual ptr_lib::shared_ptr<TpmKeyHandle>
59 doGetKeyHandle(
const Name& keyName)
const;
70 virtual ptr_lib::shared_ptr<TpmKeyHandle>
71 doCreateKey(
const Name& identityName,
const KeyParams& params);
79 doDeleteKey(
const Name& keyName);
95 doExportKey(
const Name& keyName,
const uint8_t* password,
size_t passwordLength);
114 (
const Name& keyName,
const uint8_t* pkcs8,
size_t pkcs8Length,
115 const uint8_t* password,
size_t passwordLength);
121 std::map<Name, ptr_lib::shared_ptr<TpmPrivateKey>> keys_;
TpmBackEnd is an abstract base class for a TPM backend implementation which provides a TpmKeyHandle t...
Definition: tpm-back-end.hpp:39
TpmBackEndMemory extends TpmBackEnd to implement a TPM back-end using in-memory storage.
Definition: tpm-back-end-memory.hpp:37
A Name holds an array of Name::Component and represents an NDN name.
Definition: name.hpp:40
A Blob holds a pointer to an immutable byte array implemented as const std::vector<uint8_t>.
Definition: blob.hpp:42
KeyParams is a base class for key parameters.
Definition: key-params.hpp:36