Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

MbedTLS/TF-M usability improvements for PSA APIs #58023

Merged
merged 3 commits into from
May 26, 2023

Commits on May 25, 2023

  1. modules: mbedtls: build MbedTLS as three libraries

    Previously, Zephyr's mbedtls module's cmake build created a single static
    library, rather than the collection of libraries (mbedtls, mbedcrypto,
    and mbedx509) that upstream mbedTLS cmake provides.
    
    To give better control at link time to choose the required libraries to
    link, this commit updates the Zephyr MbedTLS module to also define a
    collection of libraries rather than a single static MbedTLS library.
    
    One benefit of the three library approach is that if mbedTLS is used in
    Zephyr in the the non-secure application in addition to TFM's PSA Crypto
    API on the secure side with TF-M, PSA API calls on the non-secure side
    will be redirected to the TFM PSA implementation, and the mbedcrypto
    library will only be linked to the secure (TF-M) binary, with the mbedtls
    and mbedx509 libraries linked against the non-secure (Zephyr) binary,
    enabling TLS calls to PSA crypto to be redirected to mbedcrypto in the
    secure partition and avoiding function duplication in the non-secure
    binary.
    
    Signed-off-by: Rajkumar Kanagaraj <rajkumar.kanagaraj@linaro.org>
    Rajkumar Kanagaraj committed May 25, 2023
    Configuration menu
    Copy the full SHA
    3f30081 View commit details
    Browse the repository at this point in the history
  2. samples: tfm: Re-commit psa_crypto sample

    Adds a refactored version of the psa_crypto sample back,
    which was removed as part of the update to TF-M 1.7.0
    due to unresolvable (at the time) issues with use of
    MbedTLS instances on the S and NS sides.
    
    This sample takes advantage of changes to MbedTLS and
    TF-M that were introduced after the TF-M 1.7.0 and MbedTLS
    3.3 release, and cherry-picked in Zephyr, allowing for
    improved linking of MbedTLS in secure and non-secure
    images. PSA API calls on the non-secure side can now be
    correctly routed to the secure partition, while X.509
    and TLS calls remain on the non-secure/Zephyr side.
    
    Signed-off-by: Rajkumar Kanagaraj <rajkumar.kanagaraj@linaro.org>
    Rajkumar Kanagaraj committed May 25, 2023
    Configuration menu
    Copy the full SHA
    090eb2a View commit details
    Browse the repository at this point in the history

Commits on May 26, 2023

  1. manifest: TF-M and MbedTLS update

    Update manifest to fetch latest TFM and MbedTLS.
    
    Signed-off-by: Rajkumar Kanagaraj <rajkumar.kanagaraj@linaro.org>
    Rajkumar Kanagaraj committed May 26, 2023
    Configuration menu
    Copy the full SHA
    292107d View commit details
    Browse the repository at this point in the history