Exemplo n.º 1
0
        private bool IsSupportedHashAlgorithm(string algorithm, object[] args, out HashAlgorithmDescriptor descriptor)
        {
            if (args.Length == 0)
            {
                return(IsSupportedHashAlgorithm(algorithm, out descriptor));
            }

            descriptor = null;
            return(false);
        }
Exemplo n.º 2
0
 private bool IsSupportedHashAlgorithm(string algorithm, out HashAlgorithmDescriptor descriptor)
 => _options.SupportedHashAlgorithms.TryGetValue(algorithm, out descriptor);