System.Security.Cryptography.CspKeyContainerInfo.KeyNumber Property

Gets a value that describes whether an asymmetric key was created as a signature key or an exchange key.

Syntax

public KeyNumber KeyNumber { get; }

Value

Documentation for this section has not yet been entered.

Remarks

The value of the CspKeyContainerInfo.KeyNumber property is derived from the CspParameters.KeyNumber field of the System.Security.Cryptography.CspParameters object that was used to initialize the System.Security.Cryptography.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 KeyNumber.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 KeyNumber.Signature value specifies a signature key. This value corresponds to the AT_SIGNATURE value used in CAPI.

Requirements

Namespace: System.Security.Cryptography
Assembly: mscorlib (in mscorlib.dll)
Assembly Versions: 2.0.0.0, 4.0.0.0
Since: .NET 2.0