An Engineer’s Guide to a Post-Quantum Cryptography Migration

 December 03, 2026
SHARE ON

The NSA recently published an advisory for the industry to move to post-quantum cryptography (PQC) as soon as possible. One of our partners, David, already wrote about why you should care about this if you are a medical device manufacturer. In short: we expect the FDA will be looking for PQC in medical devices as a part of the regulatory review process. It will be important for device manufacturers to prepare proactively for this change.

But if you aren't a cybersecurity expert, it may be hard to gauge what exactly this means for your project and timeline. Even for software engineers, the practical details of different encryption algorithms, and PQC in particular, are not widely known. In light of this, I wanted to share some practical tips about what adding PQC support to your Software-as-a-Medical-Device (SaMD) could look like.

Note that this article is focused specifically on SaMD, but hardware devices with software components also will use many of these techniques. For the sake of brevity, I'm not going into firmware encryption or secure boot right now, and will be mostly focusing on encryption and signing in a PQC world.

Top line takeaways:

  • In the immortal words of Douglas Adams: “Don’t Panic!”
  • Use TLS 1.3 everywhere you can, and use PQC key exchange groups (see subsequent bullets)
  • Asymmetric encryption needs to change. Switch to at least hybrid PQC algorithms (ML-KEM-768). To do this, ensure your application uses OpenSSL 3.5+. This version uses PQC key exchange by default.
  • If you can't run this version of OpenSSL, ensure at the very least you enable and prefer at least hybrid PQC key exchange groups such as X25519MLKEM768
  • Check your dependencies. OpenSSL is usually compiled into something else in your tech stack, such as Python itself, the web browser, or the AWS services you rely on. Take an inventory of what you have so you know the lay of the land.

What exactly needs to change? 🔗

The concern about quantum computing is focused specifically on asymmetric encryption. Symmetric encryption (e.g. AES-256) is still considered secure and is quantum-resistant. Practically speaking, the NSA advisory calls out three areas of focus for migrating asymmetric encryption to PQC: key establishment, signatures, and certificates. Of these areas, the NSA in particular flags Transport Layer Security (TLS) as the highest priority to address, which falls under "key establishment."

A note of clarification: the NSA notice frequently references a guideline called CNSA 2.0. The recommendations in this article do not make your application CNSA 2.0-compliant. Unless you have a specific need to achieve this level of compliance, the approach outlined in this article would give you what is broadly considered “sufficient” PQC encryption via the use of a hybrid ML-KEM approach. We recommend this approach mostly because of widespread library and infrastructure support, making it the most practicable PQC strategy for now.

One other caveat: the recommendations here are focused on implementations that use OpenSSL under the hood. There are many other SSL backends that have varying degrees of support for TLS 1.3, ML-KEM, and the options described here. When in doubt, test your connections and inspect the traffic to see what protocols are negotiated between your client and server.

Key Establishment 🔗

What is key establishment? 🔗

Key establishment is the practice of using asymmetric key pairs to establish a shared secret between client and server, which can then be used to establish a secure, symmetrically encrypted communication channel. Asymmetric means each key has a "public" portion and a "private" portion. Asymmetric encryption allows you to encrypt a message using someone's public key in such a way that only the holder of the private portion of that key can decrypt it. Conversely, symmetric encryption doesn't have the concept of a public key; each party needs to hold the same secret key in order to decode a message. Fundamentally, symmetric encryption is stronger than asymmetric encryption, and is already quantum-resistant. However, to use it, you first need a secure way to transfer the shared secret to each party. Establishing this secure channel in the first place, before you know any pre-shared secrets, is where we need asymmetric encryption’s help.

Key establishment is done any time you use TLS to send encrypted communication, including any time you use HTTPS.

How is my device already doing this? 🔗

This all happens as a part of TLS, which underpins HTTPS. Any time you make an HTTPS request to a server, your client offers up a menu of supported encryption options to the server, and the server selects the version it will use. In the vast majority of applications, the library actually performing all this logic is OpenSSL. TLS stacks like OpenSSL implement the cryptographic primitives and cipher suites necessary for TLS as well as the protocol negotiation process of HTTPS. Whether or not they support PQC depends on the version of these libraries used, and how they’re configured in your application.

