Beispiel #1
0
        public static Keccak Compute(Span <byte> input)
        {
            if (input == null || input.Length == 0)
            {
                return(OfAnEmptyString);
            }

            return(new Keccak(KeccakHash.ComputeHashBytes(input)));
        }
Beispiel #2
0
        public static Keccak Compute(byte[] input)
        {
            if (input == null || input.Length == 0)
            {
                return OfAnEmptyString;
            }

            return new Keccak(KeccakHash.ComputeHashBytes(input));
        }
Beispiel #3
0
 private static Keccak InternalCompute(byte[] input)
 {
     return(new Keccak(KeccakHash.ComputeHashBytes(input.AsSpan())));
 }