-
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
The PSA RNG is not thread-safe #3391
Comments
Actually CTR_DRBG and HMAC_DRBG objects are protected by a mutex. So the PSA RNG is safe if either of these is used. This leaves the case of |
MbedTLS has thread-safety issues (Mbed-TLS/mbedtls#3391, Mbed-TLS/mbedtls#3391), affecting GoogleCloud.jl. This lock seems to solve the problem.
It makes sense to handle |
The global RNG used inside PSA crypto is not thread-safe if more than one thread can execute PSA crypto code at the same time. It should be protected by a mutex.
The text was updated successfully, but these errors were encountered: