mirror of
https://github.com/aaru-dps/Aaru.git
synced 2025-12-16 19:24:25 +00:00
🐛Moved checksums to interface.
This commit is contained in:
@@ -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();
|
||||
|
||||
Reference in New Issue
Block a user