Patent ID: 9491166
Filing Date: 2016-11-08
CPC Classification: H04L,H04W

Claim Text:
1. An apparatus for authenticating a smart card, the apparatus is located in computer and configured to connect a terminal device and a network server which have an authentication operation function; the apparatus comprising: a smart card authentication service module, a Smart Card Reader (SCReader) drive module, a Personnel Computer Smart Card Drive (pcscd) service module and a virtual serial port drive module, wherein the pcscd service module and the virtual serial port drive module are existing modules of the computer; the smart card authentication service module and the SCReader drive module are new added modules; the smart card authentication service module is configured to send an initialization command to the SCReader drive module, to send an authentication request to the terminal device and the network server, and to compare smart card authentication operation results received from the network server and the terminal device; when the results are identical to each other, the authentication of the smart card is passed; the SCReader drive module is configured to receive the initialization command from the smart card authentication service module and to send the authentication operation result from the terminal device to the smart card authentication service module; the pcscd service module is reused to provide a data transmission interface for the smart card authentication service module and to send data to the virtual serial port drive module through the SCReader drive module; and the virtual serial port drive module is reused to transmit data between the terminal device and the SCReader drive module; the SCReader drive module is specifically configured to receive the initialization command from the smart card authentication service module, to send a slot acquisition command to the terminal device through the virtual serial port drive module, to receive a slot number from the terminal device, then to send a power-on command to the terminal device, to send an Answer to Request (ATR) command returned by the terminal device to the smart card authentication service module, to receive a data transmission protocol type from the smart card authentication service module, and to encapsulate and then send the data transmission protocol type to the terminal device; and the smart card authentication service module is specifically configured to receive the ATR command from the SCReader drive module, then to determine that the power-on is completed according to a definition of the power-on return value ATR in the smart card protocol, to select the data transmission protocol type corresponding to the smart card, and to send the data transmission protocol type to the SCReader drive module through the pcscd service module; wherein the smart card authentication service module, the SCReader drive module, the pcscd service module and the virtual serial port drive module are each the result of execution on a processor of instructions stored in a memory.