terl / lazysodium-java

A Java implementation of the Libsodium crypto library. For the lazy dev.
https://github.com/terl/lazysodium-java/wiki
Mozilla Public License 2.0
134 stars 46 forks source link

Blake min bytes seems to be incorrect #130

Open timmc opened 10 months ago

timmc commented 10 months ago

The GenericHash interface defines BLAKE2B_BYTES_MIN = 16 but from experimentation, the library is happy to produce outputs as low as 1 byte.

https://github.com/terl/lazysodium-java/blob/64dc78554f45eb9b81e74354d61eba4e3da2452b/src/main/java/com/goterl/lazysodium/interfaces/GenericHash.java#L20