mirror of
https://github.com/crskycode/GARbro.git
synced 2024-11-27 15:44:00 +08:00
(XorTransform, NotTransform): set BlockSize to 1.
This commit is contained in:
parent
38cc4c32a9
commit
837c203e4b
@ -30,7 +30,7 @@ namespace GameRes.Formats
|
|||||||
{
|
{
|
||||||
public sealed class NotTransform : ICryptoTransform
|
public sealed class NotTransform : ICryptoTransform
|
||||||
{
|
{
|
||||||
private const int BlockSize = 256;
|
private const int BlockSize = 1;
|
||||||
|
|
||||||
public bool CanReuseTransform { get { return true; } }
|
public bool CanReuseTransform { get { return true; } }
|
||||||
public bool CanTransformMultipleBlocks { get { return true; } }
|
public bool CanTransformMultipleBlocks { get { return true; } }
|
||||||
@ -62,7 +62,7 @@ namespace GameRes.Formats
|
|||||||
|
|
||||||
public sealed class XorTransform : ICryptoTransform
|
public sealed class XorTransform : ICryptoTransform
|
||||||
{
|
{
|
||||||
private const int BlockSize = 256;
|
private const int BlockSize = 1;
|
||||||
private byte m_key;
|
private byte m_key;
|
||||||
|
|
||||||
public bool CanReuseTransform { get { return true; } }
|
public bool CanReuseTransform { get { return true; } }
|
||||||
|
Loading…
Reference in New Issue
Block a user