ECDiffieHellmanOpenSsl Construtores

Definição

Sobrecargas

Name Description
ECDiffieHellmanOpenSsl()

Inicializa uma nova instância da ECDiffieHellmanOpenSsl classe com uma curva padrão de NIST P-521/secp521r1.

ECDiffieHellmanOpenSsl(Int32)

Inicializa uma nova instância da ECDiffieHellmanOpenSsl classe que por defeito é a curva prima NIST do tamanho especificado.

ECDiffieHellmanOpenSsl(IntPtr)

Inicializa uma nova instância da ECDiffieHellmanOpenSsl classe a partir de uma chave OpenSSL existente representada como um EC_KEY*.

ECDiffieHellmanOpenSsl(ECCurve)

Inicializa uma nova instância da ECDiffieHellmanOpenSsl classe e gera uma nova chave na curva especificada.

ECDiffieHellmanOpenSsl(SafeEvpPKeyHandle)

Inicializa uma nova instância da ECDiffieHellmanOpenSsl classe a partir de uma chave OpenSSL existente representada como um EVP_PKEY*.

ECDiffieHellmanOpenSsl()

Origem:
ECDiffieHellmanOpenSsl.cs
Origem:
ECDiffieHellmanOpenSsl.cs
Origem:
ECDiffieHellmanOpenSsl.cs
Origem:
ECDiffieHellmanOpenSsl.cs
Origem:
ECDiffieHellmanOpenSsl.cs

Inicializa uma nova instância da ECDiffieHellmanOpenSsl classe com uma curva padrão de NIST P-521/secp521r1.

public:
 ECDiffieHellmanOpenSsl();
[System.Runtime.Versioning.UnsupportedOSPlatform("android")]
[System.Runtime.Versioning.UnsupportedOSPlatform("browser")]
[System.Runtime.Versioning.UnsupportedOSPlatform("ios")]
[System.Runtime.Versioning.UnsupportedOSPlatform("tvos")]
[System.Runtime.Versioning.UnsupportedOSPlatform("windows")]
public ECDiffieHellmanOpenSsl();
public ECDiffieHellmanOpenSsl();
Public Sub New ()
Atributos

Observações

Este construtor não gera imediatamente um novo par de chaves público/privado, apenas define o tamanho que será usado para gerar uma chave quando for necessária. Se a chave for carregada através do ImportParameters método, ou de outro método de importação de chave, o tamanho da chave deste construtor não tem significado.

Ver também

Aplica-se a

ECDiffieHellmanOpenSsl(Int32)

Origem:
ECDiffieHellmanOpenSsl.cs
Origem:
ECDiffieHellmanOpenSsl.cs
Origem:
ECDiffieHellmanOpenSsl.cs
Origem:
ECDiffieHellmanOpenSsl.cs
Origem:
ECDiffieHellmanOpenSsl.cs

Inicializa uma nova instância da ECDiffieHellmanOpenSsl classe que por defeito é a curva prima NIST do tamanho especificado.

public:
 ECDiffieHellmanOpenSsl(int keySize);
[System.Runtime.Versioning.UnsupportedOSPlatform("android")]
[System.Runtime.Versioning.UnsupportedOSPlatform("browser")]
[System.Runtime.Versioning.UnsupportedOSPlatform("ios")]
[System.Runtime.Versioning.UnsupportedOSPlatform("tvos")]
[System.Runtime.Versioning.UnsupportedOSPlatform("windows")]
public ECDiffieHellmanOpenSsl(int keySize);
public ECDiffieHellmanOpenSsl(int keySize);
[<System.Runtime.Versioning.UnsupportedOSPlatform("android")>]
[<System.Runtime.Versioning.UnsupportedOSPlatform("browser")>]
[<System.Runtime.Versioning.UnsupportedOSPlatform("ios")>]
[<System.Runtime.Versioning.UnsupportedOSPlatform("tvos")>]
[<System.Runtime.Versioning.UnsupportedOSPlatform("windows")>]
new System.Security.Cryptography.ECDiffieHellmanOpenSsl : int -> System.Security.Cryptography.ECDiffieHellmanOpenSsl
new System.Security.Cryptography.ECDiffieHellmanOpenSsl : int -> System.Security.Cryptography.ECDiffieHellmanOpenSsl
Public Sub New (keySize As Integer)

Parâmetros

keySize
Int32

O tamanho da chave a gerar, quando uma chave é necessária.

Atributos

Exceções

O keySize valor não é suportado por esta implementação.

Observações

Apenas três tamanhos-chave são suportados por este construtor: 256 (NIST P-256/secp256r1), 384 (NIST P-384/secp384r1) e 521 (NIST P-521/secp521r1). Para gerar chaves Para qualquer outra curva, use o ECDiffieHellmanOpenSsl(ECCurve) construtor ou o GenerateKey(ECCurve) método.

Este construtor não gera imediatamente um novo par de chaves público/privado, apenas define o tamanho que será usado para gerar uma chave quando for necessária. Se a chave for carregada através do ImportParameters método, ou de outro método de importação de chave, o tamanho da chave deste construtor não tem significado.

Ver também

Aplica-se a

ECDiffieHellmanOpenSsl(IntPtr)

Origem:
ECDiffieHellmanOpenSsl.cs
Origem:
ECDiffieHellmanOpenSsl.cs
Origem:
ECDiffieHellmanOpenSsl.cs
Origem:
ECDiffieHellmanOpenSsl.cs
Origem:
ECDiffieHellmanOpenSsl.cs

Inicializa uma nova instância da ECDiffieHellmanOpenSsl classe a partir de uma chave OpenSSL existente representada como um EC_KEY*.

public:
 ECDiffieHellmanOpenSsl(IntPtr handle);
[System.Runtime.Versioning.UnsupportedOSPlatform("android")]
[System.Runtime.Versioning.UnsupportedOSPlatform("browser")]
[System.Runtime.Versioning.UnsupportedOSPlatform("ios")]
[System.Runtime.Versioning.UnsupportedOSPlatform("tvos")]
[System.Runtime.Versioning.UnsupportedOSPlatform("windows")]
public ECDiffieHellmanOpenSsl(IntPtr handle);
public ECDiffieHellmanOpenSsl(IntPtr handle);
[<System.Runtime.Versioning.UnsupportedOSPlatform("android")>]
[<System.Runtime.Versioning.UnsupportedOSPlatform("browser")>]
[<System.Runtime.Versioning.UnsupportedOSPlatform("ios")>]
[<System.Runtime.Versioning.UnsupportedOSPlatform("tvos")>]
[<System.Runtime.Versioning.UnsupportedOSPlatform("windows")>]
new System.Security.Cryptography.ECDiffieHellmanOpenSsl : nativeint -> System.Security.Cryptography.ECDiffieHellmanOpenSsl
new System.Security.Cryptography.ECDiffieHellmanOpenSsl : nativeint -> System.Security.Cryptography.ECDiffieHellmanOpenSsl
Public Sub New (handle As IntPtr)

Parâmetros

handle
IntPtr

nativeint

O valor OpenSSL EC_KEY* a usar como chave.

Atributos

Exceções

handle é Zero.

handle não é um EC_KEY*válido.

Observações

Importante

O OpenSSL suporta múltiplas versões de biblioteca carregadas no mesmo processo. Antes de chamar este construtor, verifique se o valor do seu ponteiro veio da mesma versão do OpenSSL que esta classe utiliza. Para obter mais informações, veja OpenSslVersion.

Ver também

Aplica-se a

ECDiffieHellmanOpenSsl(ECCurve)

Origem:
ECDiffieHellmanOpenSsl.cs
Origem:
ECDiffieHellmanOpenSsl.cs
Origem:
ECDiffieHellmanOpenSsl.cs
Origem:
ECDiffieHellmanOpenSsl.cs
Origem:
ECDiffieHellmanOpenSsl.cs

Inicializa uma nova instância da ECDiffieHellmanOpenSsl classe e gera uma nova chave na curva especificada.

public:
 ECDiffieHellmanOpenSsl(System::Security::Cryptography::ECCurve curve);
[System.Runtime.Versioning.UnsupportedOSPlatform("android")]
[System.Runtime.Versioning.UnsupportedOSPlatform("browser")]
[System.Runtime.Versioning.UnsupportedOSPlatform("ios")]
[System.Runtime.Versioning.UnsupportedOSPlatform("tvos")]
[System.Runtime.Versioning.UnsupportedOSPlatform("windows")]
public ECDiffieHellmanOpenSsl(System.Security.Cryptography.ECCurve curve);
public ECDiffieHellmanOpenSsl(System.Security.Cryptography.ECCurve curve);
[<System.Runtime.Versioning.UnsupportedOSPlatform("android")>]
[<System.Runtime.Versioning.UnsupportedOSPlatform("browser")>]
[<System.Runtime.Versioning.UnsupportedOSPlatform("ios")>]
[<System.Runtime.Versioning.UnsupportedOSPlatform("tvos")>]
[<System.Runtime.Versioning.UnsupportedOSPlatform("windows")>]
new System.Security.Cryptography.ECDiffieHellmanOpenSsl : System.Security.Cryptography.ECCurve -> System.Security.Cryptography.ECDiffieHellmanOpenSsl
new System.Security.Cryptography.ECDiffieHellmanOpenSsl : System.Security.Cryptography.ECCurve -> System.Security.Cryptography.ECDiffieHellmanOpenSsl
Public Sub New (curve As ECCurve)

Parâmetros

curve
ECCurve

A curva usada para gerar um par efémero de chaves pública/privada.

Atributos

Exceções

curve não valida.

Ver também

Aplica-se a

ECDiffieHellmanOpenSsl(SafeEvpPKeyHandle)

Origem:
ECDiffieHellmanOpenSsl.cs
Origem:
ECDiffieHellmanOpenSsl.cs
Origem:
ECDiffieHellmanOpenSsl.cs
Origem:
ECDiffieHellmanOpenSsl.cs
Origem:
ECDiffieHellmanOpenSsl.cs

Inicializa uma nova instância da ECDiffieHellmanOpenSsl classe a partir de uma chave OpenSSL existente representada como um EVP_PKEY*.

public:
 ECDiffieHellmanOpenSsl(System::Security::Cryptography::SafeEvpPKeyHandle ^ pkeyHandle);
[System.Runtime.Versioning.UnsupportedOSPlatform("android")]
[System.Runtime.Versioning.UnsupportedOSPlatform("browser")]
[System.Runtime.Versioning.UnsupportedOSPlatform("ios")]
[System.Runtime.Versioning.UnsupportedOSPlatform("tvos")]
[System.Runtime.Versioning.UnsupportedOSPlatform("windows")]
public ECDiffieHellmanOpenSsl(System.Security.Cryptography.SafeEvpPKeyHandle pkeyHandle);
public ECDiffieHellmanOpenSsl(System.Security.Cryptography.SafeEvpPKeyHandle pkeyHandle);
[<System.Runtime.Versioning.UnsupportedOSPlatform("android")>]
[<System.Runtime.Versioning.UnsupportedOSPlatform("browser")>]
[<System.Runtime.Versioning.UnsupportedOSPlatform("ios")>]
[<System.Runtime.Versioning.UnsupportedOSPlatform("tvos")>]
[<System.Runtime.Versioning.UnsupportedOSPlatform("windows")>]
new System.Security.Cryptography.ECDiffieHellmanOpenSsl : System.Security.Cryptography.SafeEvpPKeyHandle -> System.Security.Cryptography.ECDiffieHellmanOpenSsl
new System.Security.Cryptography.ECDiffieHellmanOpenSsl : System.Security.Cryptography.SafeEvpPKeyHandle -> System.Security.Cryptography.ECDiffieHellmanOpenSsl
Public Sub New (pkeyHandle As SafeEvpPKeyHandle)

Parâmetros

pkeyHandle
SafeEvpPKeyHandle

O valor OpenSSL EVP_PKEY* a usar como chave, representado como um SafeEvpPKeyHandle.

Atributos

Exceções

pkeyHandle representa um handle inválido.

pkeyHandle é null.

pkeyHandle não representa uma chave de curva elíptica (EC).

Observações

Importante

O OpenSSL suporta múltiplas versões de biblioteca carregadas no mesmo processo. Antes de chamar este construtor, verifique se o valor do seu ponteiro veio da mesma versão do OpenSSL que esta classe utiliza. Para obter mais informações, veja OpenSslVersion.

Ver também

Aplica-se a