joebandenburg / libaxolotl-javascript

A JavaScript implementation of axolotl. Axolotl is a ratcheting forward secrecy protocol.
GNU Lesser General Public License v3.0
75 stars 13 forks source link

Add test vectors #5

Closed joebandenburg closed 9 years ago

joebandenburg commented 9 years ago

We should have some tests that use specific inputs and compare the output with known values derived from another working implementation. This will help prove that the implementation is correct and compatible with other implementations. This should be done both at the API level and the unit level.

A challenge for this testing approach is the need to use the correct cryptographic primitives, including Curve25519.

CharlesOkwuagwu commented 9 years ago

I have used the existing tests from other implementations like you mentioned. Sadly these are quite few.