The back-end implementation of an in-memory TPM. More...
#include <back-end-mem.hpp>
Classes | |
class | Impl |
Public Member Functions | |
BackEndMem (const std::string &location="") | |
Create memory-based TPM backend. More... | |
~BackEndMem () final | |
Public Member Functions inherited from ndn::security::tpm::BackEnd | |
virtual | ~BackEnd () |
bool | hasKey (const Name &keyName) const |
Check if the key with name keyName exists in the TPM. More... | |
unique_ptr< KeyHandle > | getKeyHandle (const Name &keyName) const |
Get the handle of the key with name keyName . More... | |
unique_ptr< KeyHandle > | createKey (const Name &identityName, const KeyParams ¶ms) |
Create a key for identityName according to params . More... | |
void | deleteKey (const Name &keyName) |
Delete the key with name keyName . More... | |
ConstBufferPtr | exportKey (const Name &keyName, const char *pw, size_t pwLen) |
Get the private key with name keyName in encrypted PKCS #8 format. More... | |
void | importKey (const Name &keyName, const uint8_t *pkcs8, size_t pkcs8Len, const char *pw, size_t pwLen) |
Import a private key in encrypted PKCS #8 format. More... | |
virtual bool | isTerminalMode () const |
Check if the TPM is in terminal mode. More... | |
virtual void | setTerminalMode (bool isTerminal) const |
Set the terminal mode of the TPM. More... | |
virtual bool | isTpmLocked () const |
Check if the TPM is locked. More... | |
virtual bool | unlockTpm (const char *pw, size_t pwLen) const |
Unlock the TPM. More... | |
Static Public Member Functions | |
static const std::string & | getScheme () |
Additional Inherited Members | |
Static Protected Member Functions inherited from ndn::security::tpm::BackEnd | |
static void | setKeyName (KeyHandle &keyHandle, const Name &identity, const KeyParams ¶ms) |
Set the key name in keyHandle according to identity and params . More... | |
The back-end implementation of an in-memory TPM.
Definition at line 34 of file back-end-mem.hpp.
|
explicit |
Create memory-based TPM backend.
location | Not used (required by the TPM registration interface). |
Definition at line 41 of file back-end-mem.cpp.
|
finaldefault |
|
static |
Definition at line 49 of file back-end-mem.cpp.