ECDiffieHellmanCng.DeriveSecretAgreementHandle Método

Definição

Obtém um identificador para o contrato secreto gerado entre duas partes.

Sobrecargas

Nome Description
DeriveSecretAgreementHandle(ECDiffieHellmanPublicKey)

Obtém um identificador para o contrato secreto gerado entre duas partes, dado um ECDiffieHellmanPublicKey objeto que contém a chave pública da segunda parte.

DeriveSecretAgreementHandle(CngKey)

Obtém um identificador para o contrato secreto gerado entre duas partes, dado um CngKey objeto que contém a chave pública da segunda parte.

Comentários

As DeriveSecretAgreementHandle sobrecargas do método são para usuários avançados que precisam de um identificador para o contrato de segredo bruto em vez do material de chave. O identificador do contrato secreto pode ser usado em chamadas de invocação de plataforma para executar qualquer trabalho que não seja encapsulado pela ECDiffieHellmanCng classe.

DeriveSecretAgreementHandle(ECDiffieHellmanPublicKey)

Origem:
Cng.NotSupported.cs
Origem:
Cng.NotSupported.cs
Origem:
Cng.NotSupported.cs
Origem:
Cng.NotSupported.cs
Origem:
Cng.NotSupported.cs

Obtém um identificador para o contrato secreto gerado entre duas partes, dado um ECDiffieHellmanPublicKey objeto que contém a chave pública da segunda parte.

public:
 Microsoft::Win32::SafeHandles::SafeNCryptSecretHandle ^ DeriveSecretAgreementHandle(System::Security::Cryptography::ECDiffieHellmanPublicKey ^ otherPartyPublicKey);
public Microsoft.Win32.SafeHandles.SafeNCryptSecretHandle DeriveSecretAgreementHandle(System.Security.Cryptography.ECDiffieHellmanPublicKey otherPartyPublicKey);
member this.DeriveSecretAgreementHandle : System.Security.Cryptography.ECDiffieHellmanPublicKey -> Microsoft.Win32.SafeHandles.SafeNCryptSecretHandle
Public Function DeriveSecretAgreementHandle (otherPartyPublicKey As ECDiffieHellmanPublicKey) As SafeNCryptSecretHandle

Parâmetros

otherPartyPublicKey
ECDiffieHellmanPublicKey

A chave pública da outra parte na troca de chaves.

Retornos

Um identificador para o contrato secreto. Essas informações são calculadas a partir da chave privada do objeto atual e da chave pública especificada.

Exceções

otherPartyPublicKey é null.

otherPartyPublicKey não é uma ECDiffieHellmanPublicKey chave.

Aplica-se a

DeriveSecretAgreementHandle(CngKey)

Origem:
Cng.NotSupported.cs
Origem:
Cng.NotSupported.cs
Origem:
Cng.NotSupported.cs
Origem:
Cng.NotSupported.cs
Origem:
Cng.NotSupported.cs

Obtém um identificador para o contrato secreto gerado entre duas partes, dado um CngKey objeto que contém a chave pública da segunda parte.

public:
 Microsoft::Win32::SafeHandles::SafeNCryptSecretHandle ^ DeriveSecretAgreementHandle(System::Security::Cryptography::CngKey ^ otherPartyPublicKey);
public Microsoft.Win32.SafeHandles.SafeNCryptSecretHandle DeriveSecretAgreementHandle(System.Security.Cryptography.CngKey otherPartyPublicKey);
[System.Security.SecurityCritical]
public Microsoft.Win32.SafeHandles.SafeNCryptSecretHandle DeriveSecretAgreementHandle(System.Security.Cryptography.CngKey otherPartyPublicKey);
member this.DeriveSecretAgreementHandle : System.Security.Cryptography.CngKey -> Microsoft.Win32.SafeHandles.SafeNCryptSecretHandle
[<System.Security.SecurityCritical>]
member this.DeriveSecretAgreementHandle : System.Security.Cryptography.CngKey -> Microsoft.Win32.SafeHandles.SafeNCryptSecretHandle
Public Function DeriveSecretAgreementHandle (otherPartyPublicKey As CngKey) As SafeNCryptSecretHandle

Parâmetros

otherPartyPublicKey
CngKey

Um objeto que contém a parte pública da chave ECDH (Diffie-Hellman de Curva Elíptica) da outra parte na troca de chaves.

Retornos

Um identificador para o contrato secreto. Essas informações são calculadas a partir da chave privada do objeto atual e da chave pública especificada.

Atributos

Exceções

otherPartyPublicKey é null.

otherPartyPublicKey não é uma chave ECDH ou não é o tamanho correto.

Todos os outros erros.

Aplica-se a