use XoredStream instead of CryptoStream with XorTransform.

This commit is contained in:
morkt
2016-12-25 06:47:13 +04:00
parent 544b4cb067
commit a303a66501
4 changed files with 5 additions and 5 deletions

View File

@@ -80,7 +80,7 @@ namespace GameRes.Formats.X
{
byte key = KnownKeys.First().Value;
var input = arc.File.CreateStream (entry.Offset, entry.Size);
return new CryptoStream (input, new XorTransform (key), CryptoStreamMode.Read);
return new XoredStream (input, key);
}
}
}