diff options
author | Peter Dettman <peter.dettman@bouncycastle.org> | 2021-06-10 15:13:26 +0700 |
---|---|---|
committer | Peter Dettman <peter.dettman@bouncycastle.org> | 2021-06-10 15:13:26 +0700 |
commit | 287cb50d63715babd0e597f09622a42fd4873276 (patch) | |
tree | 1c037c9749097ddcc71b53df81df4e9ea26c418a | |
parent | Portability fix (diff) | |
download | BouncyCastle.NET-ed25519-287cb50d63715babd0e597f09622a42fd4873276.tar.xz |
Portabiliity fix
-rw-r--r-- | crypto/src/crypto/modes/GcmSivBlockCipher.cs | 2 |
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(); |