What Mbed TLS needs to use post-quantum algorithms

Mbed TLS 4.3.0 has no post-quantum key exchange or certificate support. Only an experimental ML-DSA-87 driver exists in TF-PSA-Crypto 1.3.0, and it is not exposed to applications, so the upgrade work today is build, dependency and configuration preparation.

On this page

Can Mbed TLS use post-quantum algorithms today?

As of 3 December 2026, the latest Mbed TLS release, 4.3.0 (published 16 November 2026), exposes no post-quantum algorithm to applications, TLS or X.509. The sources checked show one experimental post-quantum component: an ML-DSA driver for ML-DSA-87 in TF-PSA-Crypto 1.3.0, released the same day. That driver is enabled only through build options that the header marks as experimental and says may be changed or removed without notice. The release notes state that ML-DSA is not yet exposed to applications. Engineers planning upgrades should treat the driver as a build-time investigation target, not a production capability, and vendor-risk reviewers recording status should record it as driver-level only.

The sources do not show ML-KEM support in Mbed TLS or TF-PSA-Crypto. The Mbed TLS roadmap lists ML-KEM support under Future with no quarter, and it notes that quarters are rough estimates that may change. The TLS 1.3 support document does not mention post-quantum or hybrid key exchange, so the project has published no TLS-level post-quantum key exchange statement on that page. The 4.3.0 release notes, which list 23 CVE fixes, do not mention any post-quantum feature either.

For the planning exercise, the practical point is that a TLS 1.3 deployment on Mbed TLS today negotiates only the classical groups listed in the TLS 1.3 support document, such as secp256r1, x25519, secp384r1, x448 and secp521r1, with finite-field groups ffdhe2048 to ffdhe8192 also available. Certificate verification uses the default profile in 4.3.0, which accepts ECDSA and RSA keys. Any move toward post-quantum signatures will therefore start from TF-PSA-Crypto and the crypto_config.h options, not from a TLS setting. Confirm the current status with the Mbed TLS project before recording an answer, because the roadmap quarters and experimental options are both subject to change.

Requirements by version, component and option

This table compares what each Mbed TLS and TF-PSA-Crypto component needs for post-quantum algorithms, row by row, with the source and date for each entry. Read the status column first: as of 3 December 2026 the sources checked show ML-DSA-87 only at driver level, not exposed to applications, and no ML-KEM support. The classical public-key options below still apply to today's certificates and key exchange.

Component or optionWhat it requires or enablesPost-quantum status (source, date)
Mbed TLS 4.3.0 (released 16 November 2026)Latest Mbed TLS release shown on GitHub; TLS, DTLS and X.509 options live in mbedtls_config.hNo post-quantum feature in release notes; 23 CVE fixes and new CMake config options only (Mbed TLS 4.3.0 release, 16 November 2026)
TF-PSA-Crypto 1.3.0 (released 16 November 2026)Crypto backend holding algorithm and curve options in crypto_config.hAdds experimental ML-DSA-87 driver dispatch; not exposed to applications, TLS or X.509 (TF-PSA-Crypto 1.3.0 release, 16 November 2026)
Mbed TLS 4.0 migration changesAlgorithm and platform options moved to crypto_config.h; psa_crypto_init() required before any crypto operation; TLS 1.2 RSA and static ECDH key exchanges removedNo post-quantum change; migration guide describes classical changes only (Mbed TLS 4.0 migration guide)
PSA_WANT_ALG_ECDH, PSA_WANT_ALG_ECDSAEnable elliptic-curve key agreement and signatures used in TLS and certificatesClassical algorithms; not post-quantum (TF-PSA-Crypto crypto_config.h reference)
PSA_WANT_ALG_FFDH, PSA_WANT_ALG_RSA_PSSEnable finite-field Diffie-Hellman and RSA-PSS signaturesClassical algorithms; not post-quantum (TF-PSA-Crypto crypto_config.h reference)
Curve options (PSA_WANT_ECC_SECP_R1_*, PSA_WANT_ECC_BRAINPOOL_P_R1_*, PSA_WANT_ECC_MONTGOMERY_*)Select NIST, Brainpool and Montgomery curves; FFDH groups via PSA_WANT_DH_RFC7919_*Classical curves only; secp192 and secp224 curves removed in 4.0 (Mbed TLS 4.0 migration guide)
TF_PSA_CRYPTO_PQCP_MLDSA_ENABLED (experimental)Adds mldsa-native and a PSA driver; supports only pure ML-DSA-87 without prehashingMarked experimental and subject to change or removal without notice (TF-PSA-Crypto crypto_config.h)
TF_PSA_CRYPTO_PQCP_MLDSA_87_ENABLED (experimental)Enables the 87 parameter set; required alongside the option aboveMarked experimental; not offered in TLS or X.509 per sources checked (TF-PSA-Crypto crypto_config.h; TF-PSA-Crypto 1.3.0 release)
ML-KEMKey encapsulation for post-quantum key exchangeNot listed in the sources checked; Mbed TLS roadmap shows only ML-KEM under Future with no quarter (Mbed TLS roadmap)

Which components an upgrade touches

An upgrade for post-quantum algorithms in Mbed TLS spans several layers rather than one switch. The cards below map each layer to the question it answers, so the engineer and the security lead can record what changes and where. None of these components adds a post-quantum key exchange to TLS.

TF-PSA-Crypto and crypto_config.h

TF-PSA-Crypto supplies the cryptography and the PSA Crypto API, and its include/psa/crypto_config.h selects which algorithms and curves are compiled in. The drivers directory holds the builtin, everest, p256-m and pqcp entries, and the experimental ML-DSA driver is enabled from the pqcp side. Check which PSA_WANT_ALG_* options are active, and whether the SHAKE128 and SHAKE256 dependencies are satisfied for the ML-DSA driver.

crypto_config.h

mbedtls_config.h for TLS and X.509

The TLS and X.509 options stay in mbedtls_config.h, not in the TF-PSA-Crypto configuration. TLS 1.3 support is active in the development branch and requires MBEDTLS_PSA_CRYPTO_C and MBEDTLS_SSL_KEEP_PEER_CERTIFICATE. Confirm these settings in your own build, because a change to the crypto layer does not change what TLS negotiates.

mbedtls_config.h

PSA driver layer and its wrapper

A PSA driver is enabled by defining its macro, such as DRIVER_PREFIX_ENABLED, through CFLAGS or a user config file. The guide says the wrapper layer must be edited by hand for most entry points, so a new algorithm path needs code changes beyond configuration. Ask the vendor which driver paths are wired through the wrapper in the release you run, and whether a fallback to the built-in implementation is allowed.

PSA driver guide

X.509 default certificate profile

The default verification profile in the 4.3.0 source accepts specific hashes, curves and RSA key sizes. Any post-quantum certificate or signature must be allowed by this profile, or it will fail verification unless the profile is changed. Review the profile against the certificates you issue and the chains you trust, and confirm the behavior in your own test environment.

x509_crt.c 4.3.0

CMake toolchain requirements

The TF-PSA-Crypto README requires CMake 3.20.2 or later, Python 3.8 or later and a C99 toolchain, and it lists the compilers the project tests with. The README also requires 8-bit bytes, two's complement integers and no mixed-endian platforms. Check these against your build hosts and target toolchains before planning an upgrade, because an older compiler or an unsupported platform will block the build.

TF-PSA-Crypto README

How the path differs by build and deployment

The mbedtls-4.1 branch is a long-term support line with support ending in March 2029, according to the BRANCHES file as of 3 December 2026. In the 4.x line, cryptographic algorithm and platform options live in TF-PSA-Crypto's crypto_config.h, while mbedtls_config.h keeps the TLS and X.509 options. Mbed TLS 4.0 also changed several key exchange and curve defaults, so a 4.x build inherits that baseline. The sources checked show no post-quantum algorithm exposed to TLS or X.509 on this line.

  • Option location: Set PSA_WANT_ALG_* and PSA_WANT_ECC_* in crypto_config.h, not in mbedtls_config.h.
  • Key exchange baseline: TLS 1.2 RSA and static ECDH key exchanges were removed in 4.0, leaving ECDHE and RSA signature suites.
  • Curve baseline: secp192r1, secp192k1, secp224r1 and secp224k1 were removed from certificates and TLS in 4.0.
  • Initialization: Call psa_crypto_init() before any cryptographic operation, including certificate parsing.
  • Support window: The sources give March 2029 as the end of support for this branch.

Confirm the exact 4.x patch level you run against the 4.3.0 release notes and your own build output.

Steps to prepare an Mbed TLS build for post-quantum work

This sequence checks the release line, toolchain and existing configuration, then tests the experimental ML-DSA options in isolation and pins the TLS group and signature settings explicitly. Each step ends with a check, so the result is a reviewed build and a dated record of what the vendor has and has not said.

  1. Confirm the release line and toolchain

    Identify which Mbed TLS line you ship, either 4.x or the 3.6 long-term support branch, and record the exact release tag. Check that CMake is at least 3.20.2, Python is at least 3.8, and your C compiler is a C99 toolchain that meets the versions the TF-PSA-Crypto README says it tests against. Confirm the target platform uses 8-bit bytes, two's complement integers and no mixed-endian layout. This step is done when a written record names the release tag, the compiler version and the platform, and the build passes on an unmodified tree.

  2. Inventory crypto_config.h and mbedtls_config.h options

    Since Mbed TLS 4.0, algorithm and platform options live in TF-PSA-Crypto's crypto_config.h, while TLS and X.509 options stay in mbedtls_config.h. List every PSA_WANT_ALG and PSA_WANT_ECC or PSA_WANT_DH option your build enables, and every TLS option that selects a protocol version or key exchange. Use scripts/config.py with --help to read current settings rather than editing by hand where possible. Store the result as the baseline for later diffs. The step is complete when the baseline file is saved and an engineer other than its author has reviewed it.

  3. Build with ML-DSA options in a test environment only

    Enable TF_PSA_CRYPTO_PQCP_MLDSA_ENABLED and TF_PSA_CRYPTO_PQCP_MLDSA_87_ENABLED only in a separate test tree. The crypto_config.h comment says only pure ML-DSA-87 without prehashing is supported, and the option is marked experimental and may change without notice. Keep the SHAKE128 and SHAKE256 options active, since the driver relies on them unless TF_PSA_CRYPTO_PQCP_OWN_SHAKE is set. Build with the buffer allocation options if the target avoids heap use. The step is complete when the test build passes and the build log is stored with the baseline. Do not carry these options into production images.

  4. Set psa_crypto_init() and PSA random generation explicitly

    Since Mbed TLS 4.0, psa_crypto_init() must run before any cryptographic operation, including parsing a certificate or starting a handshake, and mbedtls_ssl_conf_rng() no longer exists. Add the call at the start of each program path that handles keys or TLS, and check its return value. Confirm that the PSA random generator is the one in use on the target. The step is complete when a test shows that the library returns an initialization error if the call is removed, and the code review confirms the call precedes all key and TLS work.

  5. Pin TLS groups and signature algorithms explicitly

    Call mbedtls_ssl_conf_groups() and mbedtls_ssl_conf_sig_algs() with the list you have approved, rather than relying on defaults. The 4.3.0 header says the default group list covers all supported curves at 255 bits and above plus finite fields at 2048 bits and above, so decide which of those you accept. Set the TLS version range with mbedtls_ssl_conf_min_tls_version() and mbedtls_ssl_conf_max_tls_version(). Note that the TLS 1.3 document lists possible ECDHE and DHE groups and three key exchange modes, and that the sources checked do not show post-quantum or hybrid key exchange in TLS. The step is complete when the settings appear in source and a handshake test confirms the negotiated group and version.

  6. Review the configuration diff against the baseline

    Compare the final configuration against the stored baseline and list every changed PSA_WANT, MBEDTLS option and CMake setting, including the MBEDTLS_CONFIG_* options added in 4.3.0. Confirm that no experimental ML-DSA option appears in the production configuration. Check that the certificate profile in use still matches what you intend, since the default X.509 profile accepts RSA keys of at least 2048 bits and specific curves. The step is complete when a reviewer signs off the diff and the signed diff is filed with the release record.

  7. Record the vendor statement with its date

    Write down what the project has said about post-quantum support, with the date you checked. As of 3 December 2026, the sources checked show ML-DSA-87 at driver level in TF-PSA-Crypto 1.3.0, not exposed to applications and not offered in TLS or X.509, and no ML-KEM support. The roadmap lists ML-DSA initial support as planned for 2026 CQ2 with rough estimates that may change, and ML-KEM under Future with no quarter. Ask the vendor to confirm these points in writing. The step is complete when the dated statement and the confirmation request are stored with the build record.

What Mbed TLS has not published or does not support yet

Several post-quantum items are missing from the Mbed TLS sources checked: ML-KEM, TLS-level key exchange, application and X.509 exposure of ML-DSA, FIPS and CNSA 2.0 statements, and firm dates. Each card below names one gap and the question to put to the vendor.

ML-KEM support not scheduled

The Mbed TLS roadmap lists ML-KEM Support under Future with no quarter attached, and the sources checked show no ML-KEM support in Mbed TLS or TF-PSA-Crypto. Without ML-KEM, there is no post-quantum key encapsulation path in the library at all. Ask the vendor whether ML-KEM is planned, which edition it would land in, and whether a driver interface is intended for it. Until an answer is in writing, treat ML-KEM as unavailable.

Mbed TLS roadmap

No TLS-level hybrid key exchange

The TLS 1.3 support document lists ECDHE groups and finite-field DHE groups but does not mention post-quantum or hybrid key exchange. A TLS connection that protects traffic against future decryption therefore has no documented Mbed TLS route today. Ask the vendor whether hybrid key exchange groups are planned for TLS 1.3, which edition they would appear in, and how they would be selected through the group configuration.

TLS 1.3 support document

ML-DSA exposure to applications

ML-DSA appears only at driver level in TF-PSA-Crypto 1.3.0, limited to pure ML-DSA-87, and the release says it is not yet exposed to applications. It is also not offered in TLS or X.509 according to the sources checked. Ask the vendor when application-facing PSA signing calls for ML-DSA will exist, whether the parameter sets will expand beyond 87, and whether X.509 certificate parsing and TLS signature algorithms will accept ML-DSA.

TF-PSA-Crypto 1.3.0 release

ML-DSA interface stability

The ML-DSA build options are marked experimental in crypto_config.h, and the 1.3.0 release says the interface may change without notice. Any integration written against the current option names or driver dispatch could break in a later release. Ask the vendor which parts of the ML-DSA interface it commits to keeping, and whether it will announce breaking changes in release notes before they ship.

crypto_config.h

FIPS and CNSA 2.0 statements

The Mbed TLS FIPS FAQ says the library is not FIPS certified and refers to FIPS PUB 140-2, with no date shown on the page. The roadmap, repository pages and release notes checked say nothing about CNSA 2.0, and the roadmap does not mention FIPS. Ask the vendor for its current FIPS validation status and whether it plans to address FIPS 140-3 and CNSA 2.0, and request the answer in writing with a date.

Mbed TLS FIPS FAQ

Unconfirmed ML-DSA roadmap quarters

The roadmap lists ML-DSA investigation in 2025 CQ4, a prototype in 2026 CQ1 and initial support in 2026 CQ2, but the page carries no date and says the quarters are rough estimates that may change. The ML-DSA driver shipped as experimental in 1.3.0 rather than as supported software. Ask the vendor to confirm which milestones have been met, which are still open, and the date on which each listed quarter was last revised.

Mbed TLS roadmap

What can break or silently stay classical

The first risk is treating the post-quantum options in Mbed TLS as stable. The ML-DSA driver is enabled only through TF_PSA_CRYPTO_PQCP_MLDSA_ENABLED and TF_PSA_CRYPTO_PQCP_MLDSA_87_ENABLED in crypto_config.h, and that header marks the option as experimental, to be changed or removed without notice. The TF-PSA-Crypto 1.3.0 release says the same and adds that ML-DSA is not yet exposed to applications. Only pure ML-DSA-87 without prehashing is supported. Any build that depends on these options should pin the exact release and repeat the configuration review at each upgrade, because a later version may rename, reshape or drop them.

The second risk is assuming that enabling ML-DSA changes how TLS or certificates behave. The sources checked show ML-DSA at driver level only, with no TLS or X.509 use, and no ML-KEM support in either Mbed TLS or TF-PSA-Crypto. A build with the ML-DSA option still negotiates the same key exchanges and validates the same certificate profiles as before. Confirm this in your own build by testing a handshake and a certificate chain with the option set, and do not describe the product as offering post-quantum signatures to TLS peers.

The third risk is breakage from the 4.0 migration. Mbed TLS 4.0 removed the RSA, RSA-PSK, DHE-PSK, DHE-RSA and static ECDH key exchanges, about 150 cipher suites, and the curves secp192r1, secp192k1, secp224r1 and secp224k1. Peers that still offer only those settings will fail the handshake, and a fallback path may not exist. The default group list in the 4.3.0 header covers curves at 255 bits and above and finite fields at 2048 bits and above, so older peers may fail there too. Inventory your clients and servers against these lists before upgrading, and confirm the setting with mbedtls_ssl_conf_groups() rather than assuming the defaults match your peers. Also, psa_crypto_init() must run before any cryptographic operation, including certificate parsing and the start of a handshake. Omitting it causes operations to fail, so check every entry point in your application.

Questions engineers and vendor-risk reviewers ask

Is Mbed TLS quantum safe?

Mbed TLS does not offer a post-quantum key exchange or signature algorithm that applications can use today, so no configuration of it can be described as quantum safe. The sources checked show that the TF-PSA-Crypto 1.3.0 release, published 16 November 2026, adds an experimental ML-DSA-87 signing path at driver level only. The release states that it is not yet exposed to applications and is not offered in TLS or X.509. The sources checked show no ML-KEM support. Confirm the current status with the project before any review, because the roadmap lists dates as rough estimates that may change.

Which Mbed TLS version or branch do I need for post-quantum work?

The only post-quantum code in the sources checked sits in TF-PSA-Crypto 1.3.0, which is the cryptography component Mbed TLS includes. Mbed TLS 4.3.0, released 16 November 2026, is the latest release on GitHub as of 3 December 2026, and its release notes do not mention any post-quantum feature. The long-term support branches are mbedtls-4.1, supported until March 2029, and mbedtls-3.6, supported until March 2027. Building ML-DSA requires enabling the experimental TF_PSA_CRYPTO_PQCP_MLDSA_ENABLED and TF_PSA_CRYPTO_PQCP_MLDSA_87_ENABLED options, which the project may change or remove without notice.

Does a post-quantum upgrade of Mbed TLS cost extra?

The sources checked give no price or effort figure, so the cost can only be described by its drivers. Mbed TLS is dual-licensed under Apache-2.0 or GPL-2.0-or-later, so the software itself carries no licence fee in these sources, though you should confirm licence terms for your product. Cost drivers include moving to Mbed TLS 4.0 or later, which changed the API and removed TLS 1.2 key exchanges and cipher suites; testing of the experimental ML-DSA code; build and memory changes for constrained devices; and staff time. Ask any implementation partner for a fixed-scope quote that lists these items separately.

What breaks when I upgrade Mbed TLS to 4.x?

The main breaks in the Mbed TLS 4.0 migration guide are these. Applications must call psa_crypto_init() before any cryptographic operation, including parsing a key or certificate or starting a TLS handshake. The mbedtls_ssl_conf_rng() function was removed, so the library uses the PSA random generator. Algorithm options moved to crypto_config.h in TF-PSA-Crypto. The RSA, RSA-PSK, DHE-PSK, DHE-RSA and static ECDH key exchanges were removed from TLS 1.2 and DTLS 1.2, about 150 cipher suites were dropped, and the curves secp192r1, secp192k1, secp224r1 and secp224k1 were removed. Check each peer you talk to for these removals before you upgrade.

What should I ask Mbed TLS or its project about post-quantum plans?

Ask for the current status of ML-DSA beyond the experimental driver, meaning whether it will reach TLS and X.509 and when, and whether applications will be able to call it. Ask whether ML-KEM or any hybrid key exchange is planned for TLS, since the TLS 1.3 support document does not mention either. Ask what the roadmap dates mean, given that they are rough estimates. Ask whether the experimental options will be stabilised or removed, and what notice you will get. Ask for any statement on CNSA 2.0 or FIPS, because the sources checked say nothing on CNSA 2.0 and state that Mbed TLS is not FIPS certified.

Can my team do the Mbed TLS post-quantum work ourselves or do we need outside help?

Your team can do the build configuration and testing itself if it has engineers who know C, CMake and the PSA Crypto API, because the sources checked describe the configuration options in detail. Outside help is worth considering for the migration to Mbed TLS 4.x, the review of the experimental ML-DSA driver code, and the design of any hybrid approach, since those choices affect long-term maintenance. DeployOpen can plan, implement and test a fixed-scope Mbed TLS migration inside your own infrastructure, and prepare the evidence a security review asks for. It does not issue certifications or audit reports, so a separate auditor would still review the result.

How DeployOpen helps plan and prepare this upgrade

DeployOpen approaches the build, dependency and surrounding-component requirements for Mbed TLS as a written, fixed-scope engagement inside your own infrastructure. The work starts from your current build configuration and target editions, so the plan reflects the options your product actually uses.

How we scope

  • Confirm which Mbed TLS edition, TF-PSA-Crypto version and build toolchain your product uses today.
  • List the crypto_config.h and mbedtls_config.h options your build enables, including curves and key exchange groups.
  • Agree the written scope, deliverables and timeline with you before any build or configuration work begins.

How we build

  • Test candidate build configurations against your target toolchain, including CMake and Python version requirements.
  • Review PSA driver and experimental ML-DSA options against the current release notes, since they may change without notice.
  • Verify TLS 1.3 settings, certificate verification profiles and group lists in a staging build before any rollout.

How we hand over

  • Deliver a written record of each build option, dependency and version that your configuration depends on.
  • Document which post-quantum options are unavailable to applications today, so your plan does not assume them.
  • Provide a retest of the agreed configuration so your security and compliance teams can review the evidence.

How we support

  • Ongoing support, upgrades and continuous testing are available as a retainer after handover.
  • Track Mbed TLS release and branch changes, such as the mbedtls-3.6 and mbedtls-4.1 long-term support dates, against your plan.
  • Ask the vendor for written confirmation of any roadmap item, because the published quarters are estimates that may change.

Sources and further reading

Talk to our team.

Tell us what you're working on, whether it's a deployment, an audit, a security test or a cyber range. You'll speak with an engineer who can help you scope it.

  • 30-minute call: free, with no obligation.
  • NDA on request: we can sign before you share details.
  • Clear next steps: a scope and plan after the call.