oxen-io / libsession-util

Session utilities library
GNU General Public License v3.0
15 stars 16 forks source link

Fix issue with decryption of a still-pending key #55

Closed jagerman closed 1 year ago

jagerman commented 1 year ago

If you call rekey() and then encrypt_message() before the rekey is confirmed, decryption would fail because the pending key wouldn't be tried yet. This fixes it (including a verified-to-have-failed test case).

Thanks to Harris for the help tracking down/debugging this one.