-
Notifications
You must be signed in to change notification settings - Fork 5.3k
Add IncrementalHash.GetCurrentHash #37936
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
Conversation
|
Note regarding the This serves as a reminder for when your PR is modifying a ref *.cs file and adding/modifying public APIs, to please make sure the API implementation in the src *.cs file is documented with triple slash comments, so the PR reviewers can sign off that change. |
src/libraries/Native/Unix/System.Security.Cryptography.Native/pal_evp.c
Outdated
Show resolved
Hide resolved
|
Same link
|
|
Bah, should've linked to the 1.1.0 version 😁 |
This adds
int IncrementalHash::GetHashAndReset(Span<byte>)byte[] IncrementalHash::GetCurrentHash()int IncrementalHash::GetCurrentHash(Span<byte>)bool IncrementalHash::TryGetCurrentHash(Span<byte>, out int)While simplifying the internal logic (all three variants of GetHashAndReset collapse to the PAL
int GetHashAndReset(Span<byte>), and similarly for all three variants of GetCurrentHash).This change also drives the code coverage for the IncrementalHash class up to 100%.
Fixes #1968.