From 837c203e4b5efa22c63ed215d78844f80eb4543d Mon Sep 17 00:00:00 2001 From: morkt Date: Sat, 8 Oct 2016 05:03:48 +0400 Subject: [PATCH] (XorTransform, NotTransform): set BlockSize to 1. --- ArcFormats/SimpleEncryption.cs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/ArcFormats/SimpleEncryption.cs b/ArcFormats/SimpleEncryption.cs index f55ab87a..025edaa3 100644 --- a/ArcFormats/SimpleEncryption.cs +++ b/ArcFormats/SimpleEncryption.cs @@ -30,7 +30,7 @@ namespace GameRes.Formats { public sealed class NotTransform : ICryptoTransform { - private const int BlockSize = 256; + private const int BlockSize = 1; public bool CanReuseTransform { get { return true; } } public bool CanTransformMultipleBlocks { get { return true; } } @@ -62,7 +62,7 @@ namespace GameRes.Formats public sealed class XorTransform : ICryptoTransform { - private const int BlockSize = 256; + private const int BlockSize = 1; private byte m_key; public bool CanReuseTransform { get { return true; } }