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

Add interface for fixed-length hash functions #219

Merged
merged 5 commits into from
Jan 20, 2025
Merged

Conversation

marsella
Copy link
Contributor

Closes #98!

This adds a hash function interface, instantiates it with SHA and SHA3, and updates ECDSA to use it. Any further instantiations of ECDSA are punted to #104.

- Removes all the hardcoded SHA-256 components (including a hardcoded
maximum message width) in ECDSA
- Replaces with the `HashInterface`
- Updates the instantiations to use SHA-256
Renaming now that we could implement ECDSA with other hash functions --
the instantiation name needs to specify which hash is being used!
Adds a `fin` constraint to the interface to support truly arbitrary
message lengths in SHA3.
@marsella marsella merged commit d828540 into master Jan 20, 2025
2 checks passed
@marsella marsella deleted the 98-hash-interface branch January 20, 2025 14:26
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.

Add a Hash interface
2 participants