WO2011097843A1 - 一种智能卡鉴权装置及方法 - Google Patents

一种智能卡鉴权装置及方法 Download PDF

Info

Publication number
WO2011097843A1
WO2011097843A1 PCT/CN2010/072524 CN2010072524W WO2011097843A1 WO 2011097843 A1 WO2011097843 A1 WO 2011097843A1 CN 2010072524 W CN2010072524 W CN 2010072524W WO 2011097843 A1 WO2011097843 A1 WO 2011097843A1
Authority
WO
WIPO (PCT)
Prior art keywords
smart card
screader
module
terminal device
driver module
Prior art date
Application number
PCT/CN2010/072524
Other languages
English (en)
French (fr)
Inventor
蒋杰伟
Original Assignee
中兴通讯股份有限公司
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by 中兴通讯股份有限公司 filed Critical 中兴通讯股份有限公司
Priority to US13/258,346 priority Critical patent/US9491166B2/en
Priority to EP10845517.1A priority patent/EP2509351A4/en
Publication of WO2011097843A1 publication Critical patent/WO2011097843A1/zh

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L63/00Network architectures or network communication protocols for network security
    • H04L63/08Network architectures or network communication protocols for network security for authentication of entities
    • H04L63/0853Network architectures or network communication protocols for network security for authentication of entities using an additional device, e.g. smartcard, SIM or a different communication terminal
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W12/00Security arrangements; Authentication; Protecting privacy or anonymity
    • H04W12/06Authentication
    • H04W12/068Authentication using credential vaults, e.g. password manager applications or one time password [OTP] applications

