JP3516591B2 - Data storage method and system and data storage processing recording medium - Google Patents

Data storage method and system and data storage processing recording medium

Info

Publication number
JP3516591B2
JP3516591B2 JP19996698A JP19996698A JP3516591B2 JP 3516591 B2 JP3516591 B2 JP 3516591B2 JP 19996698 A JP19996698 A JP 19996698A JP 19996698 A JP19996698 A JP 19996698A JP 3516591 B2 JP3516591 B2 JP 3516591B2
Authority
JP
Japan
Prior art keywords
data
key
user
encrypted
file
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Expired - Lifetime
Application number
JP19996698A
Other languages
Japanese (ja)
Other versions
JPH11149414A (en
Inventor
博 宮崎
吉喜 鮫島
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Hitachi Software Engineering Co Ltd
Original Assignee
Hitachi Software Engineering 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 Hitachi Software Engineering Co Ltd filed Critical Hitachi Software Engineering Co Ltd
Priority to JP19996698A priority Critical patent/JP3516591B2/en
Publication of JPH11149414A publication Critical patent/JPH11149414A/en
Application granted granted Critical
Publication of JP3516591B2 publication Critical patent/JP3516591B2/en
Anticipated expiration legal-status Critical
Expired - Lifetime legal-status Critical Current

Links

Landscapes

  • Storage Device Security (AREA)

Description

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

【0001】[0001]

【発明の属する技術分野】本発明は、アプリケーション
プログラムに従った処理を実行するコンピュータと、該
コンピュータに接続された記憶装置とを備えたコンピュ
ータシステムにおいて前記アプリケーションプログラム
が処理したデータを前記記憶装置に書き込んで保存する
ためのデータ保存方法およびシステム並びにデータ保存
処理用記録媒体に係り、特に、コンピュータ上で動作し
ているアプリケーションプログラムから記憶装置へのデ
ータ読み出し・書き込み要求があった時に、そのコンピ
ュータとネットワークで接続された鍵管理コンピュータ
からアプリケーションプログラムを操作しているユーザ
の暗号鍵を取り寄せ、その暗号鍵を用いて書き込みデー
タの暗号化および読出しデータの復号を行なうデータ保
存方法およびシステム並びにデータ保存処理用記録媒体
に関するものである。
BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to a computer system including a computer that executes processing according to an application program and a storage device connected to the computer, and stores data processed by the application program in the storage device. BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to a data storage method and system for writing and storing data, and a data storage processing recording medium, and particularly to a computer when an application program operating on the computer requests data read / write from / to a storage device. A data storage method and system for obtaining an encryption key of a user operating an application program from a key management computer connected via a network, and encrypting write data and decrypting read data using the encryption key. Arm and to a data storage process for the recording medium.

【0002】[0002]

【従来の技術】従来、磁気ディスク装置等の記憶装置を
備えたコンピュータシステムにあっては、コンピュータ
内部で動作しているアプリケーションプログラムが処理
したデータは、そのまま記憶装置に保存されていた。こ
のため、記憶装置上に保存されているデータは、データ
作成に使ったコンピュータや、さらにこの記憶装置がネ
ットワークに接続している場合にはネットワーク上のコ
ンピュータから、盗み見たり書き換えたりすることがで
き、機密漏洩やデータ改変などの恐れがあった。
2. Description of the Related Art Conventionally, in a computer system provided with a storage device such as a magnetic disk device, data processed by an application program operating inside the computer is stored in the storage device as it is. Therefore, the data stored on the storage device can be viewed and rewritten by the computer used to create the data, or by a computer on the network when the storage device is connected to the network. , There was a risk of confidentiality leakage and data modification.

【0003】そこで、記憶装置を管理しているオペレー
ティングシステムに、記憶装置上に保存しているデータ
に対して、どのユーザがデータを読み出したり書き換え
たりして良いのかというアクセス制御機能を具備させ、
アクセスの権利を持たないユーザからのアクセスを許可
しない仕組みを講じたものがある。しかし、記憶装置に
対してはオペレーティングシステムを介さずに直接アク
セスすることもできるので、上記アクセス制御機能でも
データの盗み見や改変を完全に防ぐことはできなかっ
た。そのため、記憶装置に保存するデータを暗号化した
り、改変があったことを検知するための電子署名を付け
たりして、これらの不正行為を防ぐ対策を取ってきた。
Therefore, an operating system that manages a storage device is provided with an access control function of which user can read or rewrite data stored in the storage device,
There is a scheme that does not allow access from users who do not have access rights. However, since the storage device can be directly accessed without going through the operating system, the access control function cannot completely prevent snooping and alteration of data. Therefore, measures have been taken to prevent these fraudulent acts by encrypting the data stored in the storage device and attaching an electronic signature to detect that the data has been altered.

【0004】ところで、データを暗号化したり復号化し
たりする際には、データを8ビットや64ビットの基本
単位に区切ってから暗号化・復号化する。しかし、この
ままでは同じ内容の基本単位は同じ暗号文に暗号化され
てしまうので、暗号文解読の手がかりとなってしまう。
そのため、データ内のある位置の基本単位を暗号化する
際には、一つ前の位置のすでに暗号化されている基本単
位を使って何らかの処理(例えば、排他的論理和)をし
てから暗号化する。このような基本単位の連鎖処理を行
うと、解読の手がかりを消すことができる。なお、デー
タの先頭の基本単位を暗号化する際には、別に用意する
初期化データを使って連鎖処理をする。上記の暗号連鎖
処理については、例えば、「暗号とデータセキュリテ
ィ」(D.E.R.デニング著、上園忠弘他訳、培風館
発行)に述べてある。
When encrypting or decrypting data, the data is divided into basic units of 8 bits or 64 bits and then encrypted / decrypted. However, as it is, the basic unit of the same content is encrypted into the same ciphertext, which becomes a clue to decipher the ciphertext.
Therefore, when encrypting the basic unit at a certain position in the data, some processing (for example, exclusive OR) is performed using the already-encrypted basic unit at the previous position, and then the encryption is performed. Turn into. By performing the chain processing of such basic units, it is possible to eliminate the clue of the decoding. In addition, when encrypting the basic unit at the beginning of the data, a chaining process is performed using separately prepared initialization data. The above cipher chaining process is described in, for example, "Cipher and Data Security" (written by DER Denning, translated by Tadahiro Uezono et al., Published by Baifukan).

【0005】[0005]

【発明が解決しようとする課題】しかし、データを暗号
化して保存する際には、データを記憶装置上に一旦保存
してから、あるいは記憶装置に保存してあるデータをユ
ーザが明示的に指定して暗号化を行っていた。同様に、
暗号化データを復号する際にも、ユーザが明示的に復号
の指定をして元のデータに復号していた。このため、ユ
ーザがいちいちデータの暗号化・復号化の指示を行うこ
とになり、操作が煩わしいという問題があった。特に、
暗号化してあるデータを一度復号して修正してから再び
暗号化するというような操作を行う場合には、再暗号化
の操作を忘れる可能性があり、再暗号化の操作を忘れた
場合には記憶装置内のデータの盗み見や改変に対抗でき
ないという問題があった。したがって、データの暗号化
・復号化が必要な時に、必ずしもユーザによる直接の指
示がなくても、暗号化・復号化を行うことができる仕組
みが必要となっている。
However, when the data is encrypted and stored, the data is temporarily stored in the storage device or the user explicitly specifies the data stored in the storage device. I was doing encryption. Similarly,
Even when decrypting encrypted data, the user explicitly designated decryption to decrypt the original data. Therefore, the user has to issue an instruction for data encryption / decryption one by one, and there is a problem that the operation is troublesome. In particular,
If you perform operations such as decrypting encrypted data once, modifying it, and then encrypting it again, you may forget the re-encryption operation.If you forget the re-encryption operation, Had a problem that it could not counter the snooping and alteration of the data in the storage device. Therefore, when data encryption / decryption is required, there is a need for a mechanism capable of performing encryption / decryption without a direct instruction from the user.

【0006】一方、現在は携帯用の小型端末としてのコ
ンピュータが広く普及しており、どのような場所でも携
帯用コンピュータを操作してデータ処理を行うといった
状況が増えてきている。そのため、例えば会社内で機密
情報を携帯用コンピュータに付属した記憶装置に保存し
ておき、社外でもその情報にアクセスする、というよう
な状況も出てきている。しかし、このような携帯用コン
ピュータを置き忘れたり盗まれたりすると、機密漏洩の
恐れがある。そのため、データを暗号化して保存してお
けばすぐには元のデータを取り出すことはできない。し
かし、データを暗号化するために使った暗号鍵は、通
常、ユーザが入力するパスワードなどで暗号化し、暗号
化データと同じ記憶装置に保存されているので、パスワ
ードを類推されてしまえば、暗号鍵を取り出して暗号化
データを復号できてしまう。すなわち、暗号鍵が何らか
の形で暗号化されているとはいえ、暗号化データと暗号
鍵を同じ記憶装置に保存していることが、機密データを
保護する上で問題となっている。
On the other hand, nowadays, computers as portable small terminals are widely used, and the situation where data processing is performed by operating the portable computer at any place is increasing. Therefore, for example, there is a situation in which confidential information is stored in a storage device attached to a portable computer in a company and the information is accessed outside the company. However, if such a portable computer is misplaced or stolen, there is a risk of leakage of confidential information. Therefore, if the data is encrypted and stored, the original data cannot be retrieved immediately. However, the encryption key used to encrypt the data is usually encrypted with a password entered by the user and stored in the same storage device as the encrypted data. The key can be taken out and the encrypted data can be decrypted. That is, even though the encryption key is encrypted in some form, storing the encrypted data and the encryption key in the same storage device poses a problem in protecting confidential data.

【0007】本発明はこれらの問題点を解決するために
なされたものであり、その第1の目的は、ユーザによる
暗号化・復号化の直接の指示がなくても、アプリケーシ
ョンプログラムからのデータの書き出し要求があったな
らば、そのデータを自動的に暗号化して記憶装置に保存
し、データの読み込み要求があったら、記憶装置に保存
してある暗号化データを自動的に復号してアプリケーシ
ョンプログラムに渡すことにより、ユーザが煩わしい操
作を行なうことなく記憶装置内のデータの盗み見や改変
を防止することができ、しかもデータの暗号化・復号化
に必要な暗号鍵を、暗号化データを保存する記憶装置が
接続しているコンピュータとは異なる鍵管理コンピュー
タから取り寄せることにより、暗号化データをさらに強
固に保護することができるデータ保存方法およびシステ
ム並びに保存処理用記録媒体を提供することにある。
The present invention has been made to solve these problems, and a first object thereof is to save data from an application program without a direct instruction of encryption / decryption by a user. When a write request is made, the data is automatically encrypted and saved in the storage device, and when a data read request is made, the encrypted data saved in the storage device is automatically decrypted and the application program By passing it to the user, it is possible to prevent the data in the storage device from being intercepted and modified without any troublesome operation by the user, and the encrypted key necessary for encrypting / decrypting the data is stored in the encrypted data. Protecting encrypted data more strongly by retrieving from a key management computer different from the computer to which the storage device is connected To provide a data storage method and system, as well as preservation recording medium possible.

【0008】また、上記のようなアプリケーションプロ
グラムからの書き出し要求、読込み要求を受けて自動的
に暗号化・復号化する場合、次のような問題が生じる。
Further, in the case of automatically encrypting / decrypting in response to a write request and a read request from the application program as described above, the following problems occur.

【0009】アプリケーションプログラムはファイル内
の任意の位置からデータの読み書きを行う。自動的な暗
号化方法を行う際に暗号基本単位の連鎖処理を行ってい
ると、ファイル内のある位置でデータの上書きが起きた
時にその位置以降のすべての暗号基本単位を暗号化し直
す処理が必要となり、上書き処理終了までの時間が大き
くなってしまう。
The application program reads / writes data from an arbitrary position in the file. If a chain process of cipher basic units is performed when performing an automatic encryption method, when data is overwritten at a certain position in the file, the process of re-encrypting all the cipher basic units after that position will be performed. It becomes necessary and the time until the overwriting process ends becomes long.

【0010】このような再暗号化処理が必要となる部分
を少なくするため、ファイルを暗号基本単位より大きい
一定長のレコードで区切り、このレコードごとに上記初
期化データを用意する方式が考えられている。この方式
では、ファイル内のある位置でデータの上書きが起きた
場合、再暗号化処理を上書きのあったレコードの終端ま
でしか行わないようしている。このようにすることで、
再暗号化が必要となる部分を限定することができる。
In order to reduce the portion requiring such re-encryption processing, a method may be considered in which the file is separated by a record of a fixed length larger than the basic encryption unit and the initialization data is prepared for each record. There is. In this method, when data is overwritten at a certain position in the file, re-encryption processing is performed only up to the end of the overwritten record. By doing this,
The part that requires re-encryption can be limited.

【0011】しかし、ファイルを一定長のレコードに分
割することにより、データ上書きの際の再暗号化処理を
少なくすることはできるが、どの程度のレコード長が良
いかは簡単に決めることはできない。
However, by dividing the file into records of a fixed length, it is possible to reduce the re-encryption processing at the time of data overwriting, but it is not possible to easily determine how much the record length is good.

【0012】レコード長が長いと、アプリケーションプ
ログラムがデータを上書きする時に必要となる再暗号化
処理の長さが大きくなってしまう。
If the record length is long, the length of re-encryption processing required when the application program overwrites the data becomes large.

【0013】レコード長が短いと、アプリケーションプ
ログラムがデータを読み書きする際に複数のレコードに
またがってアクセスすることが多くなり、各レコードの
初期化データを準備する回数が増えてしまい、その処理
時間がかえってオーバヘッドになってしまう。
When the record length is short, the application program often accesses over a plurality of records when reading and writing data, and the initialization data of each record increases in number of times, resulting in processing time. Instead, it becomes an overhead.

【0014】また、アプリケーションプログラムごとに
読み書きする単位長が異なっているため、あるアプリケ
ーションプログラムにとって最適なレコード長が他のア
プリケーションプログラムにとっても最適とは限らな
い。
Further, since the unit lengths for reading and writing are different for each application program, the optimum record length for one application program is not necessarily optimum for other application programs.

【0015】本発明は上記問題点も解決するためになさ
れたものであり、その第2の目的は、アプリケーション
プログラムそれぞれについて、その読み書きする長さや
読み書きを開始する位置を記録しておき、この記録を用
いて、上書きの際の再暗号化処理や初期化データの準備
からなるオーバヘッド時間を最小化するレコードサイズ
を求めることにより、データ上書きの際の処理時間を短
くすることができるデータ保存方法およびシステム並び
に保存処理用記録媒体を提供することにある。
The present invention has been made to solve the above problems, and a second object thereof is to record the length of reading and writing and the position at which reading and writing are started for each application program, and this recording is performed. By using, to obtain the record size that minimizes the overhead time of re-encryption processing and preparation of initialization data at the time of overwriting, the data saving method that can shorten the processing time at the time of data overwriting and It is to provide a system and a recording medium for storage processing.

【0016】[0016]

【課題を解決するための手段】上記目的を達成するた
め、本発明のデータ保存方法は、アプリケーションプロ
グラムからオペレーティングシステムへ発行する記憶装
置へのデータ読み込み・書き出し要求を横取りし、書き
出し要求の際にはデータを暗号化するための暗号鍵をネ
ットワークで接続している鍵管理コンピュータから取り
寄せ、この暗号鍵でデータを暗号化して記憶装置に保存
し、また、読み込み要求の際には記憶装置から暗号化デ
ータを読み出し、この暗号化データを復号するための鍵
を鍵管理コンピュータから取り寄せ、この暗号鍵で暗号
化データを復号して取り出した元のデータをアプリケー
ションプログラムに渡すようにしたことを特徴とするも
のである。また、鍵管理コンピュータに対して暗号鍵を
送ってもらう要求を出す前に、アプリケーションプログ
ラムを操作しているユーザに対してそのユーザを識別す
るための情報を入力させ、この情報の正しさをユーザが
操作しているコンピュータ上で確認した後にユーザの鍵
を鍵管理コンピュータから取り寄せる、あるいはユーザ
が入力した識別情報を鍵管理コンピュータに送り、鍵管
理コンピュータでは受け取った識別情報の正しさを確認
した後にそのユーザの暗号鍵を送り返すことで、ユーザ
ごとの鍵管理を行うことを特徴とするものである。ま
た、予めユーザがファイル保存の際には自動的に暗号化
して欲しいファイルやディレクトリを指定することで、
指定したファイルあるいは指定したディレクトリ以下に
あるファイルだけに対して、暗号化や復号化を行うこと
を特徴とするものである。また、オペレーティングシス
テムがアプリケーションプログラムからのデータ読込み
・書込み要求を受け取ると、そのデータのファイル内で
の位置とデータ長を記録しておき、十分な数の記録を取
った後、アプリケーションプログラムごとに再暗号化処
理と初期化データ処理のオーバヘッドを最小化するレコ
ード長を計算し、以降の暗号化・復号化の際には計算で
求めたレコード長を用いることを特徴とするものであ
る。
In order to achieve the above object, the data storage method of the present invention intercepts a data read / write request to a storage device issued from an application program to an operating system, and when a write request is made, Obtains an encryption key for encrypting data from a key management computer connected to the network, encrypts the data with this encryption key and saves it in a storage device, and when a read request is made, it is encrypted from the storage device. It is characterized in that the encrypted data is read out, the key for decrypting the encrypted data is obtained from the key management computer, and the original data obtained by decrypting the encrypted data with this encryption key is passed to the application program. To do. Before issuing a request to the key management computer to send the encryption key, the user operating the application program is prompted to enter information for identifying the user, and the correctness of this information is checked by the user. After confirming on the computer where is operated, the user's key is sent from the key management computer, or the identification information entered by the user is sent to the key management computer, and the key management computer confirms the correctness of the received identification information. The feature is that the key management for each user is performed by sending back the encryption key of the user. Also, by specifying the file or directory that the user wants to automatically encrypt when saving the file in advance,
The feature is that encryption or decryption is performed only for a specified file or a file under a specified directory. When the operating system receives a data read / write request from an application program, it records the position of the data in the file and the data length, and after recording a sufficient number of data, rewrites each application program. The feature is that the record length that minimizes the overhead of the encryption process and the initialization data process is calculated, and the calculated record length is used in the subsequent encryption / decryption.

【0017】このような手段により、暗号化や復号化の
指示をユーザが明示的に行うことなしに記憶装置に保存
するデータを自動的に暗号化し、読み出す時には自動的
に復号することができ、わずらわしい操作をユーザに強
いることがない。また、記憶装置に保存するデータを自
動的に保存するので、ユーザがデータの暗号化を忘れる
という問題も起きない。また、暗号化して保存する場所
としてフロッピーディスクのような記憶媒体を表わすデ
ィレクトリも指定できるので、重要な情報をコピーされ
て持ち出されることを防ぐこともできる。また、暗号化
したデータと暗号鍵が物理的に離れた記憶装置に保存さ
れることにより、暗号化した機密データを保存してある
携帯端末が盗まれたとしても、解読される危険性はこれ
らのデータが同一の記憶装置に保存されている場合に比
べて小さくなる。例えば、携帯端末に暗号化データを保
存しておき、社内でそのデータにアクセスしたい時は社
内LANに接続し、社外からは社内ネットワークへリモ
ートアクセスして利用するようにしておけば、この携帯
端末を不正に入手したユーザは、ユーザの識別情報を類
推するだけでなく、リモートアクセス時のユーザ認証作
業も行う必要があるので安全性がより高くなる。また、
アプリケーションプログラムごとに、1回の上書き要求
における再暗号化の長さ、および初期化データの生成処
理からなるオーバヘッドを最小にするレコード長を求め
ることができるので、データ上書きの際の処理時間をそ
れぞれのアプリケーションプログラムごとに高速化でき
る。
By such means, the data stored in the storage device can be automatically encrypted and decrypted automatically when the data is read, without the user explicitly instructing the encryption or decryption. Users are not forced to perform troublesome operations. Further, since the data to be stored in the storage device is automatically stored, the problem that the user forgets to encrypt the data does not occur. Further, since a directory representing a storage medium such as a floppy disk can be designated as the encrypted storage location, important information can be prevented from being copied and taken out. In addition, since the encrypted data and the encryption key are stored in a storage device that is physically separate from each other, even if the portable terminal that stores the encrypted confidential data is stolen, the risk of decryption is reduced. Is smaller than that when the data is stored in the same storage device. For example, if you store encrypted data in a mobile terminal, connect to the in-house LAN when you want to access the data in-house, and access the in-house network remotely from outside, use this mobile terminal. A user who illegally obtains is required to perform not only analogy of user identification information but also user authentication work at the time of remote access, so that the security is further enhanced. Also,
For each application program, the length of re-encryption in one overwrite request and the record length that minimizes the overhead of the initialization data generation process can be calculated, so the processing time for data overwrite can be calculated. The speed can be increased for each application program.

【0018】また、アプリケーションからオペレーティ
ングシステムへのデータ読み出し・書き込み要求を横取
りするための仕組みは、オペレーティングシステムが提
供している場合には、既存のアプリケーションプログラ
ムやオペレーティングシステムを書き換える必要がな
く、しかも新たにハードウェアを置き換える必要もな
く、最小限のコストでデータのセキュリティを高めるこ
とが可能である。
Further, the mechanism for intercepting the data read / write request from the application to the operating system does not require rewriting the existing application program or operating system when the operating system provides, It is possible to increase the security of data at a minimum cost without having to replace the hardware.

【0019】[0019]

【発明の実施の形態】以下、本発明の実施形態に基づき
詳細に説明する。図1は、本発明の実施形態を示すシス
テム構成図である。本実施形態は、ユーザが端末上で動
作しているアプリケーションプログラムで作成したデー
タを、鍵管理サーバ(鍵管理コンピュータ)から取り寄
せる自分の鍵で暗号化して端末に接続の記憶装置に保存
する場合と、記憶装置から読み出した暗号化データを鍵
管理サーバから取り寄せる自分の鍵で復号化して平文の
データをアプリケーションに渡す場合のものである。
BEST MODE FOR CARRYING OUT THE INVENTION Hereinafter, a detailed description will be given based on an embodiment of the present invention. FIG. 1 is a system configuration diagram showing an embodiment of the present invention. In the present embodiment, a case where data created by a user with an application program running on a terminal is encrypted with his / her own key received from a key management server (key management computer) and stored in a storage device connected to the terminal In this case, the encrypted data read out from the storage device is decrypted with its own key sent from the key management server and the plaintext data is passed to the application.

【0020】図1に示すシステムは、大別すると、ユー
ザ123が操作する端末101と、この端末101に接
続された記憶装置111と、データの暗号化のための鍵
を管理する鍵管理サーバ(鍵管理コンピュータ)112
と、暗号化のための鍵を格納した鍵データベース121
と、端末101と鍵管理サーバ112とを接続するネッ
トワーク122とから構成されている。
The system shown in FIG. 1 is roughly classified into a terminal 101 operated by a user 123, a storage device 111 connected to this terminal 101, and a key management server (key management server for managing keys for data encryption). Key management computer) 112
And a key database 121 storing keys for encryption.
And a network 122 connecting the terminal 101 and the key management server 112.

