#cryptography #post-quantum #security

no-std pqcrypto-kyber

Post-Quantum Key-Encapsulation Mechanism kyber

21 releases

new 0.7.4 Nov 25, 2021
0.7.1 Jun 10, 2021
0.7.0 Feb 26, 2021
0.6.7 Dec 9, 2020
0.4.1 Jul 24, 2019

#367 in Cryptography

Download history 738/week @ 2021-08-09 1172/week @ 2021-08-16 1563/week @ 2021-08-23 1301/week @ 2021-08-30 792/week @ 2021-09-06 1430/week @ 2021-09-13 889/week @ 2021-09-20 698/week @ 2021-09-27 838/week @ 2021-10-04 617/week @ 2021-10-11 847/week @ 2021-10-18 746/week @ 2021-10-25 594/week @ 2021-11-01 331/week @ 2021-11-08 1016/week @ 2021-11-15 217/week @ 2021-11-22

3,442 downloads per month
Used in 8 crates (2 directly)

MIT/Apache

35MB
1M SLoC

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

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