ECDiffieHellmanCng Construtores
Definição
Importante
Algumas informações dizem respeito a um produto pré-lançado que pode ser substancialmente modificado antes de ser lançado. A Microsoft não faz garantias, de forma expressa ou implícita, em relação à informação aqui apresentada.
Inicializa uma nova instância da ECDiffieHellmanCng classe.
Sobrecargas
| Name | Description |
|---|---|
| ECDiffieHellmanCng() |
Inicializa uma nova instância da ECDiffieHellmanCng classe com um par de chaves aleatórias. |
| ECDiffieHellmanCng(Int32) |
Inicializa uma nova instância da ECDiffieHellmanCng classe com um par de chaves aleatórias, usando o tamanho da chave especificado. |
| ECDiffieHellmanCng(CngKey) |
Inicializa uma nova instância da ECDiffieHellmanCng classe usando o objeto especificado CngKey . |
| ECDiffieHellmanCng(ECCurve) |
Cria uma nova instância da ECDiffieHellmanCng classe cujo par de chaves pública/privada é gerado ao longo da curva especificada. |
ECDiffieHellmanCng()
- Origem:
- Cng.NotSupported.cs
- Origem:
- Cng.NotSupported.cs
- Origem:
- Cng.NotSupported.cs
- Origem:
- Cng.NotSupported.cs
- Origem:
- Cng.NotSupported.cs
Inicializa uma nova instância da ECDiffieHellmanCng classe com um par de chaves aleatórias.
public:
ECDiffieHellmanCng();
[System.Runtime.Versioning.SupportedOSPlatform("windows")]
public ECDiffieHellmanCng();
public ECDiffieHellmanCng();
Public Sub New ()
- Atributos
Observações
O par de chaves aleatórias tem um comprimento padrão de chave pública de 521 bits.
Aplica-se a
ECDiffieHellmanCng(Int32)
- Origem:
- Cng.NotSupported.cs
- Origem:
- Cng.NotSupported.cs
- Origem:
- Cng.NotSupported.cs
- Origem:
- Cng.NotSupported.cs
- Origem:
- Cng.NotSupported.cs
Inicializa uma nova instância da ECDiffieHellmanCng classe com um par de chaves aleatórias, usando o tamanho da chave especificado.
public:
ECDiffieHellmanCng(int keySize);
[System.Runtime.Versioning.SupportedOSPlatform("windows")]
public ECDiffieHellmanCng(int keySize);
public ECDiffieHellmanCng(int keySize);
[System.Security.SecurityCritical]
public ECDiffieHellmanCng(int keySize);
[<System.Runtime.Versioning.SupportedOSPlatform("windows")>]
new System.Security.Cryptography.ECDiffieHellmanCng : int -> System.Security.Cryptography.ECDiffieHellmanCng
new System.Security.Cryptography.ECDiffieHellmanCng : int -> System.Security.Cryptography.ECDiffieHellmanCng
[<System.Security.SecurityCritical>]
new System.Security.Cryptography.ECDiffieHellmanCng : int -> System.Security.Cryptography.ECDiffieHellmanCng
Public Sub New (keySize As Integer)
Parâmetros
- keySize
- Int32
O tamanho da chave. Os tamanhos de chave válidos são 256, 384 e 521 bits.
- Atributos
Exceções
keySize especifica um comprimento inválido.
As classes de Criptografia de Nova Geração (CNG) não são suportadas neste sistema.
Observações
O par de chaves aleatórias terá o comprimento da chave pública definido pelo keySize parâmetro.
Aplica-se a
ECDiffieHellmanCng(CngKey)
- Origem:
- Cng.NotSupported.cs
- Origem:
- Cng.NotSupported.cs
- Origem:
- Cng.NotSupported.cs
- Origem:
- Cng.NotSupported.cs
- Origem:
- Cng.NotSupported.cs
Inicializa uma nova instância da ECDiffieHellmanCng classe usando o objeto especificado CngKey .
public:
ECDiffieHellmanCng(System::Security::Cryptography::CngKey ^ key);
[System.Runtime.Versioning.SupportedOSPlatform("windows")]
public ECDiffieHellmanCng(System.Security.Cryptography.CngKey key);
public ECDiffieHellmanCng(System.Security.Cryptography.CngKey key);
[System.Security.SecurityCritical]
public ECDiffieHellmanCng(System.Security.Cryptography.CngKey key);
[<System.Runtime.Versioning.SupportedOSPlatform("windows")>]
new System.Security.Cryptography.ECDiffieHellmanCng : System.Security.Cryptography.CngKey -> System.Security.Cryptography.ECDiffieHellmanCng
new System.Security.Cryptography.ECDiffieHellmanCng : System.Security.Cryptography.CngKey -> System.Security.Cryptography.ECDiffieHellmanCng
[<System.Security.SecurityCritical>]
new System.Security.Cryptography.ECDiffieHellmanCng : System.Security.Cryptography.CngKey -> System.Security.Cryptography.ECDiffieHellmanCng
Public Sub New (key As CngKey)
Parâmetros
- key
- CngKey
A chave que será usada como entrada para as operações criptográficas realizadas pelo objeto atual.
- Atributos
Exceções
key é null.
key não especifica um grupo de algoritmos de Diffie-Hellman Curva Elíptica (ECDH).
As classes de Criptografia de Nova Geração (CNG) não são suportadas neste sistema.
Aplica-se a
ECDiffieHellmanCng(ECCurve)
- Origem:
- Cng.NotSupported.cs
- Origem:
- Cng.NotSupported.cs
- Origem:
- Cng.NotSupported.cs
- Origem:
- Cng.NotSupported.cs
- Origem:
- Cng.NotSupported.cs
Cria uma nova instância da ECDiffieHellmanCng classe cujo par de chaves pública/privada é gerado ao longo da curva especificada.
public:
ECDiffieHellmanCng(System::Security::Cryptography::ECCurve curve);
[System.Runtime.Versioning.SupportedOSPlatform("windows")]
public ECDiffieHellmanCng(System.Security.Cryptography.ECCurve curve);
public ECDiffieHellmanCng(System.Security.Cryptography.ECCurve curve);
[<System.Runtime.Versioning.SupportedOSPlatform("windows")>]
new System.Security.Cryptography.ECDiffieHellmanCng : System.Security.Cryptography.ECCurve -> System.Security.Cryptography.ECDiffieHellmanCng
new System.Security.Cryptography.ECDiffieHellmanCng : System.Security.Cryptography.ECCurve -> System.Security.Cryptography.ECDiffieHellmanCng
Public Sub New (curve As ECCurve)
Parâmetros
- curve
- ECCurve
A curva usada para gerar o par de chaves pública/privada.
- Atributos
Exceções
curve não valida.
Observações
curve deve validar (ou seja, deve devolver true) quando passado para o ECCurve.Validate método e deve ser um primo nomeado ou explícito.