Skip to content

Complete the move of TF-PSA-Crypto driver wrappers to dispatch/ directory#10780

Open
asmellby wants to merge 2 commits into
Mbed-TLS:developmentfrom
asmellby:feature/tf-psa-crypto-dispatch-dir
Open

Complete the move of TF-PSA-Crypto driver wrappers to dispatch/ directory#10780
asmellby wants to merge 2 commits into
Mbed-TLS:developmentfrom
asmellby:feature/tf-psa-crypto-dispatch-dir

Conversation

@asmellby

Copy link
Copy Markdown

Description

The Mbed TLS 4.1 / TF-PSA-Crypto 1.1 release introduced a PSA Crypto dispatch directory with the following description:

A new directory dispatch has been added at the root of the repository
to eventually host all code that dispatches cryptographic operations to
drivers, such as psa_crypto_driver_wrappers_no_static.c. For the time
being, it only contains psa_crypto_driver_wrappers_no_static.h.

This PR adapts Mbed TLS to the move of generated driver wrapper files and API headers to the dispatch directory in TF-PSA-Crypto.

PR checklist

Please remove the segment/s on either side of the | symbol as appropriate, and add any relevant link/s to the end of the line.
If the provided content is part of the present PR remove the # symbol.

asmellby added 2 commits June 18, 2026 15:09
Add the TF-PSA-Crypto dispatch include directory to targets
in the Mbed TLS build system that needs them. Use the CMake
variable for the dispatch directory rather than hard-coding
the path to allow using a custom dispatch directory with
Mbed TLS.

Signed-off-by: Aksel Skauge Mellbye <aksel.mellbye@silabs.com>
Add a testcase for the use of TF_PSA_CRYPTO_DISPATCH_DIR to
set a custom dispatch directory. The custom dispatch in the
testcase is created by copying and generating the vanilla
dispatch implementation into the test program directory.

This test verifies that the Mbed TLS build system correctly
forwards the dispatch directory configuration to the
TF-PSA-Crypto build system and that the Mbed TLS build system
doesn't hard-code any references to the default dispatch
directory.

Signed-off-by: Aksel Skauge Mellbye <aksel.mellbye@silabs.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant