ELECTRONIC INFORMATION STORAGE MEDIUM, IC CHIP, IC CARD, ELEMENT DATA STORAGE METHOD, AND PROGRAM

The IC chip efficiently verifies essential element data personalization status by multiple command storage and error processing, addressing inefficiencies in existing IC chip personalization processes and reducing code size.

JP7559916B1Active Publication Date: 2024-10-02DAI NIPPON PRINTING CO LTD
View PDF 4 Cites 0 Cited by

Patent Information

Application Number
JP2023213840
Authority / Receiving Office
JP · JP
Patent Type
Patents
Current Assignee / Owner
Filing Date
2023-12-19
Publication Date
2024-10-02
Estimated Expiration
2043-12-19

AI Technical Summary

Technical Problem

Existing IC chip personalization processes face inefficiencies in checking the personalization status of essential element data, leading to potential unexpected behavior and increased code size due to complex verification processes.

Method used

An electronic information storage medium and IC chip that efficiently check the personalization status of essential element data by receiving and storing commands multiple times, determining the last command, and executing error processing if all essential data is not stored, using arrays or objects to manage data storage and verification.

Benefits of technology

This approach allows for efficient verification of essential element data personalization status, preventing shipment of uninitialized data and reducing code size, thereby ensuring reliable IC chip operation and simplifying the personalization process.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure 0007559916000001_ABST
    Figure 0007559916000001_ABST
Patent Text Reader

Abstract

Provided are an electronic information storage medium, an IC chip, an IC card, an element data storage method, and a program that enable more efficient checking of the personalization status of a plurality of essential element data that are essential for personalization. [Solution] The IC chip 1 stores the element data contained in a Store Data command in a memory area each time the command is received, and when the Last Store Data command is received, it determines whether all of the multiple required element data required for personalization have been stored in the memory area, and if it determines that all of the required element data have not been stored in the memory area, it executes error processing.
Need to check novelty before this filing date? Find Prior Art

Description

[Technical field]

[0001] The present invention relates to a technical field such as an issuing process for writing element data of an application on an IC (Integrated Circuit) chip. [Background technology]

[0002] Conventionally, an issuance process is performed to write element data of an application that runs on an IC chip in a personalization process of the application. For example, Patent Document 1 discloses an IC card technology that can simplify the issuance process. According to the technology of Patent Document 1, when an IC card receives an issuance command from a terminal, it checks whether all identifiers of data that need to be set have been set, and if all have been set, it transmits an identifier indicating that issuance has been completed and a status word indicating success to the terminal. Then, when the terminal receives the identifier indicating that issuance has been completed, it transmits an issuance command indicating that this is the final issuance command to the IC card in order to complete the issuance. [Prior art documents] [Patent documents]

[0003] [Patent Document 1] Patent No. 6352609 Summary of the Invention [Problem to be solved by the invention]

[0004] Meanwhile, applications that run on IC chips include mandatory element data that is mandatory for personalization and optional element data that is not mandatory for personalization. For example, in the case of a credit application, the basic element data used in payment is mandatory for personalization, while the optional element data is not mandatory for personalization. If an IC chip is shipped without the mandatory element data that is mandatory for personalization being written, the mandatory element data that is not initialized will be accessed when the application is actually used, which may result in unexpected behavior. To prevent such problems, it is necessary to check the personalization status of the mandatory element data that is mandatory for personalization during the personalization process, but this process is cumbersome and leads to an increase in code size.

[0005] Therefore, the present invention has been made in consideration of these points and the like, and one example of an objective of the present invention is to provide an electronic information storage medium, an IC chip, an IC card, an element data storage method, and a program that enable more efficient checking of the personalization status of multiple required element data that are required for personalization. [Means for solving the problem]

[0006] In order to solve the above problem, the invention described in claim 1 is an electronic information storage medium that receives a command including element data for personalizing an application from an external device multiple times, and is characterized in that it comprises: a storage means for storing the element data included in the command in a memory area referenced by the application each time the command is received from the external device; a first judgment means for judging whether the command received from the external device is the last command; a second judgment means for judging whether a plurality of essential element data necessary for the application to operate normally have all been stored in the memory area when the first judgment means judges that the command is the last command; and an error processing means for executing error processing when the second judgment means judges that the essential element data have not all been stored in the memory area.

