ECDiffieHellman.DeriveKeyMaterial(ECDiffieHellmanPublicKey) Método

Definição

Quando implementado numa classe derivada, realiza uma derivação de chave sobre o segredo partilhado.

public:
 abstract cli::array <System::Byte> ^ DeriveKeyMaterial(System::Security::Cryptography::ECDiffieHellmanPublicKey ^ otherPartyPublicKey);
public:
 virtual cli::array <System::Byte> ^ DeriveKeyMaterial(System::Security::Cryptography::ECDiffieHellmanPublicKey ^ otherPartyPublicKey);
public abstract byte[] DeriveKeyMaterial(System.Security.Cryptography.ECDiffieHellmanPublicKey otherPartyPublicKey);
public virtual byte[] DeriveKeyMaterial(System.Security.Cryptography.ECDiffieHellmanPublicKey otherPartyPublicKey);
abstract member DeriveKeyMaterial : System.Security.Cryptography.ECDiffieHellmanPublicKey -> byte[]
abstract member DeriveKeyMaterial : System.Security.Cryptography.ECDiffieHellmanPublicKey -> byte[]
override this.DeriveKeyMaterial : System.Security.Cryptography.ECDiffieHellmanPublicKey -> byte[]
Public MustOverride Function DeriveKeyMaterial (otherPartyPublicKey As ECDiffieHellmanPublicKey) As Byte()
Public Overridable Function DeriveKeyMaterial (otherPartyPublicKey As ECDiffieHellmanPublicKey) As Byte()

Parâmetros

otherPartyPublicKey
ECDiffieHellmanPublicKey

A chave pública da outra parte.

Devoluções

Byte[]

O resultado da função de derivação de chaves, usando o segredo partilhado como entrada.

Exceções

A curva usada por otherPartyPublicKey tem um tamanho diferente da curva desta chave.

otherPartyPublicKey é null.

A curva usada por otherPartyPublicKey é diferente da curva desta chave.

-ou-

Esta instância representa apenas uma chave pública.

Observações

O comportamento padrão deste método é equivalente a chamar DeriveKeyFromHash SHA-256 como o algoritmo de hash sem valores de prependência ou anexação. Algumas implementações permitem alterar o comportamento deste método, e os chamadores são aconselhados a chamar o método que explicitamente indique que realiza a derivação da chave de que necessitam.

Aplica-se a