Electronic information storage medium, IC chip, writing method of issuance data, and program
The IC chip manages multiple versions of applications using version identifiers and setting information to optimize memory usage, addressing memory inefficiencies in IC cards supporting diverse specifications.
Patent Information
- Application Number
- JP2023049943
- Authority / Receiving Office
- JP · JP
- Patent Type
- Applications
- Current Assignee / Owner
- Filing Date
- 2023-03-27
- Publication Date
- 2024-10-09
AI Technical Summary
Existing IC cards face memory inefficiency due to duplicate processing when supporting multiple versions of applications, leading to unnecessary occupation of memory capacity.
An electronic information storage medium with an IC chip that supports multiple versions of applications by using version identifiers and setting information to manage and validate data writing processes, reducing memory requirements.
Enables compatibility with multiple versions while minimizing memory usage, allowing efficient installation and operation of applications on IC cards.
Smart Images

Figure 2024139134000001_ABST
Abstract
Description
[Technical field]
[0001] The present invention relates to the technical field of IC cards and the like on which applications are installed. [Background technology]
[0002] In recent years, IC cards capable of mounting multiple applications have become known. For example, Patent Document 1 describes a system that realizes adding applications to an IC card by centrally managing various applications that can be mounted on the IC card and their issuance information in a server such as an issuer of the IC card. [Prior art documents] [Patent documents]
[0003] [Patent Document 1] JP 2008-033684 A Summary of the Invention [Problem to be solved by the invention]
[0004] For example, in a payment system that processes IC cards for payment, the specification versions that each system complies with may differ, and the IC cards must operate according to the specifications that correspond to the system. When creating IC cards that are compatible with multiple versions, one method is to create individual applications for each version and load them onto the IC card, but when the differences between versions are slight, there is often duplication of processing. If applications compatible with each version are loaded onto the IC card, there is a problem that the memory in the IC card is strained by the duplication of processing.
[0005] Therefore, the present invention has been made in consideration of these points and the like, and aims to provide an electronic information storage medium, an IC chip, a method for writing issuance data, and a program that enable an application to be compatible with multiple versions and reduce the memory capacity required to install the application. [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 on which an application compatible with multiple versions is mounted, comprising: a storage means for storing correspondence information that corresponds, for each version, the version and an identifier of issuance data required to execute the application, and setting information for enabling the version compatible with the application; a receiving means for receiving a command including the issuance data and an identifier of the issuance data from an external device; an identification means for identifying the version corresponding to the issuance data included in the command based on the identifier and the correspondence information included in the command; and a processing means for executing a write process of the issuance data included in the command based on the version identified by the identification means and the setting information.
[0007] The invention described in claim 2 is characterized in that, in the electronic information storage medium described in claim 1, the processing means executes a writing process of the issued data when the version identified by the identification means matches the version enabled in the setting information.
[0008] The invention described in claim 3 is characterized in that, in the electronic information storage medium described in claim 1, the processing means executes error processing when the version identified by the identification means does not match the version enabled in the setting information.
[0009] The invention described in claim 4 is characterized in that, in the electronic information storage medium described in claim 1, the processing means, if there is no version enabled in the setting information, enables the version identified by the identification means in the setting information and executes the writing process of the issued data.
[0010] The invention described in claim 5 is characterized in that, in the electronic information storage medium described in any one of claims 1 to 3, the receiving means receives an installation command including a parameter indicating the version from the external device before receiving the command, and the processing means enables the version indicated in the parameter in the setting information.
[0011] The invention recited in claim 6 is the electronic information storage medium recited in claim 5, wherein the processing means executes error processing when the format of the parameter is invalid.
[0012] The invention described in claim 7 is an IC chip equipped with an application compatible with multiple versions, comprising: a storage means for storing correspondence information that corresponds, for each version, the version and an identifier of issuance data required to execute the application, and setting information for enabling the version compatible with the application; a receiving means for receiving a command including the issuance data and an identifier of the issuance data from an external device; an identification means for identifying the version corresponding to the issuance data included in the command based on the identifier and the correspondence information included in the command; and a processing means for executing a write process of the issuance data included in the command based on the version identified by the identification means and the setting information.
[0013] The invention described in claim 8 is a method for writing issuance data executed by an electronic information storage medium on which an application compatible with multiple versions is installed, and is characterized by including the steps of: storing in the electronic information storage medium correspondence information that corresponds, for each version, the version and an identifier of the issuance data required to execute the application, and setting information for enabling the version compatible with the application; receiving a command including the issuance data and an identifier of the issuance data from an external device; identifying the version corresponding to the issuance data included in the command based on the identifier and the correspondence information included in the command; and executing a write process of the issuance data included in the command based on the identified version and the setting information.
[0014] The invention described in claim 9 is characterized in that a computer included in an electronic information storage medium on which an application compatible with multiple versions is installed is made to function as a storage means for storing correspondence information that corresponds, for each version, the version and an identifier of issuance data required to execute the application, and setting information for enabling the version that the application is compatible with, a receiving means for receiving a command including the issuance data and an identifier of the issuance data from an external device, an identification means for identifying the version corresponding to the issuance data included in the command based on the identifier and the correspondence information included in the command, and a processing means for executing a write process of the issuance data included in the command based on the version identified by the identification means and the setting information. Effect of the Invention
[0015] According to the present invention, an application can be made compatible with a plurality of versions, and the memory capacity required to install the application can be reduced. [Brief description of the drawings]
[0016] [Figure 1] 2 is a diagram illustrating an example of a hardware configuration of an IC chip 1. FIG. [Diagram 2] FIG. 2 is a diagram illustrating an example of a software configuration of the IC chip 1. [Diagram 3] FIG. 13 is a diagram illustrating an example of an issued data identifier list. [Figure 4] FIG. 13 illustrates an example of a compatible version flag. [Diagram 5] 13 is a flowchart showing an example of an installation process executed by a CPU 15. [Figure 6] 13 is a flowchart showing an example of an issuing process executed by a CPU 15. [Figure 7] 13 is a flowchart showing an example of an operational process executed by a CPU 15.
[0017] Hereinafter, an embodiment of the present invention will be described in detail with reference to the drawings. Note that the embodiment described below is an embodiment in which the present invention is applied to an IC chip equipped with an application compatible with multiple versions.
[0018] [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.
[0019] 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. Note that examples of the external device 2 include an IC chip issuing device (issuing terminal) in a factory and a transaction device (transaction terminal) in a store.
[0020] The NVM 13 (an example of a storage means) is a non-volatile memory such as a flash memory or an electrically erasable programmable read-only memory. The NVM 13 or the ROM 14 stores an operating system (hereinafter referred to as "OS"), a platform, a program such as an application compatible with a plurality of versions (including the program of the present invention), and data. These programs function as software (software modules) mounted on the IC chip 1 by being executed by the CPU 15, and function as a receiving means, a specifying means, a processing means, and the like in the present invention. FIG. 2 is a diagram showing an example of the software configuration of the IC chip 1. The platform manages applications, is configured based on, for example, Global Platform (registered trademark), and runs on the OS. The platform includes, for example, an ISD (Issuer Security Domain) and an API (Application Program Interface).
[0021] The ISD is a management application that executes an installation process. Here, the installation process refers to a process of instantiating (activating) a load file (application program) recorded in the NVM 13 in a state in which the load file can be executed as an application compatible with multiple versions in response to an installation command from the external device 2. Execution of such an application can be said to be a process of executing the instantiated program code. The application can execute various processes using an API. An example of an application is a trading application.
[0022] Furthermore, in response to an issuance command (e.g., a STORE DATA command) from the external device 2, the application executes an issuance process (including a write process) for storing various issuance data and the like required for executing the application in the NVM 13. Through this issuance process, a DF (Dedicated File) corresponding to the application and an EF (Elementary File) for storing the issuance data and data for internal control are constructed (secured) in the NVM 13. The issuance data is a data element regarded as one data unit. Examples of the issuance data include setting data that determines the operation of the application, and key data required for encryption and decryption operations of data.
[0023] The issued data is basically common among different versions, but may differ depending on the version. For example, an application compatible with version V1.0 uses the RSA (Rivest-Shamir-Adleman) encryption calculation method, so key data for RSA is stored as the issued data. On the other hand, an application compatible with version V1.1 uses the ECC (Elliptic Curve Cryptography) encryption calculation method, so key data for ECC is stored as the issued data. When the application according to this embodiment is compatible with version V1.0, key data compatible with version V1.0 is stored.
[0024] Further, an issued data identifier list (an example of correspondence information) is stored in advance in the NVM 13. The issued data identifier list is a version identification list that associates a version (version number) with an identifier of issued data for each version. FIG. 3 is a diagram showing an example of the issued data identifier list. In the example of FIG. 3, "A001(h)", "A002(h)", and "B001(h)" are shown as identifiers of issued data corresponding to version V1.0, and "A003(h)", "B002(h)", and "3F01(h)" are shown as identifiers of issued data corresponding to version V1.1. These identifiers are expressed, for example, by DGI or TLV (Tag Length Value) tags. Note that the example of FIG. 3 shows a case where one application has two versions, but one application may have three or more versions. In this case, an identifier of issued data is associated with each of the three or more versions in the issued data identifier list.
[0025] Furthermore, the NVM 13 stores a compatible version flag (an example of setting information) for enabling a version that the application can support. FIG. 4 is a diagram showing an example of the compatible version flag. In the example of FIG. 4(A), the compatible version flag is made up of 8 bits, and "10000000" indicates that version V1.0 is enabled (set). On the other hand, in the example of FIG. 4(B), the compatible version flag is made up of 8 bits, and "01000000" indicates that version V1.1 is enabled. That is, the version is specified by the position of the bit (for example, b8 or b7 in the example of FIG. 4) at which "1" is set among the 8 bits. Note that when the compatible version flag is only "00000000", it indicates that both versions are not set. That is, in the example of FIG. 4, the compatible version flag is set to any one of "00000000", "10000000", and "01000000".
[0026] When the ISD receives an installation command including a parameter indicating a version from the external device 2 via the OS, the ISD activates the version indicated by the parameter in the corresponding version flag during the above-mentioned installation process. If the format of the parameter is invalid, an error process is performed. Then, when the application receives an issuance command including issuance data and an identifier of the issuance data from the external device 2 via the OS after the installation process, the application identifies a version corresponding to the issuance data included in the issuance command based on the identifier included in the issuance command and the issuance data identifier list, and performs a process of writing the issuance data included in the issuance command (i.e., storing the issuance data in the EF of NVM 13) based on the identified version and the corresponding version flag.
[0027] Here, if the specified version matches the version enabled in the corresponding version flag, the application executes a write process for the issuance data. On the other hand, if the specified version does not match the version enabled in the corresponding version flag, the application executes an error process. On the other hand, if there is no version enabled in the corresponding version flag (for example, the corresponding version flag is "00000000"), the application enables the specified version in the corresponding version flag and executes a write process for the issuance data.
[0028] The above-mentioned install command and issue command are, for example, command APDUs (Application Protocol Data Units) defined in ISO / IEC 7816-4. The command APDU includes a header section and a body section. The header section is made up of CLA (command class), INS (command code), P1, and P2. The body section is made up of Lc, Data, and Le, for example. Lc indicates the length of Data (data length), and Le indicates the maximum length expected for DATA in the response APDU. Data includes the issue data, etc.
[0029] [2. Operation of IC chip 1] Next, the operation of the IC chip 1 will be described.
[0030] (2.1 Processing when receiving an install command) First, referring to Fig. 5, the installation process executed when the IC chip 1 receives an installation command will be described. Fig. 5 is a flow chart showing an example of the installation process executed by the CPU 15. For example, in a factory where the IC chip 1 is issued, when the IC chip 1 receives an installation command from an IC chip issuing device, which is an external device 2, the process shown in Fig. 5 is started. Note that it is assumed that an ISD is selected in the IC chip 1 by a SELECT command from the IC chip issuing device before the installation command is received. Also, in the installation process shown in Fig. 5, as described above, a process of instantiating a load file into a state in which it can be executed as an application is performed, but a description of these processes will be omitted.
[0031] 5 starts, the CPU 15 (ISD) acquires Data from the body of the install command (step S1). Next, the CPU 15 determines whether or not a parameter of a predetermined length (e.g., 8 bits) is present in the Data acquired in step S1 (step S2). If it is determined that the parameter is not present (step S2: NO), the process proceeds to step S3. On the other hand, if it is determined that the parameter is present (step S2: YES), the process proceeds to step S4.
[0032] In step S3, the CPU 15 saves a bit string indicating no setting (e.g., "00000000") in the corresponding version flag, and proceeds to step S7. Meanwhile, in step S4, the CPU 15 determines whether the parameter format is invalid. For example, if "1" is set to multiple bits (e.g., b8 and b7) among the 8 bits, or if "1" is set to a bit (e.g., b1) among the 8 bits that does not indicate a version, the parameter format is determined to be invalid.
[0033] If it is determined that the parameter format is invalid (step S4: YES), error processing is executed (step S5). In this error processing, for example, a response indicating an error is returned to the external device 2. On the other hand, if it is determined that the parameter format is not invalid (i.e., the parameter properly indicates the version) (step S4: NO), the parameter indicating the version (e.g., "10000000") is saved in the corresponding version flag (step S6), thereby enabling the version, and the processing proceeds to step S7. In step S7, the CPU 15 returns a response indicating normal completion of the installation processing to the external device 2, and ends the processing.
[0034] (2.2 Processing when issuing a command) Next, referring to Fig. 6, an issuance process executed when the IC chip 1 receives an issuance command will be described. Fig. 6 is a flow chart showing an example of the issuance process executed by the CPU 15. For example, in a factory where the IC chip 1 is issued, when the IC chip 1 receives an issuance command from an IC chip issuing device, which is an external device 2, after an installation process, the process shown in Fig. 6 is started. Note that the issuance process shown in Fig. 6 is repeatedly executed until writing of all issuance data required for executing the application is completed. Also, it is assumed that a specific application is selected in the IC chip 1 by a SELECT command from the IC chip issuing device before the issuance command is received.
[0035] 6 is started, the CPU 15 (a predetermined application) acquires the issuance data and the identifier of the issuance data (for example, represented by a DGI or a tag) from the body of the issuance command (step S11). Next, the CPU 15 determines whether the identifier acquired in step S11 matches an identifier in the issuance data identifier list (step S12). If it is determined that the identifiers do not match (for example, the issuance data is common between versions) (step S12: NO), a write process of the issuance data is executed (step S13), and the process proceeds to step S20. On the other hand, if it is determined that the identifiers match (step S12: YES), the process proceeds to step S14.
[0036] In step S14, the CPU 15 identifies the version corresponding to the issuance data included in the issuance command based on the identifier included in the issuance command and the issuance data identifier list. For example, if the identifier included in the issuance command is "A001(h)", version V1.0 is identified from the issuance data identifier list shown in Figure 3. On the other hand, if the identifier included in the issuance command is "A003(h)", version V1.1 is identified from the issuance data identifier list shown in Figure 3.
[0037] Next, CPU 15 determines whether the supported version flag indicates that it is not set (step S15). If there is no version enabled in the supported version flag, it is determined that the supported version flag indicates that it is not set (step S15: YES), and the process proceeds to step S16. In step S16, CPU 15 enables the version identified in step S14 in the supported version flag (for example, sets "00000000" to "10000000"), and the process proceeds to step S19.
[0038] On the other hand, if it is determined that the corresponding version flag does not indicate unset (step S15: NO), the process proceeds to step S17. In step S17, the CPU 15 determines whether the version identified in step S14 (i.e., the version corresponding to the received issuance data) matches the version enabled in the corresponding version flag. For example, if version V1.0 is identified and version V1.1 is enabled ("01000000") in the corresponding version flag, it is determined that the two versions do not match (step S17: NO), and error processing is executed as in step S5 above (step S18). This makes it possible to discover a setting error on the IC chip issuing device side. On the other hand, if version V1.0 is identified and version V1.0 is enabled ("10000000") in the corresponding version flag, it is determined that the two versions match (step S17: YES), and the process proceeds to step S19.
[0039] In step S19, the CPU 15 executes a write process of the issuance data included in the issued command, and proceeds to step S20. Through the write process, the issuance data included in the issued command is stored in the EF of the NVM 13. In step S20, the CPU 15 returns a response indicating the normal end of the write process to the external device 2, and ends the process.
[0040] (2.3 Processing when an operational command is received) Next, referring to FIG. 7, an operation process executed when the IC chip 1 receives an operation command will be described. FIG. 7 is a flowchart showing an example of the operation process executed by the CPU 15. For example, in a store after the shipment of the IC chip 1, when the IC chip 1 receives an operation command from a transaction device which is an external device 2, the process shown in FIG. 7 is started. The operation command is a variety of commands transmitted from the transaction device to the IC chip 1 when a transaction such as a settlement is performed using the IC chip 1. Examples of the operation command include a GPO (Get Processing Options) command, a VERIFY command, and a GENERATE AC command. It is assumed that before the operation command is received, a transaction application corresponding to versions V1.0 and V1.1 is selected in the IC chip 1 by a SELECT command from the transaction device.
[0041] When the process shown in FIG. 6 is started, the CPU 15 (transaction application) checks the corresponding version flag and determines the version (step S31). For example, if the corresponding version flag indicates that version V1.0 is enabled, the version is determined to be V1.0. On the other hand, if the corresponding version flag indicates that version V1.1 is enabled, the version is determined to be V1.1. Next, if the CPU 15 determines that the version is V1.0 in step S31 (step S31: V1.0), it executes a process (command process) according to an operation command corresponding to the version V1.0 (step S32) and proceeds to step S34. On the other hand, if the CPU 15 determines that the version is V1.1 in step S31 (step S31: V1.1), it executes a process according to an operation command corresponding to the version V1.1 (step S33) and proceeds to step S34. In step S34, the CPU 15 returns a response indicating normal completion of the command process to the external device 2 and ends the process.
[0042] As described above, according to the above embodiment, when the IC chip 1 receives an install command including issuance data and an identifier of the issuance data from the external device 2, it identifies the version corresponding to the issuance data included in the install command based on the identifier included in the install command and the issuance data identifier list, and executes the write process of the install command issuance data based on the identified version and the corresponding version flag, so that an application can be compatible with multiple versions and the memory capacity required to install the application can be reduced. Also, an IC chip 1 that operates only with the target version can be issued. [Explanation of symbols]
[0043] 1 IC chip 2 External device 11 I / O circuit 12 RAM 13 NVM 14 ROM 15 CPU 16 Coprocessors
Claims
1. An electronic information storage medium having an application program compatible with multiple versions installed thereon, a storage means for storing association information for associating the version with an identifier of issuance data required for executing the application for each version, and setting information for validating a version compatible with the application; A receiving means for receiving the issuance data and a command including an identifier of the issuance data from an external device; a specification unit that specifies the version corresponding to the issuance data included in the command based on the identifier and the association information included in the command; a processing unit that executes a write process of the issuance data included in the command based on the version identified by the identifying unit and the setting information; An electronic information storage medium comprising:
2. 2. The electronic information storage medium according to claim 1, wherein the processing means executes a write process of the issuance data when the version identified by the identification means matches the version enabled in the setting information.
3. 2. The electronic information storage medium according to claim 1, wherein the processing means executes an error process when the version specified by the specifying means does not match the version enabled in the setting information.
4. The electronic information storage medium according to claim 1, characterized in that, if there is no enabled version in the setting information, the processing means enables the version identified by the identification means in the setting information and executes the writing process of the issuance data.
5. The receiving means receives an installation command including a parameter indicating the version from the external device before receiving the command, 4. The electronic information storage medium according to claim 1, wherein the processing means validates the version indicated by the parameter in the setting information.
6. 6. The electronic information storage medium according to claim 5, wherein said processing means executes an error process when the format of said parameter is invalid.
7. An IC chip equipped with an application compatible with multiple versions, a storage means for storing association information for associating the version with an identifier of issuance data required for executing the application for each version, and setting information for validating a version compatible with the application; A receiving means for receiving the issuance data and a command including an identifier of the issuance data from an external device; a specification unit that specifies the version corresponding to the issuance data included in the command based on the identifier and the association information included in the command; a processing unit that executes a write process of the issuance data included in the command based on the version identified by the identifying unit and the setting information; An IC chip comprising:
8. A method for writing issuance data executed by an electronic information storage medium having an application compatible with multiple versions installed therein, comprising: storing, in the electronic information storage medium, association information that associates the version with an identifier of issuance data required for executing the application for each version, and setting information for validating versions compatible with the application; receiving a command including the issuance data and an identifier of the issuance data from an external device; identifying the version corresponding to the issuance data included in the command based on the identifier and the association information included in the command; Executing a write process of the issuance data included in the command based on the specified version and the setting information; A method for writing issuance data, comprising:
9. A computer including an electronic information storage medium on which an application compatible with multiple versions is installed, a storage means for storing association information for associating the version with an identifier of issuance data required for executing the application for each version, and setting information for validating a version compatible with the application; A receiving means for receiving the issuance data and a command including an identifier of the issuance data from an external device; a specification unit that specifies the version corresponding to the issuance data included in the command based on the identifier and the association information included in the command; a program causing the program to function as a processing means for executing a write process of the issuance data included in the command based on the version specified by the specifying means and the setting information.
Citation Information
Patent Citations
Data processor and data processing method and its program
JP2003140760A
Ic card creating method and system
JP2003242454A
Multi-application addition system, communication terminal and program
JP2008033684A
IC card creation method and system thereof
US20060032904A1
