/// <summary>Hashes a byte array using the SHA256 algorithm</summary> /// <param name="message">The message.</param> /// <returns></returns> public static byte[] Sha256(byte[] message) { var buffer = new byte[SHA256_BYTES]; SodiumLibrary.crypto_hash_sha256(buffer, message, message.Length); return(buffer); }