summary refs log tree commit diff
diff options
context:
space:
mode:
authorPeter Dettman <peter.dettman@bouncycastle.org>2021-06-10 15:13:26 +0700
committerPeter Dettman <peter.dettman@bouncycastle.org>2021-06-10 15:13:26 +0700
commit287cb50d63715babd0e597f09622a42fd4873276 (patch)
tree1c037c9749097ddcc71b53df81df4e9ea26c418a
parentPortability fix (diff)
downloadBouncyCastle.NET-ed25519-287cb50d63715babd0e597f09622a42fd4873276.tar.xz
Portabiliity fix
-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 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();