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

Misc fixes in hash module #792

Merged
merged 2 commits into from
May 22, 2024
Merged

Misc fixes in hash module #792

merged 2 commits into from
May 22, 2024

Conversation

jonas-lj
Copy link
Contributor

@jonas-lj jonas-lj commented May 22, 2024

No description provided.

}
let mut digest = [0u8; DIGEST_LEN];
self.0
.finalize_into(GenericArray::from_mut_slice(&mut digest));
Copy link
Contributor Author

Choose a reason for hiding this comment

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

I think this does exactly what the previous code did, but I think it's a bit clearer like this

@jonas-lj jonas-lj requested a review from benr-ml May 22, 2024 12:56
@jonas-lj jonas-lj merged commit fcf2501 into main May 22, 2024
7 checks passed
@jonas-lj jonas-lj deleted the jonas/hash_clean_up branch May 22, 2024 13:22
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.

None yet

2 participants