Język

ECDiffieHellmanOpenSsl.DeriveKeyMaterial(ECDiffieHellmanPublicKey) Metoda

Definicja

Wykonuje wyprowadzanie klucza w udostępnionym kluczu tajnym.

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

Parametry

otherPartyPublicKey
ECDiffieHellmanPublicKey

Klucz publiczny drugiej strony.

Zwraca

Byte[]

Skrót SHA-256 wspólnego wpisu tajnego.

Wyjątki

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

Parametr otherPartyPublicKey ma wartość null.

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

— lub —

To wystąpienie reprezentuje tylko klucz publiczny.

Dotyczy