12 releases (breaking)

0.10.1 Jan 30, 2025
0.10.0 Dec 17, 2024
0.9.0 Oct 18, 2023
0.7.2 Aug 22, 2022
0.1.0 Dec 8, 2017

#132 in Cryptography

Download history 281/week @ 2024-12-05 346/week @ 2024-12-12 103/week @ 2024-12-19 19/week @ 2024-12-26 265/week @ 2025-01-02 471/week @ 2025-01-09 556/week @ 2025-01-16 283/week @ 2025-01-23 403/week @ 2025-01-30 154/week @ 2025-02-06 185/week @ 2025-02-13 354/week @ 2025-02-20 485/week @ 2025-02-27 367/week @ 2025-03-06 313/week @ 2025-03-13 218/week @ 2025-03-20

1,458 downloads per month
Used in 5 crates (via citadel_pqcrypto)

MIT/Apache

28MB
649K SLoC

GNU Style Assembly 362K SLoC // 0.0% comments C 283K SLoC // 0.3% comments Bitbake 3K SLoC // 0.1% comments Rust 1K SLoC // 0.1% comments Python 1K SLoC // 0.2% comments Shell 135 SLoC // 0.1% comments

Bindings to Open-Quantum-Safe's liboqs

crates.io crates.io/docs

This crate provides convenience wrappers to access the functionality provided by liboqs. For the ffi interface bindings, see oqs-sys.

Features

  • std: (default) build with std support. This adds handly Display and Error implementations to relevant types. If you want a #![no_std] library, disable this feature (and you probably want to disable the default features because they pull in OpenSSL through oqs-sys).
  • non_portable: Don't build a portable library.
  • vendored: (default) Controls the oqs-sys/vendored feature which enables building the included version of liboqs.
  • kems (default): Compile with all KEMs enabled
    • bike (only on non-Windows)
    • classic_mceliece
    • frodokem
    • hqc
    • kyber
    • ml_kem
    • ntruprime
  • sigs (default): Compile with all signature schemes enabled
    • cross
    • dilithium
    • falcon
    • mayo
    • ml_dsa
    • sphincs: SPHINCS+

Dependencies