JPH06274398A - File control system - Google Patents

File control system

Info

Publication number
JPH06274398A
JPH06274398A JP5064505A JP6450593A JPH06274398A JP H06274398 A JPH06274398 A JP H06274398A JP 5064505 A JP5064505 A JP 5064505A JP 6450593 A JP6450593 A JP 6450593A JP H06274398 A JPH06274398 A JP H06274398A
Authority
JP
Japan
Prior art keywords
access
data
file
area
bit
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
JP5064505A
Other languages
Japanese (ja)
Inventor
Yasuo Iijima
康雄 飯島
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.)
Toshiba Corp
Original Assignee
Toshiba Corp
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 Toshiba Corp filed Critical Toshiba Corp
Priority to JP5064505A priority Critical patent/JPH06274398A/en
Publication of JPH06274398A publication Critical patent/JPH06274398A/en
Pending legal-status Critical Current

Links

Landscapes

  • Storage Device Security (AREA)

Abstract

PURPOSE:To unnecessitate reference to enormous black lists at the time of executing application operation and to improve flexibility in the file control of application by providing the system with access limiting means and access relaxing means. CONSTITUTION:In an IC card, memories are divided into plural file groups to control each divided file by tree structure. A first access limiting means limits the access of one of files belonging to specified files and a first access relaxing means relaxes the access limit made by the first access limiting means. A second access limiting means limits the access of specified plural files of the files belonging to the specified files en bloc and a second access relaxing means relaxes the limit made by the second access limiting means. A selection means selects the first and second access limiting means and the first and second access relaxing means.

Description

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

【0001】[0001]

【産業上の利用分野】本発明は、たとえば、不揮発性メ
モリおよび、これらを制御するCPUなどの制御素子を
有するICチップを内蔵したICカードにおいて、上記
メモリ内に分割設定される複数のファイルを管理するフ
ァイル管理方式に関する。
BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to, for example, in a non-volatile memory and an IC card having an IC chip having a control element such as a CPU for controlling these, a plurality of files divided and set in the memory are stored. The file management method to be managed.

【0002】[0002]

【従来の技術】最近、携帯可能なデータ記憶媒体とし
て、不揮発性のデータメモリ、および、これらを制御す
るCPUなどの制御素子を有するICチップを内蔵した
ICカードが注目されている。
2. Description of the Related Art Recently, as a portable data storage medium, attention has been focused on an IC card having a nonvolatile data memory and an IC chip having a control element such as a CPU for controlling these.

【0003】この種のICカードは、内蔵するデータメ
モリを複数のファイルに分割し、かつ、個々のファイル
には、利用アプリケーションが運用時に必要なデータな
どが格納されるようになっており、外部装置からアプリ
ケーション識別名などを入力することにより、選択的に
対応ファイルのみが使用可能な状態を実現するようにな
っている。このため、複数のアプリケーションデータを
ファイル分けし、1枚のICカードに格納することによ
り、多目的利用が可能なようになっている。さて、利用
するアプリケーションによっては、特定のICカードに
ついて、自身のアプリケーションを使用不可能にする必
要が生じる場面が想定される。このような場合、従来
は、たとえば、クレジットアプリケーションで、カード
利用者をブラックリストなどでクレジット利用を排除し
ていた。
In this type of IC card, the built-in data memory is divided into a plurality of files, and each file stores the data necessary for the application to be used during operation. By inputting an application identification name or the like from the device, a state in which only corresponding files can be selectively used is realized. Therefore, by dividing a plurality of application data into files and storing them in one IC card, multi-purpose use is possible. Now, depending on the application to be used, there is a situation in which it is necessary to disable the application of the particular IC card. In such a case, conventionally, for example, a credit application is used to exclude credit card usage by blacklisting card users.

【0004】[0004]

【発明が解決しようとする課題】しかし、上記のような
方法を使用すると、仮にブラックリストの該当者が大量
になるにしたがい、ICカードの利用時にチェックする
際の労力が増加することになる。特に、このアプリケー
ションが国際的規模で展開されていた場合には、この労
力の増加が顕著になる。
However, if the method as described above is used, the number of persons in the black list will increase, and the labor for checking the IC card when using it will increase. This increase in effort is particularly noticeable when the application was deployed on an international scale.

【0005】このため、ファイル個々のアクセスを強制
的に禁止することが考えられるが、この場合、ファイル
内のデータあるいはキーなど、個別に禁止することによ
り、該ファイルに対してきめ細かいアクセス制御が可能
となる。
For this reason, it is conceivable to forcibly prohibit access to individual files. In this case, by individually prohibiting data or keys in the file, fine-grained access control can be performed on the file. Becomes

【0006】そこで、本発明は、アプリケーション運用
を行なう際の膨大なブラックリストの参照が不要とな
り、しかも、アプリケーションのファイル管理に柔軟性
が増加するファイル管理方式を提供することを目的とす
る。
It is therefore an object of the present invention to provide a file management system which eliminates the need to refer to an enormous blacklist when operating an application and increases flexibility in file management of an application.

【0007】[0007]

【課題を解決するための手段】本発明のファイル管理方
式は、メモリを複数のファイル群に分割し、この分割し
た各ファイルをツリー構造にて管理するファイル管理方
式であって、指定ファイルに属するファイルのうち1つ
のファイルのアクセスを制限する第1のアクセス制限手
段と、指定ファイルに属するファイルのうち特定の複数
のファイルを一括してアクセスを制限する第2のアクセ
ス制限手段と、前記第1のアクセス制限手段、および、
前記第2のアクセス制限手段を選択する選択手段とを具
備している。
A file management system according to the present invention is a file management system in which a memory is divided into a plurality of file groups and each of the divided files is managed in a tree structure. A first access restricting means for restricting access to one of the files; a second access restricting means for collectively restricting access to a plurality of specific files belonging to the designated file; Access restriction means, and
Selecting means for selecting the second access limiting means.

【0008】また、本発明のファイル管理方式は、メモ
リを複数のファイル群に分割し、この分割した各ファイ
ルをツリー構造にて管理するファイル管理方式であっ
て、指定ファイルに属するファイルのうち1つのファイ
ルのアクセスを制限する第1のアクセス制限手段と、こ
の第1のアクセス制限手段による前記アクセス制限を緩
和する第1のアクセス緩和手段と、指定ファイルに属す
るファイルのうち特定の複数のファイルを一括してアク
セスを制限する第2のアクセス制限手段と、この第2の
アクセス制限手段による前記アクセス制限を緩和する第
2のアクセス緩和手段と、前記第1のアクセス制限手
段、前記第2のアクセス制限手段、前記第1のアクセス
緩和手段、および、前記第2のアクセス緩和手段を選択
する選択手段とを具備している。
The file management system of the present invention is a file management system in which a memory is divided into a plurality of file groups and each of the divided files is managed in a tree structure. A first access restricting means for restricting access to one file; a first access relaxing means for relaxing the access restriction by the first access restricting means; and a plurality of specific files among files belonging to the designated file. Second access restriction means for collectively restricting access, second access relaxation means for relaxing the access restriction by the second access restriction means, first access restriction means, second access A limiting means, the first access relaxing means, and a selecting means for selecting the second access relaxing means. To have.

【0009】[0009]

【作用】本発明によれば、アプリケーションに対応する
データファイルを、命令データにより外部から強制的に
使用不可能とすることが可能となる。したがって、アプ
リケーション運用を行なう際の膨大なブラックリストの
参照が不要となる。また、ファイル配下の1つのファイ
ルを対象とするか、それとも特定の複数のファイルを一
括して対象とするかを選択することが可能となる。した
がって、アプリケーションのファイル管理に柔軟性が増
加する。さらに、これを解除することにより、利用者に
対してアプリケーションを再度利用可能なように設定す
ることができる。
According to the present invention, the data file corresponding to the application can be forcibly disabled from the outside by the instruction data. Therefore, it is not necessary to refer to a huge black list when operating the application. Further, it is possible to select whether to target one file under the file or collectively target a plurality of specific files. Therefore, the flexibility of file management of the application is increased. Further, by canceling this, the application can be set so that the user can use it again.

【0010】[0010]

【実施例】以下、本発明の一実施例について図面を参照
して説明する。
DETAILED DESCRIPTION OF THE PREFERRED EMBODIMENTS An embodiment of the present invention will be described below with reference to the drawings.

【0011】図1は、本実施例に係る携帯可能電子装置
としてのICカードが適用される、たとえば、金融シス
テムあるいはショッピングシステムなどの端末装置とし
て用いられるカード取扱装置の構成例を示すものであ
る。すなわちち、この装置は、ICカード1をカードリ
ーダ・ライタ2を介してCPUなどからなる制御部3と
接続可能とするとともに、制御部3にキーボード4、C
RTディスプレイ装置5、プリンタ6、および、フロッ
ピーディスク装置7を接続して構成される。
FIG. 1 shows a configuration example of a card handling device to which an IC card as a portable electronic device according to this embodiment is applied, for example, used as a terminal device such as a financial system or a shopping system. . That is, this device enables the IC card 1 to be connected to the control unit 3 including a CPU via the card reader / writer 2, and the control unit 3 includes the keyboard 4 and C.
The RT display device 5, the printer 6, and the floppy disk device 7 are connected to each other.

【0012】図2は、ICカード1の構成例を示すもの
であり、制御部としての制御素子(たとえば、CPU)
11、記憶内容が消去可能な不揮発性のデータメモリ1
2、ワーキングメモリ13、プログラムメモリ14、お
よび、カードリーダ・ライタ2との電気的接触を得るた
めのコンタクト部15によって構成されている。これら
のうち、破線内の部分(制御素子11、データメモリ1
2、ワーキングメモリ13、プログラムメモリ14)は
1つ(あるいは複数)のICチップで構成されてICカ
ード本体内に埋設されている。
FIG. 2 shows an example of the configuration of the IC card 1, which is a control element (eg, CPU) as a control unit.
11. Non-volatile data memory 1 whose stored contents can be erased
2, a working memory 13, a program memory 14, and a contact portion 15 for making electrical contact with the card reader / writer 2. Of these, the part within the broken line (control element 11, data memory 1
2. The working memory 13 and the program memory 14) are composed of one (or a plurality of) IC chips and are embedded in the IC card body.

【0013】データメモリ12は、各種データの記憶に
使用され、たとえば、EEPROMなどで構成されてい
る。ワーキングメモリ13は、制御素子11が処理を行
なう際の処理データを一時的に保持するためのメモリで
あり、たとえば、RAMなどで構成される。プログラム
メモリ14は、たとえば、マスクROMで構成されてお
り、制御素子11のプログラムなどを記憶するものであ
る。
The data memory 12 is used to store various data and is composed of, for example, an EEPROM or the like. The working memory 13 is a memory for temporarily holding processing data when the control element 11 performs processing, and is composed of, for example, a RAM. The program memory 14 is composed of, for example, a mask ROM, and stores the program of the control element 11 and the like.

【0014】データメモリ12は、たとえば、図3に示
すように、ディレクトリ121、空き領域122、およ
び、エリア群123に分割されている。エリア群123
は、複数のデータエリアおよびキーエリアを有すること
ができ、かつ、データファイルと呼ばれる概念でグルー
プ化することができる。データファイルは、対応するア
プリケーションにて使用されるデータエリア、および、
キーエリアを一括して管理するためのファイルである。
データエリアは、たとえば、取引データなどのように、
必要に応じて読み書きするためのデータを格納するエリ
アである。キーエリアは、たとえば、暗証番号などの格
納に利用されているエリアであり、書込み/書換え/照
合の対象になり、読出しはできないようになっている。
The data memory 12 is divided into, for example, a directory 121, an empty area 122, and an area group 123, as shown in FIG. Area group 123
Can have multiple data areas and key areas and can be grouped in a concept called a data file. The data file is the data area used by the corresponding application, and
This is a file for collectively managing key areas.
The data area can be, for example, transaction data.
This is an area that stores data for reading and writing as necessary. The key area is, for example, an area used for storing a personal identification number, which is a target of writing / rewriting / verification and cannot be read.

【0015】これらのファイルあるいはエリアは、デー
タメモリ12内のディレクトリ121によって、それぞ
れの物理的位置などを制御素子11が認識するようにな
っている。これらの認識のために、図4に示すように、
それぞれの対応する各種定義情報が格納されている。
The control element 11 recognizes the physical position of each of these files or areas by means of the directory 121 in the data memory 12. To recognize these, as shown in FIG.
Various corresponding definition information is stored.

【0016】図4(a)は、データファイルを定義する
情報である。この定義情報は、ディレクトリ121内で
データファイル定義情報を識別するためのデータPT
N、本データファイルに割当てられたファイル通し番号
DFSN、本データファイルの親ファイルの通し番号P
FSN、本データファイルに付与されたファイル名DF
nameおよびその長さを示すNL、データファイルサイズ
DFS、データファイルのアクセス条件を示すDFA
C、本ファイルの状態を保持するためのDFST、およ
び、これらのデータ全ての正当性をチェックするための
データBCCからなる。
FIG. 4A shows information defining a data file. This definition information is data PT for identifying the data file definition information in the directory 121.
N, file serial number DFSN assigned to this data file, serial number P of the parent file of this data file
FSN, file name DF given to this data file
name, NL indicating its length, data file size DFS, and DFA indicating data file access conditions
C, DFST for holding the state of this file, and data BCC for checking the validity of all these data.

【0017】図4(b)は、各種取引データなどを格納
するエリアを定義する情報である。この定義情報は、デ
ィレクトリ121内でエリア定義情報を識別するための
PTN、本エリアが属するデータファイルの通し番号D
FSN、エリアに対してアクセスする際の識別番号AI
D、エリアの先頭アドレスを示すATOP、エリアサイ
ズを示すASIZ、エリアのアクセス条件を示すAA
C、エリアの状態を保持するAST、および、これらの
データ全ての正当性をチェックするためのデータBCC
からなる。
FIG. 4B is information defining an area for storing various transaction data and the like. This definition information is the PTN for identifying the area definition information in the directory 121, and the serial number D of the data file to which this area belongs.
Identification number AI for accessing FSN and area
D, ATOP indicating the start address of the area, ASIZ indicating the area size, AA indicating the access condition of the area
C, AST that holds the state of the area, and data BCC for checking the validity of all of these data
Consists of.

【0018】図4(c)は、各種キーデータを格納する
エリアを定義する情報である。この定義情報は、ディレ
クトリ121内でキーエリア定義情報を識別するための
データPTN、本エリアが属するデータファイルの通し
番号DFSN、エリアに対してアクセスする際の識別番
号KID、エリアの先頭アドレスを示すKTOP、エリ
アサイズを示すKSIZ、キーのアクセス条件を示すK
AC、キーの状態を保持するKST、および、これらの
データ全ての正当性をチェックするためのデータBCC
からなる。
FIG. 4C is information defining an area for storing various key data. This definition information is data PTN for identifying the key area definition information in the directory 121, serial number DFSN of the data file to which this area belongs, identification number KID for accessing the area, and KTOP indicating the start address of the area. , KSIZ indicating the area size, K indicating the key access condition
AC, KST that holds the state of the key, and data BCC for checking the validity of all these data
Consists of.

【0019】これらの各種定義情報は、一括して図5に
示すようにディレクトリ121に格納される。図示する
ように、各定義ワードには、DFSN(ファイル通し番
号)が、ファイル創成時に自動的に付与される。このD
FSN、および、データファイル定義ワードに格納され
る親ファイルのシーケンス番号により、各ファイルの関
連状態を制御素子11が認識する。
These various types of definition information are collectively stored in the directory 121 as shown in FIG. As shown in the figure, a DFSN (file serial number) is automatically added to each definition word when the file is created. This D
The control element 11 recognizes the related state of each file based on the FSN and the sequence number of the parent file stored in the data file definition word.

【0020】たとえば、第6番目に格納されているキー
エリア3定義ワードにより定義されるキーエリアは、D
FSNが「01」となっているので、DF1(データフ
ァイル1)に属することがわかる。また、第11番目に
格納されているキーエリア6は、同様にしてDF4の配
下にあり、かつ、このDF4はDF2配下にあるエリア
であることがわかる。
For example, the key area defined by the key area 3 definition word stored sixth is D
Since the FSN is "01", it can be seen that it belongs to DF1 (data file 1). Also, it can be seen that the 11th stored key area 6 is also under the control of DF4, and this DF4 is also under the control of DF2.

【0021】さて、各ファイルには、アクセスのために
必要なキーを指定する情報が定義される。この情報は、
以下のように、アクセス種別ごとに独立して設定するこ
とができる。データファイルは、ファイルの強制ロッ
ク、ファイル内へのエリアの登録、ディレクトリ情報の
参照、ファイルのロック解除に関するアクセス種別があ
る。データエリアには、データの参照、データの書込
み、データの書換え、データの消去に関するアクセス種
別がある。キーエリアには、キーデータの書込み、キー
データの書換え、キーデータのロック、キーデータのア
ンロックに関するアクセス種別がある。
Information for designating a key required for access is defined in each file. This information is
It can be set independently for each access type as follows. The data file has access types related to forced file locking, area registration in the file, directory information reference, and file unlocking. The data area has access types related to data reference, data writing, data rewriting, and data erasing. The key area has access types for writing key data, rewriting key data, locking key data, and unlocking key data.

【0022】これらのアクセス条件は、ICカード1内
に存在するキーの組合わせを特定する情報であり、たと
えば、4バイトで構成される。これらの各バイトは、そ
れぞれアクセス種別に対応しており、各バイト内のセッ
トされたビットの位置に対応するBS(Bit for Settin
g the assignment of collationflag :照合フラグの割
当てられているビット)を有するキーを、アクセス時に
要求するような意味付けになっている。なお、全てのビ
ットがリセットされている場合には、これに対応するア
クセスの際に、キーの照合状態を確認する必要がない
(フリーアクセス)ことを示す。
These access conditions are information specifying the combination of keys existing in the IC card 1, and are composed of, for example, 4 bytes. Each of these bytes corresponds to an access type, and BS (Bit for Settin) corresponding to the position of the set bit in each byte.
g the assignment of collationflag: a key having a bit to which the collation flag is assigned is requested at the time of access. If all the bits are reset, it means that it is not necessary to confirm the collation state of the key at the time of access corresponding thereto (free access).

【0023】また、ワーキングメモリ13の所定場所に
は、どのキーが照合されたかを保持するフィールドがあ
り、キー照合動作に呼応して、当該キーが所有するBS
にて指定されたビットがセット/リセットされるもので
ある。したがって、各ファイルあるいはエリアに対して
アクセス命令が外部装置から入力された場合に、制御素
子11は上記のうちどのアクセス種別かを判断し、該当
する種別に対応するアクセス条件を示すバイトを抽出
し、このバイト中の各ビットが要求する照合状態が、ワ
ーキングメモリ13上の照合状態と合致しているか否か
により、アクセスの可否が決定される。
Further, at a predetermined location of the working memory 13, there is a field for holding which key is collated, and in response to the key collating operation, the BS possessed by the key concerned is held.
The bit designated by is set / reset. Therefore, when an access command is input from an external device to each file or area, the control element 11 determines which of the above access types, and extracts a byte indicating an access condition corresponding to the corresponding type. Whether or not access is possible is determined by whether or not the collation state required by each bit in this byte matches the collation state on the working memory 13.

【0024】たとえば、あるデータエリアのデータ読出
しのためのアクセス条件が、ICカード1内のキーAで
あった場合、このデータエリアに対するデータ読出し命
令が入力された時点で、これを判断し、仮にキーAの照
合状態がセットされれていなければ、アクセスができな
いことになる。
For example, if the access condition for reading data in a certain data area is the key A in the IC card 1, this is judged at the time when the data read command for this data area is input, and temporarily. If the verification state of the key A is not set, it means that the access cannot be made.

【0025】これらの検査は、読出しアクセスのみなら
ず、書込みなどの他のアクセス時にも同様に行なわれ、
かつ、キーエリア、データファイルに対する命令が入力
された場合においても、同様にして、対応アクセス条件
と、その時点でのキー照合状態が確認される。次に、こ
のようなアクセス制御を行なっているICカード1にお
いて、データファイルへのロック機能について説明す
る。
These inspections are similarly performed not only for read access but also for other access such as writing.
Further, even when an instruction for the key area and the data file is input, the corresponding access condition and the key collation state at that time are similarly confirmed. Next, the function of locking the data file in the IC card 1 that performs such access control will be described.

【0026】図6に示すように、ICカード1は、電気
的活性化後に命令データ待ち状態に移る。この時点で命
令データを待ち続け、入力されると、命令データの先頭
にある機能コードを抽出し、対応する命令ルーチンに移
る。この後、命令ルーチンにて処理を行ない、この処理
結果を出力後、命令データ待ち状態に戻る。
As shown in FIG. 6, the IC card 1 shifts to a command data waiting state after being electrically activated. At this point, the instruction data is kept waiting, and when input, the function code at the head of the instruction data is extracted, and the process proceeds to the corresponding instruction routine. After that, processing is performed in the instruction routine, the processing result is output, and then the processing returns to the instruction data waiting state.

【0027】ICカード1に図7(a)に示すようなデ
ータファイルロック用命令を入力すると、図8に示すよ
うなデータファイルロック命令ルーチンへ移る。すなわ
ち、制御素子11は、まず、現在カレント状態となって
いるデータファイルがどれであるかを識別する。データ
ファイルをカレント状態にするためには、図7(e)に
示すようようなファイル選択命令データを入力する。こ
の場合、命令データにより入力されたデータファイル名
と同一のファイル名を有するデータファイルをディレク
トリ121から探し、見付かれば、ワーキングメモリ1
3の所定位置に対応するDFSNを保持しておく。ま
た、見付からなければ、該所定位置の情報は変化させな
い。なお、ICカード1に対して電気的活性化を施した
後は、本情報は「00」となっている。
When a data file lock command as shown in FIG. 7A is input to the IC card 1, the process moves to a data file lock command routine as shown in FIG. That is, the control element 11 first identifies which data file is currently in the current state. In order to bring the data file into the current state, file selection command data as shown in FIG. 7 (e) is input. In this case, a data file having the same file name as the data file name input by the command data is searched from the directory 121, and if found, the working memory 1
The DFSN corresponding to the predetermined position 3 is held. If it is not found, the information on the predetermined position is not changed. After the electrical activation of the IC card 1, this information is “00”.

【0028】さて、カレント状態であるデータファイル
が見付かると、制御素子11は、これに対応するアクセ
ス条件のうち、前述したデータファイルのロックに関す
るアクセス条件を抽出し、先のキー照合状態と比較する
ことにより、この命令を実行するか否かを判断する。も
し、アクセスできないと判断した場合には、この時点
で、アクセス条件異常を示す応答データを出力し、元の
命令データ待ち状態に戻る。
When the data file in the current state is found, the control element 11 extracts the above-mentioned access condition relating to the lock of the data file from the corresponding access conditions, and compares it with the previous key collation state. By doing so, it is determined whether or not this instruction is executed. If it is determined that the access cannot be made, response data indicating an abnormal access condition is output at this point, and the original instruction data waiting state is returned to.

【0029】もし、アクセス可能と判断した場合には、
次に当該データファイルに対応するステータス情報を抽
出し、命令データにより指定されたロック値と比較す
る。ロック値は、図9に示すようなフォーマットになっ
ており、各ビットに異なるロック機能を割当てている。
図示するように、2バイトのうち先頭の1バイトの下位
4ビットは、データファイルに対するアクセスに関連す
るロック機能である。
If it is determined that access is possible,
Next, the status information corresponding to the data file is extracted and compared with the lock value specified by the instruction data. The lock value has a format as shown in FIG. 9, and a different lock function is assigned to each bit.
As shown in the figure, the lower 4 bits of the first 1 byte of the 2 bytes are a lock function related to access to the data file.

【0030】ビットの意味付けとしては、最下位ビット
はデータファイルに対するディレクトリ変更アクセス
(ファイル内に新規のエリアを追加設定するなど)にア
クセス条件が設定されていた場合に、このアクセスを禁
止するか否かを指定するビットである。第2ビットは、
データファイルに対するディレクトリ参照アクセスに対
してアクセス条件が設定されていた場合に、このアクセ
スを禁止するか否かを指定するビットである。第3ビッ
トは、データファイルに対するディレクトリ変更アクセ
スがフリー条件(キーが照合されているか否かにかかわ
らず、アクセス可能)が設定されていた場合に、このア
クセスを禁止するか否かを指定するビットである。第4
ビットは、データファイルに対するディレクトリ参照ア
クセスがフリー条件が設定されていた場合に、アクセス
を禁止するか否かを指定するビットである。また、ロッ
ク値の最終1バイトの上位4ビットは、当該データファ
イル配下のキーエリアに対するアクセスに関連するロッ
ク機能である。
As for the meaning of the bits, the least significant bit is to prohibit this access when the access condition is set for the directory change access to the data file (additional setting of a new area in the file, etc.). It is a bit that specifies whether or not. The second bit is
This is a bit that specifies whether or not to prohibit the access when the access condition is set for the directory reference access to the data file. The third bit is a bit that specifies whether or not the directory change access to the data file is prohibited when the free condition (accessible regardless of whether the key is collated) is set. Is. Fourth
The bit is a bit that specifies whether or not the access is prohibited when the directory reference access to the data file is set to the free condition. The upper 4 bits of the last 1 byte of the lock value is a lock function related to access to the key area under the data file.

【0031】ビットの意味付けとしては、最下位ビット
はキーエリアに対するキー変更アクセス(キーを設定/
変更するなど)にアクセス条件が設定されている場合
に、このアクセスを禁止するか否かを指定するビットで
ある。第2ビットは、キーの状態を参照するアクセスに
対してアクセス条件が設定されている場合に、このアク
セスを禁止するか否かを指定するビットである。第3ビ
ットは、キーエリアに対するキー変更アクセスがフリー
条件であった場合に、このアクセスを禁止するか否かを
指定するビットである。第4ビットは、キーの状態を参
照するアクセスがフリー条件であった場合に、このアク
セスを禁止するか否かを指定するビットである。また、
ロック値の最終バイトの下位4ビットは、当該データフ
ァイル配下のデータエリアに対するアクセスに関連する
ロック機能である。
Regarding the meaning of the bits, the least significant bit is the key change access to the key area (set / set key).
It is a bit that specifies whether or not to prohibit this access when the access condition is set to (for example, change). The second bit is a bit that specifies whether or not to prohibit the access when the access condition is set for the access referring to the state of the key. The third bit is a bit that specifies whether or not to prohibit the key change access to the key area when the key change access is a free condition. The fourth bit is a bit that specifies whether or not to prohibit the access when the access referring to the key state is a free condition. Also,
The lower 4 bits of the last byte of the lock value is a lock function related to access to the data area under the data file.

【0032】ビットの意味付けとしては、最下位ビット
は、データエリアに対する格納データ変更アクセス(デ
ータを書込み/書換え/消去するなど)にアクセス条件
が設定されている場合に、このアクセスを禁止するか否
かを指定するビットである。第2ビットは、データエリ
アに対する格納データ参照アクセス(データを読出すな
ど)にアクセス条件が設定されている場合に、このアク
セスを禁止するか否かを指定するビットである。第3ビ
ットは、データエリアに対する格納データ変更アクセス
がフリー条件であった場合に、このアクセスを禁止する
か否かを指定するビットである。第4ビットは、データ
エリアに対する格納データ参照アクセスがフリー条件で
あった場合に、このアクセスを禁止するか否かを指定す
るビットである。なお、各ビットとも“1”であればア
クセス可能、また“0”であればアクセス禁止を意味す
る。
Regarding the meaning of the bit, the least significant bit is to prohibit the access when the access condition is set for the stored data change access (writing / rewriting / erasing of data, etc.) to the data area. It is a bit that specifies whether or not. The second bit is a bit that specifies whether or not to prohibit the access when the access condition is set for the stored data reference access to the data area (such as reading the data). The third bit is a bit designating whether or not to prohibit the access to the data area when the access to change the stored data is a free condition. The fourth bit is a bit that specifies whether or not the access to the stored data is prohibited when the stored data reference access to the data area is a free condition. If each bit is "1", it means that access is possible, and if "0", it means that access is prohibited.

【0033】制御素子11は、ロック命令によって入力
されたロック値と、カレント状態になっているデータフ
ァイルのそれれとを比較し、これらをビット単位で論理
積(AND)をとり、この結果を新たなロック値として
データファイル定義情報の所定位置に格納する。なお、
このときBCCも計算し直し、新たなBCCを書込む。
そして、処理正常を意味する応答データを出力し、命令
データ待ち状態に戻る。
The control element 11 compares the lock value input by the lock command with those of the data file in the current state, performs a logical product (AND) of these on a bit-by-bit basis, and outputs the result. The new lock value is stored at a predetermined position in the data file definition information. In addition,
At this time, BCC is also recalculated and a new BCC is written.
Then, the response data indicating that the process is normal is output, and the process returns to the command data waiting state.

【0034】また、各キーエリア定義情報には、先のデ
ータファイル定義情報内のロック値のうち、最終バイト
の上位4ビットと同様なフォーマットで、キーエリア固
有のロック値を有している(図10参照)。
Each key area definition information has a lock value unique to the key area in the same format as the upper 4 bits of the last byte among the lock values in the previous data file definition information ( (See FIG. 10).

【0035】また、各データエリア定義情報には、先の
データファイル定義情報内のロック値のうち、最終バイ
トの下位4ビットと同様なフォーマットで、データエリ
ア固有のロック値を有している(図11参照)。これら
のロック処理も、カレントデータファイル配下のキーエ
リア、および、データエリアを対象に行なわれる。
Each data area definition information has a lock value specific to the data area in the same format as the lower 4 bits of the last byte among the lock values in the previous data file definition information ( (See FIG. 11). These lock processes are also performed on the key area and data area under the current data file.

【0036】このとき、図7(b)に示すように、エリ
アロック命令データには、キーエリアおよびデータエリ
アに付与されているID(識別情報)が含まれるように
なっており、制御素子11は、この命令データを受信す
ると、図12に示すように、まず、指定されたIDがカ
レントデータファイル配下に存在するか否かを、先のデ
ィレクトリ121から参照する。このとき見付からなけ
れば、指定ID無しを意味する応答データを出力し、命
令データ待ち状態に戻る。そうでなければ、指定された
エリアに指定されているロック処理に対応するアクセス
条件を参照し、アクセス可能か否かを判断する。もし、
アクセスできないと判断した場合には、この時点で、ア
クセス条件異常を示す応答データを出力し、元の命令デ
ータ待ち状態に戻る。
At this time, as shown in FIG. 7B, the area lock command data includes the key area and the ID (identification information) given to the data area, and the control element 11 When receiving this command data, first, as shown in FIG. 12, first, from the previous directory 121, it is checked whether or not the designated ID exists under the current data file. At this time, if not found, the response data indicating that there is no designated ID is output, and the process returns to the command data waiting state. Otherwise, the access condition corresponding to the lock process specified in the specified area is referred to, and it is determined whether or not the access is possible. if,
When it is determined that the access cannot be made, the response data indicating the access condition abnormality is output at this point, and the original instruction data waiting state is returned.

【0037】もし、アクセス可能と判断した場合には、
次に当該データファイルに対応するステータス情報を抽
出し、命令データにより指定されたロック値と比較す
る。そして、制御素子11は、ロック命令により入力さ
れたロック値と、カレント状態になっているデータファ
イルのそれとを比較し、これらをビット単位で論理積
(AND)をとり、この結果を新たなロック値として、
データファイル定義情報の所定位置に格納する。なお、
このときBCCも計算し直し、新たなBCCを書込む。
そして、処理正常を意味する応答データを出力し、命令
データ待ち状態に戻る。次に、図13に示すフローチャ
ートを参照して、データエリアに対してのデータ読出し
アクセスを例に、アクセス条件とロック値との関係を説
明する。
If it is determined that access is possible,
Next, the status information corresponding to the data file is extracted and compared with the lock value specified by the instruction data. Then, the control element 11 compares the lock value input by the lock command with that of the data file in the current state, calculates the logical product (AND) of these in bit units, and obtains this result as a new lock. As a value
It is stored at a predetermined position in the data file definition information. In addition,
At this time, BCC is also recalculated and a new BCC is written.
Then, the response data indicating that the process is normal is output, and the process returns to the command data waiting state. Next, the relationship between the access condition and the lock value will be described with reference to the flowchart shown in FIG. 13 by taking the data read access to the data area as an example.

【0038】ICカード1が命令データ待ち状態のとき
に、図7(c)または(d)に示すようなデータアクセ
ス命令データが入力されると、制御素子11は、まず、
カレントデータファイルに属するデータエリア定義情報
のうち、命令データにより指定されたIDを有する定義
情報を見付ける。このとき、該当するIDが見付からな
い場合には、指定ID無しを意味する応答データを出力
し、命令データ待ち状態に戻る。見付かれば、この定義
情報内に設定されているアクセス条件のうち、指定アク
セスの種別に関連するアクセス条件を抽出する。
When the data access command data as shown in FIG. 7 (c) or (d) is input while the IC card 1 is in the command data waiting state, the control element 11 first
Among the data area definition information belonging to the current data file, the definition information having the ID designated by the instruction data is found. At this time, if the corresponding ID is not found, the response data indicating that there is no designated ID is output, and the process returns to the command data waiting state. If found, the access condition related to the designated access type is extracted from the access conditions set in the definition information.

【0039】たとえば、このアクセスがデータリードア
クセスであった場合には、これに対応するアクセス条件
を抽出し、このアクセス条件がフリーアクセス条件を示
していた場合、カレントデータファイルのロック値のう
ち、最下位4ビットのうちの第4ビット、および、当該
データエリアのロック値のうちの第4ビットを参照し、
この2つのビットが共に“1”であれば、アクセス処理
に移行する。どちらかが“0”であった場合には、当該
データエリアがロック中を意味する応答データを出力
し、命令データ待ち状態に戻る。
For example, when this access is a data read access, the access condition corresponding to this is extracted, and when this access condition indicates a free access condition, among the lock values of the current data file, Referring to the fourth bit of the least significant 4 bits and the fourth bit of the lock value of the data area,
If both these two bits are "1", the access processing is started. If either one is "0", response data indicating that the data area is locked is output, and the process returns to the instruction data waiting state.

【0040】また、このアクセス条件が、あるキーの照
合を要求していた場合、カレントデータファイルのロッ
ク値のうち、最下位4ビットのうちの第2ビット、およ
び、当該データエリアのロック値のうちの第2ビットを
参照し、この2つのどちらかが“0”であった場合に
は、当該アクセス対象ロック中を意味する応答データを
出力し、命令データ待ち状態に戻る。ともに“1”であ
れば、アクセス条件が指示するキーが照合されている状
態かを確認し、照合されていなければ、アクセス条件異
常を意味する応答データを出力し、命令データ待ち状態
に戻る。照合されていれば、アクセス処理に移行する。
When the access condition requires collation of a certain key, the second value of the least significant 4 bits of the lock value of the current data file and the lock value of the data area are compared. The second bit of the two is referred to, and if either of the two is "0", the response data indicating that the access target lock is in progress is output, and the process returns to the instruction data wait state. If both are "1", it is confirmed whether the key indicated by the access condition is in a collated state. If not collated, the response data indicating an abnormal access condition is output, and the process returns to the instruction data waiting state. If it is verified, the process proceeds to access processing.

【0041】なお、アクセスの際には、当該データエリ
ア定義情報に設定されている、データエリアの先頭アド
レスおよびサイズにより、アクセス対象領域を認識す
る。そして、処理決を応答データとして出力し、命令デ
ータ待ち状態に戻る。
At the time of access, the access target area is recognized by the start address and size of the data area set in the data area definition information. Then, the processing decision is output as response data, and the process returns to the command data waiting state.

【0042】このようにして、データエリアに対しての
データ書込み/書換え/消去アクセス時には、対応する
アクセス条件、データファイルのロック値のうちの対応
するビット、および、アクセス対象となっているデータ
エリアのロック値のうちの対応するビットを用いて、ア
クセスの可否を判断する。
In this way, at the time of data write / rewrite / erase access to the data area, the corresponding access condition, the corresponding bit of the lock value of the data file, and the data area to be accessed Whether or not the access is possible is determined using the corresponding bit of the lock value of.

【0043】また、キーエリアに対してのアクセス時に
は、そのアクセスに対応するアクセス条件(アクセス対
象キーエリアの定義情報に設定されている)、データフ
ァイルのロック値のうちの対応するビット、および、ア
クセス対象となっているキーエリアのロック値のうちの
対応するビットを用いて、アクセスの可否を判定する。
When the key area is accessed, the access condition (set in the definition information of the access target key area) corresponding to the access, the corresponding bit of the lock value of the data file, and Whether or not access is possible is determined using the corresponding bit of the lock value of the key area that is the access target.

【0044】また、データファイルに対してのアクセス
時には、そのアクセスに対応するアクセス条件(アクセ
ス対象データファイルの定義情報に設定されている)、
および、当該データファイルのロック値のうちの対応す
るビットを用いて、アクセスの可否を判断する。
When accessing a data file, the access condition (set in the definition information of the access target data file) corresponding to the access,
Also, the availability of access is determined using the corresponding bit of the lock value of the data file.

【0045】なお、前記実施例では、アクセスの可否判
断時にロック値が要因となり、アクセス不可となった場
合に当該アクセス対象がロック中を意味する応答データ
を出力するようになっているが、これをアクセス条件異
常を意味する応答データに置き換えてもよい。
In the above embodiment, the lock value is a factor when determining whether or not access is possible, and when access is disabled, response data indicating that the access target is locked is output. May be replaced with response data indicating an abnormal access condition.

【0046】また、前記実施例では、ロック値を各ビッ
トに単独で設定できるようになっているが、これをロッ
クする場合には、たとえば、最下位ビット方向から順番
にアクセス禁止を意味するビット値を設定し、また、ア
ンロックする場合には、最上位ビット方向から順番にア
クセス許可を意味するビット値を設定するようにしても
よい。この場合、設定されているロック値と入力された
設定値とを比較し、設定値を変更するに相応しくないか
否かを判断し、もし相応しくない場合には、ロック値異
常を示す応答データを出力し、命令データ待ち状態に戻
る。
Further, in the above embodiment, the lock value can be set independently for each bit. However, when locking the bit, for example, a bit indicating access prohibition in order from the least significant bit direction. When setting a value or unlocking, a bit value indicating access permission may be set in order from the most significant bit direction. In this case, the set lock value is compared with the input set value, and it is judged whether or not it is not appropriate to change the set value.If it is not suitable, response data indicating an abnormal lock value is sent. Output and return to command data wait state.

【0047】また、前記実施例では、ロック値として4
ビットを割当てているが、対応する命令の種別およびロ
ック対象の条件などにより、ビット数は種々変更可能で
ある。
In the above embodiment, the lock value is 4
Although bits are assigned, the number of bits can be changed variously depending on the type of the corresponding instruction and the condition of the lock target.

【0048】また、前記実施例では、ロック命令のみに
対応する命令データおよび対応フローを説明したが、ロ
ック値を変更する部分のみ改良することで(実施例中の
設定ロック値を論理積(AND)する部分を論理和(O
R)する)対応可能となる。
In the above embodiment, the instruction data corresponding to only the lock instruction and the corresponding flow are explained. However, by improving only the portion for changing the lock value (the set lock value in the embodiment is ANDed. ) Is the logical sum (O
R) Yes).

【0049】また、外部装置とのデータ授受のためにコ
ンタクト部を使用しているが、たとえば、光、電界、磁
界などを用いて外部装置と接触せずに、これを行なう方
法を用いてもよい。
Although the contact portion is used for exchanging data with an external device, a method of performing this without contact with the external device by using light, an electric field, a magnetic field or the like may be used. Good.

【0050】さらに、前記実施例では、ICカードを例
示したが、筐体構成もカードに限らず、棒状、ブロック
状など種々変更可能である。また、構成内容も本発明の
要旨を逸脱しない範囲で種々変更可能である。
Further, in the above-mentioned embodiment, the IC card is exemplified, but the housing structure is not limited to the card, and various modifications such as a rod shape and a block shape can be made. Further, the configuration content can be variously modified without departing from the scope of the present invention.

【0051】[0051]

【発明の効果】以上詳述したように本発明によれば、ア
プリケーションに対応するデータファイルを、命令デー
タにより外部から強制的に使用不可能とすることが可能
となり、したがって、アプリケーション運用を行なう際
の膨大なブラックリストの参照が不要となり、また、フ
ァイル配下の1つのファイルを対象とするか、それとも
特定の複数のファイルを一括して対象とするかを選択す
ることが可能となり、したがって、アプリケーションの
ファイル管理に柔軟性が増加するファイル管理方式を提
供できる。
As described above in detail, according to the present invention, the data file corresponding to the application can be forcibly made unusable from the outside by the instruction data, and therefore, when the application is operated. It is not necessary to refer to a huge blacklist of files, and it is possible to select whether to target one file under the file or a plurality of specific files at once. It is possible to provide a file management method with increased flexibility in file management.

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

【図1】本発明の一実施例に係るICカードが適用され
るカード取扱装置の構成例を示すブロック図。
FIG. 1 is a block diagram showing a configuration example of a card handling device to which an IC card according to an embodiment of the present invention is applied.

【図2】ICカードの構成例を示すブロック図。FIG. 2 is a block diagram showing a configuration example of an IC card.

【図3】データメモリの構成例を示すメモリマップ図。FIG. 3 is a memory map diagram showing a configuration example of a data memory.

【図4】各種定義情報のフォーマット例を示す図。FIG. 4 is a diagram showing a format example of various definition information.

【図5】データメモリ内に設定されるディレクトリの構
成例を示す図。
FIG. 5 is a diagram showing a configuration example of a directory set in a data memory.

【図6】命令データ入力ルーチンを説明するフローチャ
ート。
FIG. 6 is a flowchart illustrating a command data input routine.

【図7】各種命令データのフォーマット例を示す図。FIG. 7 is a diagram showing a format example of various instruction data.

【図8】データファイルロック命令ルーチンを説明する
フローチャート。
FIG. 8 is a flowchart illustrating a data file lock instruction routine.

【図9】データファイルロック値のフォーマット例を示
す図。
FIG. 9 is a diagram showing a format example of a data file lock value.

【図10】キーエリアロック値のフォーマット例を示す
図。
FIG. 10 is a diagram showing a format example of a key area lock value.

【図11】データエリアロック値のフォーマット例を示
す図。
FIG. 11 is a diagram showing a format example of a data area lock value.

【図12】エリアロック命令ルーチンを説明するフロー
チャート。
FIG. 12 is a flowchart illustrating an area lock instruction routine.

【図13】データエリアアクセス命令ルーチンを説明す
るフローチャート。
FIG. 13 is a flowchart illustrating a data area access instruction routine.

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

1……ICカード 2……カードリーダ・ライタ 3……制御部 4……キーボード 5……CRTディスプレイ装置 11……制御素子 12……データメモリ 13……ワーキングメモリ 14……プログラムメモリ 15……コンタクト部 121……ディレクトリ 123……エリア群 1 ... IC card 2 ... Card reader / writer 3 ... Control unit 4 ... Keyboard 5 ... CRT display device 11 ... Control element 12 ... Data memory 13 ... Working memory 14 ... Program memory 15 ... Contact part 121 …… Directory 123 …… Area group

Claims (2)

【特許請求の範囲】[Claims] 【請求項1】 メモリを複数のファイル群に分割し、こ
の分割した各ファイルをツリー構造にて管理するファイ
ル管理方式であって、 指定ファイルに属するファイルのうち1つのファイルの
アクセスを制限する第1のアクセス制限手段と、 指定ファイルに属するファイルのうち特定の複数のファ
イルを一括してアクセスを制限する第2のアクセス制限
手段と、 前記第1のアクセス制限手段、および、前記第2のアク
セス制限手段を選択する選択手段とを具備したことを特
徴とするファイル管理方式。
1. A file management method for dividing a memory into a plurality of file groups and managing each of the divided files in a tree structure, wherein access to one of the files belonging to a designated file is restricted. No. 1 access restriction unit, a second access restriction unit for collectively restricting access to a plurality of specific files belonging to a designated file, the first access restriction unit, and the second access A file management method comprising: a selecting unit for selecting a limiting unit.
【請求項2】 メモリを複数のファイル群に分割し、こ
の分割した各ファイルをツリー構造にて管理するファイ
ル管理方式であって、 指定ファイルに属するファイルのうち1つのファイルの
アクセスを制限する第1のアクセス制限手段と、 この第1のアクセス制限手段による前記アクセス制限を
緩和する第1のアクセス緩和手段と、 指定ファイルに属するファイルのうち特定の複数のファ
イルを一括してアクセスを制限する第2のアクセス制限
手段と、 この第2のアクセス制限手段による前記アクセス制限を
緩和する第2のアクセス緩和手段と、 前記第1のアクセス制限手段、前記第2のアクセス制限
手段、前記第1のアクセス緩和手段、および、前記第2
のアクセス緩和手段を選択する選択手段とを具備したこ
とを特徴とするファイル管理方式。
2. A file management method for dividing a memory into a plurality of file groups and managing each divided file in a tree structure, wherein access to one file out of files belonging to a designated file is restricted. A first access restriction unit, a first access relaxation unit that relaxes the access restriction by the first access restriction unit, and a first access restriction unit that collectively restricts access to a plurality of specific files belonging to a designated file. Second access restriction means, second access restriction means for relaxing the access restriction by the second access restriction means, the first access restriction means, the second access restriction means, and the first access Mitigation means, and the second
And a selection means for selecting the access relaxation means.
JP5064505A 1993-03-24 1993-03-24 File control system Pending JPH06274398A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP5064505A JPH06274398A (en) 1993-03-24 1993-03-24 File control system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP5064505A JPH06274398A (en) 1993-03-24 1993-03-24 File control system

Publications (1)

Publication Number Publication Date
JPH06274398A true JPH06274398A (en) 1994-09-30

Family

ID=13260135

Family Applications (1)

Application Number Title Priority Date Filing Date
JP5064505A Pending JPH06274398A (en) 1993-03-24 1993-03-24 File control system

Country Status (1)

Country Link
JP (1) JPH06274398A (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH07160547A (en) * 1993-12-10 1995-06-23 Toshiba Corp Film managing system
DE19511298A1 (en) * 1995-03-28 1996-10-02 Deutsche Telekom Ag Method of allotting and withdrawing reception authorisation for chargeable reception

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH07160547A (en) * 1993-12-10 1995-06-23 Toshiba Corp Film managing system
DE19511298A1 (en) * 1995-03-28 1996-10-02 Deutsche Telekom Ag Method of allotting and withdrawing reception authorisation for chargeable reception
DE19511298B4 (en) * 1995-03-28 2005-08-18 Deutsche Telekom Ag Procedure for issuing and revoking the authorization to receive broadcasts and decoders

Similar Documents

Publication Publication Date Title
JPH06274397A (en) File control system
KR950007895B1 (en) Portable electronic apparatus
JP3662946B2 (en) File management system and portable electronic device
US5161256A (en) Method and system for allocating file area in memory area of ic card
JP3594980B2 (en) File management method
JP2831660B2 (en) Portable electronic devices
KR970006646B1 (en) Portable electronic apparatus
JP3445304B2 (en) File management device
JPH0440587A (en) Portable electronic equipment
JPH0440588A (en) Portable electronic equipment
EP0950982B1 (en) Portable electronic apparatus
JP3178881B2 (en) Portable electronic devices
JP2695857B2 (en) Portable electronic devices
JPH06274398A (en) File control system
JP4443699B2 (en) Portable electronic device and method for controlling portable electronic device
JPH0250286A (en) Portable electronic device
JP3004236B2 (en) Portable electronic device and access management method in portable electronic device
US7296289B2 (en) Setting or changing an access condition for an access management apparatus and method of a portable electronic device
JP3017736B2 (en) Portable electronic devices
JP2501050Y2 (en) IC card
JP2001202487A (en) Portable electronic device and key collation method
JP3246558B2 (en) IC card
JP3015376B2 (en) IC card
JP3209994B2 (en) Portable electronic devices
JPH09293023A (en) Controlling method for access to memory