Idioma

RSAPKCS1KeyExchangeFormatter.SetKey(AsymmetricAlgorithm) Método

Definição

Define a chave pública para encriptar os dados de troca de chaves.

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)

Parâmetros

key
AsymmetricAlgorithm

A instância do RSA algoritmo que detém a chave pública.

Exceções

key é null.

Observações

Deve definir a chave antes de ligar CreateKeyExchange.

Aplica-se a

Ver também