public static Keccak Compute(Span <byte> input) { if (input == null || input.Length == 0) { return(OfAnEmptyString); } return(new Keccak(KeccakHash.ComputeHashBytes(input))); }
public static Keccak Compute(byte[] input) { if (input == null || input.Length == 0) { return OfAnEmptyString; } return new Keccak(KeccakHash.ComputeHashBytes(input)); }
private static Keccak InternalCompute(byte[] input) { return(new Keccak(KeccakHash.ComputeHashBytes(input.AsSpan()))); }