11 releases

0.1.11 Apr 14, 2022
0.1.10 Nov 25, 2021
0.1.9 Sep 20, 2021
0.1.7 Jun 10, 2021
0.1.1 Jul 24, 2019

#2783 in Cryptography

Download history 51/week @ 2024-08-29 131/week @ 2024-09-05 56/week @ 2024-09-12 105/week @ 2024-09-19 225/week @ 2024-09-26 102/week @ 2024-10-03 54/week @ 2024-10-10 80/week @ 2024-10-17 12/week @ 2024-10-24 46/week @ 2024-10-31 52/week @ 2024-11-07 204/week @ 2024-11-14 14/week @ 2024-11-21 8/week @ 2024-11-28 49/week @ 2024-12-05 56/week @ 2024-12-12

191 downloads per month

MIT/Apache

38MB
1M SLoC

GNU Style Assembly 567K SLoC // 0.0% comments C 354K SLoC // 0.2% comments Bitbake 59K SLoC // 0.0% comments Python 1.5K SLoC // 0.1% comments Rust 1K SLoC // 0.0% comments SWIG 348 SLoC // 0.0% comments Jinja2 204 SLoC INI 5 SLoC

saber

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.

  • firesaber
    • clean
    • avx2 (if supported)
    • aarch64 (if supported)
  • lightsaber
    • clean
    • avx2 (if supported)
    • aarch64 (if supported)
  • saber
    • 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