Click to Rate and Give Feedback
MSDN
MSDN Library
Security
Cryptography
About Cryptography
Writing a CSP
 Registering the CSP
Registering the CSP

The following registry entries register the cryptographic service provider (CSP) with the operating system.

HKEY_LOCAL_MACHINE
    SOFTWARE
        Microsoft
            Cryptography
                Defaults
                    Provider
                        CSP name
                            Type = CSP type
                            SigInFile = 0 or 1
                            Signature = binary signature
                            Image Path = CSP DLL name

The CSP name key is the name of the CSP.

The Type value is a REG_DWORD that contains the numeric type identifier of the CSP. This value is one of the PROV_* values defined in Wincrypt.h.

The SigInFile value is a REG_DWORD value that contains a Boolean value that indicates whether the digital signature for the CSP is contained in a file or in the registry. If this value contains zero, the signature is contained in the registry in the Signature value. If the SigInFile value is not zero, then the signature is contained in the provider module specified by the Image Path value.

The Signature value is a binary BLOB that contains the digital signature for the CSP. This value is only used if the SigInFile value is zero.

The Image Path value is a REG_SZ value that contains the name of the CSP module. For security reasons, the name must be specified using a fully qualified path, such as "C:\Myx\Rsabase.dll". If a relative path is specified, Windows may fail to load the CSP in some situations.

If SigInFile is not zero, this file contains the digital signature as a Windows resource. For more information about containing the signature in a Windows resource, see Test Signing the CSP.

Send comments about this topic to Microsoft

Build date: 11/16/2009

Tags What's this?: Add a tag
Community Content   What is Community Content?
Add new content RSS  Annotations
Processing
© 2009 Microsoft Corporation. All rights reserved. Terms of Use | Trademarks | Privacy Statement
Page view tracker