ndn::security::tpm Namespace Reference

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  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 OS X Keychain Service. More...
 
class  Tpm
 represents the front-end of TPM More...
 

Typedefs

using KeyRefOsx = util::CFReleaser< SecKeyRef >
 

Functions

static CFTypeRef getAsymKeyType (KeyType keyType)
 
static CFTypeRef getDigestAlgorithm (DigestAlgorithm digestAlgo)
 
static int getDigestSize (DigestAlgorithm digestAlgo)
 
static std::string getErrorMessage (OSStatus status)
 
static std::string getFailureReason (CFErrorRef err)
 
static KeyRefOsx getKeyRef (const Name &keyName)
 Get reference to private key with name keyName. More...
 
static CFReleaser< CFDataRef > makeCFDataNoCopy (const uint8_t *buf, size_t buflen)
 
static CFReleaser< CFMutableDictionaryRef > makeCFMutableDictionary ()
 

Variables

static class ndn::security::tpm::NdnCxxAutoBackEndFileTpmRegistrationClass ndnCxxAutoBackEndFileTpmRegistrationVariable
 
static class ndn::security::tpm::NdnCxxAutoBackEndMemTpmRegistrationClass ndnCxxAutoBackEndMemTpmRegistrationVariable
 

Typedef Documentation

using ndn::security::tpm::KeyRefOsx = typedef util::CFReleaser<SecKeyRef>

Definition at line 38 of file key-ref-osx.hpp.

Function Documentation

static CFTypeRef ndn::security::tpm::getAsymKeyType ( KeyType  keyType)
static

Definition at line 80 of file back-end-osx.cpp.

static CFTypeRef ndn::security::tpm::getDigestAlgorithm ( DigestAlgorithm  digestAlgo)
static

Definition at line 93 of file back-end-osx.cpp.

static int ndn::security::tpm::getDigestSize ( DigestAlgorithm  digestAlgo)
static

Definition at line 107 of file back-end-osx.cpp.

static std::string ndn::security::tpm::getErrorMessage ( OSStatus  status)
static

Definition at line 60 of file back-end-osx.cpp.

static std::string ndn::security::tpm::getFailureReason ( CFErrorRef  err)
static

Definition at line 70 of file back-end-osx.cpp.

static KeyRefOsx ndn::security::tpm::getKeyRef ( const Name keyName)
static

Get reference to private key with name keyName.

Definition at line 127 of file back-end-osx.cpp.

static CFReleaser<CFDataRef> ndn::security::tpm::makeCFDataNoCopy ( const uint8_t *  buf,
size_t  buflen 
)
static

Definition at line 46 of file back-end-osx.cpp.

static CFReleaser<CFMutableDictionaryRef> ndn::security::tpm::makeCFMutableDictionary ( )
static

Definition at line 52 of file back-end-osx.cpp.

Variable Documentation

class ndn::security::tpm::NdnCxxAutoBackEndFileTpmRegistrationClass ndn::security::tpm::ndnCxxAutoBackEndFileTpmRegistrationVariable
static
class ndn::security::tpm::NdnCxxAutoBackEndMemTpmRegistrationClass ndn::security::tpm::ndnCxxAutoBackEndMemTpmRegistrationVariable
static