#cryptography #post-quantum #security

no-std pqcrypto-ntru

Post-Quantum Key-Encapsulation Mechanism ntru

14 releases

0.5.6 Sep 20, 2021
0.5.4 Jun 10, 2021
0.5.3 Feb 26, 2021
0.5.2 Dec 9, 2020
0.4.1 Jul 24, 2019

#561 in Cryptography

Download history 7/week @ 2021-06-30 4/week @ 2021-07-07 17/week @ 2021-07-14 19/week @ 2021-07-21 38/week @ 2021-07-28 21/week @ 2021-08-04 25/week @ 2021-08-11 7/week @ 2021-08-18 5/week @ 2021-08-25 2/week @ 2021-09-01 11/week @ 2021-09-08 21/week @ 2021-09-15 12/week @ 2021-09-22 18/week @ 2021-09-29 5/week @ 2021-10-06 21/week @ 2021-10-13

57 downloads per month
Used in 6 crates (2 directly)

MIT/Apache

34MB
898K SLoC

GNU Style Assembly 555K SLoC // 0.0% comments C 341K SLoC // 0.2% comments Python 1.5K SLoC // 0.1% comments Rust 1.5K SLoC // 0.0% comments INI 5 SLoC

ntru

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.

  • ntruhps2048509
    • avx2 (if supported)
    • clean (default)
  • ntruhps2048677
    • avx2 (if supported)
    • clean (default)
  • ntruhps4096821
    • avx2 (if supported)
    • clean (default)
  • ntruhrss701
    • avx2 (if supported)
    • clean (default)

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