1
0
Fork 0
mirror of https://github.com/atom0s/Steamless.git synced 2024-12-28 23:37:41 +01:00

API: Changed the AES buffer size from 2048 to 16 to correct block size alignment issues.

This commit is contained in:
atom0s 2024-03-29 22:01:56 -07:00
parent 87732ea284
commit c58518a65f
No known key found for this signature in database
GPG key ID: 37D5FD3494D79AF8

View file

@ -151,8 +151,8 @@ namespace Steamless.API.Crypto
// Decrypt the data.. // Decrypt the data..
var totalBuffer = new List<byte>(); var totalBuffer = new List<byte>();
var buffer = new byte[2048]; var buffer = new byte[16];
while ((cStream.Read(buffer, 0, 2048)) > 0) while ((cStream.Read(buffer, 0, 16)) > 0)
totalBuffer.AddRange(buffer); totalBuffer.AddRange(buffer);
return totalBuffer.ToArray(); return totalBuffer.ToArray();