-
Notifications
You must be signed in to change notification settings - Fork 2.6k
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 - no concurrency #7946
Comments
Can you please clarify what the requirement is here? I have no idea what you mean by “there is only one slot for a volatile key”. We already have an issue to track protecting access to keys from concurrent threads. |
Sorry, I was in the wrong expression that all libraries that use mbedtls will access one single volatile key slot. It sounds like the slot is per key.
I just want to counter the point in issue 3263
As I explained in issue 77. Our application does want to use operation objects concurrently. We have multiple libraries in our app that use mbedtls for different work loads. |
Ok, but I'm still not sure exactly what you want. Which scenario(s) do you want?
|
We should be mostly in case 1. We don't have cases that a key will be passed from one thread to another. And we do need randomness. So we may need the fix for issue 3263 and issue 3391. |
So this issue is a duplicate of #3263 then?
My bad, I was much more pessimistic about the current situation in my previous message. Use of randomness is ok if the random generator itself is protected, and this is the case as long as you enable Also, I forgot to mention a scenario: multiple threads doing the initial call to |
Closing as I think this is resolved - please re-open or open a new ticket if necessary, |
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.
Justification
Mbed TLS needs this because
The text was updated successfully, but these errors were encountered: