Skip to content

Commit 4e0fd4b

Browse files
committed
Refactoring
1 parent 6e9092a commit 4e0fd4b

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

crypto/src/crypto/engines/Salsa20Engine.cs

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -269,10 +269,10 @@ internal static void SalsaCore(int rounds, ReadOnlySpan<uint> input, Span<uint>
269269
Vector128<uint> b0, b1, b2, b3;
270270
{
271271
var I = MemoryMarshal.AsBytes(input[..16]);
272-
var t0 = MemoryMarshal.Read<Vector128<short>>(I[0x00..0x10]);
273-
var t1 = MemoryMarshal.Read<Vector128<short>>(I[0x10..0x20]);
274-
var t2 = MemoryMarshal.Read<Vector128<short>>(I[0x20..0x30]);
275-
var t3 = MemoryMarshal.Read<Vector128<short>>(I[0x30..0x40]);
272+
var t0 = MemoryMarshal.Read<Vector128<ushort>>(I[0x00..0x10]);
273+
var t1 = MemoryMarshal.Read<Vector128<ushort>>(I[0x10..0x20]);
274+
var t2 = MemoryMarshal.Read<Vector128<ushort>>(I[0x20..0x30]);
275+
var t3 = MemoryMarshal.Read<Vector128<ushort>>(I[0x30..0x40]);
276276

277277
var u0 = Sse41.Blend(t0, t2, 0xF0);
278278
var u1 = Sse41.Blend(t1, t3, 0xC3);

0 commit comments

Comments
 (0)