ARM-software / psa-api

Documentation source and development of the PSA Certified API
https://arm-software.github.io/psa-api/
Other
56 stars 27 forks source link

Use Explicit Context in the Crypto API. #77

Open lhuang04 opened 1 year ago

lhuang04 commented 1 year ago

Legacy mbedtls crypto API uses explicit context, this removes the global variable and makes the thread-safety easily guaranteed .

We use mbedtls 2.x for Family of Apps in Meta Platforms. We chose it primarily because of the small binary size. Here are our use cases.

When we started integrating mbedtls PSA crypto, one issue was the use of global_data in PSA crypto.

cc @hannestschofenig, @ronald-cron-arm, @daverodgman.

paul-elliott-arm commented 1 year ago

Hi!

I can confirm we are looking at the unsafe access to key slots problem over the next quarter or so, but this is of course only one part of your complaint. I can certainly take a look at the other issues, and see how simple (or not) they would be to solve, however I cannot promise anything on them as yet.