Skip to content

Commit 080af4a

Browse files
authored
Optimize block transformer to use 4096 default block size for cancellation
Signed-off-by: Xen <lordofxen@deskasoft.com>
1 parent 6379fdf commit 080af4a

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

HashifyNet/Algorithms/Whirlpool/Whirlpool_Implementation.cs

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -73,7 +73,7 @@ private class BlockTransformer
7373
private ulong _processedBytes;
7474

7575
public BlockTransformer()
76-
: base(64, 64)
76+
: base(inputBlockSize: 64)
7777
{
7878
_hash = new ulong[8];
7979
_processedBytes = 0;
@@ -307,4 +307,5 @@ private static ulong PackIntoUInt64(uint b7, uint b6, uint b5, uint b4, uint b3,
307307
}
308308
}
309309
}
310-
}
310+
311+
}

0 commit comments

Comments
 (0)