The topic you requested is included in another documentation set. For convenience, it's displayed below. Choose Switch to see the topic in its original location.
KeyNumber Enumeration
.NET Framework (current version)
Specifies whether to create an asymmetric signature key or an asymmetric exchange key.
Assembly: mscorlib (in mscorlib.dll)
| Member name | Description | |
|---|---|---|
| Exchange | An exchange key pair used to encrypt session keys so that they can be safely stored and exchanged with other users. | |
| Signature | A signature key pair used for authenticating digitally signed messages or files. |
The following code example demonstrates how to use the KeyNumber enumeration to specify a key type for an RSACryptoServiceProvider object.
// Create a new CspParameters object. CspParameters cspParams = new CspParameters(); // Specify an exchange key. cspParams.KeyNumber = (int) KeyNumber.Exchange; // Initialize the RSACryptoServiceProvider // with the CspParameters object. RSACryptoServiceProvider RSACSP = new RSACryptoServiceProvider(cspParams);
.NET Framework
Available since 2.0
Windows Phone Silverlight
Available since 7.1
Available since 2.0
Windows Phone Silverlight
Available since 7.1
Show: