CspKeyContainerInfo.KeyNumber Property
Microsoft Silverlight will reach end of support after October 2021. Learn more.
Gets a value that describes whether an asymmetric key was created as a signature key or an exchange key.
Namespace: System.Security.Cryptography
Assembly: mscorlib.Extensions (in mscorlib.Extensions.dll)
Syntax
'Declaration
Public ReadOnly Property KeyNumber As KeyNumber
public KeyNumber KeyNumber { get; }
Property Value
Type: System.Security.Cryptography.KeyNumber
One of the KeyNumber values that describes whether an asymmetric key was created as a signature key or an exchange key.
Remarks
The value of the KeyNumber property is derived from the KeyNumber field of the CspParameters object that was used to initialize the CspKeyContainerInfo object.
An exchange key is an asymmetric key pair used to encrypt session keys so that they can be safely stored and exchanged with other users. The Exchange value specifies an exchange key. This value corresponds to the AT_KEYEXCHANGE value used in the unmanaged Microsoft Cryptographic API (CAPI).
A signature key is an asymmetric key pair used for authenticating (digitally signed) messages or files. The Signature value specifies a signature key. This value corresponds to the AT_SIGNATURE value used in CAPI.
Version Information
Silverlight for Windows Phone
Supported in: Windows Phone OS 7.1
Platforms
For a list of the operating systems and browsers that are supported by Silverlight, see Supported Operating Systems and Browsers.