Skip to content

Commit 38a07e4

Browse files
author
gefeili
committed
Fix the bug in SparkleDigest
1 parent 5b2e973 commit 38a07e4

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

core/src/main/java/org/bouncycastle/crypto/digests/SparkleDigest.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -74,7 +74,7 @@ protected void finish(byte[] output, int outOff)
7474
state[(STATE_WORDS >> 1) - 1] ^= 1 << 24;
7575

7676
// padding
77-
m_buf[m_bufPos] = (byte)0x80;
77+
m_buf[m_bufPos++] = (byte)0x80;
7878
Arrays.fill(m_buf, m_bufPos, BlockSize, (byte)0);
7979
}
8080
else

0 commit comments

Comments
 (0)