Skip to content

Commit 07ba6cd

Browse files
authored
Switch from BitConverter to Endianness class
Signed-off-by: Xen <lordofxen@deskasoft.com>
1 parent 21bbcec commit 07ba6cd

1 file changed

Lines changed: 3 additions & 2 deletions

File tree

HashifyNet/Algorithms/Blake3/Blake3_Implementation.cs

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -147,7 +147,7 @@ private void MixIntoIV(uint[] state, byte[] data)
147147
for (int i = 0; i < state.Length; i++)
148148
{
149149
int baseIdx = i * 4 % data.Length;
150-
uint w = BitConverter.ToUInt32(data, baseIdx);
150+
uint w = Endianness.ToUInt32LittleEndian(data, baseIdx);
151151
state[i] ^= w;
152152
}
153153
}
@@ -621,4 +621,5 @@ private static void FillXof(uint[] inputCv, uint[] messageBlock, ulong counter,
621621
}
622622
}
623623
}
624-
}
624+
625+
}

0 commit comments

Comments
 (0)