17 releases

0.7.0 Oct 16, 2023
0.6.4 Apr 14, 2022
0.6.3 Nov 25, 2021
0.6.0 Jun 10, 2021
0.4.2 Jul 24, 2019

#166 in Cryptography

Download history 2960/week @ 2023-12-11 3624/week @ 2023-12-18 928/week @ 2023-12-25 2167/week @ 2024-01-01 3085/week @ 2024-01-08 4115/week @ 2024-01-15 4915/week @ 2024-01-22 4992/week @ 2024-01-29 6470/week @ 2024-02-05 6728/week @ 2024-02-12 6823/week @ 2024-02-19 7456/week @ 2024-02-26 7299/week @ 2024-03-04 7384/week @ 2024-03-11 6473/week @ 2024-03-18 6244/week @ 2024-03-25

27,611 downloads per month
Used in 4 crates (2 directly)

MIT/Apache

19MB
432K SLoC

GNU Style Assembly 278K SLoC // 0.0% comments C 143K SLoC // 0.3% comments Rust 7.5K SLoC // 0.0% comments Bitbake 2.5K SLoC // 0.0% comments Python 1.5K SLoC // 0.1% comments Jinja2 202 SLoC INI 5 SLoC

sphincsplus

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.

  • sphincs-shake-128f-simple
    • clean
    • avx2 (if supported)
  • sphincs-shake-128s-simple
    • clean
    • avx2 (if supported)
  • sphincs-shake-192f-simple
    • clean
    • avx2 (if supported)
  • sphincs-shake-192s-simple
    • clean
    • avx2 (if supported)
  • sphincs-shake-256f-simple
    • clean
    • avx2 (if supported)
  • sphincs-shake-256s-simple
    • clean
    • avx2 (if supported)
  • sphincs-sha2-128f-simple
    • clean
    • avx2 (if supported)
  • sphincs-sha2-128s-simple
    • clean
    • avx2 (if supported)
  • sphincs-sha2-192f-simple
    • clean
    • avx2 (if supported)
  • sphincs-sha2-192s-simple
    • clean
    • avx2 (if supported)
  • sphincs-sha2-256f-simple
    • clean
    • avx2 (if supported)
  • sphincs-sha2-256s-simple
    • 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