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 |
Definition at line 156 of file sec-tpm-osx.cpp.
|
inline |
Definition at line 159 of file sec-tpm-osx.cpp.
Convert NDN name of a key to internal name of the key.
keyName | |
keyClass |
Definition at line 1094 of file sec-tpm-osx.cpp.
References ndn::KEY_CLASS_SYMMETRIC, and ndn::Name::toUri().
CFReleaser< SecKeychainItemRef > ndn::SecTpmOsx::Impl::getKey | ( | const Name & | keyName, |
KeyClass | keyClass | ||
) |
Get key.
keyName | |
keyClass |
Definition at line 1064 of file sec-tpm-osx.cpp.
References ndn::CFReleaser< T >::get().
CFTypeRef ndn::SecTpmOsx::Impl::getSymKeyType | ( | KeyType | keyType | ) |
Convert keyType to MAC OS symmetric key key type.
keyType |
Definition at line 1118 of file sec-tpm-osx.cpp.
References ndn::KEY_TYPE_AES.
CFTypeRef ndn::SecTpmOsx::Impl::getAsymKeyType | ( | KeyType | keyType | ) |
Convert keyType to MAC OS asymmetirc key type.
keyType |
Definition at line 1105 of file sec-tpm-osx.cpp.
References ndn::KEY_TYPE_ECDSA, and ndn::KEY_TYPE_RSA.
CFTypeRef ndn::SecTpmOsx::Impl::getKeyClass | ( | KeyClass | keyClass | ) |
Convert keyClass to MAC OS key class.
keyClass |
Definition at line 1129 of file sec-tpm-osx.cpp.
References ndn::KEY_CLASS_PRIVATE, ndn::KEY_CLASS_PUBLIC, and ndn::KEY_CLASS_SYMMETRIC.
CFStringRef ndn::SecTpmOsx::Impl::getDigestAlgorithm | ( | DigestAlgorithm | digestAlgo | ) |
Convert digestAlgo to MAC OS algorithm id.
digestAlgo |
Definition at line 1144 of file sec-tpm-osx.cpp.
References ndn::DIGEST_ALGORITHM_SHA256.
long ndn::SecTpmOsx::Impl::getDigestSize | ( | DigestAlgorithm | digestAlgo | ) |
Get the digest size of the corresponding algorithm.
digestAlgo |
Definition at line 1155 of file sec-tpm-osx.cpp.
References ndn::DIGEST_ALGORITHM_SHA256.
SecKeychainRef ndn::SecTpmOsx::Impl::m_keyChainRef |
Definition at line 234 of file sec-tpm-osx.cpp.
bool ndn::SecTpmOsx::Impl::m_passwordSet |
Definition at line 235 of file sec-tpm-osx.cpp.
string ndn::SecTpmOsx::Impl::m_password |
Definition at line 236 of file sec-tpm-osx.cpp.
bool ndn::SecTpmOsx::Impl::m_inTerminal |
Definition at line 237 of file sec-tpm-osx.cpp.