[0007] The invention described in claim 2 is characterized in that, in the electronic information storage medium described in claim 1, the memory area is composed of a plurality of arrays, each of the arrays includes a plurality of elements capable of storing a predetermined number of bytes of data, the electronic information storage medium pre-stores a list of required element data describing references to the arrays in which each of the plurality of required element data is to be stored, the storage means stores the element data included in the command and a flag indicating that the element data has already been stored in an element of a predetermined array each time the command is received from the external device, and when the first determination means determines that the command is the last command, the second determination means accesses each of the arrays based on the references to each of the arrays described in the required element data list and checks whether the flag is stored in the element of each of the arrays to determine whether all of the plurality of required element data have been stored in the memory area.

[0008] The invention described in claim 3 is characterized in that, in the electronic information storage medium described in claim 1, the electronic information storage medium pre-stores a list of required element data describing references to objects in which each of the multiple required element data is to be stored, and the storage means generates an object that stores the element data contained in the command each time the command is received from the external device, and when the first determination means determines that the command is the last command, the second determination means determines whether all of the multiple required element data have been stored in the memory area by accessing each of the objects based on the references to each of the objects described in the required element data list and confirming whether each of the objects has been generated.

[0009] The invention described in claim 4 is the electronic information storage medium described in any one of claims 1 to 3, before The required data includes the above In application Contains element data required for optional features. and when an optional function in the application is set to on when the application is installed, the second determination means determines whether or not all of the required element data including element data necessary for the optional function have been stored in the memory area. It is characterized by:

[0010] The invention described in claim 5 is an IC chip that receives a command including element data for personalizing an application from an external device multiple times, and is characterized in that it comprises: a storage means for storing the element data included in the command in a memory area referenced by the application each time the command is received from the external device; a first judgment means for judging whether the command received from the external device is the last command; a second judgment means for judging whether a plurality of essential element data necessary for the application to operate normally have all been stored in the memory area when the first judgment means judges that the command is the last command; and an error processing means for executing error processing when the second judgment means judges that the essential element data have not all been stored in the memory area.

[0011] The invention described in claim 6 is an IC card that receives a command including element data for personalizing an application from an external device multiple times, and is characterized in that it comprises a storage means for storing the element data included in the command in a memory area referenced by the application each time the command is received from the external device, a first judgment means for judging whether the command received from the external device is the last command, a second judgment means for judging whether a plurality of essential element data necessary for the application to operate normally have all been stored in the memory area when the first judgment means judges that the command is the last command, and an error processing means for executing error processing when the second judgment means judges that the essential element data have not all been stored in the memory area.

[0012] The invention described in claim 7 is an element data storage method executed by an electronic information storage medium that receives a command including element data for personalizing an application from an external device multiple times, comprising the steps of: storing the element data included in the command in a memory area referenced by the application each time the command is received from the external device; determining whether the command received from the external device is the last command; if it is determined that the command is the last command, determining whether all of a plurality of required element data necessary for the application to operate normally have been stored in the memory area; and if it is determined that all of the required element data have not been stored in the memory area, executing error processing.

[0013] The invention described in claim 8 is characterized in that a computer included in an electronic information storage medium that receives a command including element data for personalizing an application from an external device multiple times executes the following steps: storing the element data included in the command in a memory area referenced by the application each time the command is received from the external device; determining whether the command received from the external device is the last command; if it is determined that the command is the last command, determining whether all of a plurality of required element data necessary for the application to operate normally have been stored in the memory area; and if it is determined that all of the required element data have not been stored in the memory area, executing error processing. Effect of the Invention

[0014] According to the present invention, it is possible to more efficiently check the personalization status of a plurality of essential element data items that are essential for personalization. [Brief description of the drawings]

[0015] [Figure 1] 2 is a diagram illustrating an example of a hardware configuration of an IC chip 1. FIG. [Diagram 2] FIG. 13 is a diagram showing an example of an array for storing element data. [Diagram 3] FIG. 13 is a diagram showing an example of a required element data list. [Figure 4] 13 is a diagram showing an example of the data structure of a Store Data command for issuing element data A. FIG. [Diagram 5] 13 is a diagram showing an example of the data structure of a Store Data command when one DGI corresponds to a plurality of element data. FIG. [Figure 6] 10 is a flowchart showing an example of an issuing process executed by a CPU 15 of the IC chip 1. DETAILED DESCRIPTION OF THE PREFERRED EMBODIMENTS

