diff options
author | luigi1111 <luigi1111w@gmail.com> | 2018-08-22 20:32:55 -0500 |
---|---|---|
committer | luigi1111 <luigi1111w@gmail.com> | 2018-08-22 20:32:55 -0500 |
commit | 13a34faeb09814121140e14e0af442714fa985f9 (patch) | |
tree | a9ae5deea2a54c57391752089a42aea3954bac04 /tests/unit_tests/ringdb.cpp | |
parent | Merge pull request #4105 (diff) | |
parent | crypto: make secret_key automatically mlock (diff) | |
download | monero-13a34faeb09814121140e14e0af442714fa985f9.tar.xz |
Merge pull request #4131
ea37614 wallet: wipe seed from memory where appropriate (moneromooo-monero)
e9ffa91 store secret keys encrypted where possible (moneromooo-monero)
70271fa common: add a class to safely wrap mlock/munlock (moneromooo-monero)
ab74dc2 crypto: make secret_key automatically mlock (moneromooo-monero)
Diffstat (limited to 'tests/unit_tests/ringdb.cpp')
-rw-r--r-- | tests/unit_tests/ringdb.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/unit_tests/ringdb.cpp b/tests/unit_tests/ringdb.cpp index 8b0ea10d4..9b842569a 100644 --- a/tests/unit_tests/ringdb.cpp +++ b/tests/unit_tests/ringdb.cpp @@ -47,7 +47,7 @@ static crypto::chacha_key generate_chacha_key() { crypto::chacha_key chacha_key; uint64_t password = crypto::rand<uint64_t>(); - crypto::generate_chacha_key(std::string((const char*)&password, sizeof(password)), chacha_key); + crypto::generate_chacha_key(std::string((const char*)&password, sizeof(password)), chacha_key, 1); return chacha_key; } |