Skip to content

Make RSA and HMAC SHA-256 signers and verifiers thread-safe#54

Merged
njwatson32 merged 2 commits into
masterfrom
thread-safety
May 19, 2026
Merged

Make RSA and HMAC SHA-256 signers and verifiers thread-safe#54
njwatson32 merged 2 commits into
masterfrom
thread-safety

Conversation

@njwatson32

Copy link
Copy Markdown
Collaborator

No description provided.

@dujinhui dujinhui left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We can add static for the private final ThreadLocal variables so that there are M instances when there are M threads instead of M*N (N is # of instances of the Signer instances).

@njwatson32

Copy link
Copy Markdown
Collaborator Author

We can add static for the private final ThreadLocal variables so that there are M instances when there are M threads instead of M*N (N is # of instances of the Signer instances).

fixed

@njwatson32 njwatson32 requested a review from dujinhui May 19, 2026 06:07
@njwatson32 njwatson32 merged commit e936015 into master May 19, 2026
2 checks passed
@njwatson32 njwatson32 deleted the thread-safety branch May 19, 2026 15:49
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