summary refs log tree commit diff
path: root/crypto/src
diff options
context:
space:
mode:
Diffstat (limited to 'crypto/src')
-rw-r--r--crypto/src/crypto/digests/KeccakDigest.cs4
1 files changed, 2 insertions, 2 deletions
diff --git a/crypto/src/crypto/digests/KeccakDigest.cs b/crypto/src/crypto/digests/KeccakDigest.cs
index 5db13886a..62a9e03b6 100644
--- a/crypto/src/crypto/digests/KeccakDigest.cs
+++ b/crypto/src/crypto/digests/KeccakDigest.cs
@@ -172,7 +172,8 @@ namespace Org.BouncyCastle.Crypto.Digests
             int bytesInQueue = bitsInQueue >> 3;
             int rateBytes = rate >> 3;
 
-            if (len < (rateBytes - bytesInQueue))
+            int available = rateBytes - bytesInQueue;
+            if (len < available)
             {
                 Array.Copy(data, off, dataQueue, bytesInQueue, len);
                 this.bitsInQueue += len << 3;
@@ -182,7 +183,6 @@ namespace Org.BouncyCastle.Crypto.Digests
             int count = 0;
             if (bytesInQueue > 0)
             {
-                int available = rateBytes - bytesInQueue;
                 Array.Copy(data, off, dataQueue, bytesInQueue, available);
                 count += available;
                 KeccakAbsorb(dataQueue, 0);