Hashing _Short input hashing - Chewhern/ASodium GitHub Wiki
For detail documentation, kindly refer to official libsodium.
SipHash-2-4 before libsodium 1.0.12 version
Initial Function
public static Byte[] ComputeHash(Byte[] Message, Byte[] Key,Boolean ClearKey=false)
Example Code
Byte[] Key = SodiumShortHash.GenerateKey();
Byte[] RandomMessage = SodiumRNG.GetRandomBytes(128);
Byte[] ComputedHash = SodiumShortHash.ComputeHash(RandomMessage, Key);
SipHash-2-4 starting from libsodium 1.0.12 version
Initial Function
public static Byte[] SipHash_2_4ComputeHash(Byte[] Message, Byte[] Key,Boolean ClearKey=false)
Example Code
Byte[] Key = SodiumShortHash.GenerateKey();
Byte[] RandomMessage = SodiumRNG.GetRandomBytes(128);
Byte[] ComputedHash = SodiumShortHash.SipHash_2_4ComputeHash(RandomMessage, Key);