Skip to content

Implement locking around signature operations#172

Merged
ColtonWilley merged 3 commits into
wolfSSL:masterfrom
ColtonWilley:wp_sig_lock
Jun 24, 2025
Merged

Implement locking around signature operations#172
ColtonWilley merged 3 commits into
wolfSSL:masterfrom
ColtonWilley:wp_sig_lock

Conversation

@ColtonWilley

Copy link
Copy Markdown
Contributor

Implement locking around wolfProvider signature operations to facilitate multithreaded flows with multiple threads sharing an underlying key. Designed to fix issues presented in bind9 multithreaded use case.

…ate multithreaded flows with multiple threads sharing an underlying key.
Comment thread src/wp_ecx_kmgmt.c Outdated
Comment thread src/wp_rsa_sig.c Outdated
padelsbach
padelsbach previously approved these changes Jun 17, 2025
@SparkiDev

Copy link
Copy Markdown
Contributor

Do all private key operations need to be locked?
I would have thought only RSA and maybe ECC.

@ColtonWilley

Copy link
Copy Markdown
Contributor Author

Do all private key operations need to be locked? I would have thought only RSA and maybe ECC.

I did iterative testing on bind9, only with RSA, ECC, and ECX locked did we get no errors. I was also surprised.

@ColtonWilley

Copy link
Copy Markdown
Contributor Author

Retest this please.

@ColtonWilley
ColtonWilley merged commit 7e48411 into wolfSSL:master Jun 24, 2025
148 checks passed
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.

3 participants