JP2013156742A - Ic card, manufacturing method of ic card, issuing method of ic card and information processing method - Google Patents

Ic card, manufacturing method of ic card, issuing method of ic card and information processing method Download PDF

Info

Publication number
JP2013156742A
JP2013156742A JP2012015417A JP2012015417A JP2013156742A JP 2013156742 A JP2013156742 A JP 2013156742A JP 2012015417 A JP2012015417 A JP 2012015417A JP 2012015417 A JP2012015417 A JP 2012015417A JP 2013156742 A JP2013156742 A JP 2013156742A
Authority
JP
Japan
Prior art keywords
card
data object
data
command
value area
Prior art date
Legal status (The legal status 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 status listed.)
Granted
Application number
JP2012015417A
Other languages
Japanese (ja)
Other versions
JP5889653B2 (en
Inventor
Yusuke Tsuda
祐輔 津田
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Toshiba Corp
Original Assignee
Toshiba Corp
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 Toshiba Corp filed Critical Toshiba Corp
Priority to JP2012015417A priority Critical patent/JP5889653B2/en
Publication of JP2013156742A publication Critical patent/JP2013156742A/en
Application granted granted Critical
Publication of JP5889653B2 publication Critical patent/JP5889653B2/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Abstract

PROBLEM TO BE SOLVED: To provide an IC card capable of enhancing retrieval processing efficiency.SOLUTION: An IC card is constituted of an IC module and a substrate. The IC module comprises: storage means; communication means; and processing means. The storage means stores type information indicating a type of a value area, data length information indicating a data length of the value area and a plurality of files containing a data object configured by the value area. The communication means receives a command containing specific type information specifying a retrieval object data object. The processing means retrieves the retrieval object data object out of the plurality of files on the basis of the specific type information contained in the command.

Description

本発明の実施形態は、ICカード、ICカードの製造方法、ICカードの発行方法、及び情報処理方法に関する。   Embodiments described herein relate generally to an IC card, an IC card manufacturing method, an IC card issuing method, and an information processing method.

近年、ICカード(通信媒体)の普及が目覚ましい。例えば、ICカードは、クレジットカード、定期券、旅券、免許証、その他の商取引の決済に使われるだけでなく、社員証、会員証、保険証などのIDカードとしても様々な分野で使用されている。   In recent years, the spread of IC cards (communication media) has been remarkable. For example, IC cards are used not only for settlement of credit cards, commuter passes, passports, licenses, and other commercial transactions, but also in various fields as ID cards for employee cards, membership cards, insurance cards, etc. Yes.

ICカードは、不揮発性のデータメモリ及びCPUなどの制御素子を有するIC(集積回路)チップを内蔵する。また、ICカードリーダライタ等のICカード処理装置は、ICカードに対してリードコマンドを送信しICカードからデータを読み出したり、ICカードに対してライトコマンドを送信しICカードに対してデータを書き込んだりする。   The IC card contains an IC (integrated circuit) chip having a nonvolatile data memory and a control element such as a CPU. Also, an IC card processing device such as an IC card reader / writer transmits a read command to the IC card and reads data from the IC card, or transmits a write command to the IC card and writes data to the IC card. Sloppy.

ICカードのデータメモリは、主ファイル(Main File、MFと略記)、主ファイルに属する複数の専用ファイル(Dedicated File、DFと略記)、及び各専用ファイルに属する基礎ファイル(Elementary File、EFと略記)を記憶する。また、上記ファイルには、値領域の種別を示す種別情報、値領域のデータ長を示すデータ長情報、及び値領域により構成されるデータオブジェクトが格納される。   The data memory of the IC card includes a main file (abbreviated as MF), a plurality of dedicated files (abbreviated as DF) belonging to the main file, and a basic file (abbreviated as Elementary File, EF) belonging to each dedicated file. ) Is memorized. The file stores type information indicating the type of the value area, data length information indicating the data length of the value area, and a data object composed of the value area.

例えば、ICカードのCPUが、ICカードリーダライタからのセレクトコマンドを受信すると、セレクトコマンドに従いDF又はEFを選択する。さらに、ICカードのCPUが、ICカードリーダライタからのリードコマンドを受信すると、リードコマンドに含まれる種別情報に基づき、選択したDF又はEFからデータオブジェクトを検索し、検索したデータオブジェクトを出力する。   For example, when the CPU of the IC card receives a select command from the IC card reader / writer, it selects DF or EF according to the select command. Further, when the CPU of the IC card receives a read command from the IC card reader / writer, it searches for a data object from the selected DF or EF based on the type information included in the read command, and outputs the searched data object.

特開2006−107403号公報JP 2006-107403 A

上記したように、ICカードは、選択したDF又はEFを検索対象ファイルとしてデータオブジェクトを検索する。言い換えると、ICカードは、選択されていないDF又はEFを検索対象ファイルとしてデータオブジェクトを検索することはできず、検索処理効率の改善が求められている。   As described above, the IC card searches for a data object using the selected DF or EF as a search target file. In other words, the IC card cannot search for a data object using an unselected DF or EF as a search target file, and improvement of search processing efficiency is required.

本発明の目的は、検索処理効率を高めることができるICカード、ICカードの製造方法、ICカードの発行方法、及び情報処理方法を提供することにある。   An object of the present invention is to provide an IC card, an IC card manufacturing method, an IC card issuance method, and an information processing method that can improve search processing efficiency.

実施形態のICカードは、ICモジュール及び基材により構成され、前記ICモジュールは、記憶手段と、通信手段と、処理手段とを備える。前記記憶手段は、値領域の種別を示す種別情報、値領域のデータ長を示すデータ長情報、及び値領域により構成されるデータオブジェクトを含む複数ファイルを記憶する。前記通信手段は、検索対象データオブジェクトを指定する指定種別情報を含む命令を受信する。前記処理手段は、前記命令に含まれた前記指定種別情報に基づき、前記複数ファイルの中から、前記検索対象データオブジェクトを検索する。   The IC card according to the embodiment includes an IC module and a base material, and the IC module includes a storage unit, a communication unit, and a processing unit. The storage unit stores a plurality of files including type information indicating the type of the value area, data length information indicating the data length of the value area, and a data object composed of the value area. The communication means receives a command including designation type information for designating a search target data object. The processing means searches the search target data object from the plurality of files based on the designated type information included in the command.

実施形態に係るICカードシステム(別称、スマートカードシステム)の概略構成を示すブロック図である。1 is a block diagram showing a schematic configuration of an IC card system (also called a smart card system) according to an embodiment. 実施形態に係るカードリーダ/ライタの概略構成を示すブロック図である。It is a block diagram which shows schematic structure of the card reader / writer concerning embodiment. 実施形態に係るICカードの概略構成を示すブロック図である。It is a block diagram which shows schematic structure of the IC card which concerns on embodiment. 実施形態に係るICカードとリーダライタのコマンド送受信のシーケンスの第1例を示す図である。It is a figure which shows the 1st example of the command transmission / reception sequence of the IC card and reader / writer which concern on embodiment. 実施形態に係るICカードとリーダライタのコマンド送受信のシーケンスの第2例を示す図である。It is a figure which shows the 2nd example of the command transmission / reception sequence of the IC card and reader / writer which concern on embodiment. 実施形態に係るコマンドフォーマットの第1例を示す図である。It is a figure which shows the 1st example of the command format which concerns on embodiment. 実施形態に係るレスポンスデータフォーマットの第1例を示す図である。It is a figure which shows the 1st example of the response data format which concerns on embodiment. 実施形態に係るコマンドフォーマットの第2例を示す図である。It is a figure which shows the 2nd example of the command format which concerns on embodiment. 実施形態に係るレスポンスデータフォーマットの第2例を示す図である。It is a figure which shows the 2nd example of the response data format which concerns on embodiment. 実施形態に係るコマンドフォーマットに含まれる識別子のビットアサインの一例を示す図である。It is a figure which shows an example of the bit assignment of the identifier contained in the command format which concerns on embodiment. 実施形態に係るICカード内部処理の一例を示すフローチャートである。It is a flowchart which shows an example of the IC card internal process which concerns on embodiment. 実施形態に係るICカード内部処理の一例を示すフローチャートである。It is a flowchart which shows an example of the IC card internal process which concerns on embodiment. 実施形態に係るICカード内部処理の一例を示すフローチャートである。It is a flowchart which shows an example of the IC card internal process which concerns on embodiment. 実施形態に係るICカード内部処理の一例を示すフローチャートである。It is a flowchart which shows an example of the IC card internal process which concerns on embodiment. 実施形態に係るICカード内部処理の一例を示すフローチャートである。It is a flowchart which shows an example of the IC card internal process which concerns on embodiment. 実施形態に係るICカード内部処理の一例を示すフローチャートである。It is a flowchart which shows an example of the IC card internal process which concerns on embodiment.

以下、実施形態について図面を参照して説明する。   Hereinafter, embodiments will be described with reference to the drawings.

図1は、実施形態に係るICカードシステム(別称、スマートカードシステム)の概略構成を示すブロック図である。図1に示すように、ICカードシステムは、端末1(通信装置)及びICカード2(携帯可能電子装置)により構成される。端末1は、制御部11、ディスプレイ12、キーボード13、リーダライタを備えている。端末1はICカード2と通信可能に構成されており、端末1はICカード2に対してデータを送信したり、ICカード2からのデータを受信したりする。   FIG. 1 is a block diagram illustrating a schematic configuration of an IC card system (also called a smart card system) according to an embodiment. As shown in FIG. 1, the IC card system includes a terminal 1 (communication device) and an IC card 2 (portable electronic device). The terminal 1 includes a control unit 11, a display 12, a keyboard 13, and a reader / writer. The terminal 1 is configured to be communicable with the IC card 2, and the terminal 1 transmits data to the IC card 2 and receives data from the IC card 2.

制御部11は、例えば、複数の通信方式及び複数のアプリケーションを選択的に実行することができる。ディスプレイ12は、ICカード2との通信結果及び認証結果等を表示する。キーボード13は、制御部11に対して文字や数字等を入力する。リーダライタは、ICカード2と通信する。   For example, the control unit 11 can selectively execute a plurality of communication methods and a plurality of applications. The display 12 displays a result of communication with the IC card 2 and an authentication result. The keyboard 13 inputs characters, numbers, and the like to the control unit 11. The reader / writer communicates with the IC card 2.

なお、ICカード2は、接触式のカード、非接触式のカード(無線カード)、及び非接触式と接触式の両者をサポートするコンビ型のカードのいずれであってもよい。   The IC card 2 may be any of a contact type card, a non-contact type card (wireless card), and a combination type card that supports both a non-contact type and a contact type.

図2は、実施形態に係るリーダライタの概略構成を示すブロック図である。図2に示すように、リーダライタは、通信I/F142、CPU143、データメモリ(不揮発性メモリ)144、RAM145、ROM146を備えている。CPU143は、ICカード2に対してコマンド(命令)等の送信を制御したり、ICカード2からの応答を検出したり、ICカード2からの応答に基づきさらにICカード2に対してコマンド(命令)等の送信を制御したりする。   FIG. 2 is a block diagram illustrating a schematic configuration of the reader / writer according to the embodiment. As shown in FIG. 2, the reader / writer includes a communication I / F 142, a CPU 143, a data memory (nonvolatile memory) 144, a RAM 145, and a ROM 146. The CPU 143 controls transmission of a command (command) to the IC card 2, detects a response from the IC card 2, and further sends a command (command) to the IC card 2 based on the response from the IC card 2. ) Etc. are controlled.

図3は、実施形態に係るICカードの概略構成を示すブロック図である。図3に示すように、ICカード2は、例えばプラスティックカード(基材)2aにより構成され、ICモジュール20(ICチップ)を備え、ICモジュール20は、通信I/F(通信手段)201、CPU(処理手段)204、データメモリ(EEPROM、FRAM(登録商標)、FLASH等の不揮発性メモリ)205、RAM206、ROM207を備えている。なお、携帯可能電子装置の一例として、上記したようなICカード2について説明するが、本実施形態はこれに限定されるものではない。例えば、携帯可能電子装置は、SIM形状のICカードであってもよい。   FIG. 3 is a block diagram illustrating a schematic configuration of the IC card according to the embodiment. As shown in FIG. 3, the IC card 2 is constituted by, for example, a plastic card (base material) 2a and includes an IC module 20 (IC chip). The IC module 20 includes a communication I / F (communication means) 201, a CPU. (Processing means) 204, data memory (nonvolatile memory such as EEPROM, FRAM (registered trademark), FLASH, etc.) 205, RAM 206, ROM 207 are provided. The IC card 2 as described above will be described as an example of the portable electronic device, but the present embodiment is not limited to this. For example, the portable electronic device may be a SIM-shaped IC card.

RAM206は、ワーキングメモリとして機能する。ROM207は、CPU204により実行されるICカードプログラムを保持する。CPU204は、ROM207に記憶されたICカードプログラム等に基づき動作する。また、CPU204は、データメモリ205又はRAM206に記憶されたデータを読み出したり、データメモリ205又はRAM206に対してデータを書き込んだり、さらには、通信I/F201を介して受信したコマンド(端末1から送信されたコマンド)を解釈し実行したり、通信I/F201を介して端末1に対してコマンド実行結果の返信を制御したりする。   The RAM 206 functions as a working memory. The ROM 207 holds an IC card program executed by the CPU 204. The CPU 204 operates based on an IC card program or the like stored in the ROM 207. Further, the CPU 204 reads data stored in the data memory 205 or RAM 206, writes data to the data memory 205 or RAM 206, and further receives a command (transmitted from the terminal 1) via the communication I / F 201. The command execution result is interpreted and executed, and a command execution result is returned to the terminal 1 via the communication I / F 201.

例えば、データメモリ205は、MF、DF、EF等のファイルを記憶する。MFは、最上位に位置するDFであり、MFには1又は複数のDFが属し、また各DFには1又は複数のEFが属する。これらMF、DF、EFには、1又は複数のデータオブジェクトが格納される。データオブジェクトは、値領域の種別を示す種別情報(タグ値)、値領域のデータ長を示すデータ長情報(レングス)、及び値領域(バリュー)により構成される。   For example, the data memory 205 stores files such as MF, DF, and EF. The MF is a DF positioned at the highest level. One or more DFs belong to the MF, and one or more EFs belong to each DF. These MF, DF, and EF store one or more data objects. The data object includes type information (tag value) indicating the type of the value area, data length information (length) indicating the data length of the value area, and a value area (value).

以下、上記説明したICカード2に記憶されたデータオブジェクトの検索処理について説明する。ICカード2は、全ユーザ領域を対象とするデータオブジェクト操作が可能である。   Hereinafter, a search process for the data object stored in the IC card 2 described above will be described. The IC card 2 can perform data object operations for all user areas.

(1) ISO/IEC 7816-4 Second edition 2005-01-15においては、現状奇数INS GET DATAコマンドでは、tag list data object (tag=‘5C’),header list data object (tag=‘5D’), extended header list data object (tag=‘4D’)を使って複数のタグ値を指定可能であり、指定した複数のタグ値がカレントDFあるいはカレントEF内に存在する場合にその値を出力することができる。しかしながら、カレントDFあるいはカレントEFと異なるDFあるいはEFを検索対象として、指定したタグ値のデータオブェクトを検索することはできないし、また読み出すこともできず、不便である。カレントDFあるいはカレントEFと異なる所望のDFあるいはEFを検索対象とするためには、セレクトコマンド等で所望のDFあるいはEFを選択してから、検索する必要があり、不便である。   (1) In ISO / IEC 7816-4 Second edition 2005-01-15, the current odd number INS GET DATA command uses tag list data object (tag = '5C'), header list data object (tag = '5D') , extended header list data object (tag = '4D') can be used to specify multiple tag values, and if the specified multiple tag values exist in the current DF or current EF, output the values Can do. However, the DF or EF different from the current DF or the current EF is used as a search target, and the data object of the designated tag value cannot be searched, and cannot be read, which is inconvenient. In order to search for a desired DF or EF different from the current DF or the current EF, it is necessary to select the desired DF or EF using a select command or the like, and it is inconvenient.

そこで、本実施形態のICカード2では、コマンドによるデータオブジェクトの検索対象をカレントEFもしくはカレントDF配下に限定せずに、全ユーザ領域を検索対象としてコマンドによるデータオブジェクトの検索を可能とする。   Therefore, in the IC card 2 of the present embodiment, the search of the data object by the command can be performed with the entire user area as the search target without limiting the search target of the data object by the command to the current EF or the current DF.

(2)また、ISO/IEC 7816-4 Second edition 2005-01-15においては、読み出した複数のデータオブジェクトを構造化データオブジェクトとして出力する機能は規定されていない。例えば、リーダライタ14が、構造化データオブジェクトを必要とする場合には、読み出した複数のデータオブジェクトを構造化データオブジェクトへ整形しなければならず、不便である。 (2) Also, ISO / IEC 7816-4 Second edition 2005-01-15 does not define a function for outputting a plurality of read data objects as structured data objects. For example, when the reader / writer 14 needs a structured data object, it is inconvenient because a plurality of read data objects must be shaped into a structured data object.

そこで、本実施形態のICカード2は、ICカード2の記憶領域に分散している複数のデータオブジェクトを検索し、検索された複数のデータオブジェクトを含む構造化データオブジェクトを生成し、生成した構造化データオブジェクトを出力する。なお、構造化データオブジェクトの詳細は後述する。   Therefore, the IC card 2 of the present embodiment searches for a plurality of data objects distributed in the storage area of the IC card 2, generates a structured data object including the searched data objects, and generates the generated structure. Output a structured data object. Details of the structured data object will be described later.

最初に、図4、図6A、図6B、図8、図9A〜図9F等を参照し、検索処理の第1例について説明する。   First, a first example of search processing will be described with reference to FIGS. 4, 6A, 6B, 8, and 9A to 9F.

ICカード2が起動後、リーダライタ14は、MFを選択する指定をしたSELECTコマンドを送信する(ST401)。ICカード2は、通信I/F201を介して、SELECTコマンドを受信する。ICカード2は、SELECTコマンドの受信に対応して、MFを選択し、MF選択が成功したことを示すステータスワードを返信する(ST402)。   After the IC card 2 is activated, the reader / writer 14 transmits a SELECT command instructing to select the MF (ST401). The IC card 2 receives the SELECT command via the communication I / F 201. In response to receiving the SELECT command, the IC card 2 selects an MF and returns a status word indicating that the MF selection has been successful (ST402).

その後、リーダライタ14は、図6Aに示すコマンドフォーマット601に対応するGET DATAコマンドを送信する(ST403)。図6Aに示すように、コマンドフォーマット601のP1P2は、拡張を示す値(0xFF,0xFF)を含み、コマンドフォーマット601のデータ部の識別子は、図8に示されるビットアサインでカード全体の検索を指定する情報を含み、さらにコマンドフォーマット601のデータ部は、検索対象のTAG1を含む。   Thereafter, the reader / writer 14 transmits a GET DATA command corresponding to the command format 601 shown in FIG. 6A (ST403). As shown in FIG. 6A, P1P2 of the command format 601 includes values (0xFF, 0xFF) indicating the extension, and the identifier of the data part of the command format 601 specifies the entire card search by the bit assignment shown in FIG. In addition, the data portion of the command format 601 includes a search target TAG1.

ICカード2のCPU204は、コマンドフォーマット601に対応するGET DATAコマンドを受信すると、図9A〜図9Fに示すフローチャートに従い、カード全体(例えば、MF、全てのDF、全てのEF)を検索対象とし、指定されたTAG1に対応するデータを検索する。検索の結果、指定されたTAG1に対応するデータが見つかった場合は、ICカード2は、GET DATAコマンドのレスポンスとして、図6Bに示すレスポンスデータフォーマット602に対応するレスポンスデータを出力する(ST404)。   When receiving the GET DATA command corresponding to the command format 601, the CPU 204 of the IC card 2 searches the entire card (for example, MF, all DFs, all EFs) according to the flowcharts shown in FIGS. 9A to 9F, Data corresponding to the designated TAG1 is searched. If data corresponding to the specified TAG1 is found as a result of the search, the IC card 2 outputs response data corresponding to the response data format 602 shown in FIG. 6B as a response to the GET DATA command (ST404).

次に、図5、図7A、図7B、図8、図9A〜図9F等を参照し、検索処理の第2例について説明する。   Next, a second example of search processing will be described with reference to FIGS. 5, 7A, 7B, 8, and 9A to 9F.

ICカード2が起動後、リーダライタ14は、MFを選択する指定をしたSELECTコマンドを送信する(ST501)。ICカード2は、通信I/F201を介して、SELECTコマンドを受信する。ICカード2は、SELECTコマンドの受信に対応して、MFを選択し、MF選択が成功したことを示すステータスワードを送信する(ST502)。   After the IC card 2 is activated, the reader / writer 14 transmits a SELECT command instructing to select the MF (ST501). The IC card 2 receives the SELECT command via the communication I / F 201. In response to receiving the SELECT command, the IC card 2 selects an MF and transmits a status word indicating that the MF selection has been successful (ST502).

その後、リーダライタ14は、図7Aに示すコマンドフォーマット701に対応するGET DATAコマンドを送信する(ST503)。図7Aに示すように、コマンドフォーマット701のP1P2は、拡張を示す値(0xFF,0xFF)を含み、コマンドフォーマット701のデータ部の識別子は、図8に示されるビットアサインでカード全体を検索対象に指定する情報を含み、さらに構造化データオブジェクトを指定する情報を含み、加えてコマンドフォーマット701のデータ部は、検索対象のTAG1、LENGTH1、TAG2、LENGTH2、…を連結したデータを含む。   Thereafter, the reader / writer 14 transmits a GET DATA command corresponding to the command format 701 shown in FIG. 7A (ST503). As shown in FIG. 7A, P1P2 of the command format 701 includes values (0xFF, 0xFF) indicating the extension, and the identifier of the data part of the command format 701 is the search target for the entire card by the bit assignment shown in FIG. In addition to the information to be specified, further includes information to specify the structured data object, and the data portion of the command format 701 includes data obtained by concatenating TAG1, LENGTH1, TAG2, LENGTH2,.

ICカード2のCPU204は、コマンドフォーマット701に対応するGET DATAコマンドを受信すると、図9A〜図9Fのフローチャートに従い、カード全体を検索対象とし、指定されたTAG1、TAG2、…に対応するデータを検索する。検索の結果、ICカード2は、見つかった各々のデータを、GET DATAコマンドのレスポンスデータとして出力する。ここで、ICカード2のCPU204は、見つかった各々のデータから構造化データオブジェクトを生成し、生成した構造化データオブジェクトをレスポンスデータとして出力する。図7Bは、生成される構造化データオブジェクトに対応するレスポンスデータの一例を示す図である。図7Bに示すように、レスポンスデータ702は、TAGa、LENGTHa、その後続データ(DATAa)により構成されるが、さらに、後続データ(DATAa)が、TAG1、LENGTH1、DATA1、TAG2、LENGTH2、DATA2、…、TAGn、LENGTHn、DATAnを含む。このような図7Bに示すデータ構造のデータオブジェクトを、Constructed data objectと称する。   When the CPU 204 of the IC card 2 receives the GET DATA command corresponding to the command format 701, the entire card is searched according to the flowcharts of FIGS. 9A to 9F, and the data corresponding to the designated TAG1, TAG2,. To do. As a result of the search, the IC card 2 outputs each data found as response data of the GET DATA command. Here, the CPU 204 of the IC card 2 generates a structured data object from each found data, and outputs the generated structured data object as response data. FIG. 7B is a diagram illustrating an example of response data corresponding to the generated structured data object. As shown in FIG. 7B, the response data 702 includes TAGa, LENGTHa, and subsequent data (DATAa). Further, the subsequent data (DATAa) includes TAG1, LENGTH1, DATA1, TAG2, LENGTH2, DATA2,. , TAGn, LENGTHn, DATAn. Such a data object having the data structure shown in FIG. 7B is referred to as a Constructed data object.

