← Back to section · Software & Developer Tools
The OQS Provider: A Bridge That Installs Post-Quantum Algorithms into OpenSSL
How the oqs-provider registers liboqs algorithms through OpenSSL 3's provider mechanism, how hybrid key exchange lands in practice, and how it divides labour with OpenSSL's native support.
Since OpenSSL 3 introduced the provider architecture, algorithms no longer have to be compiled into the main library: any third party can package a set of algorithms as a provider, register it with the framework, and let applications fetch implementations by name. The OQS provider (oqs-provider) uses exactly this channel to carry the post-quantum algorithms of liboqs into the OpenSSL world. This article explains how it works, examines its most valuable capability — hybrid key exchange — and clarifies how it divides labour with OpenSSL’s native post-quantum support.
The mechanism: algorithms registered as a plug-in
In OpenSSL 3, the application-facing interfaces (the EVP family) do not bind implementations directly; they query loaded providers for an implementation by algorithm name. The oqs-provider links liboqs internally and registers its key encapsulation and signature algorithms one by one as provider-supplied algorithms. At deployment time it is enough to declare the provider in the OpenSSL configuration file, alongside the default provider; applications need no structural code changes and simply request the agreed algorithm names (consult the oqs-provider documentation for exact configuration syntax).
The immediate consequence is a sharp drop in experimentation cost: the whole OpenSSL-based toolchain — command-line tools, server software built on it, test scripts — can meet post-quantum algorithms without being rewritten. The integration experiments the OQS project built around it, such as experimental patches for TLS tooling and common software, all stand on this bridge layer.
Hybrid key exchange: named groups for gradual introduction
The most watched capability of the oqs-provider is providing “hybrid groups” for TLS key exchange: a classical elliptic curve is combined with a post-quantum KEM, each side completes its own shared secret, and the results are merged in an agreed way. If the post-quantum algorithm is later found wanting, the connection still retains classical security; conversely, against harvest-now-decrypt-later threats, collected traffic gains a post-quantum layer of protection.
At the implementation level, hybrid groups appear under their own names (see the official documentation for current naming), and to the application above they are just one more configurable group name. This design makes gradual migration possible: enable hybrid groups on test traffic first, observe handshake sizes, latency, and middlebox compatibility, then decide how far to roll out. It is important to stay clear-eyed: the combination methods and names of hybrid groups are conventions of the experimental ecosystem, not necessarily identical to the names and wire formats the IETF ultimately standardizes. Experimental conclusions transfer; configuration strings cannot be assumed to.
Dividing labour with native support
From OpenSSL 3.5 onward, ML-KEM, ML-DSA, and SLH-DSA are natively in the mainline. Does that make the oqs-provider pointless? No — the two have different positions. Native support faces production: it covers the standardized algorithms, follows OpenSSL’s release and support cadence, and is the right road for long-term operations. The oqs-provider faces the experimental surface: it carries not only standardized algorithms but also candidates, more parameter combinations, and hybrid groups, iterates at research pace, and makes correspondingly weaker compatibility promises.
A sensible division in practice is to explore algorithm and protocol behaviour with the oqs-provider in experimental and evaluation environments — especially the interoperability and performance of hybrid key exchange — while using native support in production and upgrading with distribution releases. If a system needs pre-standard algorithms for forward-looking validation, the oqs-provider is currently the cheapest way to bring that into the OpenSSL toolchain — provided its experimental nature is never forgotten and experimental configurations are not carried straight into production.
What to observe in experiments: life with larger handshakes
Once hybrid groups actually run, the observation checklist differs noticeably from classical TLS. Post-quantum KEM public keys and ciphertexts are far larger than their elliptic-curve counterparts, so total handshake volume swells accordingly; this can hit implicit handshake-size limits in some middleboxes and load balancers, and makes fragmentation more likely on UDP-based transports. Experiments should therefore record not only handshake latency but also handshake byte counts, failure rates, and where failures cluster: failures concentrated on particular network paths usually indicate middlebox problems, not algorithm problems.
The same holds on the certificate and signature side: if experiments go on to introduce post-quantum signatures, certificate-chain growth propagates into every connection establishment. This is where the oqs-provider’s value is most concrete — it lets these observations be made on a real OpenSSL toolchain rather than in an isolated demo program. The observations in turn drive migration strategy: which links enable hybrid key exchange first, which scenarios wait, and which devices need upgrading beforehand. First the bridge, then the first-hand data; with data, the migration roadmap stops being guesswork.
Finally, keep the isolation discipline between experiment and production: the group names, parameters, and configuration strings obtained in experiments are a dialect of the experimental ecosystem, and when production designs are written they must be mapped item by item onto whatever names and wire formats have been standardized by then. The performance magnitudes and compatibility conclusions from oqs-provider experiments can be carried away; the configuration files themselves should stay in the lab.
Who should use it, and who should not
Finally, the intended audience, stated plainly. The oqs-provider suits three groups: engineers researching protocol interoperability and migration feasibility, who need to answer “what happens to our links if we enable hybrid key exchange” on a real toolchain; researchers feeding deployment data back into standardization, since hybrid group names and combination methods converge only with operational feedback; and operations teams doing capacity and compatibility reconnaissance, because handshake volumes and middlebox behaviour must be known in advance. It does not suit teams that treat experimental configuration as production configuration: the provider’s coverage includes not-yet-standardized candidate algorithms whose names and wire formats shift with the research process, and writing experimental group names into production configuration converts them into migration debt the day the standard settles. A bridge exists so you can cross and see the other side — not so you can move into it.
References
- oqs-provider project documentation: https://github.com/open-quantum-safe/oqs-provider
- Open Quantum Safe project: https://openquantumsafe.org/
- OpenSSL website (provider architecture and version documentation): https://www.openssl.org/
Tags: oqs-providerOpenSSLhybrid key exchangeTLS