【0021】端末101は、据置き型あるいは携帯用の
コンピュータで構成されるものであり、その内部には、
ユーザ入力部102、パスワード暗号鍵生成部103、
ファイル暗号鍵生成部104、暗号鍵・復号化部10
5、アプリケーションプログラム106、ファイルアク
セスフック部107、オペレーティングシステム10
8、記憶装置用インタフェース109、通信用インタフ
ェース110、レコードサイズ記憶部124、アクセス
情報記憶部125を備え、ユーザ123はアプリケーシ
ョンプログラム106で作成したデータファイルを記憶
装置111に保存したり、読み出したりすることができ
る。
The terminal 101 is composed of a stationary or portable computer, and inside thereof,
User input unit 102, password encryption key generation unit 103,
File encryption key generation unit 104, encryption key / decryption unit 10
5, application program 106, file access hook unit 107, operating system 10
8, a storage device interface 109, a communication interface 110, a record size storage unit 124, and an access information storage unit 125, and the user 123 saves or reads the data file created by the application program 106 in the storage device 111. be able to.

【0022】ユーザ入力部102は、ファイルアクセス
フック部107からの指示によって、ユーザ123にユ
ーザ名とパスワードを入力させるためのものである。パ
スワード暗号鍵生成部103は、ユーザ123が入力し
たパスワードから暗号鍵を生成するためのものである。
パスワード暗号鍵は、ユーザ123の認証情報やシステ
ム全体で使う暗号鍵を暗号化して記憶装置111に保存
するものである。ファイル暗号鍵生成部104は、記憶
装置111に保存するファイルの暗号化に使う暗号鍵を
ランダムに生成するものである。暗号化・復号化部10
5は、ファイルを実際に暗号化・復号化するものであ
る。ユーザ123がデータファイルを作成するためのア
プリケーションプログラム106は、ワープロや表計算
などのソフトである。
The user input unit 102 is for allowing the user 123 to input a user name and a password according to an instruction from the file access hook unit 107. The password encryption key generation unit 103 is for generating an encryption key from the password input by the user 123.
The password encryption key is used to encrypt the authentication information of the user 123 and the encryption key used in the entire system and store the encrypted encryption key in the storage device 111. The file encryption key generation unit 104 randomly generates an encryption key used to encrypt a file stored in the storage device 111. Encryption / decryption unit 10
Reference numeral 5 is for actually encrypting / decrypting a file. The application program 106 for the user 123 to create a data file is software such as a word processor or a spreadsheet.

【0023】ファイルアクセスフック部107は、アプ
リケーションプログラム106から記憶装置111への
ファイルアクセス要求を横取りする処理と、鍵管理サー
バ112からユーザ鍵を取り寄せるなど、端末101で
のファイルの暗号・復号処理全般を管理するものであ
る。端末101上で動作しているオペレーティングシス
テム108は、記憶装置用インタフェース109、通信
用インタフェース110、レコードサイズ記憶部12
4、アクセス情報記憶部125を管理して、記憶装置1
11へのアクセスや、ネットワーク122を介した通信
などの動作環境をアプリケーションプログラム106や
ファイルアクセスフック部107に提供している。
The file access hook unit 107 generally handles file interception of a file access request from the application program 106 to the storage device 111 and requesting a user key from the key management server 112. Is to manage. The operating system 108 operating on the terminal 101 includes a storage device interface 109, a communication interface 110, and a record size storage unit 12.
4. The storage device 1 manages the access information storage unit 125.
11 provides the application program 106 and the file access hook unit 107 with operating environments such as access to the network 11 and communication via the network 122.

【0024】レコードサイズ記憶部124は、アプリケ
ーションプログラムごとの暗号化・復号化する際のレコ
ードサイズを記憶するために使う。
The record size storage unit 124 is used to store the record size at the time of encryption / decryption for each application program.

