27 releases

0.8.1 Jan 25, 2024
0.8.0 Oct 16, 2023
0.7.9 Jan 2, 2024
0.7.8 Dec 22, 2023
0.4.1 Jul 24, 2019

#176 in Cryptography

Download history 1166/week @ 2023-12-23 4096/week @ 2023-12-30 4971/week @ 2024-01-06 5102/week @ 2024-01-13 5890/week @ 2024-01-20 3454/week @ 2024-01-27 3610/week @ 2024-02-03 4432/week @ 2024-02-10 4606/week @ 2024-02-17 7010/week @ 2024-02-24 10684/week @ 2024-03-02 7889/week @ 2024-03-09 9269/week @ 2024-03-16 6772/week @ 2024-03-23 7083/week @ 2024-03-30 7076/week @ 2024-04-06

31,239 downloads per month
Used in 11 crates (6 directly)

MIT/Apache

20MB
426K SLoC

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

Contains (Mach-o exe, 130KB) pqclean/bin/functest_kyber1024_aarch64, (Mach-o exe, 130KB) pqclean/bin/functest_kyber512_aarch64, (Mach-o exe, 130KB) pqclean/bin/functest_kyber768_aarch64, (Mach-o exe, 110KB) pqclean/bin/functest_kyber768_clean, (Mach-o exe, 130KB) testvectors_kyber1024_aarch64, (Mach-o exe, 130KB) pqclean/bin/testvectors_kyber512_aarch64 and 76 more.

kyber

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.

  • kyber512
    • clean
    • avx2 (if supported)
    • aarch64 (if supported)
  • kyber768
    • clean
    • avx2 (if supported)
    • aarch64 (if supported)
  • kyber1024
    • 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