Important:
This is retired content. This content is outdated and is no longer being maintained. It is provided as a courtesy for individuals who are still using these technologies. This content may contain URLs that were valid when originally published, but now link to sites or pages that no longer exist.
A version of this page is also available for
4/8/2010

One machine default cryptographic service provider (CSP) can be specified for each CSP type. This entry is used when an application calls the CryptAcquireContextfunction with only a CSP type specified, and no user default CSP registry entry exists.

The typical CSP setup application installs its CSP as the machine default. The following registry entry sets the machine default CSP.

Copy Code
[HKEY_LOCAL_MACHINE\Comm\Security\Crypto\Defaults\ Provider
Types\Type 
CSP type]
	Name = REG_SZ:
CSP name

The CSP typeportion of the key name must be in decimal format and exactly three digits in length. For example, if the CSP were of type 25, the key name would be Type 025.

The CSP nameentry must be set to the textual name of the CSP. This must exactly match the CSP nameregistry key discussed in Registering the CSP.

The following example shows how to set the CSP name.

Copy Code
[HKEY_LOCAL_MACHINE\Comm\Security\Crypto\Defaults\Provider
Types\Type 042]
	Name = REG_SZ:XYZ Provider

See Also