fix: crypto::generate_chacha_key does not compile
This commit is contained in:
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…
Reference in New Issue