summary refs log tree commit diff
path: root/crypto/src
diff options
context:
space:
mode:
authorPeter Dettman <peter.dettman@bouncycastle.org>2021-05-24 20:53:46 +0700
committerPeter Dettman <peter.dettman@bouncycastle.org>2021-05-24 20:53:46 +0700
commit0317d352f20d6cbdbe7bf288229a1083af037b77 (patch)
tree358854757f71139af1d03ede79199165872485e0 /crypto/src
parentPortability fixes (diff)
downloadBouncyCastle.NET-ed25519-0317d352f20d6cbdbe7bf288229a1083af037b77.tar.xz
.NET 1.1 fixes
Diffstat (limited to 'crypto/src')
-rw-r--r--crypto/src/crypto/modes/GcmSivBlockCipher.cs2
1 files changed, 1 insertions, 1 deletions
diff --git a/crypto/src/crypto/modes/GcmSivBlockCipher.cs b/crypto/src/crypto/modes/GcmSivBlockCipher.cs
index 10e7e774b..9b9512af0 100644
--- a/crypto/src/crypto/modes/GcmSivBlockCipher.cs
+++ b/crypto/src/crypto/modes/GcmSivBlockCipher.cs
@@ -724,7 +724,7 @@ namespace Org.BouncyCastle.Crypto.Modes
             {
                 byte myValue = pValue[i];
                 pValue[i] = (byte)(((myValue >> 1) & ~MASK) | myMask);
-                myMask = (byte)((myValue & 1) == 0 ? 0 : MASK);
+                myMask = (byte)((myValue & 1) == 0 ? (byte)0 : MASK);
             }
 
             /* Xor in addition if last bit was set */