CspKeyContainerInfo.KeyNumber Property
[ This article is for Windows Phone 8 developers. If you’re developing for Windows 10, see the latest documentation. ]
Gets a value that describes whether an asymmetric key was created as a signature key or an exchange key.
Assembly: mscorlib (in mscorlib.dll)
Property Value
Type: System.Security.Cryptography.KeyNumberOne of the KeyNumber values that describes whether an asymmetric key was created as a signature key or an exchange key.
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.