Skip to content
Snippets Groups Projects
Verified Commit 75ae0f61 authored by Nicolas Werner's avatar Nicolas Werner
Browse files

Fix crypto export aes nonce

parent 6306ce3b
Branches
Tags
No related merge requests found
......@@ -776,7 +776,7 @@ mtx::crypto::encrypt_exported_sessions(const mtx::crypto::ExportedSessionKeys &k
const auto plaintext = json(keys).dump();
auto nonce = create_buffer(AES_BLOCK_SIZE);
nonce[63 / 8] &= ~(1UL << (63 % 8));
nonce[15 - 63 % 8] &= ~(1UL << (63 / 8));
auto salt = create_buffer(pwhash_SALTBYTES);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment