BoringSSL, LibreSSL, wolfSSL and mbedTLS each win something. None replaces OpenSSL's integration, certification and default-position moat.

BoringSSL, LibreSSL, wolfSSL and mbedTLS each beat OpenSSL at something. None
of them replaces its position, and the reason is certification and inertia as
much as code.
| Library | Best at | What you trade |
|---|---|---|
| OpenSSL | ubiquity, API breadth, FIPS 140-3 provider, distro default, vendor support | a large C codebase, a complex build, and the memory-safety record that comes with age |
| BoringSSL | a trimmed codebase for Google's own products; modern TLS; Chrome and Android scale | no stable API or ABI, no releases in the usual sense, no general-purpose support promise |
| LibreSSL | a smaller, cleaned-up OpenBSD fork; strong default hygiene | narrower ecosystem, no FIPS validation, slower adoption of new algorithms |
| wolfSSL | embedded footprint, dual GPL/commercial licensing, a FIPS 140-3 module | smaller community, different API, commercial licence for closed products |
| mbedTLS | readable embedded TLS, Apache 2.0, small footprint | fewer protocols and algorithms, no FIPS module by default |
Google forked OpenSSL in 2014, stripped the legacy, and made the result the
TLS library inside Chrome and Android. It is excellent at Google's scale — and
explicitly not a drop-in replacement: no API or ABI stability, no release
cadence, no support for third-party consumers. Adopting it means tracking a
moving target; "upgrade BoringSSL" is a development project, not a package
update. It is also C, with its own memory-safety bugs: choosing it changes who
maintains the parser, not the class of failure.
LibreSSL began in 2014 as a fork of OpenSSL 1.0.1g, after Heartbleed, to
delete years of legacy. On OpenBSD it is the system TLS library and benefits
from the platform's security culture. Elsewhere it lacks OpenSSL's ecosystem:
fewer applications test against it, distributors rarely default to it, and the
FIPS validation regulated buyers require is absent. Strong for an OpenBSD base
system; difficult for a heterogeneous enterprise.
wolfSSL targets embedded systems: small enough for microcontrollers, TLS 1.3
and DTLS, a FIPS 140-3 validated module, dual GPLv2/commercial licensing. For
a device vendor that needs a certified stack in a constrained image, it is
often the right answer. The trade is ecosystem and licence cost; its shorter
CVE history is partly a function of how many researchers point at it.
mbedTLS (formerly PolarSSL, now under Trusted Firmware) is Apache-2.0, small,
and unusually readable, with the TLS and DTLS features an IoT device needs. It
is not a general-purpose replacement: narrower algorithms and protocols, no
built-in FIPS, smaller ecosystem. Right for a sensor; wrong for a mail gateway
or a certificate authority.
Its advantage is not that the code is safest. It is that everyone already
integrated it: every major Linux distribution ships and backports it, every
runtime and web server has a tested binding, it carries a FIPS 140-3 provider,
it implements the widest set of formats including the legacy ones still in
certificates, and it has commercial support contracts. That is a moat of
integration, not elegance — and why a bug here travels further.
The alternatives reduce surface, legacy or size. None removes the fundamental
trade of a C cryptography library: the parser's safety is the code, not a
runtime. OpenSSL's bet is that a large, well-tested, funded codebase beats a
small one with fewer eyes. CVE-2026-7383 shows what the bet costs.

Next: Part 5 — a type system built from length fields: inside ASN.1, the
mbstring conversion, big-number arithmetic and the TLS stack.