ECDsaCng Construtores
Definição
Sobrecargas
| ECDsaCng() |
Inicializa uma nova instância da classe ECDsaCng com um par de chaves aleatório.Initializes a new instance of the ECDsaCng class with a random key pair. |
| ECDsaCng(Int32) |
Inicializa uma nova instância da classe ECDsaCng com um tamanho de chave de destino especificado.Initializes a new instance of the ECDsaCng class with a specified target key size. |
| ECDsaCng(CngKey) |
Inicializa uma nova instância da classe ECDsaCng usando o objeto CngKey especificado.Initializes a new instance of the ECDsaCng class by using the specified CngKey object. |
| ECDsaCng(ECCurve) |
Inicializa uma nova instância da classe ECDsaCng cujo par de chaves pública/privada é gerado ao longo da curva especificada.Initializes a new instance of the ECDsaCng class whose public/private key pair is generated over the specified curve. |
ECDsaCng()
public:
ECDsaCng();
public ECDsaCng ();
Public Sub New ()
Exceções
Classes CNG (Cryptography Next Generation) não são compatíveis com este sistema.Cryptography Next Generation (CNG) classes are not supported on this system.
Comentários
Esse construtor não gera um novo par de chaves pública/privada imediatamente.This constructor does not generate a new public/private keypair immediately. Esse construtor define a KeySize propriedade como 521 e quando uma chave é necessária, o tamanho salvo é usado para identificar a curva de destino.This constructor sets the KeySize property to 521 and when a key is needed the saved size is used to identify the target curve. Se uma chave for carregada por meio do ImportParameters método ou de outro método de importação de chave, o tamanho da chave desse construtor não terá significado.If a key is loaded via the ImportParameters method, or other key import method, the key size from this constructor has no meaning.
Confira também
Aplica-se a
ECDsaCng(Int32)
public:
ECDsaCng(int keySize);
public ECDsaCng (int keySize);
[System.Security.SecurityCritical]
public ECDsaCng (int keySize);
new System.Security.Cryptography.ECDsaCng : int -> System.Security.Cryptography.ECDsaCng
[<System.Security.SecurityCritical>]
new System.Security.Cryptography.ECDsaCng : int -> System.Security.Cryptography.ECDsaCng
Public Sub New (keySize As Integer)
Parâmetros
- keySize
- Int32
O tamanho da chave.The size of the key. Os tamanhos de chave válidos são 256, 384 e 521 bits.Valid key sizes are 256, 384, and 521 bits.
- Atributos
Exceções
Classes CNG (Cryptography Next Generation) não são compatíveis com este sistema.Cryptography Next Generation (CNG) classes are not supported on this system.
keySize especifica um tamanho inválido.keySize specifies an invalid length.
Comentários
Esse construtor não gera um novo par de chaves pública/privada imediatamente.This constructor does not generate a new public/private keypair immediately. Esse construtor define a KeySize propriedade para o valor fornecido e quando uma chave é necessária, o tamanho salvo é usado para identificar a curva de destino.This constructor sets the KeySize property to the provided value and when a key is needed the saved size is used to identify the target curve. Se uma chave for carregada por meio do ImportParameters método ou de outro método de importação de chave, o tamanho da chave desse construtor não terá significado.If a key is loaded via the ImportParameters method, or other key import method, the key size from this constructor has no meaning.
Confira também
Aplica-se a
ECDsaCng(CngKey)
public:
ECDsaCng(System::Security::Cryptography::CngKey ^ key);
public ECDsaCng (System.Security.Cryptography.CngKey key);
[System.Security.SecurityCritical]
public ECDsaCng (System.Security.Cryptography.CngKey key);
new System.Security.Cryptography.ECDsaCng : System.Security.Cryptography.CngKey -> System.Security.Cryptography.ECDsaCng
[<System.Security.SecurityCritical>]
new System.Security.Cryptography.ECDsaCng : System.Security.Cryptography.CngKey -> System.Security.Cryptography.ECDsaCng
Public Sub New (key As CngKey)
Parâmetros
- key
- CngKey
A chave que será usada como entrada para as operações criptográficas executadas pelo objeto atual.The key that will be used as input to the cryptographic operations performed by the current object.
- Atributos
Exceções
key não especifica um grupo de ECDSA (Algoritmo de Assinatura Digital Curva Elíptica).key does not specify an Elliptic Curve Digital Signature Algorithm (ECDSA) group.
key é null.key is null.
Classes CNG (Cryptography Next Generation) não são compatíveis com este sistema.Cryptography Next Generation (CNG) classes are not supported on this system.
Aplica-se a
ECDsaCng(ECCurve)
public:
ECDsaCng(System::Security::Cryptography::ECCurve curve);
public ECDsaCng (System.Security.Cryptography.ECCurve curve);
new System.Security.Cryptography.ECDsaCng : System.Security.Cryptography.ECCurve -> System.Security.Cryptography.ECDsaCng
Public Sub New (curve As ECCurve)
Parâmetros
- curve
- ECCurve
A curva usada para gerar o par de chaves pública/privada.The curve used to generate the public/private key pair.
Exceções
curve não é validado.curve does not validate.
curve é null.curve is null.
se curve não contiver um OID com um FriendlyName.if curve does not contain an Oid with a FriendlyName.
Comentários
curve deve validar (ou seja, deve retornar true ) quando passado para o ECCurve.Validate método e deve ser uma primo nomeada ou explícita.curve must validate (that is, it must return true) when passed to the ECCurve.Validate method and must be either a named or explicit prime.