System.Security.Cryptography.CngKey
Defines the core functionality for keys that are used with Cryptography Next Generation (CNG) objects.
Gets the algorithm that is used by the key.
Gets the algorithm group that is used by the key.
Gets the export policy that is used by the key.
Gets a safe handle that represents a native key (NCRYPT_KEY_HANDLE).
Gets the persistence state of the key.
Gets the scope (machine or user) of the key.
Gets the name of the key.
Gets the key size in bits.
Gets the cryptographic operations specified by the key.
Gets or sets the window handle (HWND) that should be used for user interface (UI) prompts caused by accessing the key.
Gets the key storage provider (KSP) that manages the key.
Gets a native handle (an NCRYPT_PROV_HANDLE) to the key storage provider (KSP).
Gets parameters that control the user interface (UI) for accessing the key.
Gets the unique name for the key.
Creates a CngKey object that can be used with the specified algorithm.
Creates a named CngKey object that provides the specified algorithm.
public static CngKey Create(CngAlgorithm algorithm, string keyName, CngKeyCreationParameters creationParameters)
Creates a named CngKey object that provides the specified algorithm, using the supplied key creation parameters.
Checks to see whether a named key exists in the default key storage provider (KSP).
Checks to see whether a named key exists in the specified key storage provider (KSP).
Checks to see whether a named key exists in the specified key storage provider (KSP), according to the specified options.
Creates a new key by importing the specified key material into the default key storage provider (KSP) and using the specified format.
Creates a new key by importing the specified key material into the specified key storage provider (KSP), using the specified format.
public static CngKey Open(SafeNCryptKeyHandle keyHandle, CngKeyHandleOpenOptions keyHandleOpenOptions)
Creates an instance of an CngKey object by using a handle to an existing key.
Creates an instance of an CngKey object that represents an existing named key.
Creates an instance of an CngKey object that represents an existing named key, using the specified key storage provider (KSP).
Creates an instance of an CngKey object that represents an existing named key, using the specified key storage provider (KSP) and key open options.
Removes the key that is associated with the object.
Releases all resources used by the current instance of the CngKey class.
Exports the key material into a BLOB, in the specified format.
Gets a property, given a name and a set of property options.
Checks to see whether the specified property exists on the key.
Sets a named property on the key.