From 0317d352f20d6cbdbe7bf288229a1083af037b77 Mon Sep 17 00:00:00 2001 From: Peter Dettman Date: Mon, 24 May 2021 20:53:46 +0700 Subject: .NET 1.1 fixes --- crypto/src/crypto/modes/GcmSivBlockCipher.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'crypto/src') 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 */ -- cgit 1.4.1