ECDiffieHellman.DeriveKeyMaterial(ECDiffieHellmanPublicKey) Metoda

Definice

Při implementaci v odvozené třídě provede odvození klíče pro sdílený tajný klíč.

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

Parametry

otherPartyPublicKey
ECDiffieHellmanPublicKey

Veřejný klíč druhé strany.

Návraty

Byte[]

Výsledek funkce odvození klíče s použitím sdíleného tajného klíče jako vstupu.

Výjimky

Křivka používaná nástrojem otherPartyPublicKey má jinou velikost než křivka z tohoto klíče.

otherPartyPublicKey je null.

Křivka používaná nástrojem otherPartyPublicKey se liší od křivky z tohoto klíče.

-nebo-

Tato instance představuje pouze veřejný klíč.

Poznámky

Výchozí chování této metody je ekvivalentní volání DeriveKeyFromHash určení SHA-256 jako hash algoritmu bez předpřidání nebo připojení hodnoty. Některé implementace umožňují změnit chování této metody a volajícím se doporučuje volat jakoukoli metodu explicitně říká, že provádí odvozování klíče, které potřebují.

Platí pro