summary refs log tree commit diff
diff options
context:
space:
mode:
authorDavid Hook <dgh@cryptoworkshop.com>2016-01-14 07:40:51 +1100
committerDavid Hook <dgh@cryptoworkshop.com>2016-01-14 07:40:51 +1100
commit10d225c2f4f31eaa80fe76c488d9307175f2792d (patch)
tree5cb8dba9b35ed03bf2a319c4f35b40023b96218c
parentupdate to blocksRemaining (diff)
downloadBouncyCastle.NET-ed25519-10d225c2f4f31eaa80fe76c488d9307175f2792d.tar.xz
reversed incorrect fix
-rw-r--r--crypto/src/crypto/modes/GCMBlockCipher.cs4
1 files changed, 2 insertions, 2 deletions
diff --git a/crypto/src/crypto/modes/GCMBlockCipher.cs b/crypto/src/crypto/modes/GCMBlockCipher.cs
index fd1c89ef2..fbbc242a1 100644
--- a/crypto/src/crypto/modes/GCMBlockCipher.cs
+++ b/crypto/src/crypto/modes/GCMBlockCipher.cs
@@ -174,7 +174,7 @@ namespace Org.BouncyCastle.Crypto.Modes
             this.atLength = 0;
             this.atLengthPre = 0;
             this.counter = Arrays.Clone(J0);
-            this.blocksRemaining = uint.MaxValue - 1; // page 8, len(P) <= 2^39 - 256
+            this.blocksRemaining = uint.MaxValue; // page 8, len(P) <= 2^39 - 256, 1 block used by tag
             this.bufOff = 0;
             this.totalLength = 0;
 
@@ -449,7 +449,7 @@ namespace Org.BouncyCastle.Crypto.Modes
             atLength = 0;
             atLengthPre = 0;
             counter = Arrays.Clone(J0);
-            blocksRemaining = uint.MaxValue - 1;
+            blocksRemaining = uint.MaxValue;
             bufOff = 0;
             totalLength = 0;