We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
The current implementation is flawed:
pub(crate) fn keccak_absorb( s: &mut[u64], mut pos: usize, r: usize, input: &[u8], mut inlen: usize ) -> usize { let mut idx = 0usize; while pos+inlen >= r { for i in pos..r { s[i/8] ^= (input[idx] as u64) << 8 * (i%8); idx += 1; } inlen -= r-pos; keccakf1600_statepermute(s); pos = 0; } let new_pos = pos+inlen; for i in pos..new_pos { s[i/8] ^= (input[idx] as u64) << 8 * (i%8); } new_pos }
Note that idx is not incremented in the final loop.
idx
The text was updated successfully, but these errors were encountered:
As far as I can tell keccak_absorb isn't actually used.
keccak_absorb
Sorry, something went wrong.
Remove unused and flawed keccak_absorb
5acfd2d
Closes Argyle-Software#75
Successfully merging a pull request may close this issue.
The current implementation is flawed:
Note that
idx
is not incremented in the final loop.The text was updated successfully, but these errors were encountered: