-
Notifications
You must be signed in to change notification settings - Fork 7
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 a Hash interface #98
Labels
core-utilities
good first issue
Good for newcomers
new-spec
Addresses an algorithm that doesn't currently exist
Comments
Notes on the type constraint idea:
|
In a recent take we have the following in a parameter block:
This is workable, but I'd love to see an improvement. In the back of my head I've always thought it would be nice if Cryptol could accept type constraints at the parameter level, along with the current values and types (natural numbers). |
This was referenced Aug 20, 2024
Merged
Closed
mccleeary-galois
added
enhancement
New feature or request
good first issue
Good for newcomers
core-utilities
labels
Aug 29, 2024
marsella
added
new-spec
Addresses an algorithm that doesn't currently exist
and removed
enhancement
New feature or request
labels
Aug 29, 2024
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Labels
core-utilities
good first issue
Good for newcomers
new-spec
Addresses an algorithm that doesn't currently exist
Many algorithms, like ECDSA, are generic over the hash function they use as long as it satisfies certain properties (e.g. appropriate-length hash output). However, right now there is no unifying interface for hash functions. We should write an interface so that other algorithms can be written generically.
Some useful things we'll want in it, from implementing ECDSA:
hashlen
(the length of the output)Hash
function itselfThere may be other useful things to put in the interface, too.
The text was updated successfully, but these errors were encountered: