Skip to content

Commit 60c1003

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

1 file changed

Lines changed: 3 additions & 2 deletions

File tree

HashifyNet/Algorithms/SipHash/SipHash_Implementation.cs

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -97,7 +97,7 @@ private class BlockTransformer
9797
private ulong _messageLength;
9898

9999
public BlockTransformer()
100-
: base(8, 8) // Process data in 8-byte blocks
100+
: base(inputBlockSize: 8) // Process data in 8-byte blocks
101101
{
102102
}
103103

@@ -211,4 +211,5 @@ private static ulong RotateLeft(ulong value, int bits)
211211
}
212212
}
213213
}
214-
}
214+
215+
}

0 commit comments

Comments
 (0)