Пример #1
0
        internal static byte[] Hash(byte[] data, int offset, int count)
        {
            var hasher = new Sha512();

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

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

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