Skip to content
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

JCE: add synchronization to protected methods in WolfCryptSignature #68

Merged
merged 1 commit into from
Mar 30, 2024

Conversation

cconlon
Copy link
Member

@cconlon cconlon commented Mar 15, 2024

This PR adds synchronization to protected methods in WolfCryptSignature class.

This fixes a sporadic JUnit failure that looks similar to:

Threading error in RSA sign/verify thread test
junit.framework.AssertionFailedError: Threading error in RSA sign/verify thread test
	at com.wolfssl.provider.jce.test.WolfCryptSignatureTest.threadRunnerSignVerify(WolfCryptSignatureTest.java:448)
	at com.wolfssl.provider.jce.test.WolfCryptSignatureTest.testThreadedWolfSignWolfVerify(WolfCryptSignatureTest.java:462)
	at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
	at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
	at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)

@douzzer douzzer merged commit 9f1c542 into wolfSSL:master Mar 30, 2024
32 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.

4 participants