JPH08171621A - Ic card - Google Patents

Ic card

Info

Publication number
JPH08171621A
JPH08171621A JP6313419A JP31341994A JPH08171621A JP H08171621 A JPH08171621 A JP H08171621A JP 6313419 A JP6313419 A JP 6313419A JP 31341994 A JP31341994 A JP 31341994A JP H08171621 A JPH08171621 A JP H08171621A
Authority
JP
Japan
Prior art keywords
card
information
file
volatile memory
eeprom
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
JP6313419A
Other languages
Japanese (ja)
Inventor
Yoshihiro Muto
義弘 武藤
Norio Umehara
紀夫 梅原
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.)
Panasonic Holdings Corp
Original Assignee
Matsushita Electric Industrial 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 Matsushita Electric Industrial Co Ltd filed Critical Matsushita Electric Industrial Co Ltd
Priority to JP6313419A priority Critical patent/JPH08171621A/en
Publication of JPH08171621A publication Critical patent/JPH08171621A/en
Pending legal-status Critical Current

Links

Abstract

PURPOSE: To provide an IC card with which the supply of power and clocks from information processing terminal equipment can be executed again starting from the same conditions by holding managing information such as the selection information of files in the IC card while keeping the safety of the IC card even when that supply is stopped. CONSTITUTION: This IC card is provided with a saving means 15 to be activated by a backup instruction for copying the information recorded in a RAM 13 into a data saving area 19 of an EEPROM 14 and transmitting data prepared in a random number area 18 as a key to external equipment and a recovering means 16 to be activated only by a resume instruction accompanied with the data transmitted by the saving means 15 as the key for copying the information in the data saving area 19 of the EEPROM 14 copied by the saving means 15 into the RAM 13.

Description

【発明の詳細な説明】Detailed Description of the Invention

【0001】[0001]

【産業上の利用分野】本発明は、ICカード内のファイ
ルの選択情報やパスワードの照合結果などの管理情報を
保持したまま、通信を行う端末と着脱可能なICカード
に関する。
BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to an IC card that can be attached to and detached from a terminal for communication while holding management information such as file selection information and password comparison results in the IC card.

【0002】[0002]

【従来の技術】ICカードでは、例えばICカードの書
き換え可能な不揮発性メモリに情報を書き込む場合、I
Cカードと通信を行う外部機器(以後、情報処理端末装
置と呼ぶ)は通信を行うために、最初に、ICカードへ
電源とクロックを供給する。その後、書き込みの対象と
なるファイルを選択し、情報を書き込む。この時、ファ
イルによっては情報を書き込む前に、パスワードなどの
秘密情報の照合が必要になる。
2. Description of the Related Art In an IC card, for example, when information is written in a rewritable nonvolatile memory of the IC card, I
An external device that communicates with the C card (hereinafter referred to as an information processing terminal device) first supplies power and a clock to the IC card in order to perform communication. After that, the file to be written is selected and the information is written. At this time, depending on the file, it is necessary to verify secret information such as a password before writing the information.

【0003】図4はICカード内のファイルの構成を示
した図である。この図を用いてICカード内のファイル
に対する情報の書き込み処理について説明する。1はI
Cカードのマスターファイル、2および3はファイル1
の管理下にあるファイル、4および5はファイル3の管
理下にあるファイルである。また、各ファイルには情報
を読み書きするための条件が記録されているディレクト
リ部と、実際の情報を記録するデータ部とから成る。更
にファイル1の管理下には、ファイル1の情報にアクセ
スするために照合しなければならないキーデータが記録
されているファイル6(例えばパスワードデータなど)
が存在し、同様にファイル3にはファイル7、ファイル
5にはファイル8が存在する。
FIG. 4 is a diagram showing a structure of a file in the IC card. A process of writing information to a file in the IC card will be described with reference to this figure. 1 is I
C card master file, files 2 and 3 are file 1
The files 4 and 5 under the control of the file 3 are the files under the control of the file 3. Each file includes a directory section in which conditions for reading and writing information are recorded, and a data section in which actual information is recorded. Further, under the control of the file 1, the file 6 (for example, password data) in which the key data that must be collated to access the information of the file 1 is recorded
Exists similarly, file 7 exists in file 3, and file 8 exists in file 5.

【0004】ここで、ファイル5のディレクトリ部に、
ファイル5のデータ部に情報を書き込むためにファイル
6、ファイル7、ファイル8のキーデータの照合が必要
であると、設定されている場合を考える。
Here, in the directory portion of the file 5,
Consider a case where it is necessary to collate the key data of the files 6, 7, and 8 in order to write information in the data section of the file 5.

【0005】この時の処理は、ファイル1、ファイル3
およびファイル5の選択、かつ、ファイル6、ファイル
7およびファイル8のキーデータの照合であり、全ての
処理が正常終了して、初めてファイル5に情報を書き込
むことができる。
At this time, the processing is performed for file 1 and file 3.
And the file 5 is selected and the key data of the file 6, the file 7 and the file 8 are collated, and the information can be written into the file 5 only after all the processes are normally completed.

【0006】従来のICカードでは、これらファイルの
選択情報やキーデータの照合結果などの管理情報を、情
報処理端末装置と通信を行っている間、ICカードの揮
発性メモリに記録している。すなわち、情報処理端末装
置がICカードへの電源およびクロックの供給を停止す
ると上記した管理情報は消滅してしまうものだった。こ
れはICカードが第3者の手に渡った場合、所定のファ
イルの選択およびキーデータの照合を行わないと、ファ
イルへの読み書きができないものであり、安全性の面か
ら必要な機能であった。
In the conventional IC card, management information such as file selection information and key data collation results is recorded in the volatile memory of the IC card during communication with the information processing terminal device. That is, when the information processing terminal device stops the supply of power and clock to the IC card, the management information described above disappears. This is a necessary function from the viewpoint of security, because when the IC card is handed to a third party, reading and writing to the file cannot be done without selecting a predetermined file and collating the key data. It was

【0007】[0007]

【発明が解決しようとする課題】このような従来のIC
カードでは、例えば情報処理端末装置がICカードと通
信中に、ICカードへの電源およびクロックの供給を一
旦停止し、別の処理(例えば、第2のICカードとの通
信)を実行した後、再度、元のICカードの同じファイ
ルに対して読み書きを行う場合でも、情報処理端末装置
はICカードに対して、再度最初から複数のファイルの
選択処理および複数のキーデータの照合処理を実行しな
ければならず、ファイルの階層化が深いほど、あるいは
照合すべきキーデータが多いほど、実際のファイルに対
してアクセスするまでに時間と処理が必要となってい
た。
SUMMARY OF THE INVENTION Such a conventional IC
In the card, for example, while the information processing terminal device is communicating with the IC card, the power supply and the clock supply to the IC card are temporarily stopped, and another process (for example, communication with the second IC card) is executed. Even when reading / writing the same file of the original IC card again, the information processing terminal device must execute the selection processing of a plurality of files and the collation processing of a plurality of key data again from the beginning on the IC card. However, the deeper the hierarchy of files, or the more key data to be verified, the more time and processing was required before the actual file was accessed.

【0008】本発明はかかる点に鑑み、従来の安全性を
保ちながら、情報処理端末装置からの電源およびクロッ
クの供給を一時停止しても、ファイルの選択情報などの
管理情報を保持し、同じ条件から再度実行することが可
能なICカードを提供することを目的とする。
In view of the above points, the present invention retains the conventional security and retains management information such as file selection information even when power supply and clock supply from the information processing terminal device are temporarily stopped and the same. It is an object to provide an IC card that can be re-executed under the conditions.

【0009】[0009]

【課題を解決するための手段】本発明は上記目的を達成
するために、中央演算処理装置と、外部機器と通信を行
うための入出力部と、書き換え不可能な第1の不揮発性
メモリと、前記中央演算処理装置が動作するために使用
する揮発性メモリと、書き換え可能な第2の不揮発性メ
モリとを備えるICカードであって、前記揮発性メモリ
に記録している情報を前記第2の不揮発性メモリに複写
すると共に、この情報を読み出すための鍵となるデータ
を情報処理端末装置に送信する退避手段と、前記退避手
段で送信した情報を読み出すための鍵となるデータを照
会した場合のみ前記退避手段により複写された前記第2
の不揮発性メモリ内の情報を前記揮発性メモリに複写す
る復帰手段とを有する構成である。
In order to achieve the above object, the present invention provides a central processing unit, an input / output unit for communicating with an external device, and a non-rewritable first non-volatile memory. An IC card comprising a volatile memory used for operating the central processing unit and a rewritable second non-volatile memory, wherein the information recorded in the volatile memory is stored in the second card. When the data is copied to the non-volatile memory and the evacuation means for transmitting the key data for reading the information to the information processing terminal device and the key data for reading the information transmitted by the evacuation means are queried. Only the second copy made by the evacuation means
And a restoring means for copying the information in the non-volatile memory to the volatile memory.

【0010】[0010]

【作用】この構成により情報処理端末装置からの電源お
よびクロックの供給が停止しても、ファイルの選択情報
などの管理情報を安全性を保ちながら保持することが可
能となり、再び通信する場合にファイルに対するアクセ
スの時間と処理を短縮することができるものである。
With this configuration, even if the power supply and the clock supply from the information processing terminal device are stopped, the management information such as the file selection information can be retained while maintaining the safety, and the file can be retained when the communication is performed again. It is possible to shorten the access time and the processing.

【0011】[0011]

【実施例】以下、本発明の一実施例について図面を参照
しながら説明する。図1は本実施例におけるICカード
の情報の流れを示す構成図である。ICカード9内に
は、中央演算処理装置10、ICカード9の実際の動作
を記述したプログラムを記憶する書き換え不可能な不揮
発性メモリ11、国際標準規格ISO7816に示され
た物理特性を有する情報処理端末装置との入出力部1
2、中央演算処理装置が動作するために作業用として使
用する揮発性メモリ13(図面上ではRAMと記述し、
以後、RAMと呼ぶ)、情報を記録する書き換え可能な
不揮発性メモリ14(図面上ではEEPROMと記述
し、以後、EEPROMと呼ぶ)が備えられている。退
避手段15および復帰手段16は不揮発性メモリ11に
記憶されているプログラムの一部である。退避フラグ1
7、乱数領域18、データ退避領域19はEEPROM
14内に確保された領域であり、以下、動作とともに説
明する。なお、EEPROM14内には、他に複数のフ
ァイルが存在し、読み書きできる領域も存在する。
An embodiment of the present invention will be described below with reference to the drawings. FIG. 1 is a block diagram showing the flow of information in an IC card in this embodiment. In the IC card 9, a central processing unit 10, a non-rewritable non-volatile memory 11 for storing a program describing the actual operation of the IC card 9, and an information processing having physical characteristics shown in the international standard ISO7816. Input / output unit 1 with terminal device
2. The volatile memory 13 used as a work for the central processing unit to operate (described as RAM in the drawing,
It is provided with a rewritable nonvolatile memory 14 (hereinafter referred to as RAM) (which will be referred to as an EEPROM in the drawings and hereinafter referred to as an EEPROM) for recording information. The saving means 15 and the restoring means 16 are a part of the program stored in the non-volatile memory 11. Evacuation flag 1
7, random number area 18 and data save area 19 are EEPROM
This is an area secured within 14, which will be described below together with the operation. Note that the EEPROM 14 has a plurality of other files and also has a readable / writable area.

【0012】最初に、図2を用いて退避手段15におけ
る具体的な処理の流れについて説明する。ICカード9
は退避手段15を起動する命令(以後、バックアップ命
令と呼ぶ)を入出力部12を通して情報処理端末装置
(図示せず)から受信する(ステップ20)と、RAM
13の管理情報をEEPROM14のデータ退避領域1
9に複写(退避)する(ステップ21)。複写処理が正
常に終了した後、退避フラグ17に管理情報が退避され
ているということで1を設定し(ステップ22)、乱数
領域18に記録されている乱数を基に新たな乱数を生成
し、乱数領域18を更新する(ステップ23)。最後に
バックアップ命令の応答として、この新たな乱数を伴っ
た管理情報を入出力部12を通して情報処理端末装置へ
レスポンス送信する(ステップ24)。
First, a specific processing flow in the evacuation means 15 will be described with reference to FIG. IC card 9
Receives an instruction to activate the saving means 15 (hereinafter referred to as a backup instruction) from the information processing terminal device (not shown) through the input / output unit 12 (step 20), and the RAM.
The management information of 13 is stored in the data save area 1 of the EEPROM 14.
It is copied (saved) to 9 (step 21). After the copying process ends normally, 1 is set because the management information is saved in the save flag 17 (step 22), and a new random number is generated based on the random number recorded in the random number area 18. The random number area 18 is updated (step 23). Finally, as a response to the backup command, the management information accompanied by the new random number is sent as a response to the information processing terminal device through the input / output unit 12 (step 24).

【0013】次に、図3を用いて復帰手段16における
具体的な処理の流れについて説明する。ICカード9は
復帰手段16を起動する命令(以後、レジューム命令と
呼ぶ)を入出力部12を通して情報処理端末装置から受
信する(ステップ25)と、レジューム命令に伴われて
受信した乱数と乱数領域18に記録されている乱数とを
比較し、一致した場合は次のステップに移る。ここで、
受信した乱数と乱数領域18に記録されている乱数が一
致しない場合は、レジューム命令の応答として処理実行
不可能なる情報を入出力部12を通して情報処理端末装
置に送信する(ステップ26)。次に、退避フラグ17
が1に設定されているか否かを照会し、1が設定されて
いない場合は、レジューム命令の応答として処理実行不
可能なる情報を入出力部12を通して送信する(ステッ
プ27)。退避フラグ17に1が設定されている場合
は、データ退避領域19の情報をRAM13に複写(復
帰)する(ステップ28)。管理情報の復帰処理が正常
に終了した場合、退避フラグ17を初期化、例えば0に
設定する(ステップ29)。最後に、レジューム命令の
応答として復帰の処理が正常に終了したことを示す情報
を入出力部12を通して情報処理端末装置へレスポンス
送信する(ステップ30)。
Next, a specific processing flow in the restoring means 16 will be described with reference to FIG. When the IC card 9 receives an instruction to activate the restoring means 16 (hereinafter referred to as a resume instruction) from the information processing terminal device through the input / output unit 12 (step 25), the random number and the random number area received along with the resume instruction are received. The random number recorded in 18 is compared, and if they match, the process proceeds to the next step. here,
If the received random number and the random number recorded in the random number area 18 do not match, the information indicating that the process cannot be executed is transmitted to the information processing terminal device through the input / output unit 12 as a response to the resume command (step 26). Next, the save flag 17
Is set to 1, and if 1 is not set, information indicating that processing cannot be executed is transmitted as a response to the resume command through the input / output unit 12 (step 27). If the save flag 17 is set to 1, the information in the data save area 19 is copied (restored) to the RAM 13 (step 28). When the management information restoration process ends normally, the save flag 17 is initialized, for example, set to 0 (step 29). Finally, as a response to the resume command, information indicating that the restoration process has been normally completed is sent as a response to the information processing terminal device through the input / output unit 12 (step 30).

【0014】このように本発明の実施例のICカードで
は、バックアップ命令でICカード内のファイルの選択
情報およびキーデータの照合結果など、RAM上の管理
情報をバックアップ命令でEEPROMに一時的に退避
させ、レジューム命令で安全性を確保しながら、EEP
ROMに退避した内容をRAM上に復帰することができ
る。
As described above, in the IC card of the embodiment of the present invention, the management information on the RAM such as the selection information of the file in the IC card and the collation result of the key data by the backup command is temporarily saved in the EEPROM by the backup command. EEP while ensuring safety with a resume command
The contents saved in the ROM can be restored in the RAM.

【0015】[0015]

【発明の効果】以上のように本発明によれば、RAM上
の情報を不揮発性メモリであるEEPROMに一時的に
退避することができるため、情報処理端末装置がICカ
ードと通信中に電源およびクロックの供給を停止するこ
とができ、かつ、EEPROMに退避した内容を安全性
を保ちながらRAM上に復帰することができるため、情
報処理端末装置がICカードへの電源およびクロックの
供給を一旦停止し、別の処理を実行した後、退避した時
点と同じ条件で再度ICカードと通信することができ、
再度複数のファイルの選択あるいは複数のキーデータの
照合などの処理を実行する必要が無くなる。よって反応
が早く、使い勝手のよいICカードを提供できる。
As described above, according to the present invention, the information in the RAM can be temporarily saved in the EEPROM, which is a non-volatile memory. Since the clock supply can be stopped and the contents saved in the EEPROM can be restored to the RAM while maintaining safety, the information processing terminal device temporarily stops the power supply and the clock supply to the IC card. Then, after executing another process, you can communicate with the IC card again under the same conditions as when you saved
It is no longer necessary to perform processing such as selecting a plurality of files or collating a plurality of key data again. Therefore, it is possible to provide an IC card which has a quick response and is easy to use.

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

【図1】本発明の一実施例によるICカードの情報の流
れを示す構成図
FIG. 1 is a configuration diagram showing a flow of information in an IC card according to an embodiment of the present invention.

【図2】本発明の実施例による退避手段における処理の
流れ図
FIG. 2 is a flow chart of processing in the saving means according to the embodiment of the present invention.

【図3】本発明の実施例による復帰手段における処理の
流れ図
FIG. 3 is a flow chart of processing in the returning means according to the embodiment of the present invention.

【図4】一般的なICカードのファイル構成図FIG. 4 is a file structure diagram of a general IC card.

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

9 ICカード 10 中央演算処理装置 11 不揮発性メモリ 12 入出力部 13 RAM 14 EEPROM 15 退避手段 16 復帰手段 17 退避フラグ 18 乱数領域 19 データ退避領域 9 IC card 10 Central processing unit 11 Non-volatile memory 12 Input / output unit 13 RAM 14 EEPROM 15 Saving means 16 Restoring means 17 Saving flag 18 Random number area 19 Data saving area

Claims (1)

【特許請求の範囲】[Claims] 【請求項1】中央演算処理装置と、外部機器と通信を行
うための入出力部と、書き換え不可能な第1の不揮発性
メモリと、前記中央演算処理装置が動作するために使用
する揮発性メモリと、書き換え可能な第2の不揮発性メ
モリとを備えるICカードであって、前記揮発性メモリ
に記録している情報を前記第2の不揮発性メモリに複写
すると共に、この情報を読み出すための鍵となるデータ
を外部機器に送信する退避手段と、前記退避手段で送信
した情報を読み出すための鍵となるデータを照会した場
合のみ前記退避手段により複写された前記第2の不揮発
性メモリ内の情報を前記揮発性メモリに複写する復帰手
段とを前記中央演算処理装置が実行することを特徴とす
るICカード。
1. A central processing unit, an input / output unit for communicating with an external device, a non-rewritable first non-volatile memory, and a volatile used for operating the central processing unit. An IC card including a memory and a rewritable second non-volatile memory, for copying the information recorded in the volatile memory to the second non-volatile memory and reading the information. In the second non-volatile memory copied by the evacuation means only when the evacuation means for transmitting the key data to the external device and the key data for reading the information transmitted by the evacuation means are inquired. An IC card, wherein the central processing unit executes restoration means for copying information to the volatile memory.
JP6313419A 1994-12-16 1994-12-16 Ic card Pending JPH08171621A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP6313419A JPH08171621A (en) 1994-12-16 1994-12-16 Ic card

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP6313419A JPH08171621A (en) 1994-12-16 1994-12-16 Ic card

Publications (1)

Publication Number Publication Date
JPH08171621A true JPH08171621A (en) 1996-07-02

Family

ID=18041072

Family Applications (1)

Application Number Title Priority Date Filing Date
JP6313419A Pending JPH08171621A (en) 1994-12-16 1994-12-16 Ic card

Country Status (1)

Country Link
JP (1) JPH08171621A (en)

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2003103058A1 (en) * 2002-05-31 2003-12-11 Sharp Kabushiki Kaisha Ic card
JP2014176094A (en) * 2013-03-08 2014-09-22 Tesat Spacecom Gmbh & Co Kg Method for operating amplifier module of artificial satellite
JP2021056815A (en) * 2019-09-30 2021-04-08 大日本印刷株式会社 Electronic information storage medium, data storage and restoration method, and program

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2003103058A1 (en) * 2002-05-31 2003-12-11 Sharp Kabushiki Kaisha Ic card
JP2014176094A (en) * 2013-03-08 2014-09-22 Tesat Spacecom Gmbh & Co Kg Method for operating amplifier module of artificial satellite
JP2021056815A (en) * 2019-09-30 2021-04-08 大日本印刷株式会社 Electronic information storage medium, data storage and restoration method, and program

Similar Documents

Publication Publication Date Title
US6371377B2 (en) Card type recording medium and access control method for card type recording medium and computer-readable recording medium having access control program for card type recording medium recorded
JP3237101B2 (en) Post-initialization of chip card
KR100948120B1 (en) Portable information recording medium
JP4869337B2 (en) Safe processing of data
US5901311A (en) Access key protection for computer system data
JP2000138692A (en) Mac address management system, mac address management method and storage medium
JP2575358B2 (en) IC card
JP2003216511A (en) Non-volatile memory device, data updating method, data updating program and computer readable recording medium with recorded program
JP3657315B2 (en) Portable information recording medium and access method thereof
KR100350972B1 (en) Computer system and method possessing the function of storing an ID in its ROM
JPH08171621A (en) Ic card
JP3028055B2 (en) PC card system and program rewriting method
JP2001056848A (en) Command execution control method for ic card, ic card, and recording medium where ic card program is recorded
JP2001167236A (en) Portable electronic device
US5901285A (en) Hierarchical erasure key protection for computer system data
JP4031693B2 (en) Nonvolatile memory and data storage device having the same
JP2501050Y2 (en) IC card
JP2004334745A (en) Ic card
JP2609645B2 (en) Portable electronic devices
JPH06309531A (en) Checking method for instruction format given to ic card
JP3209994B2 (en) Portable electronic devices
JP2002352205A (en) Portable electronic equipment and access management method
JPH01137348A (en) Data writing system
JP2001318836A (en) Method for managing data of non-volatile memory
JPH06309528A (en) Ic card