Skip to content

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

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

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

Conversation

@egrimley-arm

Copy link
Copy Markdown
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

hug-dev commented Jan 19, 2026

Copy link
Copy Markdown
Member

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