[0016] Hereinafter, an embodiment of the present invention will be described in detail with reference to the drawings.

[0017] [1. Configuration and Function of IC Chip 1] First, the configuration and functions of an IC chip 1 according to this embodiment will be described with reference to Fig. 1. The IC chip 1 is an example of an electronic information storage medium of the present invention. The IC chip 1 is mounted on, for example, an IC card such as a credit card, a cash card, or a My Number card, or a mobile device such as a smartphone. In the case of a mobile device such as a smartphone, the IC chip 1 may be mounted on a small IC card that is detachable from the mobile device, or may be mounted on an embedded board as an eUICC (Embedded Universal Integrated Circuit Card) so that it cannot be easily removed or replaced from the mobile device.

[0018] FIG. 1 is a diagram showing an example of a hardware configuration of an IC chip 1. As shown in FIG. 1, the IC chip 1 includes an I / O circuit 11, a random access memory (RAM) 12, a nonvolatile memory (NVM) 13, a read only memory (ROM) 14, a central processing unit (CPU) 15 (an example of a computer), and a coprocessor 16 that performs cryptographic operations. The I / O circuit 11 serves as an interface with an external device 2. Note that communication between the IC chip 1 and the external device 2 may be non-contact communication or contact communication. In the case of non-contact communication, the IC chip 1 and the external device 2 communicate with each other via an antenna (not shown) mounted on an IC card or a mobile device, for example. Note that an example of the external device 2 is an issuing device (issuing terminal) in a factory.

[0019] For example, a flash memory is applied to the NVM 13. The NVM 13 may be an "Electrically Erasable Programmable Read-Only Memory". The NVM 13 or the ROM 14 stores various programs (including the program of the present invention) such as an OS (Operating System) and one or more applications (for example, a Java (registered trademark) Card application). The NVM 13 is provided with a memory area referenced by the application. A plurality of element data of the application is stored in the memory area. A DGI (Data Grouping Identifier) ​​is assigned to each element data. The plurality of element data includes essential element data that is essential for personalization (i.e., necessary for the application to operate normally) and optional element data that is not essential for personalization. An example of the essential element data is personal information (for example, a membership number) of the user of the IC chip 1. In addition, when the IC chip 1 is used as a credit card, an example of the essential element data is an upper limit of the cumulative payment amount offline, an upper limit of the payment amount in one payment, and the like.

[0020] For example, the memory area may be composed of a plurality of arrays (byte arrays). For example, when an application is installed, an array for storing element data of the application is created in the memory area. In other words, an array for writing element data to the application is created. The array can be said to be a container for element data to be transmitted by the external device 2 later. The size of the array is determined, for example, by the length (data length) of the element data, and is set when the application is installed. Each array is composed of a plurality of elements (hereinafter referred to as "array elements") capable of storing a predetermined number of bytes (for example, 1 byte) of data. Each array element is assigned a different index. For example, the first array element is assigned index [0], the next array element is assigned index [1], the next array element is assigned index [2], and so on, with the index value being incremented by 1.

[0021] For example, one piece of element data is stored in one array, and the element data may be divided into the above-mentioned predetermined number of bytes according to its length and stored in multiple array elements. Furthermore, any one of the array elements in one array (for example, the first array element) is used to store an issue status flag indicating whether the element data to be stored in the array has already been stored. For example, an issue status flag of "01 (h: hexadecimal)" indicates that the element data has already been stored, and an issue status flag of "00 (h)" indicates that the element data has not yet been stored. An array with an issue status flag of "00 (h)" does not yet store element data, and a default value according to the length of the element data is stored.

[0022] Fig. 2 is a diagram showing an example of an array for storing element data. Fig. 2(A) shows array A for storing element data A, in which the first array element (index [0]) stores an issue status flag "01(h)", and the subsequent array elements (indexes [1] to

[10] ) store element data A (112233445566778899AA(h)). On the other hand, Fig. 2(B) shows array B for storing element data B, in which the first array element (index [0]) stores an issue status flag "00(h)", and therefore the subsequent array elements (indexes [1] to [5]) do not yet store element data B, but store a default value (0000000000(h)). On the other hand, Figure 2(C) shows array C for storing element data C, where the first array element (index [0]) stores the issue status flag “01(h)”, and the subsequent array elements (indexes [1] to [5]) store element data C (1000000000(h)).

