Fixes not getting \n on starting packet which would then have client send it on next packet, which then was wrong size.

This commit is contained in:
hondacrx
2020-08-20 23:28:23 -04:00
parent 165ae9e4f0
commit e049db795f
6 changed files with 281 additions and 192 deletions
+1 -1
View File
@@ -45,7 +45,7 @@ namespace Framework.Cryptography
return true;
}
public bool Decrypt(ref byte[] data, byte[] tag)
public bool Decrypt(byte[] data, byte[] tag)
{
if (IsInitialized)
_clientDecrypt.Decrypt(BitConverter.GetBytes(_clientCounter).Combine(BitConverter.GetBytes(0x544E4C43)), data, tag, data);