Esempio n. 1
0
        private bool IsSupportedKeyedHashAlgorithm(string algorithm, object[] args, out KeyedHashAlgorithmDescriptor descriptor)
        {
            if (args.Length == 1 && args[0] is byte[] keyBytes)
            {
                return(IsSupportedKeyedHashAlgorithm(algorithm, keyBytes, out descriptor));
            }

            descriptor = null;
            return(false);
        }
Esempio n. 2
0
 private bool IsSupportedKeyedHashAlgorithm(string algorithm, byte[] keyBytes, out KeyedHashAlgorithmDescriptor descriptor)
 => _options.SupportedKeyedHashAlgorithms.TryGetValue(algorithm, out descriptor);