Skip to content

Commit 4bc08e2

Browse files
authored
Remove redundant development-stage comments
Signed-off-by: Xen <lordofxen@deskasoft.com>
1 parent 28cfc39 commit 4bc08e2

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

HashifyNet/Algorithms/HighwayHash/HighwayHash_Implementation.cs

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -143,8 +143,7 @@ public BlockTransformer(ulong[] key, int hashSizeInBits)
143143
_v0[1] = key[1] ^ _mul0[1];
144144
_v0[2] = key[2] ^ _mul0[2];
145145
_v0[3] = key[3] ^ _mul0[3];
146-
147-
// **FIX 1: The key must be 32-bit rotated before being XORed into v1.**
146+
148147
_v1[0] = ((key[0] >> 32) | (key[0] << 32)) ^ _mul1[0];
149148
_v1[1] = ((key[1] >> 32) | (key[1] << 32)) ^ _mul1[1];
150149
_v1[2] = ((key[2] >> 32) | (key[2] << 32)) ^ _mul1[2];
@@ -293,7 +292,6 @@ protected override IHashValue FinalizeHashValueInternal(CancellationToken cancel
293292
for (int round = 0; round < finalizationRounds; round++)
294293
{
295294
cancellationToken.ThrowIfCancellationRequested();
296-
// **FIX 2: The final element of the permuted packet must come from _v0[1].**
297295
Span<ulong> permuted_v0 = new ulong[4]
298296
{
299297
(_v0[2] >> 32) | (_v0[2] << 32),
@@ -350,3 +348,4 @@ void MR(out ulong hash1, out ulong hash2, ulong v1, ulong m1, ulong v2, ulong m2
350348
}
351349

352350
}
351+

0 commit comments

Comments
 (0)