diff options
Diffstat (limited to 'crypto/src/crypto/digests/SHA3Digest.cs')
-rw-r--r-- | crypto/src/crypto/digests/SHA3Digest.cs | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/crypto/src/crypto/digests/SHA3Digest.cs b/crypto/src/crypto/digests/SHA3Digest.cs index 890b665cf..4683af5b3 100644 --- a/crypto/src/crypto/digests/SHA3Digest.cs +++ b/crypto/src/crypto/digests/SHA3Digest.cs @@ -50,7 +50,7 @@ namespace Org.BouncyCastle.Crypto.Digests public override int DoFinal(byte[] output, int outOff) { - Absorb(new byte[]{ 0x02 }, 0, 2); + AbsorbBits(0x02, 2); return base.DoFinal(output, outOff); } @@ -69,8 +69,7 @@ namespace Org.BouncyCastle.Crypto.Digests if (finalBits >= 8) { - oneByte[0] = (byte)finalInput; - Absorb(oneByte, 0, 8); + Absorb(new byte[]{ (byte)finalInput }, 0, 1); finalBits -= 8; finalInput >>= 8; } |