From 86560c04448084eadd2f39feb73e63f9d55e64b7 Mon Sep 17 00:00:00 2001 From: morkt Date: Sun, 25 Dec 2016 06:52:25 +0400 Subject: [PATCH] replaced CryptoStream with InputCryptoStream. --- ArcFormats/Dogenzaka/ImageRSA.cs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/ArcFormats/Dogenzaka/ImageRSA.cs b/ArcFormats/Dogenzaka/ImageRSA.cs index 69e114b1..c67f69f5 100644 --- a/ArcFormats/Dogenzaka/ImageRSA.cs +++ b/ArcFormats/Dogenzaka/ImageRSA.cs @@ -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); }