Skip to content

Commit 85cbbb5

Browse files
committed
fix unused plainTextOffset in AesGcmCipher.BclImpl
1 parent 3a95175 commit 85cbbb5

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Renci.SshNet/Security/Cryptography/Ciphers/AesGcmCipher.BclImpl.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ public override void Decrypt(byte[] input, int cipherTextOffset, int cipherTextL
3939

4040
try
4141
{
42-
_aesGcm.Decrypt(_nonce, cipherText, tag, output, associatedData);
42+
_aesGcm.Decrypt(_nonce, cipherText, tag, output.AsSpan(plainTextOffset), associatedData);
4343
}
4444
catch (AuthenticationTagMismatchException ex)
4545
{

0 commit comments

Comments
 (0)