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

Cleanup of SHA2 implementations #181

Merged
merged 21 commits into from
Mar 12, 2021
Merged

Cleanup of SHA2 implementations #181

merged 21 commits into from
Mar 12, 2021

Conversation

brycx
Copy link
Member

@brycx brycx commented Mar 8, 2021

The recent support for SHA2 variants added the use of min_const_generics. The different implementations became largely duplicates and somewhat messy.

With this change we put the largest amount of core-logic into a generic implementation of the SHA2 state, with different parameters instantiated for different variants. This should make it easier to verify and audit.

@brycx brycx added the improvement General improvements to code label Mar 8, 2021
@brycx brycx added this to the v0.16 milestone Mar 8, 2021
@brycx brycx changed the title WIP: Cleanup of SHA2 implementations Cleanup of SHA2 implementations Mar 12, 2021
@brycx brycx merged commit c15c0e8 into v016 Mar 12, 2021
@brycx brycx deleted the min_const_generics_cleanup branch March 12, 2021 21:30
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
improvement General improvements to code
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant