JP3231466B2 - Information recording medium storing keys - Google Patents
Information recording medium storing keysInfo
- Publication number
- JP3231466B2 JP3231466B2 JP08932893A JP8932893A JP3231466B2 JP 3231466 B2 JP3231466 B2 JP 3231466B2 JP 08932893 A JP08932893 A JP 08932893A JP 8932893 A JP8932893 A JP 8932893A JP 3231466 B2 JP3231466 B2 JP 3231466B2
- Authority
- JP
- Japan
- Prior art keywords
- key
- card
- function
- information
- functions
- 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
Links
Landscapes
- Storage Device Security (AREA)
Description
【0001】[0001]
【産業上の利用分野】本発明は、キーを記憶した情報記
録媒体、特に、記憶したキーを用いて種々の機能を実行
する情報記録媒体に関する。BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to an information recording medium storing keys and, more particularly, to an information recording medium which executes various functions using the stored keys.
【0002】[0002]
【従来の技術】磁気カードに代わる新しい情報記録媒体
として、ICカードが注目を集めている。特に、CPU
を内蔵したICカードは、高度なセキュリティを有する
ため、種々の分野での利用が期待されている。一般にI
Cカードは、RAM,ROM,EEPROMといった3
種類のメモリを内蔵しており、いずれも内蔵CPUによ
ってアクセスされる。ICカードに対するデータの授受
は、リーダライタ装置によって行われる。リーダライタ
装置からICカードに対して所定の命令を与えると、こ
の命令はICカード内のCPUによって実行される。た
とえば、データの書込命令であれば、リーダライタ装置
からICカードへ与えたデータがICカード内のメモリ
に書込まれ、データの読出命令であれば、ICカード内
のメモリから読み出されたデータがリーダライタ装置へ
転送される。2. Description of the Related Art As a new information recording medium replacing a magnetic card, an IC card has attracted attention. In particular, CPU
An IC card with a built-in is expected to be used in various fields because of its high security. Generally I
The C card has three types such as RAM, ROM, and EEPROM.
There are various types of memories, all of which are accessed by the built-in CPU. The transfer of data to and from the IC card is performed by a reader / writer device. When a predetermined command is given from the reader / writer device to the IC card, the command is executed by the CPU in the IC card. For example, in the case of a data write command, data given from the reader / writer device to the IC card is written in the memory in the IC card, and in the case of a data read command, data is read from the memory in the IC card. The data is transferred to the reader / writer device.
【0003】このように、ICカード内のメモリに対す
るアクセスは、内蔵CPUによって行われるため、不正
なアクセスを禁止する利用形態が可能になる。通常は、
ICカード内にキーを記憶させておき、このキーを用い
て所定の機能を実行させることになる。たとえば、IC
カードの所持者が正当な者であることを確認するための
照合機能では、正当な所持者だけが知得している照合キ
ーを、ICカード内にも記憶させておき、外部から与え
られた照合キーと内部に記憶している照合キーとが一致
した場合に、正当な所持者によるアクセスであると確認
する処理が行われる。また、秘密性が要求されるデータ
をICカード内に書込む場合に利用される暗号化書込機
能では、所定の暗号化キーをICカード内に記憶させて
おき、外部から与えられたデータ(秘密性が要求される
データ)を、この暗号化キーを用いて暗号化し、暗号化
した後のデータを内蔵のメモリに書込む処理が行われ
る。メモリに書込まれたデータは、既に暗号化されてい
るため、万一、不正なアクセスによってこのデータが外
部に読み出されたとしても、暗号化キーを知らない者に
はこれを解読することができない。この他にも、所定の
キーを用いる種々の機能が利用されている。As described above, since the access to the memory in the IC card is performed by the built-in CPU, it is possible to use the device in which the unauthorized access is prohibited. Normally,
A key is stored in the IC card, and a predetermined function is executed using the key. For example, IC
In the collation function for confirming that the card holder is a legitimate person, a collation key known only by the legitimate holder is also stored in the IC card, and is given from outside. When the collation key matches the collation key stored therein, a process of confirming that the access is performed by a valid holder is performed. In an encryption writing function used when writing data requiring confidentiality in an IC card, a predetermined encryption key is stored in the IC card, and data (externally supplied) is stored in the IC card. Data that requires confidentiality) is encrypted using this encryption key, and the encrypted data is written to a built-in memory. Since the data written in the memory is already encrypted, even if this data is read out by unauthorized access, anyone who does not know the encryption key must decrypt it. Can not. In addition, various functions using predetermined keys are used.
【0004】[0004]
【発明が解決しようとする課題】前述のように、ICカ
ードには、キーを用いる種々の機能が用意されている。
しかも、従来のICカードでは、ある特定の機能を実行
するためには、ある特定のキーが対応づけられている。
たとえば、5種類の機能が存在する場合、これら各機能
のそれぞれに別個独立したキーが対応づけられており、
合計5種類のキーが必要になる。ところが、実社会にお
けるICカードの利用形態は、益々複雑化してゆく傾向
にあり、より柔軟なキーの利用形態が望まれている。た
とえば、1つの機能に対して複数のキーを利用できるよ
うにしたり、1つのキーによって複数の機能に対応する
ことができるようにすれば、非常に便利な使い方が可能
になる。As described above, IC cards are provided with various functions using keys.
In addition, in the conventional IC card, a specific key is associated with a specific function to be executed.
For example, if there are five types of functions, each of these functions is associated with a separate and independent key,
A total of five keys are required. However, the use of IC cards in the real world tends to become more and more complicated, and a more flexible use of keys is desired. For example, if a plurality of keys can be used for one function or a plurality of functions can be handled by one key, a very convenient usage can be realized.
【0005】そこで本発明は、より柔軟なキーの利用形
態を実現することができるキーを記憶した情報記録媒体
を提供することを目的とする。Accordingly, an object of the present invention is to provide an information recording medium in which a key capable of realizing a more flexible key use mode is stored.
【0006】[0006]
【課題を解決するための手段】本発明は、複数の機能を
実行するためのプログラムと複数のキーとを内部に記憶
しており、複数の機能のいずれかを特定する情報と複数
のキーのいずれかを特定する情報とを含んだ所定の指示
が外部から与えられたときに、特定されたキーを用いて
特定された機能を実行する情報記録媒体において、複数
のキーのそれぞれについて、当該キー自身を示すデータ
と、当該キーが複数の機能のそれぞれについて有効であ
るか否かを示すキー種別情報と、を当該キーについての
キーディレクトリとして格納したメモリと、所定の指示
が外部から与えられたときに、この指示によって特定さ
れた特定キーについてのキーディレクトリを参照し、こ
のキーディレクトリ内のキー種別情報に基づいて、この
指示によって特定された機能について、この指示によっ
て特定されたキーが有効であるか否かを判断し、有効で
ある場合にのみ特定されたキーを用いて特定された機能
の実行を行う機能実行部と、 を設けるようにしたもので
ある。According to the present invention, a program for executing a plurality of functions and a plurality of keys are stored therein, and information for specifying one of the plurality of functions and information of the plurality of keys are stored. when a predetermined instruction including the information specifying either given externally, in the information recording medium to perform the functions specified by using the key specified, a plurality
For each of the keys, data indicating the key itself
The key is valid for each of the
Key type information indicating whether or not the key
When a predetermined instruction is given from the outside and a memory stored as a key directory, a key directory for a specific key specified by the instruction is referred to, and based on key type information in the key directory, this instruction is referred to. A function execution unit that determines whether the key specified by this instruction is valid for the function specified by the instruction, and executes the specified function using the specified key only when the key is valid ; , Are provided .
【0007】また、キー種別情報を、複数の機能に1対
1に対応した複数のビット情報によって構成し、このビ
ット情報の「1」または「0」によって有効であるか否
かを示すようにしたものである。Further, the key type information is constituted by a plurality of bit information corresponding to a plurality of functions on a one-to-one basis, and whether the validity is indicated by "1" or "0" of the bit information. It was done.
【0008】[0008]
【作 用】本発明に係る情報記録媒体では、複数の機能
と複数のキーとの対応関係を自由に設定することが可能
になる。すなわち、キーディレクトリ内のキー種別情報
は、当該キーが各機能について有効であるか否かを示す
ものであり、このキー種別情報の設定により、当該キー
がどの機能に対応するかを自由に定義することができる
ようになる。たとえば、「すべての機能について有効で
ある」という設定を行えば、このキーはいわゆるマスタ
ーキーとして利用することができるようになり、このキ
ーのみであらゆる機能の実行が可能になる。カード発行
者は、セキュリティとの兼ね合いを考慮しながら、キー
の柔軟な設定を行うことができる。With the information recording medium according to the present invention, it is possible to freely set the correspondence between a plurality of functions and a plurality of keys. That is, the key type information in the key directory indicates whether or not the key is valid for each function. By setting the key type information, it is possible to freely define which function the key corresponds to. Will be able to For example, if a setting of "valid for all functions" is made, this key can be used as a so-called master key, and all functions can be executed only by this key. The card issuer can set the key flexibly while considering the balance with security.
【0009】[0009]
【実施例】以下、本発明を図示する実施例に基づいて説
明する。図1は一般的なICカード10をリーダライタ
装置20に接続した状態を示すブロック図である。IC
カード10内には、リーダライタ装置20と接続するた
めのI/O装置11と、CPU12と、RAM13と、
ROM14と、EEPROM15と、が内蔵されてい
る。CPU12は、I/O装置11を介してリーダライ
タ装置20から与えられる命令を受け取り、これを実行
する。3種類のメモリのうち、RAM13は揮発性のメ
モリであって、CPU12のワークエリアとして利用さ
れる。ROM14およびEEPROM15は、いずれも
不揮発性のメモリであるが、ROM14は読出し専用で
あるのに対し、EEPROMは随時書き換えを行うこと
ができる。このため、ROM14には、CPU12に実
行させるプログラムが用意され、EEPROM15に
は、このICカード10を特定の用途に利用する場合に
必要な種々の情報(ファイルディレクトリ、ユーザデー
タなど)が記録される。DETAILED DESCRIPTION OF THE PREFERRED EMBODIMENTS The present invention will be described below with reference to the illustrated embodiments. FIG. 1 is a block diagram showing a state where a general IC card 10 is connected to a reader / writer device 20. IC
In the card 10, an I / O device 11 for connecting to a reader / writer device 20, a CPU 12, a RAM 13,
The ROM 14 and the EEPROM 15 are built in. The CPU 12 receives a command given from the reader / writer device 20 via the I / O device 11, and executes the command. Of the three types of memory, the RAM 13 is a volatile memory and is used as a work area of the CPU 12. The ROM 14 and the EEPROM 15 are both non-volatile memories. The ROM 14 is read-only, while the EEPROM can be rewritten at any time. For this reason, a program to be executed by the CPU 12 is prepared in the ROM 14, and various information (file directory, user data, etc.) necessary when the IC card 10 is used for a specific application is recorded in the EEPROM 15. .
【0010】このようなICカード10を金融業界に用
いる一般的な規格として、「ISO9992」が知られ
ている。既存ICカードの一般的仕様や、このISO規
格などに従うには、図2の表に示すような5種類の機能
が要求されている。従来のICカードでは、この5種類
の各機能について、それぞれ別個独立したキーが用意さ
れている。すなわち、図2の例では、キーIDとして
「01」〜「05」の番号が付された5つのキーA〜E
が用意されている(実際には、各キーは数桁の英数字か
らなるパスワードによって構成されているが、本明細書
では説明の便宜上、「キーA」,「キーB」といった抽
象的な表現をすることにする)。そして、この図2に示
す表における「キーID」の欄および「キー」の欄の情
報が、ICカード10内のEEPROM15内の所定の
領域に書込まれていることになる。また、この5種類の
各機能を実行するためのプログラムは、ROM14内に
書込まれていることになる。As a general standard for using such an IC card 10 in the financial industry, "ISO9992" is known. In order to comply with the general specifications of the existing IC card and this ISO standard, five functions as shown in the table of FIG. 2 are required. In a conventional IC card, independent keys are prepared for each of these five types of functions. That is, in the example of FIG. 2, five keys A to E numbered “01” to “05” as key IDs
(In practice, each key is composed of a password composed of several alphanumeric characters. However, in this specification, for convenience of explanation, abstract expressions such as “key A” and “key B” are used. I will do that). Then, the information in the “key ID” column and the “key” column in the table shown in FIG. 2 is written in a predetermined area in the EEPROM 15 in the IC card 10. The programs for executing these five functions are written in the ROM 14.
【0011】このICカード10に特定の機能を実行さ
せるには、リーダライタ装置20から、実行させるべき
機能を特定する情報と、用いるキーを特定する情報と、
を含んだ所定の指示をICカード10に与えればよい。
たとえば、認証機能を実行させるのであれば、「認証機
能」を特定するための情報(たとえば、「AUTHEN
TICATE」なるコマンドを示す文字列)と、用いる
「キーB」を特定するための情報(たとえば、キーID
である「02」なる数値)と、を含んだ所定の指示をI
Cカード10に与えてやればよい。CPU12は、この
ような指示を受けると、EEPROM15内に書込まれ
ていた「キーB」を用いて、ROM14内に書込まれて
いた認証機能実行のためのプログラムを実行することに
なる。In order for the IC card 10 to execute a specific function, information for specifying a function to be executed, information for specifying a key to be used, and
May be given to the IC card 10.
For example, if the authentication function is to be executed, information for specifying the “authentication function” (for example, “AUTHEN”)
A character string indicating a command "TICATE") and information for specifying "key B" to be used (for example, key ID
The predetermined instruction including the numerical value “02” that is
What is necessary is just to give to C card 10. When receiving such an instruction, the CPU 12 executes the program for executing the authentication function written in the ROM 14 using the “key B” written in the EEPROM 15.
【0012】さて、本発明についての実体的な説明の理
解を容易にするために、ここでは、「ISO9992」
の規格に基づく5種類の機能のそれぞれについて、図3
および図4を参照しながら簡単に説明しておく。図3お
よび図4において、中央の一点鎖線より左側の欄はリー
ダライタ装置20側の処理を示し、右側の欄はICカー
ド10側の処理を示している。まず、「照合機能」につ
いて、図3(a) を参照しながら説明する。この「照合機
能」は、ICカードの所持者が正当な者であることを確
認する照合処理を行うための機能である。ICカードの
正当な所持者は、照合キーAを知得している。この照合
キーAは、ICカード10内にも記憶されている。正当
な所持者がICカード10をリーダライタ装置20に挿
入し、リーダライタ装置20に対して照合キーAを入力
すると、入力された照合キーAは、ICカード10へ転
送され、ICカード10側において、もともと記憶して
いたキーAと転送されてきたキーAとの一致が確認され
る。両者が一致すれば、リーダライタ装置20に対して
一致確認を示す情報「OK」が返送され、不一致であれ
ば、不一致を示す情報「NG」が返送される。「NG」
が返送された場合には、リーダライタ装置20は、IC
カード10に対する以後のアクセスを禁止する処置を採
る。こうして、正しい照合キーAを知らない不正使用者
によって、ICカード10が不正にアクセスされること
を防ぐことができる。Now, in order to facilitate understanding of the substantive description of the present invention, here, "ISO9992"
Fig. 3 shows each of the five functions based on the
This will be briefly described with reference to FIG. In FIGS. 3 and 4, the columns on the left side of the dashed-dotted line in the center show the processes on the reader / writer device 20 side, and the columns on the right side show the processes on the IC card 10 side. First, the "collation function" will be described with reference to FIG. This “collation function” is a function for performing a collation process for confirming that the owner of the IC card is a valid person. The legitimate holder of the IC card knows the verification key A. This collation key A is also stored in the IC card 10. When the valid holder inserts the IC card 10 into the reader / writer device 20 and inputs the verification key A to the reader / writer device 20, the input verification key A is transferred to the IC card 10 and the IC card 10 side In step 2, it is confirmed that the key A stored originally matches the key A transferred. If the two match, information "OK" indicating the confirmation of the match is returned to the reader / writer device 20, and if they do not match, the information "NG" indicating the mismatch is returned. "NG"
Is returned, the reader / writer device 20
Take measures to prohibit subsequent access to the card 10. Thus, unauthorized access of the IC card 10 by an unauthorized user who does not know the correct collation key A can be prevented.
【0013】図3(b) に示す「認証機能」は、ICカー
ド10が正当なカードであることを確認する認証処理を
行うための機能である。正当なICカード10内には、
認証キーBが記憶されている。この認証キーBは、リー
ダライタ装置20側にも保持されている(より具体的に
は、リーダライタ装置20を制御するコンピュータ内の
アプリケーションソフトウエアによって認証キーBが管
理されている)。認証処理の前段階として、まず、リー
ダライタ装置20からICカード10に対して乱数の要
求が行われる。この要求を受け、ICカード10内で
は、所定の乱数Rが発生され、この乱数Rがリーダライ
タ装置20へと返される。リーダライタ装置20内で
は、認証キーBを用いて乱数Rを暗号化し、暗号化され
たデータをICカード10へ転送する。一方、ICカー
ド10側でも、予め記憶されていた認証キーBを用い
て、先ほど発生した乱数Rを暗号化する。こうして、両
者において暗号化されたデータの一致が確認される。両
者が一致すれば、リーダライタ装置20に対して一致確
認を示す情報「OK」が返送され、不一致であれば、不
一致を示す情報「NG」が返送される。「NG」が返送
された場合には、リーダライタ装置20は、ICカード
10に対する以後のアクセスを禁止する処置を採る。こ
うして、偽造されたICカード10を用いた取り引きが
行われることを防ぐことができる。この認証機能におい
て、ICカード10とリーダライタ装置20との間で転
送されるデータは、乱数Rと暗号化されたデータとであ
り、認証キーBそのものは転送されることはない。した
がって、両者の転送路上の信号が不正にモニタされたと
しても、認証キーBが外部に知得されることはない。こ
のような点では、この認証機能は前述した照合機能より
も更にセキュリティの高い機能であると言える。The "authentication function" shown in FIG. 3 (b) is a function for performing an authentication process for confirming that the IC card 10 is a valid card. In the valid IC card 10,
The authentication key B is stored. The authentication key B is also held on the reader / writer device 20 side (more specifically, the authentication key B is managed by application software in a computer that controls the reader / writer device 20). As a pre-stage of the authentication process, first, a request for a random number is made from the reader / writer device 20 to the IC card 10. Upon receiving this request, a predetermined random number R is generated in the IC card 10, and the random number R is returned to the reader / writer device 20. In the reader / writer device 20, the random number R is encrypted using the authentication key B, and the encrypted data is transferred to the IC card 10. On the other hand, the random number R generated earlier is also encrypted on the IC card 10 side using the authentication key B stored in advance. Thus, the coincidence of the encrypted data is confirmed between the two. If the two match, information "OK" indicating the confirmation of the match is returned to the reader / writer device 20, and if not, the information "NG" indicating the mismatch is returned. When “NG” is returned, the reader / writer device 20 takes a measure to prohibit subsequent access to the IC card 10. Thus, it is possible to prevent a transaction using the forged IC card 10 from being performed. In this authentication function, data transferred between the IC card 10 and the reader / writer device 20 is a random number R and encrypted data, and the authentication key B itself is not transferred. Therefore, even if the signals on both transfer paths are monitored illegally, the authentication key B is not known to the outside. In this respect, it can be said that this authentication function is a function having higher security than the above-described collation function.
【0014】図4(c) に示す「多様化機能」は、ICカ
ード10の内部に新たなキーを生成させる処理を行うた
めの機能である。ICカード10を多様化して用いる場
合、新たなキーを生成する必要がある。このような場合
に、この多様化機能を実行させて必要なキーの生成を行
うことになる。しかも、この多様化機能によって新たに
生成されるキーは、各ICカードごとにユニークなキー
となる。予め、この多様化機能の実行に用いる多様化キ
ーCが、ICカード10内に記憶されている。この多様
化キーCは、リーダライタ装置20側にも用意される。
多様化処理の前段階として、まず、リーダライタ装置2
0からICカード10に対してユニークデータUの読出
しが行われる。すなわち、ICカード10内では、その
カード固有のユニークなデータUをリーダライタ装置2
0へ返す処理が実行される。この実施例では、各カード
のシリアル番号(通常、EEPROM15の所定の領域
に書込まれている)をユニークデータUとして返してい
る。続いて、リーダライタ装置20は、このユニークデ
ータUを用いて新たなキーを生成する旨の指示をICカ
ード10へ与える。ICカード10側では、ユニークデ
ータUと多様化キーCとにより、新たなキーXを生成
し、これをEEPROMに書込む。こうして、ICカー
ド10側に新たなキーXが用意できる。このキーXは、
各カードごとにユニークなデータ(この例では、カード
のシリアル番号)に基づいて生成されたキーであるた
め、各カードごとにユニークなキーとなる。一方、リー
ダライタ装置20側においても、ユニークデータUと多
様化キーCとにより新たなキーXを生成すれば、ICカ
ード10内に発生した新たなキーXを知得できる。The “diversification function” shown in FIG. 4C is a function for performing processing for generating a new key inside the IC card 10. When the IC card 10 is diversified and used, it is necessary to generate a new key. In such a case, a necessary key is generated by executing the diversification function. In addition, a key newly generated by the diversification function is a unique key for each IC card. The diversification key C used to execute the diversification function is stored in the IC card 10 in advance. This diversification key C is also prepared on the reader / writer device 20 side.
Before the diversification process, first, the reader / writer device 2
From 0, the unique data U is read from the IC card 10. That is, in the IC card 10, the unique data U unique to the card is transferred to the reader / writer device 2.
The process of returning to 0 is executed. In this embodiment, the serial number of each card (usually written in a predetermined area of the EEPROM 15) is returned as unique data U. Subsequently, the reader / writer device 20 gives an instruction to the IC card 10 to generate a new key using the unique data U. The IC card 10 generates a new key X based on the unique data U and the diversification key C, and writes the new key X in the EEPROM. Thus, a new key X can be prepared on the IC card 10 side. This key X is
Since the key is generated based on data unique to each card (in this example, the serial number of the card), the key is unique for each card. On the other hand, on the reader / writer device 20 side, if a new key X is generated from the unique data U and the diversified key C, the new key X generated in the IC card 10 can be known.
【0015】図4(d) に示す「取引証明機能」は、IC
カード10とリーダライタ装置20との間で、何らかの
取り引きが行われたことを証明するための証明データを
作成する処理を行う機能である。この機能を行うための
取引証明キーDが、予めICカード10内に記憶されて
いる。いま、このICカード10を用いて、銀行口座に
対する預入取引が行われた場合を例にとる。この場合に
「取引証明機能」を実行すると、預入取引の日付や金額
を示す取引データTが、リーダライタ装置20からIC
カード10へと転送される。ICカード10側では、取
引データTと取引証明キーDとにより、証明データSを
生成し、これをリーダライタ装置20へと返送する。リ
ーダライタ装置20は、たとえば、この証明データSを
プリントアウトして、ICカード10の所持者にレシー
トとして配布する。後日、上述した預入取引が本当に行
われた否かが問題になった場合、この証明データSがプ
リントされたレシートによって取引の事実が証明でき
る。すなわち、取引データTとキーDとに基づいて証明
データSを再生し、これがレシートにプリントされた証
明データSに一致することを示せばよい。なお、レシー
トを発行する代わりに、リーダライタ装置20を管理す
るホストコンピユータ内に取引データと証明データとを
保持しておき、カード内に記録した取引データと比較し
ても同様の効果が得られる。The "transaction proof function" shown in FIG.
This function performs a process of creating certification data for certifying that some kind of transaction has been performed between the card 10 and the reader / writer device 20. A transaction certification key D for performing this function is stored in the IC card 10 in advance. Now, a case where a deposit transaction is performed on a bank account using the IC card 10 is taken as an example. In this case, when the “transaction proof function” is executed, the transaction data T indicating the date and the amount of the deposit transaction is transmitted from the reader / writer device 20 to the IC.
The data is transferred to the card 10. The IC card 10 generates certification data S based on the transaction data T and the transaction certification key D, and returns this to the reader / writer device 20. The reader / writer device 20, for example, prints out the certification data S and distributes it as a receipt to the holder of the IC card 10. At a later date, if it is questionable whether or not the above-described deposit transaction has been performed, the fact that the transaction is verified can be proved by the receipt on which the proof data S is printed. That is, the certification data S is reproduced based on the transaction data T and the key D, and it may be shown that the certification data S matches the certification data S printed on the receipt. Note that the same effect can be obtained by holding transaction data and certification data in a host computer that manages the reader / writer device 20 instead of issuing a receipt, and comparing the transaction data and the certification data recorded in the card. .
【0016】図4(e) に示す「暗号化書込機能」は、秘
密性が要求されるデータをICカード10内に書込む場
合に利用される機能である。ICカード10内には、暗
号化のために必要な暗号化キーEが予め記憶されてい
る。ICカード10内に秘密性が要求される対象データ
Zを書込む場合、まず、この対象データZがリーダライ
タ装置20からICカード10へ転送される。ICカー
ド10内では、予め記憶されていた暗号化キーEを用い
て、対象データZを暗号化し、暗号化したデータをEE
PROM15内に書込む。このように、暗号化した後に
データを書込んでおくようにすれば、万一、不正使用者
によってこのデータが読み出されたとしても、暗号化キ
ーEを知らない限り、もとの対象データZを解読するこ
とはできない。The "encrypted writing function" shown in FIG. 4E is a function used when data requiring confidentiality is written in the IC card 10. An encryption key E required for encryption is stored in the IC card 10 in advance. When writing the target data Z for which confidentiality is required in the IC card 10, first, the target data Z is transferred from the reader / writer device 20 to the IC card 10. In the IC card 10, the target data Z is encrypted using the encryption key E stored in advance, and the encrypted data is transmitted to the EE.
Write into PROM 15. In this way, if data is written after being encrypted, even if this data is read out by an unauthorized user, as long as the encryption key E is not known, the original target data can be read. Z cannot be decoded.
【0017】以上、5種類の機能について簡単に説明し
た。従来のICカードでは、この5種類の機能は、それ
ぞれキーA〜Eという別個独立のキーを用いて実行され
ている。本発明では、次のような方法により、これら5
種類の機能と複数のキーとの対応関係に柔軟性をもたせ
ている。まず、本発明に係るICカード10のEEPR
OM15内の所定の領域には、各キーごとに、図5に示
すようなフォーマットをもったキーディレクトリが設け
られる。先頭の「キーID」の部分には、このキーを識
別するためのコードが記録され、続く「キー種別」の部
分には、後述するように、このキーが各機能に対して有
効であるか否かを示す情報が記録される。続く「キー
長」の部分には、キーの全長を示すバイト数が記録さ
れ、最後の「キー」の部分には、具体的なキー自身(英
数字からなる文字列)が記録される。本発明の特徴は、
このキーディレクトリ内に、「キー種別」なる情報を書
込むようにした点にある。この実施例では、「キー種
別」を示す情報として1バイト分のメモリ領域が割り当
てられており、図5に示すように、この1バイト、すな
わち8ビットのうち、上位5ビットのそれぞれを上述し
た5種類の機能のそれぞれに対応させ、各機能に対して
有効か無効かを表現している。すなわち、対応するビッ
トが「1」であれば「有効」、「0」であれば「無効」
を示すことになる。The above has briefly described the five types of functions. In a conventional IC card, these five types of functions are executed using separate keys A to E, respectively. In the present invention, these five methods are performed by the following method.
Flexibility is given to the correspondence between various functions and multiple keys. First, the EEPR of the IC card 10 according to the present invention
In a predetermined area in the OM 15, a key directory having a format as shown in FIG. 5 is provided for each key. A code for identifying this key is recorded in the first “Key ID” part, and in the subsequent “Key type” part, as described later, whether this key is valid for each function. Information indicating whether or not the information is recorded is recorded. In the following “key length” part, the number of bytes indicating the total length of the key is recorded, and in the last “key” part, a specific key itself (a character string composed of alphanumeric characters) is recorded. The features of the present invention are:
The point is that information called "key type" is written in this key directory. In this embodiment, a 1-byte memory area is allocated as information indicating the "key type". As shown in FIG. 5, each of the upper 5 bits of this 1 byte, that is, 8 bits, is described above. Each of the five functions is associated with each function, and whether the function is valid or invalid is expressed. That is, "valid" if the corresponding bit is "1", and "invalid" if the corresponding bit is "0".
Will be shown.
【0018】図6は、6つのキーについて用意された具
体的なキーディレクトリの例を示す表である。この例で
は、6つのキーについて、「01」〜「06」までのキ
ーIDが定義されている。なお、図6において、キー長
については「L1」〜「L6」、キーについては「キー
A」〜「キーF」という抽象的な表記をしてあるが、実
際には具体的な数値や文字列が用いられる。この図6に
示すようなキーディレクトリの設定を行うと、各機能と
各キーとの関係は、図7の表のようになる。照合機能に
ついては、図2に示す従来例と同様に、単一のキーAだ
けが1対1に対応しているが、たとえば、認証機能につ
いては、キーBとキーCとの2つのキーが対応してい
る。これは、図6のキーディレクトリにおいて、キーB
およびキーCについてのキー種別の2ビット目(認証機
能に対応)が有効を示す「1」になっているためであ
る。このように、1つの機能に複数のキーを対応させる
こともできるし、逆に、1つのキーを複数の機能に対応
させることもできる。たとえば、図6において、キーD
についてのキー種別は、3ビット目と4ビット目が有効
を示す「1」になっており、このキーDは、多様化機能
と取引証明機能との両方に用いることができる、また、
キーFについてのキー種別は、3ビット目,4ビット
目,5ビット目が有効を示す「1」になっており、この
キーFは、多様化機能,取引証明機能,暗号化書込機能
の3つの機能に用いることができる。図8は、複数の機
能と複数のキーとの対応関係を示した図である。キーF
は、キーDとキーEの両方を兼ねたいわゆるマスターキ
ーとなっていることがわかる。キーディレクトリ内のキ
ー種別のビット情報を適宜設定することにより、複数の
機能と複数のキーとの間で任意の対応関係を設定するこ
とができるようになる。FIG. 6 is a table showing an example of a specific key directory prepared for six keys. In this example, key IDs “01” to “06” are defined for six keys. In FIG. 6, the key lengths are represented by abstract notations “L1” to “L6”, and the keys are represented by abstract notations “Key A” to “Key F”. Columns are used. When the key directory is set as shown in FIG. 6, the relationship between each function and each key is as shown in the table of FIG. As for the collation function, as in the conventional example shown in FIG. 2, only a single key A has a one-to-one correspondence. For example, for the authentication function, two keys, a key B and a key C, are used. Yes, it is. This corresponds to the key B in the key directory of FIG.
This is because the second bit (corresponding to the authentication function) of the key type for the key C is "1" indicating validity. As described above, one function can be associated with a plurality of keys, and conversely, one key can be associated with a plurality of functions. For example, in FIG.
The key type is “1” indicating that the third and fourth bits are valid, and this key D can be used for both the diversification function and the transaction certification function.
The key type of the key F is "1" indicating that the third, fourth, and fifth bits are valid. This key F has a diversification function, a transaction certification function, and an encryption writing function. It can be used for three functions. FIG. 8 is a diagram showing the correspondence between a plurality of functions and a plurality of keys. Key F
Is a so-called master key that serves both as keys D and E. By appropriately setting the bit information of the key type in the key directory, an arbitrary correspondence can be set between a plurality of functions and a plurality of keys.
【0019】次に、図6に示すようなキーディレクトリ
が設定された場合に、5種類の機能のそれぞれが具体的
にどのように実行されるかを、図9〜図11を参照しな
がら簡単に説明する。図9〜図11において、中央の一
点鎖線より左側の欄はリーダライタ装置20側の処理を
示し、右側の欄はICカード10側の処理を示してい
る。まず、「照合機能」について、図9(a) を参照しな
がら説明する。ICカード10の正当な所持者が、リー
ダライタ装置20に対して照合キーAを入力すると、リ
ーダライタ装置20は、「VERIFY+01+キー
A」なる形式のコマンドをICカード10に転送する。
ここで、「VERIFY」なる文字列は、照合機能の実
行を指示するコマンドであり、続く「01」は用いるキ
ーAのキーIDであり、次の「キーA」は実際のキーコ
ードである。ICカード10では、このようなコマンド
を受けると、まず、キーID「01」のキーディレクト
リを検索し、そのキー種別をチェックする。図6に示す
例では、キー種別は1ビット目が「1」となっており、
「照合機能」が有効である旨が示されている。そこで、
指示された照合機能の実行を行う。具体的には、キーデ
ィレクトリ内に予め書込まれていたキーAとコマンドと
して与えられたキーAとの一致を確認し、「OK」また
は「NG」の情報を返送する。Next, when a key directory as shown in FIG. 6 is set, how each of the five types of functions is specifically executed will be briefly described with reference to FIGS. Will be described. 9 to 11, the column on the left side of the one-dot chain line in the center shows the processing on the reader / writer device 20 side, and the column on the right side shows the processing on the IC card 10 side. First, the "collation function" will be described with reference to FIG. When a valid holder of the IC card 10 inputs the verification key A to the reader / writer device 20, the reader / writer device 20 transfers a command of the format “VERIFY + 01 + key A” to the IC card 10.
Here, the character string "VERIFY" is a command for instructing execution of the collation function. The following "01" is the key ID of the key A to be used, and the next "key A" is the actual key code. Upon receiving such a command, the IC card 10 first searches the key directory of the key ID “01” and checks the key type. In the example shown in FIG. 6, the first bit of the key type is “1”,
This indicates that the “collation function” is effective. Therefore,
Executes the specified collation function. Specifically, it confirms that key A previously written in the key directory matches key A given as a command, and returns "OK" or "NG" information.
【0020】図9(b) に示す「認証機能」は次のように
実行される。まず、リーダライタ装置20から、乱数の
発生を指示するためのコマンド「GENERATE R
ANDOM」がICカード10へ転送される。これに応
じて、ICカード10からリーダライタ装置20に乱数
Rが戻される。リーダライタ装置20側では、この乱数
Rに対する暗号化処理が行われる。この暗号化処理は、
P=f1(R,キーB)なる一般式で表される。ここ
で、f1は乱数RとキーBとを引数とする所定の関数で
あり、Pは暗号化されたデータである。続いて、リーダ
ライタ装置20は、「AUTHENTICATE+02
+P」なる形式のコマンドをICカード10に転送す
る。ここで、「AUTHENTICATE」なる文字列
は、認証機能の実行を指示するコマンドであり、続く
「02」は用いるキーBのキーIDであり、次のPは暗
号化されたデータである。ICカード10では、このよ
うなコマンドを受けると、まず、キーID「02」のキ
ーディレクトリを検索し、そのキー種別をチェックす
る。図6に示す例では、キー種別は2ビット目が「1」
となっており、「認証機能」が有効である旨が示されて
いる。そこで、指示された認証機能の実行を行う。具体
的には、リーダライタ装置20側で行われた処理と同様
の暗号化処理P=f1(R,キーB)を行う。ただし、
ここでキーBとしては、予め記憶されていたキーBを用
いることになる。そして、ICカード10側で求めた暗
号化データPと、リーダライタ装置20側から転送され
てきた暗号化データPとの一致を確認し、「OK」また
は「NG」の情報を返送する。図7の表に示されている
ように、この認証機能はキーCを用いて行うこともでき
る。この場合は、キーCのキーIDを用い、「AUTH
ENTICATE+03+P」なる形式のコマンドをI
Cカード10に与えればよい。The "authentication function" shown in FIG. 9B is executed as follows. First, a command “GENERATE R” for instructing generation of a random number is issued from the reader / writer device 20.
“ANDOM” is transferred to the IC card 10. In response, the random number R is returned from the IC card 10 to the reader / writer device 20. On the reader / writer device 20 side, the random number R is encrypted. This encryption process
It is represented by the general formula of P = f1 (R, key B). Here, f1 is a predetermined function having a random number R and a key B as arguments, and P is encrypted data. Subsequently, the reader / writer device 20 reads “AUTHENTICATE + 02
+ P ”is transferred to the IC card 10. Here, the character string "AUTHENTICATE" is a command for instructing execution of the authentication function, the following "02" is the key ID of the key B to be used, and the next P is encrypted data. Upon receiving such a command, the IC card 10 first searches the key directory with the key ID “02” and checks the key type. In the example shown in FIG. 6, the second bit of the key type is “1”.
, Indicating that the “authentication function” is valid. Then, the designated authentication function is executed. Specifically, an encryption process P = f1 (R, key B) similar to the process performed on the reader / writer device 20 side is performed. However,
Here, the key B stored in advance is used as the key B. Then, it confirms the agreement between the encrypted data P obtained on the IC card 10 side and the encrypted data P transferred from the reader / writer device 20 side, and returns "OK" or "NG" information. As shown in the table of FIG. 7, this authentication function can be performed using the key C. In this case, using the key ID of the key C, "AUTH
ENTICATE + 03 + P ”
What is necessary is just to give to the C card 10.
【0021】図10(c) に示す「多様化機能」は次のよ
うに実行される。まず、リーダライタ装置20から、シ
リアル番号を読み出す指示を与えるコマンド「READ
SERIAL」がICカード10へ転送される。これ
に応じて、ICカード10からリーダライタ装置20に
シリアル番号Uが戻される。続いて、リーダライタ装置
20は、「DIVERSIFY+04+07+U」なる
形式のコマンドをICカード10に転送する。ここで、
「DIVERSIFY」なる文字列は、多様化機能の実
行を指示するコマンドであり、続く「04」はこの多様
化機能の実行に用いるキーDのキーIDであり(「0
6」とすればキーFを用いることができる)、次の「0
7」は新たに生成したキーXについて与えるべきキーI
Dであり、続く「U」は読み出したシリアル番号であ
る。ICカード10では、このようなコマンドを受ける
と、まず、キーID「04」のキーディレクトリを検索
し、そのキー種別をチェックする。図6に示す例では、
キー種別は3,4ビット目が「1」となっており、「多
様化機能」が有効である旨が示されている(「取引証明
機能」も有効である)。そこで、指示された多様化機能
の実行を行う。具体的には、この多様化処理は、キーX
=f2(U,キーD)なる一般式で表される演算によ
り、新たなキーXを生成する処理である。ここで、f2
はUとキーDとを引数とする所定の関数である。こうし
て、新たなキーXが生成されたら、キーID「07」の
キーディレクトリを検索し、そこに新たなキーXを書込
む。すべての処理が完了したら、最後にリーダライタ装
置20に対して「OK」なる情報を送る。The "diversification function" shown in FIG. 10 (c) is executed as follows. First, from the reader / writer device 20, a command “READ” for giving an instruction to read a serial number is provided.
SERIAL ”is transferred to the IC card 10. In response, the serial number U is returned from the IC card 10 to the reader / writer device 20. Subsequently, the reader / writer device 20 transfers a command of the format “DIVERSIFY + 04 + 07 + U” to the IC card 10. here,
The character string “DIVERSIFY” is a command for instructing execution of the diversification function, and “04” is a key ID of the key D used for execution of the diversification function (“0
6 "), the key F can be used.
7 ”is a key I to be given to the newly generated key X
D, and the subsequent “U” is the read serial number. Upon receiving such a command, the IC card 10 first searches the key directory of the key ID “04” and checks the key type. In the example shown in FIG.
The third and fourth bits of the key type are “1”, indicating that the “diversification function” is valid (the “transaction certification function” is also valid). Therefore, the designated diversification function is executed. More specifically, this diversification processing is performed using the key X
This is a process of generating a new key X by an operation represented by a general formula of = f2 (U, key D). Where f2
Is a predetermined function having U and key D as arguments. When a new key X is generated in this way, the key directory of the key ID “07” is searched, and the new key X is written there. When all the processes are completed, finally, information “OK” is sent to the reader / writer device 20.
【0022】図10(d) に示す「取引証明機能」は次の
ように実行される。まず、リーダライタ装置20は、
「CERTIFICATE+06+T」なる形式のコマ
ンドをICカード10に転送する。ここで、「CERT
IFICATE」なる文字列は、取引証明機能の実行を
指示するコマンドであり、続く「06」はこの取引証明
機能の実行に用いるキーFのキーIDであり(「04」
とすればキーDを用いることができる)、続く「T」は
所定の取引データ(日付や金額など)である。ICカー
ド10では、このようなコマンドを受けると、まず、キ
ーID「06」のキーディレクトリを検索し、そのキー
種別をチェックする。図6に示す例では、キー種別は3
〜5ビット目が「1」となっており、「取引証明機能」
を含めて全部で3種類の機能が有効である旨が示されて
いる。そこで、指示された取引証明機能の実行を行う。
具体的には、この多様化処理は、S=f3(T,キー
F)なる一般式で表される演算により、証明データSを
生成する処理である。ここで、f3はTとキーFとを引
数とする所定の関数である。こうして、証明データSが
生成されたら、これをリーダライタ装置20へ返す。リ
ーダライタ装置20では、必要に応じて、この証明デー
タSをホストコンピュータ内のメモリやレシートなどに
記録する。The "transaction certification function" shown in FIG. 10 (d) is executed as follows. First, the reader / writer device 20
The command of the format “CERTIFICATE + 06 + T” is transferred to the IC card 10. Here, "CERT
The character string "IFICATE" is a command for instructing execution of the transaction certification function, and "06" is the key ID of the key F used for execution of the transaction certification function ("04").
Key T can be used), and the subsequent "T" is predetermined transaction data (date, amount, etc.). Upon receiving such a command, the IC card 10 first searches the key directory of the key ID “06” and checks the key type. In the example shown in FIG. 6, the key type is 3
The 5th bit is "1" and the "transaction certification function"
It is shown that all three types of functions are effective, including. Therefore, the designated transaction certification function is executed.
Specifically, this diversification process is a process of generating proof data S by an operation represented by a general expression of S = f3 (T, key F). Here, f3 is a predetermined function having T and key F as arguments. When the proof data S is generated in this way, it is returned to the reader / writer device 20. The reader / writer device 20 records the certification data S in a memory or a receipt in the host computer as necessary.
【0023】図11(e) に示す「暗号化書込機能」は次
のように実行される。まず、リーダライタ装置20は、
「ENCIPHER+05+Z」なる形式のコマンドを
ICカード10に転送する。ここで、「ENCIPHE
R」なる文字列は、暗号化書込機能の実行を指示するコ
マンドであり、続く「05」はこの暗号化書込機能の実
行に用いるキーEのキーIDであり(「06」とすれば
キーFを用いることができる)、続く「Z」は暗号化の
対象となる対象データである。ICカード10では、こ
のようなコマンドを受けると、まず、キーID「05」
のキーディレクトリを検索し、そのキー種別をチェック
する。図6に示す例では、キー種別は5ビット目が
「1」となっており、「暗号化書込機能」が有効である
旨が示されている。そこで、指示された暗号化書込機能
の実行を行う。具体的には、この暗号化書込処理は、Q
=f4(Z,キーE)なる一般式で表される演算によ
り、暗号化データQを生成してこれを書込む処理であ
る。ここで、f4はZとキーEとを引数とする所定の関
数である。すべての処理が完了したら、最後にリーダラ
イタ装置20に対して「OK」なる情報を送る。The "encrypted writing function" shown in FIG. 11 (e) is executed as follows. First, the reader / writer device 20
The command of the format “ENCIPHER + 05 + Z” is transferred to the IC card 10. Here, "ENCIPHE
The character string "R" is a command for instructing execution of the encrypted writing function, and the following "05" is the key ID of the key E used for executing the encrypted writing function (if "06", The key “F” can be used), and the subsequent “Z” is target data to be encrypted. When receiving such a command, the IC card 10 first receives the key ID “05”.
Search the key directory and check its key type. In the example shown in FIG. 6, the fifth bit of the key type is “1”, which indicates that the “encryption writing function” is valid. Therefore, the designated encryption writing function is executed. Specifically, this encrypted writing process is performed by Q
= F4 (Z, key E) is a process of generating and writing encrypted data Q by an operation represented by the general formula. Here, f4 is a predetermined function using Z and key E as arguments. When all the processes are completed, finally, information “OK” is sent to the reader / writer device 20.
【0024】ここで注目しておくべきことは、5種類の
いずれの機能を実行する場合でも、ICカード10側に
おいて、キー種別のチェックが行われる点である。この
チェックを行うことにより、そのキーについて有効でな
い機能は実行されない。たとえば、何らかの手段で、キ
ーAを知得した不正使用者は、このキーAを用いて照合
機能の実行は行うことができる。しかしながら、このキ
ーAは、図6のキーディレクトリに示されているよう
に、キー種別としては照合機能だけが有効とされている
ため、キーAによって他の機能を実行することはできな
い。たとえば、何らかの方法でICカード10に対し
て、「AUTHENTICATE+01+P」なる形式
のコマンドを与え、知得したキーAを用いて認証機能を
実行しようとしても、キーID「01」のキーディレク
トリを検索して、キー種別のチェックが行われると、キ
ーAは認証機能に対しては無効であることが確認できる
ので、認証機能は実行されない。It should be noted that the key type is checked on the IC card 10 side when any of the five functions is executed. By performing this check, functions that are not valid for that key are not performed. For example, an unauthorized user who has learned the key A by some means can execute the collation function using the key A. However, as shown in the key directory of FIG. 6, this key A has a key type in which only the collation function is valid, so that the key A cannot execute other functions. For example, a command of the form "AUTHENTICATE + 01 + P" is given to the IC card 10 by some method, and even if an authentication function is executed using the obtained key A, the key directory of the key ID "01" is searched. When the key type is checked, it can be confirmed that the key A is invalid for the authentication function, and the authentication function is not executed.
【0025】一般に、1つの機能に複数のキーを対応さ
せたり、逆に1つのキーに複数の機能を対応させた場
合、セキュリティは低下する。しかしながら、セキュリ
ティを向上させるために、従来のように、1つの機能に
1つのキーを1対1に対応させると、実社会における柔
軟な利用形態を実現させることは困難になる。本発明で
は、セキュリティと柔軟性とのバランスを考慮した上
で、最も適切な対応関係を設定することができる。ま
た、1つのキーを複数の機能に対応させることにより、
全体として必要なキーの数を少なくすることができる。
したがって、キーディレクトリの占有領域が低減し、メ
モリの節約を行うことができるという効果も期待でき
る。Generally, when a plurality of keys correspond to one function, or when a plurality of functions correspond to one key, security is reduced. However, if one key corresponds to one function in a one-to-one correspondence to improve security as in the related art, it is difficult to realize a flexible usage form in the real world. According to the present invention, the most appropriate correspondence can be set in consideration of the balance between security and flexibility. Also, by making one key correspond to multiple functions,
The number of keys required as a whole can be reduced.
Therefore, the effect of reducing the occupied area of the key directory and saving the memory can be expected.
【0026】以上、本発明を図示する実施例に基づいて
説明したが、本発明はこの実施例のみに限定されるもの
ではなく、この他にも種々の態様で実施可能である。た
とえば、上述の実施例は、ICカードに本発明を適用し
た例であるが、本発明は、キーを用いる情報記録媒体に
広く適用可能である。また、上述した5つの機能は、一
例として示したものであり、この他、どのような機能に
適用してもかまわない。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. For example, the above-described embodiment is an example in which the present invention is applied to an IC card, but the present invention is widely applicable to an information recording medium using a key. In addition, the above-described five functions are shown as examples, and other functions may be applied.
【0027】[0027]
【発明の効果】以上のとおり本発明に係るキーを記憶し
た情報記録媒体によれば、キーディレクトリ内にそのキ
ーがどの機能に対応するかを示すキー種別情報を設定で
きるようにしたため、より柔軟なキーの利用形態を実現
することができるようになる。すなわち、種々の機能に
対して特定のキーを対応づけることが任意に行えるよう
になるので、たとえば、機能の重要度に応じてキーを特
定化すれば、カード内に記録したデータのセキュリティ
を向上させることもできる。As described above, according to the information recording medium storing keys according to the present invention, the key type information indicating which function the key corresponds to can be set in the key directory, so that it is more flexible. It is possible to realize various key usage forms. In other words, it is possible to arbitrarily associate specific keys with various functions. For example, if keys are specified in accordance with the importance of functions, the security of data recorded in the card is improved. It can also be done.
【図1】一般的なICカード10をリーダライタ装置2
0に接続した状態を示すブロック図である。FIG. 1 shows a general IC card 10 connected to a reader / writer 2
It is a block diagram showing the state connected to 0.
【図2】従来のICカードに備わっている一般的な機能
とこれに用いるキーとの対応関係を示す一覧表である。FIG. 2 is a table showing a correspondence relationship between general functions provided in a conventional IC card and keys used for the functions.
【図3】図2に示す5種類の機能のうち、照合機能およ
び認証機能の内容を簡単に説明する図である。FIG. 3 is a diagram briefly describing the contents of a collation function and an authentication function among the five types of functions shown in FIG. 2;
【図4】図2に示す5種類の機能のうち、多様化機能、
取引証明機能、暗号化書込機能を簡単に説明する図であ
る。FIG. 4 shows a diversification function among the five types of functions shown in FIG.
FIG. 3 is a diagram for briefly explaining a transaction certification function and an encryption writing function.
【図5】本発明に係るICカード内に設けられたキーデ
ィレクトリのフォーマットを示す図である。FIG. 5 is a diagram showing a format of a key directory provided in the IC card according to the present invention.
【図6】図5に示すフォーマットで記述されたキーディ
レクトリの一例を示す図である。FIG. 6 is a diagram showing an example of a key directory described in the format shown in FIG.
【図7】図6に示すキーディレクトリに基いて設定され
た各機能と各キーとの対応関係を示す一覧表である。FIG. 7 is a list showing the correspondence between each function and each key set based on the key directory shown in FIG. 6;
【図8】図7に示す一覧表から対応関係のみを抽出して
示した図である。FIG. 8 is a diagram showing only correspondences extracted from the list shown in FIG. 7;
【図9】図2に示す5種類の機能のうち、照合機能およ
び認証機能を本発明に係るICカードによって行う手順
を示す図である。FIG. 9 is a diagram showing a procedure for performing a collation function and an authentication function among the five types of functions shown in FIG. 2 by the IC card according to the present invention.
【図10】図2に示す5種類の機能のうち、多様化機能
および取引証明機能を本発明に係るICカードによって
行う手順を示す図である。FIG. 10 is a diagram showing a procedure for performing a diversification function and a transaction certification function among the five types of functions shown in FIG. 2 by the IC card according to the present invention.
【図11】図2に示す5種類の機能のうち、暗号化書込
機能を本発明に係るICカードによって行う手順を示す
図である。FIG. 11 is a diagram showing a procedure for performing an encryption writing function by the IC card according to the present invention among the five types of functions shown in FIG. 2;
10…ICカード 11…I/O装置 12…CPU 13…RAM 14…ROM 15…EEPROM 20…リーダライタ装置 DESCRIPTION OF SYMBOLS 10 ... IC card 11 ... I / O device 12 ... CPU 13 ... RAM 14 ... ROM 15 ... EEPROM 20 ... Reader / writer device
───────────────────────────────────────────────────── フロントページの続き (56)参考文献 特開 昭63−155344(JP,A) 特開 平1−277993(JP,A) 特開 平1−217587(JP,A) (58)調査した分野(Int.Cl.7,DB名) G06K 19/07 - 19/077 G06F 12/14 320 ────────────────────────────────────────────────── ─── Continuation of the front page (56) References JP-A-63-155344 (JP, A) JP-A-1-2777993 (JP, A) JP-A-1-217587 (JP, A) (58) Field (Int.Cl. 7 , DB name) G06K 19/07-19/077 G06F 12/14 320
Claims (2)
と複数のキーとを内部に記憶しており、前記複数の機能
のいずれかを特定する情報と前記複数のキーのいずれか
を特定する情報とを含んだ所定の指示が外部から与えら
れたときに、特定されたキーを用いて特定された機能を
実行する情報記録媒体において、複数のキーのそれぞれについて、当該キー自身を示すデ
ータと、当該キーが前記複数の機能のそれぞれについて
有効であるか否かを示すキー種別情報と、を当該キーに
ついてのキーディレクトリとして格納したメモリと、 前記所定の指示が外部から与えられたときに、この指示
によって特定された特定キーについてのキーディレクト
リ内のキー種別情報に基づいて、この指示によって特定
された特定機能について前記特定キーが有効であるか否
かを判断し、有効である場合にのみ前記特定キーを用い
て前記特定機能の実行を行う機能実行部と、 を備える ことを特徴とするキーを記憶した情報記録媒
体。A program for executing a plurality of functions and a plurality of keys are stored therein, and information for specifying one of the plurality of functions and information for specifying one of the plurality of keys are stored therein. When a predetermined instruction including the following is given from the outside, in the information recording medium that executes the specified function using the specified key, for each of the plurality of keys, data indicating the key itself is displayed.
Data and the key are used for each of the plurality of functions.
Key type information indicating whether the key is valid or not
The memory stored as a key directory and the predetermined instruction given from the outside, based on the key type information in the key directory for the specific key identified by the instruction, specified by the instruction. it is determined whether the specific key is valid for a particular function, the key comprising: a, a function executing unit that performs execution of the specific function using the specific key only if it is valid An information recording medium that stores the information.
て、キー種別情報を、複数の機能に1対1に対応した複
数のビット情報によって構成し、このビット情報の
「1」または「0」によって有効であるか否かを示すこ
とを特徴とするキーを記憶した情報記録媒体。2. The information recording medium according to claim 1, wherein the key type information is constituted by a plurality of bit information corresponding to a plurality of functions on a one-to-one basis, and “1” or “0” of the bit information is provided. An information recording medium storing a key, which indicates whether the key is valid or not.
Priority Applications (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| JP08932893A JP3231466B2 (en) | 1993-03-24 | 1993-03-24 | Information recording medium storing keys |
Applications Claiming Priority (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| JP08932893A JP3231466B2 (en) | 1993-03-24 | 1993-03-24 | Information recording medium storing keys |
Publications (2)
| Publication Number | Publication Date |
|---|---|
| JPH06282701A JPH06282701A (en) | 1994-10-07 |
| JP3231466B2 true JP3231466B2 (en) | 2001-11-19 |
Family
ID=13967616
Family Applications (1)
| Application Number | Title | Priority Date | Filing Date |
|---|---|---|---|
| JP08932893A Expired - Lifetime JP3231466B2 (en) | 1993-03-24 | 1993-03-24 | Information recording medium storing keys |
Country Status (1)
| Country | Link |
|---|---|
| JP (1) | JP3231466B2 (en) |
Families Citing this family (3)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| JP4028798B2 (en) | 2000-06-02 | 2007-12-26 | 株式会社ルネサステクノロジ | Nonvolatile semiconductor memory device and information management method in information distribution system |
| JP2003263623A (en) | 2002-03-11 | 2003-09-19 | Seiko Epson Corp | Recording medium, recording medium read / write device, and method of using recording medium |
| JP2008263644A (en) * | 2008-06-23 | 2008-10-30 | Mitsubishi Corp | Key management method and key management apparatus |
-
1993
- 1993-03-24 JP JP08932893A patent/JP3231466B2/en not_active Expired - Lifetime
Also Published As
| Publication number | Publication date |
|---|---|
| JPH06282701A (en) | 1994-10-07 |
Similar Documents
| Publication | Publication Date | Title |
|---|---|---|
| KR100948120B1 (en) | Portable information recording medium | |
| US20050086497A1 (en) | IC card system | |
| JPH0622030B2 (en) | Transaction validity confirmation method | |
| JPH01500379A (en) | System for portable data carriers | |
| JPS63788A (en) | Portable electronic equipment | |
| JPS63503335A (en) | Secure file system for portable data carriers | |
| JPH0682405B2 (en) | Test program start method | |
| US7246375B1 (en) | Method for managing a secure terminal | |
| JP2557838B2 (en) | IC card | |
| JP2935613B2 (en) | IC card and IC card system | |
| JP3231466B2 (en) | Information recording medium storing keys | |
| JPH10198776A (en) | Portable information recording medium and information writing / reading method therefor | |
| JPH025158A (en) | Expanded ic card and its accessing method | |
| JPH09325915A (en) | Information recording system | |
| JPH11306301A (en) | IC card with time-limited security status | |
| CN1280695A (en) | Method for managing data in a smart card | |
| JP3526287B2 (en) | Portable electronic device and data writing method thereof | |
| JP3652409B2 (en) | Portable information recording medium | |
| JP2537200B2 (en) | Portable electronic devices | |
| JP4601329B2 (en) | Electronic authentication device primary issuing device, electronic authentication device issuing system, electronic authentication device secondary issuing device, electronic authentication device primary issuing method, electronic authentication device issuing method, and electronic authentication device secondary issuing method | |
| JPH06309531A (en) | How to check the instruction format given to the IC card | |
| EA002994B1 (en) | Method for indivisibly modifying a plurality of sites in a microcircuit card non volatile memory, in particular a contactless card | |
| JP2938833B2 (en) | Card authentication system and method and recording medium | |
| JPH11203439A (en) | IC card and method of operating IC card | |
| JP2537198B2 (en) | Portable electronic devices |
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 |