← Back to section · Open Source Projects
How a New Algorithm Walks into Open-Source Projects: Five Gates from Paper to Distribution
For a post-quantum algorithm to go from an academic paper to a callable feature in an operating-system distribution, it must pass five gates in sequence — reference implementation, clean reimplementation, adoption by research libraries, adoption by production libraries, and protocol and distribution integration — each with its own thresholds and elimination rates. This piece walks the road in order and explains why some famous algorithms take so long to reach production toolchains.
Whenever a new post-quantum algorithm is published, someone asks: when will we be able to use it in our tools? The answer hides in a long chain. From a paper to an installable package in a distribution’s repository, an algorithm must pass at least five gates in sequence, and each gate’s keepers, criteria and elimination logic are entirely different. Many algorithms are famous in academia yet remain stuck mid-chain for years. This piece walks that road in order.
Gate One: The Reference Implementation — Proving It 「Computes」
The starting point of adoption is the reference implementation supplied by the submission team. It turns the mathematics of the paper into compilable, runnable code, establishes the authoritative interpretation of 「how this algorithm computes」, and produces the first test vectors. The criteria at this gate are correctness and self-consistency: the implementation must match the specification text exactly and cover the full parameter sets. But note that a reference implementation’s existence only shows the algorithm stands up outside paper; it promises neither speed nor side-channel resistance. Many candidate algorithms have only a reference implementation for their entire lives — perfectly normal academically, but it means nobody has yet run the later gates on their behalf.
Gate Two: Clean Reimplementation — Code Others Can Take Over
Academic implementations vary wildly in style; some carry experimental scaffolding, some depend on obscure toolchains, and downstream projects cannot use them directly. Clean reimplementation rewrites the reference code to a uniform engineering discipline: portable C, no platform-specific optimization, clean namespaces, complete metadata, accompanying test vectors. PQClean is the representative project at this gate. The criteria are auditability and composability: several algorithms must coexist in one project without clashing, and any engineer must be able to read and verify the code. This step looks like mere 「tidying」, but it is a pivotal node in the ecosystem’s division of labour — without it, every downstream project would have to digest chaotic original code itself, and adoption costs would rise until nobody bothered.
Gate Three: Adoption by Research Libraries — Entering the Experimental Field
Research libraries like liboqs take in algorithms that have passed clean reimplementation, or that ship with disciplined implementations of their own, under uniform interfaces, so protocol teams can run integration experiments. The criteria are interface fit and basic quality: the algorithm must mount the uniform KEM or signature interface and pass known-answer tests. At this gate an algorithm begins to acquire real-world data — handshake volumes, latency, failure modes — and protocol working-group discussions gain a citable implementation basis. Most candidate algorithms in the NIST process reached this gate, because research libraries set their adoption bar for exploration. But be clear-eyed: entering a research library is a ticket in, not a production pass.
Gate Four: Adoption by Production Libraries — The Hardest Gate
When production libraries such as OpenSSL, Bouncy Castle and wolfSSL adopt an algorithm, the criteria steepen abruptly: the implementation must be constant-time, must withstand code audit, must have someone committed to long-term maintenance, and the algorithm itself had best be finalized — adopting during the draft stage means rework the moment the standard shifts. Production libraries therefore always lag the standards process: ML-KEM and ML-DSA became formal features of mainstream libraries only after the FIPS standards were finalized, and OpenSSL natively provided the three algorithms only in its 3.5 release. This gate also embeds commercial and governance judgement: maintaining an algorithm is a decade-scale commitment, and a library’s maintainers must be convinced the algorithm deserves that manpower. Most candidates stall here — not because they are not good enough, but because the production world only needs a few winners.
Gate Five: Protocols and Distributions — Deciding Whether Ordinary People Can Touch It
Even inside a library, an algorithm is not yet usable. Protocols must accept it: TLS must assign it key-exchange group identifiers, SSH must update its algorithm lists, certificate systems must reserve encoding space for it — all of which must complete their processes in standards bodies such as the IETF. Finally, operating-system distributions and cloud platforms must package the new library versions, and applications must enable them one by one. The criteria at this gate are ecosystem consensus and compatibility: will middleboxes be frightened by the new algorithm’s large handshakes, and are rollback mechanisms complete? Clearing this gate means the algorithm has truly arrived at ordinary users — often nearly a decade after its paper was published.
Where the Time on This Chain Actually Goes
It is worth noting that the longest delays on the five gates are usually not technical but consensus-waiting. Reference implementations ship with the paper, clean reimplementation is measured in months, and research-library adoption is fast too; what is measured in years is gates four and five: production libraries wait for standards to finalize before committing, protocols wait for working-group consensus before assigning identifiers, and distributions wait for upstream versions to stabilize before packaging. There can also be regressions along the way: a standards revision can send an already-passed implementation back for rework, and new cryptanalysis can eliminate an algorithm that had reached gate four. This explains why post-quantum migration timelines are always denominated in decades, and why the industry repeats the mantra of 「cryptographic agility」 — since swapping algorithms means walking this long chain, future systems must reserve the ability to swap again in their architecture rather than welding one algorithm into the code. Understand the length of this chain, and you understand why agility is the first principle of migration engineering.
Closing
With the five gates in view, one can price any 「algorithm X has been adopted by project Y」 headline correctly: entering a research library is gate three, entering a production library is gate four, and entering a distribution’s default configuration is the finish line. When assessing an algorithm’s adoption prospects, ask gate by gate: is the reference implementation trustworthy, is anyone doing the clean reimplementation, have production-library maintainers signalled intent, have protocol identifiers been assigned? Once the answers are in, the timetable writes itself.
Tags: Algorithm AdoptionOpen Source EcosystemStandardization