MixinNetwork / libsignal_protocol_dart

Signal Protocol library for Dart/Flutter
https://pub.dev/packages/libsignal_protocol_dart
GNU General Public License v3.0
159 stars 42 forks source link

Upgrade to PQXDH #79

Closed michalcickan closed 9 months ago

michalcickan commented 9 months ago

Hello,

Signal recently released PQXDH, which is an upgrade to the X3DH. What is the problem? When I want to decrypt the message in the notification service extension, which uses LibSignalClient, the library throws an exception: "ciphertext version was too old." I use that since I must also decrypt the message when the app is terminated.

Here is an article about this new standard: https://signal.org/blog/pqxdh/

michalcickan commented 9 months ago

It was my mistake. I forgot that I encoded additional data to my message, which I sent via socket; therefore, it could not decrypt the message. When I extracted only message cipher text, then it worked without complaints. That error message from LibSignalClient confused me.

Anyway, thanks for the great work with this library.