Classes | |
class | BackEnd |
Abstract interface for a TPM backend implementation. More... | |
class | BackEndFile |
The back-end implementation of a file-based TPM. More... | |
class | BackEndMem |
The back-end implementation of an in-memory TPM. More... | |
class | BackEndOsx |
The back-end implementation of TPM based on macOS Keychain Services. More... | |
class | DummyKeyHandle |
class | KeyHandle |
Abstraction of TPM key handle. More... | |
class | KeyHandleMem |
A TPM key handle that keeps the private key in memory. More... | |
class | KeyHandleOsx |
Abstraction of TPM key handle used by the TPM based on macOS Keychain Services. More... | |
class | Tpm |
TPM front-end class. More... | |
Typedefs | |
using | KeyRefOsx = detail::CFReleaser< SecKeyRef > |
Functions | |
static CFReleaser< CFDataRef > | makeCFDataNoCopy (const uint8_t *buf, size_t buflen) |
static CFReleaser< CFMutableDictionaryRef > | makeCFMutableDictionary () |
static std::string | getErrorMessage (OSStatus status) |
static std::string | getFailureReason (CFErrorRef err) |
static CFTypeRef | getAsymKeyType (KeyType keyType) |
static CFTypeRef | getDigestAlgorithm (DigestAlgorithm digestAlgo) |
static int | getDigestSize (DigestAlgorithm digestAlgo) |
static KeyRefOsx | getKeyRef (const Name &keyName) |
Get reference to private key with name keyName . More... | |
static void | exportItem (const KeyRefOsx &keyRef, transform::PrivateKey &outKey) |
Export a private key from the Keychain to outKey . More... | |
NDN_CXX_V2_KEYCHAIN_REGISTER_TPM_BACKEND (BackEndFile) | |
NDN_CXX_V2_KEYCHAIN_REGISTER_TPM_BACKEND (BackEndMem) | |
using ndn::security::tpm::KeyRefOsx = typedef detail::CFReleaser<SecKeyRef> |
Definition at line 39 of file key-ref-osx.hpp.
|
static |
Definition at line 48 of file back-end-osx.cpp.
References buf.
Referenced by ndn::security::tpm::BackEndOsx::decrypt(), and ndn::security::tpm::BackEndOsx::sign().
|
static |
Definition at line 54 of file back-end-osx.cpp.
Referenced by getKeyRef().
|
static |
Definition at line 62 of file back-end-osx.cpp.
References ndn::detail::CFReleaser< T >::get(), and ndn::detail::cfstring::toStdString().
Referenced by exportItem(), and getKeyRef().
|
static |
Definition at line 72 of file back-end-osx.cpp.
References ndn::detail::CFReleaser< T >::get(), and ndn::detail::cfstring::toStdString().
Referenced by ndn::security::tpm::BackEndOsx::decrypt(), and ndn::security::tpm::BackEndOsx::sign().
|
static |
Definition at line 82 of file back-end-osx.cpp.
References ndn::EC, NDN_CXX_UNREACHABLE, and ndn::RSA.
|
static |
Definition at line 95 of file back-end-osx.cpp.
References ndn::SHA224, ndn::SHA256, ndn::SHA384, and ndn::SHA512.
Referenced by ndn::security::tpm::BackEndOsx::sign().
|
static |
Definition at line 109 of file back-end-osx.cpp.
References ndn::SHA224, ndn::SHA256, ndn::SHA384, and ndn::SHA512.
Referenced by ndn::security::tpm::BackEndOsx::sign().
Get reference to private key with name keyName
.
Definition at line 129 of file back-end-osx.cpp.
References ndn::detail::cfstring::fromStdString(), ndn::detail::CFReleaser< T >::get(), getErrorMessage(), makeCFMutableDictionary(), NDN_THROW, ndn::detail::CFReleaser< T >::retain(), and ndn::Name::toUri().
|
static |
Export a private key from the Keychain to outKey
.
Definition at line 159 of file back-end-osx.cpp.
References ndn::detail::cfstring::fromBuffer(), ndn::detail::CFReleaser< T >::get(), getErrorMessage(), ndn::security::transform::PrivateKey::loadPkcs8(), and NDN_THROW.
Referenced by ndn::security::tpm::BackEndOsx::derivePublicKey().
ndn::security::tpm::NDN_CXX_V2_KEYCHAIN_REGISTER_TPM_BACKEND | ( | BackEndFile | ) |
ndn::security::tpm::NDN_CXX_V2_KEYCHAIN_REGISTER_TPM_BACKEND | ( | BackEndMem | ) |