13 releases (breaking)

0.11.0 May 1, 2025
0.10.1 Jan 30, 2025
0.10.0 Dec 17, 2024
0.9.0 Oct 18, 2023
0.1.0 Dec 8, 2017

#130 in Cryptography

Download history 305/week @ 2025-03-16 273/week @ 2025-03-23 392/week @ 2025-03-30 781/week @ 2025-04-06 410/week @ 2025-04-13 477/week @ 2025-04-20 597/week @ 2025-04-27 568/week @ 2025-05-04 642/week @ 2025-05-11 662/week @ 2025-05-18 569/week @ 2025-05-25 594/week @ 2025-06-01 557/week @ 2025-06-08 499/week @ 2025-06-15 783/week @ 2025-06-22 734/week @ 2025-06-29

2,595 downloads per month
Used in 7 crates (3 directly)

MIT/Apache

34MB
765K SLoC

C 388K SLoC // 0.2% comments GNU Style Assembly 371K SLoC // 0.0% comments Bitbake 3.5K SLoC // 0.1% comments Rust 1K SLoC // 0.1% comments Python 1K SLoC // 0.2% comments CUDA 341 SLoC // 0.2% comments Shell 135 SLoC // 0.1% comments SWIG 122 SLoC // 0.2% 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+
    • uov

Dependencies