上記したように、ICカード2は、指定されたすべてのTAGとLENGTHに対応するデータを検索し、見つかった各々のデータから構造化データオブジェクトを生成し、生成した構造化データオブジェクトをレスポンスデータ702として出力する。   As described above, the IC card 2 retrieves data corresponding to all the designated TAGs and LENGTHs, generates a structured data object from each found data, and generates the structured data object as response data 702. Output as.

ここで、図9A〜図9Fのフローチャートについて説明する。   Here, the flowcharts of FIGS. 9A to 9F will be described.

ICカード2は、GET DATAコマンドを受信し、P1P2から拡張を示す値を検出しなければ(ST901、NO)、P1P2で指定されたTAGをカレントDF又はカレントEFの配下から検索する(ST902)。ICカード2は、指定されたTAGを見つけられなければ(ST903、NO)、エラーを示すSW(Status Word)を出力する(ST904)。ICカード2は、指定されたTAGを見つけたら(ST903、YES)、見つけたTAGのデータを含むレスポンスデータを設定し(ST905)、SW=9000、及びレスポンスデータを出力する(ST906)。   If IC card 2 receives the GET DATA command and does not detect a value indicating expansion from P1P2 (ST901, NO), IC card 2 searches TAG specified by P1P2 from the subordinate of current DF or current EF (ST902). If IC card 2 cannot find the designated TAG (NO in ST903), it outputs SW (Status Word) indicating an error (ST904). When IC card 2 finds the specified TAG (ST903, YES), it sets response data including the data of the found TAG (ST905), and outputs SW = 9000 and response data (ST906).

ICカード2は、GET DATAコマンドを受信し、P1P2から拡張を示す値を検出し(ST901、YES)、識別子から構造化データオブジェクトの指定を検出せず(ST907、NO)、識別子からカード全体の検索の指定を検出しなければ(ST908、NO)、エラーを示すSWを出力する(ST909)。ICカード2が、識別子からカード全体の検索の指定を検出すると(ST908、NO)、P1P2指定されたTAGをカード全体で検索する(ST910)。ICカード2は、指定されたTAGを見つけられなければ(ST911、NO)、エラーを示すSWを出力する(ST912)。ICカード2は、指定されたTAGを見つけたら(ST911、YES)、見つけたTAGのデータを含むレスポンスデータを設定し(ST913)、SW=9000、及びレスポンスデータを出力する(ST914)。   The IC card 2 receives the GET DATA command, detects the value indicating the extension from P1P2 (ST901, YES), does not detect the designation of the structured data object from the identifier (ST907, NO), and determines the entire card from the identifier. If no search designation is detected (NO in ST908), an SW indicating an error is output (ST909). When the IC card 2 detects designation of the entire card search from the identifier (ST908, NO), it searches the entire card for the TAG designated by P1P2 (ST910). If the IC card 2 cannot find the designated TAG (ST911, NO), it outputs an SW indicating an error (ST912). When the IC card 2 finds the designated TAG (ST911, YES), it sets response data including the data of the found TAG (ST913), and outputs SW = 9000 and response data (ST914).

ICカード2は、GET DATAコマンドを受信し、P1P2から拡張を示す値を検出し(ST901、YES)、識別子から構造化データオブジェクトの指定を検出し(ST907、YES)、識別子からカード全体の検索の指定を検出すると(ST915、YES)、識別子の直後のTAGを指定する(ST916)。指定されたTAGがConstructed data objectを示さなければ(ST917、NO)、ICカード2は、次のTAGへポインタを移動し、指定されたTAGをカード全体で検索する(ST919)。ICカード2は、指定されたTAGを見つけられず(ST920、NO)、識別子から指定されたすべてのTAGが存在して初めてレスポンスデータを出力することが要求されていれば(ST921、YES)、エラーを示すSWを出力する(ST922)。ICカード2は、指定されたTAGを見つけたら(ST920、YES)、見つけたTAGのデータを含むレスポンスデータを設定し(ST923)、次のTAGへポインタを移動する(ST924)。最後のTAGであれば(ST925、YES)、ICカード2は、SW=9000、及びレスポンスデータを出力する(ST926)最後のTAGでなく(ST925、NO)、指定されたTAGがConstructed data objectを示すならば(ST927、YES)、ICカード2は、次のTAGへポインタを移動し(ST928)、ST918の処理へ移行する。   The IC card 2 receives the GET DATA command, detects the value indicating the extension from P1P2 (ST901, YES), detects the designation of the structured data object from the identifier (ST907, YES), and searches the entire card from the identifier. Is detected (ST915, YES), the TAG immediately after the identifier is designated (ST916). If the designated TAG does not indicate a Constructed data object (ST917, NO), the IC card 2 moves the pointer to the next TAG and searches for the designated TAG in the entire card (ST919). If the IC card 2 cannot find the specified TAG (ST920, NO) and is requested to output response data only when all the tags specified by the identifier exist (ST921, YES), SW indicating an error is output (ST922). When IC card 2 finds the designated TAG (ST920, YES), it sets response data including the data of the found TAG (ST923), and moves the pointer to the next TAG (ST924). If it is the last TAG (ST925, YES), the IC card 2 outputs SW = 9000 and response data (ST926), not the last TAG (ST925, NO), and the designated TAG has a Constructed data object. If it is shown (ST927, YES), the IC card 2 moves the pointer to the next TAG (ST928), and proceeds to the processing of ST918.

ICカード2は、GET DATAコマンドを受信し、P1P2から拡張を示す値を検出し(ST901、YES)、識別子から構造化データオブジェクトの指定を検出し(ST907、YES)、識別子からカード全体の検索の指定を検出しなければ(ST915、NO)、識別子の直後のTAGを指定する(ST936)。以下、ICカード2は、ST916〜ST928と同様に、ST936以降の処理を実行する。   The IC card 2 receives the GET DATA command, detects the value indicating the extension from P1P2 (ST901, YES), detects the designation of the structured data object from the identifier (ST907, YES), and searches the entire card from the identifier. Is not detected (ST915, NO), the TAG immediately after the identifier is designated (ST936). Thereafter, the IC card 2 executes the processing after ST936 in the same manner as ST916 to ST928.

以下、本実施形態をまとめる。   The present embodiment will be summarized below.

(1)ICカード2は、内部にデータを保持し、外部から指示される命令を解釈・実行し、その結果を提示する。このようなICカード2は、値領域の種別を示すデータ(タグ領域)、値領域のデータ長(長さ領域)、及び値領域の三種のデータで構成されるデータオブジェクトを処理する命令を受信し、命令に対応する処理を実行し、命令に対応する応答を返信する。ICカード2は、命令に含まれた指定種別情報に基づき、内部の全データを対象に検索を実施して、指定種別情報に合致するデータオブジェクトを探し、命令に含まれた処理内容に基づきデータオブジェクトを処理する。 (1) The IC card 2 holds data therein, interprets and executes a command instructed from the outside, and presents the result. Such an IC card 2 receives a command for processing a data object composed of three types of data, ie, data indicating the type of the value area (tag area), the data length of the value area (length area), and the value area. Then, processing corresponding to the command is executed, and a response corresponding to the command is returned. The IC card 2 performs a search for all internal data based on the specified type information included in the command, searches for data objects that match the specified type information, and performs data processing based on the processing content included in the command. Process the object.

(2)ICカード2は、内部にデータを保持し、外部から指示される命令を解釈・実行し、その結果を提示する。このようなICカード2は、値領域の種別を示すデータ(タグ領域)、値領域のデータ長(長さ領域)、及び値領域の三種のデータで構成されるデータオブジェクトを処理する命令を受信し、命令に対応する処理を実行し、命令に対応する応答を返信する。ICカード2は、命令に含まれた複数の指定種別情報に基づき、内部の全データを対象に検索を実施して、指定種別情報に合致する複数のデータオブジェクトを探し、命令に含まれた処理内容(構造体データフォーマットの指定)に基づき複数のデータオブジェクトを指定されたデータフォーマット(構造体データフォーマット)で出力する。 (2) The IC card 2 holds data therein, interprets and executes a command instructed from the outside, and presents the result. Such an IC card 2 receives a command for processing a data object composed of three types of data, ie, data indicating the type of the value area (tag area), the data length of the value area (length area), and the value area. Then, processing corresponding to the command is executed, and a response corresponding to the command is returned. The IC card 2 searches all internal data based on a plurality of designated type information included in the command, searches for a plurality of data objects that match the specified type information, and performs processing included in the command. Based on the contents (designation of structure data format), a plurality of data objects are output in the designated data format (structure data format).

また、ICカード製造方法により、ICカード製造装置が、上記説明したICカード2を製造する。例えば、ICカード製造装置は、通信I/F201、CPU204、データメモリ205、RAM206、ROM207等により構成されるICモジュール20を製造し、さらに、プラスティックカード(基材)2a及びICモジュール20により構成されるICカード2を製造する。   Further, the IC card manufacturing apparatus manufactures the IC card 2 described above by the IC card manufacturing method. For example, the IC card manufacturing apparatus manufactures the IC module 20 including the communication I / F 201, the CPU 204, the data memory 205, the RAM 206, the ROM 207, and the like, and further includes the plastic card (base material) 2a and the IC module 20. IC card 2 is manufactured.

また、ICカード発行方法により、ICカード発行装置が、上記説明したICカード2を発行する。例えば、ICカード発行装置は、上記ICカード製造装置により製造されたICカード2のデータメモリ205に発行情報を書き込み、ICカードを発行する。発行情報とは、例えば個人情報である。   Further, the IC card issuing device issues the IC card 2 described above by the IC card issuing method. For example, the IC card issuing device writes the issue information in the data memory 205 of the IC card 2 manufactured by the IC card manufacturing device and issues the IC card. The issue information is, for example, personal information.

本発明のいくつかの実施形態を説明したが、これらの実施形態は、例として提示したものであり、発明の範囲を限定することは意図していない。これら実施形態は、その他の様々な形態で実施されることが可能であり、発明の要旨を逸脱しない範囲で、種々の省略、置き換え、変更を行うことができる。これら実施形態やその変形は、発明の範囲や要旨に含まれると同様に、特許請求の範囲に記載された発明とその均等の範囲に含まれるものである。   Although several embodiments of the present invention have been described, these embodiments are presented by way of example and are not intended to limit the scope of the invention. These embodiments can be implemented in various other forms, and various omissions, replacements, and changes can be made without departing from the spirit of the invention. These embodiments and their modifications are included in the scope and gist of the invention, and are also included in the invention described in the claims and the equivalents thereof.

1…端末、2…ICカード、14…カードリーダ/ライタ、20…ICモジュール、201…通信I/F、204…CPU、205…データメモリ、206…RAM、207…ROM DESCRIPTION OF SYMBOLS 1 ... Terminal, 2 ... IC card, 14 ... Card reader / writer, 20 ... IC module, 201 ... Communication I / F, 204 ... CPU, 205 ... Data memory, 206 ... RAM, 207 ... ROM

Claims (11)

