ECDiffieHellmanCng.DeriveKeyTls(ECDiffieHellmanPublicKey, Byte[], Byte[]) Método

Definición

Realiza la derivación de claves mediante TLS (Seguridad de la capa de transporte) 1.1 PRF (Función pseudoaleatoria).Performs key derivation using the TLS (Transport Layer Security) 1.1 PRF (Pseudo-Random Function).

public:
 override cli::array <System::Byte> ^ DeriveKeyTls(System::Security::Cryptography::ECDiffieHellmanPublicKey ^ otherPartyPublicKey, cli::array <System::Byte> ^ prfLabel, cli::array <System::Byte> ^ prfSeed);
public override byte[] DeriveKeyTls (System.Security.Cryptography.ECDiffieHellmanPublicKey otherPartyPublicKey, byte[] prfLabel, byte[] prfSeed);
override this.DeriveKeyTls : System.Security.Cryptography.ECDiffieHellmanPublicKey * byte[] * byte[] -> byte[]
Public Overrides Function DeriveKeyTls (otherPartyPublicKey As ECDiffieHellmanPublicKey, prfLabel As Byte(), prfSeed As Byte()) As Byte()

Parámetros

otherPartyPublicKey
ECDiffieHellmanPublicKey

Clave pública de la otra parte.The other party's public key.

prfLabel
Byte[]

Etiqueta PRF con codificación ASCII.The ASCII-encoded PRF label.

prfSeed
Byte[]

Valor de inicialización de PRF de 64 bytes.The 64-byte PRF seed.

Devoluciones

Byte[]

Los primeros 48 bytes de TLS 1.1 PRF con el secreto compartido como clave.The first 48 bytes from the TLS 1.1 PRF, using the shared secret as the key.

Excepciones

Una clase derivada debe reemplazar este método.A derived class must override this method.

La curva que usa otherPartyPublicKey tiene un tamaño diferente que la curva de esta clave.The curve used by otherPartyPublicKey has a different size than the curve from this key.

otherPartyPublicKey, prfLabel o prfSeed es null.otherPartyPublicKey, prfLabel or prfSeed is null.

prfSeed no es exactamente 64 bytes de longitud.prfSeed is not exactly 64 bytes in length.

o bien-or-

La curva que usa otherPartyPublicKey es diferente de la curva de esta clave.The curve used by otherPartyPublicKey is different than the curve from this key.

o bien-or-

Esta instancia representa solo una clave pública.This instance represents only a public key.

Se aplica a