ndn::security::v1::SecTpmOsx::Impl Class Reference
Collaboration diagram for ndn::security::v1::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...
 
CFReleaser< SecKeychainItemRef > getKey (const Name &keyName, KeyClass keyClass)
 Get key. More...
 
CFTypeRef getSymKeyType (KeyType keyType)
 Convert keyType to MAC OS symmetric key key type. More...
 
CFTypeRef getAsymKeyType (KeyType keyType)
 Convert keyType to MAC OS asymmetirc key type. More...
 
CFTypeRef getKeyClass (KeyClass keyClass)
 Convert keyClass to MAC OS key class. More...
 
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 171 of file sec-tpm-osx.cpp.

Constructor & Destructor Documentation

ndn::security::v1::SecTpmOsx::Impl::Impl ( )
inline

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

Member Function Documentation

CFTypeRef ndn::security::v1::SecTpmOsx::Impl::getAsymKeyType ( KeyType  keyType)

Convert keyType to MAC OS asymmetirc key type.

Returns
MAC OS key type

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

CFStringRef ndn::security::v1::SecTpmOsx::Impl::getDigestAlgorithm ( DigestAlgorithm  digestAlgo)

Convert digestAlgo to MAC OS algorithm id.

Returns
MAC OS algorithm id

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

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

Get the digest size of the corresponding algorithm.

Returns
digest size

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

CFReleaser< SecKeychainItemRef > ndn::security::v1::SecTpmOsx::Impl::getKey ( const Name keyName,
KeyClass  keyClass 
)

Get key.

Returns
pointer to the key

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

CFTypeRef ndn::security::v1::SecTpmOsx::Impl::getKeyClass ( KeyClass  keyClass)

Convert keyClass to MAC OS key class.

Returns
MAC OS key class

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

CFTypeRef ndn::security::v1::SecTpmOsx::Impl::getSymKeyType ( KeyType  keyType)

Convert keyType to MAC OS symmetric key key type.

Returns
MAC OS key type

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

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

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

Returns
the internal key name

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

Field Documentation

bool ndn::security::v1::SecTpmOsx::Impl::m_inTerminal

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

SecKeychainRef ndn::security::v1::SecTpmOsx::Impl::m_keyChainRef

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

string ndn::security::v1::SecTpmOsx::Impl::m_password

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

bool ndn::security::v1::SecTpmOsx::Impl::m_passwordSet

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