-
Notifications
You must be signed in to change notification settings - Fork 2k
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
Remove the assumption that n/(k+1) is a multiple of 8 #1172
Remove the assumption that n/(k+1) is a multiple of 8 #1172
Conversation
When we are happy with this, I will open a new issue for fixing the implementation to match what we want to specify. |
|
||
if (8*cByteLen == cBitLen) { | ||
// We are colliding an integer number of bytes; hLen == N/8 | ||
crypto_generichash_blake2b_final(&state, hash, hLen); |
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.
Keeping the hash call outside the if
would probably result in easier-to-follow code.
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.
Note that even when we change the expansion method, the same expression should work for the hash output length in both cases.
ACK. The first commit has me as committer and Signed-off-by even though it's not identical to the code I wrote. In such cases can you recommit as you, and add "Author: Daira Hopwood" in the commit message, or some other way that reflects joint authorship, please? (There's no need to do this when fixing trivial conflicts in rebases, it's just that there are nontrivial changes here.) |
This version works, but generates the initial rows in a way that is not what we want to specify. See zcash#1175 for resolving this. Co-author: Daira Hopwood <daira@jacaranda.org>
eebbce5
to
036dcbd
Compare
Rebased on .latest and fixed the commit message. |
ACK |
ACK @zkbot r+ |
📌 Commit 036dcbd has been approved by |
…umption, r=bitcartel Remove the assumption that n/(k+1) is a multiple of 8 This version works, but generates the initial rows in a way that is probably not what we want to specify. Closes #1148
☀️ Test successful - zcash |
This version works, but generates the initial rows in a way that is probably
not what we want to specify.
Closes #1148