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

Study: Consume PSA-Crypto repository #8152

Open
7 tasks
daverodgman opened this issue Sep 1, 2023 · 0 comments
Open
7 tasks

Study: Consume PSA-Crypto repository #8152

daverodgman opened this issue Sep 1, 2023 · 0 comments
Labels
component-platform Portability layer and build scripts enhancement size-l Estimated task size: large (2w+)

Comments

@daverodgman
Copy link
Contributor

daverodgman commented Sep 1, 2023

Remove the code which is currently mirrored in https://github.com/Mbed-TLS/psa-crypto . Mbed TLS must instead import code from TF-PSA-Crypto.

To ensure that users can continue to do a simple git checkout of Mbed TLS, we will (probably) want to do this via a script which regularly takes a copy of the code from TF-PSA-Crypto and checks it in to Mbed TLS:

  • copy the PSA-Crypto code into a directory within Mbed TLS (library/tf-psa-crypto maybe?)

  • move the headers into /include

  • Manually copy TF-PSA-Crypto into /tf-psa-crypto

  • Remove files from library that now live in /tf-psa-crypto

  • For all public headers coming from TF-PSA-Crypto, remove existing headers from /include and move the imported headers to this location

  • Update Mbed TLS build scripts to use the new source code directory

  • Check this in

  • Write a script to update Mbed TLS with a fresh copy from PSA-Crypto (for now, just from the tip - no need to handle branches and tags)

  • Automate running the script from Jenkins on a TBD cadence (probably every week)

@daverodgman daverodgman added enhancement component-platform Portability layer and build scripts size-m Estimated task size: medium (~1w) labels Oct 11, 2023
@daverodgman daverodgman changed the title Consume PSA-Crypto repository Study: Consume PSA-Crypto repository Nov 28, 2023
@daverodgman daverodgman added size-l Estimated task size: large (2w+) and removed size-m Estimated task size: medium (~1w) labels Nov 28, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
component-platform Portability layer and build scripts enhancement size-l Estimated task size: large (2w+)
Projects
Status: Mbed TLS 4.0 MUST
Development

No branches or pull requests

1 participant