Skip to content

Commit 287cb50

Browse files
committed
Portabiliity fix
1 parent 3a8d907 commit 287cb50

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

crypto/src/crypto/modes/GcmSivBlockCipher.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -368,7 +368,7 @@ public virtual int DoFinal(byte[] pOutput, int pOffset)
368368
int myDataLen = BUFLEN + encryptPlain(myTag, pOutput, pOffset);
369369

370370
/* Add the tag to the output */
371-
Array.Copy(myTag, 0, pOutput, pOffset + thePlain.Length, BUFLEN);
371+
Array.Copy(myTag, 0, pOutput, pOffset + (int)thePlain.Length, BUFLEN);
372372

373373
/* Reset the streams */
374374
ResetStreams();

0 commit comments

Comments
 (0)