【0025】アクセス情報記憶部125は、アプリケー
ションプログラムごとに、ファイル内で読み出しや書き
込みを開始した位置と読み出し・書き込みデータの長さ
を複数保存しておくためのもので、暗号化・復号化する
際のレコードサイズを計算するために使う。
The access information storage unit 125 is for storing a plurality of read / write start positions in the file and a plurality of read / write data lengths for each application program, and performs encryption / decryption. Used to calculate the record size at the time.

【0026】なお、記憶装置111には、ユーザ123
が作成したファイルだけでなく、ユーザ123がパスワ
ードを入力した際の確認に使う認証トークンやシステム
がデータの暗号化に使うシステム鍵も暗号化して保存し
てある。
The storage device 111 has a user 123.
In addition to the file created by, the authentication token used for confirmation when the user 123 inputs the password and the system key used for encrypting the data by the system are encrypted and stored.

【0027】一方、鍵管理サーバ112は、鍵管理アプ
リケーションプログラム113、ユーザ入力部114、
パスワード暗号鍵生成部115、ユーザ鍵生成部11
6、暗号化・復号化部117、オペレーティングシステ
ム118、通信用インタフェース119、記憶装置用イ
ンタフェース120を備えており、端末101のユーザ
123が本システムを使うための情報を生成したり、ユ
ーザ鍵を管理する機能を担っている。
On the other hand, the key management server 112 includes a key management application program 113, a user input section 114,
Password encryption key generation unit 115, user key generation unit 11
6, an encryption / decryption unit 117, an operating system 118, a communication interface 119, and a storage device interface 120 are provided, and a user 123 of the terminal 101 generates information for using the present system and a user key. Has the function of managing.

【0028】鍵管理アプリケーションプログラム113
は、ユーザ123に配布する情報の生成や、端末101
からのユーザ鍵要求メッセージの処理など、鍵管理サー
バ112での暗号処理全般を管理している。ユーザ入力
部114は、最初にユーザ123がユーザ鍵を生成する
際に、鍵管理アプリケーションプログラム113からの
指示によって、ユーザ123にユーザ名とパスワードを
入力させるためのものである。パスワード暗号鍵生成部
115は、ユーザ123が入力したパスワードから暗号
鍵を生成するためのものである。ユーザ鍵生成部116
は、ユーザ123用の暗号鍵をランダムに生成するため
のものである。暗号化・復号化部117は、ユーザ12
3に配布する情報を暗号化したり、ユーザ123がユー
ザ鍵を要求してきた時にやり取りする電子メッセージを
暗号化あるいは復号化したりするためのものである。
Key management application program 113
Generates information to be distributed to the user 123 and the terminal 101.
Manages the entire cryptographic processing in the key management server 112, such as the processing of the user key request message from. The user input unit 114 is for causing the user 123 to input a user name and password according to an instruction from the key management application program 113 when the user 123 first generates a user key. The password encryption key generation unit 115 is for generating an encryption key from the password input by the user 123. User key generation unit 116
Is for randomly generating an encryption key for the user 123. The encryption / decryption unit 117 is used by the user 12
3 for encrypting the information to be distributed to 3 and for encrypting or decrypting the electronic message exchanged when the user 123 requests the user key.

【0029】鍵管理サーバ112上で動作するオペレー
ティングシステム118は、通信用インタフェース11
9、記憶装置用インタフェース120を管理し、ネット
ワーク122を使った通信や鍵データベース121への
アクセスなどの環境を、鍵管理アプリケーションプログ
ラム113に提供している。
The operating system 118 operating on the key management server 112 is the communication interface 11
9. The storage device interface 120 is managed, and an environment such as communication using the network 122 and access to the key database 121 is provided to the key management application program 113.

【0030】鍵データベース121には、端末101と
鍵管理サーバ112とがネットワーク122を使ってや
りとりする通信データを暗号化するためのシステム鍵
と、ユーザ123の鍵情報レコードが保存してあり、こ
の鍵情報レコードは、図2に示すように、ユーザ名20
1とユーザ鍵202とから構成されている。
The key database 121 stores a system key for encrypting communication data exchanged between the terminal 101 and the key management server 112 using the network 122, and a key information record of the user 123. The key information record is, as shown in FIG.
1 and a user key 202.

【0031】(ユーザ配布情報の作成)図3は、本シス
テムを使用するためにユーザ123へ配るデータを鍵管
理サーバ112上で作成する手順を示すフローチャート
である。まず、ユーザ入力部114からユーザ名とパス
ワードを入力させる(ステップ301)。次に、パスワ
ード暗号鍵生成部115で、ユーザ123のパスワード
に処理を加えてパスワード暗号鍵を生成する。処理方法
としては、例えば、MD5アルゴリズムのような一方向
関数を用いる(ステップ302)。続いて、ユーザ鍵生
成部116において、ユーザ鍵をランダムに生成する
(ステップ303)。ここで得られたユーザ鍵とユーザ
名から、図2に示すような鍵情報レコードを作成し、鍵
データベース121に保存する(ステップ304)。な
お、図2はユーザ名が「A」であるユーザAの鍵情報レ
コードの例である。
(Creation of User Distribution Information) FIG. 3 is a flowchart showing a procedure for creating data to be distributed to the user 123 on the key management server 112 in order to use this system. First, a user name and password are input from the user input unit 114 (step 301). Next, the password encryption key generation unit 115 processes the password of the user 123 to generate a password encryption key. As the processing method, for example, a one-way function such as the MD5 algorithm is used (step 302). Then, the user key generation unit 116 randomly generates a user key (step 303). From the user key and user name obtained here, a key information record as shown in FIG. 2 is created and stored in the key database 121 (step 304). Note that FIG. 2 is an example of the key information record of the user A whose user name is “A”.

【0032】次に、ユーザ123が入力したパスワード
の正しさを検証するための認証トークンを作成する(ス
テップ305)。これは、ユーザが入力したパスワード
をそのままデータとして保存しておくことはセキュリテ
ィ上危険であるため、暗号処理を利用して保存してい
る。例えばUNIXでは、「オール0」のデータをユー
ザ123のパスワードを鍵として暗号化して保存してお
き、後でユーザ123がパスワードを入力した際に同じ
処理をして認証作業を行っている。本実施形態では、す
べて「0」の6バイトデータをパスワード暗号鍵で暗号
化して図4のような認証トークンを生成する。図4にお
いて、401は、この認証トークンの所有者を示すユー
ザ名(ここではユーザA)で、402は暗号処理を行っ
た後のデータ値である。
Next, an authentication token for verifying the correctness of the password entered by the user 123 is created (step 305). This is because the password input by the user is stored as data as it is because it is dangerous in terms of security, so the password is stored using cryptographic processing. In UNIX, for example, the data of "all 0" is encrypted and stored with the password of the user 123 as a key, and the same process is performed when the user 123 inputs the password later to perform the authentication work. In the present embodiment, all 6-byte data of "0" is encrypted with the password encryption key to generate the authentication token as shown in FIG. In FIG. 4, 401 is a user name (here, user A) indicating the owner of this authentication token, and 402 is a data value after encryption processing.

【0033】続いて、本システムでネットワーク122
上を流れるデータを暗号化するために使うシステム鍵
を、やはりパスワード暗号鍵で暗号化する(ステップ3
06)。パスワード暗号鍵を使うことで、ユーザ123
のパスワードを知っている者だけが、正しいシステム鍵
を手に入れることができる。なお、システム鍵は、鍵管
理サーバ112においてシステムの運用開始時に作成し
ておく。最後に、認証トークンと暗号化したシステム鍵
とをフロッピーディスクなどにコピーしてユーザ123
に渡す(ステップ307)。ユーザ123は受け取った
情報を、自分が操作する端末101に接続してある記憶
装置111にコピーして使用することになる。
Next, in this system, the network 122
The system key used to encrypt the data flowing above is also encrypted with the password encryption key (step 3).
06). By using the password encryption key, the user 123
Only someone who knows the password can get the correct system key. The system key is created in the key management server 112 at the start of system operation. Finally, the authentication token and the encrypted system key are copied to a floppy disk or the like, and the user 123
(Step 307). The user 123 copies the received information to the storage device 111 connected to the terminal 101 operated by the user 123 and uses it.

【0034】(ファイルの暗号化)図5は、ユーザ12
3(ここではユーザA)が端末101上で作成したデー
タを暗号化して記憶装置111に保存する際の手順を示
すフローチャートである。本手順は、ユーザAがアプリ
ケーションプログラム106で作成したデータを記憶装
置111に保存しようとした時に開始する。まず、アプ
リケーションプログラム106がオペレーティングシス
テム108へのファイル保存要求を発行すると、オペレ
ーティングシステム108がその要求を処理する前に、
そのファイル保存要求をファイルアクセスフック部10
7が受け取る(ステップ501)。
(File Encryption) FIG.
3 is a flowchart showing a procedure for encrypting data created on the terminal 101 by the user 3 (here, user A) and storing the encrypted data in the storage device 111. This procedure starts when the user A tries to save the data created by the application program 106 in the storage device 111. First, when the application program 106 issues a file save request to the operating system 108, before the operating system 108 processes the request,
The file saving request is sent to the file access hook unit 10
7 receives (step 501).

【0035】続いて保存要求があったファイルを暗号化
して保存するために、以下のようにして管理サーバ11
2からユーザ鍵を取り寄せる。まず、アプリケーション
プログラム106を操作していたユーザAのユーザ名と
パスワードをユーザ入力部102からユーザAに入力さ
せる(ステップ502)。次に、入力されたパスワード
からパスワード暗号鍵生成部103でパスワード暗号鍵
を生成する(ステップ503)。
Subsequently, in order to encrypt and save the file requested to be saved, the management server 11 operates as follows.
Get the user key from 2. First, the user name and password of the user A who was operating the application program 106 is input to the user A from the user input unit 102 (step 502) . Next, the password encryption key generation unit 103 generates a password encryption key from the input password (step 503).

【0036】端末101は、入力されたパスワードが正
しいかどうか確かめるため、管理サーバ112での認証
トークンの生成と同じ処理を行い、記憶装置111から
読み出した認証トークンと一致するかどうか検証する
(ステップ504)。一致しなれば、ユーザ名とパスワ
ードの入力を繰り返させる。一致した場合は、次の手順
に進む。
The terminal 101 performs the same processing as the generation of the authentication token in the management server 112 to verify whether the input password is correct, and verifies whether it matches the authentication token read from the storage device 111 (step 504). If they do not match, the user name and password are repeated. If they match, proceed to the next step.

【0037】次に、記憶装置111から暗号化してある
システム鍵を読み出し、パスワード暗号鍵を使ってシス
テム鍵を復号する(ステップ505,506)。なお、
記憶装置111から読み出した認証トークンと暗号化シ
ステム鍵は、前もって鍵管理サーバ112において生成
しておいたものである。
Next, the encrypted system key is read from the storage device 111, and the system key is decrypted using the password encryption key (steps 505 and 506). In addition,
The authentication token and the encrypted system key read from the storage device 111 are generated in the key management server 112 in advance.

【0038】次に、鍵管理サーバ112とメッセージの
交換を行い、ユーザ鍵を取り寄せる。なお、端末101
と鍵管理サーバ112の間で交換するメッセージのフォ
ーマットは、図6に示すようなものである。図6におい
て、601は、メッセージの区別をするためのヘッダ部
であり、「0」であれば端末101から鍵管理サーバ1
12へユーザ鍵を要求するユーザ鍵要求メッセージであ
ることを示し、「1」であれば鍵管理サーバ112から
の返答であることを示すユーザ鍵返答メッセージであ
る。602は、メッセージ中に含まれるデータ本体であ
り、メッセージの種類により内容は異なる。603は、
システム鍵を使ったヘッダ部601とデータ部602の
電子署名である。
Next, a message is exchanged with the key management server 112 and the user key is obtained. Note that the terminal 101
The format of the message exchanged between the key management server 112 and the key management server 112 is as shown in FIG. In FIG. 6, reference numeral 601 denotes a header portion for distinguishing messages, and if it is “0”, the terminal 101 indicates the key management server 1
12 is a user key request message requesting a user key, and "1" is a user key reply message indicating a reply from the key management server 112. Reference numeral 602 denotes a data body included in the message, the content of which differs depending on the type of the message. 603 is
It is an electronic signature of the header part 601 and the data part 602 using the system key.

【0039】鍵管理サーバ112からユーザ鍵を取り寄
せるため、端末101ではユーザ鍵要求メッセージを作
成する(ステップ507)。端末101から鍵管理サー
バ112へ送る情報は、ユーザ名とチャレンジデータで
ある。チャレンジデータとは、ユーザ鍵要求メッセージ
を作成するたびにランダムに選ぶ整数で、鍵管理サーバ
112が事前に決めた処理(例えば1を加える)をした
レスポンスデータをユーザ鍵返答メッセージに含める決
まりにしておくことで、ユーザは受け取った返答メッセ
ージが、直前に出した要求メッセージに対する返答であ
ることを確認できる。まず、図7に示すようなユーザ名
701とチャレンジデータ702からなるデータを構成
し、システム鍵で暗号化する。次に図8のように、ヘッ
ダ部801にメッセージがユーザ鍵要求メッセージであ
ることを示す値「0」と、データ部802にユーザ名と
チャレンジデータを暗号化した情報からなるデータの電
子署名803とから構成されたユーザ鍵要求メッセージ
を生成する。そして生成したユーザ鍵要求メッセージを
鍵管理サーバ112に送り、返答メッセージが送り返さ
れるのを待つ。この後、鍵管理サーバ112はユーザ鍵
要求メッセージを処理し、ユーザ鍵返答メッセージを作
成して端末101に送り返してくるが(ステップ50
8)、この手順の詳細は図13を用いて後述する。
In order to obtain the user key from the key management server 112, the terminal 101 creates a user key request message (step 507). The information sent from the terminal 101 to the key management server 112 is a user name and challenge data. The challenge data is an integer that is randomly selected each time a user key request message is created. It is a rule that response data that has been subjected to a predetermined process (for example, 1 is added) by the key management server 112 is included in the user key reply message. By setting, the user can confirm that the reply message received is a reply to the request message issued immediately before. First, data including a user name 701 and challenge data 702 as shown in FIG. 7 is configured and encrypted with a system key. Next, as shown in FIG. 8, the header part 801 has a value "0" indicating that the message is a user key request message, and the data part 802 has a digital signature 803 of data including information obtained by encrypting the user name and challenge data. A user key request message composed of and is generated. Then, the generated user key request message is sent to the key management server 112, and a reply message is waited for. After that, the key management server 112 processes the user key request message, creates a user key reply message, and sends it back to the terminal 101 (step 50).
8) The details of this procedure will be described later with reference to FIG.

