#post-quantum-cryptography

no-std pqcrypto-hqc

Post-Quantum Key-Encapsulation Mechanism hqc

11 releases

0.2.0 Oct 16, 2023
0.1.6 Oct 21, 2022
0.1.5 Apr 14, 2022
0.1.4 Nov 25, 2021
0.0.2 Apr 8, 2020

#2629 in Cryptography

Download history 8/week @ 2024-07-20 77/week @ 2024-07-27 1/week @ 2024-08-03 25/week @ 2024-08-24 19/week @ 2024-08-31 102/week @ 2024-09-07 6/week @ 2024-09-14 42/week @ 2024-09-21 13/week @ 2024-09-28 25/week @ 2024-10-05 29/week @ 2024-10-12 19/week @ 2024-10-19 18/week @ 2024-10-26 27/week @ 2024-11-02

94 downloads per month
Used in 4 crates (via pqcrypto)

MIT/Apache

19MB
425K 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 545 SLoC // 0.0% comments Jinja2 202 SLoC 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-128
    • clean
  • hqc-192
    • clean
  • hqc-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