ECDiffieHellmanCng.DeriveKeyTls Metoda

Definicja

Wykonuje wyprowadzanie klucza przy użyciu protokołu TLS (Transport Layer Security) 1.1 PRF (pseudo-losowa funkcja).

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()

Parametry

otherPartyPublicKey
ECDiffieHellmanPublicKey

Klucz publiczny innej strony.

prfLabel
Byte[]

Etykieta PRF zakodowana w formacie ASCII.

prfSeed
Byte[]

64-bajtowy nasion PRF.

Zwraca

Byte[]

Pierwsze 48 bajtów z protokołu TLS 1.1 PRF przy użyciu udostępnionego wpisu tajnego jako klucza.

Wyjątki

Klasa pochodna musi zastąpić tę metodę.

Krzywa używana przez element otherPartyPublicKey ma inny rozmiar niż krzywa z tego klucza.

otherPartyPublicKey, prfLabel lub prfSeed to null.

prfSeed nie ma dokładnie 64 bajtów długości.

-lub-

Krzywa używana przez otherPartyPublicKey element różni się od krzywej z tego klucza.

-lub-

To wystąpienie reprezentuje tylko klucz publiczny.

Dotyczy