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
When hashing a message length of 1007 bytes with Blake2spDigest I got the following exception:
java.lang.ArrayIndexOutOfBoundsException: arraycopy: last destination index 495 out of bounds for byte[256]
I figured out that in that case the arraycopy call failed at line 102 at
System.arraycopy(message, offset, buffer, left, len);
because of the values offset=512, buffer.length=256, left=0, and len=495
The text was updated successfully, but these errors were encountered:
increased buffer size in order to avoid an IndexOutOfBoundsException,…
cdaf22c
… see also bcgit#1363
a possible fix would be to increase the buffer size to 512 bytes as in commit jonelo@cdaf22c
Sorry, something went wrong.
Fixed in 1.73
No branches or pull requests
When hashing a message length of 1007 bytes with Blake2spDigest I got the following exception:
I figured out that in that case the arraycopy call failed at line 102 at
because of the values offset=512, buffer.length=256, left=0, and len=495
The text was updated successfully, but these errors were encountered: