NS-3 based Named Data Networking (NDN) simulator
ndnSIM 2.3: NDN, CCN, CCNx, content centric networks
API Documentation
ndn::security::tpm::BackEndMem Class Reference

The back-end implementation of in-memory TPM. More...

#include <back-end-mem.hpp>

Inheritance diagram for ndn::security::tpm::BackEndMem:
Collaboration diagram for ndn::security::tpm::BackEndMem:

Classes

class  Error
 
class  Impl
 

Public Member Functions

 BackEndMem (const std::string &location="")
 Create memory-based TPM backend. More...
 
 ~BackEndMem () override
 
- Public Member Functions inherited from ndn::security::tpm::BackEnd
virtual ~BackEnd ()
 
bool hasKey (const Name &keyName) const
 
unique_ptr< KeyHandlegetKeyHandle (const Name &keyName) const
 
unique_ptr< KeyHandlecreateKey (const Name &identity, const KeyParams &params)
 Create key for identity according to params. More...
 
void deleteKey (const Name &keyName)
 Delete a key with name keyName. More...
 
ConstBufferPtr exportKey (const Name &keyName, const char *pw, size_t pwLen)
 
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 TPM is in terminal mode. More...
 
virtual void setTerminalMode (bool isTerminal) const
 Set the terminal mode of TPM. More...
 
virtual bool isTpmLocked () const
 
virtual bool unlockTpm (const char *pw, size_t pwLen) const
 Unlock 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 &params)
 Set the key name in keyHandle according to identity and params. More...
 

Detailed Description

The back-end implementation of in-memory TPM.

Definition at line 34 of file back-end-mem.hpp.

Constructor & Destructor Documentation

ndn::security::tpm::BackEndMem::BackEndMem ( const std::string &  location = "")
explicit

Create memory-based TPM backend.

Parameters
locationNot used (required by the TPM-registration interface)

Definition at line 40 of file back-end-mem.cpp.

References ~BackEndMem().

Referenced by ndn::security::tpm::BackEndMem::Error::Error().

ndn::security::tpm::BackEndMem::~BackEndMem ( )
overridedefault

Member Function Documentation

const std::string & ndn::security::tpm::BackEndMem::getScheme ( )
static

The documentation for this class was generated from the following files: