What a post-quantum upgrade of Mbed TLS involves: builds and dependencies

A post-quantum upgrade of Mbed TLS is mainly a build and configuration exercise on TF-PSA-Crypto 1.3.0 and Mbed TLS 4.x, and the only post-quantum signature code shipped is an experimental ML-DSA-87 driver not exposed to applications, TLS or X.509.

On this page

Does a post-quantum upgrade of Mbed TLS need a rebuild, and what does it need beyond that?

As of 3 December 2026, the sources listed on this page show that a post-quantum upgrade of Mbed TLS starts with a rebuild on the 4.x line and TF-PSA-Crypto. The only post-quantum code in those sources is an experimental ML-DSA-87 driver, which is not exposed to applications, TLS or X.509, and no ML-KEM or hybrid key exchange has been published. The relevant releases are Mbed TLS 4.3.0 and TF-PSA-Crypto 1.3.0, both dated 16 November 2026. Engineers planning builds and security leads recording readiness should both read this section, because the build changes are the only post-quantum work the sources describe as available.

Mbed TLS includes TF-PSA-Crypto, which supplies its cryptography, so a rebuild means building the 4.x tree with its submodules. The TF-PSA-Crypto README asks for CMake 3.20.2 or later, Python 3.8 or later for generated sources and tests, and a C99 toolchain. Source archives for the 1.3.0 release do not include submodules or generated files, so run git submodule update --init (and recursively update the submodules after checking out a tag, as the 4.0 migration guide says). Algorithm selection lives in TF-PSA-Crypto's crypto_config.h, and scripts/config.py updates the correct file. To test ML-DSA-87 you would also set TF_PSA_CRYPTO_PQCP_MLDSA_ENABLED and TF_PSA_CRYPTO_PQCP_MLDSA_87_ENABLED. Both are off by default, marked experimental and subject to change or removal. The buffer options TF_PSA_CRYPTO_PQCP_BUFFER_ALLOC and TF_PSA_CRYPTO_PQCP_ALLOC_BUFFER_SIZE are also off by default.

The sources do not describe a TLS-level post-quantum key exchange, and the TLS 1.3 support document does not mention post-quantum or hybrid modes. The TLS 1.3 groups it lists are classical: secp256r1, x25519, secp384r1, x448, secp521r1 and the ffdhe groups. The Mbed TLS roadmap places ML-DSA initial support in 2026 CQ2 and lists ML-KEM only under Future, without a quarter. The TSC minutes of 19 February 2026 said driver integration might miss the LTS release and should be available by April. Confirm the current status of each item with the project before recording readiness, because the sources date from before the roadmap quarters arrived.

Build and dependency requirements by version and component

This table compares the build tools, submodule steps, configuration files and ML-DSA options that apply to Mbed TLS 4.0 and later, to TF-PSA-Crypto 1.3.0, and to the 3.6 long-term support branch. Read each row against its applies-to column, because the 3.6 branch does not carry the 4.x configuration model. The main takeaway is that ML-DSA appears only as an experimental driver option in TF-PSA-Crypto 1.3.0, and the sources checked show no ML-KEM support.

RequirementWhat it asks forApplies toSource and date
CMakeCMake 3.20.2 or later to build the libraryMbed TLS 4.0 and later, TF-PSA-Crypto 1.3.0TF-PSA-Crypto README, checked 3 December 2026
PythonPython 3.8 or later for generating some source files, tests and sample programsMbed TLS 4.0 and later, TF-PSA-Crypto 1.3.0TF-PSA-Crypto README, checked 3 December 2026
C toolchainA C99-compliant compiler and toolchainMbed TLS 4.0 and later, TF-PSA-Crypto 1.3.0TF-PSA-Crypto README, checked 3 December 2026
SubmodulesRun git submodule update --init before building, and recursively update after switching tags because TF-PSA-Crypto has a nested submoduleMbed TLS 4.0 and later, TF-PSA-Crypto 1.3.0TF-PSA-Crypto README; Mbed TLS 4.0 migration guide, checked 3 December 2026
Source archivesRelease source archives do not include submodules or generated files, so use a repository checkout or fetch submodules separatelyTF-PSA-Crypto 1.3.0TF-PSA-Crypto 1.3.0 release, checked 3 December 2026
Algorithm and platform optionsSet in TF-PSA-Crypto crypto_config.h, including PSA_WANT_ALG_ECDH, PSA_WANT_ALG_ECDSA and the elliptic curve and finite-field group options; edit with scripts/config.pyMbed TLS 4.0 and later, TF-PSA-Crypto 1.3.0 (not the 3.6 branch)Mbed TLS 4.0 migration guide; TF-PSA-Crypto crypto_config.h reference, checked 3 December 2026
TLS and X.509 optionsKept in mbedtls_config.h, separate from the algorithm optionsMbed TLS 4.0 and laterMbed TLS 4.0 migration guide, checked 3 December 2026
ML-DSA enablementTF_PSA_CRYPTO_PQCP_MLDSA_ENABLED (off by default, adds mldsa-native) and TF_PSA_CRYPTO_PQCP_MLDSA_87_ENABLED for the 87 parameter set; both marked experimental and subject to change or removalTF-PSA-Crypto 1.3.0 and later (driver level only)TF-PSA-Crypto crypto_config.h reference; TF-PSA-Crypto 1.3.0 release, checked 3 December 2026
ML-DSA buffer and SHAKE optionsTF_PSA_CRYPTO_PQCP_BUFFER_ALLOC (off by default) and TF_PSA_CRYPTO_PQCP_OWN_SHAKE (experimental, off by default); confirm buffer size with the vendorTF-PSA-Crypto 1.3.0 and later (driver level only)TF-PSA-Crypto crypto_config.h reference, checked 3 December 2026
Long-term support branchThe 3.6 branch does not carry the 4.x crypto_config.h configuration model, and its support ends March 2027Mbed TLS 3.6 branchMbed TLS BRANCHES file, checked 3 December 2026

Which parts of the build a post-quantum change would touch

A post-quantum change to Mbed TLS touches more than one file. The build now spans the TF-PSA-Crypto submodule, two configuration headers, driver options, and the random generator that every operation depends on. The cards below list each part and what an upgrade would need to check.

TF-PSA-Crypto submodule and nested submodule

Mbed TLS 4.0 moved its cryptography into TF-PSA-Crypto, which is a submodule. That submodule contains a nested submodule, so after checking out any branch or tag you must update submodules recursively. Source archives do not include submodules or generated files, so a build from an archive will fail until they are fetched. Confirm the submodule commit matches the Mbed TLS release you are building.

4.0 migration guide

crypto_config.h for algorithms and curves

Cryptographic algorithm and curve choices live in TF-PSA-Crypto's crypto_config.h. Options such as PSA_WANT_ALG_ECDH, PSA_WANT_ALG_ECDSA and PSA_WANT_ALG_RSA_PSS select key agreement and signature algorithms, and the PSA_WANT_ECC_* options select curves. An upgrade that adds or removes a curve or algorithm changes this file, and the build must be rebuilt to pick it up. Use scripts/config.py to edit the right file.

crypto_config.h reference

mbedtls_config.h for TLS and X.509

The TLS and X.509 options stay in mbedtls_config.h and are separate from the cryptographic options. Protocol versions, cipher suite support and certificate handling are configured here. Any post-quantum work that reaches TLS or certificates would need changes in this header as well as in crypto_config.h. Check both files together, because a change in one without the other can produce a build that compiles but offers a different set of algorithms than expected.

PQCP driver options and buffer allocation

The ML-DSA driver is enabled only by TF_PSA_CRYPTO_PQCP_MLDSA_ENABLED, with TF_PSA_CRYPTO_PQCP_MLDSA_87_ENABLED required for the 87 parameter set. The optional TF_PSA_CRYPTO_PQCP_BUFFER_ALLOC makes large objects come from a global buffer, and TF_PSA_CRYPTO_PQCP_OWN_SHAKE, marked experimental, swaps in the driver's own SHAKE. These options are experimental and may change or be removed, so any upgrade plan must treat them as unstable.

psa_crypto_init() and the PSA random generator

Since Mbed TLS 4.0, psa_crypto_init() must be called before any cryptographic operation, including parsing a key or certificate and starting a TLS handshake. The library also draws randomness from the PSA random generator, because mbedtls_ssl_conf_rng() was removed. Applications that still call the removed function or skip initialization will fail after an upgrade, so review call sites before changing the library version.

Key exchanges and curves removed in 4.0

Mbed TLS 4.0 removed the TLS 1.2 and DTLS 1.2 key exchanges RSA, RSA-PSK, DHE-PSK, DHE-RSA and static ECDH, along with about 150 cipher suites. The curves secp192r1, secp192k1, secp224r1 and secp224k1 were also removed from certificates and TLS. Peers that depend on these suites or curves will fail to connect, so test each client and server against the 4.0 configuration before deploying.

4.0 migration guide

How the upgrade path differs by version line and deployment

The 3.6 branch is a long-term support line, and the BRANCHES file lists its support as ending in March 2027. Teams on 3.6 receive maintenance releases during that window, and the 3.6.8 release published on 16 November 2026 is the most recent 3.6 release shown. The sources checked do not show a supported upgrade path from 3.6 to ML-DSA. Since the 3.6 line predates the TF-PSA-Crypto split that carries the PQCP driver options, plan to confirm with the project whether any post-quantum option will be backported to 3.6 before you rely on it.

  • Support window: Confirm the end-of-support date for 3.6 in the BRANCHES file before planning. The date listed is March 2027.
  • No ML-DSA path shown: The sources do not show a supported move from 3.6 to ML-DSA, so do not assume one exists.
  • Maintenance releases only: Track 3.6 security releases and plan your move to a newer line before support ends.
  • Build configuration: Option names differ on 3.6, so do not apply the TF-PSA-Crypto options described in other tabs to it without checking.

Confirm with the project whether a 3.6 maintenance release will carry any post-quantum option, and what your migration to 4.x requires before March 2027.

What a team should do next, in order

This sequence moves a team from confirming its build environment to recording a dated, sourced status for ML-DSA and the vendor roadmap. Each step produces a check that shows it is finished, so the team can hand a verified state to security review.

  1. Confirm the build toolchain

    The platform or build engineer confirms that the build machine has CMake 3.20.2 or later, Python 3.8 or later, and a C99 toolchain. Python is needed to generate some source files and to run the tests and sample programs, so a machine without it will fail partway through a build. Record the installed versions of each tool in the build notes. The step is done when a version check for CMake, Python and the C compiler reports values at or above these minimums.

  2. Clone with recursive submodules

    The engineer clones the repositories with recursive submodules, or runs a recursive submodule update after checking out a branch or tag. The TF-PSA-Crypto README calls for a submodule update before building, and the 1.3.0 release notes that source archives omit submodules and generated files, so a downloaded archive will not build as-is. The Mbed TLS 4.0 migration guide notes a nested submodule inside TF-PSA-Crypto, so a non-recursive update leaves code missing. The step is done when the submodule directories are populated and a listing of the TF-PSA-Crypto tree shows its source files.

  3. Initialize the PSA crypto subsystem

    The developer reviews the integration code and makes sure psa_crypto_init() runs before any cryptographic operation. That includes parsing a key or certificate and starting a TLS handshake. Since Mbed TLS 4.0, mbedtls_ssl_conf_rng() has been removed and the library uses the PSA random generator, so older code that configures an RNG callback needs to change as well. The step is done when a test program that parses a certificate and starts a handshake returns success, and the initialization return value is checked on every path.

  4. Review the configuration headers

    The security engineer compares crypto_config.h in TF-PSA-Crypto with mbedtls_config.h in Mbed TLS against the algorithms, key exchanges and curves the product is meant to use. Algorithm and platform options such as PSA_WANT_ALG_ECDH and PSA_WANT_ALG_ECDSA sit in crypto_config.h, while TLS and X.509 options stay in mbedtls_config.h, so both files need review. Changes can be applied with the scripts/config.py tool, which edits the correct file. The step is done when a written list of enabled and disabled algorithms and curves matches the product's intended profile, and the build output confirms that list.

  5. Decide on the experimental ML-DSA build options

    The engineering lead decides whether the experimental ML-DSA options are acceptable for a non-production test. Enabling them requires TF_PSA_CRYPTO_PQCP_MLDSA_ENABLED, with TF_PSA_CRYPTO_PQCP_MLDSA_87_ENABLED for the 87 parameter set, and the reference marks both as experimental and subject to change or removal. The 1.3.0 release states that the interface may change without notice and is not yet exposed to applications, and the sources checked show no ML-DSA support in TLS or X.509. The decision should be written down with its scope, and the step is done when the test build either includes these options with a stated reason or leaves them off with a stated reason.

  6. Record status against the vendor roadmap

    The security or vendor-risk lead records the current status in the team's inventory, dated and tied to the exact release. The status should say that the 4.3.0 release and the TF-PSA-Crypto 1.3.0 release contain a driver-level ML-DSA-87 subset, that it is not exposed to applications, and that the sources checked show no ML-KEM support. The roadmap lists ML-DSA initial support for 2026 CQ2 and ML-KEM support under Future, with a note that quarters are rough estimates. The TSC minutes of 19 February 2026 mention an April target for driver integration, which may have moved. The step is done when the inventory entry carries the access date and asks the vendor to confirm the current timing in writing.

What the project has not published and what to ask it

Does Mbed TLS support ML-KEM for post-quantum key exchange?

No ML-KEM support appears in the Mbed TLS or TF-PSA-Crypto sources checked, and the roadmap lists ML-KEM only under Future with no quarter. The roadmap page says quarters are rough estimates that may be pushed back or change in scope, so a Future entry gives no timing. Ask the project whether ML-KEM is planned, in which edition, and whether it will be exposed through the PSA Crypto API so that TLS can use it. Until a written commitment with a release identifier exists, plan key exchange work around the algorithms the library already supports, and record the gap in your inventory as an open item rather than as a planned feature. Because key exchange is the path that protects session secrets from recording today, this is the gap most likely to matter for confidentiality.

Does the TLS 1.3 documentation describe hybrid post-quantum key exchange?

The Mbed TLS TLS 1.3 support document does not mention post-quantum or hybrid key exchange. The possible ECDHE groups it lists are secp256r1, x25519, secp384r1, x448 and secp521r1, and the possible DHE groups are ffdhe2048 through ffdhe8192, so no hybrid group appears. The three key exchange modes it describes are PSK, ephemeral and PSK-ephemeral, selected at build time and through mbedtls_ssl_conf_tls13_key_exchange_modes(). Ask the vendor whether a hybrid group is planned, how it would be named in mbedtls_ssl_conf_groups(), and whether the TLS 1.3 document will be updated. Note that the 4.3.0 default group list covers all supported curves at 255 bits and above and all finite fields at 2048 bits and above, which means a hybrid group would need an explicit decision about whether it joins that default.

Can applications use ML-DSA signatures through Mbed TLS or X.509 today?

No, according to the sources checked. The TF-PSA-Crypto 1.3.0 release adds a limited experimental ML-DSA subset to the driver dispatch layer, covering key generation, public key export, and one-shot and multipart sign and verify, but only pure ML-DSA-87 is supported. The same release states that the interface is experimental, may change without notice, and is not yet exposed to applications. The sources checked also show no ML-DSA use in TLS or X.509 certificate handling. ML-DSA is only enabled by setting TF_PSA_CRYPTO_PQCP_MLDSA_ENABLED and TF_PSA_CRYPTO_PQCP_MLDSA_87_ENABLED, which the reference marks as experimental. Ask the project which parameter sets will be public, when the application-facing API will be stable, and whether certificate profiles will accept ML-DSA keys. Do not use the driver-level subset in production until these answers are in writing.

When will the Mbed TLS roadmap post-quantum items be delivered?

The roadmap page shows no publication date, and it lists ML-DSA investigation in 2025 CQ4, an ML-DSA prototype in 2026 CQ1, and ML-DSA initial support in 2026 CQ2. It also says quarters are very rough estimates that may be pushed back or change in scope. Some of those quarters have already passed as of 3 December 2026 while the sources checked show only experimental driver work, so the roadmap cannot be used as a delivery schedule. Ask for the date the roadmap was last revised, for the release in which each item is expected to ship, and for the criteria that would move an item out of the roadmap. A dated release note or a tagged version is evidence; a quarter on a page without a revision date is not.

When will the PSA driver integration reach a release?

The TSC minutes of 19 February 2026 record that driver integration might miss the LTS release and should be available by April, with PSA API support expected towards the end of Q2. The minutes also say TF-M would pick up the work once it is available. Those are statements from a February meeting, not a release. Check the TF-PSA-Crypto and Mbed TLS release pages to see whether the driver integration shipped in April or later, and identify the version and branch. Note that the current long-term support branches, mbedtls-4.1 and mbedtls-3.6, have end dates of March 2029 and March 2027, so the choice of branch affects when a fix or feature can reach you. Ask the project which branch will carry the driver integration and whether it will be backported.

Does Mbed TLS have a CNSA 2.0 or FIPS statement for post-quantum use?

The sources checked contain no CNSA 2.0 statement. The Mbed TLS roadmap, the repository pages and the 4.3.0 release notes say nothing about CNSA 2.0, and the roadmap does not mention FIPS. The Mbed TLS FIPS FAQ says Mbed TLS is not FIPS certified, mentions NIST-approved test vectors in its tests directory, and refers to FIPS PUB 140-2. That page shows no date, so it may not reflect the current state. CNSA 2.0 applies to national security systems, so a commercial organization can only meet it through a contract with a federal customer that requires it. Ask the vendor whether any CNSA 2.0 or FIPS validation is planned, which module and version would be validated, and whether the FAQ will be updated. Record the current position as not published.

Who owns Mbed TLS and what legal terms govern the post-quantum code?

The project is hosted in the Mbed-TLS GitHub organization and is listed on the Trusted Firmware website as a Trusted Firmware project, but the page checked does not name a legal owner. Mbed TLS is dual-licensed Apache-2.0 or GPL-2.0-or-later, and TF-PSA-Crypto carries the same dual license apart from third-party code in its drivers directory. The experimental ML-DSA code comes through the PQCP driver, which pulls in mldsa-native, so its license and provenance should be checked in that component. Ask the project who holds the copyright and maintenance responsibility, whether support contracts are available, and which license applies to the mldsa-native driver. An organization that ships a product on Mbed TLS should confirm the license obligations of each dual-licensed component with counsel before relying on the code.

What should I ask about the build options before enabling the ML-DSA driver?

Ask the project for the supported configuration of the PQCP options and their memory cost. TF_PSA_CRYPTO_PQCP_MLDSA_ENABLED is off by default, and TF_PSA_CRYPTO_PQCP_BUFFER_ALLOC, also off by default, makes mldsa-native allocate large objects from a global buffer. The example TF_PSA_CRYPTO_PQCP_ALLOC_BUFFER_SIZE uses MLD_TOTAL_ALLOC_87, and the comment says the default is generally suitable for most applications. TF_PSA_CRYPTO_PQCP_OWN_SHAKE is marked experimental, and without it mldsa-native uses the TF-PSA-Crypto SHAKE builtin. Ask whether the buffer size is tested on your target, how much RAM the buffer consumes, and whether each option is supported in a release or only in development. Constrained devices may not be able to set aside that memory, so this question should be answered before any hardware planning.

Where the post-quantum driver sits in the build path

The path starts at a source checkout, where git submodule update --init --recursive must run because TF-PSA-Crypto contains a nested submodule, and source archives omit submodules and generated files. Next, the build reads TF-PSA-Crypto's crypto_config.h, where the TF_PSA_CRYPTO_PQCP_MLDSA_ENABLED option is commented out by default and adds the mldsa-native PQCP driver. The driver exposes only ML-DSA-87 through the PSA layer, and it is experimental, not exposed to applications, and absent from the Mbed TLS TLS and X.509 layer. Check the option state in your build, and treat the ML-DSA path as a non-production option.

Build path from checkout to the experimental ML-DSA driver, stopping before application exposure.

What can break during a build-level change

A post-quantum upgrade of Mbed TLS touches the build system, the initialization model, the configuration files and the default TLS settings at once. The cards below cover the breakages the sources support, so that planners can check each one before changing a production build.

Archive builds fail without submodules

The TF-PSA-Crypto source archives do not include submodules or generated files, so a build from an archive can fail. The README says to run git submodule update --init before building. Mbed TLS 4.0 also requires a recursive submodule update after checking out a branch or tag, because TF-PSA-Crypto contains a nested submodule. Check that your build pipeline clones recursively and runs the submodule step, and confirm that generated files are present before compiling. Also confirm the toolchain meets the stated minimums: CMake 3.20.2 or later, Python 3.8 or later for generated sources and tests, and a C99 compiler.

TF-PSA-Crypto README

Applications that skip psa_crypto_init()

Since Mbed TLS 4.0, psa_crypto_init() must be called before any cryptographic operation, including parsing a key or certificate and starting a TLS handshake. The library also uses the PSA random generator because mbedtls_ssl_conf_rng() was removed. Code that worked on earlier releases without this call will fail or misbehave after an upgrade. Audit every entry point in your application that touches keys, certificates or TLS, and confirm the init call runs first and that the RNG setup no longer calls the removed function.

4.0 migration guide

Removed suites and curves break older peers

Mbed TLS 4.0 removed the TLS 1.2 and DTLS 1.2 key exchanges RSA, RSA-PSK, DHE-PSK, DHE-RSA and static ECDH, removing about 150 cipher suites. It also removed the curves secp192r1, secp192k1, secp224r1 and secp224k1 from certificates and TLS. Ephemeral ECDH and RSA signature suites remain. Peers that depend on the removed suites or curves will fail to connect after the upgrade. Inventory the peers your applications talk to and test their negotiated suites and curves before you move a production endpoint.

4.0 migration guide

Experimental ML-DSA interfaces may change

The TF-PSA-Crypto 1.3.0 release adds a limited experimental ML-DSA subset at driver level, covering pure ML-DSA-87 only. The release states that this interface is experimental, may change without notice, and is not yet exposed to applications. The related build options are marked experimental and subject to change or removal. Do not build production code against these interfaces, and plan to re-test any integration when a later release changes them.

TF-PSA-Crypto 1.3.0 release

Default buffer size may not fit

The ML-DSA buffer allocation option, TF_PSA_CRYPTO_PQCP_BUFFER_ALLOC, is off by default. When enabled, mldsa-native allocates large objects from a global buffer sized by TF_PSA_CRYPTO_PQCP_ALLOC_BUFFER_SIZE. The header says the default value is generally suitable for most applications, but it uses MLD_TOTAL_ALLOC_87 only as an example value. Constrained devices may not have room for it. Measure the memory your target needs with the option enabled, and confirm the size against your own workload before you rely on the default.

crypto_config.h reference

Default groups keep classical curves

The default group list for mbedtls_ssl_conf_groups() in the 4.3.0 header includes all supported curves at 255 bits and above, and all supported finite fields at 2048 bits and above. The sources checked show no post-quantum or hybrid key exchange group in that list. Leaving the default in place keeps classical ECDHE and finite-field key agreement. If you plan to change the group list, set it explicitly with mbedtls_ssl_conf_groups() and record the list in your configuration. The sources do not show that a post-quantum group can be selected today, so confirm this with the project.

ssl.h 4.3.0

Questions engineers and vendor-risk reviewers ask about this upgrade

Is Mbed TLS quantum safe?

The sources checked do not support calling Mbed TLS quantum safe. As of 3 December 2026, the TF-PSA-Crypto 1.3.0 release adds an experimental ML-DSA subset at the driver layer, limited to pure ML-DSA-87, and states that ML-DSA is not yet exposed to applications. The sources checked show no ML-KEM support and no post-quantum or hybrid key exchange in TLS. Certificate verification, TLS key exchange and signatures still rely on ECDH, finite-field DH, ECDSA and RSA. Confirm the current status with the project before any inventory or tender answer relies on it.

Which Mbed TLS version does a team need?

The sources checked do not name a version that enables post-quantum algorithms for applications. The latest release shown on GitHub at 3 December 2026 is 4.3.0, published 16 November 2026, with 4.1.2 and 3.6.8 released the same day. The BRANCHES file lists mbedtls-4.1 as supported until March 2029 and mbedtls-3.6 until March 2027. Mbed TLS 4.0 changed the API (psa_crypto_init() is now required and mbedtls_ssl_conf_rng() was removed), so plan a move to the 4.x line. Ask the project which release first exposes ML-DSA to applications.

Does the Mbed TLS upgrade add licensing costs?

The sources checked show no licensing fee. Mbed TLS is dual-licensed under Apache-2.0 or GPL-2.0-or-later, and TF-PSA-Crypto carries the same dual license. Third-party code in TF-PSA-Crypto's drivers directory is governed by its own terms, so review those files before distribution. Cost arises from engineering, build changes, testing and any outside support, not from the license itself. Confirm with the project and your legal team which terms apply to the specific files you ship.

What breaks when Mbed TLS moves to the 4.x line?

Several changes can break existing builds and code. Applications must call psa_crypto_init() before any cryptographic operation, including parsing a key or certificate or starting a TLS handshake. Algorithm options moved to TF-PSA-Crypto's crypto_config.h, while mbedtls_config.h keeps TLS and X.509 options. 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. Submodules must be updated recursively, since TF-PSA-Crypto contains a nested submodule. Test every TLS peer you talk to after the change.

What build tools does an Mbed TLS upgrade require?

The TF-PSA-Crypto README requires CMake 3.20.2 or later, a C99 toolchain, and Python 3.8 or later to generate some source files and to run tests and sample programs. Run git submodule update --init before building, because the 1.3.0 source archives do not include submodules or generated files. If you enable ML-DSA, set TF_PSA_CRYPTO_PQCP_MLDSA_ENABLED, which adds mldsa-native, and TF_PSA_CRYPTO_PQCP_MLDSA_87_ENABLED for the 87 parameter set. Both options are marked experimental and may change or be removed.

What should we ask Mbed TLS about post-quantum plans?

Ask which release first exposes ML-DSA to applications through the PSA API, and whether that release also offers it in TLS and X.509. Ask whether ML-KEM or any hybrid key exchange is planned, and in which release. Ask how the roadmap dates map to real releases, since the roadmap says quarters are rough estimates that may change. Ask for the support end date of your chosen branch and whether FIPS-related work is planned, because the project's FAQ says Mbed TLS is not FIPS certified. Get the answers in writing and record the date.

Can our team do this upgrade itself or does it need outside help?

Teams with C build experience and existing Mbed TLS deployments can often run the migration in-house, provided they have time for testing across every TLS peer. Outside help is useful when the work spans many devices, when experimental ML-DSA builds need validation, or when you need a fixed scope with written deliverables. DeployOpen plans, configures and tests self-hosted platforms in your own infrastructure, and most engagements are fixed-scope with the scope agreed in writing before work starts. The cost depends on the number of builds, the test coverage you need and the peers involved, so ask for a quote based on that written scope.

Why the build changes are not the same as shipping post-quantum key exchange

Turning on the ML-DSA options in TF-PSA-Crypto proves less than it might seem. Setting TF_PSA_CRYPTO_PQCP_MLDSA_ENABLED and TF_PSA_CRYPTO_PQCP_MLDSA_87_ENABLED adds the mldsa-native code and a PSA driver, and the 1.3.0 release says this driver layer now handles key generation, public key export, and one-shot and multipart sign and verify for pure ML-DSA-87. A successful build therefore shows that the driver compiles and dispatches. It does not show that a TLS handshake or an X.509 certificate can carry a post-quantum signature. The sources checked say ML-DSA is not yet exposed to applications, and they do not show it offered in TLS or X.509.

The distinction that matters is between key exchange and signatures. Key exchange sets up the shared secret for a session, and in Mbed TLS that path runs through ECDHE and finite-field DH groups selected with PSA_WANT_ECC_* and PSA_WANT_DH_RFC7919_*. Signatures and certificates authenticate the peer, and they run through ECDSA, RSA and the certificate verification profile. The sources checked address the signature side only at driver level. They publish no post-quantum key exchange in TLS, and the TLS 1.3 support document does not mention post-quantum or hybrid key exchange. The sources also show no ML-KEM support in Mbed TLS or TF-PSA-Crypto, and the roadmap lists ML-KEM under Future with no quarter.

For planning, treat the ML-DSA build as an engineering checkpoint and not as a deployable connection. Confirm with the project whether ML-DSA will be exposed through the PSA API and offered in TLS and X.509, and when. The sources say driver integration might miss the LTS release and should be available by April, with PSA API support expected toward the end of Q2, but those dates come from a February 2026 minute and the roadmap calls its quarters rough estimates. Also confirm whether any post-quantum key exchange is planned at all, since the sources show none. Until both are published, a post-quantum connection still depends on what the project ships, not on what compiles.

How DeployOpen helps plan and test a Mbed TLS build change

DeployOpen plans and tests build changes to Mbed TLS as a fixed-scope engagement, starting from the exact release, configuration and toolchain your product uses. The work covers the TF-PSA-Crypto submodule, the crypto_config.h and mbedtls_config.h options, and the build dependencies behind any post-quantum option, with each step documented for your engineers and security reviewers.

How we scope

  • We confirm which Mbed TLS and TF-PSA-Crypto versions your product ships or plans to ship, and which long-term support branch applies.
  • We record your target toolchain, CMake and Python versions, and any build system your firmware or device team already uses.
  • The written scope states which build options, dependencies and test targets are covered, and what is left for your vendors to confirm.

How we build

  • We reproduce your current build from source, including recursive submodule checkout, since source archives omit TF-PSA-Crypto and generated files.
  • We apply the configuration changes in crypto_config.h and mbedtls_config.h, using the project's config.py script where it updates the correct file.
  • We test the experimental ML-DSA build options on a separate branch, so the baseline build stays unchanged and the results are reproducible.

How we hand over

  • You receive a written record of each build option changed, its value, the component it belongs to and the version it was tested against.
  • The record separates what we verified in your build from what the Mbed TLS project has not yet exposed to applications or TLS.
  • Dated notes list the roadmap items and release notes that could change the findings, so your team can recheck them before release.

How we support

  • Ongoing support and retesting are available as a retainer, so each new Mbed TLS release can be checked against your configuration.
  • A retest follows any upgrade to the 4.x or 3.6 LTS branches, covering the build options and the call sequence your product uses.
  • Your quote should list the build targets, test platforms and retest cadence, since these drive the effort on every engagement.

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.