Skip to content

Commit 72c16d4

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

1 file changed

Lines changed: 3 additions & 2 deletions

File tree

HashifyNet/Algorithms/Keccak/Keccak_Implementation.cs

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -81,7 +81,7 @@ public BlockTransformer() : this(512, false)
8181
{
8282
}
8383

84-
public BlockTransformer(int hashSizeInBits, bool useSha3Padding) : base(GetRate(hashSizeInBits), GetRate(hashSizeInBits))
84+
public BlockTransformer(int hashSizeInBits, bool useSha3Padding) : base(inputBlockSize: GetRate(hashSizeInBits))
8585
{
8686
_hashSizeInBits = hashSizeInBits;
8787
_rateInBytes = GetRate(hashSizeInBits);
@@ -261,4 +261,5 @@ private void KeccakF1600_Permute()
261261
#endregion
262262
}
263263
}
264-
}
264+
265+
}

0 commit comments

Comments
 (0)