🐛Moved checksums to interface.

This commit is contained in:
2018-02-03 17:01:17 +00:00
parent 6b85fb0628
commit 4b4671b4ef
28 changed files with 230 additions and 273 deletions

View File

@@ -83,7 +83,7 @@ namespace DiscImageChef.Tests.Checksums
fs.Read(data, 0, 1048576);
fs.Close();
fs.Dispose();
Sha512Context ctx = new Sha512Context();
IChecksum ctx = new Sha512Context();
ctx.Init();
ctx.Update(data);
byte[] result = ctx.Final();
@@ -123,7 +123,7 @@ namespace DiscImageChef.Tests.Checksums
fs.Read(data, 0, 1048576);
fs.Close();
fs.Dispose();
Sha512Context ctx = new Sha512Context();
IChecksum ctx = new Sha512Context();
ctx.Init();
ctx.Update(data);
byte[] result = ctx.Final();