#cryptography #post-quantum #security

no-std pqcrypto-hqc

Post-Quantum Key-Encapsulation Mechanism hqc

10 releases

0.1.6 Oct 21, 2022
0.1.5 Apr 14, 2022
0.1.4 Nov 25, 2021
0.1.3 Sep 20, 2021
0.0.2 Apr 8, 2020

#1073 in Cryptography

Download history 110/week @ 2022-10-18 41/week @ 2022-10-25 29/week @ 2022-11-01 33/week @ 2022-11-08 59/week @ 2022-11-15 34/week @ 2022-11-22 72/week @ 2022-11-29 42/week @ 2022-12-06 31/week @ 2022-12-13 44/week @ 2022-12-20 24/week @ 2022-12-27 18/week @ 2023-01-03 28/week @ 2023-01-10 26/week @ 2023-01-17 64/week @ 2023-01-24 32/week @ 2023-01-31

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

MIT/Apache

26MB
590K SLoC

GNU Style Assembly 338K SLoC // 0.0% comments C 250K SLoC // 0.2% comments Python 1.5K SLoC // 0.1% comments Rust 611 SLoC // 0.0% comments INI 5 SLoC

hqc

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.

  • hqc-rmrs-128
    • clean
  • hqc-rmrs-192
    • clean
  • hqc-rmrs-256
    • clean

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