Skip to content

Commit c52b192

Browse files
authored
Added prekey to session id computation (#9)
1 parent 6d0eaa9 commit c52b192

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/session.cpp

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -235,6 +235,7 @@ std::size_t olm::Session::session_id(
235235
pos = olm::store_array(pos, alice_identity_key.public_key);
236236
pos = olm::store_array(pos, alice_base_key.public_key);
237237
pos = olm::store_array(pos, bob_one_time_key.public_key);
238+
pos = olm::store_array(pos, bob_prekey.public_key);
238239
_olm_crypto_sha256(tmp, sizeof(tmp), id);
239240
return session_id_length();
240241
}

0 commit comments

Comments
 (0)