ICモジュール及び基材により構成されるICカードであって、
前記ICモジュールは、
値領域の種別を示す種別情報、値領域のデータ長を示すデータ長情報、及び値領域により構成されるデータオブジェクトを含む複数ファイルを記憶する記憶手段と、
検索対象データオブジェクトを指定する指定種別情報を含む命令を受信する通信手段と、
前記命令に含まれた前記指定種別情報に基づき、前記記憶された複数ファイルの中から、前記検索対象データオブジェクトを検索する処理手段と、
を備えるICカード。
An IC card composed of an IC module and a base material,
The IC module is
Storage means for storing a plurality of files including type information indicating the type of the value area, data length information indicating the data length of the value area, and a data object composed of the value area;
A communication means for receiving a command including designated type information for designating a search target data object;
Processing means for searching for the search target data object from the plurality of stored files based on the specified type information included in the command;
IC card equipped with.
前記処理手段は、前記命令に含まれた全体検索の指定に基づき、前記記憶された複数ファイルの中から、前記検索対象データオブジェクトを検索する請求項1のICカード。   2. The IC card according to claim 1, wherein the processing unit searches the search target data object from the plurality of stored files based on designation of an entire search included in the command. 前記記憶手段は、主ファイル、前記主ファイルに属する複数の専用ファイル、及び各専用ファイルに属する基礎ファイルを記憶し、
前記処理手段は、前記記憶された複数の専用ファイル及び各専用ファイルに属する前記基礎ファイルの中から、前記検索対象データオブジェクトを検索する請求項1又は2のICカード。
The storage means stores a main file, a plurality of dedicated files belonging to the main file, and a basic file belonging to each dedicated file;
3. The IC card according to claim 1, wherein the processing unit searches the search target data object from the plurality of stored dedicated files and the basic files belonging to the dedicated files. 4.
前記通信手段は、前記検索された前記検索対象データオブジェクトを含むレスポンスデータを送信する請求項1乃至3の何れか1つのICカード。   4. The IC card according to claim 1, wherein the communication unit transmits response data including the searched data object to be searched. 前記処理手段は、前記命令に含まれた複数の指定種別情報に基づき、前記複数ファイルの中から、複数の検索対象データオブジェクトを検索し、前記複数の検索対象データオブジェクトを含む所定フォーマットのレスポンスデータを生成し、
前記通信手段は、前記レスポンスデータを送信する請求項1乃至4の何れか1つのICカード。
The processing means searches for a plurality of search target data objects from the plurality of files based on a plurality of specified type information included in the command, and response data in a predetermined format including the plurality of search target data objects Produces
The IC card according to claim 1, wherein the communication unit transmits the response data.
前記処理手段は、前記命令に含まれた構造化データオブジェクトの指定に基づき、前記複数の検索対象データオブジェクトを含む構造化データオブジェクトを生成し、
前記通信手段は、前記構造化データオブジェクトに対応する前記レスポンスデータを送信する請求項5のICカード。
The processing means generates a structured data object including the plurality of search target data objects based on the designation of the structured data object included in the instruction,
6. The IC card according to claim 5, wherein the communication means transmits the response data corresponding to the structured data object.
前記通信手段は、第1の種別情報、第1のデータ長情報、及び前記複数の検索対象データオブジェクトを含む第1の値領域により構成される前記構造化データオブジェクトに対応する前記レスポンスデータを出力する請求項6のICカード。   The communication means outputs the response data corresponding to the structured data object including first type information, first data length information, and a first value area including the plurality of search target data objects. The IC card according to claim 6. 前記構造化データオブジェクトの前記値領域に含まれる第1の検索対象データオブジェクトは、第2の種別情報、第2のデータ長情報、及び第2の値情報を含み、
前記構造化データオブジェクトの前記値領域に含まれる第2の検索対象データオブジェクトは、第3の種別情報、第3のデータ長情報、及び第3の値情報を含む請求項7のICカード。
The first search target data object included in the value area of the structured data object includes second type information, second data length information, and second value information,
The IC card according to claim 7, wherein the second search target data object included in the value area of the structured data object includes third type information, third data length information, and third value information.
ICモジュール及び基材により構成されるICカードの製造方法であって、
前記ICモジュールは、
値領域の種別を示す種別情報、値領域のデータ長を示すデータ長情報、及び値領域により構成されるデータオブジェクトを含む複数ファイルを記憶する記憶手段と、
検索対象データオブジェクトを指定する指定種別情報を含む命令を受信する通信手段と、
前記命令に含まれた前記指定種別情報に基づき、前記記憶された複数ファイルの中から、前記検索対象データオブジェクトを検索する処理手段と、
を備えるICカードの製造方法。
An IC card manufacturing method comprising an IC module and a base material,
The IC module is
Storage means for storing a plurality of files including type information indicating the type of the value area, data length information indicating the data length of the value area, and a data object composed of the value area;
A communication means for receiving a command including designated type information for designating a search target data object;
Processing means for searching for the search target data object from the plurality of stored files based on the specified type information included in the command;
An IC card manufacturing method comprising:
ICモジュール及び基材により構成されるICカードに対して発行情報を記憶し、前記ICカードを発行するICカードの発行方法であって、
前記ICモジュールは、
前記発行情報を記憶するとともに、値領域の種別を示す種別情報、値領域のデータ長を示すデータ長情報、及び値領域により構成されるデータオブジェクトを含む複数ファイルを記憶する記憶手段と、
検索対象データオブジェクトを指定する指定種別情報を含む命令を受信する通信手段と、
前記命令に含まれた前記指定種別情報に基づき、前記記憶された複数ファイルの中から、前記検索対象データオブジェクトを検索する処理手段と、
を備えるICカードの発行方法。
An issuance method of an IC card that stores issuance information for an IC card constituted by an IC module and a base material and issues the IC card,
The IC module is
Storage means for storing the issue information, and storing a plurality of files including type information indicating the type of the value area, data length information indicating the data length of the value area, and a data object composed of the value area;
A communication means for receiving a command including designated type information for designating a search target data object;
Processing means for searching for the search target data object from the plurality of stored files based on the specified type information included in the command;
IC card issuing method comprising:
ICモジュール及び基材により構成されるICカードによる情報処理方法であって、
検索対象データオブジェクトを指定する指定種別情報を含む命令を受信し、
前記命令に含まれた前記指定種別情報に基づき、値領域の種別を示す種別情報、値領域のデータ長を示すデータ長情報、及び値領域により構成されるデータオブジェクトを含む複数ファイルの中から、前記検索対象データオブジェクトを検索する情報処理方法。
An information processing method using an IC card composed of an IC module and a base material,
Receives an instruction containing the specified type information that specifies the search object data object,
Based on the specified type information included in the command, from among a plurality of files including type information indicating the type of the value area, data length information indicating the data length of the value area, and a data object composed of the value area, An information processing method for searching for the search target data object.
JP2012015417A 2012-01-27 2012-01-27 IC card Active JP5889653B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2012015417A JP5889653B2 (en) 2012-01-27 2012-01-27 IC card

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2012015417A JP5889653B2 (en) 2012-01-27 2012-01-27 IC card

Publications (2)

Publication Number Publication Date
JP2013156742A true JP2013156742A (en) 2013-08-15
JP5889653B2 JP5889653B2 (en) 2016-03-22

Family

ID=49051879

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2012015417A Active JP5889653B2 (en) 2012-01-27 2012-01-27 IC card

Country Status (1)

Country Link
JP (1) JP5889653B2 (en)

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2015060406A (en) * 2013-09-18 2015-03-30 株式会社東芝 Ic card, information processing method, information storage medium, and information processing program
JP2017027200A (en) * 2015-07-17 2017-02-02 大日本印刷株式会社 Ic card and method for reading data object
WO2024062816A1 (en) * 2022-09-20 2024-03-28 株式会社東芝 Mobile electronic device, control method for same, and recording medium

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2001034512A (en) * 1999-07-23 2001-02-09 Toshiba Corp Portable electronic device
WO2007004525A1 (en) * 2005-07-05 2007-01-11 Matsushita Electric Industrial Co., Ltd. Readout data length specification method
JP2010009467A (en) * 2008-06-30 2010-01-14 Toshiba Corp Information storage medium, information processing system, and command method
US20110016274A1 (en) * 2009-07-15 2011-01-20 Kabushiki Kaisha Toshiba Portable electronic device, smartcard and control method for portable electronic device
JP2011191808A (en) * 2010-03-11 2011-09-29 Toshiba Corp Mobile electronic apparatus, ic card, and control method for the mobile electronic apparatus

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2001034512A (en) * 1999-07-23 2001-02-09 Toshiba Corp Portable electronic device
WO2007004525A1 (en) * 2005-07-05 2007-01-11 Matsushita Electric Industrial Co., Ltd. Readout data length specification method
JP2010009467A (en) * 2008-06-30 2010-01-14 Toshiba Corp Information storage medium, information processing system, and command method
US20110016274A1 (en) * 2009-07-15 2011-01-20 Kabushiki Kaisha Toshiba Portable electronic device, smartcard and control method for portable electronic device
JP2011191808A (en) * 2010-03-11 2011-09-29 Toshiba Corp Mobile electronic apparatus, ic card, and control method for the mobile electronic apparatus

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2015060406A (en) * 2013-09-18 2015-03-30 株式会社東芝 Ic card, information processing method, information storage medium, and information processing program
JP2017027200A (en) * 2015-07-17 2017-02-02 大日本印刷株式会社 Ic card and method for reading data object
WO2024062816A1 (en) * 2022-09-20 2024-03-28 株式会社東芝 Mobile electronic device, control method for same, and recording medium

Also Published As

Publication number Publication date
JP5889653B2 (en) 2016-03-22

Similar Documents

Publication Publication Date Title
JP5889653B2 (en) IC card
JP5624685B2 (en) IC card and IC card processing system
US20120235796A1 (en) Ic card, portable electronic device, ic card issuing apparatus, and communication method
US8977824B2 (en) Portable electronic apparatus and method of controlling a portable electronic apparatus
JP5301018B2 (en) Portable electronic device
EP2500820B1 (en) IC card, portable electronic device, IC card issuing apparatus, and command execution method
US9557934B2 (en) IC card, information processing method, computer readable recording medium and program
JP2014006631A (en) Ic card and portable electronic device
JP5728323B2 (en) IC card and portable electronic device
JP2012133656A (en) Portable electronic apparatus and ic card
JP4738249B2 (en) Portable electronic device, IC card and IC module
JP2011191808A (en) Mobile electronic apparatus, ic card, and control method for the mobile electronic apparatus
JP2011198106A (en) Portable electronic device
JP6750450B2 (en) Electronic information storage medium, data transmission method, IC card, and data transmission program
JP2008242998A (en) Ic card
JP5075404B2 (en) Portable electronic device, file access method and IC card in portable electronic device
JP5417355B2 (en) Portable electronic device, information processing method, and IC card
JP2013171394A (en) Ic card, manufacturing method of ic card, issuance method of ic card, and information processing method
JP2014063345A (en) Ic card, portable electronic device, and information processing method
JP2014063304A (en) Ic card and portable electronic equipment
JP2015133074A (en) Ic card and ic card control method
JP2014186378A (en) Ic card and portable electronic device

Legal Events

Date Code Title Description
RD04 Notification of resignation of power of attorney

Free format text: JAPANESE INTERMEDIATE CODE: A7424

Effective date: 20131205

RD04 Notification of resignation of power of attorney

Free format text: JAPANESE INTERMEDIATE CODE: A7424

Effective date: 20131212

RD04 Notification of resignation of power of attorney

Free format text: JAPANESE INTERMEDIATE CODE: A7424

Effective date: 20131219

RD04 Notification of resignation of power of attorney

Free format text: JAPANESE INTERMEDIATE CODE: A7424

Effective date: 20131226

RD04 Notification of resignation of power of attorney

Free format text: JAPANESE INTERMEDIATE CODE: A7424

Effective date: 20140109

A621 Written request for application examination

Free format text: JAPANESE INTERMEDIATE CODE: A621

Effective date: 20141017

A977 Report on retrieval

Free format text: JAPANESE INTERMEDIATE CODE: A971007

Effective date: 20150728

A131 Notification of reasons for refusal

Free format text: JAPANESE INTERMEDIATE CODE: A131

Effective date: 20150804

A521 Written amendment

Free format text: JAPANESE INTERMEDIATE CODE: A523

Effective date: 20151005

TRDD Decision of grant or rejection written
A01 Written decision to grant a patent or to grant a registration (utility model)

Free format text: JAPANESE INTERMEDIATE CODE: A01

Effective date: 20160119

A61 First payment of annual fees (during grant procedure)

Free format text: JAPANESE INTERMEDIATE CODE: A61

Effective date: 20160217

R151 Written notification of patent or utility model registration

Ref document number: 5889653

Country of ref document: JP

Free format text: JAPANESE INTERMEDIATE CODE: R151

S111 Request for change of ownership or part of ownership

Free format text: JAPANESE INTERMEDIATE CODE: R313114

Free format text: JAPANESE INTERMEDIATE CODE: R313111

R350 Written notification of registration of transfer

Free format text: JAPANESE INTERMEDIATE CODE: R350