[0023] Furthermore, NVM 13 stores in advance a required element data list (e.g., table data) describing a reference to an array in which each of a plurality of required element data should be stored. For example, the required element data list is stored when an application is installed. The array reference indicates, for example, the address of the array in a memory area. FIG. 3 is a diagram showing an example of a required element data list. In the required element data list shown in FIG. 3, the first to third table elements (rows) describe references to arrays A to C. That is, in this example, element data A to C shown in FIGS. 2(A) to (C) are required element data.

[0024] Each element data may be stored in an object (entity) generated (instantiated) from a class (design). An object is composed of a plurality of properties, each of which has a key and a value pair. Here, the above-mentioned element data is stored in the value. The object applied in this embodiment is not generated when an application is installed, but is generated when the element data is transmitted by the external device 2. In this case, by checking whether an object that stores a certain element data has already been generated, it is possible to determine whether the element data has already been stored (in other words, already issued or personalized). In this case, a required element data list that describes the reference of an object in which each of a plurality of required element data should be stored is stored in advance in the NVM 13. The reference of an object indicates, for example, the address of the object in a memory area. The references of arrays A to C shown in the required element data list shown in FIG. 3 can be directly replaced with objects A to C.

[0025] The CPU 15 (an example of a computer) executes the program of the present invention stored in the NVM 13, thereby functioning as the storage means, the first judgment means, the second judgment means, the error processing means, and the like of the present invention. The CPU 15 receives a command including element data for personalizing an application from the external device 2 multiple times. For example, a Store Data command APDU (Application Protocol Data Unit) defined in ISO / IEC 7816 can be applied to such a command. The Store Data command APDU (hereinafter simply referred to as the "Store Data command") is composed of a header section including a CLA indicating a command class (instruction class), an INS indicating a command code (instruction code), and P1 and P2 indicating command parameters (instruction parameters), and a body section including element data. For example, the body section includes a DGI (e.g., 2 bytes) added to the element data, the length of the element data (e.g., 1 or 3 bytes), and the element data itself. Note that P1 of the header section includes a bit ("1" or "0") indicating whether the Store Data command is the last Store Data command (hereinafter referred to as the "Last Store Data command") or not.

[0026] Fig. 4 is a diagram showing an example of the data structure of a Store Data command for issuing element data A. In the body of the Store Data command shown in Fig. 4, the DGI "1234(h)" assigned to element data A, the length of element data A "0A(h)", and Data consisting of element data A are set. By interpreting the value of the DGI included in the received Store Data command, the CPU 15 can identify what the received element data is, and can specify the array to be stored or the object to be created. Note that one DGI may correspond to multiple element data.

[0027] 5 is a diagram showing an example of the data configuration of the Store Data command when one DGI corresponds to a plurality of element data. For example, the DGI "8000(h)" defined in the standard issuance specification of EMV (registered trademark) is used to transmit three types of encryption keys each having a length of 16 bytes together. In the body of the Store Data command shown in FIG. 5, the DGI "8000(h)" given to the element data X, the length of the element data X "30(h)", and Data consisting of the element data X "111...", "222...", and "333..." (three types of encryption keys) are set. The CPU 15 can identify that the received element data X is three types of encryption keys each having a length of 16 bytes by interpreting the DGI "8000(h)" included in the received Store Data command.

[0028] Each time a Store Data command is received, the CPU 15 stores the element data included in the command in the memory area. For example, the CPU 15 stores the element data included in the Store Data command and the issuance status flag "01(h)" indicating that the element data has been stored in an array element of a predetermined array in the memory area, as described above. Alternatively, the CPU 15 generates an object in the memory area that stores the element data included in the Store Data command. Then, the CPU 15 determines whether the Store Data command received from the external device 2 is the Last Store Data command (determined from the bit of P1), and if it determines that the Store Data command is the Last Store Data command, it determines whether all of the multiple required element data required for personalization have been stored in the memory area.

