Example #1
0
        internal static byte[] Hash(byte[] data, int offset, int count)
        {
            var hasher = new Sha512();

            hasher.Update(data, offset, count);
            return(hasher.Finish());
        }
Example #2
0
        public static void Hash(ReadOnlySpan <byte> data, Span <byte> output)
        {
            var hasher = new Sha512();

            hasher.Update(data);
            hasher.Finish(output);
        }
Example #3
0
        public static byte[] Hash(ReadOnlySpan <byte> data)
        {
            var hasher = new Sha512();

            hasher.Update(data);
            return(hasher.Finish());
        }
Example #4
0
 public static byte[] Hash(byte[] data, int offset, int count)
 {
     var hasher = new Sha512();
     hasher.Update(data, offset, count);
     return hasher.Finish();
 }