← Back to section · Open Source Projects
The Long-Term Maintenance Reality of Cryptography Libraries: Why These Projects Are the Hardest to Keep Alive
Cryptography libraries are among the hardest open-source projects to maintain: the attack surface is studied forever, maintainers are always too few, and users never want to upgrade. Starting from maintenance reality, this article traces four threads — funding, audits, forks and deprecation.
Why Maintaining Cryptography Libraries Is So Expensive
Maintaining an ordinary open-source library means fixing bugs and adding features; maintaining a cryptography library is an endless offence-and-defence game. The first cost is implementation discipline: cryptographic code must be constant-time and sensitive to caches and branches, so a seemingly harmless “optimisation” can open a side channel, and review thresholds are far higher than for ordinary code. The second cost comes from academia: cryptanalysis never stops, parameters that were safe yesterday may need adjustment today, and algorithm deprecation (such as SHA-1’s long exit) requires maintainers to spend years pushing the entire downstream ecosystem to migrate. The third cost is the compatibility burden: cryptography libraries sit at the very bottom of the system, welded by distributions and device vendors into products spanning decades, so maintainers dare not change any behaviour lightly. Stack these three together and it is easy to see why the world truly trusts only a handful of cryptography libraries.
Money and People: The Same Lesson, Repeated
The field’s most famous lesson is Heartbleed: the OpenSSL that carried the world’s encrypted traffic had, at the time, a thin core maintenance force and a strained budget. Afterwards the industry built funding mechanisms such as the Core Infrastructure Initiative, and critical projects gradually gained full-time maintainers. GnuPG’s near-starvation episode, and recurring stories of “a critical component maintained by a single volunteer”, all repeat the same structure: usage is free, maintenance is expensive, and beneficiaries and payers are long mismatched. The most practical takeaway for any single organisation is to put the cryptography libraries it depends on under supplier management — who maintains them, where the money comes from, what the recent release and security-response record looks like. These questions are taken for granted for commercial software and should be equally taken for granted for open-source cryptography libraries. Depending without sustaining should be recorded in the risk register as a liability.
Audits and Forks: Two Forms of Ecosystem Self-Rescue
Among the remedies, third-party audits carry the most leverage: a professional team systematically auditing a core library finds problems volunteer review struggles to cover, and a public audit becomes a shared asset for the entire downstream — OpenSSL and libsodium have both benefited. The other form of self-rescue is the fork: after Heartbleed, the OpenBSD team cut out LibreSSL, rebuilding trust by deleting code and setting rules; Google, with BoringSSL, serves the special needs of its own products. Forks fragment the ecosystem in the short term but, over time, pressure the original projects to reform and give users a choice of routes. Understanding the history of forks is understanding the character of every mainstream cryptography library today: each was reshaped in some crisis.
Deprecation: The Process That Tests Governance Most
If development tests technique, deprecation tests governance. Cryptographic algorithms do not fail on a single day; they weaken gradually as analysis progresses, and maintainers must walk a tightrope between “deprecating too early and disturbing the ecosystem” and “deprecating too late and indulging risk”. SHA-1 took over a decade to travel from theoretical collision to practical collision to outright rejection by browsers; MD5’s tail in the certificate system dragged even longer. Every graceful deprecation requires maintainers to lay groundwork years ahead: first mark as not recommended, then disable by default, finally remove — while leaving downstream ample migration windows and alternatives. Projects that cannot do this are either voted out by users’ feet or forced into a brutal cut-off at some security incident. Judging a cryptography library’s maturity, its historical deprecation record is more reliable than its record of additions — anyone can add; gracefully retiring an era is where the craft shows. The post-quantum migration is, in essence, the largest algorithm deprecation-and-replacement in human history, and the craft of this process will directly decide each library’s fate.
An Overlooked Dimension: Documentation and the Human Pipeline
Maintenance reality has one more metric that does not live in the code repository: how knowledge is passed on. A cryptography library’s core knowledge is concentrated in a few heads — why some implementation is written in an awkward way, which line of code defends against which class of attack. If this “archaeological layer” of information is not written into comments and documentation, it vanishes when maintainers leave. Healthy projects deliberately do three things: write down the reasoning behind design decisions; leave newcomers a ramp from documentation and tests to non-core modules; and keep at least two people in the core circle able to review each other. Projects that fail at these three may look active on the surface while actually spending down the last old maintainer’s memory. For evaluators, flipping through a project’s commit and review history to see whether knowledge is distributed across a group or locked in one brain is one of the most sensitive probes of its ten-year survival odds.
A Maintenance-Reality Checklist for Those Choosing
In practice, when evaluating a cryptography library, the algorithm list should rank only second. First come questions of maintenance reality: has it released continuously and responded to security issues over the past year; is the maintainer base a diverse team or a single point; are there audit records and a clear vulnerability-disclosure channel; is the deprecation policy written down, and has it gracefully retired old algorithms before; do the licence and governance allow others to take over if the maintainers disappear. The ongoing post-quantum migration will double the importance of this checklist: over the next decade every library must complete a wholesale algorithm replacement, and the ones that come through alive will be those with the healthiest maintenance reality. Choosing a cryptography library is, in essence, choosing a group of people you are willing to bet your next ten years on; and the most decent thing to do after placing the bet is to become one of the sustainers — even if only by putting audits and funding into the smallest line of the annual budget.
Tags: Open Source MaintenanceCrypto LibrariesSustainabilityAudits