fix: crypto::generate_chacha_key does not compile

master
moneroexamples 6 years ago
parent 3e1631643e
commit 8c8a42656c

@ -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];

Loading…
Cancel
Save