public static bool HMACSHA512(byte[] key, ReadOnlySpan <byte> data, Span <byte> output, out int outputLength) { using var hmac = new HMACSHA512(key); return(hmac.TryComputeHash(data, output, out outputLength)); }