⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 project.txt

📁 Skeleton for implementing a Windows PC/SC Smartcard Reader.
💻 TXT
字号:
========================================================================
           Test of virtual smartcard (sc_test)
========================================================================
The main goal of this file is the demonstration of getting access to pseudo SC inserted in
pseudo - SC reader. There is implementation of 3 ISO 7816 commands:
SELECT  - 
{        _CmdBytes.bCla = 0xA0;
         _CmdBytes.bIns = 0xA4;
         _CmdBytes.bP1 = 0;
         _CmdBytes.bP2 = 0;
         _CmdBytes.bP3 = 0;
}

READ_BINARY - 
{
         _CmdBytes.bCla = 0x00;
         _CmdBytes.bIns = 0xB0;
         _CmdBytes.bP1 = 0; \ offset for data in SC ( for us in file c:\CARD.bin
         _CmdBytes.bP2 = 0; /
         _CmdBytes.bP3 = ?; the number of data which will be read from SC (c:\CARD.bin)
Attention, please : the sum (bP1+bP2+bP3) MUST be less then 128 bytes. It means, the driver emulates the access ONLY
to 128 bytes memory size. The parameter is checked by driver internally.
}

WRITE_BINARY -
{
         _CmdBytes.bCla = 0x00;
         _CmdBytes.bIns = 0xD0;
         _CmdBytes.bP1 = 0; \ offset for data in SC ( for us in file c:\CARD.bin
         _CmdBytes.bP2 = 0; /
         _CmdBytes.bP3 = ?; -  the number of data which will be writtin in SC (c:\CARD.bin)
}
Attention, please : the sum (bP1+bP2+bP3) MUST be less then 128 bytes. It means, the driver emulates the access ONLY
to 128 bytes memory size. The parameter is checked by driver internally.

 The name of our reader : "COMRAD 000001 0"
 There is a check of size of writting and reading data in driver.. These sizes can't be larger 
 that 128 bytes (it tries to emulate the size of memory of real external device)
 ATTENTION :: The file "card.bin" should be located "c:\"..

For normal execution of this utility, the registry has to have the next info:
---------------------------------------------------------------------------
Windows Registry Editor Version 5.00

[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Cryptography\Calais\SmartCards\XXXX_Card]
"ATR"=hex:3b,89,40,14,47,47,32,34,4d,35,32,38,30
"ATRMask"=hex:ff,00,ff,ff,00,00,00,00,00,00,00,ff,ff
"Crypto Provider"="Microsoft Base Cryptographic Provider v1.0"
----------------------------------------------------------------------------
You can just use scard.reg to insert the  data in to the registry
(or use Microsoft Smartacard API functions for introducing of new smartcard)

Additional information can be found : http://www.dbasko.com/pc_sc.htm
--------------------------------------------------------------------------
   You may contact the author by:
       E-mail:  contact@dbasko.com  Dmitry Basko, 2001

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -