Post-quantum cryptography in C++, Rust and embedded firmware
Native code is where cryptography libraries are chosen, compiled in and shipped for years. We help you pick maintained ML-KEM and ML-DSA implementations, switch on hybrid TLS, and move firmware signing to post-quantum algorithms on hardware that cannot simply be replaced.
Post-quantum migration in a few minutes
The video loads from YouTube (youtube-nocookie.com) only when you press play.
Where native code stands in December 2026
The standards are settled: ML-KEM (FIPS 203) for key establishment, ML-DSA (FIPS 204) and SLH-DSA (FIPS 205) for signatures, and LMS and XMSS (NIST SP 800-208) for stateful hash-based signing. RFC 10024, published in August 2026, fixes the hybrid TLS 1.3 groups X25519MLKEM768, SecP256r1MLKEM768 and SecP384r1MLKEM1024.
What varies is your dependency tree. A C++ service may link OpenSSL, BoringSSL or Botan; a Rust service may use rustls with aws-lc-rs or pure-Rust crates; a microcontroller may run wolfSSL, Mbed TLS or a vendor SDK. Each has a different post-quantum status, a different maintenance outlook and different assurance evidence. Post-quantum work in native code starts with knowing exactly which of these you ship, including the copies vendored into third-party SDKs.
Support matrix: Rust, C/C++ and embedded libraries
From each project's own documentation, release notes or source repository, checked on 2 December 2026.
| Library | Post-quantum capability | Status and date |
|---|---|---|
| OpenSSL 3.5 | ML-KEM, ML-DSA, SLH-DSA; default TLS keyshares offer X25519MLKEM768 and X25519 | LTS released 8 April 2025, supported until 8 April 2030; 3.5.10 on 1 December 2026 |
| BoringSSL | X25519MLKEM768 in TLS, ML-KEM-768/1024, ML-DSA including in libssl | Committed upstream; no versioned releases |
| Botan 3 | ML-KEM, ML-DSA, SLH-DSA, HSS/LMS, XMSS, FrodoKEM, Classic McEliece; hybrid ML-KEM TLS 1.3 on by default | FIPS algorithms since 3.6.0 (October 2024); hybrid default since 3.7.0 (February 2025); 3.14.1 on 6 November 2026 |
| wolfSSL / wolfCrypt | ML-KEM-512/768/1024, ML-DSA-44/65/87, SLH-DSA, LMS/HSS, XMSS; hybrid TLS groups incl. X25519MLKEM768 | Vendor page: PQC FIPS certification in process |
| wolfBoot | Secure-boot verification with ML-DSA-44/65/87, LMS/HSS and XMSS/XMSS^MT | ML-DSA announced October 2024 |
| liboqs (Open Quantum Safe) | ML-KEM, ML-DSA, SLH-DSA plus many non-standard candidates, LMS and XMSS | Project does not recommend production use |
| mlkem-native, mldsa-native (PQ Code Package) | C90 ML-KEM and ML-DSA with Arm64, x86_64, RISC-V and other backends; formal proofs for parts of the code | Used by AWS-LC and liboqs; Armv8.1-M backend experimental |
| rustls 0.23.47 | X25519MLKEM768 preferred by default via the default aws-lc-rs provider and prefer-post-quantum feature | Checked on docs.rs, December 2026 |
| RustCrypto ml-kem, ml-dsa | Pure-Rust ML-KEM and ML-DSA | READMEs state never independently audited |
| Mbed TLS / TF-PSA-Crypto | ML-DSA on the roadmap (initial support planned 2026 Q2); ML-KEM listed as future | Roadmap, checked December 2026 |
| PQClean | Reference-style C implementations | Archived read-only 4 August 2026 |
| pqm4 | Cortex-M4 benchmarking and testing framework | Not maintained; archive planned in or after January 2027 |
Algorithm support and production readiness are different things. Check maintenance, audit and validation status for every library you depend on.
C and C++: OpenSSL 3.5, BoringSSL, Botan and wolfSSL
For most Linux C and C++ services the shortest path is OpenSSL 3.5. Its release notes state that "the default TLS keyshares have been changed to offer X25519MLKEM768 and X25519", so two endpoints on 3.5 negotiate a hybrid post-quantum key exchange without extra configuration. The catch is distribution packaging: many fleets still run OpenSSL 3.0 or older, and statically linked binaries carry their own copy. More detail is on our Java, Go and OpenSSL page and our hybrid TLS page.
Botan has enabled hybrid X25519 with ML-KEM-768 by default in TLS since 3.7.0 and also implements HSS/LMS and XMSS. BoringSSL implements X25519MLKEM768 and ML-DSA but publishes no versioned releases, so pin and track a commit. wolfSSL covers ML-KEM, ML-DSA, SLH-DSA, LMS and XMSS, which matters when you need one library from a server down to a constrained device.
liboqs remains useful for research, prototyping and interoperability testing against many candidate algorithms. Its own README says: "WE DO NOT CURRENTLY RECOMMEND RELYING ON THIS LIBRARY IN A PRODUCTION ENVIRONMENT OR TO PROTECT ANY SENSITIVE DATA." We treat it accordingly.
openssl genpkey -provparam ml-dsa.retain_seed=no \
-algorithm ml-dsa-65 -out priv-only.pem
openssl pkeyutl -encap -inkey mlkem_pub.der -keyform DER -pubin \
-secret openssl_shared_secret.bin -out openssl_ciphertext.binRust: rustls ML-KEM, aws-lc-rs and pure-Rust crates
rustls ML-KEM support is no longer an add-on. In rustls 0.23.47 the default features include the aws_lc_rs provider and prefer-post-quantum, which makes X25519MLKEM768 the highest-priority key exchange. Pure ML-KEM-768 is available but, in the project's words, "not currently enabled by default out of conservatism". The mlkem-native project lists rustls among its users from 0.23.28 through AWS-LC.
The trade-off is the C dependency. aws-lc-rs builds AWS-LC, so check your cross-compilation, FIPS and supply-chain requirements. Pure-Rust options exist in RustCrypto's ml-kem and ml-dsa crates, but both READMEs state the code "has never been independently audited! USE AT YOUR OWN RISK!". Experimental ML-DSA support is available through the separate rustls-post-quantum crate's aws-lc-rs-unstable feature.
If you depend on crates built on PQClean, note that PQClean was archived in August 2026 and will receive no further fixes. Its maintainers point to mlkem-native, mldsa-native and slhdsa-c instead.
Embedded PQC firmware signing and IoT
Devices are where post-quantum migration has hard deadlines in practice: a bootloader's verification key and algorithm are often fixed for the life of the hardware. CNSA 2.0 lists LMS and XMSS for software and firmware signing (see our CNSA 2.0 page). Both are stateful, so the signing side needs strict state handling; RFC 10033 (September 2026) covers state and backup management. Verification needs no state, so devices only verify while the signing service carries the risk.
Options we have verified include wolfBoot, which verifies ML-DSA-44/65/87, LMS/HSS and XMSS/XMSS^MT signatures in secure boot, and wolfSSL builds with verify-only LMS and XMSS. On Arm, mlkem-native and mldsa-native carry optimised backends, though the Armv8.1-M backend is marked experimental and off by default. Mbed TLS users should watch the TF-PSA-Crypto roadmap: ML-DSA initial support was planned for 2026 Q2 and ML-KEM is listed as future work.
For benchmarking, pqm4 remains a reference point for Cortex-M4 measurements, but it is no longer maintained and is due to be archived. For signing keys held centrally, see our cloud KMS, HSM and PKI page, which covers HSM support for LMS, XMSS and ML-DSA.
- Check flash, RAM and stack headroom for verification code and larger public keys before committing to an algorithm.
- Decide whether devices in the field can take a bootloader update, or whether only new hardware can change.
- Design signing-state handling for LMS or XMSS before the first production signature, not after.
How BEK helps with post-quantum cryptography in C++, Rust and firmware
We work in your repositories and build systems, on whatever compilers, targets and toolchains you already use.
Assessment
Find every cryptography library, vendored copy and static link in your binaries and firmware images, with versions and call sites. This builds on our cryptographic inventory service.
Upgrade
Move to maintained libraries such as OpenSSL 3.5, current rustls or wolfSSL, replace archived dependencies such as PQClean, and plan bootloader changes per hardware line.
Implement
Enable hybrid ML-KEM TLS, add ML-DSA, LMS or XMSS signing and verification, and keep classical fallback where clients still need it.
Test and evidence
Run interoperability, size, timing and on-target tests, and hand over a written record of what changed, how it was tested and what remains classical.
Start with a free call, then a fixed-price assessment
Every migration starts by finding where your cryptography actually is. We work on any stack: .NET, Java, Go, Python, Node.js, PHP, Rust, C and C++, iOS and Android, cloud KMS, HSMs and PKI. Prices are fixed before work starts. BEK Service Ltd is not VAT registered, so no VAT is added.
Free readiness call
Free 30 minutes
A video call with an engineer. Tell us what you run; we tell you where your quantum-vulnerable cryptography most likely is, what the deadlines mean for you, and whether an assessment is worth it.
- Your stacks, vendors and data lifetimes
- Which deadlines apply to you
- A straight answer on next steps
PQC Readiness Assessment
£2,950 fixed price
A cryptographic inventory of up to three applications or repositories and up to 25 public endpoints, ranked by risk, with a costed migration roadmap.
- Cryptographic inventory (CBOM, CycloneDX)
- Endpoint, certificate and library scan
- Risk ranking by data lifetime
- Costed, phased migration roadmap
- Read-out session with your team
- Delivered within 15 working days
Migration and implementation
Quoted after the assessment
We do the work: runtime upgrades, crypto-agility layers, hybrid TLS, PQC signatures and key exchange, testing and the evidence your customers or auditors ask for.
- Runtime and library upgrades on any stack
- Hybrid ML-KEM key exchange, ML-DSA signatures
- PKI, KMS and HSM changes
- Regression and interop testing
- Evidence pack for customers and auditors
Discover
Inventory every algorithm, key, certificate, library and protocol in scope.
Prioritise
Rank by how long the data must stay secret and how hard each change is.
Upgrade
Move runtimes and libraries to versions that support NIST's PQC standards.
Implement
Hybrid key exchange first, then PQC signatures, behind a crypto-agile layer.
Evidence
Test, document and hand over what your customers and auditors ask for.
Questions we are asked
Is liboqs suitable for production?
Its maintainers say no: the README states they do not currently recommend relying on it in production or to protect sensitive data. We use it for prototyping and interoperability tests, and recommend maintained libraries for production.
Does rustls use ML-KEM by default?
In rustls 0.23.47 the default features include the aws-lc-rs provider and prefer-post-quantum, which makes the hybrid X25519MLKEM768 the highest-priority key exchange. Pure ML-KEM-768 is available but not enabled by default.
Do I need OpenSSL 3.5 for post-quantum TLS in C and C++?
Not necessarily; BoringSSL, Botan and wolfSSL also implement hybrid ML-KEM. OpenSSL 3.5 is a long-term support release that offers X25519MLKEM768 by default, which makes it the simplest route for many Linux services.
Does wolfSSL support post-quantum algorithms?
Yes. wolfSSL documents ML-KEM, ML-DSA, SLH-DSA, LMS and XMSS, and hybrid TLS groups including X25519MLKEM768. Its product page states that FIPS certification of the post-quantum algorithms is in process.
Which algorithm should I use to sign firmware?
It depends on the bootloader, the device's memory and your signing operation. LMS and XMSS are listed by CNSA 2.0 for software and firmware signing but need careful state management; ML-DSA is stateless. We assess these before recommending one.
Can you guarantee our firmware will meet CNSA 2.0?
No one can guarantee compliance through engineering alone. We implement and test the changes and give you the evidence your assessors need to make that judgement.
Sources
Facts checked against the sources below on 2026-12-02. Standards and product support change; tell us if something here is out of date. This page is general information, not legal or compliance advice.
- OpenSSL 3.5 Final Release (OpenSSL Library, 2025-04-08)
- OpenSSL 3.5 Series Release Notes (OpenSSL Library, 2026-12-01)
- EVP_PKEY-ML-DSA (OpenSSL, 2026-12-02)
- Example offline operations (ML-KEM encapsulation with OpenSSL) (AWS, 2026-12-02)
- RFC 10024: Post-Quantum Traditional (PQ/T) Hybrid Key Agreement Mechanisms for TLS 1.3 (IETF, 2026-08)
- Implement X25519MLKEM768 for TLS (BoringSSL, 2026-12-02)
- Support ML-DSA in libssl (BoringSSL, 2026-12-02)
- Botan release notes (Botan, 2026-11-06)
- wolfCrypt post-quantum (wolfSSL, 2026-12-02)
- wolfBoot: secure boot now with support for FIPS 204 ML-DSA (wolfSSL, 2024-10-25)
- liboqs README (Open Quantum Safe, 2026-12-02)
- mlkem-native (PQ Code Package, 2026-12-02)
- mldsa-native (PQ Code Package, 2026-12-02)
- rustls feature flags (0.23.47) (docs.rs, 2026-12-02)
- rustls manual: cryptography defaults (docs.rs, 2026-12-02)
- rustls-post-quantum (docs.rs, 2026-12-02)
- ml-kem crate README (RustCrypto, 2026-12-02)
- ml-dsa crate (RustCrypto, 2026-12-02)
- Mbed TLS roadmap (Trusted Firmware, 2026-12-02)
- PQClean (archived) (PQClean, 2026-08-04)
- pqm4 (mupq, 2026-12-02)
- SP 800-208: Recommendation for Stateful Hash-Based Signature Schemes (NIST, 2020-10-29)
- RFC 10033: Hash-Based Signatures: State and Backup Management (IETF, 2026-09)
Book your free 30-minute readiness call
Tell us what you run and what is driving the question: a customer questionnaire, a government contract, a regulator or your own roadmap. We reply within one working day with times for a call.
Prefer e-mail? Write to sales@bekservice.uk.
BEK Service Ltd, a software company registered in England and Wales (company no. 12590587). We use what you send only to answer you; see our privacy policy.