[0029] For example, the CPU 15 judges whether all the required element data are stored in the memory area by accessing each array based on the reference of each array described in the required element data list stored in the NVM 13 and checking whether the issuance status flag "01 (h)" is stored in the array element of each array. Alternatively, the CPU 15 judges whether all the required element data are stored in the memory area by accessing each object based on the reference of each object described in the required element data list stored in the NVM 13 and checking whether each object is generated. Then, when the CPU 15 judges that all the required element data are not stored in the memory area, it executes error processing. For example, in the error processing, the issuance processing is interrupted and a response APDU including a status word SW indicating an error is returned to the external device 2.

[0030] [2. Operation of IC chip 1] Next, the operation of the IC chip 1 according to this embodiment will be described with reference to Fig. 6. Fig. 6 is a flow chart showing an example of an issuing process executed by the CPU 15 of the IC chip 1. The process shown in Fig. 6 is started when the IC chip 1 receives a Store Data command from the external device 2 during a personalization process in a manufacturing factory for the IC chip 1, for example.

[0031] 6 starts, the CPU 15 stores the element data received by the Store Data command in a memory area (step S1). Next, the CPU 15 judges whether or not the received Store Data command is the Last Store Data command (step S2). If it is judged that the Store Data command is not the Last Store Data command (step S2: NO), a response APDU including a status word SW indicating normal termination is returned to the external device 2 (step S3), and the process goes into a standby state for the next Store Data command. On the other hand, if it is judged that the Store Data command is the Last Store Data command (step S2: YES), the process proceeds to step S4.

[0032] In step S4, CPU 15 sets N=1. Next, CPU 15 accesses the Nth table element in the required element data list stored in NVM 13, and acquires the personalized state of the required element data (e.g., an issuance status flag, or whether an object has been generated) (step S5). For example, CPU 15 accesses an array (or an object) based on an array reference (or object reference) described in the Nth table element, and acquires the personalized state of the required element data.

[0033] Next, the CPU 15 determines whether or not the required element data corresponding to the Nth table element has been stored in the memory area (in other words, has been issued or personalized) based on the personalized state acquired in step S5 (step S6). If it is determined that the required element data has not been stored in the memory area (step S6: NO), the above-mentioned error processing is executed (step S7), and the processing shown in Fig. 6 ends. On the other hand, if it is determined that the required element data has been stored in the memory area (step S6: YES), the processing proceeds to step S8.

[0034] In step S8, the CPU 15 judges whether or not all table elements in the required element data list have been accessed. If it is judged that all table elements in the required element data list have not been accessed (step S8: NO), N=N+1 is set (step S9), the process returns to step S5, and the same process as above is repeated. On the other hand, if it is judged that all table elements in the required element data list have been accessed (step S8: YES), a response APDU including a status word SW indicating normal termination is returned to the external device 2 (step S10). Next, the CPU 15 sets an issue completion state (step S11), and the process shown in FIG. 6 ends.

[0035] As described above, according to the above embodiment, the IC chip 1 stores the element data included in the Store Data command in the memory area every time the command is received, and when the Last Store Data command is received, it determines whether or not all of the required element data required for personalization are stored in the memory area, and if it determines that all of the required element data are not stored in the memory area, it executes error processing. This makes it possible to more efficiently check the personalization status of the required element data required for personalization. Furthermore, by executing error processing when the required element data required for personalization has not been stored, it is possible to prevent the IC chip 1 from being shipped in a state where the required element data for personalization is not yet initialized. Furthermore, according to the above embodiment, by using the required element data list, the size of the program code can be reduced compared to writing it in a program.

[0036] In the above embodiment, for example, when an optional function in the application is set to ON when the application is installed (that is, when the optional function of the application is personalized with an active setting), the required element data may include element data required for the optional function as semi-required element data. An example of an optional function is a function for recording log data. In this case, the required element data list described above describes a reference to an array (or object) in which the element data required for the optional function should be stored. Then, when the Last Store Data command is received, in the process shown in FIG. 6, the personalized state of the element data required for the optional function is acquired, and based on the acquired personalized state, it is determined whether the element data required for the optional function has been stored in the memory area. Then, when it is determined that the element data required for the optional function has not been stored in the memory area, the above-mentioned error process is executed. The reference to the array (or object) in which the element data required for the optional function should be stored may be configured to be stored in a semi-required element data list stored separately from the required element data list described above. [Explanation of symbols]

