alphazero / Blake2b

Java implementation of the BLAKE2b cryptographic hash function
Other
79 stars 22 forks source link

Fix Digest#update(byte[], int, int) #10

Closed MariusVolkhart closed 3 years ago

MariusVolkhart commented 3 years ago

The update(byte[], int, int) function produced an incorrect hash when used with a non-zero offset.

The root cause was that the compress(byte[], int) function did not pass the offset to copyMemory(byte[], byte[]).

alphazero commented 3 years ago

LGTM. Thank you.