diff options
| author | Wladimir J. van der Laan <[email protected]> | 2015-02-19 12:00:17 +0100 |
|---|---|---|
| committer | Wladimir J. van der Laan <[email protected]> | 2015-02-19 12:09:26 +0100 |
| commit | 07f4386b387caddd82502d575cc9dba80b81d9f2 (patch) | |
| tree | 65727039c39354977ca8b9007ed9e395cb089586 /src/crypter.cpp | |
| parent | Merge #5803: Update debian changelog and control file (diff) | |
| parent | openssl: abstract out OPENSSL_cleanse (diff) | |
| download | discoin-07f4386b387caddd82502d575cc9dba80b81d9f2.tar.xz discoin-07f4386b387caddd82502d575cc9dba80b81d9f2.zip | |
Merge #5689: openssl: abstract out OPENSSL_cleanse
1630219 openssl: abstract out OPENSSL_cleanse (Cory Fields)
Diffstat (limited to 'src/crypter.cpp')
| -rw-r--r-- | src/crypter.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/crypter.cpp b/src/crypter.cpp index 75d84dbf1..c7f7e2167 100644 --- a/src/crypter.cpp +++ b/src/crypter.cpp @@ -26,8 +26,8 @@ bool CCrypter::SetKeyFromPassphrase(const SecureString& strKeyData, const std::v if (i != (int)WALLET_CRYPTO_KEY_SIZE) { - OPENSSL_cleanse(chKey, sizeof(chKey)); - OPENSSL_cleanse(chIV, sizeof(chIV)); + memory_cleanse(chKey, sizeof(chKey)); + memory_cleanse(chIV, sizeof(chIV)); return false; } |