Definitions

  • the present invention relates to the field of mobile communications and computers, and more particularly to a smart card authentication device and method. Background technique
  • Apple's operating system has a small market share. More and more devices need to pass the Apple operating system to authenticate smart cards. This requires a smart card authentication under the Apple operating system. method.
  • the main object of the present invention is to provide a smart card authentication device and method, which can reuse the original module of the Apple computer, and can realize multiple smart card authentication and high compatibility while reducing the workload.
  • the present invention provides a smart card authentication device for connecting a terminal device and a network server having an authentication operation function, the device comprising: a smart card authentication service module and a smart card reader
  • SCReader personal computer smart card driver
  • pcscd personal computer smart card driver
  • virtual serial port driver module virtual serial port driver
  • the smart card authentication service module is configured to send an initialization command to the SCReader driver module, send an authentication request to the terminal device and the network server, and compare the results of the authentication operation performed by the received network server and the terminal device on the smart card, and determine the same time , smart card authentication passed;
  • the SCReader driver module is configured to receive an initialization command sent by the smart card authentication service module, and send the authentication operation result of the terminal device to the smart card authentication service module;
  • a pcscd service module configured to provide an interface for transmitting data by the smart card authentication service module
  • the SCReader driver module sends data to the virtual serial port driver
  • a virtual serial port driver module for transferring data between the terminal device and the SCReader driver module.
  • the SCReader driver module is specifically configured to: after receiving the initialization command sent by the smart card authentication service module, send a slot command to the terminal device through the virtual serial port driver module, and after receiving the slot number sent by the terminal device, Sending a power-on command to the terminal device, and sending a reset response (ATR) command returned by the terminal device to the smart card authentication service module; receiving the data transmission protocol type sent by the smart card authentication service module, and transmitting the packet to the terminal device; the smart card
  • the authentication service module is specifically configured to: after receiving the ATR command sent by the SCReader driver module, determine that the power-on is successful according to the power-on return value ATR in the smart card protocol; select a data transmission protocol type corresponding to the smart card, and use the pcscd service The module is sent to the SCReader driver module.
  • the smart card authentication service module is further configured to send a command for acquiring information to the SCReader driver module, receive an International Mobile Subscriber Identity (IMSI) sent by the SCReader driver module, and save the SCReader driver module, Will get the information command After being installed, it is sent to the terminal device through the virtual serial port driver module, and receives the IMSI sent by the terminal device.
  • IMSI International Mobile Subscriber Identity
  • the foregoing solution further includes: a user interface module, configured to provide an interface for user operation, and send an initialization command to the smart card authentication service module; after the power is successfully sent, send an authentication mode selection instruction to the smart card authentication service module; The right service module sends a get information command; sends an authentication request to the smart card authentication service module.
  • the user interface module is specifically configured to: send an authentication request;
  • the smart card authentication service module is further configured to: after receiving the authentication request sent by the user interface module, generate a random number, and send the random number and the authentication request to the
  • the SCReader driver module sends the IMSI, the random number, and the authentication request to the network server, and requests the network server to run the authentication operation;
  • the SCReader driver module is further configured to: encapsulate the random number and the authentication request, and send the authentication request to the terminal device, requesting the terminal device Run the authentication operation.
  • the invention also provides a smart card authentication method, comprising:
  • the smart card is authenticated by the network server and the terminal device, and the authentication operation results returned by the network server and the terminal device are compared, and when the same is determined, the smart card authentication is passed.
  • the initializing the smart card in the terminal device includes: after receiving the initialization command, the SCReader driver module sends a slot command to the terminal device through the virtual serial port driver module, and the terminal device returns the slot number where the smart card is inserted.
  • the SCReader driver module receives the slot number
  • the virtual serial port driver sends a power-on command to the terminal device; after the terminal device is powered on, the ATR command is returned to the SCReader driver module, and the SCReader driver module sends the ATR command to the smart card.
  • the right business module determines to complete the power-on according to the ATR command; the smart card authentication service module selects the data transmission protocol type corresponding to the smart card and sends it to the SCReader driver module through the pcscd service module, and the SCReader driver module transmits the data transmission protocol type. After being encapsulated, it is sent to the terminal device.
  • the method proceeds The step includes: after the initialization is completed, the smart card authentication service module receives the acquisition information command sent by the user interface module, and sends the command to the SCReader driver module, and the SCReader driver module encapsulates the information acquisition command and sends the information to the terminal device, and the terminal device receives the information acquisition command.
  • the IMSI of the smart card is sent to the smart card authentication service module through the SCReader driver module and saved.
  • the performing the authentication operation on the smart card by using the network server and the terminal device includes: the smart card authentication service module receives the authentication request sent by the user interface module, generates a random number, and sends the random number and the authentication request to the SCReader driver.
  • the module, the SCReader driver module is encapsulated and sent to the terminal device, and the terminal device performs an authentication operation according to the random number, and sends the operation result to the smart card authentication service module through the SCReader driver module; and sends the random number, the IMSI, and the authentication request to the network.
  • the server and the network server determine the smart card type according to the IMSI, perform an authentication operation of the corresponding smart card, and send the operation result to the smart card authentication service module.
  • the smart card authentication service module and the SCReader driver module can select a variety of smart card data transmission protocols, which are highly compatible, easy to expand, and widely applicable;
  • the data transmission and smart card driving functions are realized by the virtual serial port driver module and the SCReader driver module respectively, and the function separation degree is high;
  • FIG. 1 is a schematic diagram of a device for implementing smart card authentication according to the present invention
  • FIG. 2 is a schematic flowchart of a method for implementing smart card authentication according to the present invention. detailed description
  • the smart card authentication service module issues an initialization command to initialize the terminal device. After the initialization is completed, the smart card authentication service module sends an authentication request to the network server and the terminal device, and the received network server and terminal device are received. The results of the authentication operations are compared, and when the same is determined, the smart card authentication is passed;
  • the terminal device refers to a device inserted with a smart card, has an authentication operation function, and is connected to the computer through a wireless or wired manner.
  • the present invention is further described in detail with reference to a preferred embodiment, as shown in FIG. 1.
  • the present invention provides an authentication device, including: a smart card authentication service module 102, a pcscd service module 103, an SCReader driver module 104, and a virtual serial port.
  • a driver module 105 wherein the smart card authentication service module 102 is configured to send an initialization command to the SCReader driver module 104 through the pcscd service module 103; and run the authentication operation through the terminal device and the network server, and the received network server and the terminal device
  • the result of the weight operation is compared, and when the same is determined, the smart card authentication is passed, and the operation result includes an encryption key (CK) and a signature response (SRES);
  • the SCReader driver module 104 is configured to receive an initialization command sent by the smart card authentication service module 102, and initialize the smart card in the terminal device; and send the authentication operation result of the terminal device to the smart card authentication service module;
  • the pcscd service module 103 is configured to provide an interface for transmitting the data by the smart card authentication service module 102, and send data to the virtual serial port driver 105 through the SCReader driver module 104.
  • the virtual serial port driver module 105 is configured to transmit data between the SCReader driver module 104 and the terminal device.
  • the SCReader driver module 104 is specifically configured to receive the smart card authentication service module 102 and send After the initialization command, the virtual serial port driver module 105 sends a slot command to the terminal device, and after receiving the slot number sent by the terminal device, sends a power-on command to the terminal device, and sends the ATR command returned by the terminal device to the smart card.
  • the right service module 102 receives the data transmission protocol type sent by the smart card authentication service module 102, and sends the data to the terminal device after being encapsulated, and the terminal device can only identify the data of the USB chip smart card interface device (CCID) protocol, so the package is used for The data is converted into data identifiable by the CCID protocol;
  • CCID USB chip smart card interface device
  • the terminal device is configured to receive the slot command sent by the SCReader driver module 104, send the slot number of the inserted smart card to the SCReader driver module 104, and receive the power-on command sent by the SCReader driver module 104, and then return an ATR command, the ATR.
  • the value in the command indicates the power-on result; receiving the data transmission protocol sent by the SCReader driver module 104;
  • the smart card authentication service module 102 is specifically configured to: after receiving the ATR command sent by the SCReader driver module 104, determine the power-on result according to the power-on return value ATR in the smart card protocol, and select the data corresponding to the smart card after the power-on is successful.
  • the transport protocol type is sent to the SCReader driver module 104 via the pcscd service module 103.
  • the smart card authentication service module 102 is further configured to send the acquisition information command to the SCReader driver module 104; receive the IMSI sent by the SCReader driver module 104 and save the same;
  • the SCReader driver module 104 is further configured to encapsulate the information acquisition command and send it to the terminal device through the virtual serial port driver module 105, and receive the IMSI returned by the terminal device;
  • the terminal device returns the IMSL to the SCReader driver module 104 after receiving the command to acquire information.
  • the device further includes
  • the user interface module 101 is configured to provide an interface for user operation, and send an initialization command to the smart card authentication module. After the power is successfully applied, send an authentication mode selection instruction to the smart card authentication service module, that is, select a data transmission protocol type corresponding to the smart card. Sending an acquisition information command to the smart card authentication service module; sending an authentication request to the smart card authentication service module.
  • the user interface module 101 is specifically configured to send an authentication request.
  • the smart card authentication service module 102 is further configured to: after receiving the authentication request sent by the user interface module 101, generate a random number according to a data protocol of different smart cards, and send the random number and the authentication request to the SCReader driver module 104; Sending the IMSI, the random number, and the authentication request to the network server;
  • the SCReader driver module 104 is further configured to: send the random number and the authentication request to the terminal device after being encapsulated.
  • the terminal device is further configured to: receive an authentication request, run an authentication operation according to the random number, and send the operation result to the smart card authentication service module 102 via the SCReader driver module 104 and the pcscd service module 103, where the operation result includes CK and SRES;
  • the network server is configured to: after receiving the authentication request, determine the type of the smart card according to the IMSI, run the corresponding authentication algorithm, and return the operation result to the smart card authentication service module 102.
  • the invention also provides a smart card authentication method, as shown in FIG. 2:
  • Step 201 The smart card authentication service module sends an initialization command to the SCReader driver module to initialize the smart card in the terminal device.
  • the user selects an initialization function through the user interface module, and the user interface module sends a smart card initialization command to the smart card authentication service module, and the smart card authentication service module sends a smart card initialization command to the SCReader driver module through the pcscd service module.
  • the SCReader driver module After receiving the initialization command, the SCReader driver module sends a slot command to the terminal device through the virtual serial port driver module, and the terminal device sends the slot number of the inserted smart card to the SCReader driver module after receiving the slot command;
  • the SCReader driver module After receiving the slot number of the smart card, the SCReader driver module sends a power-on command to the slot of the smart card inserted into the terminal device according to the slot number, and the terminal device completes the power-on operation and drives the SCReader through the virtual serial port driver module.
  • the module returns an ATR command, the value in the ATR command indicates the power-on result, and the SCReader driver module sends the ATR command.
  • the smart card authentication service module sends the smart card authentication service module to determine the result of the power-on according to the smart card return protocol ATR, and returns the result to the user interface module.
  • the user selects the corresponding authentication mode through the user interface module according to the inserted smart card type.
  • the 2G smart card corresponds to the 2G authentication mode
  • the user interface module sends the authentication mode selection command to the smart card authentication service module, the smart card.
  • the authentication service module selects the data transmission protocol type corresponding to the smart card and sends it to the SCReader driver module through the pcscd service module.
  • the SCReader driver module encapsulates the data transmission protocol type and sends it to the terminal device through the virtual serial port module, and is used to notify the terminal device according to the corresponding Type of data transfer protocol to transfer data, initial ⁇ ⁇ complete.
  • the data transmission protocol type in the smart card authentication service module can be expanded according to the needs of the user, so as to achieve the purpose of authenticating multiple smart cards.
  • Step 202 After the initialization is completed, the smart card authentication service module sends an authentication request to the terminal device to the network side and through the SCReader driver module.
  • the user selects the acquisition information through the user interface module, and the user interface module sends the acquisition information command to the smart card authentication service module, and the smart card authentication service module sends the acquisition information command to the SCReader driver module through the pcscd service module, and the SCReader driver module obtains the information command package.
  • the terminal device After being sent to the terminal device through the virtual serial port driver module, the terminal device sends the IMSI of the smart card to the SCReader driver module through the virtual serial port driver module after receiving the command to obtain the information, and the SCReader driver module sends the IMSI to the smart card authentication service module through the pcscd service module. And save.
  • the user selects an authentication request function through the user interface module, and the user interface module sends the authentication request to the smart card authentication service module, and the smart card authentication service module generates a random number according to a data transmission protocol of different smart cards by using a random number algorithm, and the smart card authentication service
  • the module sends the random number and the authentication request to the SCReader driver module through the pcscd service module, and the SCReader driver module encapsulates the random number and the authentication request and sends the same to the terminal device through the virtual serial port driver module.
  • the device runs the authentication algorithm according to the random number, and returns the operation result to the SCReader driver module, and sends it to the smart card authentication service module by the SCReader driver module, where the operation result includes CK and SRES.
  • the smart card authentication service module sends the random number, the IMSI, and the authentication request to the network server on the network side, and the authentication request may be sent simultaneously with the authentication request sent to the terminal device, or may be sent sequentially, and the user may according to different needs.
  • the network server receives the random number and the IMSI, the type of the smart card is determined according to the IMSI, and then the corresponding authentication algorithm is run, and the operation result is returned to the smart card authentication service module.
  • Step 203 The smart card authentication service module determines whether the operation results of the network side and the terminal device are the same. If they are the same, step 204 is performed. Otherwise, step 205 is performed.
  • Step 204 The operation result is the same, the smart card authentication is passed, and the result is returned to the user interface module, and the process ends.
  • Step 205 The operation result is different, the smart card authentication fails, and the result is returned to the user interface module, and the process ends.

Description

一种智能卡鉴权装置及方法 技术领域
本发明涉及移动通信及计算机领域, 尤其是指一种智能卡鉴权装置及 方法。 背景技术
在全球信息爆炸式发展的今天, 对无线数据终端设备提出了更高的要 求, 同时对智能卡特别是用户身份识别模块 ( SIM )卡和全球用户身份识别 模块(USIM )卡的访问和操作越来越普遍, 对智能卡鉴权越来越急需。 对 于 Windows操作系统现在已经有一些智能卡鉴权的方案, 而在苹果操作系 统上面实现的鉴权方法还较少, 很大程度上制约了相关产品的发展。
在全球电脑用户中, 苹果操作系统占有不小的市场份额, 越来越多的 设备对智能卡鉴权需通过苹果操作系统的设备, 这样就需要一种在苹果操 作系统下进行的智能卡鉴权的方法。
但是, 由于操作系统的区别, 如果直接将 Windows操作系统上智能卡 鉴权的方法应用在苹果操作系统, 则需要重新在苹果操作系统下为访问智 能卡写一套驱动程序, 工作量较大且较复杂, 因此需要根据苹果操作系统 的特性设计智能卡鉴权方案。 发明内容
有鉴于此, 本发明的主要目的在于提供一种智能卡鉴权装置及方法, 复用苹果计算机原有模块, 在降低工作量的同时, 可实现多种智能卡鉴权, 兼容性高。
为达到上述目的, 本发明的技术方案是这样实现的: 本发明提供了一种智能卡鉴权装置, 用于连接具有鉴权运算功能的终 端设备和网络服务器, 该装置包括: 智能卡鉴权业务模块、 智能读卡器
( SCReader )驱动模块、 个人电脑智能卡驱动 (pcscd )服务模块、 以及虚 拟串口驱动模块; 其中,
智能卡鉴权业务模块, 用于将初始化命令发送给 SCReader驱动模块; 向终端设备和网络服务器发送鉴权请求, 将接收的网络服务器及终端设备 对智能卡进行鉴权运算的结果进行比较, 确定相同时, 智能卡鉴权通过;
SCReader驱动模块,用于接收智能卡鉴权业务模块发送的初始化命令; 将终端设备的鉴权运算结果发送给智能卡鉴权业务模块;
pcscd服务模块, 用于提供智能卡鉴权业务模块传输数据的接口, 通过
SCReader驱动模块向虚拟串口驱动发送数据;
虚拟串口驱动模块, 用于在终端设备和 SCReader驱动模块之间传输数 据。
上述方案中, 所述 SCReader驱动模块具体用于, 接收智能卡鉴权业务 模块发送的初始化命令后, 通过虚拟串口驱动模块向终端设备发送获得插 槽命令, 收到终端设备发送的插槽编号后, 向终端设备发送上电命令, 将 终端设备返回的复位应答( ATR )命令发送给智能卡鉴权业务模块; 接收智 能卡鉴权业务模块发送的数据传输协议类型, 封装后发送给终端设备; 所 述智能卡鉴权业务模块具体用于, 接收 SCReader驱动模块发送的 ATR命 令后, 根据智能卡协议中对上电返回值 ATR的规定, 确定上电成功; 选择 与智能卡对应的数据传输协议类型,并通过 pcscd服务模块发送给 SCReader 驱动模块。
上述方案中, 所述智能卡鉴权业务模块, 还用于将获取信息命令发送 给 SCReader驱动模块; 接收 SCReader驱动模块发送的国际移动用户识别 码 (IMSI ) 并保存; 所述 SCReader驱动模块, 还用于将获取信息命令封 装后通过虚拟串口驱动模块发送给终端设备, 接收终端设备发送的 IMSI。 上述方案中, 进一步包括: 用户界面模块, 用于提供用户操作的界面, 向智能卡鉴权业务模块发送初始化命令; 上电成功后, 向智能卡鉴权业务 模块发送鉴权方式选择指令; 向智能卡鉴权业务模块发送获取信息命令; 向智能卡鉴权业务模块发送鉴权请求。
上述方案中, 用户界面模块具体用于, 发送鉴权请求; 智能卡鉴权业 务模块进一步用于, 收到用户界面模块发送的鉴权请求后, 生成随机数, 将随机数和鉴权请求发送给 SCReader驱动模块; 将 IMSI、 随机数以及鉴 权请求发送到网络服务器, 请求网络服务器运行鉴权运算; SCReader驱动 模块进一步用于, 将随机数和鉴权请求封装后发送给终端设备, 请求终端 设备运行鉴权运算。
本发明还提供了一种智能卡鉴权方法, 包括:
对终端设备中的智能卡进行初始化;
通过网络服务器和终端设备对智能卡进行鉴权运算, 比较网络服务器 和终端设备返回的鉴权运算结果, 确定相同时, 智能卡鉴权通过。
上述方案中, 所述对终端设备中的智能卡进行初始化包括: SCReader 驱动模块收到初始化命令后, 通过虚拟串口驱动模块向终端设备发送获得 插槽命令, 终端设备将插入智能卡所在的插槽编号返回给 SCReader驱动模 块, SCReader驱动模块接收插槽编号后, 通过虚拟串口驱动向终端设备发 送上电命令; 终端设备上电后, 向 SCReader驱动模块回复 ATR命令, SCReader驱动模块将 ATR命令发送给智能卡鉴权业务模块,智能卡鉴权业 务模块根据 ATR命令确定上电完成; 智能卡鉴权业务模块选择与智能卡对 应的数据传输协议类型并通过 pcscd服务模块发送给 SCReader驱动模块, SCReader驱动模块将数据传输协议类型封装后发送给终端设备。
上述方案中, 所述对终端设备中的智能卡进行初始化之后, 该方法进 一步包括: 初始化完成后, 智能卡鉴权业务模块接收用户界面模块发送的 获取信息命令,发送给 SCReader驱动模块, SCReader驱动模块将获取信息 命令封装后发送给终端设备, 终端设备收到获取信息命令后将智能卡的 IMSI通过 SCReader驱动模块发送给智能卡鉴权业务模块并保存。
上述方案中, 所述通过网络服务器和终端设备对智能卡进行鉴权运算 包括: 智能卡鉴权业务模块接收用户界面模块发送的鉴权请求, 生成随机 数,将随机数和鉴权请求发送给 SCReader驱动模块, SCReader驱动模块封 装后发送给终端设备, 终端设备根据随机数进行鉴权运算, 并将运算结果 通过 SCReader驱动模块发送给智能卡鉴权业务模块; 将随机数、 IMSI以 及鉴权请求发送给网络服务器, 网络服务器根据 IMSI确定智能卡类型, 进 行相应智能卡的鉴权运算并将运算结果发送给智能卡鉴权业务模块。
由此可见, 本发明所提供的智能卡鉴权的装置及方法, 具有以下优点:
1 ,在苹果计算机现有的虚拟串口驱动模块基础上, 只需构建 SCReader 驱动模块和智能卡鉴权业务模块, 对原有模块进行很好的复用, 降低了实 现本发明的工作量;
2, 智能卡鉴权业务模块和 SCReader驱动模块可选择多种智能卡的数 据传输协议, 兼容性高且易于扩充, 应用性广;
3 , 通过虚拟串口驱动模块和 SCReader驱动模块分别实现数据传输和 智能卡驱动功能, 功能分离程度较高;
4, 充分利用苹果操作系统的特点, 利用 pcscd服务模块的接口建立智 能卡鉴权业务模块与 SCReader驱动模块之间的连接, 然后智能卡鉴权业务 模块通过 pcscd服务模块的接口向 SCReader驱动模块发送数据, 这样构造 的装置对原有操作系统的改动较小, 系统稳定性较高, 容错性好, 复杂性 也较低。 附图说明
图 1为本发明实现智能卡鉴权的装置组成示意图;
图 2为本发明实现智能卡鉴权的方法流程示意图。 具体实施方式
本发明的基本思想是: 智能卡鉴权业务模块下发初始化命令对终端设 备进行初始化, 初始化完成后, 智能卡鉴权业务模块向网络服务器和终端 设备发送鉴权请求, 将接收的网络服务器和终端设备的鉴权运算结果进行 比较, 确定相同时, 智能卡鉴权通过;
所述终端设备指插入有智能卡的设备, 具有鉴权运算功能并通过无线 或者有线的方式连接计算机。
下面通过一个优选实施例来对本发明进一步详细说明, 如图 1所示: 本发明提供了一种鉴权装置, 包括: 智能卡鉴权业务模块 102、 pcscd 服务模块 103、 SCReader驱动模块 104和虚拟串口驱动模块 105 , 其中, 智能卡鉴权业务模块 102, 用于通过 pcscd服务模块 103向 SCReader 驱动模块 104发送初始化命令; 通过终端设备和网络服务器运行鉴权运算, 将接收的网络服务器及终端设备的鉴权运算结果进行比较, 确定相同时, 智能卡鉴权通过, 所述运算结果包括加密密钥(CK )和签字应答(SRES );
SCReader驱动模块 104, 用于接收智能卡鉴权业务模块 102发送的初 始化命令, 对终端设备中的智能卡进行初始化; 将终端设备的鉴权运算结 果发送给智能卡鉴权业务模块;
pcscd服务模块 103 , 用于提供智能卡鉴权业务模块 102传输数据的接 口, 通过 SCReader驱动模块 104向虚拟串口驱动 105发送数据;
虚拟串口驱动模块 105 , 用于在 SCReader驱动模块 104和终端设备间 传输数据。
SCReader驱动模块 104具体用于, 接收智能卡鉴权业务模块 102发送 的初始化命令后, 通过虚拟串口驱动模块 105 向终端设备发送获得插槽命 令, 收到终端设备发送的插槽编号后, 向终端设备发送上电命令, 将终端 设备返回的 ATR命令发送给智能卡鉴权业务模块 102; 接收智能卡鉴权业 务模块 102发送的数据传输协议类型, 封装后发送给终端设备, 终端设备 只能识别 USB芯片智能卡接口设备 (CCID )协议的数据, 因此所述封装 用于将数据转化为 CCID协议可识别的数据;
终端设备, 用于接收 SCReader驱动模块 104发送的获得插槽命令, 将 插入智能卡的插槽编号发送给 SCReader驱动模块 104;接收 SCReader驱动 模块 104发送的上电命令后,返回 ATR命令, 所述 ATR命令中的数值表示 上电结果; 接收 SCReader驱动模块 104发送的数据传输协议;
智能卡鉴权业务模块 102, 具体用于接收 SCReader驱动模块 104发送 的 ATR命令后,根据智能卡协议中对上电返回值 ATR的规定,确定上电结 果, 上电成功后, 选择与智能卡对应的数据传输协议类型并通过 pcscd服务 模块 103发送给 SCReader驱动模块 104。
智能卡鉴权业务模块 102, 还用于将获取信息命令发送给 SCReader驱 动模块 104; 接收 SCReader驱动模块 104发送的 IMSI并保存;
SCReader驱动模块 104, 还用于将获取信息命令封装后通过虚拟串口 驱动模块 105发送给终端设备, 接收终端设备返回的 IMSI;
终端设备, 接收到获取信息命令后, 向 SCReader驱动模块 104返回 IMSL
该装置进一步包括,
用户界面模块 101 , 用于提供用户操作的界面, 向智能卡鉴权模块发送 初始化命令; 上电成功后, 向智能卡鉴权业务模块发送鉴权方式选择指令, 即选择与智能卡相应的数据传输协议类型; 向智能卡鉴权业务模块发送获 取信息命令; 向智能卡鉴权业务模块发送鉴权请求。 用户界面模块 101具体用于, 发送鉴权请求;
智能卡鉴权业务模块 102进一步用于, 接收用户界面模块 101发送的 鉴权请求后, 根据不同智能卡的数据协议通过随机数算法生成随机数, 将 随机数和鉴权请求发送给 SCReader驱动模块 104; 将 IMSI、 随机数以及鉴 权请求发送到网络服务器;
相应的, SCReader驱动模块 104进一步用于, 将随机数和鉴权请求封 装后发送给终端设备。
终端设备进一步用于, 接收鉴权请求, 根据随机数运行鉴权运算, 将 运算结果经由 SCReader驱动模块 104、pcscd服务模块 103发送给智能卡鉴 权业务模块 102, 所述运算结果包括 CK和 SRES;
网络服务器用于, 接收鉴权请求后, 根据 IMSI确定智能卡的类型, 运 行相应的鉴权算法, 并将运算结果返回给智能卡鉴权业务模块 102。
本发明还提供了一种智能卡鉴权方法, 如图 2所示:
步骤 201 ,智能卡鉴权业务模块向 SCReader驱动模块发送初始化命令, 对终端设备中的智能卡进行初始化。
用户通过用户界面模块选择初始化功能, 用户界面模块向智能卡鉴权 业务模块发送智能卡初始化命令,智能卡鉴权业务模块通过 pcscd服务模块 向 SCReader驱动模块发送智能卡初始化命令。
SCReader驱动模块收到初始化命令后, 通过虚拟串口驱动模块向终端 设备发送获得插槽命令, 终端设备收到获得插槽命令后将插入智能卡的插 槽编号发送给 SCReader驱动模块;
SCReader驱动模块收到智能卡的插槽编号后, 根据插槽编号通过虚拟 串口驱动模块向终端设备中插入智能卡的插槽发送上电命令, 终端设备完 成上电操作并通过虚拟串口驱动模块向 SCReader驱动模块返回 ATR命令, 所述 ATR命令中的数值表示上电结果, SCReader驱动模块将 ATR命令发 送给智能卡鉴权业务模块, 智能卡鉴权业务模块根据智能卡的协议中对上 电返回值 ATR的规定, 确定上电的结果, 并返回给用户界面模块。
上电成功后, 用户根据插入的智能卡类型通过用户界面模块选择相应 的鉴权方式, 例如 2G的智能卡对应 2G的鉴权方式, 用户界面模块向智能 卡鉴权业务模块发送鉴权方式选择指令, 智能卡鉴权业务模块选择与智能 卡对应的数据传输协议类型并通过 pcscd服务模块发送给 SCReader驱动模 块, SCReader驱动模块将数据传输协议类型封装后通过虚拟串口模块发送 给终端设备, 用于通知终端设备根据相应类型的数据传输协议传输数据, 初始^ <完成。
其中智能卡鉴权业务模块中的数据传输协议类型可以根据用户的需要 进行扩充, 达到实现对多种智能卡鉴权的目的。
步骤 202 , 初始化完成后, 智能卡鉴权业务模块向网络侧以及通过 SCReader驱动模块向终端设备发送鉴权请求。
用户通过用户界面模块选择获取信息, 用户界面模块将获取信息命令 发送给智能卡鉴权业务模块, 智能卡鉴权业务模块通过 pcscd服务模块向 SCReader驱动模块发送获取信息命令, SCReader驱动模块将获取信息命令 封装后通过虚拟串口驱动模块发送给终端设备, 终端设备收到获取信息命 令后将智能卡的 IMSI通过虚拟串口驱动模块发送给 SCReader驱动模块, SCReader驱动模块通过 pcscd服务模块将 IMSI发送给智能卡鉴权业务模块 并保存。
用户通过用户界面模块选择鉴权请求功能, 用户界面模块将鉴权请求 发送给智能卡鉴权业务模块, 智能卡鉴权业务模块根据不同智能卡的数据 传输协议通过随机数算法生成随机数, 智能卡鉴权业务模块将随机数及鉴 权请求通过 pcscd服务模块发送给 SCReader驱动模块, SCReader驱动模块 将随机数及鉴权请求封装后通过虚拟串口驱动模块发送给终端设备, 终端 设备根据随机数运行鉴权算法, 并将运算结果返回给 SCReader驱动模块, 由 SCReader驱动模块发送给智能卡鉴权业务模块, 所述运算结果包括 CK 和 SRES。
智能卡鉴权业务模块将随机数、 IMSI以及鉴权请求发送给网络侧的网 络服务器, 所述鉴权请求可以同发送给终端设备的鉴权请求同时发送, 也 可以先后发送, 由用户根据不同需要设定, 网络服务器收到随机数和 IMSI 后, 根据 IMSI确定智能卡的类型, 然后运行相应的鉴权算法, 并将运算结 果返回给智能卡鉴权业务模块。
步骤 203 ,智能卡鉴权业务模块判断网络侧及终端设备的运算结果是否 相同, 如果相同, 执行步骤 204, 反之, 执行步骤 205。
步骤 204, 运算结果相同, 智能卡鉴权通过, 并将结果返回给用户界 面模块, 流程结束。
步骤 205 , 运算结果不同, 智能卡鉴权失败, 并将结果返回给用户界面 模块, 流程结束。
以上所述, 仅为本发明的较佳实施例而已, 并非用于限定本发明的保 护范围, 凡在本发明的精神和原则之内所作的任何修改、 等同替换和改进 等, 均应包含在本发明的保护范围之内。

Claims

权利要求书
1、 一种智能卡鉴权装置, 用于连接具有鉴权运算功能的终端设备和网 络服务器, 其特征在于, 该装置包括: 智能卡鉴权业务模块、 智能读卡器
SCReader驱动模块、 个人电脑智能读卡器 pcscd服务模块、 以及虚拟串口 驱动模块; 其中,
智能卡鉴权业务模块, 用于将初始化命令发送给 SCReader驱动模块; 向终端设备和网络服务器发送鉴权请求, 将接收的网络服务器及终端设备 对智能卡进行鉴权运算的结果进行比较, 确定相同时, 智能卡鉴权通过;
SCReader驱动模块,用于接收智能卡鉴权业务模块发送的初始化命令; 将终端设备的鉴权运算结果发送给智能卡鉴权业务模块;
pcscd服务模块, 用于提供智能卡鉴权业务模块传输数据的接口, 通过
SCReader驱动模块向虚拟串口驱动发送数据;
虚拟串口驱动模块, 用于在终端设备和 SCReader驱动模块之间传输数 据。
2、 根据权利要求 1所述的装置, 其特征在于,
所述 SCReader驱动模块具体用于,接收智能卡鉴权业务模块发送的初 始化命令后, 通过虚拟串口驱动模块向终端设备发送获得插槽命令, 收到 终端设备发送的插槽编号后, 向终端设备发送上电命令, 将终端设备返回 的复位应答 ATR命令发送给智能卡鉴权业务模块; 接收智能卡鉴权业务模 块发送的数据传输协议类型, 封装后发送给终端设备;
所述智能卡鉴权业务模块具体用于, 接收 SCReader驱动模块发送的 ATR命令后,根据智能卡协议中对上电返回值 ATR的规定,确定上电成功; 选择与智能卡对应的数据传输协议类型, 并通过 pcscd服务模块发送给 SCReader驱动模块。
3、 根据权利要求 2所述的装置, 其特征在于, 所述智能卡鉴权业务模块, 还用于将获取信息命令发送给 SCReader驱 动模块;接收 SCReader驱动模块发送的国际移动用户识别码 IMSI并保存; 所述 SCReader驱动模块, 还用于将获取信息命令封装后通过虚拟串口 驱动模块发送给终端设备, 接收终端设备发送的 IMSI。
4、 根据权利要求 1、 2或 3所述的装置, 其特征在于, 该装置进一步 包括:
用户界面模块, 用于提供用户操作的界面, 向智能卡鉴权业务模块发 送初始化命令; 上电成功后, 向智能卡鉴权业务模块发送鉴权方式选择指 令; 向智能卡鉴权业务模块发送获取信息命令; 向智能卡鉴权业务模块发 送鉴权请求。
5、 根据权利要求 4所述的装置, 其特征在于,
用户界面模块具体用于, 发送鉴权请求;
智能卡鉴权业务模块进一步用于, 收到用户界面模块发送的鉴权请求 后,生成随机数,将随机数和鉴权请求发送给 SCReader驱动模块;将 IMSI、 随机数以及鉴权请求发送到网络服务器, 请求网络服务器运行鉴权运算;
SCReader驱动模块进一步用于, 将随机数和鉴权请求封装后发送给终 端设备, 请求终端设备运行鉴权运算。
6、 一种智能卡鉴权方法, 其特征在于, 该方法包括:
对终端设备中的智能卡进行初始化;
通过网络服务器和终端设备对智能卡进行鉴权运算, 比较网络服务器 和终端设备返回的鉴权运算结果, 确定相同时, 智能卡鉴权通过。
7、 根据权利要求 6所述的方法, 其特征在于, 所述对终端设备中的智 能卡进行初始化包括:
SCReader驱动模块收到初始化命令后, 通过虚拟串口驱动模块向终端 设备发送获得插槽命令, 终端设备将插入智能卡所在的插槽编号返回给 SCReader驱动模块, SCReader驱动模块接收插槽编号后 , 通过虚拟串口驱 动向终端设备发送上电命令;
终端设备上电后, 向 SCReader驱动模块回复 ATR命令, SCReader驱 动模块将 ATR命令发送给智能卡鉴权业务模块, 智能卡鉴权业务模块根据 ATR命令确定上电完成;
智能卡鉴权业务模块选择与智能卡对应的数据传输协议类型并通过 pcscd服务模块发送给 SCReader驱动模块, SCReader驱动模块将数据传输 协议类型封装后发送给终端设备。
8、 根据权利要求 7所述的方法, 其特征在于, 所述对终端设备中的智 能卡进行初始化之后, 该方法进一步包括:
初始化完成后, 智能卡鉴权业务模块接收用户界面模块发送的获取信 息命令,发送给 SCReader驱动模块, SCReader驱动模块将获取信息命令封 装后发送给终端设备,终端设备收到获取信息命令后将智能卡的 IMSI通过 SCReader驱动模块发送给智能卡鉴权业务模块并保存。
9、 根据权利要求 8所述的方法, 其特征在于, 所述通过网络服务器和 终端设备对智能卡进行鉴权运算包括:
智能卡鉴权业务模块接收用户界面模块发送的鉴权请求, 生成随机数, 将随机数和鉴权请求发送给 SCReader驱动模块, SCReader驱动模块封装后 发送给终端设备, 终端设备根据随机数进行鉴权运算, 并将运算结果通过 SCReader驱动模块发送给智能卡鉴权业务模块; 将随机数、 IMSI以及鉴权 请求发送给网络服务器, 网络服务器根据 IMSI确定智能卡类型, 进行相应 智能卡的鉴权运算并将运算结果发送给智能卡鉴权业务模块。
PCT/CN2010/072524 2010-02-10 2010-05-07 一种智能卡鉴权装置及方法 WO2011097843A1 (zh)

