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

Update polyval API #2

Merged
merged 9 commits into from
Oct 28, 2021
Merged

Update polyval API #2

merged 9 commits into from
Oct 28, 2021

Conversation

nhukc
Copy link
Collaborator

@nhukc nhukc commented Oct 27, 2021

  • Give polyval a standard hash interface
  • Remove polyval specific code from hcrt2.c

Copy link
Collaborator

@ciphergoth ciphergoth left a 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.

benchmark/src/hctr2.c Outdated Show resolved Hide resolved
benchmark/src/hctr2.c Outdated Show resolved Hide resolved
@@ -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
Copy link
Collaborator

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.

Copy link
Collaborator Author

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

benchmark/src/hctr2.c Outdated Show resolved Hide resolved
benchmark/src/hctr2.c Outdated Show resolved Hide resolved
benchmark/src/hctr2.c Outdated Show resolved Hide resolved
benchmark/src/hctr2.c Outdated Show resolved Hide resolved
benchmark/src/polyval.c Outdated Show resolved Hide resolved
benchmark/src/polyval.c Outdated Show resolved Hide resolved
benchmark/src/polyval.c Outdated Show resolved Hide resolved
benchmark/src/polyval.c Show resolved Hide resolved
benchmark/src/hctr2.c Outdated Show resolved Hide resolved
benchmark/src/polyval.c Outdated Show resolved Hide resolved
benchmark/src/hctr2.c Show resolved Hide resolved
benchmark/src/hctr2.c Outdated Show resolved Hide resolved
benchmark/src/hctr2.c Outdated Show resolved Hide resolved
benchmark/src/hctr2.c Outdated Show resolved Hide resolved
benchmark/src/hctr2.c Show resolved Hide resolved
benchmark/src/polyval.c Outdated Show resolved Hide resolved
@nhukc nhukc merged commit 7aa2a0d into main Oct 28, 2021
@nhukc nhukc deleted the polyval-fixup branch October 28, 2021 22:20
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.

3 participants