[0037] 1 IC chip 11 I / O circuit 12 RAM ( 13 NVM 14 ROM 15 CPU 16 Coprocessors

Claims

1. 1. An electronic information storage medium for receiving a command including element data for personalizing an application from an external device multiple times, comprising: a storage means for storing element data included in a command in a memory area referenced by the application each time the command is received from the external device; a first determination means for determining whether the command received from the external device is a final command; a second determination means for determining, when the first determination means determines that the command is a final command, whether or not all of a plurality of essential element data necessary for the application to operate normally have been stored in the memory area; an error processing means for executing an error process when the second determination means determines that all of the required element data are not stored in the memory area; An electronic information storage medium comprising:

2. the memory area is composed of a plurality of arrays, each of the arrays including a plurality of elements capable of storing a predetermined number of bytes of data; the electronic information storage medium prestores a list of essential element data describing references to the arrays in which each of the plurality of essential element data is to be stored; the storage means stores, each time the command is received from the external device, element data included in the command and a flag indicating that the element data has been stored in a predetermined element of the array; The electronic information storage medium according to claim 1, characterized in that when the first determination means determines that the command is the last command, the second determination means determines whether all of the multiple required element data have been stored in the memory area by accessing each of the arrays described in the required element data list based on a reference to each of the arrays and confirming whether the flag is stored in the element of each of the arrays.

3. the electronic information storage medium prestores a list of essential element data describing references to objects in which each of the plurality of essential element data is to be stored; the storage means generates an object for storing element data included in the command each time the command is received from the external device; The electronic information storage medium according to claim 1, characterized in that, when the first determination means determines that the command is the last command, the second determination means determines whether all of the multiple required element data have been stored in the memory area by accessing each of the objects described in the required element data list and confirming whether each of the objects has been generated, based on a reference to each of the objects described in the required element data list.

4. The required element data includes element data required for an optional function in the application, An electronic information storage medium as described in any one of claims 1 to 3, characterized in that when an optional function in the application is set on when the application is installed, the second determination means determines whether or not all of the multiple required element data including the element data required for the optional function have been stored in the memory area.

5. An IC chip that receives a command including element data for personalizing an application from an external device multiple times, a storage means for storing element data included in a command in a memory area referenced by the application each time the command is received from the external device; a first determination means for determining whether the command received from the external device is a final command; a second determination means for determining, when the first determination means determines that the command is a final command, whether or not all of a plurality of essential element data necessary for the application to operate normally have been stored in the memory area; an error processing means for executing an error process when the second determination means determines that all of the required element data are not stored in the memory area; An IC chip comprising:

6. An IC card that receives a command including element data for personalizing an application from an external device multiple times, a storage means for storing element data included in a command in a memory area referenced by the application each time the command is received from the external device; a first determination means for determining whether the command received from the external device is a final command; a second determination means for determining, when the first determination means determines that the command is a final command, whether or not all of a plurality of essential element data necessary for the application to operate normally have been stored in the memory area; an error processing means for executing an error process when the second determination means determines that all of the required element data are not stored in the memory area; An IC card comprising:

7. 1. A method for storing element data executed by an electronic information storage medium receiving a command including element data for personalizing an application from an external device multiple times, the method comprising: storing element data included in the command in a memory area referenced by the application each time the command is received from the external device; determining whether the command received from the external device is a last command; if it is determined that the command is the last command, determining whether or not all of a plurality of essential element data necessary for the application to operate normally have been stored in the memory area; executing an error process when it is determined that all of the required element data are not stored in the memory area; 13. A method for storing element data, comprising:

8. A computer included in an electronic information storage medium that receives a command including element data for personalizing an application from an external device a plurality of times, storing element data included in the command in a memory area referenced by the application each time the command is received from the external device; determining whether the command received from the external device is a last command; if it is determined that the command is the last command, determining whether or not all of a plurality of essential element data necessary for the application to operate normally have been stored in the memory area; executing an error process when it is determined that all of the required element data are not stored in the memory area; A program characterized by executing the above.

Citation Information

Patent Citations

  • Power supply method for carrier system

    JP1988052609A

  • Portable electric device and method of checking the device

    JP2003108445A

  • Portable storage medium issuing system

    JP2004046336A

  • Card inspection device, method and program

    JP2004287586A