13 releases

0.5.0 Oct 16, 2023
0.4.6 Nov 16, 2022
0.4.5 Apr 14, 2022
0.4.4 Nov 25, 2021
0.1.1 Jul 24, 2019

#2580 in Cryptography

Download history 388/week @ 2024-07-29 372/week @ 2024-08-05 433/week @ 2024-08-12 561/week @ 2024-08-19 751/week @ 2024-08-26 438/week @ 2024-09-02 471/week @ 2024-09-09 293/week @ 2024-09-16 518/week @ 2024-09-23 248/week @ 2024-09-30 299/week @ 2024-10-07 237/week @ 2024-10-14 286/week @ 2024-10-21 313/week @ 2024-10-28 475/week @ 2024-11-04 538/week @ 2024-11-11

1,625 downloads per month
Used in 12 crates (8 directly)

MIT/Apache

19MB
427K SLoC

GNU Style Assembly 278K SLoC // 0.0% comments C 143K SLoC // 0.3% comments Bitbake 2.5K SLoC // 0.0% comments Rust 2.5K SLoC // 0.0% comments Python 1.5K SLoC // 0.1% comments Jinja2 202 SLoC INI 5 SLoC

dilithium

This crate contains bindings to the C implementations of the following schemes, from PQClean.

This project packages Post-Quantum cryptographic algorithms that participate in the NIST PQC standardization effort. It is currently a collection of wrappers around C implementations from the PQClean project.

Serialization

If you want serde support, enable the serialization feature.

Included implementations from PQClean

Below is a list of the included schemes and the corresponding implementations sourced from PQClean. The "default" implementation is used in the Rust-friendly interface, alternative implementations are exposed as ffi methods only.

  • dilithium2
    • clean
    • avx2 (if supported)
    • aarch64 (if supported)
  • dilithium3
    • clean
    • avx2 (if supported)
    • aarch64 (if supported)
  • dilithium5
    • clean
    • avx2 (if supported)
    • aarch64 (if supported)

License

The wrappers and wrapper generation scripts in this project are covered by the MIT or Apache 2.0 licenses, at your choice.

The implementations we link to are not, however. Please see the PQClean project for the appropriate licenses.

Dependencies