From 287cb50d63715babd0e597f09622a42fd4873276 Mon Sep 17 00:00:00 2001 From: Peter Dettman Date: Thu, 10 Jun 2021 15:13:26 +0700 Subject: Portabiliity fix --- 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 9b9512af0..9615931ab 100644 --- a/crypto/src/crypto/modes/GcmSivBlockCipher.cs +++ b/crypto/src/crypto/modes/GcmSivBlockCipher.cs @@ -368,7 +368,7 @@ namespace Org.BouncyCastle.Crypto.Modes int myDataLen = BUFLEN + encryptPlain(myTag, pOutput, pOffset); /* Add the tag to the output */ - Array.Copy(myTag, 0, pOutput, pOffset + thePlain.Length, BUFLEN); + Array.Copy(myTag, 0, pOutput, pOffset + (int)thePlain.Length, BUFLEN); /* Reset the streams */ ResetStreams(); -- cgit 1.5.1