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

#234 in Cryptography

Download history 371/week @ 2025-12-26 450/week @ 2026-01-02 347/week @ 2026-01-09 388/week @ 2026-01-16 839/week @ 2026-01-23 714/week @ 2026-01-30 473/week @ 2026-02-06 607/week @ 2026-02-13 1509/week @ 2026-02-20 1093/week @ 2026-02-27 475/week @ 2026-03-06 561/week @ 2026-03-13 490/week @ 2026-03-20 778/week @ 2026-03-27 1131/week @ 2026-04-03 627/week @ 2026-04-10

3,069 downloads per month
Used in 18 crates (12 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