NS-3 based Named Data Networking (NDN) simulator
ndnSIM 2.0: NDN, CCN, CCNx, content centric networks
API Documentation
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
ndn::security::DummyTpm Class Reference

#include <dummy-keychain.hpp>

Inheritance diagram for ndn::security::DummyTpm:
Collaboration diagram for ndn::security::DummyTpm:

Public Member Functions

 DummyTpm (const std::string &locator)
 
virtual void setTpmPassword (const uint8_t *password, size_t passwordLength)
 
virtual void resetTpmPassword ()
 
virtual void setInTerminal (bool inTerminal)
 
virtual bool getInTerminal () const
 
virtual bool isLocked ()
 
virtual bool unlockTpm (const char *password, size_t passwordLength, bool usePassword)
 
virtual void generateKeyPairInTpm (const Name &keyName, const KeyParams &params)
 
virtual void deleteKeyPairInTpm (const Name &keyName)
 
virtual shared_ptr< PublicKey > getPublicKeyFromTpm (const Name &keyName)
 
virtual Block signInTpm (const uint8_t *data, size_t dataLength, const Name &keyName, DigestAlgorithm digestAlgorithm)
 
virtual ConstBufferPtr decryptInTpm (const uint8_t *data, size_t dataLength, const Name &keyName, bool isSymmetric)
 
virtual ConstBufferPtr encryptInTpm (const uint8_t *data, size_t dataLength, const Name &keyName, bool isSymmetric)
 
virtual void generateSymmetricKeyInTpm (const Name &keyName, const KeyParams &params)
 
virtual bool doesKeyExistInTpm (const Name &keyName, KeyClass keyClass)
 
virtual bool generateRandomBlock (uint8_t *res, size_t size)
 
virtual void addAppToAcl (const Name &keyName, KeyClass keyClass, const std::string &appPath, AclType acl)
 
virtual std::string getScheme ()
 

Static Public Attributes

static const std::string SCHEME = "tpm-dummy"
 

Protected Member Functions

virtual ConstBufferPtr exportPrivateKeyPkcs8FromTpm (const Name &keyName)
 
virtual bool importPrivateKeyPkcs8IntoTpm (const Name &keyName, const uint8_t *buffer, size_t bufferSize)
 
virtual bool importPublicKeyPkcs1IntoTpm (const Name &keyName, const uint8_t *buffer, size_t bufferSize)
 

Detailed Description

Definition at line 124 of file dummy-keychain.hpp.

Constructor & Destructor Documentation

ndn::security::DummyTpm::DummyTpm ( const std::string &  locator)

Definition at line 263 of file dummy-keychain.cpp.

Member Function Documentation

void ndn::security::DummyTpm::addAppToAcl ( const Name &  keyName,
KeyClass  keyClass,
const std::string &  appPath,
AclType  acl 
)
virtual

Definition at line 356 of file dummy-keychain.cpp.

ConstBufferPtr ndn::security::DummyTpm::decryptInTpm ( const uint8_t *  data,
size_t  dataLength,
const Name &  keyName,
bool  isSymmetric 
)
virtual

Definition at line 325 of file dummy-keychain.cpp.

void ndn::security::DummyTpm::deleteKeyPairInTpm ( const Name &  keyName)
virtual

Definition at line 307 of file dummy-keychain.cpp.

bool ndn::security::DummyTpm::doesKeyExistInTpm ( const Name &  keyName,
KeyClass  keyClass 
)
virtual

Definition at line 344 of file dummy-keychain.cpp.

ConstBufferPtr ndn::security::DummyTpm::encryptInTpm ( const uint8_t *  data,
size_t  dataLength,
const Name &  keyName,
bool  isSymmetric 
)
virtual

Definition at line 332 of file dummy-keychain.cpp.

ConstBufferPtr ndn::security::DummyTpm::exportPrivateKeyPkcs8FromTpm ( const Name &  keyName)
protectedvirtual

Definition at line 362 of file dummy-keychain.cpp.

void ndn::security::DummyTpm::generateKeyPairInTpm ( const Name &  keyName,
const KeyParams &  params 
)
virtual

Definition at line 302 of file dummy-keychain.cpp.

bool ndn::security::DummyTpm::generateRandomBlock ( uint8_t *  res,
size_t  size 
)
virtual

Definition at line 350 of file dummy-keychain.cpp.

void ndn::security::DummyTpm::generateSymmetricKeyInTpm ( const Name &  keyName,
const KeyParams &  params 
)
virtual

Definition at line 339 of file dummy-keychain.cpp.

bool ndn::security::DummyTpm::getInTerminal ( ) const
virtual

Definition at line 284 of file dummy-keychain.cpp.

shared_ptr< PublicKey > ndn::security::DummyTpm::getPublicKeyFromTpm ( const Name &  keyName)
virtual

Definition at line 312 of file dummy-keychain.cpp.

std::string ndn::security::DummyTpm::getScheme ( )
virtual

Definition at line 381 of file dummy-keychain.cpp.

References SCHEME.

bool ndn::security::DummyTpm::importPrivateKeyPkcs8IntoTpm ( const Name &  keyName,
const uint8_t *  buffer,
size_t  bufferSize 
)
protectedvirtual

Definition at line 368 of file dummy-keychain.cpp.

bool ndn::security::DummyTpm::importPublicKeyPkcs1IntoTpm ( const Name &  keyName,
const uint8_t *  buffer,
size_t  bufferSize 
)
protectedvirtual

Definition at line 375 of file dummy-keychain.cpp.

bool ndn::security::DummyTpm::isLocked ( )
virtual

Definition at line 290 of file dummy-keychain.cpp.

void ndn::security::DummyTpm::resetTpmPassword ( )
virtual

Definition at line 274 of file dummy-keychain.cpp.

void ndn::security::DummyTpm::setInTerminal ( bool  inTerminal)
virtual

Definition at line 279 of file dummy-keychain.cpp.

void ndn::security::DummyTpm::setTpmPassword ( const uint8_t *  password,
size_t  passwordLength 
)
virtual

Definition at line 269 of file dummy-keychain.cpp.

Block ndn::security::DummyTpm::signInTpm ( const uint8_t *  data,
size_t  dataLength,
const Name &  keyName,
DigestAlgorithm  digestAlgorithm 
)
virtual

Definition at line 318 of file dummy-keychain.cpp.

References ndn::security::DUMMY_SIGNATURE.

bool ndn::security::DummyTpm::unlockTpm ( const char *  password,
size_t  passwordLength,
bool  usePassword 
)
virtual

Definition at line 296 of file dummy-keychain.cpp.

Member Data Documentation

const std::string ndn::security::DummyTpm::SCHEME = "tpm-dummy"
static

Definition at line 191 of file dummy-keychain.hpp.

Referenced by getScheme().


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