From 8c8a42656cda5ff98057b795bc5c99ece8549f15 Mon Sep 17 00:00:00 2001 From: moneroexamples Date: Mon, 20 Aug 2018 12:11:35 +0800 Subject: [PATCH] fix: crypto::generate_chacha_key does not compile --- src/tools.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/tools.cpp b/src/tools.cpp index 5cfa59c..2c8300a 100644 --- a/src/tools.cpp +++ b/src/tools.cpp @@ -1048,7 +1048,7 @@ decrypt(const std::string &ciphertext, } crypto::chacha_key key; - crypto::generate_chacha_key(&skey, sizeof(skey), key); + crypto::generate_chacha_key(&skey, sizeof(skey), key, 1); const crypto::chacha_iv &iv = *(const crypto::chacha_iv*)&ciphertext[0];