Closed gmpassos closed 3 years ago
The correct variable to be passed to _compress is _buffer, that was populated 3 lines above, not the method parameter inp.
_compress
_buffer
inp
To test this changed line you should create a Blake2bDigest with digestSize = 32.
Blake2bDigest
digestSize
See equivalent Java implementation line as reference: https://github.com/bcgit/bc-java/blob/master/core/src/main/java/org/bouncycastle/crypto/digests/Blake2bDigest.java#L353
Hi, Thanks for reporting this!
It has been merged and will be synced shortly along with a new release.
MW
The correct variable to be passed to
_compress
is_buffer
, that was populated 3 lines above, not the method parameterinp
.To test this changed line you should create a
Blake2bDigest
withdigestSize
= 32.See equivalent Java implementation line as reference: https://github.com/bcgit/bc-java/blob/master/core/src/main/java/org/bouncycastle/crypto/digests/Blake2bDigest.java#L353