PSSST-Protocol / pssst.rs

Apache License 2.0
1 stars 1 forks source link

Fix compatibility with Python and Go implementations #3

Closed nickovs closed 4 years ago

nickovs commented 4 years ago

This PR updates the key derivation function to be compatible with the version 0.2.0 Python and Go implementations.

The PR also adds a program in examples/compatibility.rs that works with the check_compatibility.py tool in the Python implementation for testing interoperability between implementations. With these updates to the KDF the Rust version now passes the compatibility tests.

(P.S. Please don't laugh at the style for the Rust code in compatibility.rs; it's the very first Rust program I've ever written!)

nickovs commented 4 years ago

Note that this is a fix to issue #2.