【0040】端末101では、送り返されてきたユーザ
鍵返答メッセージを受け取ると(ステップ509)、ま
ず、転送途中での改変がなかったか、返答メッセージに
含まれている電子署名を検査する(ステップ510)。
ここでメッセージの改変があったことが分かると、ファ
イルの保存命令を出したアプリケーションプログラム1
06に保存の失敗を知らせ終了する(ステップ52
1)。改変がない場合には次の手順に進む。ユーザ鍵返
答メッセージのデータ部はシステム鍵で暗号化されてい
るので、システム鍵で復号する(ステップ511)。
When the terminal 101 receives the returned user key reply message (step 509), first, the electronic signature included in the reply message is checked to see if there was any alteration during the transfer (step 510). .
If it is found that the message has been modified, the application program 1 that issued the file save command
06 is notified of the storage failure, and the process ends (step 52).
1). If there is no modification, proceed to the next step. Since the data part of the user key response message is encrypted with the system key, it is decrypted with the system key (step 511).

【0041】ところで、ユーザ鍵返答メッセージには、
ユーザ鍵を含むものと、鍵管理サーバ112で何らかの
エラーが発生したためにユーザ鍵を含まないものの2種
類があり、返答メッセージのデータ部の内容が異なって
いる。このデータ部の暗号化される前の内容は図9ある
いは図10のようになっている。図9は、ユーザ鍵が返
されてきた場合の内容であり、ユーザ名901、レスポ
ンスデータ902、ユーザ鍵が含まれていることを示す
値「0」903、ユーザ鍵904を含んでいる。図10
は、何らかのエラーによりユーザ鍵が返されなかった場
合の内容で、ユーザ名1001、レスポンスデータ10
02、何らかのエラーが発生したことを示す値「1」1
003を含んでいる。ここで1003には、エラーの具
体的な種類を示すために「0」以外のどんな値を含めて
もよい。なお、ユーザ鍵返答メッセージに含めるレスポ
ンスデータは、ユーザ鍵要求メッセージに含まれていた
チャレンジデータの値に「1」を加えたものとする。
By the way, in the user key reply message,
There are two types, one containing a user key and one not containing a user key because some error occurred in the key management server 112, and the contents of the data part of the reply message are different. The contents of the data part before being encrypted are as shown in FIG. 9 or FIG. FIG. 9 shows the contents when the user key is returned, and includes a user name 901, response data 902, a value “0” 903 indicating that the user key is included, and a user key 904. Figure 10
Is the content when the user key is not returned due to some error. The user name 1001 and the response data 10
02, the value "1" indicating that some error occurred 1
003 is included. Here, 1003 may include any value other than “0” to indicate a specific type of error. The response data included in the user key response message is assumed to be the value of the challenge data included in the user key request message plus "1".

【0042】端末101は、ユーザ鍵返答メッセージの
データ部を復号した後、ユーザ鍵の有無を検査する(ス
テップ512)。ユーザ鍵を含んでいない場合は、ファ
イルを暗号化して保存することができないので、保存の
失敗をアプリケーションプログラム106に知らせて
(ステップ521)終了する。ユーザ鍵が含まれていた
場合には、実際にファイルを暗号化する手順に進む。
After decrypting the data part of the user key response message, the terminal 101 inspects the presence or absence of the user key (step 512). If the file does not include the user key, the file cannot be encrypted and saved, so the application program 106 is notified of the failure in saving (step 521) and the process ends. If the user key is included, the procedure actually proceeds to encrypt the file.

【0043】ここで新規ファイルへの書き込みであれ
ば、ファイル暗号鍵とファイル初期化データをランダム
に生成する(ステップ519)。そしてファイル暗号鍵
をユーザ鍵で暗号化した後、暗号化したファイル暗号鍵
とファイル初期化データを新規ファイルのヘッダとして
保存して(ステップ520)、次の手順に進む。ファイ
ル暗号鍵は、ファイルを分割したレコードごとに用意す
る暗号鍵を生成するために使う。ファイル初期化データ
は、レコードごとの初期化データを生成するために使
う。
If writing to a new file, a file encryption key and file initialization data are randomly generated (step 519). Then, after encrypting the file encryption key with the user key, the encrypted file encryption key and the file initialization data are saved as the header of the new file (step 520), and the process proceeds to the next step. The file encryption key is used to generate an encryption key prepared for each record obtained by dividing a file. File initialization data is used to generate initialization data for each record.

【0044】もし既存ファイルへの書き込みであれば、
書き込み対象のファイルのヘッダから暗号化されたファ
イル暗号鍵とファイル初期化データを読み込む(ステッ
プ514)。そして、暗号化されたファイル暗号鍵をユ
ーザ鍵で復号化してファイル暗号鍵を得る(ステップ5
15)。次に、書き込み要求のあったデータを暗号化す
る(ステップ516)。なお、暗号化の手順の詳細は図
14で説明する。
If writing to an existing file,
The encrypted file encryption key and file initialization data are read from the header of the file to be written (step 514). Then, the encrypted file encryption key is decrypted with the user key to obtain the file encryption key (step 5).
15). Next, the data requested to be written is encrypted (step 516). Details of the encryption procedure will be described with reference to FIG.

【0045】上記のようにして得た暗号化されたデータ
は、アプリケーションプログラム106の書き込み要求
に対応した暗号化ファイル内の位置に書き込む。そし
て、暗号化されたファイル暗号鍵を1101、ファイル
初期化データを1102、暗号化されたファイル本体を
1103とし、ユーザ鍵を使ってこれらの署名を生成し
たものを1104として図11に示すような暗号化ファ
イル1100を作成し、記憶装置111に保存する。従
って、記憶装置111には、アプリケーションプログラ
ム106が生成したファイルを暗号化した暗号化ファイ
ル本体1103に対し、ファイル暗号鍵を暗号化したデ
ータ1101、ファイル初期化データ1102と署名1
104が付加されて記憶されることになる。
The encrypted data obtained as described above is written in a position in the encrypted file corresponding to the write request of the application program 106. Then, the encrypted file encryption key is 1101, the file initialization data is 1102, the encrypted file body is 1103, and the signature generated using the user key is 1104 as shown in FIG. The encrypted file 1100 is created and stored in the storage device 111. Therefore, in the storage device 111, the encrypted file body 1103 obtained by encrypting the file generated by the application program 106, the data 1101 obtained by encrypting the file encryption key, the file initialization data 1102, and the signature 1
104 will be added and stored.

【0046】最後に、保存の終了をファイルの保存要求
を出したアプリケーションプログラム106に知らせ
(ステップ518)、本手順を終了する。
Finally, the end of saving is notified to the application program 106 that issued the file saving request (step 518), and this procedure is ended.

【0047】(ファイルの復号化)図12は、ユーザA
が記憶装置111に保存してある暗号化データを端末1
01上で動作するアプリケーションプログラム106で
読み出す際の手順を示すフローチャートである。本手順
は、ユーザAが以前に暗号化して記憶装置111に保存
したデータをアプリケーションプログラム106に読み
込もうとした時に開始する。アプリケーションプログラ
ム106がオペレーティングシステム108へのファイ
ル読み出し要求を発行すると、オペレーティングシステ
ム108がその要求を処理する前に、そのファイル読み
出し要求ファイルアクセスフック部107が受け取る
(ステップ1201)。ファイルアクセスフック部10
7は、読み出し要求で指定されたファイルを読み出すよ
うにオペレーティングシステム108に指示し、記憶装
置111から記憶装置用インタフェース109を介し
て、暗号化されているファイルを読み出す(ステップ1
202)。
(Decryption of File) FIG.
Encrypted data stored in the storage device 111 by the terminal 1
12 is a flowchart showing a procedure for reading by the application program 106 operating on 01. This procedure starts when the user A tries to read the data previously encrypted and stored in the storage device 111 into the application program 106. When the application program 106 issues a file read request to the operating system 108, the file read request file access hook unit 107 receives the file read request before the operating system 108 processes the request (step 1201). File access hook unit 10
7 instructs the operating system 108 to read the file specified by the read request, and reads the encrypted file from the storage device 111 via the storage device interface 109 (step 1
202).

【0048】次に、読み込んだファイルを復号するため
に、ファイルを暗号化する際と同様の手順でユーザの認
証を行い、鍵管理サーバ112からユーザ鍵を取り寄せ
る。このユーザ鍵を取り寄せるまでの手順に相当するス
テップ1203〜1213は、図5のステップ502〜
512と全く同様である。この際に、鍵管理サーバ11
2からのユーザ鍵返答メッセージの改変を検知したり
(ステップ1211)、あるいはユーザ鍵を得ることが
できなかった場合には(ステップ1213)、読み込ん
だファイルを復号することができないので、読み出しの
失敗をアプリケーションプログラム106に知らせて
(ステップ1219)本手順を終了する(ステップ12
18)。ユーザ鍵を得ることができた場合のみ、以下の
ようにして暗号化したファイルを復号する。ここで読み
込み対象のファイルは図11に示すようなフォーマット
であり、1101はファイル暗号鍵をユーザ鍵で暗号化
したもの、1102はファイル初期化データ、1103
は暗号化されたファイル本体、1104はこれら3つの
データ1101〜1103のユーザ鍵による電子署名で
ある。
Next, in order to decrypt the read file, the user authentication is performed by the same procedure as when encrypting the file, and the user key is obtained from the key management server 112. Steps 1203 to 1213 corresponding to the procedure for obtaining the user key are steps 502 to 502 in FIG.
It is exactly the same as 512. At this time, the key management server 11
If the alteration of the user key reply message from 2 is detected (step 1211), or if the user key cannot be obtained (step 1213), the read file cannot be decrypted, so the reading fails. Is notified to the application program 106 (step 1219) and this procedure is ended (step 12).
18). Only when the user key can be obtained, the encrypted file is decrypted as follows. Here, the file to be read has a format as shown in FIG. 11, 1101 is a file encryption key encrypted with a user key, 1102 is file initialization data, 1103
Is an encrypted file body, and 1104 is an electronic signature by a user key of these three data 1101 to 1103.

【0049】図12において、ユーザ鍵が含まれていた
場合、暗号化ファイルが改変されていないか、署名11
04の確認を行なう(ステップ1214)。ここで改変
されていることがわかったら、ファイル読み出しの失敗
をアプリケーションプログラム106に通知して(ステ
ップ1219)本手順を終了する。
In FIG. 12, when the user key is included, whether the encrypted file has not been modified or the signature 11
04 is confirmed (step 1214). If it is found that the file has been modified, the file read failure is notified to the application program 106 (step 1219), and this procedure ends.

【0050】改変されていなければ、まず暗号化ファイ
ルから暗号化されたファイル暗号鍵1101とファイル
初期化データ1102を読み込む(ステップ121
5)。
If the file has not been modified, the encrypted file encryption key 1101 and the file initialization data 1102 are read from the encrypted file (step 121).
5).

【0051】次に、鍵管理サーバ112から得たユーザ
鍵を使い、暗号化ファイル暗号鍵1101を復号し、元
のファイル暗号鍵を得る(ステップ1216)。
Next, the encrypted file encryption key 1101 is decrypted using the user key obtained from the key management server 112 to obtain the original file encryption key (step 1216).

【0052】続いて、暗号化されているファイル本体1
103からアプリケーションプログラム106の要求に
対応した暗号化データを読み込み、復号して得たファイ
ル暗号鍵を使って復号する(ステップ1217)。な
お、復号の手順の詳細は図19で説明する。
Next, the encrypted file body 1
The encrypted data corresponding to the request of the application program 106 is read from 103 and decrypted using the file encryption key obtained by decryption (step 1217) . Details of the decoding procedure will be described with reference to FIG.

【0053】最後に、復号して得たデータをアプリケー
ションプログラム106に渡して(ステップ1218)
本手順を終了する。
Finally, the decrypted data is passed to the application program 106 (step 1218).
This procedure ends.

【0054】(鍵管理アプリケーションプログラムの処
理)図13は、鍵管理サーバ112上で動作する鍵管理
アプリケーションプログラム113が、端末101から
のユーザAのユーザ鍵要求を処理する際の手順を示すフ
ローチャートである。本手順は、ファイルアクセスフッ
ク部107からのユーザ鍵要求メッセージを受け取って
開始する。鍵管理アプリケーションプログラム113が
受け取るユーザ鍵要求メッセージは、図8に示したよう
なフォーマット構成になっている。鍵管理アプリケーシ
ョンプログラム113は、端末101からユーザ鍵要求
メッセージを受け取ると(ステップ1301)、最初
に、メッセージに改変がなかったか調べるため、鍵デー
タベース121にあらかじめ保存してあるシステム鍵を
読み込み(ステップ1302)、要求メッセージ中の電
子署名を確認する(ステップ1303)。もし改変があ
れば、以下に述べるユーザ鍵を鍵データベース121か
ら取り出す作業を行わない。
(Processing of Key Management Application Program) FIG. 13 is a flowchart showing a procedure when the key management application program 113 operating on the key management server 112 processes a user key request of the user A from the terminal 101. is there. This procedure starts upon receiving a user key request message from the file access hook unit 107. The user key request message received by the key management application program 113 has a format configuration as shown in FIG. Upon receiving the user key request message from the terminal 101 (step 1301), the key management application program 113 first reads the system key stored in advance in the key database 121 to check whether the message has been modified (step 1302). ), The electronic signature in the request message is confirmed (step 1303). If there is a change, the operation of extracting the user key described below from the key database 121 is not performed.

【0055】ユーザ鍵を鍵データベース121から取り
出すには、まず暗号化・復号化部117において、ユー
ザ鍵要求メッセージをシステム鍵で復号し、図7に示し
たうなユーザ名701とチャレンジデータ702を取り
出す(ステップ1304)。次に、ここで得たユーザ名
を含む鍵情報レコードを鍵データベース121から取り
出す。図2の示すような鍵情報レコードが見つかれば、
ユーザ鍵202を取り出す(ステップ1305)。
In order to retrieve the user key from the key database 121, first, the encryption / decryption unit 117 decrypts the user key request message with the system key, and retrieves the user name 701 and the challenge data 702 shown in FIG. (Step 1304). Next, the key information record including the user name obtained here is retrieved from the key database 121. If you can find the key info record as shown in Figure 2,
The user key 202 is taken out (step 1305).

【0056】以上のようにして、ユーザ鍵要求メッセー
ジの改変検査とユーザ鍵の取り出しを終えた後、端末1
01に返答するユーザ鍵返答メッセージを作成する(ス
テップ1306)。ここで、返答メッセージに含めるレ
スポンスデータは、要求メッセージに含まれていたチャ
レンジデータに「1」を加えた値であるが、ユーザ鍵を
得ることができたかどうかで返答メッセージのデータ部
に含める内容が変わる。
After the alteration inspection of the user key request message and the retrieval of the user key are completed as described above, the terminal 1
A user key reply message for replying to 01 is created (step 1306). Here, the response data included in the reply message is a value obtained by adding "1" to the challenge data included in the request message, but the contents included in the data part of the reply message depending on whether the user key can be obtained. Will change.

【0057】ユーザ鍵を得た場合には、図9に示した
うにユーザ名901、レスポンスデータ902、ユーザ
鍵を含んでいることを示す値「0」903、ユーザ鍵9
04から成るデータを暗号化・復号化部117上でシス
テム鍵を使い暗号化したものを、ユーザ鍵返答メッセー
ジのデータ部に含める。ユーザ鍵を得ることができなか
った場合には、図10に示したようにユーザ名100
1、レスポンスデータ1002、ユーザ鍵を含んでいな
いことを示す値「1」から成るデータを暗号化・復号化
部117上でシステム鍵を使い暗号化したものを、ユー
ザ鍵返答メッセージのデータ部に含める。ユーザ鍵返答
メッセージの署名部には、ユーザ鍵返答メッセージであ
ることを示す値「1」を持つヘッダ部と、上記のように
作成したデータ部からなるデータを、システム鍵を使っ
て作成した署名を含める。
[0057] When obtaining the user key, <br/> I shown in FIG. 9 urchin username 901, response data 902, a value "0" indicating that it contains user key 903, a user key 9
The data composed of 04 is encrypted by using the system key on the encryption / decryption unit 117 and is included in the data part of the user key response message. If the user key cannot be obtained, as shown in FIG.
1, the response data 1002, and the data consisting of the value "1" indicating that the user key is not included are encrypted using the system key on the encryption / decryption unit 117, and are used as the data part of the user key response message. include. The signature part of the user key reply message is a signature created by using the system key with data including the header part having the value "1" indicating the user key reply message and the data part created as described above. Include.

【0058】以上のようにして作成したユーザ鍵返答メ
ッセージを端末101に送り(ステップ1307)、本
手順を終了する。
The user key reply message created as described above is sent to the terminal 101 (step 1307) and this procedure ends.

【0059】(暗号化詳細手順)図14は、アプリケー
ションプログラム106から書き込み要求のあったデー
タを暗号化する際の詳細手順を示すフローチャートであ
る。本手順は、ファイル暗号鍵、ファイル初期化デー
タ、書き込み要求データを用意できた時点で開始する。
(Detailed Encryption Procedure) FIG. 14 is a flowchart showing a detailed procedure for encrypting the data for which a write request is issued from the application program 106. This procedure starts when the file encryption key, the file initialization data, and the write request data are prepared.

【0060】図15は、アプリケーションからの書き込
み要求である。1501は書き込み開始位置、1502
は書き込みデータの長さ、1503は書き込みデータで
ある。図15の書き込み要求では、ファイル内の位置1
800から2799までの間に1503の書き込みデー
タを書き込むことを要求している。
FIG. 15 shows a write request from the application. 1501 is a writing start position, and 1502
Is the length of write data, and 1503 is write data. In the write request of FIG. 15, position 1 in the file
It is requested to write 1503 write data between 800 and 2799.

【0061】図14において、まず、書き込み要求を行
なったアプリケーションプログラムに対応するレコード
長をレコードサイズ記憶部から読み込む(ステップ14
01)。
In FIG. 14, first, the record length corresponding to the application program which issued the write request is read from the record size storage section (step 14).
01).

【0062】レコードサイズ記憶部124は、図16に
示すように、表計算プログラムやワープロプログラムな
どの各種のアプリケーションプログラム1601ごとの
レコードサイズ1602を保存してある。もし、対応す
るレコード長が記録されていなかったら、レコードサイ
ズ記憶部124の最後に記録されているデフォルトの長
さを読み込む。ここでは、書き込み要求を行なったアプ
リケーションプログラムに対応する長さとして「51
2」を読み込むものとする。
As shown in FIG. 16, the record size storage unit 124 stores a record size 1602 for each of various application programs 1601 such as a spreadsheet program and a word processing program. If the corresponding record length is not recorded, the default length recorded at the end of the record size storage unit 124 is read. Here, as the length corresponding to the application program that issued the write request, "51
2 ”is to be read.

【0063】もし、レコードサイズ記憶部124にレコ
ード長が記録されていなかったら、ここでアプリケーシ
ョンプログラムからの書き込み要求に含まれる、ファイ
ル内の書き込み要求位置1501と書き込みデータの長
さ1502を、このアプリケーションプログラム用のア
クセス情報記憶部125に保存する(ステップ140
3)。
If the record size is not recorded in the record size storage unit 124, the write request position 1501 in the file and the write data length 1502 included in the write request from the application program are set to this application. It is saved in the access information storage unit 125 for the program (step 140).
3).

【0064】アクセス情報記憶部125は、図17に示
すように、書き込み、読み込み要求があるたびにその開
始位置1701と書き込みデータの長さ1702をアプ
リケーションプログラムごとに記録したもので、複数記
憶しておくことができる。図17では、図15の書き込
み要求をアクセス情報記憶部125に保存した場合の様
子を示している。ここで記録したデータは、一定時間後
に暗号する際のレコード長を求めるために使う。
As shown in FIG. 17, the access information storage unit 125 records the start position 1701 and the write data length 1702 for each application program each time there is a write or read request, and stores a plurality of them. be able to. FIG. 17 shows a state in which the write request of FIG. 15 is stored in the access information storage unit 125. The data recorded here is used to obtain the record length when encryption is performed after a certain period of time.

【0065】次に、書き込み要求の開始位置をレコード
長で割り算し、その商をファイルの何番目のレコードへ
の書き込みであるかを示すレコードインデックス値とす
る(ステップ1404)。もし、複数のレコードにまた
がる書き込みであれば、すべてのレコードについて計算
しておく。図15に示す書き込み要求からレコードイン
デックスを求めると、書き込み開始位置「1800」を
レコード長「512」で割った商は3、書き込み終了位
置2799を512で割った商は5であるので、求める
レコードインデックス値は「3」、「4」、「5」であ
る。
Next, the start position of the write request is divided by the record length, and the quotient is used as a record index value indicating which record of the file is to be written (step 1404). If it is a write that spans multiple records, calculate for all records. When the record index is obtained from the write request shown in FIG. 15, the quotient obtained by dividing the write start position “1800” by the record length “512” is 3, and the quotient obtained by dividing the write end position 2799 by 512 is 5. The index values are "3", "4", and "5".

【0066】続いて、書き込み先のレコード用のレコー
ド暗号鍵を、そのレコードのインデックス値とファイル
暗号鍵を使って計算する(ステップ1405)。もし、
レコードの先頭から書き込み要求を行なう必要があれ
ば、そのレコード用の初期化データをファイル初期化デ
ータとレコードインデックス値から求める。これらの計
算方法としては、例えば2つのデータを連結してハッシ
ュ関数による演算を行なう方法が考えられる。図15の
書き込み要求の場合、レコード3の途中からレコード5
の途中までの書き込み要求であるので、「レコード3」
のレコード暗号鍵の計算、および「レコード4」、
「5」のレコード暗号鍵と初期化データの計算を行う。
Then, the record encryption key for the record of the writing destination is calculated using the index value of the record and the file encryption key (step 1405). if,
If it is necessary to make a write request from the beginning of the record, the initialization data for the record is obtained from the file initialization data and the record index value. As a method of calculating these, for example, a method of connecting two data and performing an operation by a hash function can be considered. In the case of the write request of FIG. 15, the record 5 starts from the middle of the record 3.
"Record 3" because it is a write request up to the middle of
Calculation of the record encryption key of, and "record 4",
The record encryption key of "5" and the initialization data are calculated.

【0067】次に、書き込むデータがすでにファイル内
に保存されているデータの上書きであるかどうか検査す
る(ステップ1406)。ここで上書きでなければ、書
き込みデータを暗号化用バッファにコピーし暗号化ステ
ップに進む(ステップ1411)。
Next, it is checked whether the data to be written is an overwrite of the data already stored in the file (step 1406). If it is not overwritten here, the write data is copied to the encryption buffer and the process proceeds to the encryption step (step 1411).

【0068】もし上書きであれば、書き込み開始位置で
暗号連鎖処理に必要な部分と再暗号化が必要な部分をフ
ァイルから暗号化用バッファに読み込む(ステップ14
07)。暗号連鎖処理に必要な部分とは、書き込み開始
位置でデータを暗号化する際に連鎖処理で使う暗号文の
ことで、書き込み開始位置の直前の暗号文であり、その
長さは暗号連鎖処理の方法によって異なる。書き込み開
始位置がレコードの先頭であれば、暗号連鎖処理に必要
な部分としてレコード初期化データを用いるので、書き
込み開始位置の直前部分をファイルから読み込む必要は
ない。本実施例における暗号連鎖処理に必要となる長さ
を「8」とすると、図15の書き込み要求における暗号
連鎖処理に必要な部分とは、ファイル内の位置「179
2」から「1799」までの暗号文である。また、再暗
号化が必要な部分とは、データの上書きによって暗号連
鎖処理をやり直す必要のある部分のことで、書き込み終
了位置の直後からこの書き込み終了位置を含むレコード
の最後までである。図15の書き込み要求における再暗
号化が必要な部分は、ファイル内の書き込み終了位置の
直後「2800」から、この書き込み終了位置を含む
「レコード5」の最後の位置「3071」までである。
図18に、ファイル内における、暗号連鎖処理に必要な
部分と再暗号化が必要となる部分を示す。
If it is overwriting, the part required for the cipher chaining process and the part required for re-encryption at the write start position are read from the file into the encryption buffer (step 14).
07). The part necessary for the cipher chaining process is the ciphertext used in the chaining process when encrypting the data at the writing start position, and is the ciphertext immediately before the writing start position, and its length is the ciphertext of the cipher chaining process. It depends on the method. If the write start position is at the beginning of the record, the record initialization data is used as the part required for the cipher chaining process, and therefore the part immediately before the write start position need not be read from the file. Assuming that the length required for the cipher chaining process in this embodiment is "8", the part required for the cipher chaining process in the write request of FIG. 15 is the position "179" in the file.
It is a ciphertext from "2" to "1799". Further, the part requiring re-encryption is a part in which the cipher chaining process needs to be redone by overwriting data, and is from immediately after the write end position to the end of the record including the write end position. The part of the write request in FIG. 15 that needs re-encryption is from “2800” immediately after the write end position in the file to the last position “3071” of “record 5” including this write end position.
FIG. 18 shows a part necessary for cipher chaining and a part requiring re-encryption in the file.

【0069】続いて、暗号化用バッファ上にある再暗号
化が必要な部分を、対応するレコード暗号鍵を使って復
号しておく(ステップ1408)。図15の書き込み要
求では、「レコード5」のレコード暗号鍵を使って復号
する。そして、書き込み要求データを再暗号化のために
復号したデータとつなげて暗号化用バッファ上に書き込
む(ステップ1409)。
Subsequently, the portion of the encryption buffer that needs re-encryption is decrypted using the corresponding record encryption key (step 1408). In the write request of FIG. 15, decryption is performed using the record encryption key of “record 5”. Then, the write request data is connected to the decrypted data for re-encryption and is written in the encryption buffer (step 1409).

【0070】最後に、暗号化用バッファ上に暗号化する
データが用意できたら、そのデータに対応するレコード
用の暗号鍵とファイルから読み込んだ暗号連鎖処理に必
要なデータ、初期化データを使って暗号化して(ステッ
プ1410)本手順を終了する。
Finally, when the data to be encrypted is prepared in the encryption buffer, the encryption key for the record corresponding to the data and the data necessary for the encryption chain processing read from the file and the initialization data are used. After encryption (step 1410), this procedure ends.

