133 #ifndef OPENTXS_CORE_CRYPTO_OTPASSWORDDATA_HPP
134 #define OPENTXS_CORE_CRYPTO_OTPASSWORDDATA_HPP
169 #define OT_PW_DISPLAY "Enter master passphrase for wallet."
171 #define OTPASSWORD_BLOCKSIZE 128 // (128 bytes max length for a password.)
172 #define OTPASSWORD_MEMSIZE 129 // +1 for null terminator.
176 #define OT_LARGE_BLOCKSIZE 32767 // (32767 bytes max length for a password.)
177 #define OT_LARGE_MEMSIZE 32768 // +1 for null terminator.
180 #define OT_DEFAULT_BLOCKSIZE 128
181 #define OT_DEFAULT_MEMSIZE 129
361 const std::string m_strDisplay;
362 bool m_bUsingOldSystem;
365 std::shared_ptr<OTCachedKey> m_pCachedKey;
383 std::shared_ptr<OTCachedKey> pCachedKey =
384 std::shared_ptr<OTCachedKey>());
387 std::shared_ptr<OTCachedKey> pCachedKey =
388 std::shared_ptr<OTCachedKey>());
391 std::shared_ptr<OTCachedKey> pCachedKey =
392 std::shared_ptr<OTCachedKey>());
398 #endif // OPENTXS_CORE_CRYPTO_OTPASSWORDDATA_HPP
EXPORT const char * GetDisplayString() const
EXPORT bool isUsingOldSystem() const
std::shared_ptr< OTCachedKey > GetCachedKey() const
EXPORT void setUsingOldSystem(bool bUsing=true)
EXPORT OTPasswordData(const char *szDisplay, OTPassword *pMasterPW=nullptr, std::shared_ptr< OTCachedKey > pCachedKey=std::shared_ptr< OTCachedKey >())
OTPassword * GetMasterPW() const
EXPORT bool isForCachedKey() const
EXPORT bool isForNormalNym() const