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 the data_len parameter and the test described in Appendix A of the paper #8

Open
wants to merge 3 commits into
base: master
Choose a base branch
from

Conversation

jotaro-sama
Copy link

I saw Issue #4 and made all the changes that were discussed there but never implemented.

Copy link

@hartwork hartwork left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'm just a bystander here but: Looks pretty good to me. One small detail below.

src/siphash.c Outdated
@@ -36,7 +36,7 @@
((uint64_t)((p)[4]) << 32) | ((uint64_t)((p)[5]) << 40) | \
((uint64_t)((p)[6]) << 48) | ((uint64_t)((p)[7]) << 56))

uint64_t siphash(char key[16], char data[], int c, int d){
uint64_t siphash(const char key[16], char data[], unsigned int c, unsigned int d, size_t data_len){

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

No const for char data[]?

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Good catch! That one must've slipped by. I'm gonna fix it rn.

Copy link

@hartwork hartwork left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks pretty good to me!

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.

2 participants