【0071】(復号化詳細手順)図19は、アプリケー
ションプログラムから読み込み要求のあったデータを読
み込んで復号する際の詳細手順を示すフローチャートで
ある。本手順は、ファイル暗号鍵、ファイル初期化デー
タを用意できた時点で開始する。
(Detailed Decoding Procedure) FIG. 19 is a flowchart showing a detailed procedure for reading and decoding the data requested to be read from the application program. This procedure starts when the file encryption key and the file initialization data are prepared.

【0072】図20は、アプリケーションからの読み込
み要求である。2001は読み込み開始位置、2002
は読み込みデータの長さである。
FIG. 20 shows a read request from the application. 2001 is the read start position, 2002
Is the length of the read data.

【0073】図19において、まず、書き込み要求の時
と同様に、読み込み要求を行なったアプリケーションプ
ログラムに対応するレコード長をレコードサイズ記憶部
から読み込む(ステップ1901)。もし、対応するレ
コード長がなければデフォルトの値を読み込み(ステッ
プ1902)、読み込み開始位置2001とその長さ2
002をこのアプリケーションプログラム用のアクセス
情報記憶部125に記録する(ステップ1903)。レ
コードインデックスの計算とレコード用の暗号鍵、初期
化データの計算も、書き込み要求の場合と同様に行なう
(ステップ1904,1905)。
In FIG. 19, first, similarly to the case of the write request, the record length corresponding to the application program which issued the read request is read from the record size storage section (step 1901). If there is no corresponding record length, the default value is read (step 1902), the read start position 2001 and its length 2
002 is recorded in the access information storage unit 125 for this application program (step 1903). The calculation of the record index, the encryption key for the record, and the initialization data are performed in the same manner as the write request (steps 1904, 1905).

【0074】続いて、読み込み要求に対応するレコード
をファイルから読み込み、レコード用暗号鍵、初期化デ
ータを使って復号して(ステップ1906)、本手順を
終了する。
Then, the record corresponding to the read request is read from the file, decrypted using the record encryption key and the initialization data (step 1906), and this procedure ends.

【0075】(レコード長の計算)図21は、レコード
長を計算する際の詳細手順を示すフローチャートであ
る。本手順は、あるアプリケーションプログラムにおい
て、アクセス情報記憶部125に記録したアクセス情報
が一定件数(例えば100件)を越えた時に開始する。
ここで、レコード長としては2のべき乗を候補とする。
アプリケーションプログラムやオペレーティングシステ
ムのファイルアクセス単位、記憶装置上の物理的な記録
単位は、処理の単純化のために2のべき乗の数を使う例
が多いためである。なお、この手順を始める前に、暗号
化速度、復号化速度、レコード用の暗号鍵の生成にかか
る時間、初期化データの生成にかかる時間を求めてお
く。
(Calculation of Record Length) FIG. 21 is a flowchart showing the detailed procedure for calculating the record length. This procedure starts when the number of pieces of access information recorded in the access information storage unit 125 exceeds a certain number (for example, 100) in a certain application program.
Here, the record length is set to a power of 2.
This is because the file access unit of the application program and the operating system, and the physical recording unit on the storage device often use a power of 2 for the sake of simplicity of processing. Before starting this procedure, the encryption speed, the decryption speed, the time required to generate the encryption key for the record, and the time required to generate the initialization data are obtained.

【0076】図21において、まず、アクセス情報記憶
部125に記録したアクセス長の平均値を求める(ステ
ップ2102)。ここで、平均アクセス長として「14
0」バイトが得られたものとする。次に、平均アクセス
長を超える一番小さい2のべき乗数を求める(ステップ
2102)。今回の例では「256」である。
In FIG. 21, first, the average value of the access length recorded in the access information storage unit 125 is obtained (step 2102). Here, as the average access length, “14
Assume that 0'bytes have been obtained. Next, the smallest power of 2 that exceeds the average access length is obtained (step 2102). In this example, it is “256”.

【0077】続いて、レコード長を仮に1、2、4、
…、と2のべき乗数として以下の手順を行ない、それぞ
れの場合の平均書き込みオーバヘッド時間を求める(ス
テップ2103)。仮のレコード長の上限は、前の手順
で求めた、平均アクセス長を超える一番小さい2のべき
乗数である。今回の例では、「256」である。
Next, if the record length is 1, 2, 4,
, And the power of 2, the following procedure is performed to obtain the average write overhead time in each case (step 2103). The upper limit of the provisional record length is the smallest power of 2 that exceeds the average access length obtained in the previous procedure. In this example, it is "256".

【0078】それぞれの仮レコード長について行なう計
算は以下の通りである。まず、書き込み時に再暗号化処
理の必要となる長さの平均、および1回のアクセスにつ
きレコード用暗号鍵と初期化データの計算が平均何回あ
るかを求める。再暗号化処理に必要な長さは、図18に
示すような部分のことである。平均再暗号化処理長は、
各アクセス長について「数1」に示す式で求めた値の平
均値である。
The calculation performed for each temporary record length is as follows. First, the average length required for re-encryption processing at the time of writing and the average number of times the record encryption key and initialization data are calculated per access are obtained. The length required for the re-encryption processing is the portion shown in FIG. The average re-encryption processing length is
It is an average value of the values obtained by the formula shown in "Equation 1" for each access length.

【0079】[0079]

【数1】 [Equation 1]

【0080】平均計算回数は、各アクセス位置とアクセ
ス長の組について「数2」に示す式で求めた値の平均値
である。なお、「数1」、「数2」の中で使用している
記号の意味は図22に示す通りである。また、「L%
R」とは、「L/Rの余り」のことである。
The average number of calculations is the average value of the values obtained by the formula shown in "Equation 2" for each set of access position and access length. Incidentally, the "number 1", the meaning of symbols used in the "number 2" is as shown in FIG. 22. Also, "L%
“R” means “remainder of L / R”.

【0081】[0081]

【数2】 [Equation 2]

【0082】次に、上のようにして求めた平均再暗号化
処理長と平均計算回数、および暗号化処理速度、復号化
処理速度、レコード用暗号鍵の生成にかかる時間、初期
化データの生成にかかる時間から、「数1」、「数2」
の計算に用いた仮レコード長を使った時の平均書き込み
オーバヘッド時間は「数3」に示す式を用いて得ること
ができる。
Next, the average re-encryption processing length and the average number of calculations obtained as described above, the encryption processing speed, the decryption processing speed, the time required to generate the record encryption key, and the initialization data are generated. "Number 1", "Number 2" from the time it takes
The average write overhead time when the tentative record length used in the calculation of is used can be obtained using the formula shown in "Equation 3".

【0083】[0083]

【数3】 [Equation 3]

【0084】ここで、「数3」中の(平均再暗号化処理
長)/(復号化速度)は、ファイルから読み込んだ再暗
号化処理が必要な部分を復号化するのにかかる時間の平
均である。また、(平均再暗号化処理長)/(暗号化速
度)は、再暗号化処理が必要な部分を暗号化するのにか
かる時間の平均である。また、{ … }×(平均計算回
数)は、レコードごとに用意するレコード鍵と初期化デ
ータを計算するのにかかる時間の平均である。これら3
つの式の和を求めると、書き込みオーバヘッド時間の平
均になる。
Here, the (average re-encryption processing length) / (decryption speed) in "Equation 3" is the average time taken to decrypt the portion that needs re-encryption processing read from the file. Is. Further, (average re-encryption processing length) / (encryption speed) is an average of the time required to encrypt the portion that requires re-encryption processing. Also, {...} × (average number of calculations) is the average of the time taken to calculate the record key prepared for each record and the initialization data. These 3
The sum of the two expressions gives the average write overhead time.

【0085】このようにしてそれぞれの仮レコード長に
ついて求めた平均書き込みオーバヘッド時間のうち、そ
の最少値を与える仮レコード長を選ぶ(ステップ210
4)。これが書き込み時のオーバヘッドを最少にするレ
コード長である。最後に、アプリケーションプログラム
と選んだレコード長を組にしてレコードサイズ記憶部1
24に書き込む(ステップ2105)。
Of the average write overhead time thus obtained for each temporary record length, the temporary record length giving the minimum value is selected (step 210).
4). This is the record length that minimizes the write overhead. Finally, the record size storage unit 1 is formed by combining the application program and the selected record length.
24 (step 2105).

【0086】以上のように本実施形態においては、端末
101のアプリケーションプログラム106からオペレ
ーティングシステム108へ発行する記憶装置111へ
のデータ読み込み・書き出し要求を横取りし、書き出し
要求の際にはデータを暗号化するための暗号鍵をネット
ワーク122で接続している鍵管理サーバ112から取
り寄せ、この暗号鍵でデータを暗号化して記憶装置11
1に保存し、また、読み込み要求の際には記憶装置11
1から暗号化データを読み出し、この暗号化データを復
号するための鍵を鍵管理サーバ112から取り寄せ、こ
の暗号鍵で暗号化データを復号して取り出した元のデー
タをアプリケーションプログラム106に渡すようにし
たため、暗号化や復号化の指示をユーザが明示的に行う
ことなしに記憶装置111に保存するデータを自動的に
暗号化し、読み出す時には自動的に復号することがで
き、煩わしい操作をユーザに強いることがないという効
果が得られる。また、記憶装置111に保存するデータ
を自動的に保存するので、ユーザがデータの暗号化を忘
れるという問題も起きない。
As described above, in the present embodiment, the data read / write request to the storage device 111 issued from the application program 106 of the terminal 101 to the operating system 108 is intercepted, and the data is encrypted at the time of the write request. An encryption key for performing the operation is received from the key management server 112 connected via the network 122, the data is encrypted with this encryption key, and the storage device 11
1 and stores the data in the storage device 11 when a read request is made.
The encrypted data is read from 1, the key for decrypting this encrypted data is obtained from the key management server 112, and the original data obtained by decrypting the encrypted data with this encryption key is passed to the application program 106. Therefore, the data stored in the storage device 111 can be automatically encrypted and decrypted automatically when the data is read out without the user explicitly instructing the encryption or decryption, forcing the user to perform a troublesome operation. The effect of never happening is obtained. Further, since the data to be stored in the storage device 111 is automatically stored, there is no problem that the user forgets to encrypt the data.

【0087】また、鍵管理サーバ1112に対して暗号
鍵を送ってもらう要求を出す前に、アプリケーションプ
ログラム106を操作しているユーザに対してそのユー
ザを識別するための情報を入力させ、この情報の正しさ
をユーザが操作している端末101で確認した後にユー
ザの鍵を鍵管理サーバ112から取り寄せる、あるいは
ユーザが入力した識別情報を鍵管理サーバ112に送
り、鍵管理サーバ112で受け取った識別情報の正しさ
を確認した後にそのユーザの暗号鍵を送り返すようにし
ているため、暗号化した機密データを保存してある携帯
用の端末が盗まれたとしても、解読される危険性はこれ
らのデータが同一の記憶装置に保存されている場合に比
べて小さくなり、データの機密性をさらに高めることが
できる。例えば、携帯用端末に暗号化データを保存して
おき、社内でそのデータにアクセスしたい時は社内LA
Nに接続し、社外からは社内ネットワークへリモートア
クセスして利用するようにしておけば、この携帯端末を
不正に入手したユーザは、ユーザの識別情報を類推する
だけでなく、リモートアクセス時のユーザ認証作業も行
う必要があるので安全性がより高くなる。また、社内で
は携帯用端末を鍵管理サーバと同じネットワークに接続
して重要データの編集や閲覧が可能なように構成でき、
社外では鍵管理サーバが存在しないので、そのデータに
アクセスできなくさせるように構成することができ、セ
キュリティを高めることができる。
Before issuing a request to the key management server 1112 to send the encryption key, the user operating the application program 106 is prompted to enter information for identifying the user, and this information After confirming the correctness on the terminal 101 operated by the user, the user's key is retrieved from the key management server 112, or the identification information input by the user is sent to the key management server 112, and the identification received by the key management server 112. Since the encryption key of the user is sent back after confirming the correctness of the information, even if the portable terminal that stores the encrypted confidential data is stolen, the risk of decryption is reduced. The data becomes smaller as compared with the case where the data is stored in the same storage device, and the confidentiality of the data can be further enhanced. For example, if you want to store encrypted data in a mobile device and want to access that data in-house,
By connecting to N and remotely accessing the company network from outside, the user who illegally obtained this mobile terminal not only guesses the identification information of the user but also the user at the time of remote access. Since it is necessary to perform certification work as well, safety is higher. In addition, you can configure your mobile device to connect to the same network as the key management server so that you can edit and browse important data.
Since the key management server does not exist outside the company, the data can be configured to be inaccessible and the security can be enhanced.

【0088】さらに、アプリケーションプログラム10
6からオペレーティングシステム108へのデータ読み
出し・書き込み要求を横取りするための仕組みは、オペ
レーティングシステム108が提供している場合には、
既存のアプリケーションプログラムやオペレーティング
システムを書き換える必要がなく、しかも新たにハード
ウェアを置き換える必要もなく、最小限のコストでデー
タのセキュリティを高めることが可能である。
Furthermore, the application program 10
When the operating system 108 provides a mechanism for intercepting a data read / write request from the operating system 108 to the operating system 108,
It is not necessary to rewrite an existing application program or operating system, and there is no need to replace new hardware, and it is possible to enhance data security at a minimum cost.

