#cryptography #post-quantum #security

no-std pqcrypto-classicmceliece

Post-Quantum Key-Encapsulation Mechanism classicmceliece

6 releases

new 0.1.6 Nov 25, 2021
0.1.5 Sep 20, 2021
0.1.3 Jun 10, 2021
0.1.2 Feb 26, 2021
0.1.0 Feb 11, 2020

#600 in Cryptography

28 downloads per month
Used in 2 crates (via pqcrypto)

MIT/Apache

35MB
1M SLoC

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

classicmceliece

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.

  • mceliece348864
    • vec
    • clean
    • avx (if supported)
  • mceliece348864f
    • vec
    • clean
    • avx (if supported)
  • mceliece460896
    • vec
    • clean
    • avx (if supported)
  • mceliece460896f
    • vec
    • clean
    • avx (if supported)
  • mceliece6688128
    • vec
    • clean
    • avx (if supported)
  • mceliece6688128f
    • vec
    • clean
    • avx (if supported)
  • mceliece6960119
    • vec
    • clean
    • avx (if supported)
  • mceliece6960119f
    • vec
    • clean
    • avx (if supported)
  • mceliece8192128
    • vec
    • clean
    • avx (if supported)
  • mceliece8192128f
    • vec
    • clean
    • avx (if supported)

Notes

This implementation requires a lot of stack space. You need to specify RUST_MIN_STACK=800000000, probably.

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