cspdk

所属分类:Windows编程
开发工具:Visual C++
文件大小:1354KB
下载次数:114
上传日期:2009-09-23 15:17:19
上 传 者元还远
说明:  微软CSP开发工具,学习CSP开发的好工具
(CSP Microsoft development tools, learning a good tool for CSP development)

文件列表:
cspdk (0, 2009-09-17)
cspdk\csp (0, 2009-09-17)
cspdk\csp\autoreg.cpp (22780, 2001-06-05)
cspdk\csp\csp.c (19077, 2001-06-05)
cspdk\csp\csp.def (560, 2001-06-05)
cspdk\csp\csp.rc (1686, 2001-06-05)
cspdk\csp\csp.sig (144, 1999-06-08)
cspdk\csp\resource.h (406, 2001-06-05)
cspdk\csp.dll (24576, 2001-06-05)
cspdk\csp.sig (136, 2001-06-11)
cspdk\cspinstl (0, 2009-09-17)
cspdk\cspinstl\cspinstl.c (4816, 1996-09-12)
cspdk\cspinstl.exe (16384, 2001-06-05)
cspdk\cspSign.exe (18944, 2001-06-11)
cspdk\docs (0, 2009-09-17)
cspdk\docs\scardcsp.doc (74240, 2000-03-30)
cspdk\NT4 (0, 2009-09-17)
cspdk\NT4\sp3 (0, 2009-09-17)
cspdk\NT4\sp3\advapi32.dl_ (132604, 2001-01-31)
cspdk\NT4\sp4 (0, 2009-09-17)
cspdk\NT4\sp4\advapi32.dl_ (130543, 2001-01-31)
cspdk\NT4\sp6 (0, 2009-09-17)
cspdk\NT4\sp6\advapi32.dl_ (130937, 2001-01-31)
cspdk\sdkinc (0, 2009-09-17)
cspdk\sdkinc\cspdk.h (20370, 2001-03-21)
cspdk\sdkinc\wincrypt.h (648695, 2001-05-25)
cspdk\testcsp (0, 2009-09-17)
cspdk\testcsp\testcsp.c (11869, 1996-09-12)
cspdk\testcsp.exe (16384, 2001-06-05)
cspdk\win2k (0, 2009-09-17)
cspdk\win2k\advapi32.dl_ (223369, 1999-12-02)
cspdk\win2k\sp1 (0, 2009-09-17)
cspdk\win2k\sp1\advapi32.dl_ (222257, 2000-07-21)
cspdk\win2k\sp2 (0, 2009-09-17)
cspdk\win2k\sp2\advapi32.dl_ (224343, 2001-05-04)
cspdk\win98 (0, 2009-09-17)
cspdk\win98\advapi32.dl_ (21292, 2001-01-31)
cspdk\wince (0, 2009-09-17)
cspdk\wince\coredll.dl_ (183756, 2001-01-31)
... ...

======================================================================================= Microsoft Cryptographic Service Provider Development Kit ======================================================================================= (c) Copyright Microsoft Corporation, 1999 - 2001 This document provides installation instructions for the Microsoft Cryptographic Service Provider Developement Kit (CSPDK). ====================== 1.0 Package Contents ====================== This CSPDK contains: README.TXT - This file. CSPSIGN.EXE - Program to test sign your CSP. CSP.DLL - Sample CSP. CSP.SIG - Resource based signature for CSP.DLL. TESTCSP.EXE - Sample application to test the sample CSP. CSPINSTL.EXE - Sample application to install the sample CSP. \WIN*** ADVAPI32.DL_ - Modified ADVAPI32.DLL for use on Windows ***. \WINME ADVAPI32.DL_ - Modified ADVAPI32.DLL for use on Windows Millennium. \NT4\SP3 ADVAPI32.DL_ - Modified ADVAPI32.DLL for use on Windows NT 4.0 with SP3. \NT4\SP4 ADVAPI32.DL_ - Modified ADVAPI32.DLL for use on Windows NT 4.0 with SP4. \NT4\SP6 ADVAPI32.DL_ - Modified ADVAPI32.DLL for use on Windows NT 4.0 with SP6. \WIN2K ADVAPI32.DL_ - Modified ADVAPI32.DLL for use on Windows 2000. \WIN2K\SP1 ADVAPI32.DL_ - Modified ADVAPI32.DLL for use on Windows 2000 with SP1. \WIN2K\SP2 ADVAPI32.DL_ - Modified ADVAPI32.DLL for use on Windows 2000 with SP2. \CSP CSP.C - Source for the sample CSP. AUTOREG.CPP - Code to self-register this CSP. CSP.DEF CSP.RC CSP.SIG RESOURCE.H \TESTCSP TESTCSP.C - Source for the sample application to test the sample CSP. \CSPINSTL CSPINSTL.C - Source for the sample application to install the sample CSP. Using self-registration is preferred, but this is included for backwards compatibility. \WINCE COREDLL.DL_ - Modified COREDLL.DLL for use on Windows CE. \WINCE\CSP CSP.CPP - Source for the sample CSP. CSP.DEF MAKEFILE SOURCES \TESTCSP TESTCSP.CPP - Source for the sample application to test the sample CSP. MAKEFILE SOURCES \CSPINSTL CSPINSTL.CPP - Source for the sample application to install the sample CSP. MAKEFILE SOURCES \DOCS SCARDCSP.DOC - Supplimentary documentation for building a Smart Card based CSP to work with Windows 2000 logon. \SDKINC WINCRYPT.H - Some older SDK's may not have the CSPDK.H file. Use CSPDK.H these header files only if your SDK does not contain the CSPDK.H file. ==================================== 2.0 CSP Signatures on Windows 2000 ==================================== In Windows 2000 the signatures for CSPs can be stored as a resource in the CSP DLL. This eliminates the possibility that the signature in the registry will get out of sync with the CSP DLL. Storing the signature in the registry is still supported. A new version of the signing tool (cspsign.exe) is included on the disk. To store the signature in the CSP DLL, you must create a resource in the CSP DLL. The resource number must be set to 0x29A and a size of 144 bytes. Use cspsign.exe with the 'c' option to sign the DLL. If the CSP DLL must also work on Windows *** or Windows NT 4.0, you may also supply an output signature file with the 'c' option. This results in your CSP being signed for all possible platforms. =============================== 3.0 Installation Instructions =============================== To install the ADVAPI32.DLL on your Windows ***, Windows NT 4.0 or Windows 2000 computer: 1. Go to the %systemroot%\system32 folder (windows\system for Windows ***). 2. Rename the current advapi.dll to advapi32.bak 3. Expand the appropriate ADVAPI32.DLL for your test platform to the %systemroot%\system32 folder (windows\system for Windows ***). 4. Copy the cspsign.exe to the %systemroot%\system32 folder (windows\system for Windows ***). 5. Reboot. Note that on Windows 2000, it may be necessary to do this from DOS or a second copy of the operating system, in order to bypass the System File Protection service. To try the sample CSP and applications: 1. Copy CSP.DLL, CSPINSTL.EXE and TESTCSP.EXE to the %systemroot%\system32 folder (windows\system for Windows ***). 2. Sign the sample CSP by running the following command line: cspSign s csp.dll csp.sig (Windows *** and Windows NT 4.0 registry based signature) cspSign c csp.dll (Windows 2000 for DLL resource based signature) cspSign c csp.dll csp.sig (Both) 3. Install the sample CSP by running the command, "regsvr32 csp.dll". Alternatively, the old CSPINSTL.EXE program may also be used. 4. Run the sample application by running TESTCSP.EXE To install the COREDLL.DLL (create a new image with the COREDLL.DLL in the CSPDK) on your Windows CE computer: 1. Go to the %_FLATRELEASEDIR% folder. 2. Rename coredll.dll to coredll.bak 3. Copy and expand both coredll.dll and cspsign.exe from the CSPDK disk to the %_FLATRELEASEDIR% folder. 4. Run makeimg To try the sample CSP and applications: 1. Copy CSP.DLL, CSPINSTL.EXE and TESTCSP.EXE to the %_FLATRELEASEDIR% folder. 2. Sign the sample CSP by running the following command line: cspSign s csp.dll csp.sig 3. Install the sample CSP by running CSPINSTL.EXE 4. Run the sample application by running TESTCSP.EXE Note: To set the name of the CSP, its provider type and filename, edit inc\csp.h. ================================ 4.0 Adding a CSP to Windows CE ================================ In order to install a Cryptographic Service Provider to Windows CE, certain entries must be added to the registry. These registry changes can be made in the platform.reg file when the CSP is pre-installed in the firmware of a CE device. If the CSP is being installed on an existing CE device, an installation program may be needed to make these changes. The example registry entries below show the changes needed to add a type 2 (PROV_RSA_SIG) CSP named "XYZ Crypto Service Provider" implemented in xyzcsp.dll. The "Signature" is a binary entry containing the output of the signing tool. [HKEY_LOCAL_MACHINE\Comm\Security\Crypto\Defaults\Provider\XYZ Crypto Service Provider] "Image Path"="\\Windows\\xyzcsp.dll" "Type"=dword:00000002 ; ******** Different signature for each processor ******************* IF _TGTCPU=i486 "Signature"=hex:17,5e,5c,b3,dd,70,11,21,c7,23,9a,77,48,c0,2b,2f,\ 23,d3,40,c4,60,0c,15,87,e9,0b,a2,0b,b8,78,29,25,\ 09,92,3a,97,65,29,af,4e,3f,97,c8,57,e0,a3,c7,aa,\ ce,ac,41,33,d2,2e,08,12,4a,4e,01,9a,1d,57,da,13,\ e2,02,53,85,57,cb,56,d9,82,57,f1,df,b3,5b,65,19,\ 4b,4c,37,75,04,40,d1,0a,25,3f,67,b1,ea,b2,20,1c,\ 52,63,3c,f7,99,85,60,26,85,1b,e0,e9,49,66,01,3c,\ ac,ad,2c,a3,6f,66,10,f1,9b,bb,8a,4c,24,e7,68,85,\ 00,00,00,00,00,00,00,00 ENDIF If the CSP is going to be the default provider of a particular type, the following entry must also be made: [HKEY_LOCAL_MACHINE\Comm\Security\Crypto\Defaults\Provider Types\Type 002] "Name"="XYZ Crypto Service Provider"

近期下载者

相关文件


收藏者