JP2023135978A - Ic chip and integrity check method for ic chip - Google Patents

Ic chip and integrity check method for ic chip Download PDF

Info

Publication number
JP2023135978A
JP2023135978A JP2022041353A JP2022041353A JP2023135978A JP 2023135978 A JP2023135978 A JP 2023135978A JP 2022041353 A JP2022041353 A JP 2022041353A JP 2022041353 A JP2022041353 A JP 2022041353A JP 2023135978 A JP2023135978 A JP 2023135978A
Authority
JP
Japan
Prior art keywords
file
check
chip
data
check code
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.)
Pending
Application number
JP2022041353A
Other languages
Japanese (ja)
Inventor
雅浩 丸目
Masahiro Marume
裕也 中村
Yuya Nakamura
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.)
Toppan Inc
Original Assignee
Toppan Printing Co Ltd
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 Toppan Printing Co Ltd filed Critical Toppan Printing Co Ltd
Priority to JP2022041353A priority Critical patent/JP2023135978A/en
Publication of JP2023135978A publication Critical patent/JP2023135978A/en
Pending legal-status Critical Current

Links

Images

Landscapes

  • For Increasing The Reliability Of Semiconductor Memories (AREA)

Abstract

To provide an IC chip in which a large number of integrity checks can be efficiently performed during the shipment or issuance of an information carrier such as an IC card.SOLUTION: In an IC chip, files constitute a hierarchy directory and are saved in a storage region. One directory includes: a directory management region; a file including a file header and a data division; and a check code which is calculated from data of the data division and saved in association with the file. In integrity check of one file, the check code is recalculated from the data body of the file and the recalculated check code is compared with the check code saved in association with the file, thereby performing the integrity check.SELECTED DRAWING: Figure 1

Description

本発明は、ICカード等の情報担体に内蔵されるICチップにおいて、保存されたファイルの整合性チェックを効率的に行えるICチップ、および整合性チェック方法に関し、特に、情報担体の出荷時や発行時などの多数のファイルの整合性チェックを効率的に行うことができるICチップおよびチェック方法に関する。 The present invention relates to an IC chip built into an information carrier such as an IC card, and a consistency check method that can efficiently check the integrity of stored files, particularly when shipping or issuing an information carrier. The present invention relates to an IC chip and a checking method that can efficiently check the consistency of a large number of files, such as files.

ICカード等の情報担体の出荷時および発行時に、製品出荷後の故障解析のように、複数のファイルやディレクトリが記憶領域に書き込まれて搭載されたICチップに対して、ICカード等の情報担体とコマンドやデータの読み出しや書き込みを行う端末などを介して整合性チェック(ファイルチェックとも称する)を行う場合がある。従来の技術では、各ファイルのデータ部にアクセスするコマンド(バイナリファイル:ReadBinary、レコードファイル:ReadRecord、鍵ファイル:InternalAuthenticateなど)を端末から発行することで、データ部にアクセスすることが可能になり、ファイルチェックを実行することができた。 When shipping and issuing an information carrier such as an IC card, multiple files and directories are written to the storage area of the installed IC chip, such as failure analysis after product shipment. A consistency check (also referred to as a file check) may be performed via a terminal that reads and writes commands and data. With conventional technology, it is possible to access the data part of each file by issuing a command from the terminal (binary file: ReadBinary, record file: ReadRecord, key file: InternalAuthenticate, etc.). I was able to run a file check.

例として図11のようなディレクトリ構成のICチップの場合、ファイル(EF12)へのファイルチェックを行う場合は図12のようになる。まずファイルの選択コマンドを実施してから、データ部へのアクセスコマンドを発行し、読み出し可能となったデータ部のデータからチェックコードを計算することで初めてファイルチェック(破損の検知)ができる。よって、ICカード等の出荷や発行時のように、多数のファイルに対してファイルチェックを行う場合、毎回アクセスコマンドを実行する必要があり、それにより処理時間が伸びてしまうという課題があった。 For example, in the case of an IC chip having a directory structure as shown in FIG. 11, when a file check is performed on a file (EF12), the result is as shown in FIG. A file check (corruption detection) can only be performed by first executing a file selection command, then issuing an access command to the data section, and calculating a check code from the data in the readable data section. Therefore, when file checking is performed on a large number of files, such as when shipping or issuing IC cards, it is necessary to execute an access command each time, which poses a problem in that the processing time increases.

また、ファイル(EF14)へのファイルチェックを行う際、図13のように、ファイル(EF11)のVerify完了後でないとアクセスや実行ができない場合など、アクセス権や実行条件の制限により、特定のファイルデータにアクセスできるまで時間がかかる場合もあり、さらに処理時間が伸びることもあった。 In addition, when performing a file check on a file (EF14), as shown in Figure 13, certain files may be In some cases, it took a long time to access the data, further increasing processing time.

この様に、ICチップの各ファイルのデータ部にアクセスするコマンドを端末から実行するまでファイルチェックをすることができないことから、ICカード等の情報担体の出荷/発行時、製品出荷後の故障解析のように多数のファイルに対してファイルチェックを行う場合、毎回アクセスコマンドを実行する必要があり、処理時間が伸びてしまうという課題があった。また、アクセス権や実行条件の制限により、特定のファイルデータにアクセスできるまで時間がかかる場合もあり、さらに処理時間が伸びてしまうという課題があった。 In this way, since it is not possible to check the file until the command to access the data part of each file of the IC chip is executed from the terminal, failure analysis is performed at the time of shipment/issuance of information carriers such as IC cards, and after product shipment. When performing a file check on a large number of files such as , it is necessary to execute an access command each time, which poses a problem in that the processing time increases. Additionally, due to restrictions on access rights and execution conditions, it may take some time to access specific file data, further prolonging the processing time.

この処理時間を短縮する方法として、例えば特許文献1には、データファイルに付与された誤り検出符号の値を確認し、前記誤り検出符号の値が特定値の場合、前記データ整合性検査手段を実行させずに前記書き込み処理を実行し、前記誤り検出符号が前記特定値でない場合、前記データ整合性検査手段を実行させることで、データの整合性を問われない状況においては、データ整合検査を省くことができて書き込みコマンドの処理時間を短縮できるとしたICカードが提案されている。 As a method for shortening this processing time, for example, Patent Document 1 discloses that the value of an error detection code given to a data file is checked, and if the value of the error detection code is a specific value, the data consistency checking means is If the write process is executed without being executed, and the error detection code is not the specific value, the data consistency check means is executed, so that the data consistency check can be performed in a situation where data consistency is not questioned. An IC card has been proposed that can reduce the processing time of write commands.

しかし、特許文献1に開示される発明は、4バイトの誤り検出符号を有する特定のICカードに関するもので、データファイルに書き込み処理を実行する前に、データファイルに付与された誤り検出符号の値が特定値であるか否かを確認する工程が必要とされ、また
特定値であった場合のみ、爾後の確認工程が省略できるもので、工程省略の効果が限定され、さらにデータファイルに書き込んだデータから演算した誤り検出符号をデータファイルに付与する書き込みコマンドを備える必要もあった。
However, the invention disclosed in Patent Document 1 relates to a specific IC card having a 4-byte error detection code, and the value of the error detection code given to the data file is determined before writing to the data file. A process is required to confirm whether or not the value is a specific value, and only if it is a specific value, the subsequent confirmation process can be omitted, limiting the effect of omitting the process, and further writing to the data file. It was also necessary to provide a write command to add an error detection code calculated from the data to the data file.

特許第4601968号公報Patent No. 4601968

ICカード等の情報担体の出荷時や発行時などに、搭載されたICチップに対して整合性チェック(ファイルチェック)をする際、従来は多数のファイルチェックを行うためのコマンド処理に時間がかかっていたが、これを効率化でき、処理時間の短縮を図れるICチップおよびICチップの整合性チェック方法を提供することを課題とする。 When performing a consistency check (file check) on the installed IC chip when shipping or issuing an information carrier such as an IC card, conventionally it took time to process commands to check a large number of files. However, it is an object of the present invention to provide an IC chip and a method for checking the consistency of the IC chip, which can improve efficiency and shorten processing time.

