🐛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

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