Esempio 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);
        }
Esempio n. 2
0
 private bool IsSupportedHashAlgorithm(string algorithm, out HashAlgorithmDescriptor descriptor)
 => _options.SupportedHashAlgorithms.TryGetValue(algorithm, out descriptor);