/// <summary>Gets a value that indicates whether the specified algorithm uses asymmetric keys.</summary> /// <param name="algorithm">The cryptographic algorithm.</param> /// <returns> /// <see langword="true" /> when the specified algorithm is <see cref="F:System.IdentityModel.Tokens.SecurityAlgorithms.DsaSha1Signature" />, <see cref="F:System.IdentityModel.Tokens.SecurityAlgorithms.RsaSha1Signature" />, <see cref="F:System.IdentityModel.Tokens.SecurityAlgorithms.RsaSha256Signature" />, <see cref="F:System.IdentityModel.Tokens.SecurityAlgorithms.RsaOaepKeyWrap" />, or <see cref="F:System.IdentityModel.Tokens.SecurityAlgorithms.RsaV15KeyWrap" />; otherwise, <see langword="false" />.</returns> public override bool IsAsymmetricAlgorithm(string algorithm) { if (string.IsNullOrEmpty(algorithm)) { throw new ArgumentNullException(nameof(algorithm)); } return(CryptoHelper.IsAsymmetricAlgorithm(algorithm)); }
/// <summary>Gets a value that indicates whether the specified algorithm uses asymmetric keys.</summary> /// <param name="algorithm">The cryptographic algorithm.</param> /// <returns> /// <see langword="true" /> when the specified algorithm uses asymmetric keys; otherwise, <see langword="false" />.</returns> public override bool IsAsymmetricAlgorithm(string algorithm) { return(CryptoHelper.IsAsymmetricAlgorithm(algorithm)); }