← Back to section · Open Source Projects
A Portrait of liboqs: How a Research-Grade Post-Quantum Library Grew Up
liboqs is the core codebase of the Open Quantum Safe project: a C library that collects nearly all mainstream post-quantum algorithms under one roof as an experimental platform. It explicitly positions itself for research and prototyping rather than production, yet became the default starting point for integration experiments across the ecosystem. This piece profiles the project itself: its origins, structure, governance and stance.
If you had to name the most frequently appearing project in the post-quantum open-source ecosystem, liboqs would very likely come first. It shows up in protocol experiments, performance evaluations, teaching demos and migration prototypes so often that it is easy to mistake it for an officially blessed production library. But one read through its project documentation shows the maintainers describing their own positioning with great restraint: this is a platform built for research and prototyping. This piece does not explain how to call its interfaces (that belongs to the software section); it looks at the project itself — where it came from, how it is organized, and why it actively declines the 「production-ready」 label.
Origins: Out of a University of Waterloo Lab
liboqs is the core codebase of the Open Quantum Safe (OQS) project. OQS was founded by Douglas Stebila, Michele Mosca and colleagues at the University of Waterloo, and it carries a strong academic character: its goal is to take post-quantum algorithms out of papers and NIST submission packages and turn them into code that real protocols can call, so researchers and engineers can evaluate them. Written in C, liboqs collects both key encapsulation mechanisms and digital signatures, including the standardized ML-KEM, ML-DSA and SLH-DSA as well as schemes still in process or held as alternatives, such as Falcon and HQC. Its academic origins dictate its priorities: breadth of algorithm coverage, consistency of interfaces and reproducibility of results rank high, while the things production environments care most about — long-term support commitments, compliance certification, side-channel audits — are explicitly not on its promise list.
Structure: One Interface for Every Algorithm
The most distinctive engineering decision in liboqs is that all KEMs share one set of function signatures, and all signature schemes share another. A caller switches algorithms by changing a single algorithm-name string, leaving the code above untouched. That sounds mundane, yet it is the key to liboqs becoming an ecosystem hub: protocol integrators do not have to write glue code for each algorithm separately; they can plug a dozen candidates into TLS or SSH in turn and measure handshake sizes and latency. Inside the project, most implementations come from the reference or optimized code of the respective submission teams; what liboqs does is uniform wrapping, uniform building and uniform testing rather than line-by-line rewrites. This 「adopt and normalize」 role echoes what PQClean does at the implementation level, except that liboqs operates at the library level, one step closer to its users.
Ecosystem: A Ring of Integration Projects Around a Core Library
liboqs itself is only a library; what makes it ubiquitous is the integration layer that grew around it: the OQS provider that brings post-quantum algorithms into OpenSSL, an OpenSSH fork with post-quantum key exchange, and experimental branches of several TLS implementations all draw their algorithms from liboqs. Most of these integration projects are likewise experimental in nature; their mission is to answer questions like 「what happens when a protocol is fitted with post-quantum algorithms」 — will certificates overflow, how should handshake fragmentation be handled, will middleboxes refuse the traffic — not to ship deployable products. That is also why the OQS ecosystem became the testbed most often cited in IETF discussions and vendor migration drills: everyone needed a neutral reference system that anyone could run.
Governance and Cadence: Marching with the Standards Process
The release cadence of liboqs is deeply bound to the NIST standardization process. During standardization, algorithm parameters were adjusted several times — the draft versions of Kyber and the final ML-KEM differ in incompatible details — and liboqs kept up at a brisk pace, clearly labelling which implementations correspond to drafts and which to the final standard. For research this follow-the-standard strategy is a virtue; for production it is a risk: interfaces and the algorithm roster change between releases, and the maintainers make no promise of long-term backward compatibility. In governance terms it is a classic academically led project: a small core maintainer team, concentrated decision-making, collaboration through public discussion and pull requests on GitHub, and funding and labour from academic institutions and research grants. Its sustainability does not rest on commercial contracts but on the research agenda itself — as long as post-quantum migration remains an active topic, this project has a reason to exist.
Why It Actively Declines the 「Production」 Label
The production bar for a cryptography library is far higher than for ordinary software: constant-time implementations, resilience against side-channel analysis, formal review or third-party audits, compliance certifications such as FIPS, and a decade-scale commitment to security updates. Some implementations collected in liboqs come straight from academic submission packages and were never polished to production standards. The maintainers put this plainly in the most prominent place in the project, and that restraint is itself a sign of responsibility. The lesson for users: treating liboqs as a bench for understanding algorithms, verifying protocol behaviour and rehearsing migration is entirely correct usage; for real production, turn to libraries and vendor implementations whose main business is compliance and auditing, and use liboqs for comparison experiments.
What It Taught the Ecosystem: The Value of Experimental Infrastructure
Looking back over the years of the OQS project, its greatest contribution to the ecosystem may not be any single algorithm implementation but the demonstration of one thing: while standards are unsettled, public experimental infrastructure is itself a driving force. Before liboqs, every team wanting to evaluate post-quantum algorithms had to compile and wrap the code in each submission package itself — duplicated labour, and results that were not mutually comparable. With a unified library and integration layer, protocol designers could fit candidate algorithms into real protocols within weeks and measure real data, giving standards discussions an empirical basis; teachers could let students run a dozen algorithms on a laptop; security researchers could analyse side channels and implementation flaws against one common codebase. Many later projects — including early prototypes of several production libraries — first validated their ideas in the OQS ecosystem before being re-engineered elsewhere. This 「testbed first, products later」 sequence has become the norm for cryptographic migration, and liboqs is its most complete specimen.
Closing
The story of liboqs is a miniature of the post-quantum open-source ecosystem: while standards were unsettled, academic projects first turned algorithms into runnable code, an integration layer then connected that code to real protocols, and only afterwards did the production world’s libraries and vendors follow. It is not perfect, and it never pretends to be; its value is in giving the whole migration discussion a common, tangible starting point. Understand its positioning, and you understand the line between 「open-source project」 and 「production product」 in this field — a line that should never be blurred.
Tags: liboqsOpen Quantum SafeOpen Source Projects