Conventional key establishment groups are elliptic curve (ECDHE, the most common group of which is X25519) and Finite-field Diffie-Hellman (FFDHE). To move to PQC, you'll need to switch this group to use the ML-KEM key exchange algorithm. The most commonly used PQC group for this is X25519MLKEM768.

What do I need to change? 🔗

This all basically boils down to: ensure you're using OpenSSL 3.5+. This version enables and prefers X25519MLKEM768 by default, which means you don't have to do anything extra to support hybrid-PQC algorithms.

If you can't upgrade to this version, double check whether your version of OpenSSL (or other SSL implementation, such as WolfSSL or BoringSSL) supports the X25519MLKEM768 key exchange group. Depending on the library you're using to interact with your SSL backend, you can specify explicit overrides of the offered key exchange groups.

Secondly: ensure you are using TLS 1.3. TLS 1.2 does NOT support PQC key exchange groups at all, so it is not protected. Again, if you're using recent versions of OpenSSL, you'll already be preferring TLS 1.3 if supported by the server. Note that you still need to ensure the key exchange group is properly set in TLS 1.3.

What about my client applications? 🔗

If your device is a web application that uses a modern web browser for its interface, you're in luck. Most modern web browsers now support and prefer PQC key exchanges by default. You can always open your browser developer console and inspect to confirm the key exchange group used. See below a screenshot from opening the "Network" tab in Firefox, selecting a request, and opening the "Security" tab. Note the Key Exchange Group is "mlkem768x25519."

If you have a device with a non-browser-based interface (a native desktop app, a command line utility, etc), then you'll need to look into the libraries you're using for communication with external servers. Almost always, this boils down to a dependency in your tech stack that is compiled against OpenSSL. See for a listing of common tech stacks and the dependencies that connect with SSL libraries.

What about my servers? 🔗

Wherever your server application terminates TLS, that's where you'll want to focus your efforts. You'll want to make sure that whatever is handling your TLS termination is compiled against OpenSSL 3.5+. Beyond that, you'll need to configure the system to prefer the hybrid PQC key exchange group first, with a fallback to a secure classical option if necessary. As an example, here's what it might look like in an nginx configuration:

ssl_protocols TLSv1.3;
ssl_ecdh_curve X25519MLKEM768:X25519;

In this configuration, we restrict the server to only support TLS 1.3 and prefer ML-KEM-768 key exchange groups. It will fall back to X25519 (a classical elliptic curve algorithm) if ML-KEM isn't supported by the client. This will allow you some flexibility if you have some older clients that haven't yet migrated to PQC. Eventually, you will be able to remove this fallback.

This same configuration can be done at other TLS termination points, depending on your application tech stack:

  • AWS security policies:
    • Application Load Balancer / Elastic Load Balancer: ELBSecurityPolicy-TLS13-1-3-PQ-2025-09
    • API Gateway: SecurityPolicy_TLS13_1_2_PQ_2025_09
    • CloudFront: TLSv1.3_2025
  • GCP: PQC key exchange is enabled by default in load balancers
  • Azure:
    • Front Door: policies include hybrid PQC key exchange by default
    • App Service / Functions: hybrid PQC enabled by default

For all of these configurations, double check the latest documentation from your library or cloud provider to make sure there aren't any newer recommended policies or configurations.

Focus on High-Value Areas First 🔗

If you have a large surface area of your device that needs to be migrated, prioritize communication over untrusted channels such as the wide internet. Once those areas have been migrated, you can focus on migrating internal network communication too, such as traffic internal to a Virtual Private Cloud (VPC). It is still considered best practice to consider all networks hostile, and thus you should work to enable TLS 1.3 and hybrid PQC key exchange wherever practicable.

What about Signatures and Certificates? 🔗

