internal static byte[] Hash(byte[] data, int offset, int count) { var hasher = new Sha512(); hasher.Update(data, offset, count); return(hasher.Finish()); }
public static void Hash(ReadOnlySpan <byte> data, Span <byte> output) { var hasher = new Sha512(); hasher.Update(data); hasher.Finish(output); }
public static byte[] Hash(ReadOnlySpan <byte> data) { var hasher = new Sha512(); hasher.Update(data); return(hasher.Finish()); }
public static byte[] Hash(byte[] data, int offset, int count) { var hasher = new Sha512(); hasher.Update(data, offset, count); return hasher.Finish(); }