X509AsymmetricSecurityKey.IsAsymmetricAlgorithm(String) Método
Definição
Obtém um valor que indica se o algoritmo especificado usa chaves assimétricas.Gets a value that indicates whether the specified algorithm uses asymmetric keys.
public:
override bool IsAsymmetricAlgorithm(System::String ^ algorithm);
public override bool IsAsymmetricAlgorithm (string algorithm);
override this.IsAsymmetricAlgorithm : string -> bool
Public Overrides Function IsAsymmetricAlgorithm (algorithm As String) As Boolean
Parâmetros
- algorithm
- String
O algoritmo de criptografia.The cryptographic algorithm.
Retornos
true quando o algoritmo especificado é DsaSha1Signature, RsaSha1Signature, RsaSha256Signature, RsaOaepKeyWrap ou RsaV15KeyWrap; caso contrário, false.true when the specified algorithm is DsaSha1Signature, RsaSha1Signature, RsaSha256Signature, RsaOaepKeyWrap, or RsaV15KeyWrap; otherwise, false.
Comentários
Devido a problemas de colisão com o SHA1, a Microsoft recomenda um modelo de segurança baseado em SHA256 ou melhor.Due to collision problems with SHA1, Microsoft recommends a security model based on SHA256 or better.