14 releases (9 breaking)

0.11.0+liboqs-0.13.0 May 1, 2025
0.10.1+liboqs-0.12.0 Jan 30, 2025
0.10.0+liboqs-0.12.0 Dec 17, 2024
0.9.1+liboqs-0.9.0 Oct 23, 2023
0.1.0 Dec 8, 2017

#1867 in Cryptography

Download history 806/week @ 2025-05-16 803/week @ 2025-05-23 845/week @ 2025-05-30 724/week @ 2025-06-06 646/week @ 2025-06-13 1351/week @ 2025-06-20 1559/week @ 2025-06-27 850/week @ 2025-07-04 1125/week @ 2025-07-11 786/week @ 2025-07-18 1656/week @ 2025-07-25 1360/week @ 2025-08-01 922/week @ 2025-08-08 795/week @ 2025-08-15 891/week @ 2025-08-22 803/week @ 2025-08-29

3,881 downloads per month
Used in 12 crates (3 directly)

MIT/Apache

34MB
764K SLoC

C 388K SLoC // 0.2% comments GNU Style Assembly 371K SLoC // 0.0% comments Bitbake 3.5K SLoC // 0.1% comments Python 1K SLoC // 0.2% comments CUDA 342 SLoC // 0.2% comments Rust 196 SLoC // 0.1% comments Shell 136 SLoC // 0.1% comments SWIG 123 SLoC // 0.2% comments

FFI Rust binding to Open Quantum Safe's liboqs

crates.io crates.io/docs

This crate provides the unsafe ffi bindings to liboqs.

Features

  • vendored (default): Compile the included version of liboqs instead of linking to the system version.
  • openssl (default): Compile with OpenSSL features (mostly symmetric cryptography)
  • non_portable: Don't build a portable library.
  • 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