liboqs implements post-quantum key encapsulation and signature schemes behind one C API. It includes tests and benchmarks for research and prototyping, not production reliance.
Overview
liboqs is an open source C library for quantum-safe cryptography. It collects implementations of key encapsulation mechanisms and digital signature algorithms, including stateful signature schemes, and exposes them through a common API suitable for experimentation and integration work.
The library is part of the Open Quantum Safe (OQS) effort, which also prototypes use in protocols such as TLS and X.509 via OpenSSL provider integrations and related demos. Algorithm support follows the NIST post-quantum standardization process; standardized names such as ML-KEM, ML-DSA, and SLH-DSA are called out as stable relative to other experimental entries. Build-time options can limit which algorithms are compiled in.
Shipped programs include correctness tests, known-answer test generators aligned with NIST submission procedures, speed benchmarks, and minimal KEM and signature examples. Documentation can be generated as HTML from the build. Linux, macOS, and Windows builds are described, with optional OpenSSL 3 for symmetric primitives.
Upstream materials warn that the library is intended for research and prototyping, not securing sensitive production data, and recommend hybrid classical-plus-PQC deployments when early adoption is considered. Community maintenance is on a best-effort basis without commercial support guarantees.
Key features
- Unified C API for PQC KEMs and signatures
- ML-KEM, ML-DSA, and SLH-DSA among families
- Stateful signature scheme support
- Test harnesses and benchmarking tools
- Configurable enabled algorithm set
- Known-answer test generation utilities
- Open Quantum Safe ecosystem integration
- Static or shared library builds
Use cases
- Prototyping post-quantum TLS or applications
- Benchmarking PQC algorithm performance
- Research on NIST PQC candidate implementations
- Teaching and interoperability experiments
- Building hybrid cryptography proofs of concept