RSAPKCS1KeyExchangeFormatter.SetKey(AsymmetricAlgorithm) Metoda

Definice

Nastaví veřejný klíč, který se má použít k šifrování dat výměny klíčů.

public:
 override void SetKey(System::Security::Cryptography::AsymmetricAlgorithm ^ key);
public override void SetKey (System.Security.Cryptography.AsymmetricAlgorithm key);
override this.SetKey : System.Security.Cryptography.AsymmetricAlgorithm -> unit
Public Overrides Sub SetKey (key As AsymmetricAlgorithm)

Parametry

key
AsymmetricAlgorithm

Instance RSA algoritmu, který obsahuje veřejný klíč.

Výjimky

key je null.

Poznámky

Před voláním CreateKeyExchangeje nutné nastavit klíč .

Platí pro

Viz také