上記課題を解決するため、本発明は、
記憶領域中に、ファイルが階層ディレクトリを構成して保存されるICチップであって、一のディレクトリには、
ディレクトリ管理領域と、
ファイルヘッダとデータ部とを含むファイルと、
前記データ部のデータから計算され、前記ファイルと紐づけられて保存されたチェックコードと、を含み、
一のファイルの整合性チェック時に、
当該ファイルのデータ本体からチェックコードを再度計算して、当該ファイルに紐づけられて保存されたチェックコードと比較することで整合性チェックを行うことを特徴とするICチップである。
In order to solve the above problems, the present invention
An IC chip in which files are stored in hierarchical directories in a storage area, and one directory includes:
directory management area,
A file including a file header and a data part;
a check code calculated from the data in the data section and stored in association with the file;
When checking the integrity of one file,
This IC chip is characterized in that it performs a consistency check by recalculating a check code from the data body of the file and comparing it with a check code stored in association with the file.

上記ICチップにおいて、
前記ファイルと紐づけられて保存されたチェックコードが、当該ファイル内に保存されていて良い。
In the above IC chip,
A check code stored in association with the file may be stored within the file.

上記ICチップにおいて、
前記ファイルと紐づけられて保存されたチェックコードが、当該ファイルが含まれるディレクトリのディレクトリ管理領域内に保存されていて良い。
In the above IC chip,
The check code stored in association with the file may be stored in a directory management area of a directory that includes the file.

上記ICチップにおいて、
前記チェックコードは、巡回冗長検査方式で計算されたコードであって良い。
In the above IC chip,
The check code may be a code calculated using a cyclic redundancy check method.

また本発明の別側面は、
記憶領域に保存されたファイルの整合性をチェックするICチップの整合性チェック方法であって、
前記ファイルの前記記憶領域への登録時に、前記ファイルに含まれるデータからチェックコードを計算して前記ファイルに紐づけて前記記憶領域に保存し、
前記ファイルの整合性チェック時に、当該ファイルに含まれるデータからチェックコードを再度計算して、保存されたチェックコードと比較することで整合性チェックを行うことを特徴とするICチップのデータ整合性チェック方法である。
Another aspect of the present invention is
An IC chip integrity check method for checking the integrity of files stored in a storage area, the method comprising:
When registering the file in the storage area, calculate a check code from the data included in the file, associate it with the file, and save it in the storage area;
A data integrity check for an IC chip, characterized in that when checking the integrity of the file, the integrity check is performed by recalculating a check code from the data included in the file and comparing it with the saved check code. It's a method.

上記ICチップのデータ整合性チェック方法において、
前記保存されたチェックコードが、紐づけられているファイル内に保存されていて良い。
In the above IC chip data consistency check method,
The saved check code may be saved in a linked file.

上記ICチップのデータ整合性チェック方法において、
前記保存されたチェックコードが、当該ファイルが含まれるディレクトリのディレクトリ管理領域内に保存されていて良い。
In the above IC chip data consistency check method,
The saved check code may be saved in a directory management area of a directory containing the file.

上記ICチップのデータ整合性チェック方法において、
前記チェックコードは、巡回冗長検査方式で計算されたコードであって良い。
In the above IC chip data consistency check method,
The check code may be a code calculated using a cyclic redundancy check method.

本発明のICチップおよびICチップの整合性チェック方法によれば、ICチップに対してコマンドやデータの読み出しや書き込みを行う端末を介してデータ部へのアクセスコマンドを実行することなくファイルチェックを行うことができ、処理時間を短縮することができる。特に、ICカード等の情報担体の出荷や発行時のように、多数のファイルに対してファイルチェックを行う必要がある場合、より効果が大きい。 According to the IC chip and IC chip consistency check method of the present invention, a file check is performed without executing an access command to the data section via a terminal that reads and writes commands and data to the IC chip. It is possible to shorten the processing time. This is particularly effective when it is necessary to perform file checks on a large number of files, such as when shipping or issuing information carriers such as IC cards.

本発明のICチップのファイル構成の一例の説明図である。FIG. 2 is an explanatory diagram of an example of the file structure of the IC chip of the present invention. 本発明のICチップのファイル登録時のフローの図である。FIG. 3 is a flowchart of the file registration of the IC chip according to the present invention. 本発明のICチップのファイルチェック時のフローの図である。FIG. 3 is a flowchart of a file check of the IC chip according to the present invention. 本発明のICチップのファイルのブロック図である。It is a block diagram of the file of the IC chip of this invention. 本発明のICチップのファイル登録時のフローの図である。FIG. 3 is a flowchart of the file registration of the IC chip according to the present invention. 本発明のICチップのファイルチェック時の全体フローの図である。FIG. 3 is a diagram showing the overall flow when checking a file of an IC chip according to the present invention. 本発明のICチップのファイルチェック処理の例の図である。FIG. 3 is a diagram illustrating an example of file check processing for an IC chip according to the present invention. 本発明のICチップのファイルEF4のファイルチェックのフローの図である。It is a flowchart of the file check of file EF4 of the IC chip of this invention. 本発明のICチップのファイル構成例の一例の説明図である。FIG. 2 is an explanatory diagram of an example of a file configuration of an IC chip according to the present invention. 図9の例のファイルチェック時の全体フローの図である。10 is a diagram showing the overall flow when checking a file in the example of FIG. 9. FIG. 従来のICカードのファイル構成例の説明図である。FIG. 2 is an explanatory diagram of an example of a file configuration of a conventional IC card. 図11のICカードのファイルチェック時のフローの図である。FIG. 12 is a flowchart for checking the file of the IC card in FIG. 11; 図11のICカードのファイルチェック時のフローの図である。FIG. 12 is a flowchart for checking the file of the IC card in FIG. 11;

以下、本発明の実施の形態を、図面を参照しながら詳細に説明する。なお本発明は以下に説明する実施形態に限定されるものではない。また以下に示す実施形態では、発明を実施するために技術的に好ましい限定がなされているが、この限定は本発明の必須要件ではない。 Embodiments of the present invention will be described in detail below with reference to the drawings. Note that the present invention is not limited to the embodiments described below. Further, in the embodiments shown below, technically preferable limitations are made for carrying out the invention, but these limitations are not essential to the present invention.

図1は、本発明のICチップのファイル構成の一例の説明図である。ICチップの記憶領域に各種のデータを保存したファイルが階層ディレクトリ構成で書き込まれ、保存されている。具体的には、例えばディレクトリ(DF1)には、ディレクトリ管理領域、ファイル(EF1)、(EF2)が含まれており、さらに、下層ディレクトリであるディレクトリ(DF2)を含んでいる。ディレクトリ(DF2)にはファイル(EF3)、(EF4)が含まれている。ファイル(EF4)は、ファイル(EF1)のVerify完了後、アクセス可能となる構成となっている。 FIG. 1 is an explanatory diagram of an example of a file structure of an IC chip according to the present invention. Files storing various data are written and stored in a hierarchical directory structure in the storage area of the IC chip. Specifically, for example, the directory (DF1) includes a directory management area, files (EF1), and (EF2), and further includes a directory (DF2) that is a lower layer directory. The directory (DF2) includes files (EF3) and (EF4). The file (EF4) is configured to be accessible after the verification of the file (EF1) is completed.

また特に図示しないが、さらに下層のディレクトリ、そのディレクトリに含まれるファイル、を含むこともでき、全体が階層化して構成されている。またディレクトリ管理領域はディレクトリ(DF1)として記載される領域に含まれているものとする。 Although not particularly shown in the figure, it can also include lower-layer directories and files contained in those directories, and the entire structure is hierarchical. It is also assumed that the directory management area is included in an area described as a directory (DF1).

各ファイルは、例えば図4に示すようなブロック構成となっており、ファイルヘッダとデータ部を有している。各ファイルをICチップに登録する際には、例えばファイル(E
F2)であれば、図2に示す手順でデータ部のデータからチェックコードを計算し、その情報を保存しておく。ここに示す例では、チェックコードはそれぞれのファイルのファイルヘッダ内に保存されている。チェックコードの計算は、公知の方法を適宜採用でき、例えば排他的論理和、巡回冗長検査方式(CRC)などから選択できるが、なかでも巡回冗長検査方式(CRC)が好ましい。
Each file has a block configuration as shown in FIG. 4, for example, and includes a file header and a data section. When registering each file on the IC chip, for example, the file (E
If F2), a check code is calculated from the data in the data section according to the procedure shown in FIG. 2, and the information is saved. In the example shown here, the check code is stored within the file header of each file. The check code can be calculated using any known method, for example, exclusive OR, cyclic redundancy check (CRC), etc. Among them, cyclic redundancy check (CRC) is preferable.

チェックコードの計算は、ICチップ内部で行われ、通常はICチップの記憶領域に内蔵されているオペレーティングシステム(OS)内部で行うことができるので、それ自体では端末側とのコマンド等のやり取りは不要である。 Calculation of the check code is done inside the IC chip, and can usually be done inside the operating system (OS) built into the storage area of the IC chip, so it is not possible to exchange commands etc. with the terminal side by itself. Not necessary.

そしてファイルの整合性チェック(ファイルチェック)を行う際は、例えばファイル(EF2)の整合性チェックを行う場合は、図3に示すフローのように、まずディレクトリ選択コマンドでディレクトリ(DF1)を選択し、次いでファイル選択コマンドでファイル(EF2)を選択し、ファイル(EF2)のチェックコードを再度同様に計算し、保存しておいたチェックコードと比較することで、ファイル(EF2)のデータの整合性を確認することができる。 When performing a file consistency check (file check), for example, when performing a file consistency check (EF2), first select the directory (DF1) using the directory selection command, as shown in the flow shown in Figure 3. , then select the file (EF2) with the file selection command, calculate the check code of the file (EF2) again in the same way, and compare it with the saved check code to check the integrity of the data of the file (EF2). can be confirmed.

この様に、ファイルチェックをICチップ内部で完結する形で行えるため、端末からデータ部へのアクセスコマンドを実行することなく、ファイルチェックを行うことができ、処理時問の短縮が可能になる。他のファイルのデータも同様にチェックできることは言うまでもない。本発明のICチップは、具体的な例としてはICカード、モバイル端末等の情報担体に搭載されるICチップ、セキュアエレメントなどを含むが、これらに限定されない。従って特に、ICカード等の情報担体の出荷時や発行時の様に、多数のファイルに対してファイルチェックを行う必要がある場合に効果が大きい。 In this way, since the file check can be completed within the IC chip, the file check can be performed without executing an access command from the terminal to the data section, making it possible to shorten the processing time. Needless to say, data in other files can also be checked in the same way. Specific examples of the IC chip of the present invention include, but are not limited to, an IC card, an IC chip mounted on an information carrier such as a mobile terminal, and a secure element. Therefore, it is particularly effective when it is necessary to perform file checks on a large number of files, such as when shipping or issuing information carriers such as IC cards.

<実施例1:構成図例全体に対するファイルチェック>
図1に示す例のファイル全体に対してファイルチェックを行う場合について、より詳しく説明する。
(1)構成例の構成でファイル登録
図1の構成例の構成でファイルを登録する際に、前述のような手順でファイル(EF1)、(EF2)、(EF3)、(EF4)のチェックコード(排他的論理和やCRCなど)を計算し、その情報をそれぞれのファイルに保存する。ファイルのブロック構成は図4に示すものと同様であり、ファイル登録時の処理フローは図2に示すものと同様であるが、図5に示すものとなる。図5で、[*]の符号は、ディレクトリ、ファイルから順次選択して繰り返すことを示し(例えばDF1、DF2・・、EF1、EF2・・の様に)、以降の図においても同様である。
<Example 1: File check for the entire configuration diagram example>
A case in which a file check is performed on the entire file in the example shown in FIG. 1 will be described in more detail.
(1) File registration using the configuration example When registering files using the configuration example shown in Figure 1, check the check codes for files (EF1), (EF2), (EF3), and (EF4) using the procedure described above. (Exclusive OR, CRC, etc.) and save the information in each file. The block configuration of the file is the same as that shown in FIG. 4, and the processing flow at the time of file registration is the same as that shown in FIG. 2, but is as shown in FIG. In FIG. 5, the symbol [*] indicates that directories and files are sequentially selected and repeated (for example, DF1, DF2, . . ., EF1, EF2, . . .), and the same applies to subsequent figures.

(2)ファイルチェックの実施
図1の構成例の全ファイルに対して、ファイルチェックを行う。
図6に示すファイルチェックフローで、各ディレクトリ直下のファイルチェックを行う。まず、ファイルチェック未完了のファイルがあるディレクトリを検索し、次いでそのディレクトリ内でファイルチェック未完了のファイルを検索する。例えばディレクトリ(DF1)のファイル(EF1)、(EF2)がチェック未完了であれば、ファイル(EF1)、(EF2)のチェックを行う。完了したら別のディレクトリ、例えばディレクトリ(DF2)直下のファイル(EF3)、(EF4)のファイルチェックを行う、という流れで処理を実施する。
(2) Implementation of file check A file check is performed on all files in the configuration example shown in FIG.
In the file check flow shown in FIG. 6, files directly under each directory are checked. First, a directory containing a file for which the file check has not been completed is searched, and then a file for which the file check has not been completed is searched within that directory. For example, if the files (EF1) and (EF2) in the directory (DF1) have not been checked yet, the files (EF1) and (EF2) are checked. When the process is completed, a file check is performed in another directory, for example, files (EF3) and (EF4) directly under the directory (DF2), and so on.

図7にファイルチェック処理の例を示す。図4に示すブロック図と同様にして再計算したチェックコードと、ファイルの登録時に計算して保存したチェックコードの比較を行い、一致する場合は正常、一致しない場合は破損など異常状態と判断する。これにより、端
末からデータ部へのアクセスコマンドを実行することなく、ファイルチェックを行うことができ、処理時間の短縮が可能になる。
FIG. 7 shows an example of file check processing. The check code recalculated in the same manner as shown in the block diagram shown in Figure 4 is compared with the check code calculated and saved when registering the file, and if they match, it is determined to be normal, and if they do not match, it is determined to be an abnormal state such as damage. . As a result, a file check can be performed without executing an access command from the terminal to the data section, and processing time can be shortened.

<実施例2:アクセス権や実行条件の制限がかかる場合のファイルチェック>
ファイルにアクセスする際に何らかの条件が関わる場合のファイルチェックについての例である。ここでは、実施例1と同様の構成のファイルにおいて、アクセスにファイル(EF1)のVerifyが必要とされるファイル(EF4)のファイルチェックを行う場合の例である。
(1)図1の構成図例の構成でファイル登録
ファイル登録は実施例1と同様の手順で行うことができる。
(2)ファイルチェックの実施
基本的な流れは図6と同様であるが、本実施例におけるファイル(EF4)についてのフローを特記したものが図8となる。従来のフロー(図13)では、ファイルチェックにファイル(EF11)のVerifyおよびファイル(EF14)の読み出しが必要だったが、本発明ではどちらも不要となるため、このような条件付きのファイルのファイルチェックを行う場合、従来例に対して更なる処理時間の短縮が可能になる。
<Example 2: File check when access rights and execution conditions are restricted>
This is an example of file checking when some conditions are involved when accessing a file. Here, an example is given in which a file check is performed on a file (EF4) that requires verification of the file (EF1) for access in a file having the same configuration as in the first embodiment.
(1) File registration with the configuration shown in the example configuration diagram of FIG. 1 File registration can be performed using the same procedure as in the first embodiment.
(2) Implementation of File Check The basic flow is the same as that shown in FIG. 6, but FIG. 8 specifically shows the flow for the file (EF4) in this embodiment. In the conventional flow (Figure 13), it was necessary to verify the file (EF11) and read the file (EF14) to check the file, but with the present invention, neither of these is necessary. When checking, processing time can be further shortened compared to the conventional example.

<実施例3:構成図例全体に対するファイルチェック(チェックコードをディレクトリ保存とした場合)>
実施例1と同様の構成のファイルにおいて、チェックコードをディレクトリ保存とした場合の実施例である。
(1)構成図例の構成でファイル登録
図9の構成図例のように、各ディレクトリで直下のファイルについてのチェックコードをディレクトリ管理領域に保存するようにしたものである(例えばディレクトリ(DF1)でファイル(EFI)、(EF2)のチェックコードを保存)。チェックコードをディレクトリで持つようにした以外は実施例2と同様の手順のため、ファイル登録のフローなどはここでは省略する。
(2)ファイルチェックの実施
ファイルチェックのフローは基本的に前述の実施例と同様であるが、チェックコードがディレクトリに保存してあるため、図10のように各ファイルの選択コマンドが不要になり、その分、図6に示す実施例2のフローよりもフローは短縮され、さらに処理時問の短縮が図れる。
<Example 3: File check for the entire configuration diagram example (when the check code is saved in a directory)>
This is an example in which a check code is saved in a directory in a file having the same configuration as in Example 1.
(1) File registration using the configuration shown in the example configuration diagram As shown in the example configuration diagram shown in Figure 9, the check code for the file directly under each directory is saved in the directory management area (for example, directory (DF1)). (Save the check code of file (EFI), (EF2)). The procedure is the same as in the second embodiment except that the check code is stored in the directory, so the flow of file registration etc. will be omitted here.
(2) Implementation of file check The flow of file check is basically the same as in the previous example, but since the check code is saved in the directory, the selection command for each file is no longer required as shown in Figure 10. , the flow is accordingly shorter than the flow of the second embodiment shown in FIG. 6, and the processing time can be further shortened.

以上説明したように、本発明のICチップおよびICチップの整合性チェック方法によれば、端末からデータ部へのアクセスコマンドを実行することなくファイルチェックを行うことができるため、ファイルチェックにかかる処理時間を短縮することができ、特にICカード等の情報担体の出荷や発行時のように、多数のファイルに対してファイルチェックを行う必要がある場合、より大きな効果を発揮するICチップおよびICチップの整合性チェック方法を提供できる。 As explained above, according to the IC chip and IC chip consistency check method of the present invention, it is possible to perform a file check without executing an access command from the terminal to the data section. IC chips and IC chips can save time and are more effective, especially when it is necessary to perform file checks on a large number of files, such as when shipping or issuing information carriers such as IC cards. can provide a consistency check method.

Claims (8)

記憶領域中に、ファイルが階層ディレクトリを構成して保存されるICチップであって、一のディレクトリには、
ディレクトリ管理領域と、
ファイルヘッダとデータ部とを含むファイルと、
前記データ部のデータから計算され、前記ファイルと紐づけられて保存されたチェックコードと、を含み、
一のファイルの整合性チェック時に、
当該ファイルのデータ本体からチェックコードを再度計算して、当該ファイルに紐づけられて保存されたチェックコードと比較することで整合性チェックを行うことを特徴とするICチップ。
An IC chip in which files are stored in hierarchical directories in a storage area, and one directory includes:
directory management area,
A file including a file header and a data part;
a check code calculated from the data in the data section and stored in association with the file;
When checking the integrity of one file,
An IC chip that performs a consistency check by recalculating a check code from the data body of the file and comparing it with a check code stored in association with the file.
前記ファイルと紐づけられて保存されたチェックコードが、当該ファイル内に保存されていることを特徴とする請求項1に記載のICチップ。 The IC chip according to claim 1, wherein a check code stored in association with the file is stored within the file. 前記ファイルと紐づけられて保存されたチェックコードが、当該ファイルが含まれるディレクトリのディレクトリ管理領域内に保存されていることを特徴とする請求項1または2に記載のICチップ。 3. The IC chip according to claim 1, wherein the check code stored in association with the file is stored in a directory management area of a directory containing the file. 前記チェックコードは、巡回冗長検査方式で計算されたコードであることを特徴とする請求項1から3のいずれか一項に記載のICチップ。 4. The IC chip according to claim 1, wherein the check code is a code calculated using a cyclic redundancy check method. 記憶領域に保存されたファイルの整合性をチェックするICチップの整合性チェック方法であって、
前記ファイルの前記記憶領域への登録時に、前記ファイルに含まれるデータからチェックコードを計算して前記ファイルに紐づけて前記記憶領域に保存し、
前記ファイルの整合性チェック時に、当該ファイルに含まれるデータからチェックコードを再度計算して、保存されたチェックコードと比較することで整合性チェックを行うことを特徴とするICチップのデータ整合性チェック方法。
An IC chip integrity check method for checking the integrity of files stored in a storage area, the method comprising:
When registering the file in the storage area, calculate a check code from the data included in the file, associate it with the file, and save it in the storage area;
A data integrity check for an IC chip, characterized in that when checking the integrity of the file, the integrity check is performed by recalculating a check code from the data included in the file and comparing it with the saved check code. Method.
前記保存されたチェックコードが、紐づけられているファイル内に保存されていることを特徴とする請求項5に記載のICチップのデータ整合性チェック方法。 6. The method for checking data consistency of an IC chip according to claim 5, wherein the saved check code is saved in a linked file. 前記保存されたチェックコードが、当該ファイルが含まれるディレクトリのディレクトリ管理領域内に保存されていることを特徴とする請求項5または6に記載のICチップのデータ整合性チェック方法。 7. The data integrity checking method for an IC chip according to claim 5, wherein the saved check code is saved in a directory management area of a directory containing the file. 前記チェックコードは、巡回冗長検査方式で計算されたコードであることを特徴とする請求項5から7のいずれか一項に記載のICチップのデータ整合性チェック方法。 8. The data consistency check method for an IC chip according to claim 5, wherein the check code is a code calculated using a cyclic redundancy check method.
JP2022041353A 2022-03-16 2022-03-16 Ic chip and integrity check method for ic chip Pending JP2023135978A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2022041353A JP2023135978A (en) 2022-03-16 2022-03-16 Ic chip and integrity check method for ic chip

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2022041353A JP2023135978A (en) 2022-03-16 2022-03-16 Ic chip and integrity check method for ic chip

Publications (1)

Publication Number Publication Date
JP2023135978A true JP2023135978A (en) 2023-09-29

Family

ID=88144980

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2022041353A Pending JP2023135978A (en) 2022-03-16 2022-03-16 Ic chip and integrity check method for ic chip

Country Status (1)

Country Link
JP (1) JP2023135978A (en)

Similar Documents

Publication Publication Date Title
US11782826B2 (en) Security check systems and methods for memory allocations
JP2000194590A (en) Extension card file system
JP2007012060A (en) File system having inverted hierarchical structure
KR0121800B1 (en) Memory card device
JP2007012058A (en) File system for storing transaction records in flash-like media
JPH06506547A (en) Method and apparatus for updating information in memory, and use of the method and apparatus for memory cards
US7775423B2 (en) Portable electronic device and control method of portable electronic device
JP2007012056A (en) File system having authentication of postponed data integrity
JP2007012054A (en) Startup authentication of optimized file system integrity
US20190042367A1 (en) Method and apparatus for processing failure of cipher change of ciphertext in database
US20060277221A1 (en) Transactional file system with client partitioning
CN110222035A (en) A kind of efficient fault-tolerance approach of database page based on exclusive or check and journal recovery
CN111666046B (en) Data storage method, device and equipment
JP2023135978A (en) Ic chip and integrity check method for ic chip
US6754857B2 (en) Method of testing cache memory
CN117149499B (en) Memory occupation optimization method for kernel module based on dynamic symbol table
JPS63133240A (en) Contents assurance system for residence table
JP7438432B1 (en) Electronic information storage medium, IC chip, IC card, record writing method, and program
CN102929563A (en) Transaction data processing method and device
CN116700841B (en) Method and device for calling native API (application program interface)
US7684299B2 (en) Control apparatus, a control method and an information access apparatus
CN116820849A (en) Memory SPD read-write test method and device, electronic equipment and storage medium
CN109271277A (en) Access method, device and system after database delay machine
JP3222592B2 (en) Data verification device
JPS63153654A (en) External storage system for redundancy code