|
|
|
@ -422,15 +422,13 @@ bool CWallet::EncryptWallet(const SecureString& strWalletPassphrase)
@@ -422,15 +422,13 @@ bool CWallet::EncryptWallet(const SecureString& strWalletPassphrase)
|
|
|
|
|
RandAddSeedPerfmon(); |
|
|
|
|
|
|
|
|
|
vMasterKey.resize(WALLET_CRYPTO_KEY_SIZE); |
|
|
|
|
if (!GetRandBytes(&vMasterKey[0], WALLET_CRYPTO_KEY_SIZE)) |
|
|
|
|
return false; |
|
|
|
|
GetRandBytes(&vMasterKey[0], WALLET_CRYPTO_KEY_SIZE); |
|
|
|
|
|
|
|
|
|
CMasterKey kMasterKey; |
|
|
|
|
RandAddSeedPerfmon(); |
|
|
|
|
|
|
|
|
|
kMasterKey.vchSalt.resize(WALLET_CRYPTO_SALT_SIZE); |
|
|
|
|
if (!GetRandBytes(&kMasterKey.vchSalt[0], WALLET_CRYPTO_SALT_SIZE)) |
|
|
|
|
return false; |
|
|
|
|
GetRandBytes(&kMasterKey.vchSalt[0], WALLET_CRYPTO_SALT_SIZE); |
|
|
|
|
|
|
|
|
|
CCrypter crypter; |
|
|
|
|
int64_t nStartTime = GetTimeMillis(); |
|
|
|
|