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); }
private bool IsSupportedKeyedHashAlgorithm(string algorithm, byte[] keyBytes, out KeyedHashAlgorithmDescriptor descriptor) => _options.SupportedKeyedHashAlgorithms.TryGetValue(algorithm, out descriptor);