JP2013046288A - Time stamp application device and time stamp verification device - Google Patents

Time stamp application device and time stamp verification device Download PDF

Info

Publication number
JP2013046288A
JP2013046288A JP2011183672A JP2011183672A JP2013046288A JP 2013046288 A JP2013046288 A JP 2013046288A JP 2011183672 A JP2011183672 A JP 2011183672A JP 2011183672 A JP2011183672 A JP 2011183672A JP 2013046288 A JP2013046288 A JP 2013046288A
Authority
JP
Japan
Prior art keywords
time stamp
file
ers
verification
files
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.)
Granted
Application number
JP2011183672A
Other languages
Japanese (ja)
Other versions
JP5881334B2 (en
Inventor
Hiroyuki Date
浩行 伊達
Masafumi Sato
雅史 佐藤
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.)
Secom Co Ltd
Original Assignee
Secom 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 Secom Co Ltd filed Critical Secom Co Ltd
Priority to JP2011183672A priority Critical patent/JP5881334B2/en
Publication of JP2013046288A publication Critical patent/JP2013046288A/en
Application granted granted Critical
Publication of JP5881334B2 publication Critical patent/JP5881334B2/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Abstract

PROBLEM TO BE SOLVED: To provide a time stamp application device capable of retaining relation among files to which one time stamp is applied, while enabling detection of falsification.SOLUTION: A scheduler part 42a designates a plurality of arbitrary files to be time stamp application targets. An ERS management file generation part 42c generates an ERS management file including relation among a plurality of arbitrary files. A time stamp and data file acquisition part 42b performs issuance request of one time stamp for the plurality of arbitrary files and the ERS management file to a time stamp station 5, and acquires a time stamp issued by the time stamp station 5 through a communication I/F part 41. An ERS file generation part 42d generates a verification file with which validity of the time stamp can be verified for each of the plurality of arbitrary files and the ERS management file.

Description

本発明は、複数のファイルに対して一つのタイムスタンプの発行要求をタイムスタンプ局に行い、タイムスタンプ局が発行した一つのタイムスタンプを複数のファイルに付与するタイムスタンプ付与装置に関する。また、本発明は、複数のファイルに対して一つ付与されたタイムスタンプの有効性をそれぞれのファイル毎に検証するタイムスタンプ検証装置に関する。   The present invention relates to a time stamp assigning apparatus that issues a request for issuing one time stamp to a plurality of files to a time stamp authority and assigns one time stamp issued by the time stamp authority to a plurality of files. The present invention also relates to a time stamp verification apparatus that verifies the validity of one time stamp assigned to a plurality of files for each file.

従来、複数のファイル(例えば、データファイル)をまとめたファイルを作成し、このまとめたファイルに対して一つのタイムスタンプの発行要求をタイムスタンプ局に行い、タイムスタンプ局が発行したタイムスタンプを、まとめたファイルに付与していた。   Conventionally, a file in which a plurality of files (for example, data files) are collected is created, one time stamp issuance request is made to the time stamp authority for the collected files, and the time stamp issued by the time stamp authority is It was given to the compiled file.

しかしながら、従来、タイムスタンプ付与対象である複数のファイルのうちの一つでもファイルが削除されると、タイムスタンプの有効性の検証の際にまとめたファイルを作成することができず、検証の失敗を検出し、タイムスタンプ付与対象のまとめたファイルを構成する全てのファイルの真正性を担保することができなくなる。   However, conventionally, if any one of the files that are subject to time stamping is deleted, it is not possible to create a summary file when verifying the validity of the time stamp. , And authenticity of all the files that constitute the files to be time stamped cannot be guaranteed.

そこで、タイムスタンプ付与対象となる複数のファイルから一つ以上のファイルが削除された場合でもタイムスタンプの有効性を検証できるようにするために、一つのタイムスタンプを複数のファイルに付与する際にファイルごとに個別にタイムスタンプの有効性を検証可能にするERS規格(RFC4998)が提案されている(例えば、非特許文献1)。   Therefore, when one time stamp is assigned to multiple files, it is possible to verify the validity of the time stamp even if one or more files are deleted from multiple files that are subject to time stamp assignment. An ERS standard (RFC 4998) that makes it possible to verify the validity of a time stamp for each file has been proposed (for example, Non-Patent Document 1).

図1は、従来のERS規格に対応したタイムスタンプ付与装置及びタイムスタンプ検証装置で用いられるデータファイルとERSファイルとの関係を説明する概念図である。ERS規格に対応したタイムスタンプ付与装置(図示せず)を用いて複数のデータファイル1,2,3,4に一つのタイムスタンプtを付与する場合、タイムスタンプtの生成要素である一つのハッシュ値(ハッシュツリーの頂点となるルートハッシュ)h1234を生成するために、以下の(1)〜(3)の工程を行う。
(1)ハッシュ関数Hを用いて計算されたデータファイル1のハッシュ値h1及びハッシュ関数Hを用いて計算されたデータファイル2のハッシュ値h2をまとめることによって生成されるハッシュ値h12を、ハッシュ関数Hを用いて計算する工程。
(2)ハッシュ関数Hを用いて計算されたデータファイル3のハッシュ値h3及びハッシュ値h12をまとめることによって生成されるハッシュ値h123を、ハッシュ関数Hを用いて計算する工程。
(3)ハッシュ関数Hを用いて計算されたデータファイル4のハッシュ値h4とハッシュ値h123をまとめることによって生成されるハッシュ値(ルートハッシュ)h1234を、ハッシュ関数Hを用いて計算する工程。
FIG. 1 is a conceptual diagram illustrating the relationship between a data file and an ERS file used in a time stamp assigning apparatus and a time stamp verification apparatus corresponding to the conventional ERS standard. When one time stamp t is assigned to a plurality of data files 1, 2, 3, and 4 using a time stamp assigning device (not shown) corresponding to the ERS standard, one hash that is a generation element of the time stamp t The following steps (1) to (3) are performed in order to generate a value (root hash serving as the vertex of the hash tree) h1234.
(1) A hash function h12 generated by combining the hash value h1 of the data file 1 calculated using the hash function H and the hash value h2 of the data file 2 calculated using the hash function H Calculating with H.
(2) A step of calculating a hash value h123 generated by combining the hash value h3 and the hash value h12 of the data file 3 calculated using the hash function H using the hash function H.
(3) A step of calculating a hash value (root hash) h1234 generated by combining the hash value h4 and the hash value h123 of the data file 4 calculated using the hash function H using the hash function H.

その後、タイムスタンプ付与装置は、タイムスタンプ局(TSA)aにハッシュ値h1234を送信し、タイムスタンプ局aにタイムスタンプtの生成を要求する。タイムスタンプ局aがハッシュ値h1234を受信すると、タイムスタンプ局aは、タイムスタンプ局aの秘密鍵を使用して電子署名を付与したタイムスタンプ・トークンを生成し、タイムスタンプ付与装置に返信する。   Thereafter, the time stamp assigning apparatus transmits the hash value h1234 to the time stamp authority (TSA) a, and requests the time stamp authority a to generate the time stamp t. When the time stamp authority a receives the hash value h1234, the time stamp authority a generates a time stamp token with an electronic signature using the private key of the time stamp authority a, and returns the time stamp token to the time stamp applier.

タイムスタンプ付与装置がタイムスタンプ・トークンを受け取ると、タイムスタンプ付与装置は、一つのタイムスタンプtをデータファイル1,2,3,4にそれぞれ付与するために、タイムスタンプtをコピーし、タイムスタンプt及び各ファイルのハッシュツリー情報を有する各ファイル用のERSファイルを作成する。ここで、各データファイルのハッシュツリー情報は、自身のハッシュ値(h1又はh2,h3,h4)から最後のハッシュ値(ルートハッシュh1234)を導出するのに必要最小限のハッシュ値を、リストの入れ子構造で保持する。図1に示す概念図においては、[]がリストを表す。また、ERS規格では、自身のハッシュ値を先頭のリストに含め、各リストの要素のハッシュ値は、昇順にソートされる。すなわち、図1におけるハッシュ値は、h1<h2,h12<h3,h123<h4の大小関係にある。   When the time stamp assigning device receives the time stamp token, the time stamp assigning device copies the time stamp t in order to assign one time stamp t to the data files 1, 2, 3, and 4, respectively. Create an ERS file for each file with t and hash tree information for each file. Here, the hash tree information of each data file includes the minimum hash value necessary for deriving the last hash value (root hash h1234) from its own hash value (h1 or h2, h3, h4). Hold in a nested structure. In the conceptual diagram shown in FIG. 1, [] represents a list. Further, in the ERS standard, the hash value of its own is included in the top list, and the hash values of the elements of each list are sorted in ascending order. That is, the hash values in FIG. 1 have a magnitude relationship of h1 <h2, h12 <h3, h123 <h4.

したがって、図1に示す概念図では、タイムスタンプ付与装置は、タイムスタンプt及びデータファイル1のハッシュツリー情報[[h1,h2],[h3],[h4]]を有するデータファイル1用のERSファイルと、タイムスタンプt及びデータファイル2のハッシュツリー情報[[h1,h2],[h3],[h4]]を有するデータファイル2用のERSファイルと、タイムスタンプt及びデータハッシュファイル3のハッシュツリー情報[[h12,h3],[h4]]を有するデータファイル3用のERSファイルと、タイムスタンプt及びデータファイル4のハッシュツリー情報[[h123,h4]]を有するデータファイル4用のERSファイルと、を作成する。   Therefore, in the conceptual diagram shown in FIG. 1, the time stamp assigning apparatus has the ERS for the data file 1 having the time stamp t and the hash tree information [[h1, h2], [h3], [h4]] of the data file 1. The file, the ERS file for the data file 2 having the time stamp t and the hash tree information [[h1, h2], [h3], [h4]] of the data file 2, and the hash of the time stamp t and the data hash file 3 ERS file for data file 3 having tree information [[h12, h3], [h4]] and ERS for data file 4 having time stamp t and hash tree information [[h123, h4]] of data file 4 Create a file.

なお、ERS規格では、ハッシュツリーの構造は任意である。ハッシュツリーの構造により、ルートハッシュを生成する工程が定まり、ハッシュツリー情報で保持されるハッシュ値のリストの構造も定まる。   In the ERS standard, the structure of the hash tree is arbitrary. The process of generating the root hash is determined by the structure of the hash tree, and the structure of the list of hash values held in the hash tree information is also determined.

このような各データファイル用のERSファイルを作成することによって、ERS規格に対応したタイムスタンプ検証装置は、タイムスタンプtの有効性を検証したいデータファイル(例えば、データファイル1)及びそれに対応するERSファイル(例えば、データファイル1用のERSファイル)があれば、同じタイムスタンプtが付与された他のデータファイル(例えば、データファイル2)の存在に関係なくタイムスタンプtの有効性を検証することができる。したがって、ERS規格に従ったシステムによれば、各ファイルの保存期間によって影響が及ぼされることなくファイルを処理することができる。   By creating such an ERS file for each data file, the time stamp verification device corresponding to the ERS standard can verify the validity of the time stamp t (for example, data file 1) and the corresponding ERS. If there is a file (for example, an ERS file for data file 1), the validity of the time stamp t is verified regardless of the existence of another data file (for example, data file 2) with the same time stamp t. Can do. Therefore, according to the system according to the ERS standard, the file can be processed without being affected by the retention period of each file.

RFC4998:Evidence Record Syntax(ERS)(2007.8)RFC4998: Evidence Record Syntax (ERS) (2007.8)

しかしながら、ERS規格では、他のデータファイルの存在の影響を受けないでタイムスタンプの有効性を検証できる一方で、一つのタイムスタンプが付与されたデータファイル間の関係(例えば、どのデータファイルと一緒にタイムスタンプを付与されたか、データファイル間の順序関係等)を保持する仕組みを有さない。例えば、図1に示す概念図におけるデータファイル1,2,3,4の並びは、ハッシュツリーの構造での末端ノードの配置であり、データファイルの順序とは無関係である。仮に末端ノードとデータファイル1,2,3,4の順序を対応させてハッシュツリーを構築したとしても、その結果として作成されるERSファイル中のハッシュツリー情報ではハッシュ値が昇順でソートされるので、データファイル1,2,3,4間の関係が保持されない。   However, while the ERS standard can verify the validity of a time stamp without being affected by the presence of other data files, the relationship between data files to which a single time stamp is assigned (for example, which data file Have a mechanism for retaining a time stamp or an order relationship between data files). For example, the arrangement of the data files 1, 2, 3, and 4 in the conceptual diagram shown in FIG. 1 is the arrangement of the end nodes in the hash tree structure, and is independent of the order of the data files. Even if the hash tree is constructed by associating the order of the end node and the data files 1, 2, 3, and 4, the hash values are sorted in ascending order in the hash tree information in the resulting ERS file. The relationship between the data files 1, 2, 3, 4 is not maintained.

また、ハッシュツリーの構造は任意であるので、ハッシュツリー情報のハッシュ値からハッシュツリーの末端ノードとしてデータファイル1,2,3,4を特定するのが困難である。さらに、ERSファイル中のタイムスタンプが同じデータファイルを特定することはできるが、このように特定されたデータファイルの集合がタイムスタンプ付与時に構築したハッシュツリーの末端ノードと過不足なく一致し、データファイルの追加又は削除が発生したか否かを確認する手段を有しない。   Further, since the structure of the hash tree is arbitrary, it is difficult to specify the data files 1, 2, 3, and 4 as the end nodes of the hash tree from the hash value of the hash tree information. Furthermore, although it is possible to identify data files having the same time stamp in the ERS file, the set of data files identified in this way matches the end nodes of the hash tree constructed at the time of time stamp assignment without any excess or deficiency, and data There is no means for confirming whether a file addition or deletion has occurred.

本発明の目的は、一つのタイムスタンプが付与されたファイル間の関係を、改竄検知可能に保持することができるタイムスタンプ付与装置を提供することである。   An object of the present invention is to provide a time stamp assigning apparatus capable of holding a relationship between files to which a single time stamp is assigned so that tampering can be detected.

本発明の他の目的は、一つのタイムスタンプを付与した複数のファイル間の関係及びファイルの追加又は削除の有無を検証することができ、また、これらの検証の際に、個々のファイルについて従来のERS規格によるタイムスタンプの検証を行う必要がないタイムスタンプ検証装置を提供することである。   Another object of the present invention is to verify the relationship between a plurality of files given a single time stamp and the presence / absence of addition or deletion of files. It is an object to provide a time stamp verification device that does not require time stamp verification according to the ERS standard.

かかる課題を解決するために、本発明は、複数のファイルに対して一つのタイムスタンプの発行要求をタイムスタンプ局に行い、タイムスタンプ局が発行したタイムスタンプを複数のファイルに付与するタイムスタンプ付与装置であって、タイムスタンプ付与対象となる複数の任意ファイルを指定するファイル指定部と、複数の任意ファイル間の関係を含む管理ファイルを作成する管理ファイル作成部と、複数の任意ファイル及び管理ファイルに対して一つのタイムスタンプの発行要求をタイムスタンプ局に行い、タイムスタンプ局が発行したタイムスタンプを取得するタイムスタンプ取得部と、複数の任意ファイル及び管理ファイルに対して、タイムスタンプの有効性を検証可能な検証用ファイルをそれぞれ作成する検証用ファイル作成部と、を備えることを特徴とするタイムスタンプ付与装置を提供する。これにより、タイムスタンプ付与対象として指定された複数の任意ファイル間の関係を改竄検知可能に保持することができる。   In order to solve such a problem, the present invention makes a time stamp issuing request to a time stamp authority for a plurality of files, and assigns a time stamp issued by the time stamp authority to a plurality of files. A device, a file designating unit for designating a plurality of arbitrary files to be time stamped, a management file creating unit for creating a management file including a relationship between the plurality of arbitrary files, and a plurality of arbitrary files and management files A time stamp issuance request is issued to the time stamp authority to obtain a time stamp issued by the time stamp authority, and the validity of the time stamp for multiple arbitrary files and management files File creation section for creating each verification file that can be verified Provides a time stamping device, characterized in that it comprises a. As a result, the relationship between a plurality of arbitrary files designated as time stamp assignment targets can be held so that tampering can be detected.

かかるタイムスタンプ付与装置において、タイムスタンプ取得部は、複数の任意ファイル及び管理ファイルのハッシュ値を用いてハッシュツリーを生成し、ハッシュツリーの頂点となるルートハッシュである一つのハッシュ値を用いて一つのタイムスタンプの発行要求を行い、検証用ファイル作成部は、タイムスタンプと前記複数の任意ファイルのうちの一つ又は前記管理ファイルに関連するハッシュツリーの情報とを含む前記検証用ファイルを作成するのが好ましい。   In such a time stamp assigning device, the time stamp acquisition unit generates a hash tree using hash values of a plurality of arbitrary files and management files, and uses one hash value that is a root hash that is the apex of the hash tree. The time stamp issuance request is made, and the verification file creation unit creates the verification file including the time stamp and one of the plurality of arbitrary files or hash tree information related to the management file. Is preferred.

かかるタイムスタンプ付与装置において、検証用ファイル作成部は、タイムスタンプを取得する度に管理ファイルの識別情報を記憶部に記憶させ、管理ファイル作成部は、複数のファイルにタイムスタンプを順次付与する場合、前回のタイムスタンプ取得時に記憶部に記憶された識別情報を含んだ前記管理ファイルを作成するのが好ましい。これにより、順次付与されるタイムスタンプの間に亘って複数の任意ファイル間の順序関係及び追加・削除の有無の検証が可能になる。   In such a time stamp assigning apparatus, the verification file creation unit stores the management file identification information in the storage unit every time the time stamp is acquired, and the management file creation unit sequentially assigns the time stamp to a plurality of files. Preferably, the management file including the identification information stored in the storage unit when the previous time stamp is acquired is created. As a result, it is possible to verify the order relationship between a plurality of arbitrary files and the presence / absence of addition / deletion between sequentially given time stamps.

また、本発明は、タイムスタンプを付与されたファイルのタイムスタンプの有効性を検証するタイムスタンプ検証装置であって、タイムスタンプが付与された複数の任意ファイルと、複数の任意ファイル間の関係を少なくとも含むタイムスタンプが付与された管理ファイルと、任意ファイル及び管理ファイルに付与されたタイムスタンプの有効性を検証可能な検証用ファイルとを対応付けて記憶する記憶部と、検証要求を受けると、検証対象のファイルとファイルに対応付いている検証用ファイルとからタイムスタンプの有効性を検証して検証結果を出力するタイムスタンプ検証部と、管理ファイルが検証対象とされた場合に、管理ファイルに付与されているタイムスタンプの検証をタイムスタンプ検証部に要求し、要求に対する検証結果が有効であると、複数の任意ファイル間の関係に基づいて任意ファイルを特定して前記記憶部に記憶されているか否かを判断する管理ファイル検証部と、を備えることを特徴とするタイムスタンプ検証装置を提供する。これにより、管理ファイルの内容に基づいて複数の任意ファイルのファイル間の関係の検証を行うことができる。   Further, the present invention is a time stamp verification device for verifying the validity of a time stamp of a file to which a time stamp is given, and a relationship between a plurality of arbitrary files to which time stamps are given and a plurality of arbitrary files. When receiving a verification request, a storage unit that stores at least a management file to which a time stamp including the arbitrary file and a verification file capable of verifying the validity of the time stamp given to the management file are stored, A time stamp verification unit that verifies the validity of the time stamp from the verification target file and the verification file associated with the file and outputs the verification result, and if the management file is a verification target, Requests the time stamp verification unit to verify the time stamp assigned, and the verification result for the request is A time stamp verification, comprising: a management file verification unit that determines whether an arbitrary file is identified and stored in the storage unit based on a relationship between a plurality of arbitrary files. Providing equipment. Thereby, the relationship between the files of a plurality of arbitrary files can be verified based on the contents of the management file.

かかるタイムスタンプ検証装置において、管理ファイル検証部は、管理ファイルのハッシュ値に複数の任意ファイルのハッシュ値を複数の任意ファイル間の関係に基づいて連結した連結データを作成し、連結データを含めて要求をタイムスタンプ検証部に行うのが好ましい。これにより、管理ファイルのタイムスタンプの有効性の検証と任意ファイル間の関係の検証と共に任意ファイルの改竄検知を行うことができ、個々の任意ファイルについてのタイムスタンプの検証を代替することができる。   In such a time stamp verification device, the management file verification unit creates linked data in which hash values of a plurality of arbitrary files are linked to a hash value of the management file based on a relationship between the plurality of arbitrary files, and includes the linked data The request is preferably made to the time stamp verification unit. As a result, it is possible to detect the falsification of the arbitrary file as well as verify the validity of the time stamp of the management file and the relationship between the arbitrary files, and the verification of the time stamp for each arbitrary file can be substituted.

かかるタイムスタンプ検証装置において、管理ファイルは、複数の任意ファイルのハッシュ値を更に有し、管理ファイル検証部は、要求に対する検証結果が有効であるときに、管理ファイルに含まれる任意ファイルのハッシュ値と、記憶部に記憶された任意ファイルから計算したハッシュ値とを比較し、比較の結果を、任意ファイルに付与されたタイムスタンプの有効性の検証結果とするのが好ましい。これにより、任意ファイルの改竄検知を行うことができ、個々の任意ファイルについてのタイムスタンプの有効性の検証を代替することができる。   In such a time stamp verification device, the management file further includes hash values of a plurality of arbitrary files, and the management file verification unit, when the verification result for the request is valid, the hash value of the arbitrary file included in the management file And the hash value calculated from the arbitrary file stored in the storage unit, and the comparison result is preferably used as the verification result of the validity of the time stamp assigned to the arbitrary file. As a result, it is possible to detect falsification of an arbitrary file and to substitute verification of the validity of the time stamp for each arbitrary file.

本発明のタイムスタンプ付与装置によれば、一つのタイムスタンプが付与されたファイル間の関係を、改竄検知可能に保持することができる。   According to the time stamp assigning apparatus of the present invention, it is possible to hold the relationship between files to which one time stamp is given so that falsification can be detected.

本発明のタイムスタンプ検証装置によれば、一つのタイムスタンプを付与した複数のファイル間の関係及びファイルの追加又は削除の有無の検証を行うことができ、また、これらの検証の際に、個々のファイルについて従来のERS規格によるタイムスタンプの検証を行う必要がない。   According to the time stamp verification apparatus of the present invention, it is possible to verify the relationship between a plurality of files given a single time stamp and the presence or absence of addition or deletion of files. There is no need to verify the time stamp according to the conventional ERS standard.

従来のERS規格に対応したタイムスタンプ付与装置及びタイムスタンプ検証装置で用いられるデータファイルとERSファイルとの関係を説明する概念図である。It is a conceptual diagram explaining the relationship between the data file and ERS file which are used with the time stamp provision apparatus and time stamp verification apparatus corresponding to the conventional ERS standard. 本発明によるタイムスタンプ付与装置及びタイムスタンプ検証装置が用いられる電子署名システムの構成図である。1 is a configuration diagram of an electronic signature system in which a time stamp assigning device and a time stamp verification device according to the present invention are used. 図2の電子署名サーバで用いられるデータファイルとERS管理ファイルとERSファイルとの関係を説明する概念図である。It is a conceptual diagram explaining the relationship between the data file used by the electronic signature server of FIG. 2, an ERS management file, and an ERS file. 図2の電子署名システムのデータファイル管理システムに記憶されるデータの形式の一例を示す図である。It is a figure which shows an example of the format of the data memorize | stored in the data file management system of the electronic signature system of FIG. 図2の電子署名サーバのタイムスタンプ付与処理フローチャートである。FIG. 3 is a time stamp assigning process flowchart of the electronic signature server of FIG. 2. 図2の電子署名サーバのタイムスタンプ検証処理フローチャートである。3 is a time stamp verification processing flowchart of the electronic signature server of FIG. 2. 図2の電子署名システムのデータファイル管理システムに記憶されるデータの形式の他の例を示す図である。It is a figure which shows the other example of the format of the data memorize | stored in the data file management system of the electronic signature system of FIG.

本発明によるタイムスタンプ付与装置及びタイムスタンプ検証装置の実施の形態を、図面を参照しながら説明する。
本発明によるタイムスタンプ付与装置は、タイムスタンプ付与対象として指定される複数の任意ファイル間の関係を含む管理ファイルを作成し、複数の任意ファイル及び管理ファイルに対して一つのタイムスタンプを取得し、複数の任意ファイル及び管理ファイルに対して、タイムスタンプの有効性を検証可能な検証用ファイルをそれぞれ作成する装置である。
Embodiments of a time stamp assigning apparatus and a time stamp verifying apparatus according to the present invention will be described with reference to the drawings.
The time stamp assigning apparatus according to the present invention creates a management file including a relationship between a plurality of arbitrary files designated as time stamp giving targets, acquires one time stamp for the plurality of arbitrary files and the management file, This is an apparatus that creates verification files that can verify the validity of time stamps for a plurality of arbitrary files and management files.

本発明によるタイムスタンプ検証装置は、タイムスタンプ検証対象となるタイムスタンプが付与された任意ファイル及び管理ファイルと、任意ファイル及び管理ファイルに付与されたタイムスタンプの有効性を検証可能な検証用ファイルとを対応付けて記憶し、複数の任意ファイル間の関係を含む管理ファイルに付与されたタイムスタンプの有効性の検証を、管理ファイルの検証用ファイルより行い、この検証結果に応じて複数の任意ファイル間の関係の検証を実行する装置である。   The time stamp verification apparatus according to the present invention includes an arbitrary file and a management file to which a time stamp to be verified is attached, a verification file that can verify the validity of the time stamp given to the arbitrary file and the management file, and Are stored in association with each other, and the validity of the time stamp given to the management file including the relationship between multiple arbitrary files is verified from the verification file of the management file. It is a device that performs verification of the relationship between the two.

図2は、本発明によるタイムスタンプ付与装置及びタイムスタンプ検証装置が用いられる電子署名システムの構成図である。図2に示す電子署名システムは、例えば、社内システムに適用され、ユーザ端末1と、業務システム2と、データファイル保管システム3と、電子署名サーバ4と、タイムスタンプ局5と、通信ネットワーク6と、を有する。   FIG. 2 is a configuration diagram of an electronic signature system in which the time stamp assigning apparatus and the time stamp verifying apparatus according to the present invention are used. The electronic signature system shown in FIG. 2 is applied to, for example, an in-house system, and includes a user terminal 1, a business system 2, a data file storage system 3, an electronic signature server 4, a time stamp station 5, and a communication network 6. Have.

図2に示すシステムでは、ユーザ端末1は、通信ネットワーク6を介して業務システム2にアクセスしてデータファイルを作成し、作成したデータファイルをデータファイル保管システム3に保管する。また、電子署名サーバ4は、後に説明するように、予め設定されたスケジュールに従って、データファイル保管システム3に保管されたデータファイルにタイムスタンプを付与し、付与されたタイムスタンプの検証を行う。   In the system shown in FIG. 2, the user terminal 1 accesses the business system 2 via the communication network 6 to create a data file, and stores the created data file in the data file storage system 3. Further, as will be described later, the electronic signature server 4 gives a time stamp to the data file stored in the data file storage system 3 according to a preset schedule, and verifies the given time stamp.

ユーザ端末1は、業務システム2にアクセスしてデータファイルの作成のような各種業務処理を行うための操作等を実行する環境をユーザに提供する。このために、ユーザ端末1は、例えば、パーソナルコンピュータ(PC)によって構成される。また、ユーザ端末1は、通信ネットワーク6を通じて業務システム2、データファイル保管システム3及び電子署名サーバ4との通信を行う通信I/F部11と、ユーザ端末1の各種制御を行う制御部12と、各種業務を実施するための入力を行う入力部13と、各種業務処理等を実施するための画面を表示する表示部14と、制御部12で使用する各種制御情報等を記憶する記憶部15と、を有する。   The user terminal 1 provides the user with an environment for accessing the business system 2 and executing operations for performing various business processes such as creation of data files. For this purpose, the user terminal 1 is constituted by, for example, a personal computer (PC). The user terminal 1 includes a communication I / F unit 11 that performs communication with the business system 2, the data file storage system 3, and the electronic signature server 4 through the communication network 6, and a control unit 12 that performs various controls of the user terminal 1. , An input unit 13 for inputting various business operations, a display unit 14 for displaying a screen for performing various business processes, and a storage unit 15 for storing various control information used in the control unit 12. And having.

通信I/F部11は、所定の通信プロトコルで通信を行う通信インタフェース及びドライバから構成される。制御部12は、CPU,ROM,RAM等から構成され、ユーザ端末1の制御全般についてプログラムに従って処理を行う。入力部13は、マウス、キーボード等によって構成される。表示部14は、LCD等によって構成される。記憶部15は、フラッシュメモリ、EEPROM等の書換え自在の不揮発性メモリ、磁気ハードディスク、書換え自在の光ディスク及びそのドライブ等によって構成される。   The communication I / F unit 11 includes a communication interface and a driver that perform communication using a predetermined communication protocol. The control unit 12 includes a CPU, a ROM, a RAM, and the like, and performs overall control of the user terminal 1 according to a program. The input unit 13 includes a mouse, a keyboard, and the like. The display unit 14 is configured by an LCD or the like. The storage unit 15 includes a rewritable nonvolatile memory such as a flash memory and an EEPROM, a magnetic hard disk, a rewritable optical disk, a drive thereof, and the like.

業務システム2は、ユーザ端末1での操作に応じて各種業務処理を実行し、処理結果に基づいてデータファイルを作成する。このために、業務システム2は、ユーザ端末1のサーバシステムとして構成され、通信ネットワーク6を通じてユーザ端末1、データファイル保管システム3及び電子署名サーバ4との通信を行う通信I/F部21と、業務システム2の各種制御を行う制御部22と、制御部22で使用する各種制御情報等を記憶する記憶部23と、を有する。   The business system 2 executes various business processes according to operations on the user terminal 1 and creates a data file based on the processing results. For this purpose, the business system 2 is configured as a server system of the user terminal 1, and a communication I / F unit 21 that communicates with the user terminal 1, the data file storage system 3, and the electronic signature server 4 through the communication network 6, It has the control part 22 which performs various control of the work system 2, and the memory | storage part 23 which memorize | stores the various control information etc. which are used by the control part 22.

通信I/F部21は、所定の通信プロトコルで通信を行う通信インタフェース及びドライバから構成される。制御部22は、CPU,ROM,RAM等から構成され、業務システム2の制御全般についてプログラムに従って処理を行う。このために、制御部22は、ユーザ端末1での操作に応じた業務処理を実行する業務処理部22aと、業務処理部22aの処理結果に基づいてデータファイルを作成するデータファイル作成部22bと、を有する。記憶部23は、フラッシュメモリ、EEPROM等の書換え自在の不揮発性メモリ、磁気ハードディスク、書換え自在の光ディスク及びそのドライブ等によって構成される。   The communication I / F unit 21 includes a communication interface and a driver that perform communication using a predetermined communication protocol. The control unit 22 includes a CPU, a ROM, a RAM, and the like, and performs overall control of the business system 2 according to a program. For this purpose, the control unit 22 includes a business processing unit 22a that executes a business process according to an operation on the user terminal 1, and a data file creation unit 22b that creates a data file based on the processing result of the business processing unit 22a. Have. The storage unit 23 includes a rewritable nonvolatile memory such as a flash memory and an EEPROM, a magnetic hard disk, a rewritable optical disk, a drive thereof, and the like.

データファイル保管システム3は、ユーザ端末1での操作に応じて業務システム2で作成されたデータファイルと、電子署名サーバ4で作成された後に説明するERSファイル、ERS管理ファイル及びERS終端ファイルを保管する。このために、データファイル保管システム3は、通信ネットワーク6を通じてユーザ端末1、業務システム2及び電子署名サーバ4との通信を行う通信I/F部31と、データファイル保管システム3の各種制御を行う制御部32と、上述したデータファイル、ERSファイル、ERS管理ファイル及びERS終端ファイルの他に、制御部32で使用する各種制御情報等を記憶する記憶部33と、を有する。   The data file storage system 3 stores a data file created by the business system 2 in response to an operation on the user terminal 1, and an ERS file, an ERS management file, and an ERS terminal file which are explained after being created by the electronic signature server 4. To do. For this purpose, the data file storage system 3 performs various controls of the communication I / F unit 31 that performs communication with the user terminal 1, the business system 2, and the electronic signature server 4 through the communication network 6, and the data file storage system 3. In addition to the above-described data file, ERS file, ERS management file, and ERS end file, the control unit 32 includes a storage unit 33 that stores various control information used by the control unit 32.

通信I/F部31は、所定の通信プロトコルで通信を行う通信インタフェース及びドライバから構成される。制御部32は、CPU,ROM,RAM等から構成され、データファイル保管システム3の制御全般についてプログラムに従って処理を行う。記憶部33は、フラッシュメモリ、EEPROM等の書換え自在の不揮発性メモリ、磁気ハードディスク、書換え自在の光ディスク及びそのドライブ等によって構成される。   The communication I / F unit 31 includes a communication interface and a driver that perform communication using a predetermined communication protocol. The control unit 32 includes a CPU, a ROM, a RAM, and the like, and performs overall control of the data file storage system 3 according to a program. The storage unit 33 includes a rewritable nonvolatile memory such as a flash memory and an EEPROM, a magnetic hard disk, a rewritable optical disk, a drive thereof, and the like.

電子署名サーバ4は、複数のファイルに対して一つのタイムスタンプの発行要求をタイムスタンプ局5に行い、タイムスタンプ局5が発行したタイムスタンプを複数のファイルに付与する本発明におけるタイムスタンプ付与装置として機能する。また、電子署名サーバ4は、複数のファイルに対して付与された一つのタイムスタンプの有効性をファイル毎に検証する本発明におけるタイムスタンプ検証装置としても機能する。このために、電子署名サーバ4は、通信ネットワーク6を通じてユーザ端末1、業務システム2、データファイル保管システム3及びタイムスタンプ局5との通信を行う通信I/F部41と、電子署名サーバ4の各種制御を行う制御部42と、上述したデータファイル、ERSファイル、ERS管理ファイル及びERS終端ファイルの他に、制御部42で使用する各種制御情報等を記憶する記憶部43と、を有する。なお、本実施の形態では、電子署名サーバ4はERS規格に対応する。   The electronic signature server 4 requests the time stamp authority 5 to issue one time stamp for a plurality of files, and assigns the time stamp issued by the time stamp authority 5 to the plurality of files. Function as. The electronic signature server 4 also functions as a time stamp verification apparatus in the present invention that verifies the validity of one time stamp assigned to a plurality of files for each file. For this purpose, the electronic signature server 4 includes a communication I / F unit 41 that communicates with the user terminal 1, the business system 2, the data file storage system 3, and the time stamp station 5 through the communication network 6, and the electronic signature server 4. In addition to the above-described data file, ERS file, ERS management file, and ERS end file, the storage unit 43 stores various control information used by the control unit 42. In the present embodiment, the electronic signature server 4 corresponds to the ERS standard.

通信I/F部41は、所定の通信プロトコルで通信を行う通信インタフェース及びドライバから構成される。制御部42は、CPU,ROM,RAM等から構成され、電子署名サーバ4の制御全般についてプログラムに従って処理を行う。このために、制御部42は、本発明のファイル指定部として動作するスケジューラ部42aと、タイムスタンプ及びファイル受取部42bと、ERS管理ファイル作成部42cと、ERSファイル作成部42dと、電子署名付与部42eと、電子署名検証部42fと、ファイル送出部42gと、タイムスタンプ検証部42hと、ERS管理ファイル検証部42iと、を有する。   The communication I / F unit 41 includes a communication interface and a driver that perform communication using a predetermined communication protocol. The control unit 42 includes a CPU, a ROM, a RAM, and the like, and performs overall control of the electronic signature server 4 according to a program. For this purpose, the control unit 42 includes a scheduler unit 42a that operates as a file designation unit of the present invention, a time stamp and file reception unit 42b, an ERS management file creation unit 42c, an ERS file creation unit 42d, and an electronic signature assignment. A unit 42e, an electronic signature verification unit 42f, a file transmission unit 42g, a time stamp verification unit 42h, and an ERS management file verification unit 42i.

スケジューラ部42aは、予め設定されたスケジュールの設定時刻に従い、データファイル保管システム3の記憶部33に記憶されている複数のデータファイルを取得し、一つのタイムスタンプを付与するトリガ、及び、タイムスタンプが付与されたデータファイルのタイムスタンプを検証するトリガを与える。具体的には、スケジューラ部42aは、タイムスタンプの取得をタイムスタンプ及びファイル受取部42bに要求するとともに、タイムスタンプの検証をタイムスタンプ検証部42hに要求する。   The scheduler unit 42a acquires a plurality of data files stored in the storage unit 33 of the data file storage system 3 in accordance with a preset time set in the schedule, and assigns one time stamp, and a time stamp Gives a trigger to verify the timestamp of the data file to which Specifically, the scheduler unit 42a requests the time stamp and file receiving unit 42b to acquire a time stamp, and requests the time stamp verification unit 42h to verify the time stamp.

タイムスタンプ及びファイル受取部42bは、スケジューラ部42aからの要求に応じてERS管理ファイル作成部42c及びERSファイル作成部42dと連携することによって、通信I/F部41を通じてタイムスタンプを取得する。すなわち、タイムスタンプ及びファイル受取部42bは、通信I/F部41を介してタイムスタンプの発行要求をタイムスタンプ局5に行い、タイムスタンプ局5が発行したタイムスタンプを取得する。この一連の処理は、本発明のタイムスタンプ取得部の処理に相当する。   The time stamp and file receiving unit 42b acquires the time stamp through the communication I / F unit 41 by cooperating with the ERS management file creating unit 42c and the ERS file creating unit 42d in response to a request from the scheduler unit 42a. That is, the time stamp and file receiving unit 42 b makes a time stamp issue request to the time stamp station 5 via the communication I / F unit 41, and acquires the time stamp issued by the time stamp station 5. This series of processing corresponds to the processing of the time stamp acquisition unit of the present invention.

また、タイムスタンプ及びファイル受取部42bは、スケジューラ部42aによって指定されるタイムスタンプ付与対象となる複数の任意ファイルとしての複数のデータファイルを、通信I/F部41を通じて記憶部33から取得する。したがって、通信I/F部41及びタイムスタンプ及びファイル受取部42bは、記憶部33に記憶された複数のデータファイルのうちのタイムスタンプ付与対象となる複数のデータファイルを受け取り、一つのタイムスタンプを付与するために当該複数のデータファイルを記憶部43に一時的に格納する。   In addition, the time stamp and file receiving unit 42 b obtains a plurality of data files as a plurality of arbitrary files to be given a time stamp specified by the scheduler unit 42 a from the storage unit 33 through the communication I / F unit 41. Therefore, the communication I / F unit 41 and the time stamp and file receiving unit 42b receive a plurality of data files to be time stamped from among a plurality of data files stored in the storage unit 33, and receive one time stamp. The plurality of data files are temporarily stored in the storage unit 43 for assignment.

ERS管理ファイル作成部42cは、タイムスタンプ及びファイル受取部42bからの要求に応じて、タイムスタンプ付与対象となる複数のデータファイル間の関係の一種である順序関係を少なくとも含むERS管理ファイルを作成する。ここでいう順序関係とは、データファイル保管システム3の記憶部33にデータファイルが登録された時系列順を示す情報のことである。具体的には、順序関係を示す情報は、タイムスタンプ付与の対象となるデータファイルのファイル名を記憶部33への登録順に列挙したテキスト形式で示した情報である。   The ERS management file creation unit 42c creates an ERS management file including at least an order relationship, which is a kind of relationship between a plurality of data files to be time stamped, in response to a request from the time stamp and file receiving unit 42b. . The order relationship here is information indicating the time-series order in which data files are registered in the storage unit 33 of the data file storage system 3. Specifically, the information indicating the order relationship is information represented in a text format in which file names of data files to be time stamped are listed in the order of registration in the storage unit 33.

複数のデータファイル間の関係は、本実施の形態のような順序関係以外に、複数のデータファイル間に上位下位の階層関係がある場合の当該階層関係を示す情報、複数のデータファイルが種々のグループに区分けされている場合の当該グループ構成、単に一つのタイムスタンプが付与される複数のデータファイル名を全て列挙したもの等であってもよい。   As for the relationship between the plurality of data files, in addition to the order relationship as in the present embodiment, there are various types of information indicating the hierarchical relationship when there are upper and lower hierarchical relationships between the plurality of data files. The group structure in the case of being divided into groups, or a list of all the data file names to which one time stamp is assigned may be used.

また、ERS管理ファイル作成部42cは、順序関係を示す情報に後述するERS終端ファイルに記憶された情報を加えたERS管理ファイルを作成する。なお、ERS管理ファイルの削除等を検出するためにERS管理ファイルにERS終端ファイルの情報を加えているので、ERS管理ファイルの削除等を考慮する必要がなければERS管理ファイルにERS終端ファイルの情報を加える必要はない。   Further, the ERS management file creation unit 42c creates an ERS management file by adding information stored in an ERS termination file described later to information indicating the order relationship. In addition, since the ERS termination file information is added to the ERS management file in order to detect the deletion of the ERS management file, the ERS termination file information is added to the ERS management file if it is not necessary to consider the deletion of the ERS management file. There is no need to add.

ここで、ERS終端ファイルについて説明する。ERS終端ファイルは、ERS管理ファイル作成部42cによりタイムスタンプを付与する度に更新されるファイルである。すなわち、ERS管理ファイル作成部42cは、タイムスタンプを付与した際に、作成したERS管理ファイルのファイル名及び当該ERS管理ファイルの内容のハッシュ値をERS終端ファイルに記録する。この際、ERS管理ファイル作成部42cは、ERS終端ファイルに既にファイル名等が記録されていればERS終端ファイルを上書き更新する。これにより、ERS終端ファイルには、タイムスタンプを付与した直近のERS管理ファイルのファイル名等が常に記録されている。さらに、ERS管理ファイル作成部42cは、作成したERS終端ファイルに、後述する電子署名付与部42eにより電子署名サーバ4の秘密鍵で電子署名を付与し、電子署名が付与されたERS終端ファイルを記憶部43に記憶させる。また、ERS管理ファイル作成部42cは、ERS管理ファイルを作成する際に記憶部43に記憶されているERS終端ファイルを取得すると、後述する電子署名検証部42fにて電子署名の検証ができたことを条件にERS管理ファイルの作成を行う。   Here, the ERS termination file will be described. The ERS termination file is a file that is updated each time a time stamp is given by the ERS management file creation unit 42c. That is, the ERS management file creation unit 42c records the file name of the created ERS management file and the hash value of the contents of the ERS management file in the ERS terminal file when the time stamp is given. At this time, if the file name or the like is already recorded in the ERS terminal file, the ERS management file creation unit 42c overwrites and updates the ERS terminal file. Thereby, the file name etc. of the latest ERS management file to which the time stamp is given are always recorded in the ERS end file. Further, the ERS management file creation unit 42c assigns an electronic signature to the created ERS termination file with the private key of the electronic signature server 4 by an electronic signature provision unit 42e described later, and stores the ERS termination file to which the electronic signature is attached. Store in the unit 43. In addition, when the ERS management file creation unit 42c acquires the ERS terminal file stored in the storage unit 43 when creating the ERS management file, the electronic signature verification unit 42f described later has verified the electronic signature. The ERS management file is created on the condition.

ERSファイル作成部42dは、タイムスタンプ付与対象となる複数のデータファイル及びERS管理ファイルに対して、タイムスタンプの有効性を検証可能な検証用ファイルとしてのERSファイルをそれぞれ作成する。   The ERS file creation unit 42d creates an ERS file as a verification file capable of verifying the validity of the time stamp, for a plurality of data files and ERS management files to be time stamped.

電子署名付与部42eは、ERS管理ファイル作成部42cからの要求に応じて、ERS終端ファイルに電子署名を付与する。電子署名検証部42fは、ERS管理ファイル作成部42cからの要求に応じて、ERS終端ファイルに付与された電子署名を検証する。   The electronic signature attaching unit 42e attaches an electronic signature to the ERS termination file in response to a request from the ERS management file creation unit 42c. The electronic signature verification unit 42f verifies the electronic signature given to the ERS termination file in response to a request from the ERS management file creation unit 42c.

ファイル送出部42gは、一つのタイムスタンプが付与された複数のデータファイル及びERS管理ファイルを記憶部33に格納するために、一つのタイムスタンプが付与された複数のデータファイル、ERS管理ファイル、それぞれのERSファイル及びERS終端ファイルを通信I/F部41を通じてデータファイル保管システム3に送出する。   The file sending unit 42g stores a plurality of data files and ERS management files with one time stamp in order to store a plurality of data files and ERS management files with one time stamp in the storage unit 33, respectively. The ERS file and the ERS terminal file are sent to the data file storage system 3 through the communication I / F unit 41.

タイムスタンプ検証部42hは、スケジューラ部42aからの要求に応じて、処理対象のファイルとそのファイルのERSファイルを用いてタイムタイムスタンプの検証を行う。ERS管理ファイル検証部42iは、タイムスタンプ検証部42hからのデータファイル間の関係も検証する旨の要求に応じて、ERS管理ファイルの検証を行う。そのとき、ERS管理ファイル検証部42iは、タイムスタンプ検証部42hに対して、ERS管理ファイル及びERS管理ファイルのERSファイルを用いたタイムスタンプの検証を要求する。   In response to a request from the scheduler unit 42a, the time stamp verification unit 42h performs time stamp verification using the file to be processed and the ERS file of the file. The ERS management file verification unit 42i verifies the ERS management file in response to a request from the time stamp verification unit 42h to verify the relationship between the data files. At that time, the ERS management file verification unit 42i requests the time stamp verification unit 42h to verify the time stamp using the ERS management file and the ERS file of the ERS management file.

記憶部43は、フラッシュメモリ、EEPROM等の書換え自在の不揮発性メモリ、磁気ハードディスク、書換え自在の光ディスク及びそのドライブ等によって構成される。   The storage unit 43 includes a rewritable nonvolatile memory such as a flash memory and an EEPROM, a magnetic hard disk, a rewritable optical disk, a drive thereof, and the like.

タイムスタンプ局5は、電子署名サーバ4からのタイムスタンプ生成要求に応じて、タイムスタンプ局5の秘密鍵を使用して電子署名を付与したタイムスタンプ・トークンを生成し、電子署名サーバ4に返信する。このために、タイムスタンプ局5は、通信ネットワーク6を通じて電子署名サーバ4との通信を行う通信I/F部51と、タイムスタンプ局5の各種制御を行う制御部52と、制御部52で使用する各種制御情報等を記憶する記憶部53と、を有する。   In response to the time stamp generation request from the electronic signature server 4, the time stamp authority 5 generates a time stamp token to which the electronic signature is attached using the private key of the time stamp authority 5, and returns the time stamp token to the electronic signature server 4. To do. For this purpose, the time stamp station 5 is used by the communication I / F unit 51 that performs communication with the electronic signature server 4 through the communication network 6, the control unit 52 that performs various controls of the time stamp station 5, and the control unit 52. A storage unit 53 for storing various control information and the like.

通信I/F部51は、所定の通信プロトコルで通信を行う通信インタフェース及びドライバから構成される。制御部52は、CPU,ROM,RAM等から構成され、タイムスタンプ局5の制御全般についてプログラムに従って処理を行う。記憶部53は、フラッシュメモリ、EEPROM等の書換え自在の不揮発性メモリ、磁気ハードディスク、書換え自在の光ディスク及びそのドライブ等によって構成される。   The communication I / F unit 51 includes a communication interface and a driver that perform communication using a predetermined communication protocol. The control unit 52 includes a CPU, a ROM, a RAM, and the like, and performs overall control of the time stamp station 5 according to a program. The storage unit 53 includes a rewritable nonvolatile memory such as a flash memory and an EEPROM, a magnetic hard disk, a rewritable optical disk, a drive thereof, and the like.

通信ネットワーク6は、ユーザ端末1、業務システム2、データファイル保管システム3、電子署名サーバ4及びタイムスタンプ局5に接続される。このために、通信ネットワーク6は、専用回線、インターネット、携帯電話回線、一般公衆回線等の遠隔地間又は屋内の離れた場所間でデータの送受信が可能となる通信回線によって構成される。   The communication network 6 is connected to the user terminal 1, the business system 2, the data file storage system 3, the electronic signature server 4 and the time stamp station 5. For this reason, the communication network 6 is configured by a communication line that can transmit and receive data between remote places such as a dedicated line, the Internet, a mobile phone line, and a general public line, or between indoor and remote locations.

図3は、図2の電子署名サーバで用いられるデータファイルとERS管理ファイルとERSファイルとの関係を説明する概念図である。電子署名サーバ4を用いて複数のデータファイル1,2,3に一つのタイムスタンプt’を付与する場合、データファイル1,2,3の関係(例えば、順序関係)を記録したERS管理ファイルが作成され、タイムスタンプt’の生成要素である一つのハッシュ値(ハッシュツリーの頂点となるルートハッシュ)h123Rを生成するために、図1に示す概念図を用いて説明したルートハッシュを計算するための上記(1)及び(2)の工程の次に、以下の(3)’の工程を行う。
(3)ハッシュ関数Hを用いて計算されたERS管理ファイルのハッシュ値hR及びハッシュ値h123をまとめることによって生成されるハッシュ値(ルートハッシュ)h123Rを、ハッシュ関数Hを用いて計算する工程。
FIG. 3 is a conceptual diagram illustrating the relationship among a data file, an ERS management file, and an ERS file used in the electronic signature server of FIG. When one time stamp t ′ is given to a plurality of data files 1, 2, 3 using the electronic signature server 4, an ERS management file that records the relationship (for example, order relationship) between the data files 1, 2, 3 is In order to calculate the root hash described with reference to the conceptual diagram shown in FIG. 1 in order to generate one hash value (root hash that becomes the apex of the hash tree) h123R that is created and is a generation element of the time stamp t ′ Following the steps (1) and (2), the following step (3) ′ is performed.
(3) A step of calculating a hash value (root hash) h123R generated by combining the hash value hR and hash value h123 of the ERS management file calculated using the hash function H using the hash function H.

その後、電子署名サーバ4は、タイムスタンプ局5に対応するタイムスタンプ局(TSA)aにハッシュ値h123Rを送信し、タイムスタンプ局aにタイムスタンプt’の生成を要求する。タイムスタンプ局aがハッシュ値h123Rを受信すると、タイムスタンプ局aは、タイムスタンプ局aの秘密鍵を使用して電子署名を施したタイムスタンプ・トークンを生成し、電子署名サーバ4に返信する。   Thereafter, the electronic signature server 4 transmits the hash value h123R to the time stamp authority (TSA) a corresponding to the time stamp authority 5, and requests the time stamp authority a to generate the time stamp t '. When the time stamp authority a receives the hash value h123R, the time stamp authority a generates a time stamp token to which an electronic signature has been applied using the private key of the time stamp authority a, and sends it back to the electronic signature server 4.

電子署名サーバ4がタイムスタンプ・トークンを受け取ると、電子署名サーバ4は、一つのタイムスタンプt’をデータファイル1,2,3及びERS管理ファイルにそれぞれ付与するために、タイムスタンプt’をコピーし、タイムスタンプt’及び各ファイルのハッシュ値h1,h2,h3,hRからルートハッシュh123Rを導出するのに必要なハッシュツリー情報を有する各ファイル用のERSファイルを作成する。   When the electronic signature server 4 receives the time stamp token, the electronic signature server 4 copies the time stamp t ′ to assign one time stamp t ′ to the data files 1, 2, 3 and the ERS management file, respectively. Then, an ERS file for each file having hash tree information necessary for deriving the root hash h123R from the time stamp t ′ and the hash values h1, h2, h3, hR of each file is created.

したがって、図3に示す概念図では、電子署名サーバ4は、タイムスタンプt’及びデータファイル1のハッシュツリー情報[[h1,h2],[h3],[hR]]を有するデータファイル1用のERSファイルと、タイムスタンプt’及びデータファイル2のハッシュツリー情報[[h1,h2],[h3],[hR]]を有するデータファイル2用のERSファイルと、タイムスタンプt’及びデータハッシュファイル3のツリー情報[[h12,h3],[hR]]を有するデータファイル3用のERSファイルと、タイムスタンプt’及びERS管理ファイルのハッシュツリー情報[[h123,hR]]を有するERS管理ファイル用のERSファイルと、を作成する。
なお、図3におけるハッシュ値は、h1<h2,h12<h3,h123<hRの大小関係にある。
Therefore, in the conceptual diagram shown in FIG. 3, the electronic signature server 4 is for the data file 1 having the time stamp t ′ and the hash tree information [[h1, h2], [h3], [hR]] of the data file 1. ERS file, ERS file for data file 2 having time stamp t ′ and hash tree information [[h1, h2], [h3], [hR]] of data file 2, time stamp t ′ and data hash file ERS file for data file 3 having 3 tree information [[h12, h3], [hR]], and ERS management file having time stamp t ′ and hash tree information [[h123, hR]] of the ERS management file An ERS file is created.
Note that the hash values in FIG. 3 have a magnitude relationship of h1 <h2, h12 <h3, h123 <hR.

このような各データファイル及びERS管理ファイル用のERSファイルを作成することによって、ERS規格に対応したタイムスタンプ検証装置は、複数のデータファイル1,2,3及びERS管理ファイルに付与されたタイムスタンプt’の有効性を、データファイルかERS管理ファイルかを区別することなくそれぞれ検証することができる。   By creating such an ERS file for each data file and ERS management file, the time stamp verifying device corresponding to the ERS standard allows time stamps assigned to a plurality of data files 1, 2, 3 and the ERS management file. The validity of t ′ can be verified without distinguishing whether it is a data file or an ERS management file.

図4は、図2の電子署名システムのデータファイル保管システム3に記憶されるデータの形式の一例を示す図である。図4において、複数のデータファイルに対応する任意ファイル1,2,3のERS管理ファイルが管理ファイルAに対応し、任意ファイル1,2,3及び管理ファイルAに一つのタイムスタンプとしてタイムスタンプAが付与され、これら任意ファイル1,2,3及び管理ファイルAに対して、タイムスタンプAを含む検証用ファイル1,2,3,AがERSファイルとしてそれぞれ作成される。   FIG. 4 is a diagram showing an example of a format of data stored in the data file storage system 3 of the electronic signature system of FIG. In FIG. 4, ERS management files of arbitrary files 1, 2, and 3 corresponding to a plurality of data files correspond to the management file A, and time stamp A as one time stamp for arbitrary files 1, 2, 3, and management file A , And verification files 1, 2, 3, A including a time stamp A are created as ERS files for these arbitrary files 1, 2, 3, and management file A, respectively.

同様に、図4において、複数のデータファイルに対応する任意ファイル4,5のERS管理ファイルが管理ファイルBに対応し、任意ファイル4,5及び管理ファイルBに一つのタイムスタンプとしてタイムスタンプBが付与され、これら任意ファイル4,5及び管理ファイルBに対して、タイムスタンプBを含む検証用ファイル4,5、BがERSファイルとしてそれぞれ作成される。   Similarly, in FIG. 4, the ERS management files of arbitrary files 4 and 5 corresponding to a plurality of data files correspond to the management file B, and the time stamp B is set as one time stamp in the arbitrary files 4 and 5 and the management file B. The verification files 4, 5 and B including the time stamp B are created as ERS files for the arbitrary files 4 and 5 and the management file B, respectively.

次に、図5を参照して、図2の電子署名サーバ4のタイムスタンプ付与処理フローについて説明する。なお、以下に説明する処理フローは、制御部42で実行されるプログラムによって制御される。   Next, with reference to FIG. 5, the time stamp assigning process flow of the electronic signature server 4 of FIG. 2 will be described. Note that the processing flow described below is controlled by a program executed by the control unit 42.

図2の電子署名サーバ4は、スケジューラ部42aがタイムスタンプの取得をタイムスタンプ及びファイル受取部42bに要求することによって、タイムスタンプの付与の処理フローを開始する。この際、スケジューラ部42aは、処理対象(タイムスタンプ付与対象)となる複数のデータファイル(複数の任意ファイル)と複数のデータファイル間の関係を指定する。   The electronic signature server 4 of FIG. 2 starts a processing flow for assigning a time stamp when the scheduler unit 42a requests the time stamp and file receiving unit 42b to obtain a time stamp. At this time, the scheduler unit 42a designates a relationship between a plurality of data files (a plurality of arbitrary files) to be processed (time stamp assignment target) and a plurality of data files.

先ず、タイムスタンプ及びファイル受取部42bは、処理対象となる複数のデータファイルをデータファイル保管システム3から取得し、取得した複数のデータファイルを記憶部43に格納する(ステップS1)。   First, the time stamp and file receiving unit 42b acquires a plurality of data files to be processed from the data file storage system 3, and stores the acquired plurality of data files in the storage unit 43 (step S1).

ここで、処理対象となる複数のデータファイルを取得できなかった場合は、タイムスタンプ及びファイル受取部42bは、システムエラーとしてデータファイル取得処理の失敗を記憶部43に記録し、処理フローを終了する。   Here, when a plurality of data files to be processed cannot be acquired, the time stamp and file receiving unit 42b records the failure of the data file acquisition process as a system error in the storage unit 43, and ends the processing flow. .

次に、タイムスタンプ及びファイル受取部42bがERS管理ファイルの作成をERS管理ファイル作成部42cに要求すると、ERS管理ファイル作成部42cは、ERS終端ファイルをデータファイル保管システム3から取得し、取得したERS終端ファイルを記憶部43に格納する(ステップS2)。   Next, when the time stamp and file receiving unit 42b requests the ERS management file creation unit 42c to create an ERS management file, the ERS management file creation unit 42c acquires the ERS terminal file from the data file storage system 3 and acquires it. The ERS terminal file is stored in the storage unit 43 (step S2).

ここで、ERS終端ファイルを取得できなかった場合は、ERS管理ファイル作成部42cは、システムエラーとしてERS終端ファイル取得処理の失敗を記憶部43に記録し、処理フローを終了する。   Here, when the ERS terminal file cannot be acquired, the ERS management file creation unit 42c records the failure of the ERS terminal file acquisition process in the storage unit 43 as a system error, and ends the processing flow.

次に、ERS管理ファイル作成部42cは、ERS終端ファイルの署名検証を電子署名検証部42fに要求する(ステップS3)。要求を受けた電子署名検証部42fは、ERS終端ファイルの署名検証を実行し、ERS終端ファイルの署名検証に成功したか否かを判断する(ステップS4)。署名検証に失敗した場合、電子署名検証部42fは、署名検証処理の失敗を記憶部43に記録し(ステップS5)、処理フローを終了する。   Next, the ERS management file creation unit 42c requests the electronic signature verification unit 42f to verify the signature of the ERS terminal file (step S3). Upon receiving the request, the electronic signature verification unit 42f executes signature verification of the ERS terminal file, and determines whether or not the signature verification of the ERS terminal file has succeeded (step S4). If the signature verification fails, the electronic signature verification unit 42f records the failure of the signature verification process in the storage unit 43 (step S5), and ends the processing flow.

それに対し、署名検証に成功した場合、ERS管理ファイル作成部42cは、ERS終端ファイルにERS管理ファイルが記録済みであるか否か、すなわち、初めてタイムスタンプの付与を行うか否かを判断する(ステップS6)。ERS終端ファイルにERS管理ファイルが記録済みである場合、ERS管理ファイル作成部42cは、記録されたERS管理ファイルをファイル保管システム3から取得し、取得したERS管理ファイルを記憶部43に格納する(ステップS7)。   On the other hand, when the signature verification is successful, the ERS management file creation unit 42c determines whether or not the ERS management file has been recorded in the ERS terminal file, that is, whether or not the time stamp is added for the first time ( Step S6). When the ERS management file has been recorded in the ERS terminal file, the ERS management file creation unit 42c acquires the recorded ERS management file from the file storage system 3, and stores the acquired ERS management file in the storage unit 43 ( Step S7).

ここで、ERS管理ファイルを取得できなかった場合は、ERS管理ファイル作成部42cは、ERS管理ファイルの削除の可能性を示すと共にシステムエラーとしてERS管理ファイル取得処理の失敗を記憶部43に記録し、処理フローを終了する。次に、ERS管理ファイル作成部42cは、取得したERS管理ファイルを記憶部43に格納し、取得したERS管理ファイルのハッシュ値とERS終端ファイル内に記録されているハッシュ値とが一致するか否か判断する(ステップS8)。   Here, when the ERS management file cannot be acquired, the ERS management file creation unit 42c indicates the possibility of deleting the ERS management file and records the failure of the ERS management file acquisition process in the storage unit 43 as a system error. The processing flow is finished. Next, the ERS management file creation unit 42c stores the acquired ERS management file in the storage unit 43, and whether or not the hash value of the acquired ERS management file matches the hash value recorded in the ERS termination file. (Step S8).

取得したERS管理ファイルのハッシュ値とERS終端ファイル内に記録されているハッシュ値とが一致しない場合、ERS管理ファイル作成部42cは、取得したERS管理ファイルが置き換えられていることを検出したことになり、ハッシュ値の不一致を記憶部43に記録し(ステップS9)、処理フローを終了する。   When the hash value of the acquired ERS management file does not match the hash value recorded in the ERS terminal file, the ERS management file creation unit 42c has detected that the acquired ERS management file has been replaced. Thus, the mismatch of the hash values is recorded in the storage unit 43 (step S9), and the processing flow ends.

それに対し、取得したERS管理ファイルのハッシュ値とERS終端ファイル内に記録されているハッシュ値とが一致する場合、ERS管理ファイル作成部42cは、処理対象のデータファイル及び取得したERS終端ファイルから新たなERS管理ファイルを作成する(ステップS10)。一方、ステップS6でERS終端ファイルにERS管理ファイルが記録されていないと判断された場合、ステップS10に進むが、このときには、ERS管理ファイル作成部42cは、処理対象のデータファイルから新たなERS管理ファイルを作成する。   On the other hand, if the hash value of the acquired ERS management file matches the hash value recorded in the ERS termination file, the ERS management file creation unit 42c creates a new one from the processing target data file and the acquired ERS termination file. A ERS management file is created (step S10). On the other hand, if it is determined in step S6 that no ERS management file is recorded in the ERS terminal file, the process proceeds to step S10. At this time, the ERS management file creation unit 42c starts a new ERS management from the data file to be processed. Create a file.

次に、ERS管理ファイル作成部42cは、ERS終端ファイルを更新するために、新たなERS管理ファイルの情報を記録したERS終端ファイルを作成する(ステップS11)。具体的には、ERS管理ファイル作成部42cは、ERS終端ファイルを作成し、作成したERS終端ファイルへの電子署名の付与を電子署名付与部42eに要求する。   Next, the ERS management file creation unit 42c creates an ERS termination file in which information of a new ERS management file is recorded in order to update the ERS termination file (step S11). Specifically, the ERS management file creation unit 42c creates an ERS terminal file, and requests the electronic signature provision unit 42e to attach an electronic signature to the created ERS terminal file.

次に、要求を受けた電子署名付与部42eは、電子署名サーバ4の秘密鍵でERS終端ファイルに電子署名を付与し、電子署名付与済みの終端ファイルを記憶部43に格納する。   Next, the electronic signature providing unit 42 e that has received the request provides an electronic signature to the ERS terminal file with the private key of the electronic signature server 4, and stores the terminal file to which the electronic signature has been added in the storage unit 43.

次に、ERS管理ファイル作成部42cは、新たなERS管理ファイルのハッシュ値に処理対象の複数のデータファイルのハッシュ値をデータファイル間の関係によるデータ順に連結した連結ハッシュデータを作成する(ステップS12)。次に、タイムスタンプ及びファイル受取部42bは、処理対象の複数のデータファイルのハッシュ値と連結ハッシュデータを用いてハッシュツリーを作成する(ステップS13)。   Next, the ERS management file creation unit 42c creates concatenated hash data in which hash values of a plurality of data files to be processed are concatenated with a hash value of a new ERS management file in the order of data according to the relationship between the data files (step S12). ). Next, the time stamp and file receiving unit 42b creates a hash tree using the hash values and concatenated hash data of a plurality of data files to be processed (step S13).

次に、タイムスタンプ及びファイル受取部42bは、作成したハッシュツリーのルートハッシュに対するタイムスタンプ作成をタイムスタンプ局5に要求し、ルートハッシュに対するタイムスタンプをタイムスタンプ局5から取得する(ステップS14)。   Next, the time stamp and file receiving unit 42b requests the time stamp authority 5 to create a time stamp for the root hash of the created hash tree, and acquires the time stamp for the root hash from the time stamp authority 5 (step S14).

ここで、ルートハッシュに対するタイムスタンプをタイムスタンプ局5から取得しなかった場合は、タイムスタンプ及びファイル受取部42bは、システムエラーとしてタイムスタンプ取得処理の失敗を記憶部43に記録し、処理フローを終了する。   Here, when the time stamp for the root hash is not acquired from the time stamp authority 5, the time stamp and file receiving unit 42b records the failure of the time stamp acquisition process as a system error in the storage unit 43, and the processing flow is as follows. finish.

次に、ERSファイル作成部42dは、各データファイルのハッシュ値及び連結ハッシュデータに対応した各データファイル及びERS管理ファイルに対するERSファイルを、ハッシュツリー及びタイムスタンプから作成し、作成した全てのERSファイルを記憶部43に格納する(ステップS15)。   Next, the ERS file creation unit 42d creates an ERS file for each data file and ERS management file corresponding to the hash value and linked hash data of each data file from the hash tree and the time stamp, and creates all the ERS files created. Is stored in the storage unit 43 (step S15).

次に、ファイル送出部42gは、新たなERS管理ファイル及び全てのERSファイル及び電子署名付与済みのERS終端ファイルを通信I/F部41を通じてデータファイル保管システム3に送信し(ステップS16)、処理フローを終了する。なお、データファイル保管システム3は、電子署名サーバ4から受け取った新たなERS管理ファイル及び全てのERSファイルを、記憶部33に格納する。また、データファイル保管システム3は、電子署名サーバ4から受け取ったERS終端ファイルを、記憶部33に格納したERS終端ファイルに上書きして保存する。図5に示す処理フローにおいて、例えば、処理対象として、図4に示す任意ファイル1,2,3を指定した場合、新たなERS管理ファイルとして管理ファイルAが作成され、任意ファイル1,2,3及び管理ファイルAのERSファイルとして検証用ファイル1,2,3、Aがそれぞれ作成される。   Next, the file sending unit 42g transmits a new ERS management file, all ERS files, and an ERS terminal file with an electronic signature added to the data file storage system 3 through the communication I / F unit 41 (step S16), and processing End the flow. The data file storage system 3 stores the new ERS management file and all ERS files received from the electronic signature server 4 in the storage unit 33. In addition, the data file storage system 3 overwrites and saves the ERS terminal file received from the electronic signature server 4 over the ERS terminal file stored in the storage unit 33. In the processing flow shown in FIG. 5, for example, when the arbitrary files 1, 2, and 3 shown in FIG. 4 are designated as processing targets, the management file A is created as a new ERS management file, and the arbitrary files 1, 2, and 3 are specified. In addition, verification files 1, 2, 3, and A are created as ERS files of the management file A, respectively.

図5に示す処理フローによれば、複数のデータファイル間の関係を含む管理ファイルとしてERS管理ファイルを作成するとともに、複数のデータファイル及びERS管理ファイルに対して一つのタイムスタンプを付与し、タイムスタンプの有効性を検証可能な検証用ファイルとしてERSファイルをそれぞれ作成している。このように管理ファイルに対するERSファイルを作成することによって、一つのタイムスタンプが付与されたデータファイル間の関係を、改竄検知可能に保持することができる。   According to the processing flow shown in FIG. 5, an ERS management file is created as a management file including a relationship between a plurality of data files, and one time stamp is assigned to the plurality of data files and the ERS management file. Each ERS file is created as a verification file that can verify the validity of the stamp. By creating the ERS file for the management file in this way, the relationship between the data files to which one time stamp is assigned can be held so that tampering can be detected.

次に、図6を参照して、図2の電子署名サーバ4のタイムスタンプ検証処理フローについて説明する。なお、以下に説明する処理フローは、制御部42で実行されるプログラムによって制御される。   Next, the time stamp verification processing flow of the electronic signature server 4 of FIG. 2 will be described with reference to FIG. Note that the processing flow described below is controlled by a program executed by the control unit 42.

図2の電子署名サーバ4は、スケジューラ部42aがタイムスタンプの検証をタイムスタンプ検証部42hに要求することによって、タイムスタンプの検証の処理フローを開始する。この際、スケジューラ部42aは、処理対象(タイムスタンプ検証対象)となるデータファイル(任意ファイル)を指定する。   The electronic signature server 4 in FIG. 2 starts a time stamp verification process flow when the scheduler unit 42a requests time stamp verification from the time stamp verification unit 42h. At this time, the scheduler unit 42a designates a data file (arbitrary file) to be processed (time stamp verification target).

先ず、タイムスタンプ及びファイル受取部42bは、処理対象となるデータファイルをデータファイル保管システム3から取得し、取得したデータファイルを記憶部43に格納する(ステップS101)。   First, the time stamp and file receiving unit 42b acquires a data file to be processed from the data file storage system 3, and stores the acquired data file in the storage unit 43 (step S101).

ここで、処理対象となるデータファイルを取得できなかった場合は、タイムスタンプ及びファイル受取部42bは、システムエラーとしてデータファイル取得処理の失敗を記憶部43に記録し、処理フローを終了する。次に、タイムスタンプ検証部42hは、データファイル間の順序関係を検証するか指定されたか否か判断する(ステップS102)。   If the data file to be processed cannot be acquired, the time stamp and file receiving unit 42b records the failure of the data file acquisition process as a system error in the storage unit 43, and ends the processing flow. Next, the time stamp verification unit 42h determines whether or not the verification of the order relationship between the data files has been specified (step S102).

データファイル間の順序関係を検証しない場合、タイムスタンプ及びファイル受取部42bは、処理対象となるデータファイルの検証用ファイルとしてのERSファイルをデータファイル保管システム3から取得し、タイムスタンプ検証部42hは、取得したデータファイル及びそれに対応するERSファイルに基づいて、それぞれのデータファイルのタイムスタンプの有効性の検証処理(既存のERS規格のタイムスタンプ検証処理)を実行し、処理対象として指定された全てのデータファイルについてタイムスタンプの有効性の検証処理を行い(ステップS103)、処理フローを終了する。   When the order relationship between the data files is not verified, the time stamp and file receiving unit 42b acquires the ERS file as the verification file of the data file to be processed from the data file storage system 3, and the time stamp verifying unit 42h Based on the acquired data file and the corresponding ERS file, the validity verification process of the time stamp of each data file (the time stamp verification process of the existing ERS standard) is executed, and all specified as processing targets A time stamp validity verification process is performed on the data file (step S103), and the process flow ends.

一方、ステップS102でデータファイル間の順序関係を検証すると判断した場合、タイムスタンプ検証部42hは、処理対象として指定されたデータファイルに対応するERS管理ファイルの検証をERS管理ファイル検証部42iに要求し、これ以降、ERS管理ファイル検証部42iが主体的に処理を行う。   On the other hand, if it is determined in step S102 that the order relationship between the data files is verified, the time stamp verification unit 42h requests the ERS management file verification unit 42i to verify the ERS management file corresponding to the data file designated as the processing target. Thereafter, the ERS management file verification unit 42i performs the processing independently.

ERS管理ファイル検証部42iは、処理対象のデータファイル中で順序が最後のもののファイル名が記録されたERS管理ファイル及び当該ERS管理ファイルのERSファイルを、データファイル保管システム3から取得し、ERS管理ファイル及びERSファイルを記憶部43に格納する(ステップS104)。すなわち、複数のタイムスタンプに亘ってデータファイル間に順序がある場合、その中で最新のタイムスタンプが付与されたERS管理ファイル及び当該ERS管理ファイルのERSファイルを取得する。   The ERS management file verification unit 42i acquires from the data file storage system 3 the ERS management file in which the file name of the last file in the processing target data file is recorded and the ERS file of the ERS management file, and manages the ERS management file. The file and the ERS file are stored in the storage unit 43 (step S104). That is, when there is an order among the data files over a plurality of time stamps, the ERS management file to which the latest time stamp is given and the ERS file of the ERS management file are acquired.

ここで、ERS管理ファイル及びERSファイルを取得できなかった場合は、ERS管理ファイル検証部42iは、ERS管理ファイル及びERSファイル取得処理の失敗を記憶部43に記録し、処理フローを終了する。   Here, when the ERS management file and the ERS file cannot be acquired, the ERS management file verification unit 42i records the failure of the ERS management file and ERS file acquisition processing in the storage unit 43, and ends the processing flow.

次に、ERS管理ファイル検証部42iは、取得したERS管理ファイルに処理対象のデータファイル中で順序が最初のもののファイル名が記録されているか否か判断する(ステップS105)。   Next, the ERS management file verification unit 42i determines whether or not the file name having the first order in the data file to be processed is recorded in the acquired ERS management file (step S105).

ERS管理ファイルに処理対象のデータファイル中で順序が最初のもののファイル名が記録されていない場合、ERS管理ファイル検証部42iは、取得したERS管理ファイルに記録されている1回前に作成されたERS管理ファイル及び当該ERS管理ファイルのERSファイルを、データファイル保管システム3から取得する(ステップS106)。   In the case where the file name of the first file in the processing target data file is not recorded in the ERS management file, the ERS management file verification unit 42i has been created once before being recorded in the acquired ERS management file. The ERS management file and the ERS file of the ERS management file are acquired from the data file storage system 3 (step S106).

ここで、1回前に作成されたERS管理ファイル及びERSファイルを取得できなかった場合は、ERS管理ファイル検証部42iは、1回前に作成されたERS管理ファイル及びERSファイル取得処理の失敗を記憶部43に記録し、処理フローを終了する。   Here, when the ERS management file and the ERS file created one time before cannot be obtained, the ERS management file verification unit 42i indicates that the ERS management file and the ERS file acquisition process created one time ago have failed. It records in the memory | storage part 43 and complete | finishes a processing flow.

次に、ERS管理ファイル検証部42iは、ERS管理ファイルに記録されている1回前に作成されたERS管理ファイルのハッシュ値と、実際に取得した1回前に作成されたERS管理ファイルのハッシュ値とが一致するか否か判断する(ステップS107)。   Next, the ERS management file verification unit 42i, the hash value of the ERS management file created once before recorded in the ERS management file, and the hash of the ERS management file created one time before actually acquired It is determined whether or not the values match (step S107).

ERS管理ファイルに記録されている1回前に作成されたERS管理ファイルのハッシュ値と、実際に取得した1回前に作成されたERS管理ファイルのハッシュ値とが一致しない場合、ERS管理ファイル検証部42iは、ハッシュ値の不一致を記憶部43に記録し(ステップS108)、処理フローを終了する。   If the hash value of the ERS management file created once before recorded in the ERS management file does not match the hash value of the ERS management file created once before actually obtained, the ERS management file verification is performed. The unit 42i records the mismatch of the hash values in the storage unit 43 (step S108), and ends the processing flow.

それに対し、ERS管理ファイルに記録されている1回前に作成されたERS管理ファイルのハッシュ値と、実際に取得した1回前に作成されたERS管理ファイルのハッシュ値とが一致する場合、ステップS105に戻る。   On the other hand, if the hash value of the ERS management file created once before recorded in the ERS management file matches the hash value of the ERS management file created once before actually obtained, the step Return to S105.

一方、ステップS105でERS管理ファイルに処理対象のデータファイル中で順序が最初のもののファイル名が記録されていると判断した場合、ERS管理ファイル検証部42iは、取得した全てのERS管理ファイルについて、それぞれの連結ハッシュデータを作成し(ステップS109)、ERS管理ファイルのタイムスタンプの有効性の検証処理(既存のERS規格のタイムスタンプ検証処理)をタイムスタンプ検証部42hに要求して実行し(ステップS110)、ERS管理ファイルのタイムスタンプの有効性の検証に成功したか否か判断する(ステップS111)。ここで行われるERS管理ファイルのタイムスタンプの有効性の検証処理において、タイムスタンプ検証部42hは、ERS管理ファイル及び当該ERS管理ファイルのERSファイルと連結ハッシュデータを入力とし、ERS管理ファイルのERSファイルに含まれるハッシュツリー情報を使ってルートハッシュを再現し、再現したルートハッシュがタイムスタンプにあるハッシュ値と一致するか否か確認する。再現したルートハッシュがタイムスタンプにあるハッシュ値と一致する場合、タイムスタンプ検証部42hは、検証が成功したと判断し、その結果を出力する。それに対し、再現したルートハッシュがタイムスタンプにあるハッシュ値と一致しない場合、タイムスタンプ検証部42hは、検証が失敗したと判断し、その結果を出力する。   On the other hand, if it is determined in step S105 that the file name of the first data file in the processing target data file is recorded in the ERS management file, the ERS management file verification unit 42i performs the following processing for all the acquired ERS management files. Each concatenated hash data is created (step S109), and the time stamp validity verification process (existing ERS standard time stamp verification process) of the ERS management file is requested and executed (step S109). S110), it is determined whether or not the validity of the time stamp of the ERS management file has been successfully verified (step S111). In the verification process of the validity of the time stamp of the ERS management file performed here, the time stamp verification unit 42h receives the ERS management file, the ERS file of the ERS management file and the linked hash data as an input, and the ERS file of the ERS management file The root hash is reproduced using the hash tree information included in the, and it is confirmed whether or not the reproduced root hash matches the hash value in the time stamp. When the reproduced root hash matches the hash value in the time stamp, the time stamp verification unit 42h determines that the verification is successful and outputs the result. On the other hand, when the reproduced root hash does not match the hash value in the time stamp, the time stamp verification unit 42h determines that the verification has failed, and outputs the result.

なお、ERS管理ファイルのERSファイルのハッシュツリー情報には連結ハッシュデータが含まれている。そのため、ERS管理ファイルのERSファイルに含まれるハッシュツリー情報を使ってルートハッシュを再現する場合、タイムスタンプ検証部42hは、ERS管理ファイルのハッシュ値ではなく入力された連結ハッシュデータを用いる。また、連結ハッシュデータには、ERS管理ファイルのハッシュ値とデータファイルのハッシュ値とが含まれている。連結ハッシュデータの作成に必要なデータファイルが不足している場合、ERS管理ファイル検証部42iは、追加のデータファイルをデータファイル保管システム3から取得する。   The hash tree information of the ERS file of the ERS management file includes linked hash data. Therefore, when the root hash is reproduced using the hash tree information included in the ERS file of the ERS management file, the time stamp verification unit 42h uses the input linked hash data instead of the hash value of the ERS management file. The linked hash data includes the hash value of the ERS management file and the hash value of the data file. When the data file necessary for creating the linked hash data is insufficient, the ERS management file verification unit 42 i acquires an additional data file from the data file storage system 3.

ERS管理ファイルのタイムスタンプの有効性の検証に失敗した場合、ERS管理ファイル検証部42iは、管理ファイルのタイムスタンプの有効性の検証の失敗を記憶部43に記録し(ステップS112)、処理フローを終了する。それに対し、ERS管理ファイルのタイムスタンプの有効性の検証に成功した場合、ERS管理ファイル検証部42iは、全てのERS管理ファイルについてデータファイルのタイムスタンプの有効性の検証処理を行ったか否か判断する(ステップS113)。   When the verification of the validity of the time stamp of the ERS management file fails, the ERS management file verification unit 42i records the verification failure of the validity of the time stamp of the management file in the storage unit 43 (step S112), and the processing flow Exit. On the other hand, when the verification of the validity of the time stamp of the ERS management file is successful, the ERS management file verification unit 42i determines whether the verification process of the validity of the time stamp of the data file has been performed for all the ERS management files. (Step S113).

全てのERS管理ファイルについてタイムスタンプの有効性の検証処理を行っていない場合、ステップS109に戻る。それに対し、全てのERS管理ファイルについてタイムスタンプの有効性の検証処理を行った場合、ERS管理ファイル検証部42iは、処理対象のデータファイルの追加、削除又は順序の入替えを確認し(ステップS114)、処理対象のデータファイルの追加、削除又は順序の入替えが発生していないか否かを、取得した全てのERS管理ファイルの内容に基づいて判断する(ステップS115)。具体的には、ERS管理ファイルに記録されていないデータファイルがデータファイル保管システム3に記憶されていたり、ERS管理ファイルに記録されているデータファイルがデータファイル保管システム3から削除されていたり、ファイル名にも作成日時などの時系列情報を含む場合にファイル名を変更することによって順序の入替えが行われていたり、等を確認し、処理対象のデータファイルの追加、削除又は順序の入替えの発生を判断する。なお、各データファイルの改竄検知は、連結ハッシュデータでの処理に加え、再度タイムスタンプ検証部42hに検証要求をしてもよい。   If time stamp validity verification processing has not been performed for all ERS management files, the process returns to step S109. On the other hand, when the time stamp validity verification process is performed for all the ERS management files, the ERS management file verification unit 42i confirms the addition, deletion, or change of order of the data files to be processed (step S114). Then, it is determined based on the contents of all the acquired ERS management files whether or not the processing target data file has been added, deleted, or rearranged (step S115). Specifically, a data file that is not recorded in the ERS management file is stored in the data file storage system 3, a data file that is recorded in the ERS management file is deleted from the data file storage system 3, If the name also contains time-series information such as creation date and time, the order of the files has been changed by changing the file name, etc., and the addition or deletion of the data file to be processed or the change of order has occurred Judging. In addition, the alteration detection of each data file may make a verification request to the time stamp verification unit 42h again in addition to processing with the linked hash data.

処理対象のデータファイルの追加、削除又は順序の入替えが発生していない場合、ERS管理ファイル検証部42iは、処理対象のデータファイルの追加、削除又は順序の入替えが発生していないことを記憶部43に記録し(ステップS116)、処理フローを終了する。   If no data file to be processed has been added, deleted, or reordered, the ERS management file verification unit 42i indicates that no data file to be processed has been added, deleted, or reordered. 43 (step S116), and the processing flow ends.

それに対し、処理対象のデータファイルの追加、削除又は順序の入替えが発生している場合、ERS管理ファイル検証部42iは、処理対象のデータファイルの追加、削除又は順序の入替えが発生していることを記憶部43に記録し(ステップS117)、処理フローを終了する。   On the other hand, when addition, deletion, or change of order of data files to be processed has occurred, the ERS management file verification unit 42i has added, deleted, or changed order of data files to be processed. Is stored in the storage unit 43 (step S117), and the processing flow ends.

図6に示す処理フローによれば、複数の任意ファイルに対するERS管理ファイルに付与されたタイムスタンプの有効性の検証を、ERS管理ファイルの検証用ファイルとしてのERSファイルより行い、検証に成功するとERS管理ファイルの真正性が担保される。すなわち、ERS管理ファイルが有する複数の任意ファイル間の関係が担保される。これによって、一つのタイムスタンプを付与した複数の任意ファイル間の関係及びファイルの追加又は削除の有無を検証することができる。また、管理ファイルに付与されたタイムスタンプの有効性の検証処理中に任意ファイルのハッシュ値による改竄検知が含まれるため、個々の任意ファイルについて従来のERS規格によるタイムスタンプの検証を行う必要がなくなる。このように、複数の任意ファイル間の関係を保持しながらファイルの追加、削除又は順序の入替を検知することができるので、電子署名システムのセキュリティ性を向上させることができる。   According to the processing flow shown in FIG. 6, the validity of the time stamp assigned to the ERS management file for a plurality of arbitrary files is verified from the ERS file as the verification file of the ERS management file. The authenticity of the management file is guaranteed. That is, the relationship between a plurality of arbitrary files included in the ERS management file is secured. As a result, it is possible to verify the relationship between a plurality of arbitrary files to which one time stamp is assigned and whether or not a file is added or deleted. Further, since the tampering detection based on the hash value of the arbitrary file is included in the verification process of the validity of the time stamp given to the management file, it is not necessary to verify the time stamp according to the conventional ERS standard for each arbitrary file. . In this way, since addition, deletion, or change of order of files can be detected while maintaining the relationship between a plurality of arbitrary files, the security of the electronic signature system can be improved.

ここで、ERS管理ファイルの別様式での実施の形態を説明する。別様式のERS管理ファイルには、上述したERS管理ファイルと同様に、タイムスタンプ付与対象となる複数の任意ファイル間の関係に従って所定の規則でファイル名が列挙されるとともに、前回のタイムスタンプ付与時に作成したERS管理ファイルのファイル名及びERS管理ファイルの内容のハッシュ値が記録されている。   Here, an embodiment in another format of the ERS management file will be described. Similarly to the ERS management file described above, the ERS management file in another format lists file names according to a predetermined rule according to the relationship between a plurality of arbitrary files to which time stamps are added, and at the time of the previous time stamp assignment. The file name of the created ERS management file and the hash value of the contents of the ERS management file are recorded.

別様式のERS管理ファイルには、これらに加え、任意ファイルの一部分に対しての順序関係のチェックを含めた検証処理を効率よく行うために、さらに複数の任意ファイルのハッシュ値がそれぞれのファイル名と対応付けられて記録される。   In addition to these, in order to efficiently perform verification processing including checking the order relation for a part of an arbitrary file, a hash value of a plurality of arbitrary files is added to each file name. Are recorded in association with each other.

この別様式のERS管理ファイルを用いる場合、ERS管理ファイルのハッシュ値に任意ファイルのハッシュ値を連結させた連結ハッシュデータを用いなくてもよい。ERS管理ファイルのハッシュ値に任意ファイルのハッシュ値を連結させた連結ハッシュデータを用いない場合、図5に示す処理フローでは、連結ハッシュデータを作成するステップS12が省略され、ステップS13において、タイムスタンプ及びファイル受取部42bは、処理対象のデータファイルとERS管理ファイルの各ハッシュ値を末端ノードに持つハッシュツリーを作成し、ステップS15において、ERSファイル作成部42dは、各ファイルのハッシュ値に対応した各データファイル及びERS管理ファイルに対するERSファイルを、ハッシュツリー及びタイムスタンプから作成し、作成した全てのERSファイルを記憶部43に格納する。   When the ERS management file of this different format is used, it is not necessary to use the concatenated hash data in which the hash value of the arbitrary file is concatenated with the hash value of the ERS management file. In the case of not using the concatenated hash data obtained by concatenating the hash value of the arbitrary file with the hash value of the ERS management file, step S12 for creating the concatenated hash data is omitted in the processing flow shown in FIG. The file receiving unit 42b creates a hash tree having the hash values of the data file to be processed and the ERS management file at the end node. In step S15, the ERS file creating unit 42d corresponds to the hash value of each file. An ERS file for each data file and ERS management file is created from the hash tree and time stamp, and all the created ERS files are stored in the storage unit 43.

また、この別様式のERS管理ファイルのハッシュ値に任意ファイルのハッシュ値を連結させた連結ハッシュデータを用いない場合、図6に示す処理フローでは、連結ハッシュデータを作成するステップS109が省略され、ERS管理ファイル検証部42iは、取得した全てのERS管理ファイルの各々についてERS管理ファイルのタイムスタンプの有効性の検証処理(既存のERS規格のタイムスタンプ検証処理)を、ERS管理ファイル及び当該ERS管理ファイルのERSファイルを指定してからタイムスタンプ検証部42hに要求して実行する。検証に成功した場合は、ERS管理ファイル中の任意ファイルのハッシュ値と、実際に取得した任意ファイルから計算して得られるハッシュ値とを比較し、一致することを確認し、任意ファイルの改竄検知を行う。   Further, in the case of not using the concatenated hash data obtained by concatenating the hash value of the arbitrary file with the hash value of the ERS management file of this different format, step S109 for creating the concatenated hash data is omitted in the processing flow shown in FIG. The ERS management file verification unit 42i performs the verification process of the validity of the time stamp of the ERS management file (the time stamp verification process of the existing ERS standard) for each of the acquired ERS management files, the ERS management file and the ERS management file After specifying the ERS file of the file, the time stamp verification unit 42h is requested and executed. If the verification is successful, the hash value of the arbitrary file in the ERS management file is compared with the hash value obtained by calculation from the actually acquired arbitrary file, and it is confirmed that they match, and detection of falsification of the arbitrary file I do.

本発明は、上記実施の形態に限定されるものではなく、幾多の変更及び変形が可能である。例えば、本発明によるタイムスタンプ付与装置及びタイムスタンプ検証装置としての電子署名サーバを有する電子署名システムを社内システムに適用する場合について説明したが、社内システム以外のシステムに対しても、本発明によるタイムスタンプ付与装置及びタイムスタンプ検証装置としての電子署名サーバを有する電子署名システムを適用することができる。また、任意ファイルとしてデータファイル以外のファイルを用いることもできる。   The present invention is not limited to the above-described embodiment, and many changes and modifications can be made. For example, the case where an electronic signature system having an electronic signature server as a time stamp assigning device and a time stamp verification device according to the present invention is applied to an in-house system has been described. An electronic signature system having an electronic signature server as a stamp attaching device and a time stamp verification device can be applied. A file other than a data file can also be used as an arbitrary file.

また、上記実施の形態において、ERS規格に対応したタイムスタンプ付与装置及びタイムスタンプ検証装置を用いる場合について説明したが、ERS規格以外の規格又は標準技術に対応したタイムスタンプ付与装置及びタイムスタンプ検証装置を用いることができる。   In the above embodiment, the case of using the time stamp assigning device and the time stamp verifying device corresponding to the ERS standard has been described. However, the time stamp giving device and the time stamp verifying device corresponding to the standard or standard technology other than the ERS standard. Can be used.

ERS規格以外の規格又は標準技術に対応したタイムスタンプ付与装置及びタイムスタンプ検証装置を用いる場合、例えば、電子署名システムのデータファイル保管システム3に記憶されるデータの形式の他の例を表す図7に示すように、タイムスタンプAが付与された任意ファイル1,2,3及び管理ファイルAに対して、検証用ファイル1,2,3,Aが、タイムスタンプAから独立した形でそれぞれ作成されてもよい。   FIG. 7 shows another example of the format of data stored in the data file storage system 3 of the electronic signature system when using a time stamp assigning device and a time stamp verification device corresponding to a standard or standard technology other than the ERS standard. As shown, verification files 1, 2, 3, and A are created independently of time stamp A for arbitrary files 1, 2, 3, and management file A to which time stamp A is assigned. May be.

同様に、図7において、タイムスタンプBが付与された任意ファイル4,5及び管理ファイルBに対して、検証用ファイル4,5、Bが、タイムスタンプBから独立した形でそれぞれ作成されてもよい。   Similarly, in FIG. 7, even if the verification files 4, 5, B are created independently of the time stamp B for the arbitrary files 4, 5 and the management file B to which the time stamp B is assigned, respectively. Good.

すなわち、任意ファイル1,2,3及び管理ファイルAと、検証用ファイル1,2,3Aと、タイムスタンプAとを対応付けてデータファイル保管システム3及び記憶部43に記憶させ、任意ファイル4,5及び管理ファイルBと、検証用ファイル4,5,Bと、タイムスタンプBとを対応付けてデータファイル保管システム3及び記憶部43に記憶させることができる。   That is, the arbitrary files 1, 2, 3 and the management file A, the verification files 1, 2, 3 A and the time stamp A are associated with each other and stored in the data file storage system 3 and the storage unit 43. 5 and the management file B, the verification files 4, 5, B, and the time stamp B can be associated with each other and stored in the data file storage system 3 and the storage unit 43.

また、タイムスタンプ処理を行ったシステムを明確にして情報の信頼性を向上させるために、データファイル及び管理ファイルのハッシュツリーを作成する前に各ファイルに電子署名システムの秘密鍵で電子署名を付与することもでき、各ファイルの電子署名の検証を、タイムスタンプ検証処理と併せて行うこともできる。また、データファイルについては、データファイル作成者による電子署名が付与されていてもよい。   Also, in order to clarify the time stamped system and improve the reliability of information, each file is given an electronic signature with the private key of the electronic signature system before creating a hash tree of the data file and management file It is also possible to verify the electronic signature of each file together with the time stamp verification process. The data file may be given an electronic signature by the data file creator.

また、上記実施の形態において、タイムスタンプ付与対象又はタイムスタンプ検証対象となる任意ファイルを指定するためにスケジューラ部42aを用いる場合について説明したが、ユーザ端末1からのユーザ入力に応じてタイムスタンプ付与対象又はタイムスタンプ検証対象となる任意ファイルを指定するユーザ入力受信部を制御部42に設けることもできる。この場合、ファイル送出部42gは、タイムスタンプ付与装置によって生成されるERS管理ファイル及び各ファイルのERSファイル(検証用ファイル)や、タイムスタンプ検証装置によって出力される処理対象のデータファイルの追加、削除又は順序の入替えが発生しているか否かの情報を、通信I/F部41を通じてユーザ端末1に送信することもできる。   In the above embodiment, the case where the scheduler unit 42a is used to specify an arbitrary file to be time stamped or time stamp verified has been described. However, time stamp is given according to user input from the user terminal 1. A user input receiving unit that designates an arbitrary file that is a target or a time stamp verification target may be provided in the control unit 42. In this case, the file sending unit 42g adds or deletes the ERS management file generated by the time stamp assigning device, the ERS file (verification file) of each file, and the processing target data file output by the time stamp verifying device. Alternatively, information on whether or not the order is changed can be transmitted to the user terminal 1 through the communication I / F unit 41.

また、タイムスタンプ付与対象又はタイムスタンプ検証対象となる任意ファイルをファイルの生成規則に基づいて指定するファイル指定部を、制御部42に設けることもできる。また、タイムスタンプ付与対象として指定された複数の任意ファイル間の関係を指定するためにスケジューラ部42aを用いる場合について説明したが、上述した任意ファイルの指定と合わせてファイル間の関係をユーザ端末1からのユーザ入力に応じて指定し又はファイルの生成規則から指定することができる。さらに、検証対象の管理ファイルを直接指定することも、ある任意ファイルを指定し、その任意ファイルから関係する管理ファイルを特定して指定することもできる。   In addition, the control unit 42 may be provided with a file designating unit that designates an arbitrary file to be time stamped or time stamp verified based on a file generation rule. In addition, the case where the scheduler unit 42a is used to specify the relationship between a plurality of arbitrary files specified as the time stamp assignment target has been described. It can be specified according to user input from or from file generation rules. Furthermore, the management file to be verified can be directly specified, or a certain arbitrary file can be specified, and the related management file can be specified and specified from the arbitrary file.

