Skip to content

Commit 19e06eb

Browse files
authored
Update Keccak with ValueEndianness fo BigEndian
Signed-off-by: Xen <lordofxen@deskasoft.com>
1 parent 3ad1a5a commit 19e06eb

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

HashifyNet/Algorithms/Keccak/Keccak_Implementation.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -122,7 +122,7 @@ protected override IHashValue FinalizeHashValueInternal(ReadOnlySpan<byte> lefto
122122
int bytesToSqueeze = (_hashSizeInBits + 7) / 8;
123123
byte[] hash = Squeeze(bytesToSqueeze);
124124

125-
return new HashValue(ValueEndianness.NotApplicable, hash, _hashSizeInBits);
125+
return new HashValue(ValueEndianness.BigEndian, hash, _hashSizeInBits);
126126
}
127127

128128
private void Absorb(ReadOnlySpan<byte> data)
@@ -259,4 +259,4 @@ private void KeccakF1600_Permute()
259259
#endregion
260260
}
261261
}
262-
}
262+
}

0 commit comments

Comments
 (0)