-
Notifications
You must be signed in to change notification settings - Fork 2
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
Update polyval API #2
Conversation
nhukc
commented
Oct 27, 2021
•
edited
Loading
edited
- Give polyval a standard hash interface
- Remove polyval specific code from hcrt2.c
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The only change that needs to go in before landing this is the clang-format; everything else can go into subsequent changes.
@@ -110,13 +137,37 @@ void polyval_generic(const u8 *in, const struct polyval_key *key, | |||
} | |||
} | |||
|
|||
/* | |||
* If the message is not a multiple of 16 bytes, the last block should be |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
If possible, I'd prefer if our implementation of polyval didn't handle odd-sized messages at all, and left all that to the caller.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Made a separate issue regarding this. #4