mirror of
https://github.com/crskycode/GARbro.git
synced 2024-12-23 19:34:15 +08:00
replaced CryptoStream with InputCryptoStream.
This commit is contained in:
parent
b6f472ab25
commit
86560c0444
@ -59,7 +59,7 @@ namespace GameRes.Formats.Dogenzaka
|
||||
{
|
||||
var key = sha.ComputeHash (KnownKey).Take (16).ToArray();
|
||||
using (var proxy = new InputProxyStream (stream.AsStream, true))
|
||||
using (var crypto = new CryptoStream (proxy, new Rc4Transform (key), CryptoStreamMode.Read))
|
||||
using (var crypto = new InputCryptoStream (proxy, new Rc4Transform (key)))
|
||||
using (var input = new BinaryStream (crypto, stream.Name))
|
||||
{
|
||||
var info = base.ReadMetaData (input);
|
||||
@ -83,7 +83,7 @@ namespace GameRes.Formats.Dogenzaka
|
||||
var rc4 = (Rc4PngMetaData)info;
|
||||
using (var sha = SHA1.Create())
|
||||
using (var proxy = new InputProxyStream (stream.AsStream, true))
|
||||
using (var crypto = new CryptoStream (proxy, new Rc4Transform (rc4.Key), CryptoStreamMode.Read))
|
||||
using (var crypto = new InputCryptoStream (proxy, new Rc4Transform (rc4.Key)))
|
||||
using (var input = new BinaryStream (crypto, stream.Name))
|
||||
return base.Read (input, info);
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user