【0089】さらに、ICカードにユーザ固有の暗号鍵
を記録しておいて各ユーザ自身で暗号鍵を管理させる方
法も考えられるが、ICカード自体の紛失によりデータ
の復号が不可能になったり、ICカードの読み書き機構
を端末101に付加しておく必要があるので、コスト面
で不利となる。しかし、本実施形態のように暗号鍵を鍵
管理サーバ112から取り寄せるようにすることによ
り、ICカードの読み書き機構を備えていない端末であ
っても利用することができるという利点がある。
Further, a method of recording a user-specific encryption key in the IC card and managing the encryption key by each user is conceivable. However, the loss of the IC card itself makes it impossible to decrypt the data. Since it is necessary to add a read / write mechanism for the IC card to the terminal 101, the cost is disadvantageous. However, by obtaining the encryption key from the key management server 112 as in the present embodiment, there is an advantage that even a terminal that does not have an IC card read / write mechanism can be used.

【0090】なお、本実施形態では、ファイルの暗号化
に際し、ユーザ鍵をそのまま使わずにファイル暗号鍵を
その都度生成しているが、ユーザ鍵でファイル自体を直
接に暗号化してもよい。
In this embodiment, when encrypting a file, the file encryption key is generated each time without using the user key as it is, but the file itself may be directly encrypted with the user key.

【0091】また、ファイルを保存あるいは読み出すた
びにユーザに対してユーザ名とパスワードを入力させて
いるが、これらの情報を端末101のメモリに一時的に
保存しておいて、次回のファイル保存、読み出しの際に
はこの一時保存してあるユーザ名とパスワードを使って
鍵管理要求を生成するように構成することにより、ユー
ザの入力操作をさらに簡略化することができる。
Also, every time a file is saved or read, the user is prompted to enter the user name and password. However, this information is temporarily saved in the memory of the terminal 101, and the next file saving, At the time of reading, the key management request is generated using the temporarily stored user name and password, so that the user's input operation can be further simplified.

【0092】さらに、取り寄せたユーザ鍵自体をメモリ
上に一時保存し後で再利用する構成にすることにより、
端末101と鍵管理サーバ112間の通信を行わずに済
み、通信のオーバヘッドを省いて処理スピードを速める
ことができ、ネットワーク122のトラフィックを減ら
すこともできる。
Furthermore, the user key itself that has been obtained is temporarily stored in the memory and reused later,
Communication between the terminal 101 and the key management server 112 can be eliminated, communication overhead can be eliminated, processing speed can be increased, and traffic on the network 122 can be reduced.

【0093】また、予めユーザがファイル保存の際には
自動的に暗号化して欲しいファイルやディレクトリを指
定するように構成することで、指定したファイルあるい
は指定したディレクトリ以下にあるファイルだけに対し
て、暗号化や復号化を行うことができる。これにより、
暗号化して保存する場所としてフロッピーディスクのよ
うな記憶媒体を表わすディレクトリも指定できるので、
重要な情報をコピーされて持ち出されることを防ぐこと
もできる。
Further, when the user saves the file in advance, the user can automatically specify the file or the directory that he wants to be encrypted, so that only the specified file or the files under the specified directory can be It can perform encryption and decryption. This allows
You can also specify a directory that represents a storage medium such as a floppy disk as the encrypted storage location.
It is also possible to prevent important information from being copied and brought out.

【0094】さらに、端末101および鍵管理サーバ1
12において実施形態で説明したような機能を実現する
各機能部分は、具体的には同等機能を実現する処理プロ
グラムで構成されるものであり、これらの処理プログラ
ムはCDROMなどの記憶媒体に格納して、あるいはイ
ンタネット等の通信媒体を通じて利用者に提供すること
ができるものである。
Furthermore, the terminal 101 and the key management server 1
Each functional part that realizes the function described in the embodiment in 12 is specifically configured by a processing program that realizes an equivalent function, and these processing programs are stored in a storage medium such as a CDROM. Or through communication media such as the Internet.

【0095】また、本実施形態では、レコードごとに暗
号鍵と初期化データを計算していたが、読み書き時の速
度を高速化するためにファイル暗号鍵とファイル初期化
データをそのまま使ってもよい。この場合、本実施形態
に比べて暗号化ファイルの安全性が少し失われることに
なる。また、レコード長の計算方法も変える必要があ
る。
Further, in the present embodiment, the encryption key and the initialization data are calculated for each record, but the file encryption key and the file initialization data may be used as they are in order to increase the read / write speed. . In this case, the security of the encrypted file is slightly lost as compared with the present embodiment. It is also necessary to change the method of calculating the record length.

【0096】レコード長を決めるためにアプリケーショ
ンのアクセス長だけでなく、オペレーティングシステム
によるファイルアクセスへのキャッシュの単位や、記憶
装置上でのデータの記録単位(例えばセクタ長)を使う
こともできる。
In order to determine the record length, it is possible to use not only the access length of the application, but also a cache unit for file access by the operating system and a data recording unit (for example, sector length) on the storage device.

【0097】また、レコード長を求める時に、読み書き
のアクセス記録の両方を使って平均書き込み時間を求め
たが、厳密に読み書きを区別して計算してもよい。この
ためには、アクセス情報記憶部に読み書きを区別する欄
を設ければよい。
Further, when the record length is obtained, the average write time is obtained by using both the read and write access records, but the read and write may be strictly discriminated. To this end, a column for distinguishing between reading and writing may be provided in the access information storage unit.

【0098】また、レコード長はアプリケーションプロ
グラム用のレコード長が求まってない時だけでなく、
例えば一週間に一回というように定期的に計算してもよ
い。
[0098] In addition, the record length is not only when the record length for an application program has not been determined,
For example, it may be calculated periodically, such as once a week.

【0099】また、レコード長を求めた結果、その値が
それまで使っていたレコード長と異なる値になった場
合、既存のファイルを暗号化し直せばよい。
If the record length is found to be different from the record length used until then, the existing file may be re-encrypted.

【0100】また、暗号化ファイルにレコード長を記憶
しておく領域を設けておくことで、そのファイルを暗号
化する際のレコード長を保存して置くことができる。こ
のようにすれば、アプリケーションプログラムに最適な
レコード長が変わった時に、既存の暗号化ファイルを新
しいレコード長の値を使って簡単に暗号化し直すことが
可能である。
Further, by providing an area for storing the record length in the encrypted file, the record length when the file is encrypted can be stored and stored. In this way, when the optimum record length for the application program changes, it is possible to easily re-encrypt the existing encrypted file using the new record length value.

【0101】[0101]

【発明の効果】以上のように本発明によれば、暗号化や
復号化の指示をユーザが明示的に行うことなしに記憶装
置に保存するデータを自動的に暗号化し、読み出す時に
は自動的に復号することができ、煩わしい操作をユーザ
に強いることがないという効果が得られる。また、記憶
装置に保存するデータを自動的に保存するので、ユーザ
がデータの暗号化を忘れるという問題も起きない。
As described above, according to the present invention, data to be stored in a storage device is automatically encrypted without being explicitly instructed by the user to be encrypted or decrypted, and automatically when read. It is possible to obtain the effect that decryption is possible and the user is not forced to perform a troublesome operation. Further, since the data to be stored in the storage device is automatically stored, the problem that the user forgets to encrypt the data does not occur.

【0102】また、鍵管理コンピュータからユーザ別の
暗号鍵を取り寄せるようにしているため、暗号化した機
密データを保存してある携帯用の端末が盗まれたとして
も、解読される危険性はこれらのデータが同一の記憶装
置に保存されている場合に比べて小さくなり、データの
機密性をさらに高めることができる。
Further, since the encryption key for each user is obtained from the key management computer, even if the portable terminal storing the encrypted confidential data is stolen, the risk of decryption is The data is smaller than that stored in the same storage device, and the confidentiality of the data can be further improved.

【0103】また、ICカードにユーザ固有の暗号鍵を
記録しておいて各ユーザ自身で暗号鍵を管理させる方法
に比べ、ICカードの読み書き機構を備えていない端末
であっても利用することができるという効果がある。
Further, as compared with the method of recording the encryption key unique to the user in the IC card and managing the encryption key by each user himself / herself, it is possible to use even a terminal having no IC card read / write mechanism. The effect is that you can do it.

【0104】また、自動的に暗号化・復号化する際に問
題となる、データ上書き時の再暗号化処理や初期化デー
タ生成処理のオーバヘッドも最小化できるので、このよ
うな最適化を行なわない場合に比べてデータ上書き処理
を高速化できる。
Further, since the overhead of re-encryption processing at the time of data overwriting and initialization data generation processing, which is a problem in automatic encryption / decryption, can be minimized, such optimization is not performed. The data overwrite processing can be speeded up compared to the case.

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

【図1】本発明を適用したコンピュータシステムの実施
形態を示すシステム構成図である。
FIG. 1 is a system configuration diagram showing an embodiment of a computer system to which the present invention is applied.

【図2】ユーザに配布する鍵情報レコードの構成図であ
る。
FIG. 2 is a configuration diagram of a key information record distributed to a user.

【図3】ユーザ配布情報作成手順を示すフローチャート
である。
FIG. 3 is a flowchart showing a procedure for creating user distribution information.

【図4】認証トークンの構成図である。FIG. 4 is a configuration diagram of an authentication token.

【図5】ファイル暗号化手順を示すフローチャートであ
る。
FIG. 5 is a flowchart showing a file encryption procedure.

【図6】端末と鍵管理サーバとの間で送受されるメッセ
ージのフォーマット構成図である。
FIG. 6 is a format configuration diagram of a message transmitted and received between a terminal and a key management server.

【図7】ユーザ鍵要求メッセージデータ部に含まれる元
の内容を示す図である。
FIG. 7 is a diagram showing original contents included in a user key request message data section.

【図8】ユーザ鍵要求メッセージの構成図である。FIG. 8 is a configuration diagram of a user key request message.

【図9】ユーザ鍵返答メッセージデータ部に含まれる元
の内容(ユーザ鍵あり)を示す図である。
FIG. 9 is a diagram showing original contents (with a user key) included in a user key response message data section.

【図10】ユーザ鍵返答メッセージデータ部に含まれる
元の内容(ユーザ鍵なし)を示す図である。
FIG. 10 is a diagram showing original contents (without a user key) included in a user key response message data section.

【図11】記憶装置に記憶される暗号化ファイルの構成
図である。
FIG. 11 is a configuration diagram of an encrypted file stored in a storage device.

【図12】ファイル復号化手順を示すフローチャートで
ある。
FIG. 12 is a flowchart showing a file decoding procedure.

【図13】鍵管理アプリケーションの処理手順を示すフ
ローチャートである。
FIG. 13 is a flowchart showing a processing procedure of a key management application.

【図14】暗号化の詳細手順を示すフローチャートであ
る。
FIG. 14 is a flowchart showing a detailed encryption procedure.

【図15】アプリケーションプログラムからの書き込み
要求の構成図である。
FIG. 15 is a configuration diagram of a write request from an application program.

【図16】レコードサイズ記憶部を表す図である。FIG. 16 is a diagram illustrating a record size storage unit.

【図17】アクセス情報記憶部を表す図である。FIG. 17 is a diagram illustrating an access information storage unit.

【図18】書き込み要求の実行によってファイル上に上
書きされる範囲と再暗号化処理の必要となる範囲を表す
図である。
FIG. 18 is a diagram showing a range overwritten on a file by execution of a write request and a range required for re-encryption processing.

【図19】復号化の詳細手順を示すフローチャートであ
る。
FIG. 19 is a flowchart showing a detailed decoding procedure.

【図20】アプリケーションプログラムからの読み込み
要求の構成図である。
FIG. 20 is a configuration diagram of a read request from an application program.

【図21】レコード長を求める手順を示すフローチャー
トである。
FIG. 21 is a flowchart showing a procedure for obtaining a record length.

【図22】計算式に使われている記号の説明図である。FIG. 22 is an explanatory diagram of symbols used in a calculation formula.

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

101…端末、102…ユーザ入力部、103…パスワ
ード暗号鍵生成部、104…ファイル暗号鍵生成部、1
05…暗号化・復号化部、106…アプリケーション、
107…ファイルアクセスフック部、108…オペレー
ティングシステム、109…記憶装置用インタフェー
ス、110…通信用インタフェース、111…記憶装
置、112…鍵管理サーバ、113…鍵管理アプリケー
ション、114…ユーザ入力部、115…パスワード暗
号鍵生成部、116…ユーザ鍵生成部、117…暗号化
・復号化部、118…オペレーティングシステム、11
9…通信用インタフェース、120…記憶装置用インタ
フェース、121…鍵データベース、122…ネットワ
ーク、123…ユーザ、124…レコードサイズ記憶
部、125…アクセス情報記憶部。
101 ... Terminal, 102 ... User input section, 103 ... Password encryption key generating section, 104 ... File encryption key generating section, 1
05 ... encryption / decryption unit, 106 ... application,
107 ... File access hook unit, 108 ... Operating system, 109 ... Storage device interface, 110 ... Communication interface, 111 ... Storage device, 112 ... Key management server, 113 ... Key management application, 114 ... User input unit, 115 ... Password encryption key generation unit, 116 ... User key generation unit, 117 ... Encryption / decryption unit, 118 ... Operating system, 11
9 ... Communication interface, 120 ... Storage device interface, 121 ... Key database, 122 ... Network, 123 ... User, 124 ... Record size storage unit, 125 ... Access information storage unit.

