133 #ifndef OPENTXS_CORE_CRYPTO_OTCACHEDKEY_HPP
134 #define OPENTXS_CORE_CRYPTO_OTCACHEDKEY_HPP
150 class OTSymmetricKey;
307 #define OT_MASTER_KEY_TIMEOUT 300
314 std::thread* m_pThread;
316 int32_t m_nTimeoutSeconds;
321 bool m_bUse_System_Keyring;
337 static std::mutex s_mutexThreadTimeout;
338 static std::mutex s_mutexCachedKeys;
370 EXPORT
static std::shared_ptr<OTCachedKey>
It(
377 EXPORT
static std::shared_ptr<OTCachedKey>
It(
OTCachedKey& theSourceKey);
388 return m_bUse_System_Keyring;
392 m_bUse_System_Keyring = bUsing;
438 const char* szDisplay =
nullptr,
439 bool bVerifyTwice =
false);
442 OTPassword& theOutput,
const char* szDisplay =
nullptr,
479 #endif // OPENTXS_CORE_CRYPTO_OTCACHEDKEY_HPP
static EXPORT void Cleanup()
EXPORT void ResetMasterPassword()
static EXPORT std::shared_ptr< OTCachedKey > CreateMasterPassword(OTPassword &theOutput, const char *szDisplay=nullptr, int32_t nTimeoutSeconds=OT_MASTER_KEY_TIMEOUT)
EXPORT void LowLevelReleaseThread()
EXPORT bool IsUsingSystemKeyring() const
EXPORT void SetCachedKey(const OTASCIIArmor &ascCachedKey)
std::map< std::string, std::shared_ptr< OTCachedKey > > mapOfCachedKeys
EXPORT void DestroyMasterPassword()
static EXPORT std::shared_ptr< OTCachedKey > It(OTIdentifier *pIdentifier=nullptr)
EXPORT void SetTimeoutSeconds(int32_t nTimeoutSeconds)
EXPORT void UseSystemKeyring(bool bUsing=true)
EXPORT bool IsGenerated()
EXPORT bool GetIdentifier(OTIdentifier &theIdentifier) const
EXPORT bool HasHashCheck()
static EXPORT void ThreadTimeout(void *pArg)
EXPORT bool SerializeFrom(const OTASCIIArmor &ascInput)
EXPORT int32_t GetTimeoutSeconds()
#define OT_MASTER_KEY_TIMEOUT
EXPORT bool SerializeTo(OTASCIIArmor &ascOutput)
EXPORT bool GetMasterPassword(std::shared_ptr< OTCachedKey > &mySharedPtr, OTPassword &theOutput, const char *szDisplay=nullptr, bool bVerifyTwice=false)