Skip to content

Make psa_crypto thread-safe with a global lock.#101

Draft
egrimley-arm wants to merge 1 commit intoparallaxsecond:mainfrom
egrimley-arm:pr-lock
Draft

Make psa_crypto thread-safe with a global lock.#101
egrimley-arm wants to merge 1 commit intoparallaxsecond:mainfrom
egrimley-arm:pr-lock

Conversation

@egrimley-arm
Copy link
Collaborator

Current implementations of the C library, Mbed TLS, are not thread-safe,
but Rust crates are expected to be thread-safe, so we add a global
read/write lock; psa_crypto functions that use keys obtain an
appropriate lock.

Signed-off-by: Edmund Grimley Evans edmund.grimley-evans@arm.com

Current implementations of the C library, Mbed TLS, are not thread-safe,
but Rust crates are expected to be thread-safe, so we add a global
read/write lock; psa_crypto functions that use keys obtain an
appropriate lock.

Signed-off-by: Edmund Grimley Evans <edmund.grimley-evans@arm.com>
@hug-dev
Copy link
Member

hug-dev commented Jan 19, 2026

Might that be fixed by switching to TF-PSA-Crypto? #147

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants