JP2002259216A - Method for detecting electronic file alteration, method for describing electronic file for the same and communication equipment - Google Patents

Method for detecting electronic file alteration, method for describing electronic file for the same and communication equipment

Info

Publication number
JP2002259216A
JP2002259216A JP2001055439A JP2001055439A JP2002259216A JP 2002259216 A JP2002259216 A JP 2002259216A JP 2001055439 A JP2001055439 A JP 2001055439A JP 2001055439 A JP2001055439 A JP 2001055439A JP 2002259216 A JP2002259216 A JP 2002259216A
Authority
JP
Japan
Prior art keywords
file
unit
descriptor
file unit
record
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
JP2001055439A
Other languages
Japanese (ja)
Inventor
Hiroshi Ito
浩 伊藤
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.)
Mitsubishi Electric Corp
Original Assignee
Mitsubishi Electric Corp
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Mitsubishi Electric Corp filed Critical Mitsubishi Electric Corp
Priority to JP2001055439A priority Critical patent/JP2002259216A/en
Publication of JP2002259216A publication Critical patent/JP2002259216A/en
Pending legal-status Critical Current

Links

Landscapes

  • Storage Device Security (AREA)

Abstract

PROBLEM TO BE SOLVED: To detect the alteration of a portion that has been already received in a step in which a portion of an electronic file is receive and also to decide whether or not the entire electronic file is received. SOLUTION: A transmission source divides an original electronic file into file configuration units X(1) to X(N). Then, record units 240, etc., are produced in the following way, and the record units 240 are sequentially transmitted. In the production of a record unit, a descriptor H for checking the completeness of file units, an identifier F for checking whether or not the file units are the first part or the last part of an electronic file, and a descriptor C' for checking the completeness (meaning that preceding and subsequent file units are not omitted) of the consecutive relation of the file units are attached to the respective file units X.

Description

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

【0001】[0001]

【発明の属する技術分野】この発明は、テレビ、コンピ
ュータなどの情報端末で用いられて、取得したデジタル
コンテンツの完全性を検査するのに適した電子ファイル
の改ざん検出に係り、より詳細には、ビデオファイルな
どの大容量のデータを取得できる機能をもつ情報端末に
適用して好適な電子ファイルの改ざん検出方法、そのた
めの電子ファイルの記述方法および通信装置に関するも
のである。
BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to the detection of falsification of an electronic file used in an information terminal such as a television or a computer and suitable for checking the integrity of acquired digital content. The present invention relates to a method for detecting falsification of an electronic file suitable for an information terminal having a function of acquiring a large amount of data such as a video file, a method for describing an electronic file, and a communication apparatus.

【0002】[0002]

【従来の技術】図7を参照しながら、特開平11−19
6392に開示された電子画像の改ざん検出方法および
そのための電子ファイルの記述方法を説明する。図7は
ネットワークを通じて、送信元から送信される一つの電
子ファイルレコードを示す。図7において、A、B、
C、Dはそれぞれファイル単位である。原電子ファイル
(ユーザ情報)は、元来、ファイル単位A、B、C、D
のみから構成されており、図7に示された他の要素はネ
ットワーク送信での改ざんを検出するために送信元が付
与するものである。
2. Description of the Related Art Referring to FIG.
A method for detecting falsification of an electronic image and a method for describing an electronic file therefor will be described. FIG. 7 shows one electronic file record transmitted from a transmission source through a network. In FIG. 7, A, B,
C and D are file units, respectively. Original electronic files (user information) are originally file units A, B, C, D
The other elements shown in FIG. 7 are added by the transmission source to detect tampering in network transmission.

【0003】DAはファイル単位Aの改ざんを検出する
ための記述子であり、ファイル単位Bに付与されてい
る。DBはファイル単位Bの改ざんを検出するための記
述子であり、ファイル単位Dに付与されている。DCは
ファイル単位Cの改ざんを検出するための記述子であ
り、いずれのファイル単位にも埋め込まれない。DDは
ファイル単位Dの改ざんを検出するための記述子であ
り、ファイル単位Cに付与されている。
[0003] DA is a descriptor for detecting falsification of the file unit A, and is attached to the file unit B. DB is a descriptor for detecting falsification of the file unit B, and is attached to the file unit D. DC is a descriptor for detecting tampering in file unit C, and is not embedded in any file unit. DD is a descriptor for detecting falsification of the file unit D, and is attached to the file unit C.

【0004】Dallは図中、四角で囲んだ部分(ファ
イル単位A、B、C、D、記述子DA、DB、DD)の
改ざんを検出するための記述子、順序鍵は記述子を付与
する順番を暗号化したものである。順番は、ファイル単
位A、B、D、Cの順である。従って、上述の通り、記
述子DBはファイル単位Bの後のファイル単位Dに付与
され、記述子DDはファイル単位Dの後のファイル単位
Cに付与される。
[0004] In the figure, "Dall" is a descriptor for detecting falsification of a portion surrounded by a square (file units A, B, C, D, descriptors DA, DB, DD), and a sequence key is provided with a descriptor. The order is encrypted. The order is the file units A, B, D, and C. Therefore, as described above, the descriptor DB is assigned to the file unit D after the file unit B, and the descriptor DD is assigned to the file unit C after the file unit D.

【0005】記述子DC、Dall、順序鍵は、ファイ
ル単位とは別個に、最後に電子ファイルレコードに付与
される。この図において、ファイル単位の伝送順はA、
B、D、Cの順と仮定されている。
[0005] The descriptors DC, Dall, and order key are added to the electronic file record at the end separately from the file unit. In this figure, the transmission order in file units is A,
It is assumed that the order is B, D, C.

【0006】次に、送信先の動作について説明する。送
信先は、電子ファイルレコードの全てを受信すると、ま
ず順序鍵を復号して、ファイルの伝送順がA、B、D、
Cであることを知る。次に、図7の四角で囲んだ部分か
ら記述子Dallを計算し、伝送されたファイルレコー
ドに含まれる記述子Dallとこれを比較する。これら
が一致すれば、ファイルは改ざんなく完全であると判定
する。これが一致しない場合は、ファイルの一部が不完
全であると判定される。その不完全な部分は、記述子D
A、DBなどを用いて特定することができる。すなわ
ち、今ファイル単位Aの検査を行う場合を考えれば、受
信者はファイル単位Aから記述子DAを計算し、これを
伝送された記述子DAと比較すればよい。記述子DA、
DB、DC、DD、Dallを算出する関数としては、
ハッシュ関数その他の適切な関数などが用いられる。
Next, the operation of the transmission destination will be described. When the transmission destination receives all of the electronic file records, it first decrypts the order key, and the transmission order of the files is A, B, D,
Know that it is C. Next, the descriptor Dall is calculated from the portion enclosed by the rectangle in FIG. 7, and this is compared with the descriptor Dall included in the transmitted file record. If these match, the file is determined to be complete without tampering. If they do not match, it is determined that part of the file is incomplete. The incomplete part is the descriptor D
It can be specified using A, DB, or the like. That is, considering the case where the file unit A is to be checked, the receiver only needs to calculate the descriptor DA from the file unit A and compare this with the transmitted descriptor DA. Descriptor DA,
Functions for calculating DB, DC, DD, and Dall include:
A hash function or other appropriate function is used.

【0007】[0007]

【発明が解決しようとする課題】従来の電子ファイルの
改ざん検出方法および電子ファイルの改ざん検出方法お
よびそのための電子ファイルの記述方法は上記のように
構成されていたので、ファイル全体の取得が完結するま
でその完全性が検査できないという問題点があった。例
えば、ファイル単位A、B、記述子DAが取得された段
階で検査しても、ファイル単位Aの完全性と、ファイル
単位Bの前のファイル単位Aが欠落したりまたは改ざん
されたりしていない(もし欠落や改ざんがあれば、記述
子DAが一致しない)を検知できるだけであり、現在の
ところ最後に受信されたファイル単位Bの完全性を検査
することができない。さらに、ファイル単位Aがファイ
ルの先頭であるのか、ファイル単位Bがファイルの最後
であるのかなどを判定することができない。
Since the conventional electronic file falsification detection method, electronic file falsification detection method, and electronic file description method therefor are configured as described above, the acquisition of the entire file is completed. Until then, its integrity could not be checked. For example, even when the file units A and B and the descriptor DA are acquired, even if the inspection is performed, the integrity of the file unit A and the file unit A before the file unit B are not missing or falsified. (If missing or falsified, the descriptor DA does not match), it is not possible to check the integrity of the last file unit B received at the moment. Further, it is impossible to determine whether the file unit A is at the head of the file, the file unit B is at the end of the file, and the like.

【0008】この発明は、上記のような課題を解決する
ためになされたもので、電子ファイルの一部が受信され
た段階で、すでに受信された部分の改ざんを検出できる
とともに、電子ファイルの全体が受信されたか否かの判
定を可能とする電子ファイルの改ざん検出方法、そのた
めの電子ファイルの記述方式および通信装置を提供する
ことを目的とする。
SUMMARY OF THE INVENTION The present invention has been made to solve the above-described problems. When a part of an electronic file is received, it is possible to detect tampering of the already received part, It is an object of the present invention to provide a falsification detection method for an electronic file that can determine whether or not an electronic file has been received, a description method of the electronic file, and a communication device for that.

【0009】[0009]

【課題を解決するための手段】この発明に係る電子ファ
イルの改ざん検出方法は、一定順序で関係づけられる複
数のファイル単位を有する電子ファイルの改ざんを検出
する方法であって、各ファイル単位とそれに付与された
情報を用いてそのファイル単位の完全性を検査するステ
ップと、各ファイル単位とそれに付与された情報を用い
てそのファイル単位が電子ファイルの先頭のファイル単
位であるか否か、および最後のファイル単位であるか否
かを検査するステップと、各ファイル単位の直前と直後
の少なくとも一つのファイル単位および各ファイル単位
に付与された情報を用いて、それらのファイル単位の連
続関係の完全性を検査するステップとを備えたものであ
る。
An electronic file tampering detection method according to the present invention is a method of detecting tampering of an electronic file having a plurality of file units associated in a certain order, and includes a method of detecting each file unit and its corresponding file unit. Checking the integrity of the file unit by using the assigned information; determining whether the file unit is the first file unit of the electronic file by using each file unit and the information assigned to the file unit; Checking whether the file unit is a file unit, and, using at least one file unit immediately before and after each file unit and information given to each file unit, completeness of a continuity relationship between the file units. Inspection step.

【0010】この発明に係る通信装置は、順次送信され
てくるファイル単位を受信する受信部と、受信されたフ
ァイル単位について、上記の改ざん検出方法を実行する
改ざん検出部とを備えたものである。
[0010] A communication apparatus according to the present invention includes a receiving unit that receives sequentially transmitted file units, and a falsification detecting unit that executes the falsification detecting method for the received file units. .

【0011】この発明に係る電子ファイルの記述方法
は、一定順序で関係づけられる複数のファイル単位を有
する電子ファイルの記述方法であって、各ファイル単位
に、そのファイル単位の完全性を検査するための情報
と、そのファイル単位が電子ファイルの先頭のファイル
単位であるか否か、または最後のファイル単位であるか
否かを検査するための情報と、そのファイル単位と直前
または直後のファイル単位との連続関係の完全性を検査
するための情報とを付与するものである。
An electronic file description method according to the present invention is a method for describing an electronic file having a plurality of file units associated with each other in a certain order. Information for checking whether the file unit is the first file unit of the electronic file or the last file unit, and the file unit and the immediately preceding or following file unit. And information for checking the completeness of the continuity relation.

【0012】この発明に係る電子ファイルの記述方法
は、一定順序で関係づけられる複数のファイル単位を有
する電子ファイルの記述方法であって、各ファイル単位
に、そのファイル単位の関数である第1の記述子と、そ
のファイル単位の直前のファイル単位の関数である第2
の記述子と、そのファイル単位の直後のファイル単位の
関数である第3の記述子とを付与するものである。
An electronic file description method according to the present invention is a method for describing an electronic file having a plurality of file units associated in a fixed order, wherein each file unit has a first function which is a function of the file unit. The descriptor and the second file function that is the file unit immediately before the file unit
And a third descriptor which is a function of the file unit immediately after the file unit.

【0013】この発明に係る電子ファイルの記述方法
は、第2の記述子または第3の記述子が、直前または直
後のファイル単位の第1の記述子の関数であり、その長
さは元の第1の記述子よりも短いものである。
In the electronic file description method according to the present invention, the second descriptor or the third descriptor is a function of the first descriptor of the immediately preceding or succeeding file unit, and the length of the first descriptor is the original length. It is shorter than the first descriptor.

【0014】この発明に係る電子ファイルの記述方法
は、一定順序で関係づけられる複数のファイル単位を有
する電子ファイルの記述方法であって、各ファイル単位
に、そのファイル単位の関数である第1の記述子と、そ
のファイル単位の直前と直後の少なくとも一つのファイ
ル単位の関数である第2の記述子と、そのファイル単位
が電子ファイルの先頭であるか否か、または最後である
か否かを示す識別子とを付与するものである。
An electronic file description method according to the present invention is a method for describing an electronic file having a plurality of file units associated in a fixed order, wherein each file unit has a first function which is a function of the file unit. A descriptor, a second descriptor that is a function of at least one file unit immediately before and immediately after the file unit, and whether the file unit is the beginning or end of the electronic file. And an identifier shown.

【0015】この発明に係る電子ファイルの記述方法
は、識別子が、第1または第2の記述子の中に埋め込ま
れているものである。
In the electronic file description method according to the present invention, the identifier is embedded in the first or second descriptor.

【0016】この発明に係る電子ファイルの記述方法
は、第2の記述子は、直前または直後のファイル単位の
第1の記述子の関数であり、その長さは元の第1の記述
子よりも短いものである。
In the electronic file description method according to the present invention, the second descriptor is a function of the first descriptor in the immediately preceding or succeeding file unit, and its length is longer than that of the original first descriptor. Is also short.

【0017】この発明に係る電子ファイルの記述方法
は、記述子および識別子の少なくともいずれかは暗号化
されているものである。
In the electronic file description method according to the present invention, at least one of the descriptor and the identifier is encrypted.

【0018】この発明に係る通信装置は、上記のいずれ
かの電子ファイルの記述方法を実行するファイル記述部
と、ファイル記述部で作成されたファイル単位を順次送
信する送信部とを備えたものである。
A communication device according to the present invention includes a file description unit for executing any one of the above-described electronic file description methods, and a transmission unit for sequentially transmitting file units created by the file description unit. is there.

【0019】[0019]

【発明の実施の形態】以下、この発明の実施の一形態を
説明する。 実施の形態1.図1は、この発明の実施の形態1に係る
電子ファイルの改ざん検出方法を示すフローチャートで
ある。この検出方法は、テレビ、コンピュータなどの情
報端末で用いられて、取得したデジタルコンテンツの完
全性を検査するのに適しており、より詳細には、ビデオ
ファイルなどの大容量のデータを取得できる機能をもつ
情報端末に適用して好適である。
DETAILED DESCRIPTION OF THE PREFERRED EMBODIMENTS One embodiment of the present invention will be described below. Embodiment 1 FIG. FIG. 1 is a flowchart showing a method for detecting falsification of an electronic file according to Embodiment 1 of the present invention. This detection method is used in information terminals such as televisions and computers, and is suitable for checking the integrity of acquired digital contents. More specifically, a function capable of acquiring large amounts of data such as video files. It is suitable to be applied to an information terminal having.

【0020】電子ファイルの送信元となる通信装置は、
単一の電子ファイルを複数のファイル単位に分割し、各
ファイル単位にオーバーヘッド情報を付与してレコード
単位を生成し、これらのレコード単位を順次送出する。
電子ファイルの送信先となる通信装置は、この改ざん検
出方法を実行するために、順次送信されてくる複数のレ
コード単位を受信する受信部と、受信されたレコード単
位中のファイル単位について、この改ざん検出方法を実
行する改ざん検出部と、これらのファイル単位から元の
電子ファイルを再組立する組立部を備える。
The communication device from which the electronic file is transmitted is:
A single electronic file is divided into a plurality of file units, a record unit is generated by adding overhead information to each file unit, and these record units are sequentially transmitted.
In order to execute the falsification detection method, the communication device serving as the transmission destination of the electronic file includes a receiving unit that receives a plurality of record units sequentially transmitted, and a falsification unit for the file unit in the received record units. It includes a falsification detection unit that executes a detection method, and an assembling unit that reassembles the original electronic file from these file units.

【0021】次に、動作について説明する。図1のステ
ップST1で、送信先の改ざん検出部は、レコード単位
中のファイル単位とそれに付与された情報を用いて、そ
のファイル単位に改ざんまたは要素の欠落がないことを
検査する。この検出の詳細は、後述するが、例えば、フ
ァイル単位にそのハッシュ値が付与されているなら、送
信先では、そのファイル単位から計算したハッシュ値と
伝送されたハッシュ値を比較してそれらが一致したと
き、そのファイル単位は改ざんまたは要素の欠落がない
と判断する。以下、ファイル単位に改ざんまたは要素の
欠落がないときそのファイル単位は完全であるという。
Next, the operation will be described. In step ST1 of FIG. 1, the falsification detection unit of the transmission destination uses the file unit in the record unit and the information attached thereto to check that there is no falsification or missing element in the file unit. Although details of this detection will be described later, for example, if the hash value is assigned to each file, the destination compares the hash value calculated from the file unit with the transmitted hash value and determines that they match. Then, it is determined that the file unit has not been falsified or has no missing element. Hereinafter, a file unit is said to be complete when there is no tampering or missing elements in the file unit.

【0022】次に、ステップST2で、送信先の改ざん
検出部は、付与された情報を用いて、そのファイル単位
がファイル全体の先頭か否かを検査する。このステップ
で、そのファイル単位がファイルの先頭であるときに
は、そのファイル単位の前に他のファイル単位は存在し
ないことが理解される。
Next, in step ST2, the falsification detection unit of the transmission destination checks whether or not the file unit is the head of the entire file using the added information. In this step, when the file unit is the head of the file, it is understood that no other file unit exists before the file unit.

【0023】次に、ステップST3で、送信先の改ざん
検出部は、付与された情報を用いて、そのファイル単位
がファイル全体の末尾か否かを検査する。このステップ
で、そのファイル単位がファイルの末尾であるときに
は、そのファイル単位の後に他のファイル単位が存在し
ないことが理解される。
Next, in step ST3, the falsification detection unit of the transmission destination checks whether or not the file unit is the end of the entire file using the added information. In this step, when the file unit is at the end of the file, it is understood that no other file unit exists after the file unit.

【0024】さらに、ステップST4で、送信先の改ざ
ん検出部は、そのファイル単位に付与された情報とその
ファイル単位の直前のファイル単位または直後のファイ
ル単位を用いて、当該ファイル単位とその直前または直
後のファイル単位の間にファイル単位の欠落がないこと
を検査する。この検出は、例えば以下の実施の形態2か
ら7に関連して述べる方法で行うことができる。以下、
ファイル単位の前後のファイル単位が欠落していないと
き、そのファイル単位の「連続関係」は完全であるとい
う。ファイル単位がファイルの先頭(または最後)のと
きには、そのファイル単位の前の(または後ろの)関係
は、ステップST4で検査するまでもなく完全であると
判断される。
Further, in step ST4, the falsification detection unit of the transmission destination uses the information given to the file unit and the file unit immediately before or after the file unit, and uses the file unit and the file unit immediately before or after the file unit. Check that there are no missing file units between the immediately following file units. This detection can be performed, for example, by the method described in connection with Embodiments 2 to 7 below. Less than,
If a file unit before and after a file unit is not missing, the "continuous relationship" of that file unit is said to be complete. When the file unit is the head (or the end) of the file, the relationship before (or after) the file unit is determined to be complete without being checked in step ST4.

【0025】以上に述べたように、図1に示す電子ファ
イルの改ざん検出方法では、1)ファイル単位それ自体
が完全であること、2)ファイル単位がファイル全体の
先頭または末尾であること、3)ファイル単位の連続関
係が完全であることの3つの属性が、そのファイル単位
を中心とする局所的な情報だけから検知される。
As described above, in the electronic file tampering detection method shown in FIG. 1, 1) that the file unit itself is complete, 2) that the file unit is the beginning or end of the entire file, 3) The three attributes that the continuity of the file unit is complete are detected only from local information centered on the file unit.

【0026】従って、ステップST1またはステップS
T4で不完全であることが認識されれば、送信先の通信
装置は、その装置の使用者に不完全である旨を通知して
もよい。あるいは、送信先の通信装置は、送信元の通信
装置に、不完全と推定されるファイル単位を指定した自
動再送要求を送信してもよい。特に、個々のファイル単
位から元の電子ファイルを復元する必要がなく、個々の
ファイル単位に基づいて送信先が処理をする(例えばビ
デオのフレームを再現する)のであれば、ステップST
1またはステップST4の結果が好適でなければ、自動
再送要求すればよい。
Accordingly, step ST1 or step S
If it is recognized at T4 that the communication is incomplete, the destination communication device may notify the user of the device that the communication is incomplete. Alternatively, the communication device of the transmission destination may transmit an automatic retransmission request specifying a file unit presumed to be incomplete to the communication device of the transmission source. In particular, if there is no need to restore the original electronic file from individual file units, and the destination processes (eg, reproduces video frames) based on individual file units, step ST
If the result of step 1 or step ST4 is not suitable, an automatic retransmission request may be made.

【0027】ただし、次のように処理を進めてもよい。
すなわち、この後、ステップST3の検査結果に基づい
て、送信先の改ざん検出部は、ステップST5で、当該
ファイル単位は末尾であったか否かを判断し、判断結果
が否定的なら、処理はステップST1に戻り、次のファ
イル単位について完全性を検査する。もしステップST
5の判断結果が肯定的なら、処理はステップST6に進
む。
However, the processing may proceed as follows.
That is, thereafter, based on the inspection result in step ST3, the falsification detection unit of the transmission destination determines in step ST5 whether or not the file unit is at the end. If the determination result is negative, the process proceeds to step ST1. To check the integrity of the next file unit. If step ST
If the determination result at 5 is positive, the process proceeds to step ST6.

【0028】ステップST6では、ステップST1の検
査結果に基づいて、送信先の改ざん検出部は、ファイル
単位が完全であったか否かを判断し、判断結果が肯定的
なら、処理はステップST7に進む一方、判断結果が否
定的なら、処理はステップST9に進む。
In step ST6, the falsification detection unit of the transmission destination determines whether or not the file unit is complete based on the inspection result in step ST1, and if the determination result is affirmative, the process proceeds to step ST7. If the judgment result is negative, the process proceeds to step ST9.

【0029】ステップST7では、ステップST4の検
査結果に基づいて、送信先の改ざん検出部は、ファイル
単位の連続関係が完全であったか否かを判断し、判断結
果が肯定的なら、処理はステップST8に進む一方、判
断結果が否定的なら、処理はステップST9に進む。
In step ST7, based on the inspection result in step ST4, the falsification detection unit of the transmission destination determines whether or not the continuity relation of the file unit is complete. If the determination result is affirmative, the process proceeds to step ST8. On the other hand, if the judgment result is negative, the process proceeds to step ST9.

【0030】ステップST8では、完全に受信に成功し
た複数のレコード単位中のファイル単位から、送信先の
組立部は元の電子ファイルを再組立(復元)する。送信
先は、組み立てられた電子ファイルに基づいて、処理を
する(例えばビデオのフレームを再現する)。一方、ス
テップST9では、送信先の通信装置は、その装置の使
用者に不完全である旨を通知する。これに代えて、送信
先の通信装置は、送信元の通信装置に、不完全と推定さ
れるファイル単位を指定した自動再送要求を送信しても
よい。
In step ST8, the assembling unit of the transmission destination reassembles (restores) the original electronic file from the file units in the plurality of record units that have been completely successfully received. The transmission destination performs processing (for example, reproduces a video frame) based on the assembled electronic file. On the other hand, in step ST9, the communication device of the transmission destination notifies the user of the device that the communication is incomplete. Alternatively, the communication device of the transmission destination may transmit an automatic retransmission request specifying a file unit estimated to be incomplete to the communication device of the transmission source.

【0031】以上のように、この実施の形態1によれ
ば、送信先では、取得したファイル単位だけからその部
分に改ざんがないこととそのファイル単位の直前または
直後のファイル単位の欠落がないことを検知でき、さら
に取得したデータがファイルの全体なのか一部分なのか
を検知できるという効果がある。
As described above, according to the first embodiment, at the transmission destination, there is no falsification in only the acquired file unit, and there is no missing file unit immediately before or immediately after the file unit. And it is possible to detect whether the acquired data is the whole or a part of the file.

【0032】実施の形態2.送信先が上記の動作を行う
ために、送信元の通信装置は、以下に述べるいずれかの
実施の形態の電子ファイルの記述方法を実行するファイ
ル記述部と、ファイル記述部で作成されたファイル単位
を順次送信する送信部とを備える。図2は、この発明の
実施の形態2に係る電子ファイルの記述方法に基づいて
記述された電子ファイルレコードの構造を示す概略図で
ある。図において、240〜242は、ネットワークに
より送信元の通信装置から送信先の通信装置へ送信され
る電子ファイルレコードを構成するレコード単位であ
る。レコード単位240〜242の各々は、ファイル単
位X、記述子H、記述子C’、および識別子Fを格納す
る。
Embodiment 2 In order for the transmission destination to perform the above-described operation, the transmission source communication device includes a file description unit that executes the electronic file description method according to any of the embodiments described below, and a file unit created by the file description unit. And a transmission unit for sequentially transmitting the data. FIG. 2 is a schematic diagram showing the structure of an electronic file record described based on the electronic file description method according to Embodiment 2 of the present invention. In the figure, reference numerals 240 to 242 denote record units constituting an electronic file record transmitted from a transmission source communication device to a transmission destination communication device via a network. Each of the record units 240 to 242 stores a file unit X, a descriptor H, a descriptor C ′, and an identifier F.

【0033】X(1)〜X(N)は原電子ファイルを構
成するファイル単位である。すなわち送信元は、単一の
大容量の原電子ファイルをファイル単位X(1)〜X
(N)に分割する。送信元のアプリケーションで作成さ
れた原電子ファイル(ユーザ情報)は、元来、ファイル
単位X(1)〜X(N)のみから構成されており、図2
に示された他の要素H、C’、Fはネットワーク送信で
の改ざんを検出するために送信元が付与するオーバーヘ
ッド情報である。
X (1) to X (N) are file units constituting the original electronic file. That is, the transmission source transmits a single large-capacity original electronic file in file units X (1) to X (1)
(N). The original electronic file (user information) created by the transmission source application originally consists of only file units X (1) to X (N).
The other elements H, C ′, and F shown in are the overhead information given by the transmission source to detect tampering in network transmission.

【0034】H(1)〜H(N)は、与えられたファイ
ル単位X(1)〜X(N)のそれぞれの完全性を検査す
るための記述子である。例えば、レコード単位240に
着目すると、記述子H(1)は、ファイル単位X(1)
の完全性を検査するために、送信元によりレコード単位
240に格納されている。記述子H(1)は、ハッシュ
関数その他の適切な関数をファイル単位X(1)に適用
することにより得られる。従って、送信先が同じ方式で
記述子H(1)を推定し、受信されたレコード単位24
0の内部の記述子H(1)と推定結果を比較することに
より、単一のファイル単位X(1)の完全性を検査する
ことが可能である。
H (1) to H (N) are descriptors for checking the integrity of each of the given file units X (1) to X (N). For example, when focusing on the record unit 240, the descriptor H (1) corresponds to the file unit X (1)
Is stored in the record unit 240 by the transmission source to check the integrity of the record. The descriptor H (1) is obtained by applying a hash function or another appropriate function to the file unit X (1). Accordingly, the destination estimates the descriptor H (1) in the same manner, and the received record unit 24
By comparing the estimation result with the descriptor H (1) inside 0, it is possible to check the integrity of a single file unit X (1).

【0035】C’(1)〜C’(N)はファイル単位X
(1)〜X(N)の連続関係の完全性を検査するための
記述子である。例えば、レコード単位240において
は、記述子C’(1)は、レコード単位241の内部の
いずれかの情報、例えば、記述子H(2)またはファイ
ル単位X(2)に基づいて得られる。記述子H(2)を
そのまま記述子C’(1)にしてもよいし、記述子H
(2)またはファイル単位X(2)にハッシュ関数その
他の適切な関数を適用して記述子C’(1)を生成して
もよい。従って、送信先が同じ方式で後続の(直後の)
ファイル単位の情報に基づいて、記述子C’(1)を推
定し、受信されたレコード単位240の内部の記述子
C’(1)と推定結果を比較することにより、ファイル
単位X(1)とX(2)との連続関係の完全性を検査す
ることが可能である。
C '(1) to C' (N) are file units X
This is a descriptor for checking the completeness of the continuity relation of (1) to X (N). For example, in the record unit 240, the descriptor C ′ (1) is obtained based on any information inside the record unit 241, for example, the descriptor H (2) or the file unit X (2). The descriptor H (2) may be used as it is as the descriptor C ′ (1), or the descriptor H (2) may be used.
The descriptor C ′ (1) may be generated by applying a hash function or other appropriate function to (2) or the file unit X (2). Therefore, the transmission destination is the same as the subsequent (immediate)
By estimating the descriptor C ′ (1) based on the file unit information and comparing the estimation result with the descriptor C ′ (1) inside the received record unit 240, the file unit X (1) It is possible to check the integrity of the continuity relationship between X and X (2).

【0036】末尾のファイル単位X(N)に関しては、
後続のファイル単位との比較はないので、記述子C’
(N)には無価値でユニークなコードまたはビットが与
えられる。
Regarding the last file unit X (N),
Since there is no comparison with the subsequent file unit, the descriptor C '
(N) is given a valueless and unique code or bit.

【0037】F(1)〜F(N)は与えられたファイル
単位X(1)〜X(N)が全体のファイルレコードの先
頭であるか否か、および最後であるか否かを検査するた
めの識別子である。先頭のレコード単位240の識別子
F(1)には先頭を表すコードが与えられ、途中のレコ
ード単位241の識別子F(2)には途中を表すコード
が与えられ、末尾のレコード単位242の識別子F
(N)には末尾を表すコードが与えられる。従って、送
信先は、電子ファイルの全体を取得できたか否かを確認
することができる。
F (1) to F (N) check whether the given file unit X (1) to X (N) is the head of the entire file record and whether it is the end. Is an identifier for A code representing the beginning is given to the identifier F (1) of the first record unit 240, a code representing the middle is given to the identifier F (2) of the middle record unit 241 and the identifier F of the last record unit 242 is given.
(N) is given a code indicating the end. Therefore, the transmission destination can confirm whether or not the entire electronic file has been acquired.

【0038】以上のように、各レコード単位は、概略的
には、ペイロードとしてのファイル単位Xと、オーバー
ヘッド情報、すなわち記述子H、記述子C’、識別子F
を有する。ただし、各レコード単位のフォーマット、す
なわちファイル単位X、記述子H、記述子C’、識別子
Fの配列は、送信先でこれらを区別しながらレコード単
位から取り出せるのであれば、どのようなものでもよ
い。
As described above, each record unit is roughly composed of a file unit X as a payload and overhead information, that is, a descriptor H, a descriptor C ′, and an identifier F.
Having. However, the format of each record unit, that is, the array of the file unit X, the descriptor H, the descriptor C ′, and the identifier F may be any format as long as it can be extracted from the record unit while distinguishing them at the transmission destination. .

【0039】次に動作について説明する。今、まず一つ
のレコード単位240が送信先に受信され、続いてレコ
ード単位241が受信されたと仮定する。上記のように
送信先では、レコード単位240に含まれるファイル単
位X(1)の完全性は記述子H(1)を用いて検査され
る。このレコード単位240がファイルレコードの先頭
または最後であるかは識別子F(1)を用いて検査され
る。実際、このレコード単位240は先頭であるので、
送信先では先頭であることが検知され、ファイル単位X
(1)にとって、その直前のファイル単位(なし)との
連続関係は完全であることがわかる。
Next, the operation will be described. Now, it is assumed that one record unit 240 is first received by the transmission destination, and then that the record unit 241 is received. As described above, at the transmission destination, the integrity of the file unit X (1) included in the record unit 240 is checked using the descriptor H (1). Whether the record unit 240 is the beginning or end of the file record is checked using the identifier F (1). In fact, since this record unit 240 is the head,
At the destination, it is detected that it is the top, and the file unit X
For (1), it can be seen that the continuous relationship with the immediately preceding file unit (none) is complete.

【0040】ファイル単位X(1)とファイル単位X
(2)の連続関係は、2番目のレコード単位が受信され
たとき、それに含まれるいずれかの情報と、ファイル単
位X(1)に付与された記述子C’(1)を用いて上記
の手法で検査される。2番目に受信されたレコード単位
の情報に基づいて送信先で推定した記述子C’(1)
と、受信されたレコード単位240に格納された記述子
C’(1)とが一致すれば、ファイル単位X(1)とフ
ァイル単位X(2)の連続関係は完全であることがわか
る。他の場合には、送信先で2番目に受信されたレコー
ド単位は、送信元から2番目に送信されたレコード単位
241ではないということである。これは、レコード単
位241が欠落したか、傍受者により改ざんされたこと
を意味する。
File unit X (1) and file unit X
When the second record unit is received, the continuity relationship of (2) is determined by using any information included in the second record unit and the descriptor C ′ (1) given to the file unit X (1). Inspected by technique. Descriptor C '(1) estimated at the transmission destination based on the second record information received in units of records
And the descriptor C ′ (1) stored in the received record unit 240, it is understood that the continuous relationship between the file unit X (1) and the file unit X (2) is complete. In other cases, the second record unit received at the destination is not the second record unit 241 transmitted from the source. This means that the record unit 241 is missing or has been tampered with by an eavesdropper.

【0041】ファイル単位X(2)の完全性はレコード
単位241に付与された記述子H(2)を用いて検査さ
れる。以上のようにして、レコード単位240と241
を取得した段階で、ファイル単位X(1)とX(2)お
よびそれらの連続関係の完全性が確認される。
The integrity of the file unit X (2) is checked using the descriptor H (2) assigned to the record unit 241. As described above, the record units 240 and 241
Is obtained, the completeness of the file units X (1) and X (2) and their continuous relationship is confirmed.

【0042】以上のように、この実施の形態2によれ
ば、送信先では、取得したファイル単位だけからその部
分に改ざんがないこととそのファイル単位の直前または
直後のファイル単位の欠落がないことを検知でき、さら
に取得したデータがファイルの全体なのか一部分なのか
を検知できるという効果がある。
As described above, according to the second embodiment, at the transmission destination, there is no falsification in only the acquired file unit, and there is no missing file unit immediately before or immediately after the file unit. And it is possible to detect whether the acquired data is the whole or a part of the file.

【0043】実施の形態3.図3は、この発明の実施の
形態3に係る電子ファイルの記述方法に基づいて記述さ
れた電子ファイルレコードの構造を示す概略図である。
図において、240〜245は、ネットワークにより送
信元から送信先へ送信される電子ファイルレコードを構
成するレコード単位である。レコード単位240〜24
5の各々は、ファイル単位X、第1の記述子H、第2の
記述子C、および第3の記述子Dを格納する。
Embodiment 3 FIG. 3 is a schematic diagram showing a structure of an electronic file record described based on a description method of an electronic file according to Embodiment 3 of the present invention.
In the figure, 240 to 245 are record units constituting an electronic file record transmitted from a transmission source to a transmission destination via a network. Record unit 240 to 24
5 stores a file unit X, a first descriptor H, a second descriptor C, and a third descriptor D.

【0044】X(1)〜X(N)は、送信元のアプリケ
ーションで作成された原電子ファイル(ユーザ情報)を
構成するファイル単位である。レコード単位に与えられ
た番号240〜245は、送信元の原電子ファイル中の
ファイル単位の配列順序を表す。すなわち、図3に示さ
れた実施の形態に関しては、送信元は、レコード単位の
番号で示されるように、原電子ファイルのうちの最初の
部分をファイル単位X(1)にし、次の部分をファイル
単位X(N)にし、さらに次の部分をファイル単位X
(i−1)にし、さらに次の部分をファイル単位X
(i)にし、末尾の部分をファイル単位X(i+1)に
した。しかし、送信元は、240、243、244、2
45、242の順にレコード単位を送出する。
X (1) to X (N) are file units constituting an original electronic file (user information) created by the transmission source application. Numbers 240 to 245 given in record units represent the arrangement order of file units in the source electronic file of the transmission source. That is, in the embodiment shown in FIG. 3, the transmission source sets the first part of the original electronic file to the file unit X (1) and sets the next part to the next part, as indicated by the record unit number. File unit X (N), and the next part is file unit X
(I-1), and the next part is a file unit X
(I), and the last part is file unit X (i + 1). However, the sources are 240, 243, 244, 2
Record units are transmitted in the order of 45, 242.

【0045】H(1)〜H(N)は、与えられたファイ
ル単位X(1)〜X(N)のそれぞれの完全性を検査す
るための第1の記述子である。例えば、レコード単位2
40において、記述子H(1)は、ハッシュ関数その他
の適切な関数をファイル単位X(1)に適用することに
より得られる。
H (1) to H (N) are first descriptors for checking the integrity of each of the given file units X (1) to X (N). For example, record unit 2
At 40, the descriptor H (1) is obtained by applying a hash function or other suitable function to the file unit X (1).

【0046】C(1)〜C(N)はファイル単位X
(1)〜X(N)の連続関係の完全性を検査するための
第2の記述子である。例えば、レコード単位244にお
いては、第2の記述子C(i)は、直前のレコード単位
243の内部のファイル単位X(i−1)に関数を適用
して得られる。
C (1) to C (N) are file units X
(1) A second descriptor for checking the integrity of the continuity relation of X (N). For example, in the record unit 244, the second descriptor C (i) is obtained by applying a function to the file unit X (i-1) inside the immediately preceding record unit 243.

【0047】同じ関数を適用すれば、レコード単位24
4の第2の記述子C(i)は、直前のレコード単位24
3の第1の記述子H(i−1)と等しい。最初のレコー
ド単位240のファイル単位X(1)に関しては、直前
のファイル単位との比較はないので、記述子C(1)に
は無価値でユニークなコードまたはビットが与えられ
る。
If the same function is applied, the record unit 24
4, the second descriptor C (i) of the immediately preceding record unit 24
3 first descriptors H (i-1). Regarding the file unit X (1) of the first record unit 240, there is no comparison with the immediately preceding file unit, so that the descriptor C (1) is given a valueless and unique code or bit.

【0048】D(1)〜D(N)は、やはりファイル単
位X(1)〜X(N)の連続関係の完全性を検査するた
めの第3の記述子である。例えば、レコード単位244
においては、第3の記述子D(i)は、直後のレコード
単位245の内部のファイル単位X(i+1)に関数を
適用して得られる。
D (1) to D (N) are third descriptors for checking the integrity of the continuity relation of the file units X (1) to X (N). For example, record unit 244
In, the third descriptor D (i) is obtained by applying a function to the file unit X (i + 1) inside the immediately following record unit 245.

【0049】同じ関数を適用すれば、レコード単位24
4の第3の記述子D(i)は、直後のレコード単位24
5の第1の記述子H(i+1)と等しい。最後のレコー
ド単位242のファイル単位X(N)に関しては、直後
のファイル単位との比較はないので、記述子D(N)に
は無価値でユニークなコードまたはビットが与えられ
る。
If the same function is applied, a record unit 24
The third descriptor D (i) of the fourth record unit 24
5 equal to the first descriptor H (i + 1). Since the file unit X (N) of the last record unit 242 is not compared with the immediately following file unit, the descriptor D (N) is given a valueless and unique code or bit.

【0050】各レコード単位のフォーマット、すなわち
ファイル単位X、第1の記述子H、第2の記述子C、お
よび第3の記述子Dの配列は、送信先でこれらを区別し
ながらレコード単位から取り出せるのであれば、どのよ
うなものでもよい。
The format of each record unit, that is, the array of the file unit X, the first descriptor H, the second descriptor C, and the third descriptor D is determined from the record unit while distinguishing them at the transmission destination. Anything that can be taken out may be used.

【0051】次に動作について説明する。第1の記述子
H(1)〜H(N)は、対応するファイル単位X(1)
〜X(N)のデータの関数であり、例えばハッシュ関数
を用いた場合は、そのハッシュ値である。従って、送信
先が同じ関数で記述子Hを推定し、受信されたレコード
単位の内部の記述子Hと推定結果を比較することによ
り、個々のファイル単位Xの完全性を検査することが可
能である。
Next, the operation will be described. The first descriptors H (1) to H (N) correspond to the corresponding file units X (1)
X (N). For example, when a hash function is used, the function is a hash value. Therefore, the destination can estimate the descriptor H with the same function and compare the estimation result with the descriptor H inside the received record unit to check the integrity of each file unit X. is there.

【0052】第2の記述子C(i−1)〜C(N)は、
対応するファイル単位の直前のファイル単位のデータの
関数である。今、レコード単位244が送信先で受信さ
れたとする。すると、送信先は、直前のレコード単位の
ファイル単位(もし正規のレコード単位243ならファ
イル単位はX(i−1)である)の関数値(記述子C
(i)の推定結果)と、現在受信されたレコード単位2
44に格納された記述子C(i)を比較する。それらが
一致したとき、ファイル単位X(i−1)とX(i)の
連続関係は完全であることがわかる。他の場合には、直
前に受信されたレコード単位は、正規のレコード単位2
43ではないということである。これは、レコード単位
243が欠落したか、傍受者により改ざんされたことを
意味する。
The second descriptors C (i-1) to C (N) are:
It is a function of the file unit data immediately before the corresponding file unit. Now, it is assumed that the record unit 244 has been received at the transmission destination. Then, the transmission destination is the function value (descriptor C) of the file unit of the immediately preceding record unit (if the regular record unit 243, the file unit is X (i-1)).
(I) estimation result) and the currently received record unit 2
Compare the descriptor C (i) stored at 44. When they match, it is understood that the continuous relationship between the file units X (i-1) and X (i) is complete. In other cases, the record unit received immediately before is the regular record unit 2
It is not 43. This means that the record unit 243 is missing or has been tampered with by an eavesdropper.

【0053】上述したように、記述子Hと記述子Cの算
出に同じ関数を適用してもよい。この場合には、例え
ば、第2の記述子C(i)は直前の第1の記述子H(i
−1)と同じである。従って、送信先では、受信された
レコード単位の第2の記述子との比較に、既に算出した
直前の第1の記述子の推定結果を利用することができ、
第2の記述子の推定値を計算する必要はない。
As described above, the same function may be applied to the calculation of the descriptor H and the descriptor C. In this case, for example, the second descriptor C (i) replaces the immediately preceding first descriptor H (i
Same as -1). Therefore, the transmission destination can use the already calculated estimation result of the immediately preceding first descriptor for comparison with the received second descriptor of the record unit,
There is no need to calculate an estimate for the second descriptor.

【0054】上記のように、先頭のレコード単位240
の第2の記述子C(1)には無価値でユニークなコード
またはビットが与えられる。従って、受信されたレコー
ド単位の第2の記述子を参照することによって、そこに
含まれたファイル単位がファイルの先頭であるかどうか
を検査することができる。
As described above, the first record unit 240
Is given a valueless and unique code or bit. Therefore, by referring to the second descriptor of the received record unit, it can be checked whether or not the file unit included therein is the head of the file.

【0055】第3の記述子D(1)〜D(i+1)は、
対応するファイル単位の直後のファイル単位の関数であ
り、第2の記述子と同様にファイル単位の連続関係の完
全性を検査するのに用いられる。例えば、レコード単位
244に関しては、直後のレコード単位のファイル単位
(もし正規のレコード単位245ならファイル単位はX
(i+1)である)の関数値(記述子C(i)の推定結
果)と、既に受信されたレコード単位244に格納され
た記述子C(i)を比較する。それらが一致したとき、
ファイル単位X(i)とX(i+1)の連続関係は完全
であることがわかる。他の場合には、直後に受信された
レコード単位は、正規のレコード単位245ではないと
いうことである。これは、レコード単位245が欠落し
たか、傍受者により改ざんされたことを意味する。
The third descriptors D (1) to D (i + 1) are:
This is a file unit function immediately after the corresponding file unit, and is used to check the integrity of the file unit continuity relation like the second descriptor. For example, regarding the record unit 244, the file unit of the immediately following record unit (if the regular record unit 245, the file unit is X
(I + 1) is compared with the descriptor C (i) stored in the record unit 244 already received. When they match,
It can be seen that the continuous relationship between the file units X (i) and X (i + 1) is complete. In other cases, the record unit received immediately after is not the regular record unit 245. This means that the record unit 245 is missing or has been tampered with by an eavesdropper.

【0056】上述したように、記述子Hと記述子Dの算
出に同じ関数を適用してもよい。この場合には、例え
ば、第3の記述子D(i)は直後の第1の記述子H(i
+1)と同じである。従って、送信先では、既に先行し
て受信されたレコード単位の第3の記述子との比較に、
現在受信したレコード単位の検査のために算出した第1
の記述子の推定結果を利用することができ、第3の記述
子の推定値を計算する必要はない。
As described above, the same function may be applied to the calculation of the descriptor H and the descriptor D. In this case, for example, the third descriptor D (i) is the immediately following first descriptor H (i
+1). Therefore, at the destination, the comparison with the third descriptor of the record unit which has already been received earlier,
The first calculated for the currently received record-by-record check
Of the third descriptor need not be calculated.

【0057】最後のレコード単位242の第3の記述子
D(N)には無価値でユニークなコードまたはビットが
与えられる。従って、受信されたレコード単位の第3の
記述子を参照することによって、そこに含まれたファイ
ル単位がファイルの末尾であるかどうかを送信先が検査
することができる。
The third descriptor D (N) of the last record unit 242 is given a valueless and unique code or bit. Therefore, by referring to the third descriptor of the received record unit, the destination can check whether or not the file unit included therein is the end of the file.

【0058】以上のように、この実施の形態3によれ
ば、送信先では、取得したファイル単位だけからその部
分に改ざんがないこととそのファイル単位の直前または
直後のファイル単位の欠落がないことを検知でき、さら
に取得したデータがファイルの全体なのか一部分なのか
を検知できるという効果がある。
As described above, according to the third embodiment, at the transmission destination, there is no falsification in only the acquired file unit, and there is no missing file unit immediately before or immediately after the file unit. And it is possible to detect whether the acquired data is the whole or a part of the file.

【0059】実施の形態4.図4は、この発明の実施の
形態4に係る電子ファイルの記述方法に基づいて記述さ
れた電子ファイルレコードの構造を示す概略図である。
図4において、図3と共通する要素を示すには同一の符
号が使用される。
Embodiment 4 FIG. FIG. 4 is a schematic diagram showing the structure of an electronic file record described based on the electronic file description method according to Embodiment 4 of the present invention.
In FIG. 4, the same reference numerals are used to indicate elements common to FIG.

【0060】図4で、F’(1)〜F’(N)は、対応
するファイル単位X(1)〜X(N)が最後か否かを示
す第3の記述子を示す。この実施の形態4において、レ
コード単位240〜245の各々は、ファイル単位X、
第1の記述子H、第2の記述子C、および識別子F’を
格納する。
In FIG. 4, F '(1) to F' (N) indicate a third descriptor indicating whether or not the corresponding file unit X (1) to X (N) is the last. In the fourth embodiment, each of the record units 240 to 245 includes a file unit X,
The first descriptor H, the second descriptor C, and the identifier F ′ are stored.

【0061】ファイル単位X、第1の記述子Hおよび第
2の記述子Cは、上述の実施の形態3のそれらと同じも
のである。従って、第1の記述子H(1)〜H(N)の
おのおのにより、対応するファイル単位Xの個々の完全
性を検査することができる。また、第2の記述子C(i
−1)〜C(N)のおのおのにより、対応するファイル
単位とその直前のファイル単位の連続関係の完全性を検
査することができる。例えば、第2の記述子C(i)に
より、ファイル単位X(i−1)とX(i)の連続関係
の完全性を検査することができる。さらに先頭のレコー
ド単位240の第2の記述子C(1)にのみユニークな
コードまたはビットを与えることにより、ファイル単位
がファイルの先頭であるかどうかを検査することができ
る。
The file unit X, the first descriptor H, and the second descriptor C are the same as those of the third embodiment. Accordingly, each of the first descriptors H (1) to H (N) can check the individual integrity of the corresponding file unit X. Also, the second descriptor C (i
Each of -1) to C (N) can check the integrity of the continuous relationship between the corresponding file unit and the immediately preceding file unit. For example, the second descriptor C (i) can be used to check the integrity of the continuous relationship between the file units X (i-1) and X (i). Further, by giving a unique code or bit only to the second descriptor C (1) of the head record unit 240, it is possible to check whether the file unit is the head of the file.

【0062】実施の形態3では、第3の記述子D(1)
〜D(i+1)のおのおのにより、対応するファイル単
位とその直後のファイル単位の連続関係の完全性を検査
する。しかし、第2の記述子C(i−1)〜C(N)の
おのおのにより、対応するファイル単位とその直前のフ
ァイル単位の連続関係の完全性を検査することができ
る。ファイル単位と直後のファイル単位の連続関係は、
ファイル単位と直前のファイル単位の連続関係と等価で
あるので、一方の連続関係を検査すれば、他方の連続関
係の検査は必ずしも必要ではない。
In the third embodiment, the third descriptor D (1)
For each of .about.D (i + 1), the integrity of the continuity relationship between the corresponding file unit and the immediately following file unit is checked. However, each of the second descriptors C (i-1) to C (N) can check the integrity of the continuity relationship between the corresponding file unit and the immediately preceding file unit. The continuous relationship between the file unit and the file unit immediately after
Since the continuity relationship between the file unit and the immediately preceding file unit is equivalent, if one continuity relationship is checked, the other continuity relationship need not be checked.

【0063】従って、この実施の形態4では、実施の形
態3の第3の記述子Dを使用しない。但し、実施の形態
3では、最後のレコード単位242の第3の記述子D
(N)にのみユニークなコードまたはビットを与えるこ
とにより、ファイル単位がファイルの末尾であるかどう
かを検査することができる。そこで、ファイル単位がフ
ァイルの末尾であるか否かを検査できるように、実施の
形態4では、識別子F’を使用する。図4に示すよう
に、識別子F’は、例えば、対応するファイル単位が最
後のファイル単位X(N)のときだけ、1となるような
1ビットのフラグである。但し、この発明をこの開示に
限定する意図ではなく、識別子F’は、対応するファイ
ル単位X(1)〜X(N)が全体のファイルレコードの
先頭であるか否か、および最後であるか否かを検査する
ことができるように、1ビットより大きいビットが与え
られていてもよい。
Therefore, the fourth embodiment does not use the third descriptor D of the third embodiment. However, in the third embodiment, the third descriptor D of the last record unit 242
By giving a unique code or bit only to (N), it is possible to check whether the file unit is at the end of the file. Therefore, in the fourth embodiment, the identifier F ′ is used so that it can be checked whether or not the file unit is at the end of the file. As shown in FIG. 4, the identifier F ′ is, for example, a 1-bit flag that becomes 1 only when the corresponding file unit is the last file unit X (N). However, without intending to limit the present invention to this disclosure, the identifier F ′ indicates whether the corresponding file unit X (1) to X (N) is the head of the entire file record and whether it is the last. More than one bit may be provided so that it can be checked for no.

【0064】各レコード単位のフォーマット、すなわち
ファイル単位X、第1の記述子H、第2の記述子C、お
よび識別子F’の配列は、送信先でこれらを区別しなが
らレコード単位から取り出せるのであれば、どのような
ものでもよい。
The format of each record unit, that is, the array of the file unit X, the first descriptor H, the second descriptor C, and the identifier F 'can be extracted from the record unit while distinguishing them at the transmission destination. Anything may be used.

【0065】次に動作について説明する。上記の通り、
第1の記述子H(1)〜H(N)のおのおのにより、対
応するファイル単位Xの個々の完全性を送信先が検査す
ることができる。また、第2の記述子C(i−1)〜C
(N)のおのおのにより、対応するファイル単位とその
直前のファイル単位の連続関係の完全性を送信先が検査
することができる。さらに先頭のレコード単位240の
第2の記述子C(1)にのみユニークなコードまたはビ
ットを与えることにより、ファイル単位がファイルの先
頭であるかどうかを送信先が検査することができる。
Next, the operation will be described. As above,
Each of the first descriptors H (1) -H (N) allows the destination to check the individual integrity of the corresponding file unit X. Further, the second descriptors C (i-1) to C (i-1) to C
With each of (N), the transmission destination can check the integrity of the continuous relationship between the corresponding file unit and the immediately preceding file unit. Further, by giving a unique code or bit only to the second descriptor C (1) of the head record unit 240, the transmission destination can check whether the file unit is the head of the file.

【0066】さらに、識別子F’(1)〜F’(N)に
より、対応するファイル単位X(1)〜X(N)が最後
か否かを送信先が判断することができる。
Further, the transmission destination can determine whether or not the corresponding file units X (1) to X (N) are the last based on the identifiers F '(1) to F' (N).

【0067】以上のように、この実施の形態4によれ
ば、送信先では、取得したファイル単位だけからその部
分に改ざんがないこととそのファイル単位の直前または
直後のファイル単位の欠落がないことを検知でき、さら
に取得したデータがファイルの全体なのか一部分なのか
を検知できるという効果がある。また、そのファイル単
位がファイルの最後または先頭であることを示す識別子
は短くて(例えば上記のように1ビット)でよいので、
レコード単位の長さを短縮できる効果がある。また識別
子は関数で演算しなくても得られるので演算手順を簡略
化できる。
As described above, according to the fourth embodiment, at the transmission destination, there is no falsification in only the acquired file unit and that there is no missing file unit immediately before or immediately after the file unit. And it is possible to detect whether the acquired data is the whole or a part of the file. Also, since the identifier indicating that the file unit is the last or the beginning of the file may be short (for example, 1 bit as described above),
This has the effect of reducing the length of a record unit. Further, since the identifier can be obtained without performing the operation by the function, the operation procedure can be simplified.

【0068】実施の形態5.図5は、この発明の実施の
形態5に係る電子ファイルの記述方法に基づいて記述さ
れた電子ファイルレコードの構造を示す概略図である。
図5において、図3および図4と共通する要素を示すに
は同一の符号が使用される。
Embodiment 5 FIG. 5 is a schematic diagram showing the structure of an electronic file record described based on the electronic file description method according to Embodiment 5 of the present invention.
In FIG. 5, the same reference numerals are used to indicate elements common to FIGS. 3 and 4.

【0069】図5に示すように、この実施の形態5にお
いて、最後のレコード単位242を除くレコード単位2
40〜245の各々は、ファイル単位X、第1の記述子
Hおよび第2の記述子Cを格納する。
As shown in FIG. 5, in the fifth embodiment, the record unit 2 excluding the last record unit 242
Each of 40 to 245 stores a file unit X, a first descriptor H, and a second descriptor C.

【0070】最後のレコード単位242を除くレコード
単位240〜245における第1の記述子H(1)〜H
(i+1)のおのおのにより、対応するファイル単位X
の個々の完全性を検査することができる。
The first descriptors H (1) to H (H) in the record units 240 to 245 excluding the last record unit 242
For each of (i + 1), the corresponding file unit X
Can be checked for individual integrity.

【0071】第2の記述子Cは、上述の実施の形態3お
よび実施の形態4のそれらと同じものである。従って、
第2の記述子C(i−1)〜C(N)のおのおのによ
り、対応するファイル単位とその直前のファイル単位の
連続関係の完全性を検査することができる。例えば、第
2の記述子C(i)により、ファイル単位X(i−1)
とX(i)の連続関係の完全性を検査することができ
る。さらに先頭のレコード単位240の第2の記述子C
(1)にのみユニークなコードまたはビットを与えるこ
とにより、ファイル単位がファイルの先頭であるかどう
かを検査することができる。
The second descriptor C is the same as those in the third and fourth embodiments. Therefore,
Each of the second descriptors C (i-1) to C (N) can check the integrity of the continuity relationship between the corresponding file unit and the immediately preceding file unit. For example, by using the second descriptor C (i), the file unit X (i-1)
And X (i) can be checked for completeness. Further, the second descriptor C of the first record unit 240
By giving a unique code or bit only to (1), it is possible to check whether the file unit is the head of the file.

【0072】この実施の形態5では、ファイル単位がフ
ァイルの末尾であるかどうかを検査するための実施の形
態4の識別子F’を明示的には使用しない。その代わり
に、実施の形態5の最後のレコード単位242において
は、第1の記述子H’(N)には、ファイルの末尾であ
ることを示す識別子F’(N)が埋め込まれている。従
って、第1の記述子H(1)〜H(i+1)および〜
H’(N)により、対応するファイル単位X(1)〜X
(N)が最後か否かを送信先が判断することができる。
In the fifth embodiment, the identifier F ′ of the fourth embodiment for checking whether the file unit is at the end of the file is not explicitly used. Instead, in the last record unit 242 of the fifth embodiment, the identifier F ′ (N) indicating the end of the file is embedded in the first descriptor H ′ (N). Therefore, the first descriptors H (1) to H (i + 1) and to
By H ′ (N), corresponding file units X (1) to X (X)
The destination can determine whether or not (N) is the last.

【0073】より具体的には、最後のレコード単位24
2を除くレコード単位240〜245の第1の記述子H
(1)〜H(i+1)は、ハッシュ関数その他の適切な
関数を、対応するファイル単位X(1)〜X(i+1)
に適用することにより得られる。送信元は関数の演算結
果をそのまま第1の記述子H(1)〜H(i+1)とし
て用いる。これに対して、最後のレコード単位242に
関しては、ファイル単位X(N)に上記関数を適用して
演算結果H(N)を求めた後、この演算結果H(N)の
末尾の一つのビットに1を加えることで、記述子H’
(N)を求める。つまり、演算結果H(N)と記述子
H’(N)は、末尾の一つまたは二つのビットが異な
る。
More specifically, the last record unit 24
The first descriptor H of the record units 240 to 245 excluding 2
(1) to H (i + 1) represent a hash function or other appropriate function with a corresponding file unit X (1) to X (i + 1)
Obtained by applying The transmission source uses the operation result of the function as it is as the first descriptors H (1) to H (i + 1). On the other hand, for the last record unit 242, the above function is applied to the file unit X (N) to calculate the operation result H (N), and then one bit at the end of the operation result H (N). By adding 1 to the descriptor H '
(N) is obtained. That is, the operation result H (N) and the descriptor H ′ (N) are different in the last one or two bits.

【0074】各レコード単位のフォーマット、すなわち
ファイル単位X、第1の記述子HまたはH’および第2
の記述子Cの配列は、送信先でこれらを区別しながらレ
コード単位から取り出せるのであれば、どのようなもの
でもよい。
The format of each record unit, that is, the file unit X, the first descriptor H or H ′, and the second
The array of the descriptor C may be of any type as long as it can be extracted from the record unit while distinguishing them at the transmission destination.

【0075】次に動作について説明する。第1の記述子
H(1)〜H(i+1)およびH’(N)のおのおのに
より、対応するファイル単位Xの個々の完全性を送信先
が検査することができる。送信先は、受信されたレコー
ド単位240〜242に格納されたファイル単位X
(1)〜X(i+1)に送信元が適用したのと同じ関数
を適用し、この演算結果で得られた第1の記述子Hの推
定結果を、受信されたレコード単位240〜242に格
納された第1の記述子と比較する。推定結果と受信結果
が一致すれば、対応するファイル単位Xは完全であるこ
とがわかる。また、ここで一致するということは、最後
のレコード単位242を除くレコード単位240〜24
5の第1の記述子H(1)〜H(i+1)に関してあて
はまることであるから、同時に、そのファイル単位は末
尾でないことが判明する。
Next, the operation will be described. Each of the first descriptors H (1) -H (i + 1) and H '(N) allows the destination to check the individual integrity of the corresponding file unit X. The transmission destination is the file unit X stored in the received record units 240 to 242.
The same function as that applied by the transmission source is applied to (1) to X (i + 1), and the estimation result of the first descriptor H obtained by this operation result is stored in the received record units 240 to 242. The first descriptor is compared with the first descriptor. If the estimation result matches the reception result, it is known that the corresponding file unit X is complete. Here, a match means that the record units 240 to 24 except the last record unit 242
Since this is true for the first descriptors H (1) to H (i + 1) of No. 5, it is also found that the file unit is not the end.

【0076】また、第1の記述子Hの推定結果が、受信
結果の記述子Hと末尾の一つまたは二つのビットだけが
異なる場合、受信結果の記述子Hは、最後のレコード単
位242の第1の記述子H’(N)である。従って、対
応するファイル単位Xは完全であることがわかると同時
に、そのファイル単位は末尾のファイル単位X(N)で
あることが判明する。
When the estimation result of the first descriptor H differs from the reception result descriptor H only by one or two trailing bits, the reception result descriptor H is the last record unit 242 of the last record unit 242. This is the first descriptor H '(N). Therefore, the corresponding file unit X is found to be complete, and at the same time, it is found that the file unit is the last file unit X (N).

【0077】他の場合、ファイル単位は不完全であり、
ファイル単位中のビットが欠落したりまたは改ざんされ
たりしているということである。従って、送信先では、
ファイル単位X(1)〜X(N)の関数の一致または不
一致の状態と、ファイル単位が最後か否かの状態との排
他的論理和を得ることにより、全てのファイル単位X
(1)〜X(N)が正規か否かを判定することが可能で
ある。
In other cases, the file unit is incomplete and
Bits in a file unit are missing or altered. Therefore, at the destination,
By obtaining an exclusive OR of the matching or mismatching state of the functions of the file units X (1) to X (N) and the state of whether or not the file unit is the last, all file units X (N) are obtained.
It is possible to determine whether (1) to X (N) are normal.

【0078】また、上記の通り、第2の記述子C(i−
1)〜C(N)のおのおのにより、対応するファイル単
位とその直前のファイル単位の連続関係の完全性を送信
先が検査することができる。さらに先頭のレコード単位
240の第2の記述子C(1)にのみユニークなコード
またはビットを与えることにより、ファイル単位がファ
イルの先頭であるかどうかを送信先が検査することがで
きる。
As described above, the second descriptor C (i-
Each of 1) to C (N) allows the destination to check the integrity of the continuous relationship between the corresponding file unit and the immediately preceding file unit. Further, by giving a unique code or bit only to the second descriptor C (1) of the head record unit 240, the transmission destination can check whether the file unit is the head of the file.

【0079】この実施の形態5では、送信元は、ファイ
ルの末尾であることを示す識別子F’(N)を第1の記
述子H’(N)に埋め込むが、これに代えて、第2の記
述子C(N)に埋め込んでもよい。
In the fifth embodiment, the transmission source embeds the identifier F ′ (N) indicating the end of the file in the first descriptor H ′ (N). May be embedded in the descriptor C (N).

【0080】以上のように、この実施の形態5によれ
ば、送信先では、取得したファイル単位だけからその部
分に改ざんがないこととそのファイル単位の直前または
直後のファイル単位の欠落がないことを検知でき、さら
に取得したデータがファイルの全体なのか一部分なのか
を検知できるという効果がある。また、識別子F’を記
述子に埋め込むことにより、レコード単位の長さを短縮
することができる。
As described above, according to the fifth embodiment, at the transmission destination, there is no falsification of only the acquired file unit and that there is no missing file unit immediately before or immediately after the file unit. And it is possible to detect whether the acquired data is the whole or a part of the file. Further, by embedding the identifier F ′ in the descriptor, the length of the record unit can be reduced.

【0081】実施の形態6.図6は、この発明の実施の
形態6に係る電子ファイルの記述方法に基づいて記述さ
れた電子ファイルレコードの構造を示す概略図である。
実施の形態6は実施の形態5(図5)のバリエーション
であり、図6において、図5と本質的に共通する要素を
示すには同一の符号が使用される。
Embodiment 6 FIG. FIG. 6 is a schematic diagram showing the structure of an electronic file record described based on the electronic file description method according to Embodiment 6 of the present invention.
The sixth embodiment is a variation of the fifth embodiment (FIG. 5). In FIG. 6, the same reference numerals are used to indicate elements that are essentially common to FIG.

【0082】図6に示すように、この実施の形態6にお
いて、最後のレコード単位242を除くレコード単位2
40〜245の各々は、ファイル単位X、第1の記述子
Hおよび第2の記述子Cを格納する。また、最後のレコ
ード単位242は、ファイル単位X(N)、第1の記述
子H’(N)および第2の記述子C(N)を格納する。
各レコード単位のフォーマット、すなわちファイル単位
X、第1の記述子HまたはH’および第2の記述子Cの
配列は、送信先でこれらを区別しながらレコード単位か
ら取り出せるのであれば、どのようなものでもよい。か
かる概略的構造は、図5に示す実施の形態5と同じであ
る。
As shown in FIG. 6, in the sixth embodiment, record unit 2 except for the last record unit 242
Each of 40 to 245 stores a file unit X, a first descriptor H, and a second descriptor C. The last record unit 242 stores a file unit X (N), a first descriptor H ′ (N), and a second descriptor C (N).
The format of each record unit, that is, the array of the file unit X, the first descriptor H or H ', and the second descriptor C can be any type as long as they can be extracted from the record unit while distinguishing them at the destination. It may be something. Such a schematic structure is the same as that of the fifth embodiment shown in FIG.

【0083】ただし、この実施の形態6では、第2の記
述子C(i−1)〜C(N)の算出方法が実施の形態5
のそれと異なる。実施の形態2ないし実施の形態5で
は、第2の記述子C(i−1)〜C(N)は直前のファ
イル単位X(1)〜X(N−1)の関数であり、場合に
よっては、直前のファイル単位に付与された第1の記述
子H(1)〜H(N−1)そのものであった。これに対
して、この実施の形態6においては、第2の記述子C
(i−1)〜C(N)は直前のファイル単位に付与され
た第1の記述子H(1)〜H(N−1)にさらにある変
換を施した値(例えば、そのハッシュ値)であり、その
長さ(ビット長)は第1の記述子H(1)〜H(N−
1)よりも短い。その変換の関数をGとすると、図6に
示すように、例えば第2の記述子C(i)はG(H(i
−1))で表される。
However, in the sixth embodiment, the method of calculating the second descriptors C (i-1) to C (N) is the same as that in the fifth embodiment.
Different from that of In Embodiments 2 to 5, the second descriptors C (i-1) to C (N) are functions of the immediately preceding file units X (1) to X (N-1). Are the first descriptors H (1) to H (N-1) given to the immediately preceding file unit. On the other hand, in the sixth embodiment, the second descriptor C
(I-1) to C (N) are values obtained by further performing a certain conversion on the first descriptors H (1) to H (N-1) assigned to the immediately preceding file unit (for example, hash values thereof). And its length (bit length) is the first descriptor H (1) to H (N−N).
Shorter than 1). Assuming that the conversion function is G, as shown in FIG. 6, for example, the second descriptor C (i) is G (H (i
-1)).

【0084】さらに実施の形態2ないし実施の形態5と
同様に、先頭のレコード単位240の第2の記述子C
(1)にのみユニークなコードまたはビットを与えるこ
とにより、ファイル単位がファイルの先頭であるかどう
かを検査することができる。
Further, similarly to the second to fifth embodiments, the second descriptor C of the head record unit 240
By giving a unique code or bit only to (1), it is possible to check whether the file unit is the head of the file.

【0085】次に動作について説明する。実施の形態5
と同様に、第1の記述子H(1)〜H(i+1)および
H’(N)のおのおのにより、対応するファイル単位X
の個々の完全性と、ファイル単位が最後であるかどうか
の属性を送信先が検査することができる。
Next, the operation will be described. Embodiment 5
Similarly, each of the first descriptors H (1) to H (i + 1) and H ′ (N) produces a corresponding file unit X
The destination can check the individual integrity of the file and the attributes of whether the file unit is last.

【0086】また、第2の記述子C(1)〜C(N)の
機能は実施の形態5のものと同一である。すなわち、第
2の記述子C(1)〜C(N)により、ファイル単位の
連続関係の完全性と、対応するファイル単位が先頭であ
るかどうかの属性が判定できる。但し、第2の記述子C
(i−1)〜C(N)は上記の方法で算出されているの
で、送信先では、直前のレコード単位の第1の記述子H
(1)〜H(N−1)にさらに上記と同じ変換を施して
第2の記述子の推定結果を算出し、受信されたレコード
単位240〜242に格納された第2の記述子と比較す
る。推定結果と受信結果が一致すれば、対応するファイ
ル単位Xと直前のファイル単位との連続性が完全である
ことがわかる。
The functions of the second descriptors C (1) to C (N) are the same as those of the fifth embodiment. That is, from the second descriptors C (1) to C (N), it is possible to determine the completeness of the continuity relation of the file unit and the attribute of whether or not the corresponding file unit is the first. However, the second descriptor C
Since (i-1) to C (N) are calculated by the above method, the transmission destination sets the first descriptor H of the immediately preceding record unit.
(1) to H (N-1) are further subjected to the same conversion as above to calculate the estimation result of the second descriptor, and are compared with the second descriptor stored in the received record units 240 to 242 I do. If the estimation result matches the reception result, it is understood that the continuity between the corresponding file unit X and the immediately preceding file unit is perfect.

【0087】以上のように、この実施の形態6によれ
ば、送信先では、取得したファイル単位だけからその部
分に改ざんがないこととそのファイル単位の直前または
直後のファイル単位の欠落がないことを検知でき、さら
に取得したデータがファイルの全体なのか一部分なのか
を検知できるという効果がある。また、第2の記述子が
第1の記述子であって、第1の記述子よりも短いので、
レコード単位の長さを短縮することができる。
As described above, according to the sixth embodiment, at the transmission destination, there is no falsification of only the acquired file unit and that there is no missing file unit immediately before or immediately after the file unit. And it is possible to detect whether the acquired data is the whole or a part of the file. Also, since the second descriptor is the first descriptor and is shorter than the first descriptor,
Record unit length can be reduced.

【0088】上記の実施の形態6は実施の形態5のバリ
エーションであるが、この実施の形態6の原理すなわち
直前のファイル単位Xに二度変換を施して第2の記述子
Cを得ることは、他の実施の形態2ないし実施の形態4
に応用してもよく、そのような応用は本発明の範囲内に
含まれる。さらに、実施の形態3では、第2の記述子C
に代えてまたは第2の記述子に加えて、直後のファイル
単位Xに二度変換を施して第3の記述子Dを得てもよ
い。
Although the sixth embodiment is a variation of the fifth embodiment, the principle of the sixth embodiment, that is, the conversion of the immediately preceding file unit X twice to obtain the second descriptor C is impossible. Other Embodiments 2 to 4
And such applications are included within the scope of the present invention. Further, in the third embodiment, the second descriptor C
Alternatively, or in addition to the second descriptor, a third descriptor D may be obtained by performing the conversion twice on the immediately subsequent file unit X.

【0089】実施の形態7.上記の実施の形態2ないし
実施の形態6では、ファイル単位X(1)〜X(N)に
付与する記述子はファイル単位X(1)〜X(N)の関
数値または関数値の関数値であった。また、識別子F
(図3)およびF’(図4)は簡単なコードであった。
しかし、ファイルの改ざんを防ぐため、これらの記述子
および識別子の少なくともいずれかを暗号化してもよ
い。これらの記述子および識別子だけでなくファイル単
位Xも含むレコード単位全体を暗号化してもよい。暗号
化の技術は、電子署名などに使われている暗号化技術、
公開鍵方式、共通鍵方式、その他の技術を用いることが
できる。以上のように、この実施の形態7によれば、フ
ァイルの改ざんを困難にするという効果がある。
Embodiment 7 In the second to sixth embodiments, the descriptors assigned to the file units X (1) to X (N) are the function values of the file units X (1) to X (N) or the function values of the function values. Met. Also, the identifier F
(FIG. 3) and F ′ (FIG. 4) were simple codes.
However, in order to prevent falsification of the file, at least one of these descriptors and identifiers may be encrypted. The entire record unit including the file unit X as well as these descriptors and identifiers may be encrypted. Encryption technologies include those used for digital signatures,
A public key system, a common key system, and other technologies can be used. As described above, according to the seventh embodiment, there is an effect that it is difficult to falsify a file.

【0090】[0090]

【発明の効果】以上のように、この発明によれば、各フ
ァイル単位とそれに付与された情報を用いてそのファイ
ル単位の完全性を検査するステップと、各ファイル単位
とそれに付与された情報を用いてそのファイル単位が電
子ファイルの先頭のファイル単位であるか否か、および
最後のファイル単位であるか否かを検査するステップ
と、各ファイル単位の直前と直後の少なくとも一つのフ
ァイル単位および各ファイル単位に付与された情報を用
いて、それらのファイル単位の連続関係の完全性を検査
するステップとを備えるように改ざん検出方法を構成し
たので、送信先では、取得したファイル単位だけからそ
の部分に改ざんがないこととそのファイル単位の直前ま
たは直後のファイル単位の欠落がないことを検知でき、
さらに取得したデータがファイルの全体なのか一部分な
のかを検知できるという効果がある。
As described above, according to the present invention, the step of checking the integrity of each file unit using each file unit and the information assigned thereto is performed. Checking whether the file unit is the first file unit of the electronic file and whether the file unit is the last file unit by using at least one file unit immediately before and immediately after each file unit, and Checking the integrity of the continuity of the file units by using the information given to the file units, so that the transmission destination, at the destination, uses only the acquired file units to Has not been tampered with and that there is no missing file unit immediately before or after the file unit,
Further, there is an effect that it is possible to detect whether the acquired data is the whole or a part of the file.

【0091】この発明によれば、順次送信されてくるフ
ァイル単位を受信する受信部と、受信されたファイル単
位について、上記の改ざん検出方法を実行する改ざん検
出部とを備えるように通信装置を構成したので、取得し
たファイル単位だけからその部分に改ざんがないことと
そのファイル単位の直前または直後のファイル単位の欠
落がないことを検知でき、さらに取得したデータがファ
イルの全体なのか一部分なのかを検知できるという効果
がある。
According to the present invention, a communication apparatus is configured to include a receiving unit that receives sequentially transmitted file units and a falsification detecting unit that executes the above-described falsification detection method for the received file units. Therefore, it is possible to detect that there is no tampering in that part only from the acquired file unit and that there is no omission of the file unit immediately before or immediately after that file unit, and to determine whether the acquired data is the whole or part of the file. There is an effect that it can be detected.

【0092】この発明によれば、各ファイル単位に、そ
のファイル単位の完全性を検査するための情報と、その
ファイル単位が電子ファイルの先頭のファイル単位であ
るか否か、または最後のファイル単位であるか否かを検
査するための情報と、そのファイル単位と直前または直
後のファイル単位との連続関係の完全性を検査するため
の情報とを付与するように電子ファイルの記述方法を構
成したので、送信先では、取得したファイル単位だけか
らその部分に改ざんがないこととそのファイル単位の直
前または直後のファイル単位の欠落がないことを検知で
き、さらに取得したデータがファイルの全体なのか一部
分なのかを検知できるという効果がある。
According to the present invention, for each file unit, information for checking the integrity of the file unit, whether the file unit is the first file unit of the electronic file, or the last file unit The description method of the electronic file is configured so as to add information for checking whether or not the file is a file and information for checking the integrity of a continuous relationship between the file unit and the immediately preceding or succeeding file unit. Therefore, the transmission destination can detect that there is no falsification in that part only from the acquired file unit and that there is no omission in the file unit immediately before or immediately after that file unit, and furthermore, that the acquired data is the whole or a part of the file. It has the effect of being able to detect what it is.

【0093】この発明によれば、各ファイル単位に、そ
のファイル単位の関数である第1の記述子と、そのファ
イル単位の直前のファイル単位の関数である第2の記述
子と、そのファイル単位の直後のファイル単位の関数で
ある第3の記述子とを付与するように電子ファイルの記
述方法を構成したので、送信先では、取得したファイル
単位だけからその部分に改ざんがないこととそのファイ
ル単位の直前または直後のファイル単位の欠落がないこ
とを検知でき、さらに取得したデータがファイルの全体
なのか一部分なのかを検知できるという効果がある。
According to the present invention, for each file unit, the first descriptor which is a function of the file unit, the second descriptor which is a function of the file unit immediately before the file unit, and the file unit Since the description method of the electronic file is configured so as to add the third descriptor which is a function of the file unit immediately after the file unit, at the transmission destination, there is no falsification in that part only from the acquired file unit and that file is not altered. It is possible to detect that there is no missing file unit immediately before or immediately after the unit, and it is also possible to detect whether the acquired data is the entire file or a part of the file.

【0094】この発明によれば、第2の記述子または第
3の記述子は、直前または直後のファイル単位の第1の
記述子の関数であり、その長さは元の第1の記述子より
も短いように電子ファイルの記述方法を構成したので、
レコード単位の長さを短縮できるという効果がある。
According to the present invention, the second descriptor or the third descriptor is a function of the first descriptor immediately before or immediately after the file unit, and the length of the second descriptor or the third descriptor is the original first descriptor. Since the electronic file description method was configured to be shorter than
The effect is that the length of a record unit can be reduced.

【0095】この発明によれば、各ファイル単位に、そ
のファイル単位の関数である第1の記述子と、そのファ
イル単位の直前と直後の少なくとも一つのファイル単位
の関数である第2の記述子と、そのファイル単位が電子
ファイルの先頭であるか否か、または最後であるか否か
を示す識別子とを付与するように電子ファイルの記述方
法を構成したので、送信先では、取得したファイル単位
だけからその部分に改ざんがないこととそのファイル単
位の直前または直後のファイル単位の欠落がないことを
検知でき、さらに取得したデータがファイルの全体なの
か一部分なのかを検知できるという効果がある。また、
そのファイル単位がファイルの最後または先頭であるこ
とを示す識別子は短くてよいので、レコード単位の長さ
を短縮できる効果がある。また識別子は関数で演算しな
くても得られるので演算手順を簡略化できる。
According to the present invention, for each file unit, a first descriptor which is a function of the file unit and a second descriptor which is a function of at least one file unit immediately before and immediately after the file unit And an identifier indicating whether the file unit is the beginning or the end of the electronic file, the electronic file description method is configured. Therefore, it is possible to detect that there is no falsification in that part and that there is no loss of the file unit immediately before or immediately after the file unit, and it is also possible to detect whether the acquired data is the whole or a part of the file. Also,
Since the identifier indicating that the file unit is the last or the beginning of the file may be short, the length of the record unit can be shortened. In addition, since the identifier is obtained without performing the operation using a function, the operation procedure can be simplified.

【0096】この発明によれば、識別子が、第1または
第2の記述子の中に埋め込まれているように電子ファイ
ルの記述方法を構成したので、さらにレコード単位の長
さを短縮できるという効果がある。
According to the present invention, since the description method of the electronic file is configured so that the identifier is embedded in the first or second descriptor, the length of the record unit can be further reduced. There is.

【0097】この発明によれば、第2の記述子は、直前
または直後のファイル単位の第1の記述子の関数であ
り、その長さは元の第1の記述子よりも短いように電子
ファイルの記述方法を構成したので、レコード単位の長
さを短縮できるという効果がある。
According to the present invention, the second descriptor is a function of the first descriptor immediately before or immediately after the file unit, and its length is shorter than that of the original first descriptor. Since the file description method is configured, the length of the record unit can be reduced.

【0098】この発明によれば、記述子および識別子の
少なくともいずれかは暗号化されているように電子ファ
イルの記述方法を構成したので、ファイルの改ざんを困
難にするという効果がある。
According to the present invention, since the description method of the electronic file is configured such that at least one of the descriptor and the identifier is encrypted, there is an effect that it is difficult to falsify the file.

【0099】この発明によれば、上記の電子ファイルの
記述方法を実行するファイル記述部と、ファイル記述部
で作成されたファイル単位を順次送信する送信部とを備
えるように通信装置を構成したので、この通信装置から
ファイルを受け取る送信先では、取得したファイル単位
だけからその部分に改ざんがないこととそのファイル単
位の直前または直後のファイル単位の欠落がないことを
検知でき、さらに取得したデータがファイルの全体なの
か一部分なのかを検知できるという効果がある。
According to the present invention, the communication apparatus is configured to include the file description section for executing the above-described electronic file description method and the transmission section for sequentially transmitting the file units created by the file description section. However, the destination receiving the file from this communication device can detect that there is no tampering in that part only from the acquired file unit and that there is no missing file unit immediately before or after the file unit, and furthermore, the acquired data can be detected. This has the effect of being able to detect whether it is a whole or a part of a file.

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

【図1】 この発明の実施の形態1に係る電子ファイル
の改ざん検出方法の動作を示すフローチャートである。
FIG. 1 is a flowchart showing an operation of an electronic file tampering detection method according to Embodiment 1 of the present invention.

【図2】 この発明の実施の形態2に係る電子ファイル
の記述方法に基づいて記述された電子ファイルレコード
の構造を示す概略図である。
FIG. 2 is a schematic diagram showing a structure of an electronic file record described based on an electronic file description method according to Embodiment 2 of the present invention.

【図3】 この発明の実施の形態3に係る電子ファイル
の記述方法に基づいて記述された電子ファイルレコード
の構造を示す概略図である。
FIG. 3 is a schematic diagram showing a structure of an electronic file record described based on an electronic file description method according to Embodiment 3 of the present invention.

【図4】 この発明の実施の形態4に係る電子ファイル
の記述方法に基づいて記述された電子ファイルレコード
の構造を示す概略図である。
FIG. 4 is a schematic diagram showing a structure of an electronic file record described based on an electronic file description method according to Embodiment 4 of the present invention.

【図5】 この発明の実施の形態5に係る電子ファイル
の記述方法に基づいて記述された電子ファイルレコード
の構造を示す概略図である。
FIG. 5 is a schematic diagram showing a structure of an electronic file record described based on an electronic file description method according to Embodiment 5 of the present invention.

【図6】 この発明の実施の形態6に係る電子ファイル
の記述方法に基づいて記述された電子ファイルレコード
の構造を示す概略図である。
FIG. 6 is a schematic diagram showing a structure of an electronic file record described based on an electronic file description method according to Embodiment 6 of the present invention.

【図7】 従来の電子ファイルの記述方法に基づいて記
述された電子ファイルレコードの構造を示す概略図であ
る。
FIG. 7 is a schematic diagram showing the structure of an electronic file record described based on a conventional electronic file description method.

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

240〜242 レコード単位、C(1)〜C(N)
第2の記述子、C’(1)〜C’(N) 記述子、D
(1)〜D(N) 第3の記述子、F(1)〜F(N)
識別子、F’(1)〜F’(N) 第3の識別子、H
(1)〜H(N)(第1の)記述子、H’(N) 第1
の記述子、X(1)〜X(N) ファイル単位。
240 to 242 Record units, C (1) to C (N)
Second descriptor, C '(1) to C' (N) descriptor, D
(1) to D (N) Third descriptor, F (1) to F (N)
Identifiers, F ′ (1) to F ′ (N) Third identifier, H
(1) to H (N) (first) descriptor, H '(N) first
, X (1) to X (N) file units.

Claims (10)

【特許請求の範囲】[Claims] 【請求項1】 一定順序で関係づけられる複数のファイ
ル単位を有する電子ファイルの改ざんを検出する方法で
あって、 各ファイル単位とそれに付与された情報を用いてそのフ
ァイル単位の完全性を検査するステップと、 各ファイル単位とそれに付与された情報を用いてそのフ
ァイル単位が前記電子ファイルの先頭のファイル単位で
あるか否か、および最後のファイル単位であるか否かを
検査するステップと、 各ファイル単位の直前と直後の少なくとも一つのファイ
ル単位および各ファイル単位に付与された情報を用い
て、それらのファイル単位の連続関係の完全性を検査す
るステップとを備えた電子ファイルの改ざん検出方法。
1. A method for detecting falsification of an electronic file having a plurality of file units related in a predetermined order, wherein the integrity of each file unit is checked using each file unit and information attached thereto. Checking each file unit and whether or not the file unit is the first file unit of the electronic file and the last file unit by using the information given thereto; Using at least one file unit immediately before and immediately after the file unit and information given to each file unit to check the integrity of the continuity of the file units.
【請求項2】 順次送信されてくるファイル単位を受信
する受信部と、受信されたファイル単位について、請求
項1記載の改ざん検出方法を実行する改ざん検出部とを
備えた通信装置。
2. A communication device comprising: a receiving unit that receives a sequentially transmitted file unit; and a falsification detecting unit that executes the falsification detecting method according to claim 1 for the received file unit.
【請求項3】 一定順序で関係づけられる複数のファイ
ル単位を有する電子ファイルの記述方法であって、各フ
ァイル単位に、 そのファイル単位の完全性を検査するための情報と、 そのファイル単位が前記電子ファイルの先頭のファイル
単位であるか否か、または最後のファイル単位であるか
否かを検査するための情報と、 そのファイル単位と直前または直後のファイル単位との
連続関係の完全性を検査するための情報とを付与するこ
とを特徴とする電子ファイルの記述方法。
3. A method for describing an electronic file having a plurality of file units associated in a predetermined order, wherein each file unit has information for checking the integrity of the file unit, and the file unit is Information for checking whether it is the first file unit or the last file unit of an electronic file, and the integrity of the continuity relationship between the file unit and the immediately preceding or succeeding file unit A description method of an electronic file, wherein the method further comprises:
【請求項4】 一定順序で関係づけられる複数のファイ
ル単位を有する電子ファイルの記述方法であって、各フ
ァイル単位に、 そのファイル単位の関数である第1の記述子と、 そのファイル単位の直前のファイル単位の関数である第
2の記述子と、 そのファイル単位の直後のファイル単位の関数である第
3の記述子とを付与することを特徴とする電子ファイル
の記述方法。
4. A method for describing an electronic file having a plurality of file units associated in a fixed order, wherein each file unit includes a first descriptor which is a function of the file unit, and a file descriptor immediately before the file unit. A second descriptor which is a file-based function and a third descriptor which is a file-based function immediately after the file unit.
【請求項5】 第2の記述子または第3の記述子は、直
前または直後のファイル単位の第1の記述子の関数であ
り、その長さは元の第1の記述子よりも短いことを特徴
とする請求項4記載の電子ファイルの記述方法。
5. The second or third descriptor is a function of the immediately preceding or following first descriptor of a file unit, and its length is shorter than the original first descriptor. The electronic file description method according to claim 4, wherein:
【請求項6】 一定順序で関係づけられる複数のファイ
ル単位を有する電子ファイルの記述方法であって、各フ
ァイル単位に、 そのファイル単位の関数である第1の記述子と、 そのファイル単位の直前と直後の少なくとも一つのファ
イル単位の関数である第2の記述子と、 そのファイル単位が電子ファイルの先頭であるか否か、
または最後であるか否かを示す識別子とを付与すること
を特徴とする電子ファイルの記述方法。
6. A method of describing an electronic file having a plurality of file units associated in a fixed order, wherein each file unit includes a first descriptor which is a function of the file unit, and a file descriptor immediately before the file unit. And a second descriptor which is a function of at least one file unit immediately after, and whether the file unit is the head of the electronic file,
Alternatively, an electronic file description method is provided in which an identifier indicating whether the file is the last is added.
【請求項7】 識別子が、第1または第2の記述子の中
に埋め込まれていることを特徴とする請求項6記載の電
子ファイルの記述方法。
7. The electronic file description method according to claim 6, wherein the identifier is embedded in the first or second descriptor.
【請求項8】 第2の記述子は、直前または直後のファ
イル単位の第1の記述子の関数であり、その長さは元の
第1の記述子よりも短いことを特徴とする請求項6また
は請求項7記載の電子ファイルの記述方法。
8. The method according to claim 1, wherein the second descriptor is a function of the first descriptor immediately before or immediately after the file unit, and has a shorter length than the original first descriptor. The electronic file description method according to claim 6 or 7.
【請求項9】 記述子および識別子の少なくともいずれ
かは暗号化されていることを特徴とする請求項4から請
求項8のいずれか1項記載の電子ファイルの記述方法。
9. The method for writing an electronic file according to claim 4, wherein at least one of the descriptor and the identifier is encrypted.
【請求項10】 請求項3から請求項9記載の電子ファ
イルの記述方法を実行するファイル記述部と、 ファイル記述部で作成されたファイル単位を順次送信す
る送信部とを備えた通信装置。
10. A communication device, comprising: a file description unit for executing the electronic file description method according to claim 3; and a transmission unit for sequentially transmitting file units created by the file description unit.
JP2001055439A 2001-02-28 2001-02-28 Method for detecting electronic file alteration, method for describing electronic file for the same and communication equipment Pending JP2002259216A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2001055439A JP2002259216A (en) 2001-02-28 2001-02-28 Method for detecting electronic file alteration, method for describing electronic file for the same and communication equipment

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2001055439A JP2002259216A (en) 2001-02-28 2001-02-28 Method for detecting electronic file alteration, method for describing electronic file for the same and communication equipment

Publications (1)

Publication Number Publication Date
JP2002259216A true JP2002259216A (en) 2002-09-13

Family

ID=18915626

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2001055439A Pending JP2002259216A (en) 2001-02-28 2001-02-28 Method for detecting electronic file alteration, method for describing electronic file for the same and communication equipment

Country Status (1)

Country Link
JP (1) JP2002259216A (en)

Cited By (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2004068350A1 (en) * 2003-01-30 2004-08-12 Fujitsu Limited Data false alteration detecting method, data false alteration detecting device, and data false alteration detecting program
JP2009070026A (en) * 2007-09-12 2009-04-02 Mitsubishi Electric Corp Recording device, verification device, reproduction device, recording method, verification method, and program
JP2009229725A (en) * 2008-03-21 2009-10-08 Mitsubishi Electric Corp Device,method,and program for embedding and detecting digital watermark
JP2010107832A (en) * 2008-10-31 2010-05-13 Mitsubishi Electric Corp Hash production device, verification device, hash production program and hash production method
JP2011075867A (en) * 2009-09-30 2011-04-14 Fujitsu Ltd Signature generation device, signature verification device, signature generation method, signature verification method, signature generation program, and signature verification program
WO2012005016A1 (en) * 2010-07-08 2012-01-12 株式会社日立製作所 Method of calculating feature-amount of digital sequence, and apparatus for calculating feature-amount of digital sequence

Cited By (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2004068350A1 (en) * 2003-01-30 2004-08-12 Fujitsu Limited Data false alteration detecting method, data false alteration detecting device, and data false alteration detecting program
US7721113B2 (en) 2003-01-30 2010-05-18 Fujitsu Limited Data alteration detecting method, data alteration detecting device and data alteration detecting program
JP2009070026A (en) * 2007-09-12 2009-04-02 Mitsubishi Electric Corp Recording device, verification device, reproduction device, recording method, verification method, and program
JP2009229725A (en) * 2008-03-21 2009-10-08 Mitsubishi Electric Corp Device,method,and program for embedding and detecting digital watermark
JP2010107832A (en) * 2008-10-31 2010-05-13 Mitsubishi Electric Corp Hash production device, verification device, hash production program and hash production method
JP2011075867A (en) * 2009-09-30 2011-04-14 Fujitsu Ltd Signature generation device, signature verification device, signature generation method, signature verification method, signature generation program, and signature verification program
US8667302B2 (en) 2009-09-30 2014-03-04 Fujitsu Limited Signature generating device and method, signature verifying device and method, and computer product
WO2012005016A1 (en) * 2010-07-08 2012-01-12 株式会社日立製作所 Method of calculating feature-amount of digital sequence, and apparatus for calculating feature-amount of digital sequence
JP2012018549A (en) * 2010-07-08 2012-01-26 Hitachi Ltd Method and device for calculating digital sequence feature amount

Similar Documents

Publication Publication Date Title
US11755693B1 (en) Authentication of encrypted media based on immutable ledgers
US9961398B2 (en) Method and device for switching video streams
US20080250240A1 (en) Remote Informed Watermark Detection System
JP4053424B2 (en) Robust checksum
KR20040098025A (en) Watermaking a digital object with a digital signature
CN104238819A (en) Detection method and system for display screen state in mobile terminal
WO2009152709A1 (en) Content identification method and system, content management client and server
CN110738657A (en) Video quality evaluation method and device, electronic equipment and storage medium
CN110545444A (en) tamper-proof monitoring method and system for IP video
CN113656825B (en) Text watermark embedding method, text tampering detection method, text watermark embedding device, text tampering detection device and electronic equipment
JP2002259216A (en) Method for detecting electronic file alteration, method for describing electronic file for the same and communication equipment
US20210099772A1 (en) System and method for verification of video integrity based on blockchain
US11683180B1 (en) Protecting digital media with nested hashing techniques
CN116132625A (en) Supervision method and device for transaction flow
EP3985989A1 (en) Detection of modification of an item of content
JP2003524932A (en) System and method for digitally marking files with removable marks
JP2019169877A (en) Monitoring system, monitoring method, and computer program
CN116266192A (en) Image data management method and system
CN115827940B (en) Method and device for archiving electronic files, electronic equipment and storage medium
JP4456574B2 (en) Compressed data transmission method
JP5941823B2 (en) Consistency confirmation method and system
CN113704176B (en) File scanning method, device, electronic equipment and storage medium
CN111935153B (en) CAN bus-based target message extraction method and device and storage medium
CN111428615B (en) Face recognition method, system and device of IPC (Internet of things) of cross-platform
US11038911B2 (en) Method and system for determining risk in automotive ECU components

Legal Events

Date Code Title Description
A977 Report on retrieval

Free format text: JAPANESE INTERMEDIATE CODE: A971007

Effective date: 20060522

A131 Notification of reasons for refusal

Free format text: JAPANESE INTERMEDIATE CODE: A131

Effective date: 20060530

A521 Request for written amendment filed

Free format text: JAPANESE INTERMEDIATE CODE: A523

Effective date: 20060720

A131 Notification of reasons for refusal

Free format text: JAPANESE INTERMEDIATE CODE: A131

Effective date: 20060822

A521 Request for written amendment filed

Free format text: JAPANESE INTERMEDIATE CODE: A523

Effective date: 20060915

A02 Decision of refusal

Free format text: JAPANESE INTERMEDIATE CODE: A02

Effective date: 20061010