CngAlgorithm Classe

Definição

Encapsula o nome de um algoritmo de criptografia.Encapsulates the name of an encryption algorithm.

public ref class CngAlgorithm sealed : IEquatable<System::Security::Cryptography::CngAlgorithm ^>
public sealed class CngAlgorithm : IEquatable<System.Security.Cryptography.CngAlgorithm>
[System.Serializable]
public sealed class CngAlgorithm : IEquatable<System.Security.Cryptography.CngAlgorithm>
type CngAlgorithm = class
    interface IEquatable<CngAlgorithm>
[<System.Serializable>]
type CngAlgorithm = class
    interface IEquatable<CngAlgorithm>
Public NotInheritable Class CngAlgorithm
Implements IEquatable(Of CngAlgorithm)
Herança
CngAlgorithm
Atributos
Implementações

Comentários

A CngAlgorithm classe é uma classe de utilitário.The CngAlgorithm class is a utility class. Ele consiste em propriedades estáticas, métodos de comparação e uma cadeia de caracteres de nome de algoritmo privada, mantida internamente.It consists of static properties, comparison methods, and a private, internally maintained, algorithm name string.

As propriedades estáticas retornam CngAlgorithm objetos.The static properties return CngAlgorithm objects. A cadeia de caracteres interna de cada objeto é inicializada para o nome do algoritmo que corresponde ao nome da propriedade estática.Each object's internal string is initialized to the algorithm name that corresponds to the name of the static property.

Você também pode usar essa classe para criar objetos para tipos de algoritmo que não são cobertos pelas propriedades estáticas.You can also use this class to create objects for algorithm types that are not covered by the static properties.

Várias classes CNG (Cryptography Next Generation) (como CngKey ) aceitam CngAlgorithm objetos por meio de um algorithm parâmetro.Several Cryptography Next Generation (CNG) classes (such as CngKey) accept CngAlgorithm objects through an algorithm parameter. Quando a classe recebe o CngAlgorithm objeto, ele recupera o nome do algoritmo inserido chamando a propriedade do objeto Algorithm .When the class receives the CngAlgorithm object, it retrieves the embedded algorithm name by calling the object's Algorithm property.

Portanto, CngAlgorithm o serve como uma enumeração de algoritmos bem conhecidos.Therefore, CngAlgorithm serves as an enumeration of well-known algorithms. Ele permite que você especifique um algoritmo bem conhecido usando um valor fortemente tipado em vez de uma cadeia de caracteres.It lets you specify a well-known algorithm by using a strongly typed value instead of a string.

Construtores

CngAlgorithm(String)

Inicializa uma nova instância da classe CngAlgorithm.Initializes a new instance of the CngAlgorithm class.

Propriedades

Algorithm

Obtém o nome do algoritmo que o objeto CngAlgorithm atual especifica.Gets the algorithm name that the current CngAlgorithm object specifies.

ECDiffieHellman

Obtém um objeto CngAlgorithm que especifica um algoritmo de troca de chaves Diffie-Hellman de Curva Elíptica (ECDH) cuja curva é descrita por meio de uma propriedade de chave.Gets a CngAlgorithm object that specifies an Elliptic Curve Diffie-Hellman (ECDH) key exchange algorithm whose curve is described via a key property.

ECDiffieHellmanP256

Obtém um objeto CngAlgorithm que especifica um algoritmo de troca de chaves ECDH (Diffie-Hellman de Curva Elíptica) que usa a curva P-256.Gets a CngAlgorithm object that specifies an Elliptic Curve Diffie-Hellman (ECDH) key exchange algorithm that uses the P-256 curve.

ECDiffieHellmanP384

Obtém um objeto CngAlgorithm que especifica um algoritmo de troca de chaves ECDH (Diffie-Hellman de Curva Elíptica) que usa a curva P-384.Gets a CngAlgorithm object that specifies an Elliptic Curve Diffie-Hellman (ECDH) key exchange algorithm that uses the P-384 curve.

ECDiffieHellmanP521

Obtém um objeto CngAlgorithm que especifica um algoritmo de troca de chaves ECDH (Diffie-Hellman de Curva Elíptica) que usa a curva P-521.Gets a CngAlgorithm object that specifies an Elliptic Curve Diffie-Hellman (ECDH) key exchange algorithm that uses the P-521 curve.