Priority Applications (2)

Application Number Priority Date Filing Date Title
US13/258,346 US9491166B2 (en) 2010-02-10 2010-05-07 Apparatus and method for authenticating smart card
EP10845517.1A EP2509351A4 (en) 2010-02-10 2010-05-07 Smart card authentication device and method

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN201010116363.3A CN101800987B (zh) 2010-02-10 2010-02-10 一种智能卡鉴权装置及方法
CN201010116363.3 2010-02-10

Publications (1)

Publication Number Publication Date
WO2011097843A1 true WO2011097843A1 (zh) 2011-08-18

Family

ID=42596420

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2010/072524 WO2011097843A1 (zh) 2010-02-10 2010-05-07 一种智能卡鉴权装置及方法

Country Status (4)

Country Link
US (1) US9491166B2 (zh)
EP (1) EP2509351A4 (zh)
CN (1) CN101800987B (zh)
WO (1) WO2011097843A1 (zh)

Families Citing this family (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2014048414A (ja) * 2012-08-30 2014-03-17 Sony Corp 情報処理装置、情報処理システム、情報処理方法及びプログラム
CN103763103B (zh) * 2013-12-31 2017-02-01 飞天诚信科技股份有限公司 一种智能卡生成脱机认证凭据的方法
US10097534B2 (en) * 2015-08-28 2018-10-09 Dell Products L.P. System and method to redirect hardware secure USB storage devices in high latency VDI environments
CN106933753B (zh) * 2015-12-31 2020-04-21 华为技术有限公司 智能接口卡的控制方法及装置
CN106375997A (zh) * 2016-08-22 2017-02-01 努比亚技术有限公司 一种终端管控装置、方法和终端
US10958640B2 (en) * 2018-02-08 2021-03-23 Citrix Systems, Inc. Fast smart card login
CN113179163B (zh) * 2021-04-25 2022-03-22 郑州信大捷安信息技术股份有限公司 智能卡信息远程读取方法及系统
CN113805514B (zh) * 2021-09-17 2023-11-03 北京京航计算通讯研究所 一种基于fpga的串口控制指令处理方法以及上位机、下位机

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1326167A (zh) * 2000-05-30 2001-12-12 英业达股份有限公司 在高性能计算机上使用智能卡的方法
CN1503525A (zh) * 2002-11-26 2004-06-09 华为技术有限公司 实现安全性认证的ip网络系统及其方法
CN1802029A (zh) * 2006-01-09 2006-07-12 中国科学院软件研究所 利用sim卡实现终端与网络双向鉴权的方法和装置
WO2008034090A1 (en) * 2006-09-14 2008-03-20 Schlumberger Canada Limited Method and system for one time password based authentication and integrated remote access
CN101163003A (zh) * 2006-10-12 2008-04-16 北京三星通信技术研究有限公司 Sim卡使用umts终端和umts系统时终端认证网络的系统和方法

Family Cites Families (22)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
FI103314B1 (fi) * 1996-09-02 1999-05-31 Nokia Mobile Phones Ltd Suojausmenetelmä matkaviestinjärjestelmässä
US6230002B1 (en) * 1997-11-19 2001-05-08 Telefonaktiebolaget L M Ericsson (Publ) Method, and associated apparatus, for selectively permitting access by a mobile terminal to a packet data network
US6655585B2 (en) * 1998-05-11 2003-12-02 Citicorp Development Center, Inc. System and method of biometric smart card user authentication
SE9803569L (sv) * 1998-10-19 2000-04-20 Ericsson Telefon Ab L M Förfarande och system för autentisering
US6862583B1 (en) * 1999-10-04 2005-03-01 Canon Kabushiki Kaisha Authenticated secure printing
US20030004876A1 (en) * 2001-06-29 2003-01-02 David Jacobson Mobile terminal incorporated with a credit card
US7083090B2 (en) * 2002-08-09 2006-08-01 Patrick Zuili Remote portable and universal smartcard authentication and authorization device
US7509487B2 (en) * 2003-09-29 2009-03-24 Gemalto Inc. Secure networking using a resource-constrained device
ATE540372T1 (de) * 2003-11-07 2012-01-15 Telecom Italia Spa Methode und system zum authentifizieren eines benutzers eines datenverarbeitungssystems
US20050177515A1 (en) * 2004-02-06 2005-08-11 Tatara Systems, Inc. Wi-Fi service delivery platform for retail service providers
JP4917036B2 (ja) * 2004-09-23 2012-04-18 ジエマルト・エス・アー インターネットプロトコルを使用して、移動装置内の汎用集積回路カードと通信するためのシステムおよび方法
KR100997911B1 (ko) * 2005-05-19 2010-12-02 샌디스크 아이엘 엘티디 개인의 존재를 조건으로 하는 토큰에 의한 거래 인증
EP1752937A1 (en) * 2005-07-29 2007-02-14 Research In Motion Limited System and method for encrypted smart card PIN entry
US7594603B2 (en) * 2006-03-29 2009-09-29 Stmicroelectronics, Inc. System and method for sensing biometric and non-biometric smart card devices
IL178262A (en) * 2006-09-21 2013-06-27 Aser Rich Ltd Install and method of purchasing and storing digital content on a smart card
FR2908202B1 (fr) * 2006-11-07 2009-03-13 Oberthur Card Syst Sa Procede et dispositif de personnalisation d'une entite electronique portable
US8533327B2 (en) * 2007-04-04 2013-09-10 Zte Corporation System and method of providing services via a peer-to-peer-based next generation network
US8424079B2 (en) * 2008-01-25 2013-04-16 Research In Motion Limited Method, system and mobile device employing enhanced user authentication
CN101286915B (zh) * 2008-06-11 2012-05-09 中兴通讯股份有限公司 分组数据网络的接入控制方法和系统、pcrf实体
US8370640B2 (en) * 2008-12-01 2013-02-05 Research In Motion Limited Simplified multi-factor authentication
CN101478753B (zh) * 2009-01-16 2010-12-08 中兴通讯股份有限公司 Wapi终端接入ims网络的安全管理方法及系统
CN101635920B (zh) * 2009-08-19 2012-07-04 中兴通讯股份有限公司 服务提供客户端、无线终端以及实现绑定的方法

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1326167A (zh) * 2000-05-30 2001-12-12 英业达股份有限公司 在高性能计算机上使用智能卡的方法
CN1503525A (zh) * 2002-11-26 2004-06-09 华为技术有限公司 实现安全性认证的ip网络系统及其方法
CN1802029A (zh) * 2006-01-09 2006-07-12 中国科学院软件研究所 利用sim卡实现终端与网络双向鉴权的方法和装置
WO2008034090A1 (en) * 2006-09-14 2008-03-20 Schlumberger Canada Limited Method and system for one time password based authentication and integrated remote access
CN101163003A (zh) * 2006-10-12 2008-04-16 北京三星通信技术研究有限公司 Sim卡使用umts终端和umts系统时终端认证网络的系统和方法

Also Published As

Publication number Publication date
CN101800987B (zh) 2014-04-09
EP2509351A1 (en) 2012-10-10
US9491166B2 (en) 2016-11-08
EP2509351A4 (en) 2017-06-21
US20120266212A1 (en) 2012-10-18
CN101800987A (zh) 2010-08-11

Similar Documents

Publication Publication Date Title
WO2011097843A1 (zh) 一种智能卡鉴权装置及方法
CN101641683B (zh) 增强的无线usb协议和集线器
CN101527630B (zh) 远程制证的方法、服务器及系统
US8665753B2 (en) Simultaneous setup of a wireless network adapter and a network host device
WO2013071711A1 (zh) 一种处理支付业务的方法和终端
CN103037538A (zh) 数据传输方法及移动终端
WO2014101626A1 (zh) 一种usb设备及其识别主机操作系统的方法
TW200923664A (en) Memory interface card with SIM functions
CN108738019B (zh) 融合网络中的用户认证方法及装置
CN104660567B (zh) D2d终端接入认证方法、d2d终端及服务器
US10152587B2 (en) Device pairing method
WO2017206314A1 (zh) 绑定智能设备的方法和终端
CN101527714A (zh) 制证的方法、装置及系统
WO2012048605A1 (zh) 数字电视终端及其互联网协议电视业务的使用方法
CN101764695A (zh) 一种数据卡及其数据传输方法
CN101471867A (zh) 网络访问权限控制方法及系统、接入终端、运营支撑系统
WO2012129848A1 (zh) 一种模拟通用串行总线设备的方法及装置
CN112383914A (zh) 一种基于安全硬件的密码管理方法
WO2012048538A1 (zh) Nfc移动终端及其nfc安全支付的实现方法
WO2015067056A1 (zh) 用户数据终端及智能系统
CN107454557B (zh) 一种路由器连接方法及系统
CN103813318B (zh) 一种信息配置方法、设备及系统
JP2011197912A (ja) シンクライアントシステム、完全性検証サーバ、プログラム、記憶媒体、シンクライアント通信中継方法
CN102547706A (zh) 一种网络设备的管理方法及其设备
CN113455025A (zh) Ssp终端在捆绑包下载过程和esim配置文件下载过程之间进行互操作的方法

Legal Events

Date Code Title Description
121 Ep: the epo has been informed by wipo that ep was designated in this application

Ref document number: 10845517

Country of ref document: EP

Kind code of ref document: A1

WWE Wipo information: entry into national phase

Ref document number: 2010845517

Country of ref document: EP

WWE Wipo information: entry into national phase

Ref document number: 13258346

Country of ref document: US

NENP Non-entry into the national phase

Ref country code: DE