From c58518a65f3dd700e612ee06751230f87f0e691d Mon Sep 17 00:00:00 2001 From: atom0s Date: Fri, 29 Mar 2024 22:01:56 -0700 Subject: [PATCH] API: Changed the AES buffer size from 2048 to 16 to correct block size alignment issues. --- Steamless.API/Crypto/AesHelper.cs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Steamless.API/Crypto/AesHelper.cs b/Steamless.API/Crypto/AesHelper.cs index 413c3d3..510ed87 100644 --- a/Steamless.API/Crypto/AesHelper.cs +++ b/Steamless.API/Crypto/AesHelper.cs @@ -151,8 +151,8 @@ namespace Steamless.API.Crypto // Decrypt the data.. var totalBuffer = new List(); - var buffer = new byte[2048]; - while ((cStream.Read(buffer, 0, 2048)) > 0) + var buffer = new byte[16]; + while ((cStream.Read(buffer, 0, 16)) > 0) totalBuffer.AddRange(buffer); return totalBuffer.ToArray();