ECDsa

Obtém um objeto CngAlgorithm que especifica um ECDSA (Algoritmo de Assinatura Digital Curva Elíptica) cuja curva é descrita por meio de uma propriedade de chave.Gets a CngAlgorithm object that specifies an Elliptic Curve Digital Signature Algorithm (ECDSA) whose curve is described via a key property.

ECDsaP256

Obtém um objeto CngAlgorithm que especifica um ECDSA (Algoritmo de Assinatura Digital Curva Elíptica) que usa a curva P-256.Gets a CngAlgorithm object that specifies an Elliptic Curve Digital Signature Algorithm (ECDSA) that uses the P-256 curve.

ECDsaP384

Obtém um objeto CngAlgorithm que especifica um ECDSA (Algoritmo de Assinatura Digital Curva Elíptica) que usa a curva P-384.Gets a CngAlgorithm object that specifies an Elliptic Curve Digital Signature Algorithm (ECDSA) that uses the P-384 curve.

ECDsaP521

Obtém um novo objeto CngAlgorithm que especifica um ECDSA (Algoritmo de Assinatura Digital Curva Elíptica) que usa a curva P-521.Gets a new CngAlgorithm object that specifies an Elliptic Curve Digital Signature Algorithm (ECDSA) that uses the P-521 curve.

MD5

Obtém um novo objeto CngAlgorithm que especifica o algoritmo de hash MD5 (Resumo da Mensagem 5).Gets a new CngAlgorithm object that specifies the Message Digest 5 (MD5) hash algorithm.

Rsa

Obtém um novo objeto CngAlgorithm que especifica o algoritmo de hash RSA.Gets a new CngAlgorithm object that specifies the RSA hash algorithm.

Sha1

Obtém um novo objeto CngAlgorithm que especifica o algoritmo SHA-1 (Secure Hash Algorithm 1).Gets a new CngAlgorithm object that specifies the Secure Hash Algorithm 1 (SHA-1) algorithm.

Sha256

Obtém um novo objeto CngAlgorithm que especifica o algoritmo SHA-256 (Secure Hash Algorithm 256).Gets a new CngAlgorithm object that specifies the Secure Hash Algorithm 256 (SHA-256) algorithm.

Sha384

Obtém um novo objeto CngAlgorithm que especifica o algoritmo SHA-384 (Secure Hash Algorithm 384).Gets a new CngAlgorithm object that specifies the Secure Hash Algorithm 384 (SHA-384) algorithm.

Sha512

Obtém um novo objeto CngAlgorithm que especifica o algoritmo SHA-512 (Secure Hash Algorithm 512).Gets a new CngAlgorithm object that specifies the Secure Hash Algorithm 512 (SHA-512) algorithm.

Métodos

Equals(CngAlgorithm)

Compara o objeto CngAlgorithm especificado ao objeto CngAlgorithm atual.Compares the specified CngAlgorithm object to the current CngAlgorithm object.

Equals(Object)

Compara o objeto especificado ao objeto CngAlgorithm atual.Compares the specified object to the current CngAlgorithm object.

GetHashCode()

Gera um valor de hash para o nome do algoritmo que está inserido no objeto CngAlgorithm atual.Generates a hash value for the algorithm name that is embedded in the current CngAlgorithm object.

GetType()

Obtém o Type da instância atual.Gets the Type of the current instance.

(Herdado de Object)
MemberwiseClone()

Cria uma cópia superficial do Object atual.Creates a shallow copy of the current Object.

(Herdado de Object)
ToString()

Obtém o nome do algoritmo que o objeto CngAlgorithm atual especifica.Gets the name of the algorithm that the current CngAlgorithm object specifies.

Operadores

Equality(CngAlgorithm, CngAlgorithm)

Determina se dois objetos CngAlgorithm especificam o mesmo nome de algoritmo.Determines whether two CngAlgorithm objects specify the same algorithm name.

Inequality(CngAlgorithm, CngAlgorithm)

Determina se dois objetos CngAlgorithm não especificam o mesmo algoritmo.Determines whether two CngAlgorithm objects do not specify the same algorithm.

Aplica-se a