───────────────────────────────────────────────────── フロントページの続き (72)発明者 鮫島 吉喜 神奈川県横浜市中区尾上町6丁目81番地 日立ソフトウェアエンジニアリング株 式会社内 (56)参考文献 特開 昭61−177479(JP,A) 特開 平9−179768(JP,A) 特開 平6−348576(JP,A) (58)調査した分野(Int.Cl.7,DB名) G06F 12/14 G09C 1/00 H04L 9/00 ─────────────────────────────────────────────────── ─── Continuation of the front page (72) Inventor Yoshiki Samejima 6-81, Onoue-cho, Naka-ku, Yokohama-shi, Kanagawa Hitachi Software Engineering Co., Ltd. (56) Reference JP-A-61-177479 (JP, A) Kaihei 9-179768 (JP, A) JP-A-6-348576 (JP, A) (58) Fields investigated (Int.Cl. 7 , DB name) G06F 12/14 G09C 1/00 H04L 9/00

Claims (2)

(57)【特許請求の範囲】(57) [Claims] 【請求項1】記憶装置と、アプリケーションプログラム
からの前記記憶装置へのデータ読み出し・書き込み要求
を横取りするファイルフック手段を有し、前記アプリケ
ーションプログラムに従った処理を実行するコンピュー
タとを備え、前記アプリケーションプログラムが処理し
たデータを前記記憶装置に書き込んで保存するデータの
保存方法において、 前記アプリケーションプログラムからのデータの書き込
み要求に対し、該書き込み要求を前記ファイルフック手
段によって横取りし、前記コンピュータのオペレーティ
ングシステムが書き込み対象となるデータを前記記憶装
置に書き込む前に、当該コンピュータとネットワークを
介して接続された鍵管理コンピュータから暗号鍵を取り
寄せ、コンピュータ内部で生成した暗号鍵データを前記
暗号鍵により暗号化した暗号化暗号鍵データを作成し、
さらに前記内部生成の暗号鍵データによりアプリケーシ
ョンプログラムからの書き込み対象のデータをアプリケ
ーションプログラム毎に予め設定したレコード長に区切
って暗号化した暗号化データ本体を作成し、該暗号化デ
ータ本体に前記暗号化暗号鍵データを付加して前記記憶
装置に書き込み、 前記アプリケーションプログラムからの読み出し要求に
対しては、該読み出し要求を前記ファイルフック手段に
よって横取りし、前記アプリケーションプログラムに読
み出しデータを転送する前に、前記オペレーティングシ
ステムに前記記憶装置から暗号化データ本体および暗号
化暗号鍵データを読み出させた後に、前記ネットワーク
を介して前記鍵管理コンピュータから暗号鍵を取り寄
せ、該暗号鍵で前記暗号化暗号鍵データを復号し、復号
された暗号鍵データを用いて前記暗号化データ本体を復
号し、復号されたデータ本体を読み出し要求を行った前
記アプリケーションプログラムに転送することを特徴と
するデータの保存方法。
1. An application comprising: a storage device; and a computer having a file hook means for intercepting a data read / write request from the application program to the storage device, the computer executing a process according to the application program. In a data storage method of writing and storing data processed by a program in the storage device, in response to a data write request from the application program, the write request is intercepted by the file hook means, and the operation of the computer is performed. Before the writing system writes the data to be written in the storage device, the encryption key is obtained from the key management computer connected to the computer via the network, and the encryption key data is generated inside the computer. Create an encrypted encrypted encryption key data by the encryption key,
Applique write target data from the application program by further said internal generation of the encryption key data
Partition into preset record lengths for each partition program
Create an encrypted encrypted data body I, by adding the encrypted encryption key data to this encryption data body written into the storage device, for the read request from the application program, the read request Is intercepted by the file hook means, and before the read data is transferred to the application program, the operating system is caused to read the encrypted data body and the encrypted encryption key data from the storage device, and then, via the network. Obtains an encryption key from the key management computer, decrypts the encrypted encryption key data with the encryption key, decrypts the encrypted data body using the decrypted encryption key data, and reads the decrypted data body Transferring to the requesting application program How to save data.
【請求項2】前記アプリケーションプログラムによるフ
ァイルアクセス時のアクセス情報を記録し、前記アクセ
ス情報をもとに算出した平均アクセス長を超える仮レコ
ード長を設定し、それぞれの仮レコード長についてオー
バヘッド時間を算出し、その算出結果が最小となるもの
を前記レコード長とすることを特徴とする請求項1に記
載のデータの保存方法。
2. Access information at the time of file access by the application program is recorded, a temporary record length exceeding an average access length calculated based on the access information is set, and an overhead time is calculated for each temporary record length. 2. The data storage method according to claim 1, wherein the record length has the smallest calculation result.
JP19996698A 1997-09-12 1998-07-15 Data storage method and system and data storage processing recording medium Expired - Lifetime JP3516591B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP19996698A JP3516591B2 (en) 1997-09-12 1998-07-15 Data storage method and system and data storage processing recording medium

Applications Claiming Priority (3)

Application Number Priority Date Filing Date Title
JP24737997 1997-09-12
JP9-247379 1997-09-12
JP19996698A JP3516591B2 (en) 1997-09-12 1998-07-15 Data storage method and system and data storage processing recording medium

Related Child Applications (1)

Application Number Title Priority Date Filing Date
JP2000175873A Division JP3741357B2 (en) 1997-09-12 2000-06-12 Data storage method and system, and data storage processing recording medium

Publications (2)

Publication Number Publication Date
JPH11149414A JPH11149414A (en) 1999-06-02
JP3516591B2 true JP3516591B2 (en) 2004-04-05

Family

ID=17162560

Family Applications (2)

Application Number Title Priority Date Filing Date
JP19996698A Expired - Lifetime JP3516591B2 (en) 1997-09-12 1998-07-15 Data storage method and system and data storage processing recording medium
JP2000175873A Expired - Fee Related JP3741357B2 (en) 1997-09-12 2000-06-12 Data storage method and system, and data storage processing recording medium

Family Applications After (1)

Application Number Title Priority Date Filing Date
JP2000175873A Expired - Fee Related JP3741357B2 (en) 1997-09-12 2000-06-12 Data storage method and system, and data storage processing recording medium

Country Status (1)

Country Link
JP (2) JP3516591B2 (en)

Families Citing this family (32)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP3516591B2 (en) * 1997-09-12 2004-04-05 日立ソフトウエアエンジニアリング株式会社 Data storage method and system and data storage processing recording medium
JP2000031956A (en) * 1998-07-15 2000-01-28 Nippon Telegr & Teleph Corp <Ntt> Personal secret information shared communication method and system device
JP4366620B2 (en) * 1999-12-15 2009-11-18 横河電機株式会社 Agent-based production system
JP3606148B2 (en) * 2000-01-06 2005-01-05 日本電気株式会社 Digital content usage control method and system
KR100381010B1 (en) * 2000-12-28 2003-04-26 한국전자통신연구원 Apparatus for Internet Key Exchange and Supporting Method for Security Service using it
JP2004046685A (en) * 2002-07-15 2004-02-12 Lecip Corp System and method for transaction
US7143288B2 (en) * 2002-10-16 2006-11-28 Vormetric, Inc. Secure file system server architecture and methods
KR100502066B1 (en) * 2002-10-31 2005-07-25 한국전자통신연구원 Method and system for managing a secret key
US7100047B2 (en) * 2003-01-23 2006-08-29 Verdasys, Inc. Adaptive transparent encryption
JP4792196B2 (en) 2003-03-27 2011-10-12 三洋電機株式会社 Data input / output method, and storage device and host device capable of using the method
JP4891521B2 (en) 2003-03-28 2012-03-07 三洋電機株式会社 Data input / output method, and storage device and host device capable of using the method
US7827416B2 (en) 2004-08-26 2010-11-02 Mitsubishi Denki Kabushiki Kaisha Key management apparatus, document security and editing system, and key management method
JP4671340B2 (en) * 2005-07-12 2011-04-13 株式会社日立ソリューションズ How to save / read data from / to external storage media
JP2007026105A (en) * 2005-07-15 2007-02-01 Fuji Xerox Co Ltd Device, method, and program for file management
WO2007142072A1 (en) * 2006-06-09 2007-12-13 Heartland Co., Ltd. Terminal device and data managing system using the same
US7933413B2 (en) 2007-02-02 2011-04-26 Microsoft Corporation Key exchange verification
JP2008217300A (en) * 2007-03-02 2008-09-18 Hitachi Software Eng Co Ltd System and method for encrypting and decrypting file with biological information
KR100746689B1 (en) * 2007-03-12 2007-08-06 (주)테르텐 Method and apparutus for playing digital rights management contents
EP2017767A4 (en) 2007-04-10 2009-12-30 Hitachi Software Eng File management system and method, and mobile terminal
JP2008276456A (en) 2007-04-27 2008-11-13 Hitachi Software Eng Co Ltd File management system and method, and mobile terminal device
JP5134894B2 (en) * 2007-09-07 2013-01-30 株式会社日立製作所 Storage apparatus and encryption key changing method
JP5158590B2 (en) * 2007-12-21 2013-03-06 Necカシオモバイルコミュニケーションズ株式会社 Network system and program
WO2009104720A1 (en) * 2008-02-22 2009-08-27 日本電気株式会社 Resource usage control system, method of controlling resource usage, program for controlling resource usage
JP2010039567A (en) * 2008-07-31 2010-02-18 Toshiba Corp Distribution device and management device
JP2010092288A (en) * 2008-10-08 2010-04-22 Mitsubishi Electric Corp File management method, management terminal, information processing terminal, file management system, and file management program
JP2010109919A (en) * 2008-10-31 2010-05-13 Toshiba Corp Information processing apparatus, encryption/decryption system, and encryption/decryption method
JP5730488B2 (en) * 2010-01-18 2015-06-10 中国電力株式会社 Information processing system
JP5673045B2 (en) * 2010-12-03 2015-02-18 株式会社リコー Embedded devices, encryption / decryption methods, programs
JP6806433B2 (en) * 2015-10-21 2021-01-06 株式会社エヌ・ティ・ティ・データ Key management system, key management device, key management method, and program
EP4071645A1 (en) * 2015-12-18 2022-10-12 Amazon Technologies Inc. Provisioning of a shippable storage device and ingesting data from the shippable storage device
WO2018134945A1 (en) * 2017-01-19 2018-07-26 株式会社クリエイターズ・ヘッド Information control program, information control system, and information control method
KR101889062B1 (en) 2018-02-28 2018-08-17 (주)케이포스트 Server and method for generating security file

Family Cites Families (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPS61177479A (en) * 1985-02-01 1986-08-09 沖電気工業株式会社 Coding key managing system
JPH05233460A (en) * 1992-02-21 1993-09-10 Toshiba Corp File protection system
JP3302086B2 (en) * 1993-03-31 2002-07-15 富士通エフ・アイ・ピー株式会社 Compression encryption device
JP2880045B2 (en) * 1993-06-01 1999-04-05 鐘紡株式会社 Data processing device
JPH07140896A (en) * 1993-11-19 1995-06-02 Hitachi Ltd File ciphering method and its device
JP3196618B2 (en) * 1995-11-24 2001-08-06 株式会社日立製作所 Personal computer and communication system using the same
JPH09179768A (en) * 1995-12-21 1997-07-11 Olympus Optical Co Ltd File ciphering system and file deciphering system
JP3516591B2 (en) * 1997-09-12 2004-04-05 日立ソフトウエアエンジニアリング株式会社 Data storage method and system and data storage processing recording medium

Also Published As

Publication number Publication date
JPH11149414A (en) 1999-06-02
JP2001027964A (en) 2001-01-30
JP3741357B2 (en) 2006-02-01

Similar Documents

Publication Publication Date Title
JP3516591B2 (en) Data storage method and system and data storage processing recording medium
US8918633B2 (en) Information processing device, information processing system, and program
JP4668619B2 (en) Device key
US7320076B2 (en) Method and apparatus for a transaction-based secure storage file system
US6378071B1 (en) File access system for efficiently accessing a file having encrypted data within a storage device
US20020112161A1 (en) Method and system for software authentication in a computer system
JP2008123490A (en) Data storage device
JPH10260903A (en) Group ciphering method and file ciphering system
JP5354001B2 (en) Information processing apparatus, information processing system, and program
KR20090095635A (en) Method for the secure storing of program state data in an electronic device
CN114175580B (en) Enhanced secure encryption and decryption system
KR100440037B1 (en) Document security system
JPH1198134A (en) Method for detecting fraudulent alteration and copy of cookie, and program storage medium
JP2002009762A (en) Information processing system, information processing method, and information processing apparatus, and program providing medium
JP2004070674A (en) Data protecting device, data protecting method and program in electronic data interchange system
JP3727819B2 (en) Database sharing system
JP4471129B2 (en) Document management system, document management method, document management server, work terminal, and program
JPH09251426A (en) File ciphering system and its control method, and cipher file reception system and its control method
JP2008129803A (en) File server, program, recording medium, and management server
JP2005165900A (en) Information leak prevention system
JP2004140715A (en) System and method for managing electronic document
JPH05233460A (en) File protection system
JPH11259366A (en) Device and method for protecting data in electronic data exchange system, and storage medium recorded with program for realizing the method
JPH10275115A (en) Data ciphering and storing method and system device
JPH10340232A (en) File copy preventing device, and file reader

Legal Events

Date Code Title Description
A61 First payment of annual fees (during grant procedure)

Free format text: JAPANESE INTERMEDIATE CODE: A61

Effective date: 20040120

R250 Receipt of annual fees

Free format text: JAPANESE INTERMEDIATE CODE: R250

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

Free format text: PAYMENT UNTIL: 20130130

Year of fee payment: 9

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

Free format text: PAYMENT UNTIL: 20160130

Year of fee payment: 12

R250 Receipt of annual fees

Free format text: JAPANESE INTERMEDIATE CODE: R250

R250 Receipt of annual fees

Free format text: JAPANESE INTERMEDIATE CODE: R250

EXPY Cancellation because of completion of term