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

Implement Clone and Send for SHA2 state and hasher types #465

Merged
merged 2 commits into from
Aug 6, 2024

Conversation

keks
Copy link
Member

@keks keks commented Aug 5, 2024

We need these implementations for implementing a provider that requires these features.

Send should be safe, since there is no other thread in C-land that operates on the data in the hash state. We already did the same for Drbg: #205

@keks keks changed the title Implement Clone for SHA2 state and hasher types Implement Clone and Send for SHA2 state and hasher types Aug 5, 2024
@keks keks requested a review from mamonet August 5, 2024 09:49
@mamonet
Copy link
Member

mamonet commented Aug 5, 2024

The changes look good. Since there's no race conditions coming from C-land, I think it's safe to move the operations to other thread.

@keks keks merged commit 1c8b63d into main Aug 6, 2024
55 checks passed
@keks keks deleted the keks/clone-hashes branch August 6, 2024 07:39
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