14 releases (9 breaking)

new 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

#717 in Cryptography

Download history 507/week @ 2025-01-11 647/week @ 2025-01-18 560/week @ 2025-01-25 641/week @ 2025-02-01 528/week @ 2025-02-08 378/week @ 2025-02-15 757/week @ 2025-02-22 633/week @ 2025-03-01 914/week @ 2025-03-08 869/week @ 2025-03-15 1120/week @ 2025-03-22 627/week @ 2025-03-29 1203/week @ 2025-04-05 1227/week @ 2025-04-12 630/week @ 2025-04-19 1024/week @ 2025-04-26

4,196 downloads per month
Used in 8 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