fix: crypto::generate_chacha_key does not compile

This commit is contained in:
moneroexamples 2018-08-20 12:11:35 +08:00
parent 3e1631643e
commit 8c8a42656c

View file

@ -1048,7 +1048,7 @@ decrypt(const std::string &ciphertext,
} }
crypto::chacha_key key; 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]; const crypto::chacha_iv &iv = *(const crypto::chacha_iv*)&ciphertext[0];