All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
ndn::SecTpmOsx::Impl Class Reference
Collaboration diagram for ndn::SecTpmOsx::Impl:
[legend]

Public Member Functions

 Impl ()
 
std::string toInternalKeyName (const Name &keyName, KeyClass keyClass)
 Convert NDN name of a key to internal name of the key. More...
 
SecKeychainItemRef getKey (const Name &keyName, KeyClass keyClass)
 Get key. More...
 
const CFTypeRef getSymKeyType (KeyType keyType)
 Convert keyType to MAC OS symmetric key key type. More...
 
const CFTypeRef getAsymKeyType (KeyType keyType)
 Convert keyType to MAC OS asymmetirc key type. More...
 
const CFTypeRef getKeyClass (KeyClass keyClass)
 Convert keyClass to MAC OS key class. More...
 
const CFStringRef getDigestAlgorithm (DigestAlgorithm digestAlgo)
 Convert digestAlgo to MAC OS algorithm id. More...
 
long getDigestSize (DigestAlgorithm digestAlgo)
 Get the digest size of the corresponding algorithm. More...
 

Data Fields

SecKeychainRef m_keyChainRef
 
bool m_passwordSet
 
string m_password
 
bool m_inTerminal
 

Detailed Description

Definition at line 31 of file sec-tpm-osx.cpp.

Constructor & Destructor Documentation

ndn::SecTpmOsx::Impl::Impl ( )
inline

Definition at line 34 of file sec-tpm-osx.cpp.

Member Function Documentation

const CFTypeRef ndn::SecTpmOsx::Impl::getAsymKeyType ( KeyType  keyType)

Convert keyType to MAC OS asymmetirc key type.

Parameters
keyType
Returns
MAC OS key type

Definition at line 864 of file sec-tpm-osx.cpp.

const CFStringRef ndn::SecTpmOsx::Impl::getDigestAlgorithm ( DigestAlgorithm  digestAlgo)

Convert digestAlgo to MAC OS algorithm id.

Parameters
digestAlgo
Returns
MAC OS algorithm id

Definition at line 901 of file sec-tpm-osx.cpp.

long ndn::SecTpmOsx::Impl::getDigestSize ( DigestAlgorithm  digestAlgo)

Get the digest size of the corresponding algorithm.

Parameters
digestAlgo
Returns
digest size

Definition at line 918 of file sec-tpm-osx.cpp.

SecKeychainItemRef ndn::SecTpmOsx::Impl::getKey ( const Name keyName,
KeyClass  keyClass 
)

Get key.

Parameters
keyName
keyClass
Returns
pointer to the key

Definition at line 824 of file sec-tpm-osx.cpp.

const CFTypeRef ndn::SecTpmOsx::Impl::getKeyClass ( KeyClass  keyClass)

Convert keyClass to MAC OS key class.

Parameters
keyClass
Returns
MAC OS key class

Definition at line 886 of file sec-tpm-osx.cpp.

const CFTypeRef ndn::SecTpmOsx::Impl::getSymKeyType ( KeyType  keyType)

Convert keyType to MAC OS symmetric key key type.

Parameters
keyType
Returns
MAC OS key type

Definition at line 875 of file sec-tpm-osx.cpp.

string ndn::SecTpmOsx::Impl::toInternalKeyName ( const Name keyName,
KeyClass  keyClass 
)

Convert NDN name of a key to internal name of the key.

Parameters
keyName
keyClass
Returns
the internal key name

Definition at line 853 of file sec-tpm-osx.cpp.

Field Documentation

bool ndn::SecTpmOsx::Impl::m_inTerminal

Definition at line 112 of file sec-tpm-osx.cpp.

SecKeychainRef ndn::SecTpmOsx::Impl::m_keyChainRef

Definition at line 109 of file sec-tpm-osx.cpp.

string ndn::SecTpmOsx::Impl::m_password

Definition at line 111 of file sec-tpm-osx.cpp.

bool ndn::SecTpmOsx::Impl::m_passwordSet

Definition at line 110 of file sec-tpm-osx.cpp.