Example #1
0
        /// <summary>Hashes a byte array using the SHA512 algorithm</summary>
        /// <param name="message">The message.</param>
        /// <returns></returns>
        public static byte[] Sha512(byte[] message)
        {
            var buffer = new byte[SHA512_BYTES];

            SodiumLibrary.crypto_hash_sha512(buffer, message, message.Length);

            return(buffer);
        }