Closed gruenich closed 4 months ago
blake3.c
is more or less a line-by-line rewrite of the Rust code, as far as I understand. The code you mention corresponds to this line in the original.
In the original there's a later assertion that checks whether input
is empty, so that operation is not entirely useless. In the C version there is not, so those lines serve no purpose.
Something is fishy with the C function
chunk_state_update
inblake3.c
. The function parametersinput
andinput_len
are modified. The first one might be a missing reference, but the second one?Cppcheck warns about this issue:
I don't understand what the function is actually supposed to do, so I did not work on a patch.