Export (0) Print
Expand All

RSAOAEPKeyExchangeFormatter.SetKey Method

Sets the public key to use for encrypting the key exchange data.

[Visual Basic]
Overrides Public Sub SetKey( _
   ByVal key As AsymmetricAlgorithm _
)
[C#]
public override void SetKey(
 AsymmetricAlgorithm key
);
[C++]
public: void SetKey(
 AsymmetricAlgorithm* key
);
[JScript]
public override function SetKey(
   key : AsymmetricAlgorithm
);

Parameters

key
The instance of the RSA algorithm that holds the public key.

Remarks

You must set the key before calling CreateKeyExchange.

Requirements

Platforms: Windows 98, Windows NT 4.0, Windows Millennium Edition, Windows 2000, Windows XP Home Edition, Windows XP Professional, Windows Server 2003 family

See Also

RSAOAEPKeyExchangeFormatter Class | RSAOAEPKeyExchangeFormatter Members | System.Security.Cryptography Namespace | Cryptographic Services

Show:
© 2014 Microsoft