#include <dummy-keychain.hpp>
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 ¶ms) |
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 ¶ms) |
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) |
Definition at line 124 of file dummy-keychain.hpp.
ndn::security::DummyTpm::DummyTpm | ( | const std::string & | locator | ) |
Definition at line 263 of file dummy-keychain.cpp.
|
virtual |
Definition at line 356 of file dummy-keychain.cpp.
|
virtual |
Definition at line 325 of file dummy-keychain.cpp.
|
virtual |
Definition at line 307 of file dummy-keychain.cpp.
|
virtual |
Definition at line 344 of file dummy-keychain.cpp.
|
virtual |
Definition at line 332 of file dummy-keychain.cpp.
|
protectedvirtual |
Definition at line 362 of file dummy-keychain.cpp.
|
virtual |
Definition at line 302 of file dummy-keychain.cpp.
|
virtual |
Definition at line 350 of file dummy-keychain.cpp.
|
virtual |
Definition at line 339 of file dummy-keychain.cpp.
|
virtual |
Definition at line 284 of file dummy-keychain.cpp.
|
virtual |
Definition at line 312 of file dummy-keychain.cpp.
|
virtual |
Definition at line 381 of file dummy-keychain.cpp.
References SCHEME.
|
protectedvirtual |
Definition at line 368 of file dummy-keychain.cpp.
|
protectedvirtual |
Definition at line 375 of file dummy-keychain.cpp.
|
virtual |
Definition at line 290 of file dummy-keychain.cpp.
|
virtual |
Definition at line 274 of file dummy-keychain.cpp.
|
virtual |
Definition at line 279 of file dummy-keychain.cpp.
|
virtual |
Definition at line 269 of file dummy-keychain.cpp.
|
virtual |
Definition at line 318 of file dummy-keychain.cpp.
References ndn::security::DUMMY_SIGNATURE.
|
virtual |
Definition at line 296 of file dummy-keychain.cpp.
|
static |
Definition at line 191 of file dummy-keychain.hpp.
Referenced by getScheme().