Skip to content

Commit 299cfdd

Browse files
authored
Modify Bernstein hash finalization to use little-endian
Signed-off-by: Xen <lordofxen@deskasoft.com>
1 parent 9073e49 commit 299cfdd

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

HashifyNet/Algorithms/BernsteinHash/BernsteinHash_Implementation.cs

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -91,9 +91,10 @@ protected override void TransformByteGroupsInternal(ArraySegment<byte> data)
9191
protected override IHashValue FinalizeHashValueInternal(CancellationToken cancellationToken)
9292
{
9393
return new HashValue(
94-
BitConverter.GetBytes(_hashValue),
94+
Endianness.GetBytesLittleEndian(_hashValue),
9595
32);
9696
}
9797
}
9898
}
99-
}
99+
100+
}

0 commit comments

Comments
 (0)