NS-3 based Named Data Networking (NDN) simulator
ndnSIM 2.0: NDN, CCN, CCNx, content centric networks
API Documentation
ndn::SecTpmOsx::Impl Class Reference
Collaboration diagram for ndn::SecTpmOsx::Impl:

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...
 

Public Attributes

SecKeychainRef m_keyChainRef
 
bool m_passwordSet
 
string m_password
 
bool m_inTerminal
 

Detailed Description

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

Constructor & Destructor Documentation

§ Impl()

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

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

Member Function Documentation

§ toInternalKeyName()

string ndn::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 1085 of file sec-tpm-osx.cpp.

References ndn::KEY_CLASS_SYMMETRIC, and ndn::Name::toUri().

§ getKey()

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

Get key.

Returns
pointer to the key

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

References ndn::CFReleaser< T >::get().

§ getSymKeyType()

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

Convert keyType to MAC OS symmetric key key type.

Returns
MAC OS key type

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

References ndn::KEY_TYPE_AES.

§ getAsymKeyType()

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

Convert keyType to MAC OS asymmetirc key type.

Returns
MAC OS key type

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

References ndn::KEY_TYPE_ECDSA, and ndn::KEY_TYPE_RSA.

§ getKeyClass()

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

Convert keyClass to MAC OS key class.

Returns
MAC OS key class

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

References ndn::KEY_CLASS_PRIVATE, ndn::KEY_CLASS_PUBLIC, and ndn::KEY_CLASS_SYMMETRIC.

§ getDigestAlgorithm()

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

Convert digestAlgo to MAC OS algorithm id.

Returns
MAC OS algorithm id

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

References ndn::DIGEST_ALGORITHM_SHA256.

§ getDigestSize()

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

Get the digest size of the corresponding algorithm.

Returns
digest size

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

References ndn::DIGEST_ALGORITHM_SHA256.

Member Data Documentation

§ m_keyChainRef

SecKeychainRef ndn::SecTpmOsx::Impl::m_keyChainRef

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

§ m_passwordSet

bool ndn::SecTpmOsx::Impl::m_passwordSet

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

§ m_password

string ndn::SecTpmOsx::Impl::m_password

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

§ m_inTerminal

bool ndn::SecTpmOsx::Impl::m_inTerminal

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


The documentation for this class was generated from the following file: