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

PSA crypto - global variable - synchronization on psa_crypto_init #7945

Closed
lhuang04 opened this issue Jul 18, 2023 · 1 comment · Fixed by #8901
Closed

PSA crypto - global variable - synchronization on psa_crypto_init #7945

lhuang04 opened this issue Jul 18, 2023 · 1 comment · Fixed by #8901
Assignees
Labels
bug component-psa PSA keystore/dispatch layer (storage, drivers, …) size-s Estimated task size: small (~2d)

Comments

@lhuang04
Copy link
Contributor

Suggested enhancement

Per suggestion from @paul-elliott-arm, open a separate issue here to track the ones discussed in global variable issue in PSA crypto.

  • We may need synchronization between our libraries, otherwise we may run into thread-safety issues when we call psa_crypto_init from different threads.

Justification

Mbed TLS needs this because

@gilles-peskine-arm
Copy link
Contributor

This is a subset of #3263, but it doesn't call out psa_crypto_init explicitly, only functions that access keys, so I'm leaving it open for now.

Note that per our roadmap, we intend to make the PSA subsystem thread safe by the end of 2024.

@gilles-peskine-arm gilles-peskine-arm added bug component-psa PSA keystore/dispatch layer (storage, drivers, …) size-s Estimated task size: small (~2d) labels Jul 18, 2023
@paul-elliott-arm paul-elliott-arm self-assigned this Mar 11, 2024
@minosgalanakis minosgalanakis moved this to Mbed TLS 3.6 release in Past EPICs Apr 22, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug component-psa PSA keystore/dispatch layer (storage, drivers, …) size-s Estimated task size: small (~2d)
Projects
Status: Mbed TLS 3.6 release
Development

Successfully merging a pull request may close this issue.

3 participants