#rsa #curve


Wycheproof test vectors

6 releases (breaking)

0.5.1 Jul 13, 2023
0.5.0 Mar 7, 2023
0.4.0 Jul 11, 2021
0.3.0 Jul 4, 2021
0.1.0 Jun 26, 2021

#619 in Cryptography

Download history 5975/week @ 2023-06-07 5412/week @ 2023-06-14 6014/week @ 2023-06-21 4684/week @ 2023-06-28 4569/week @ 2023-07-05 4783/week @ 2023-07-12 5560/week @ 2023-07-19 4464/week @ 2023-07-26 4442/week @ 2023-08-02 4698/week @ 2023-08-09 5634/week @ 2023-08-16 5479/week @ 2023-08-23 4387/week @ 2023-08-30 4790/week @ 2023-09-06 4898/week @ 2023-09-13 3996/week @ 2023-09-20

19,391 downloads per month
Used in 3 crates


1.5K SLoC

Wycheproof (Deserialized)

crates.io docs.rs

Google's Wycheproof project is an immensely useful set of tests which cover common corner cases in cryptographic code.

The author is currently on their third job in a row where he had to write code in Rust to deserialize the JSON formatted Wycheproof tests so they can be used to test some code. This crate was born out of a desire to never ever have to do this again. It also does all the nice things I wanted but didn't have the time to do on previous attempts, like decoding the hex and base64 during deserialization, using enums to aid type checking, verifying that schemas match the expected one, etc.

The minimum supported Rust version (MSRV) of this crate is currently Rust 1.57.0. If the MSRV increases in the future, this will be accompanied by an increment to the minor version number.

Comments and patches are welcome.

This crate is licensed Apache 2.0-only, just as Wycheproof itself is. The files in src/data are taken from the latest Wycheproof commit