1 ユーザ端末
2 業務システム
3 データファイル保管システム
4 電子署名サーバ
5,a タイムスタンプ局
6 通信ネットワーク
11,21,31,41,51 通信インタフェース(I/F)部
12,22,32,42,52 制御部
13 入力部
14 表示部
15,23,33,43,53 記憶部
22a 業務処理部
22b データファイル作成部
42a スケジューラ部
42b タイムスタンプ及びファイル受取部
42c ERS管理ファイル作成部
42d ERSファイル作成部
42e 電子署名付与部
42f 電子署名検証部
42g ファイル送出部
42h タイムスタンプ検証部
42i ERS管理ファイル検証部
t,t’ タイムスタンプ
DESCRIPTION OF SYMBOLS 1 User terminal 2 Business system 3 Data file storage system 4 Electronic signature server 5, a Time stamp station 6 Communication network 11,21,31,41,51 Communication interface (I / F) part 12,22,32,42,52 Control unit 13 Input unit 14 Display unit 15, 23, 33, 43, 53 Storage unit 22a Business processing unit 22b Data file creation unit 42a Scheduler unit 42b Time stamp and file reception unit 42c ERS management file creation unit 42d ERS file creation unit 42e Electronic signature adding unit 42f Electronic signature verification unit 42g File sending unit 42h Time stamp verification unit 42i ERS management file verification unit t, t 'Time stamp

Claims (6)

複数のファイルに対して一つのタイムスタンプの発行要求をタイムスタンプ局に行い、前記タイムスタンプ局が発行した当該タイムスタンプを前記複数のファイルに付与するタイムスタンプ付与装置であって、
タイムスタンプ付与対象となる複数の任意ファイルを指定するファイル指定部と、
前記複数の任意ファイル間の関係を含む管理ファイルを作成する管理ファイル作成部と、
前記複数の任意ファイル及び前記管理ファイルに対して一つのタイムスタンプの発行要求を前記タイムスタンプ局に行い、前記タイムスタンプ局が発行した当該タイムスタンプを取得するタイムスタンプ取得部と、
前記複数の任意ファイル及び前記管理ファイルに対して、前記タイムスタンプの有効性を検証可能な検証用ファイルをそれぞれ作成する検証用ファイル作成部と、
を備えることを特徴とするタイムスタンプ付与装置。
A time stamp giving apparatus that issues a time stamp issuance request to a plurality of files to a time stamp authority, and assigns the time stamp issued by the time stamp authority to the plurality of files,
A file designating unit for designating a plurality of arbitrary files to be time stamped;
A management file creation unit for creating a management file including a relationship between the plurality of arbitrary files;
A time stamp acquisition unit that issues a request for issuing one time stamp to the plurality of arbitrary files and the management file to the time stamp authority, and acquires the time stamp issued by the time stamp authority;
For each of the plurality of arbitrary files and the management file, a verification file creation unit that creates a verification file that can verify the validity of the time stamp;
A time stamp assigning device comprising:
前記タイムスタンプ取得部は、前記複数の任意ファイル及び前記管理ファイルのハッシュ値を用いてハッシュツリーを生成し、ハッシュツリーの頂点となるルートハッシュである一つのハッシュ値を用いて前記一つのタイムスタンプの発行要求を行い、
前記検証用ファイル作成部は、前記タイムスタンプと前記複数の任意ファイルのうちの一つ又は前記管理ファイルに関連するハッシュツリーの情報とを含む前記検証用ファイルを作成する請求項1に記載のタイムスタンプ付与装置。
The time stamp acquisition unit generates a hash tree using hash values of the plurality of arbitrary files and the management file, and uses the one hash value that is a root hash that is a vertex of the hash tree to generate the one time stamp. Issuance request,
2. The time according to claim 1, wherein the verification file creation unit creates the verification file including the time stamp and one of the plurality of arbitrary files or hash tree information related to the management file. Stamping device.
前記検証用ファイル作成部は、前記タイムスタンプを取得する度に前記管理ファイルの識別情報を記憶部に記憶させ、
前記管理ファイル作成部は、複数のファイルにタイムスタンプを順次付与する場合、前回のタイムスタンプ取得時に前記記憶部に記憶された前記識別情報を含んだ前記管理ファイルを作成する請求項1又は2に記載のタイムスタンプ付与装置。
The verification file creation unit stores the management file identification information in the storage unit every time the time stamp is acquired,
The said management file preparation part produces the said management file including the said identification information memorize | stored in the said memory | storage part at the time of the last time stamp acquisition, when giving a time stamp sequentially to several files. The time stamp assigning device described.
タイムスタンプを付与されたファイルの前記タイムスタンプの有効性を検証するタイムスタンプ検証装置であって、
前記タイムスタンプが付与された複数の任意ファイルと、前記複数の任意ファイル間の関係を少なくとも含む前記タイムスタンプが付与された管理ファイルと、前記任意ファイル及び前記管理ファイルに付与されたタイムスタンプの有効性を検証可能な検証用ファイルとを対応付けて記憶する記憶部と、
検証要求を受けると、検証対象のファイルと当該ファイルに対応付いている検証用ファイルとからタイムスタンプの有効性を検証して検証結果を出力するタイムスタンプ検証部と、
前記管理ファイルが検証対象とされた場合に、当該管理ファイルに付与されているタイムスタンプの検証を前記タイムスタンプ検証部に要求し、当該要求に対する検証結果が有効であると、前記複数の任意ファイル間の関係に基づいて任意ファイルを特定して前記記憶部に記憶されているか否かを判断する管理ファイル検証部と、
を備えることを特徴とするタイムスタンプ検証装置。
A time stamp verification device for verifying the validity of the time stamp of a file given a time stamp,
Validity of a plurality of arbitrary files to which the time stamp is given, a management file to which the time stamp including at least a relationship between the plurality of arbitrary files is given, and a time stamp given to the arbitrary file and the management file A storage unit that stores a verification file capable of verifying the properties in association with each other;
Upon receiving the verification request, a time stamp verification unit that verifies the validity of the time stamp from the verification target file and the verification file associated with the file and outputs the verification result;
When the management file is a verification target, the time stamp verification unit is requested to verify the time stamp given to the management file, and if the verification result for the request is valid, the plurality of arbitrary files A management file verification unit that determines whether an arbitrary file is identified and stored in the storage unit based on the relationship between;
A time stamp verification apparatus comprising:
前記管理ファイル検証部は、前記管理ファイルのハッシュ値に前記複数の任意ファイルのハッシュ値を前記複数の任意ファイル間の関係に基づいて連結した連結データを作成し、当該連結データを含めて前記要求を前記タイムスタンプ検証部に行う請求項4に記載のタイムスタンプ検証装置。   The management file verification unit creates concatenated data in which hash values of the plurality of arbitrary files are concatenated to a hash value of the management file based on a relationship between the plurality of arbitrary files, and includes the concatenated data and the request The time stamp verification apparatus according to claim 4, wherein the time stamp verification unit performs the following. 前記管理ファイルは、前記複数の任意ファイルのハッシュ値を更に有し、
前記管理ファイル検証部は、前記要求に対する検証結果が有効であるときに、前記管理ファイルに含まれる任意ファイルの前記ハッシュ値と、前記記憶部に記憶された当該任意ファイルから計算したハッシュ値とを比較し、当該比較の結果を、当該任意ファイルに付与された前記タイムスタンプの有効性の検証結果とする請求項4又は5に記載のタイムスタンプ検証装置。
The management file further includes hash values of the plurality of arbitrary files,
The management file verification unit, when the verification result for the request is valid, the hash value of the arbitrary file included in the management file and the hash value calculated from the arbitrary file stored in the storage unit 6. The time stamp verification apparatus according to claim 4, wherein the comparison results are used as a verification result of the validity of the time stamp assigned to the arbitrary file.
JP2011183672A 2011-08-25 2011-08-25 Time stamp verification device Active JP5881334B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2011183672A JP5881334B2 (en) 2011-08-25 2011-08-25 Time stamp verification device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2011183672A JP5881334B2 (en) 2011-08-25 2011-08-25 Time stamp verification device

Publications (2)

Publication Number Publication Date
JP2013046288A true JP2013046288A (en) 2013-03-04
JP5881334B2 JP5881334B2 (en) 2016-03-09

Family

ID=48009843

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2011183672A Active JP5881334B2 (en) 2011-08-25 2011-08-25 Time stamp verification device

Country Status (1)

Country Link
JP (1) JP5881334B2 (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2014042214A (en) * 2012-08-23 2014-03-06 Seiko Instruments Inc Data certification system and data certification server

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2003091237A (en) * 2001-09-17 2003-03-28 Toshiba Corp Electronic document system
JP2003143139A (en) * 2001-11-07 2003-05-16 Fujitsu Ltd Program and method for storing and verifying digital data
JP2007043321A (en) * 2005-08-01 2007-02-15 Hitachi Ltd Authenticity verification method and system of electronic document
US20090282255A1 (en) * 2008-05-06 2009-11-12 Research In Motion Limited Bundle Verification
JP2010128875A (en) * 2008-11-28 2010-06-10 Psc:Kk Electronic data management method

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2003091237A (en) * 2001-09-17 2003-03-28 Toshiba Corp Electronic document system
JP2003143139A (en) * 2001-11-07 2003-05-16 Fujitsu Ltd Program and method for storing and verifying digital data
JP2007043321A (en) * 2005-08-01 2007-02-15 Hitachi Ltd Authenticity verification method and system of electronic document
US20090282255A1 (en) * 2008-05-06 2009-11-12 Research In Motion Limited Bundle Verification
JP2010128875A (en) * 2008-11-28 2010-06-10 Psc:Kk Electronic data management method

Non-Patent Citations (3)

* Cited by examiner, † Cited by third party
Title
CSNB201100339001; 電子署名普及に関する活動報告2008 , 200903, pp. 108-112, 次世代電子商取引推進協議会 *
JPN6014053043; T. Gondrom et al.: 'Evidence Record Syntax (ERS)' Request for Comments 4998 , 200708, IETF *
JPN6014053044; 電子署名普及に関する活動報告2008 , 200903, pp. 108-112, 次世代電子商取引推進協議会 *

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2014042214A (en) * 2012-08-23 2014-03-06 Seiko Instruments Inc Data certification system and data certification server

Also Published As

Publication number Publication date
JP5881334B2 (en) 2016-03-09

Similar Documents

Publication Publication Date Title
CN110495132B (en) System and method for generating, uploading and executing code blocks within distributed network nodes
CN110535660B (en) Evidence obtaining service system based on block chain
JP6606701B2 (en) Information management method and apparatus
US20120117608A1 (en) Certificate policy management tool
CN111738893B (en) Identity authentication method, device, equipment and medium based on blockchain
JP2009237956A (en) Contract content setting system and contract content setting method
CN110046155A (en) The update of property data base, data characteristics determination method, device and equipment
CN112069134A (en) Requirement document processing method, device and medium
CN111090803A (en) Data processing method and device, electronic equipment and storage medium
US20140052649A1 (en) Data Management System for Generating a Report Document by Linking Technical Data to Intellectual Property Rights Data
JP4965808B2 (en) Software configuration management system for medical equipment
JP5881334B2 (en) Time stamp verification device
CN114185952A (en) Data retrieving method and device, electronic equipment and storage medium
JP5832269B2 (en) Time stamping device
CN105791350B (en) Project data processing method and system
CN103370900A (en) Information-processing device and information-processing program
CN112994900A (en) File countersigning method, device, client, server and storage medium
JP6730170B2 (en) Management device, method and program
JP6927865B2 (en) Program and timestamp management device
JP7078378B2 (en) Program and timestamp management device
JP5467032B2 (en) Information management system and its data update operation method
JP7339401B2 (en) Program and time stamp management device
CN116069738B (en) Root zone file generation method, terminal equipment and computer readable storage medium
JP6877294B2 (en) Program and timestamp management device
JP4741219B2 (en) Electronic information disclosure certification apparatus, electronic information disclosure certification method, electronic information disclosure certification program, and recording medium

Legal Events

Date Code Title Description
A621 Written request for application examination

Free format text: JAPANESE INTERMEDIATE CODE: A621

Effective date: 20140710

A977 Report on retrieval

Free format text: JAPANESE INTERMEDIATE CODE: A971007

Effective date: 20141209

A131 Notification of reasons for refusal

Free format text: JAPANESE INTERMEDIATE CODE: A131

Effective date: 20141216

A521 Request for written amendment filed

Free format text: JAPANESE INTERMEDIATE CODE: A523

Effective date: 20150216

A02 Decision of refusal

Free format text: JAPANESE INTERMEDIATE CODE: A02

Effective date: 20150901

A521 Request for written amendment filed

Free format text: JAPANESE INTERMEDIATE CODE: A523

Effective date: 20151127

A911 Transfer to examiner for re-examination before appeal (zenchi)

Free format text: JAPANESE INTERMEDIATE CODE: A911

Effective date: 20151204

TRDD Decision of grant or rejection written
A01 Written decision to grant a patent or to grant a registration (utility model)

Free format text: JAPANESE INTERMEDIATE CODE: A01

Effective date: 20160105

A61 First payment of annual fees (during grant procedure)

Free format text: JAPANESE INTERMEDIATE CODE: A61

Effective date: 20160202

R150 Certificate of patent or registration of utility model

Ref document number: 5881334

Country of ref document: JP

Free format text: JAPANESE INTERMEDIATE CODE: R150

R250 Receipt of annual fees

Free format text: JAPANESE INTERMEDIATE CODE: R250

R250 Receipt of annual fees

Free format text: JAPANESE INTERMEDIATE CODE: R250

R250 Receipt of annual fees

Free format text: JAPANESE INTERMEDIATE CODE: R250

R250 Receipt of annual fees

Free format text: JAPANESE INTERMEDIATE CODE: R250

R250 Receipt of annual fees

Free format text: JAPANESE INTERMEDIATE CODE: R250

R250 Receipt of annual fees

Free format text: JAPANESE INTERMEDIATE CODE: R250