#post-quantum-cryptography #post-quantum #security #signature-scheme

yanked pqcrypto-rainbow-wasi

Post-Quantum Signature Scheme rainbow with WASM/WASI support

0.2.6 Oct 17, 2021
0.2.5 Oct 17, 2021
0.2.4 Oct 16, 2021
0.2.3 Oct 13, 2021

#64 in #post-quantum


Used in pqcrypto-wasi

MIT/Apache

37MB
1M SLoC

GNU Style Assembly 555K SLoC // 0.0% comments C 344K SLoC // 0.2% comments Bitbake 56K SLoC // 0.0% comments Rust 4K SLoC // 0.0% comments Python 1.5K SLoC // 0.1% comments Jinja2 201 SLoC INI 5 SLoC

rainbow

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.

  • rainbowI-circumzenithal
    • clean (default)
  • rainbowI-classic
    • clean (default)
  • rainbowI-compressed
    • clean (default)
  • rainbowIII-circumzenithal
    • clean (default)
  • rainbowIII-classic
    • clean (default)
  • rainbowIII-compressed
    • clean (default)
  • rainbowV-circumzenithal
    • clean (default)
  • rainbowV-classic
    • clean (default)
  • rainbowV-compressed
    • clean (default)

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