JP3231448B2 - IC card - Google Patents

IC card

Info

Publication number
JP3231448B2
JP3231448B2 JP03141393A JP3141393A JP3231448B2 JP 3231448 B2 JP3231448 B2 JP 3231448B2 JP 03141393 A JP03141393 A JP 03141393A JP 3141393 A JP3141393 A JP 3141393A JP 3231448 B2 JP3231448 B2 JP 3231448B2
Authority
JP
Japan
Prior art keywords
information
card
file
error check
directory
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.)
Expired - Lifetime
Application number
JP03141393A
Other languages
Japanese (ja)
Other versions
JPH06223239A (en
Inventor
和義 入澤
博嗣 針間
輝明 城
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.)
Dai Nippon Printing Co Ltd
Original Assignee
Dai Nippon 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 Dai Nippon Printing Co Ltd filed Critical Dai Nippon Printing Co Ltd
Priority to JP03141393A priority Critical patent/JP3231448B2/en
Publication of JPH06223239A publication Critical patent/JPH06223239A/en
Application granted granted Critical
Publication of JP3231448B2 publication Critical patent/JP3231448B2/en
Anticipated expiration legal-status Critical
Expired - Lifetime legal-status Critical Current

Links

Landscapes

  • Information Retrieval, Db Structures And Fs Structures Therefor (AREA)

Description

【発明の詳細な説明】DETAILED DESCRIPTION OF THE INVENTION

【0001】[0001]

【産業上の利用分野】本発明はICカード、特に、ファ
イルを管理するために用いられるディレクトリについて
のエラーチェックコードの付加方法に関する。
BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to an IC card, and more particularly to a method of adding an error check code to a directory used for managing files.

【0002】[0002]

【従来の技術】磁気カードに代わる新しい情報記録媒体
として、ICカードが注目を集めている。このICカー
ドは、メモリ素子を内蔵しており、磁気カードに比べて
情報の記憶容量が格段に向上しており、しかも高度なセ
キュリティを有する。通常、ICカードのメモリ領域に
は、複数のファイル領域が定義され、種々の情報は所定
のファイル領域にレコード単位で書き込まれる。また、
各ファイルごとにディレクトリが用意され、このディレ
クトリ内には、ファイルをアクセスするために必要な情
報(たとえば、ファイルID、アクセス条件、ファイル
領域の先頭アドレス値、レコード長、記録済みのレコー
ド数、キー情報、など)が書き込まれる。
2. Description of the Related Art As a new information recording medium replacing a magnetic card, an IC card has attracted attention. This IC card has a built-in memory element, has a remarkably improved information storage capacity as compared with a magnetic card, and has a high level of security. Normally, a plurality of file areas are defined in a memory area of an IC card, and various information is written in a predetermined file area in units of records. Also,
A directory is prepared for each file, and information necessary for accessing the file (for example, file ID, access condition, start address value of file area, record length, number of recorded records, Information, etc.) is written.

【0003】[0003]

【発明が解決しようとする課題】一般の社会生活におい
て実用されるICカードには、社会生活上、非常に重要
な情報が記録されることになる。したがって、何らかの
事故によって、記録された情報が失われることを避ける
安全策を講じる必要がある。このため、レコードやディ
レクトリを、エラーチェックコードとともに記録するよ
うにし、万一データ化けが発生しても、これを発見でき
るようにしている。すなわち、読み出し時には、レコー
ドやディレクトリとともにエラーチェックコードも読み
出すようにし、所定の論理演算を行ってエラーチェック
コードが正しいことを確認する処理を行っている。しか
しながら、このようなエラーチェック処理は、チェック
対象となるデータ長が長くなればなるほど時間がかか
る。特にディレクトリは、ファイルをアクセスするたび
に読み出す情報であり、エラーチェック処理の負担はか
なり重くなり、これに費やす演算時間も無視できないも
のとなる。
An IC card used in general social life records information that is very important in social life. Therefore, it is necessary to take safety measures to prevent the loss of recorded information due to any accident. For this reason, records and directories are recorded together with error check codes, so that even if data is garbled, it can be detected. That is, at the time of reading, the error check code is read together with the record and the directory, and a process of performing a predetermined logical operation to confirm that the error check code is correct is performed. However, such an error check process takes longer as the data length to be checked becomes longer. In particular, the directory is information to be read every time a file is accessed, and the load of error check processing is considerably heavy, and the computation time spent for this is not negligible.

【0004】そこで本発明は、ディレクトリについての
エラーチェック処理の負担を軽減することのできるIC
カードを提供することを目的とする。
Accordingly, the present invention provides an IC that can reduce the load of error check processing for a directory.
The purpose is to provide the card.

【0005】[0005]

【課題を解決するための手段】[Means for Solving the Problems]

(1) 本願第1の発明は、データをファイル単位で記録
するとともに、このファイルをアクセスするために必要
な情報をディレクトリとして記録しておくICカードに
おいて、ディレクトリ内の情報を、その情報の書換頻度
に基づいてグループ分けし、各グループごとに別個のエ
ラーチェックコードを付加して記録するようにしたもの
である。
(1) The first invention of the present application is an IC card that records data in a file unit and records information necessary for accessing the file as a directory. In the IC card, the information in the directory is rewritten. Grouping is performed based on frequency, and a separate error check code is added to each group and recorded.

【0006】(2) 本願第2の発明は、上述の第1の発
明に係るICカードにおいて、ディレクトリ内の情報
を、ICカード発行後は書き換える必要がない固定情報
と、ファイルをアクセスするために必要なキーを含むセ
キュリティ情報と、現時点におけるファイル内のレコー
ド数あるいは容量に関する情報を含む可変情報と、にグ
ループ分けし、各グループごとに別個のエラーチェック
コードを付加して記録するようにしたものである。
(2) The second invention of the present application is directed to the IC card according to the first invention, wherein the information in the directory is used to access the fixed information that does not need to be rewritten after the IC card is issued and the file. Security information including necessary keys and variable information including information on the number or size of records in the file at the present time are grouped into groups, and a separate error check code is added to each group and recorded. It is.

【0007】[0007]

【作 用】ディレクトリには、ファイルをアクセスする
ために必要な様々な情報が記録されている。これらの情
報の中には、ICカードを発行する時点で書き込まれた
後は、一切書き換える必要のない情報もあれば、ICカ
ードの使用中にときどき書き換える必要のある情報もあ
り、更に、ICカードの使用中に頻繁に書き換える必要
のある情報もある。本発明に係るICカードでは、ディ
レクトリ内の情報を、その情報の書換頻度に基づいてグ
ループ分けし、各グループごとに別個のエラーチェック
コードが付加される。一般に、データの書換頻度が高い
ほど、データ化けなどのエラー発生確率も高くなり、逆
に、データの書換頻度が低いほど、データ化けなどのエ
ラー発生確率も低くなるものと考えられる。したがっ
て、通常は、書換頻度の高いグループについてのエラー
チェック処理のみを行えば十分である。書換頻度の低い
グループについてのエラーチェック処理は、必要に応じ
て適宜行うようにすればよい。こうすることにより、通
常のエラーチェック処理の負担が大幅に軽減できる。
[Operation] In the directory, various information necessary for accessing a file is recorded. Some of these pieces of information do not need to be rewritten at all at the time of issuing the IC card, and some pieces of information need to be rewritten from time to time during use of the IC card. Some information needs to be rewritten frequently during the use of. In the IC card according to the present invention, the information in the directory is divided into groups based on the rewriting frequency of the information, and a separate error check code is added to each group. In general, it is considered that the higher the frequency of data rewriting, the higher the probability of occurrence of errors such as data corruption, and conversely, the lower the frequency of data rewriting, the lower the probability of occurrence of errors such as data corruption. Therefore, it is usually sufficient to perform only the error check processing for the group having a high rewrite frequency. The error check process for the group with a low rewrite frequency may be appropriately performed as needed. By doing so, the load of the normal error check processing can be greatly reduced.

【0008】[0008]

【実施例】以下、本発明を図示する実施例に基づいて説
明する。ここでは、ICカードに内蔵されたEEPRO
Mに情報を記録する場合を例にとって説明する。ICカ
ードの発行時には、図1に示すように、EEPROMの
メモリ領域上にいくつかのファイル領域が定義され、各
ファイルごとにディレクトリが作成される。図示する例
では、ファイルAおよびファイルBの2つの領域が定義
され、同時に、ディレクトリAおよびディレクトリBが
用意される。ディレクトリAにはファイルAをアクセス
するために必要な情報が書き込まれ、ディレクトリBに
はファイルBをアクセスするために必要な情報が書き込
まれる。
DETAILED DESCRIPTION OF THE PREFERRED EMBODIMENTS The present invention will be described below with reference to the illustrated embodiments. Here, the EEPRO built in the IC card
A case where information is recorded in M will be described as an example. When an IC card is issued, as shown in FIG. 1, several file areas are defined on the memory area of the EEPROM, and a directory is created for each file. In the illustrated example, two areas of a file A and a file B are defined, and a directory A and a directory B are prepared at the same time. Information necessary for accessing the file A is written to the directory A, and information necessary for accessing the file B is written to the directory B.

【0009】従来のICカードでは、1つのディレクト
リ全体に対してエラーチェックコードが付加されてい
た。したがって、エラーチェック処理も1つのディレク
トリ全体について行う必要があり、1つのディレクトリ
のデータ長が長い場合には、エラーチェック処理の対象
となる桁数も大きくなり、かなり長い処理時間が必要に
なる。
In a conventional IC card, an error check code is added to an entire directory. Therefore, it is necessary to perform the error check process for one entire directory. If the data length of one directory is long, the number of digits to be subjected to the error check process becomes large, and a considerably long processing time is required.

【0010】本発明の要点は、ディレクトリ内の情報
を、その情報の書換頻度に基づいてグループ分けし、各
グループごとに別個のエラーチェックコードを付加して
記録するようにした点にある。これを図2の具体的な実
施例に基づいて説明しよう。この実施例では、1つのデ
ィレクトリが3つのグループに分けられている。グルー
プ1には、ICカード発行後は書き換える必要がない固
定情報が記録される。たとえば、ファイルIDやそのフ
ァイルのアクセス条件などの情報はこの固定情報に含ま
れる。これらの情報は、ICカードの発行時に書き込ま
れるが、カードの使用時に書き換えられることはない。
次のグループ2には、ファイルをアクセスするために必
要なキーを含むセキュリティ情報が記録される。このよ
うなキーは、頻繁に書き換えられることはない。ユーザ
がキーを変更したいと希望したときなど、特別な場合に
書き換えられるだけである。最後のグループ3には、頻
繁に書き換えられる可変情報が記録される。たとえば、
現時点におけるファイル内のレコード数、記録済み容
量、残存する容量といった情報である。ファイル内にレ
コードを追加書き込みしたり、レコードを削除したりす
れば、レコード数や容量に関する情報は変化するため、
その都度、書き換えが行われることになる。
The gist of the present invention is that information in a directory is divided into groups based on the rewriting frequency of the information, and a separate error check code is added to each group and recorded. This will be described based on the specific embodiment of FIG. In this embodiment, one directory is divided into three groups. In Group 1, fixed information that does not need to be rewritten after the IC card is issued is recorded. For example, information such as a file ID and an access condition of the file is included in the fixed information. These pieces of information are written when the IC card is issued, but are not rewritten when the card is used.
In the next group 2, security information including a key necessary for accessing the file is recorded. Such keys are not frequently rewritten. It is only rewritten in special cases, such as when the user wants to change the key. In the last group 3, variable information that is frequently rewritten is recorded. For example,
Information such as the number of records in the file, the recorded capacity, and the remaining capacity at the current time. If you add or delete records in the file, information about the number and size of records will change,
Each time, rewriting is performed.

【0011】結局、図2において、グループ1の固定情
報はICカードの使用時には書き換えが行われることが
ない情報であり、グループ2のセキュリティ情報は書換
頻度が小さい情報であり、グループ3の可変情報は書換
頻度の大きな情報であるということができる。本発明で
は、このようにグループ分けした情報のそれぞれに別個
独立したエラーチェックコードを付加して記録するよう
にする。すなわち、固定情報にはエラーチェックコード
ECC1が、セキュリティ情報にはエラーチェックコー
ドECC2が、可変情報にはエラーチェックコードEC
C3が、それぞれ付加されて記録されており、エラーチ
ェック処理は、各グループごとに別個独立して行うこと
ができる。たとえば、グループ3についてのエラーチェ
ック処理は、読み出したディレクトリのうちの可変情報
の部分のデータについて所定の論理演算を行ってエラー
チェックコードを生成し、この生成したエラーチェック
コードが読み出したエラーチェックコードECC3に一
致するか否かを確認すればよい。必要な論理演算は、可
変情報の部分のデータに対してのみ行えばよいので、デ
ータの桁数は比較的短くなり、演算負担は軽減される。
After all, in FIG. 2, the fixed information of group 1 is information that is not rewritten when the IC card is used, the security information of group 2 is information with a low rewriting frequency, and the variable information of group 3 is Can be said to be information with a high rewrite frequency. In the present invention, each of the grouped information is recorded with an independent error check code added thereto. That is, the fixed information has the error check code ECC1, the security information has the error check code ECC2, and the variable information has the error check code ECC1.
C3 is added and recorded, and the error check process can be performed separately and independently for each group. For example, the error check processing for the group 3 generates an error check code by performing a predetermined logical operation on the data of the variable information portion of the read directory, and generates the error check code. What is necessary is just to confirm whether or not it matches ECC3. Since the necessary logical operation need only be performed on the data of the variable information portion, the number of digits of the data is relatively short, and the operation load is reduced.

【0012】一般に、データの書換頻度が高いほど、デ
ータ化けなどのエラー発生確率も高くなり、逆に、デー
タの書換頻度が低いほど、データ化けなどのエラー発生
確率も低くなるものと考えられる。したがって、図2の
例では、書き換えが行われない固定情報については、エ
ラー発生確率は非常に低いと考えられる。そこで、グル
ープ1に関するエラーチェック処理は、必要と思われる
ときにだけ行えば十分である。これに対し、頻繁に書き
換えが行われる可変情報については、エラー発生確率も
高くなるものと考えられる。そこで、グループ3に関す
るエラーチェック処理は、頻繁に行うのが好ましい。具
体的には、ディレクトリを読み出すたびに、グループ3
についてのエラーチェック処理は必ず行うようにすれば
よい。セキュリティ情報については、この中間の頻度で
エラーチェック処理を行えばよいことになる。このよう
に、ディレクトリ内の情報を、書換頻度ごとにグループ
分けしておき、グループごとにエラーチェックを行える
ようにしておけば、非常に効率的なエラーチェック処理
が可能になる。
In general, it is considered that the higher the frequency of rewriting data, the higher the probability of occurrence of errors such as data corruption, and conversely, the lower the frequency of data rewriting, the lower the probability of occurrence of errors such as data corruption. Therefore, in the example of FIG. 2, it is considered that the error occurrence probability is extremely low for the fixed information that is not rewritten. Therefore, it is sufficient to perform the error check processing for group 1 only when it is deemed necessary. On the other hand, for variable information that is frequently rewritten, the error occurrence probability is considered to be higher. Therefore, it is preferable that the error check process for group 3 be performed frequently. Specifically, each time the directory is read, the group 3
It is sufficient to always perform the error check processing for. For security information, the error check process may be performed at this intermediate frequency. As described above, if the information in the directory is grouped according to the rewriting frequency and the error check can be performed for each group, a very efficient error check process can be performed.

【0013】以上、本発明を図示する実施例に基づいて
説明したが、本発明はこの実施例のみに限定されるもの
ではなく、この他にも種々の態様で実施可能である。特
に、図2に示すグループ分けは一例を示したものであ
り、グループ数は任意に設定することができ、どの情報
をどのグループに所属させるかも任意である。要する
に、書き換えの予想頻度に基づくグループ分けが行われ
ていれば、どのような分け方を採用してもかまわない。
Although the present invention has been described based on the illustrated embodiment, the present invention is not limited to this embodiment, but can be implemented in various other modes. In particular, the grouping shown in FIG. 2 is an example, and the number of groups can be set arbitrarily, and which information belongs to which group is also arbitrary. In short, any grouping method may be adopted as long as grouping based on the expected frequency of rewriting is performed.

【0014】[0014]

【発明の効果】以上のとおり、本発明に係るICカード
によれば、ディレクトリ内の情報を、書換頻度ごとにグ
ループ分けしておき、グループごとにエラーチェックを
行えるようにしたため、ディレクトリについてのエラー
チェック処理の負担を軽減することができる。
As described above, according to the IC card according to the present invention, the information in the directory is grouped according to the rewriting frequency, and the error check can be performed for each group. The burden of the check process can be reduced.

【図面の簡単な説明】[Brief description of the drawings]

【図1】ICカード発行時に、EEPROM内に定義さ
れたファイルおよびディレクトリを示す図である。
FIG. 1 is a diagram showing files and directories defined in an EEPROM when an IC card is issued.

【図2】図1に示すディレクトリを、本発明に基いてグ
ループ分けして記録したフォーマットの一例を示す図で
ある。
FIG. 2 is a diagram showing an example of a format in which the directories shown in FIG. 1 are grouped and recorded based on the present invention.

【符号の説明】[Explanation of symbols]

A,B…領域およびディレクトリ ECC1,ECC2,ECC3…エラーチェックコード A, B ... area and directory ECC1, ECC2, ECC3 ... error check code

フロントページの続き (56)参考文献 特開 平4−165487(JP,A) 特開 昭63−225886(JP,A) 特開 昭62−8282(JP,A) (58)調査した分野(Int.Cl.7,DB名) G06K 19/07 G06F 12/00 542 Continuation of the front page (56) References JP-A-4-165487 (JP, A) JP-A-63-225886 (JP, A) JP-A-62-8282 (JP, A) (58) Fields studied (Int .Cl. 7 , DB name) G06K 19/07 G06F 12/00 542

Claims (2)

(57)【特許請求の範囲】(57) [Claims] 【請求項1】 データをファイル単位で記録するととも
に、このファイルをアクセスするために必要な情報をデ
ィレクトリとして記録しておくICカードにおいて、 ディレクトリ内の情報を、その情報の書換頻度に基づい
てグループ分けし、各グループごとに別個のエラーチェ
ックコードを付加して記録するようにしたことを特徴と
するICカード。
1. An IC card for recording data in file units and recording information necessary for accessing the file as a directory, wherein information in the directory is grouped based on the rewriting frequency of the information. An IC card which is divided and recorded with a separate error check code for each group.
【請求項2】 請求項1に記載のICカードにおいて、
ディレクトリ内の情報を、ICカード発行後は書き換え
る必要がない固定情報と、ファイルをアクセスするため
に必要なキーを含むセキュリティ情報と、現時点におけ
るファイル内のレコード数あるいは容量に関する情報を
含む可変情報と、にグループ分けし、各グループごとに
別個のエラーチェックコードを付加して記録するように
したことを特徴とするICカード。
2. The IC card according to claim 1, wherein
The information in the directory includes fixed information that does not need to be rewritten after the IC card is issued, security information including a key required to access the file, and variable information including information on the number of records or the capacity of the file at the present time. An IC card characterized in that the data is divided into groups, and each group is recorded with a separate error check code added.
JP03141393A 1993-01-27 1993-01-27 IC card Expired - Lifetime JP3231448B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP03141393A JP3231448B2 (en) 1993-01-27 1993-01-27 IC card

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP03141393A JP3231448B2 (en) 1993-01-27 1993-01-27 IC card

Publications (2)

Publication Number Publication Date
JPH06223239A JPH06223239A (en) 1994-08-12
JP3231448B2 true JP3231448B2 (en) 2001-11-19

Family

ID=12330576

Family Applications (1)

Application Number Title Priority Date Filing Date
JP03141393A Expired - Lifetime JP3231448B2 (en) 1993-01-27 1993-01-27 IC card

Country Status (1)

Country Link
JP (1) JP3231448B2 (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2013080379A (en) * 2011-10-04 2013-05-02 Dainippon Printing Co Ltd Security token, data update method, and computer program

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2008287511A (en) * 2007-05-17 2008-11-27 Dainippon Printing Co Ltd Ic card, ic card issuing machine and ic card use terminal

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2013080379A (en) * 2011-10-04 2013-05-02 Dainippon Printing Co Ltd Security token, data update method, and computer program

Also Published As

Publication number Publication date
JPH06223239A (en) 1994-08-12

Similar Documents

Publication Publication Date Title
JP3629510B2 (en) Expansion card file system
JP4107370B2 (en) Distributed data archiving system
US6691136B2 (en) Fast data retrieval based upon contiguous consolidation of records according to frequency of access
JP4464340B2 (en) Distributed data archiving system
JPH0833864B2 (en) Data integrity method
CN110222035A (en) A kind of efficient fault-tolerance approach of database page based on exclusive or check and journal recovery
US7191360B2 (en) Method of data backup and recovery
CN113190470A (en) FLASH chip storage area and high-performance power-off-prevention read-write method thereof
JP3231448B2 (en) IC card
CN111737058A (en) IC card and power-down prevention data backup method or data recovery method thereof
JP3391475B2 (en) Data writing method and data reading method, and data recording / reproducing apparatus implementing these methods
JP2808358B2 (en) IC card
JP3129865B2 (en) Data validation method
CN111382162B (en) AI data-based structured storage medium and medium reading and writing method thereof
JP3222592B2 (en) Data verification device
JP2850049B2 (en) IC card
JP2822869B2 (en) Library file management device
JP3246558B2 (en) IC card
US8103623B2 (en) Method for accessing data stored in storage medium of electronic device
JP3222619B2 (en) Information recording medium using key
JP2023135978A (en) Ic chip and integrity check method for ic chip
KR100390487B1 (en) Memory card and his access method
JP3234011B2 (en) IC card
JPH06162285A (en) Ic card
CN117742586A (en) Data storage method, device, computer equipment and storage medium

Legal Events

Date Code Title Description
FPAY Renewal fee payment (event date is renewal date of database)

Free format text: PAYMENT UNTIL: 20080914

Year of fee payment: 7

FPAY Renewal fee payment (event date is renewal date of database)

Free format text: PAYMENT UNTIL: 20090914

Year of fee payment: 8

FPAY Renewal fee payment (event date is renewal date of database)

Free format text: PAYMENT UNTIL: 20090914

Year of fee payment: 8

FPAY Renewal fee payment (event date is renewal date of database)

Free format text: PAYMENT UNTIL: 20100914

Year of fee payment: 9

FPAY Renewal fee payment (event date is renewal date of database)

Free format text: PAYMENT UNTIL: 20110914

Year of fee payment: 10

FPAY Renewal fee payment (event date is renewal date of database)

Free format text: PAYMENT UNTIL: 20110914

Year of fee payment: 10

FPAY Renewal fee payment (event date is renewal date of database)

Free format text: PAYMENT UNTIL: 20120914

Year of fee payment: 11

FPAY Renewal fee payment (event date is renewal date of database)

Free format text: PAYMENT UNTIL: 20120914

Year of fee payment: 11

FPAY Renewal fee payment (event date is renewal date of database)

Free format text: PAYMENT UNTIL: 20130914

Year of fee payment: 12

EXPY Cancellation because of completion of term
FPAY Renewal fee payment (event date is renewal date of database)

Free format text: PAYMENT UNTIL: 20130914

Year of fee payment: 12