Method and device for information interaction between host and smart card

The invention provides a method and a device for information interaction between a host and a smart card. The operating system of the host is a Linux system, and the method comprises the following steps: step 1, the host calls a service request interface to generate service request information, and...

Ausführliche Beschreibung

Gespeichert in:
Bibliographische Detailangaben
Hauptverfasser: PENG JINHUI, LIU WUZHONG, XI DAOBIN, LEI ZONGHUA, XU XIAOBING
Format: Patent
Sprache:chi ; eng
Schlagworte:
Online-Zugang:Volltext bestellen
Tags: Tag hinzufügen
Keine Tags, Fügen Sie den ersten Tag hinzu!
Beschreibung
Zusammenfassung:The invention provides a method and a device for information interaction between a host and a smart card. The operating system of the host is a Linux system, and the method comprises the following steps: step 1, the host calls a service request interface to generate service request information, and then calls an APDU instruction interface to package the service request information to generate an APDU service instruction; 2, the host calls a CCID instruction interface to package the APDU service instruction to generate a CCID service instruction; 3, the host calls an ioctl function according to a set calling mode to send the CCID service instruction to the smart card, receives a CCID response instruction about the CCID service instruction returned by the smart card, and analyzes the CCID response instruction to obtain service response information, wherein the calling mode comprises a synchronous calling mode and an asynchronous calling mode. According to the invention, the smart card accessing the CCID protoco