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

@@ -140,7 +140,7 @@ namespace GameRes.Formats.Aoi
var barc = arc as BoxArchive;
if (null == barc)
return input;
return new CryptoStream (input, new XorTransform (barc.Key), CryptoStreamMode.Read);
return new XoredStream (input, barc.Key);
}
}