These areas are outlined in detail in the NSA's advisory, but there are limited actions you can take as a medical device manufacturer right now. The biggest reason is that certificate authorities for the web do not yet support PQC (ML-DSA) certificates.

What you should care about are any signatures that need to remain valid for many years. If you need to produce long-lived signatures, such as code signing, you'll want to ensure you're using ML-DSA backed signatures. This means whatever you're using to sign artifacts for authenticity and integrity verification, make sure it uses a PQC signature algorithm like ML-DSA. These are available from sources like AWS KMS; you can also generate them via the command line:

openssl genpkey -algorithm ML-DSA-65 -out mldsa65.key

Takeaway: We Are All Cybersecurity Engineers Now 🔗

There's a lot changing in the cybersecurity landscape, and it can be challenging to keep up. However, as the builders and maintainers of medical devices, it's incumbent upon us to understand and navigate this rapidly changing space. If your team could use a hand figuring out how to make your device practically secure in the most efficient way possible, reach out to us! Innolitics has helped many companies build and document secure medical devices. We can help you implement changes, establish and document secure development practices, and respond to regulatory issues or deficiencies. Not only that, but we can help you and your team learn how to manage these new cybersecurity requirements moving forward.

Appendix A: What are Post-Quantum Cryptography methods? 🔗

There are a variety of algorithms for quantum-resistant cryptography, but the ones we'll focus on per the NSA's recommendation are the PQC standards outlined by NIST:

  • FIPS 203: Module-Lattice-Based Key-Encapsulation Mechanism Standard (ML-KEM)
  • FIPS 204: Module-Lattice-Based Digital Signature Standard (ML-DSA)
  • FIPS 205: Stateless Hash-Based Digital Signature Standard (SLH-DSA)

Reading the details of how these encryption standards work is very interesting, but outside the scope of what you need to know to get your device secured. If you want to read more about the different techniques here, I can recommend Serious Cryptography by Jean-Philippe Aumasson, which has an excellent chapter outlining the principles behind PQC algorithms including Lattice-based cryptography.

Appendix B: How to Upgrade your TLS Stack 🔗

OpenSSL or other TLS stacks are usually bundled into other software in your tech stack. Here are some examples based on some of the common tech stacks we see at Innolitics:

Lang Where TLS comes from Update by Check
Python ssl module (requests, httpx): distro/Docker Python → system OpenSSL OS / base-image update python -c "import ssl;print(ssl.OPENSSL_VERSION)"
  ssl module: python.org / uv builds → bundled OpenSSL New Python build same
  cryptography / pyOpenSSL wheels → static OpenSSL Bump package backend.openssl_version_text()
C++ System libssl (dynamic) OS / base-image update ldd app, look for ssl
  Vendored/static (Conan, vcpkg, submodule) Rebuild with new pin OpenSSL_version()
  libcurl / cpr → its compiled backend (OpenSSL or wolfSSL) Update libcurl + backend curl -V
  gRPC, vendor SDKs → may bundle BoringSSL etc. Bump the dependency Check build files
Rust rustls + aws-lc-rs (reqwest 0.13, AWS SDK default); PQ from 0.23.27 cargo update -p rustls -p aws-lc-rs cargo tree -i aws-lc-rs
  native-tls / openssl-sys → system OpenSSL (Linux), or bundled if vendored OS update, or crate bump if vendored cargo tree -i openssl-sys
TS/JS Node.js → bundled OpenSSL (3.5 since 24.5.0) Upgrade Node (incl. Lambda / Docker tags) node -p process.versions.openssl
  Bun → BoringSSL; Deno → rustls Upgrade the runtime Runtime version
  Browser front end → browser's TLS Nothing to do (secure ALB/CloudFront) —
SHARE ON

Concept to Clearance

Bringing a medical device to FDA?

We take software and AI/ML devices from concept through FDA clearance, covering engineering, regulatory, and quality.

Let's Talk

Every great partnership starts with a conversation. Fill out the form below for a discovery call, and an Innolitics team member will contact you soon.

Book a 30-minute call →