← Back to section · Open Source Projects
The Open Quantum Safe Project: An Open-Source Testbed for Post-Quantum Cryptography
Built around liboqs and the oqs-provider, OQS gives researchers pluggable post-quantum algorithm implementations and protocol integrations — the natural starting point for understanding the PQC engineering ecosystem.
Positioning: Make the Algorithms Runnable First
The Open Quantum Safe (OQS) project dates back to around 2014, making it one of the longest-running open-source efforts in post-quantum cryptography. Its premise was pragmatic: NIST’s standardization process would take years, but researchers and engineers needed working implementations immediately — to measure performance, test interoperability, and experiment with protocol integration. OQS therefore took a breadth-first approach, collecting as many NIST-process candidate algorithms as possible behind one uniform interface, so that switching schemes meant changing a single algorithm name.
The boundary deserves emphasis up front. OQS documentation states plainly that the project targets research and prototyping and should not be used in production. That is not false modesty: some algorithms it carried were later broken or dropped during cryptanalysis (SIKE is the famous example). That is precisely what a testbed is for — failures should happen in the lab, not in deployed systems.
Two Core Components
| Component | Form | Role |
|---|---|---|
| liboqs | C library | Uniform API for KEM and signature algorithms, with language bindings for Python, Go, Java and others |
| oqs-provider | OpenSSL 3 provider | Injects liboqs algorithms into OpenSSL as a plugin, so TLS and X.509 tooling can experiment with PQC without code changes |
The value of this pairing showed most clearly around the standards’ arrival. After FIPS 203, 204 and 205 were published in August 2024, liboqs quickly shipped ML-KEM, ML-DSA and SLH-DSA implementations, letting researchers reproduce experiments with the standardized parameter sets, run benchmarks, and test interoperability against commercial implementations right away. The liboqs hands-on labs in this site’s Tutorials section are built on exactly this interface.
Relationship to the Standards
OQS is best understood as the standards process’s shadow implementation track. During the NIST competition years it carried candidate algorithms in step with each submission round, which meant that when a candidate was tweaked between rounds — parameter sets adjusted, encodings changed — the ecosystem’s testbed moved with it, and interoperability experiments never had to wait for vendors. After standardization, the same role continues in reverse: liboqs implementations of ML-KEM, ML-DSA and SLH-DSA give independent implementers a reference point for cross-checking their own work against the FIPS documents. That feedback loop between a standards body and an open testbed is a large part of why the post-quantum transition, for all its scale, has working code available at every step.
Governance: The Linux Foundation and the PQCA
In 2024, OQS joined the Post-Quantum Cryptography Alliance (PQCA), a Linux Foundation project whose members include AWS, Cisco, Google and IBM, chartered to advance open-source post-quantum implementations and migration tooling. For OQS, this moves governance, legal stewardship and long-term maintenance from an academic-team model into a foundation framework — a meaningful sustainability signal for infrastructure that must stay alive across a migration cycle measured in decades.
How to Get Involved
- Users can build liboqs from source or use the official Docker images. When reporting interoperability issues, include the algorithm name, parameter set and the peer implementation’s version.
- Contributors will find long-running open work in new algorithm integrations, platform optimizations (such as ARM and AVX2 assembly), and language-binding maintenance; the repositories’ CONTRIBUTING files describe the process.
- Researchers can use the OQS benchmarking harness for cross-algorithm comparisons, but should keep the “not production-grade” positioning in mind when citing numbers: the figures reflect reference implementations, not necessarily the ceiling of optimized ones.
What People Actually Do With It
Three uses recur in practice. The first is measurement: teams evaluating a migration use liboqs to get real numbers — handshake sizes, key-generation times, memory footprints — for the standardized parameter sets on their own hardware, instead of planning from datasheets. The second is protocol experimentation: through oqs-provider, an unmodified OpenSSL-based server can be made to negotiate hybrid post-quantum TLS groups, which is how many organizations first discover which of their middleboxes, load balancers or monitoring tools break when handshake messages grow by a kilobyte or two. The third is teaching and verification: because the API is uniform across dozens of schemes, OQS is a convenient way to compare algorithm families side by side and to cross-check one’s understanding of a standard against a running implementation — the approach taken in this site’s own liboqs labs.
Companion demo projects in the OQS ecosystem extend the same idea to whole applications, integrating post-quantum key exchange into tools such as VPN and web-server stacks so their behaviour can be observed end to end. The consistent theme is learning under realistic conditions while the stakes are still low.
Parameter Sets and Draft Archaeology
One easily overlooked layer is the management of parameter sets and draft versions. Before standardization finished, candidate specifications were revised repeatedly across NIST’s rounds — parameters, encodings and even internal hash usage could change — and OQS often had to keep several draft versions alive in parallel so that interoperability experiments run at different times stayed reproducible against each other. This “version archaeology” is unglamorous, but it is what separates a testbed from a mere algorithm collection: what it preserves is not just code, but a reproducible record of how the standards took shape.
How Algorithms Enter — and Leave — the Testbed
For an algorithm to enter liboqs it generally needs a public specification, a usable reference implementation with test vectors, and licensing compatible with the project’s. Once integrated, it must pass known-answer tests (KATs): on fixed inputs, its outputs must match the specification’s reference values byte for byte. Those tests run continuously across platforms and compilers in CI, ensuring identical behaviour on x86, ARM and different operating systems. On the protocol-integration side, oqs-provider also has to track the OpenSSL release line — the provider interface itself evolves between minor versions, and a substantial part of the testbed’s daily work is this unglamorous business of keeping up with upstream.
The testbed’s other half is removal. In 2022, SIKE was broken by an attack running on classical computers, and OQS removed it — exactly the value of exposing candidates in a testbed first: the exit mechanism matters as much as the entry mechanism. For users, this means that simply following OQS’s release cadence is a form of risk management: upgrading promptly gets you both fixes to new algorithms and the removal of broken ones. Conversely, experiments pinned to an old release may rest on parameter sets that have long since been discarded.
Division of Labour: Testbed vs. Production Implementations
OQS’s positioning defines a division of labour with production-grade implementations. After the standards landed, OpenSSL itself gained native ML-KEM, ML-DSA and SLH-DSA implementations (from 3.5), cloud and platform vendors maintain their own cryptographic library branches, and large organizations embed audited implementations in products. Those production implementations optimize for stability, security audit and compliance certification, with narrow algorithm coverage and slow change cadences; OQS optimizes for coverage and experimental speed, often carrying several variants and parameter sets of the same scheme for side-by-side comparison.
There is real flow between the two worlds. Interoperability conclusions researchers reach with OQS feed back to protocol working groups and production implementers as a basis for locking down encoding details; edge cases exposed in production implementations return to OQS’s test suites as regression tests. Within the PQCA framework, sibling projects cover migration tooling and protocol implementations, with OQS playing the algorithm-layer testbed role. Understanding this division explains why “experiment with OQS, ship with a production implementation” is the community’s repeated advice — not because OQS is deficient, but because the two roles were never meant to be carried by the same project.
References
- Open Quantum Safe project. https://openquantumsafe.org
- liboqs repository. https://github.com/open-quantum-safe/liboqs
- oqs-provider repository. https://github.com/open-quantum-safe/oqs-provider
- Post-Quantum Cryptography Alliance (Linux Foundation). https://pqca.org
- NIST, FIPS 203 / 204 / 205, 2024-08-13. https://csrc.nist.gov/publications/fips
Tags: OQSliboqsopen sourcePQCA