summary refs log tree commit diff
path: root/crypto/src
diff options
context:
space:
mode:
authorPeter Dettman <peter.dettman@bouncycastle.org>2022-08-24 21:28:07 +0700
committerPeter Dettman <peter.dettman@bouncycastle.org>2022-08-24 21:28:07 +0700
commit02bb35f614bf0f76ea5cc3728a23aa2bf898bd05 (patch)
tree308cc2100382d8335fd7b02acebddb7a557e0b67 /crypto/src
parentTlsCrypto only needs IAeadCipher (diff)
downloadBouncyCastle.NET-ed25519-02bb35f614bf0f76ea5cc3728a23aa2bf898bd05.tar.xz
Fix GcmSivBlockCipher processing
Diffstat (limited to 'crypto/src')
-rw-r--r--crypto/src/crypto/modes/GcmSivBlockCipher.cs4
1 files changed, 2 insertions, 2 deletions
diff --git a/crypto/src/crypto/modes/GcmSivBlockCipher.cs b/crypto/src/crypto/modes/GcmSivBlockCipher.cs
index 2ea8eef1d..63808a53a 100644
--- a/crypto/src/crypto/modes/GcmSivBlockCipher.cs
+++ b/crypto/src/crypto/modes/GcmSivBlockCipher.cs
@@ -875,8 +875,8 @@ namespace Org.BouncyCastle.Crypto.Modes
                     parent.gHASH(parent.theReverse);
 
                     /* Adjust counters */
-                    numProcessed += mySpace;
-                    myRemaining -= mySpace;
+                    numProcessed += BUFLEN;
+                    myRemaining -= BUFLEN;
                 }
 
                 /* If we have remaining data */