JP6305946B2 - Secret pattern matching apparatus, method and program - Google Patents

Secret pattern matching apparatus, method and program Download PDF

Info

Publication number
JP6305946B2
JP6305946B2 JP2015024218A JP2015024218A JP6305946B2 JP 6305946 B2 JP6305946 B2 JP 6305946B2 JP 2015024218 A JP2015024218 A JP 2015024218A JP 2015024218 A JP2015024218 A JP 2015024218A JP 6305946 B2 JP6305946 B2 JP 6305946B2
Authority
JP
Japan
Prior art keywords
information
pattern
concealment
character
determination result
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.)
Active
Application number
JP2015024218A
Other languages
Japanese (ja)
Other versions
JP2016148722A (en
Inventor
直人 桐淵
直人 桐淵
浩気 濱田
浩気 濱田
大 五十嵐
大 五十嵐
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Nippon Telegraph and Telephone Corp
Original Assignee
Nippon Telegraph and Telephone Corp
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Nippon Telegraph and Telephone Corp filed Critical Nippon Telegraph and Telephone Corp
Priority to JP2015024218A priority Critical patent/JP6305946B2/en
Publication of JP2016148722A publication Critical patent/JP2016148722A/en
Application granted granted Critical
Publication of JP6305946B2 publication Critical patent/JP6305946B2/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Description

本発明は、暗号応用技術に関し、特に入力データを明かすことなくデータ処理を行う秘密計算技術に関する。   The present invention relates to a cryptographic application technique, and more particularly to a secret calculation technique for processing data without revealing input data.

秘匿された文字列に対するパターンマッチング技術として非特許文献1に記載された手法がある。この手法では、パターンマッチングの対象文字列とパターンの両方を秘匿した状態でパターンマッチングを行い、秘匿化されたパターンマッチングの結果を得る。この手法では任意の文字に対応したワイルドカードを使うこともできる。   There is a technique described in Non-Patent Document 1 as a pattern matching technique for a concealed character string. In this method, pattern matching is performed in a state in which both the target character string and pattern for pattern matching are concealed, and a concealed pattern matching result is obtained. This method can also use wildcards that correspond to any character.

濱田浩気,桐淵直人,五十嵐大,“ラウンド効率のよい秘密計算パターンマッチング”,Computer Security Symposium 2014.Hiroki Kajita, Naoto Kiryu, Dai Igarashi, “Round efficient secret calculation pattern matching”, Computer Security Symposium 2014.

しかしながら、従来手法は表記の種別の区別の有無を指定可能なパターンマッチングに適応していない。
本発明の課題は、表記の種別の区別の有無を指定可能なパターンマッチングを秘密計算で行うことである。
However, the conventional method is not adapted to pattern matching that can specify whether or not to distinguish between types of notation.
An object of the present invention is to perform pattern matching that can specify whether or not to distinguish between types of notation by secret calculation.

対象文字の表記が特定の種別に該当するか否かを表す対象文字種別情報とパターン文字の表記が特定の種別に該当するか否かを表すパターン文字種別情報とが一致し、かつ、対象文字の内容を表す対象符号とパターン文字の内容を表すパターン符号とが一致する、という条件を満たすか否かを表す第1情報に基づく判定結果、および、対象符号とパターン符号とが一致するという条件を満たすか否かを表す第2情報に基づく第2判定結果、が秘匿化された秘匿化判定結果を得る。判定条件が表記の種別を区別することを表す場合に第1判定結果に基づき、判定条件が表記の種別を区別しないことを表す場合に第2判定結果に基づく、第3判定結果に応じた秘匿化情報を得る。   The target character type information indicating whether the notation of the target character corresponds to a specific type and the pattern character type information indicating whether the notation of the pattern character corresponds to a specific type, and the target character The determination result based on the first information indicating whether or not the condition that the target code representing the content of the pattern and the pattern code representing the content of the pattern character match, and the condition that the target code and the pattern code match A concealment determination result obtained by concealing the second determination result based on the second information indicating whether or not the condition is satisfied is obtained. Concealment according to the third determination result based on the first determination result when the determination condition indicates that the type of notation is distinguished, and based on the second determination result when the determination condition indicates that the type of the notation is not distinguished Get information.

これにより、表記の種別の区別の有無を指定可能なパターンマッチングを秘密計算で実現できる。   Thereby, the pattern matching which can designate the presence or absence of distinction of the description classification is realizable by secret calculation.

図1は実施形態の秘匿パターンマッチングシステムの構成を例示したブロック図である。FIG. 1 is a block diagram illustrating the configuration of the secret pattern matching system of the embodiment. 図2は実施形態の秘匿パターンマッチング装置の機能構成を例示したブロック図である。FIG. 2 is a block diagram illustrating a functional configuration of the secret pattern matching apparatus according to the embodiment. 図3Aは実施形態の端末装置の機能構成を例示したブロック図であり、図3Bは実施形態のデータベース装置の機能構成を例示したブロック図である。3A is a block diagram illustrating the functional configuration of the terminal device according to the embodiment, and FIG. 3B is a block diagram illustrating the functional configuration of the database device according to the embodiment. 図4Aは実施形態の端末装置の処理を例示するためのフロー図であり、図4Bは実施形態の秘匿パターンマッチング装置の処理を例示するためのフロー図である。4A is a flowchart for illustrating the processing of the terminal device of the embodiment, and FIG. 4B is a flowchart for illustrating the processing of the secret pattern matching device of the embodiment. 図5Aは、対象符号およびパターン符号の例(変換後の符号点)を示した図である。図5Bは、対象文字またはパターン文字と、対象文字種別情報またはパターン文字種別情報の例(大文字フラグおよび小文字フラグ)と、対象符号およびパターン符号の例(変換後の符号点)との関係を例示するための図である。FIG. 5A is a diagram illustrating an example of target codes and pattern codes (code points after conversion). FIG. 5B illustrates the relationship between the target character or pattern character, the target character type information or pattern character type information example (uppercase flag and lowercase flag), and the target code and pattern code example (converted code point). It is a figure for doing. 図6Aおよび図6Bは、対象文字種別情報とパターン文字種別情報とが一致し、かつ、対象符号とパターン符号とが一致する、という条件を満たすか否かを表す第1情報の例(結果II)を例示した図である。図6Cおよび図6Dは、対象符号とパターン符号とが一致するという条件を満たすか否かを表す第2情報の例(結果III)を例示した図である。6A and 6B are examples of first information indicating whether or not the condition that the target character type information and the pattern character type information match and the target code and the pattern code match is satisfied (Result II). ). 6C and 6D are diagrams illustrating an example of the second information (result III) indicating whether or not the condition that the target code matches the pattern code is satisfied. 図7Aおよび図7Bは、対象文字種別情報とパターン文字種別情報とが一致し、かつ、対象符号とパターン符号とが一致する、という条件を満たすか否かを表す第1情報の例(結果II)を例示した図である。図7Cおよび図7Dは、対象符号とパターン符号とが一致するという条件を満たすか否かを表す第2情報の例(結果III)を例示した図である。7A and 7B are examples of first information indicating whether or not the condition that the target character type information matches the pattern character type information and the target code matches the pattern code is satisfied (Result II). ). 7C and 7D are diagrams illustrating an example (result III) of the second information indicating whether or not the condition that the target code matches the pattern code is satisfied. 図8Aおよび図8Bは、第1情報の例(結果II)に基づく第1判定結果の例(パターンマッチング結果x)を例示した図である。FIG. 8A and FIG. 8B are diagrams exemplifying a first determination result example (pattern matching result x n ) based on the first information example (result II). 図9Aおよび図9Bは、第2情報の例(結果III)に基づく第2判定結果の例(パターンマッチング結果y)を例示した図である。FIG. 9A and FIG. 9B are diagrams exemplifying a second determination result example (pattern matching result y n ) based on the second information example (result III).

以下、図面を参照して本発明の実施形態を説明する。
[用語]
各実施形態で使用する用語を定義する。
「文字」とは、可視的表現を持ち、符号化表現が可能な記号を意味する。「文字」は、言語を伝達し記録するために線や点を使って形作られた記号(非図形文字)であってもよいし、それに準ずる記号(図形文字)であってもよい。「文字」の例は、文字コード規格で定められた符号化文字である。
Hereinafter, embodiments of the present invention will be described with reference to the drawings.
[the term]
Terms used in each embodiment are defined.
“Character” means a symbol having a visual expression and capable of an encoded expression. The “character” may be a symbol (non-graphic character) formed using a line or a point for transmitting and recording a language, or may be a symbol (graphic character) according to the symbol. An example of “character” is an encoded character defined by the character code standard.

「パターンマッチング」とは、「対象文字列(対象情報)」が「パターン文字列(パターン情報)」の条件を満たすかを判定する演算を意味する。「対象文字列」および「パターン文字列」は、ともに1個または2個以上の文字を含む。「対象文字列」に含まれる各文字を「対象文字」と呼び、「パターン文字列」に含まれる各文字を「パターン文字」と呼ぶ。「対象文字列」や「パターン文字列」の例は、テキストデータ(文書データ、数値データなど)に含まれた文字列や検索キーワードなどである。例えば、「対象文字列」がテキストデータに含まれた文字列であって「パターン文字列」が検索キーワードであってもよいし、「対象文字列」および「パターン文字列」が互いに同一または異なるテキストデータに含まれた文字列であってもよい。   “Pattern matching” means an operation for determining whether “target character string (target information)” satisfies the condition of “pattern character string (pattern information)”. Both “target character string” and “pattern character string” include one or more characters. Each character included in the “target character string” is referred to as a “target character”, and each character included in the “pattern character string” is referred to as a “pattern character”. Examples of “target character string” and “pattern character string” are a character string and a search keyword included in text data (document data, numerical data, etc.). For example, “target character string” may be a character string included in text data, and “pattern character string” may be a search keyword, and “target character string” and “pattern character string” are the same or different from each other. It may be a character string included in the text data.

「種別(クラス)」とは、文字の表記の種別を意味する。例えば、「種別」の例は大文字、小文字、半角、全角、特定のフォントなどである。「文字種別情報」とは、文字の表記が特定の種別に該当するか否かを表す情報(フラグ)を意味する。文字の表記が特定の種別に該当する場合、その「文字種別情報」の値は真(T)(有効)であり、文字の表記が特定の種別に該当しない場合、その「文字種別情報」の値は偽(F)(無効)である。例えば、文字「A」の場合、「大文字」という文字種別情報は真(T)(有効)であり、「小文字」という文字種別情報は偽(F)(無効)である。「対象文字」の「文字種別情報」を「対象文字種別情報」と呼び、「パターン文字」の「文字種別情報」を「パターン文字種別情報」と呼ぶ。   “Type (class)” means a type of character notation. For example, examples of “type” are uppercase letters, lowercase letters, half-width characters, full-width characters, specific fonts, and the like. “Character type information” means information (flag) indicating whether or not a character notation corresponds to a specific type. When the character notation corresponds to a specific type, the value of “character type information” is true (T) (valid), and when the character notation does not correspond to a specific type, the “character type information” The value is false (F) (invalid). For example, in the case of the character “A”, the character type information “uppercase” is true (T) (valid), and the character type information “lowercase” is false (F) (invalid). “Character type information” of “target character” is called “target character type information”, and “character type information” of “pattern character” is called “pattern character type information”.

「文字の内容」とは「文字」が表す概念を意味する。例えば、大文字の「A」と小文字の「a」とは同じ概念(アルファベットの最初の文字)を表し、「A」の内容と「a」の内容とは同一である。「対象符号」とは「対象文字」の内容を表す符号であり、「パターン符号」とは「パターン文字」の内容を表す符号である。「対象文字」と「パターン文字」とが同じ内容を表すとき、それらの「対象符号」と「パターン符号」とは互いに同一である。例えば、「A」に対応する「対象符号」と「a」に対応する「パターン符号」とは同一である。一方、たとえ「種別」が同一であっても、「対象文字」と「パターン文字」とが異なる内容を表すとき、それらの「対象符号」と「パターン符号」とは異なる。例えば、「A」に対応する「対象符号」と「B」に対応する「パターン符号」とは異なる。   “Character content” means the concept represented by “character”. For example, uppercase “A” and lowercase “a” represent the same concept (the first letter of the alphabet), and the content of “A” is the same as the content of “a”. The “target code” is a code representing the content of the “target character”, and the “pattern code” is a code representing the content of the “pattern character”. When the “target character” and the “pattern character” represent the same content, the “target code” and the “pattern code” are the same. For example, the “target code” corresponding to “A” and the “pattern code” corresponding to “a” are the same. On the other hand, even if the “type” is the same, when the “target character” and the “pattern character” represent different contents, the “target code” and the “pattern code” are different. For example, a “target code” corresponding to “A” is different from a “pattern code” corresponding to “B”.

[第1実施形態]
以下、第1実施形態を説明する。
<構造>
図1に例示するように、本形態の秘匿パターンマッチングシステム1は、端末装置12、秘匿パターンマッチング装置11−11、およびデータベース装置13−13を有する。ただし、Nは1以上の整数である。例えば、本システムで秘密分散方式や秘匿回路方式に基づく秘密計算を行う場合にはN≧2であり、準同型性暗号方式に基づく秘密計算を行う場合にはN=1である。
[First Embodiment]
Hereinafter, the first embodiment will be described.
<Structure>
As illustrated in FIG. 1, the secret pattern matching system 1 of this embodiment includes a terminal device 12, a secret pattern matching device 11 1 -11 N , and a database device 13 1 -13 N. However, N is an integer greater than or equal to 1. For example, in the present system, N ≧ 2 when performing secret calculation based on the secret sharing scheme or the secret circuit scheme, and N = 1 when performing secret calculation based on the homomorphic encryption scheme.

図2に例示するように、本形態の秘匿パターンマッチング装置11(ただし、n∈{1,・・・,N})は、入力部111、秘匿一致判定部112−k(ただし、k∈{1,・・・,K}、Kは1以上の整数(奇数または偶数))、秘匿一致判定部113、秘匿論理積演算部114,115,116、秘匿論理演算部117、出力部118、および制御部119を有する。ここで、秘匿一致判定部112−k、秘匿一致判定部113、および秘匿論理積演算部114,115,116は第1演算部の例であり、秘匿論理演算部117は第2演算部の例である。説明の便宜上、各部を独立な部位として記述しているが、それらが独立の部位である必要はない。例えば、秘匿一致判定部112−kや秘匿一致判定部113が同一の部位であってもよいし、秘匿論理積演算部114,115,116が同一の部位であってもよい。 As illustrated in FIG. 2, the secret pattern matching device 11 n (where n∈ {1,..., N}) of the present embodiment includes an input unit 111 n and a secret match determination unit 112 n −k (where kε {1,..., K}, K is an integer of 1 or more (odd or even number), a concealment coincidence determination unit 113 n , a concealment AND operation unit 114 n , 115 n , 116 n , a concealment logical operation unit 117 n , output unit 118 n , and control unit 119 n . Here, the concealment coincidence determination unit 112 n -k, the concealment coincidence determination unit 113 n , and the concealment logical product operation units 114 n , 115 n , and 116 n are examples of the first operation unit, and the concealment logic operation unit 117 n It is an example of a 2nd calculating part. For convenience of explanation, each part is described as an independent part, but they do not have to be independent parts. For example, the concealment coincidence determination unit 112 n -k and the concealment coincidence determination unit 113 n may be the same part, or the concealment AND operation units 114 n , 115 n , and 116 n may be the same part. .

図3Aに例示するように、本形態の端末装置12は、入力部121,126、文字種別情報取得部122、符号点変換部123、秘匿化部124、出力部125、復元部127、および制御部128を有する。図3Bに例示するように、本形態のデータベース装置13(ただし、n∈{1,・・・,N})は、記憶部131、抽出部132、出力部133、入力部134、復元部135、および制御部136を有する。 As illustrated in FIG. 3A, the terminal device 12 according to the present embodiment includes input units 121 and 126, a character type information acquisition unit 122, a code point conversion unit 123, a concealment unit 124, an output unit 125, a restoration unit 127, and a control. Part 128. As illustrated in FIG. 3B, the database apparatus 13 n (where n∈ {1,..., N}) of the present embodiment includes a storage unit 131 n , an extraction unit 132 n , an output unit 133 n , and an input unit 134. n , a restoration unit 135 n , and a control unit 136 n .

各装置は、例えば、通信器やCPU(central processing unit)等のプロセッサ(ハードウェア・プロセッサ)やRAM(random-access memory)・ROM(read-only memory)等のメモリ等を備える汎用または専用のコンピュータが所定のプログラムを実行することで構成される。このコンピュータは1個のプロセッサやメモリを備えていてもよいし、複数個のプロセッサやメモリを備えていてもよい。このプログラムはコンピュータにインストールされてもよいし、予めROM等に記録されていてもよい。また、CPUのようにプログラムが読み込まれることで機能構成を実現する電子回路(circuitry)ではなく、プログラムを用いることなく処理機能を実現する電子回路を用いて一部またはすべての処理部が構成されてもよい。1個の装置を構成する電子回路が複数のCPUを含んでいてもよい。また、各装置はそれぞれの制御部119,128,136の制御に基づいて各処理を行う。 Each device includes, for example, a general-purpose or dedicated memory including a communication device, a processor (hardware processor) such as a CPU (central processing unit), a RAM (random-access memory), a ROM (read-only memory), etc. The computer is configured by executing a predetermined program. The computer may include a single processor and memory, or may include a plurality of processors and memory. This program may be installed in a computer, or may be recorded in a ROM or the like in advance. In addition, some or all of the processing units are configured using an electronic circuit that realizes a processing function without using a program, instead of an electronic circuit (circuitry) that realizes a functional configuration by reading a program like a CPU. May be. An electronic circuit constituting one device may include a plurality of CPUs. Each device performs each process based on the control of the respective control units 119 n , 128, and 136 n .

<事前処理>
事前処理では、テキストデータの暗号文Cのデータベースと、これらの各テキストデータに含まれた「対象文字列」に対応する「秘匿化データベース」がデータベース装置13(図3B)の記憶部131に格納される。「秘匿化データベース」は、単数または複数の秘匿化レコード[d]を含む。秘匿化レコード[d]は、対象文字列(対象情報)d=(d,・・・,d)(ただし、Mは正の整数)に含まれた各対象文字d(ただし、m∈{1,・・・,M})と、当該対象文字dの表記が特定の種別に該当するか否かを表す対象文字種別情報(フラグ)dfm,k∈{T,F}(ただし、k∈{1,・・・,K})と、当該対象文字dの内容を表す対象符号dcとが対応付けられたデータ構造の秘匿化情報である。対象符号dcの構成に限定はない。例えば、対象文字dが小文字である場合、その元の符号点(ユニコード等)をその大文字の符号点(変換後符号点)に変換し、その「変換後符号点」を対象符号dcにする。また例えば、対象文字dが大文字である場合、その元の符号点をそのまま「変換後符号点」として対象符号dcにする。例えば、「A」の元の符号点「U+0041」を「A」および「a」の対象符号dcとし、「B」の元の符号点「U+0042」を「B」および「b」の対象符号dcとする(図5A)。対象文字種別情報dfm,kの構成にも限定はないが、例えばK=2とし、対象文字dが大文字であるか否かを表す対象文字種別情報を大文字フラグdfm,1∈{T,F}とし、小文字であるか否かを表す対象文字種別情報を小文字フラグdfm,2∈{T,F}とする。例えば、「A」の大文字フラグdfm,1は「T」、小文字フラグdfm,2は「F」であり、「a」の大文字フラグdfm,1は「F」、小文字フラグdfm,2は「T」であり、「B」の大文字フラグdfm,1は「T」、小文字フラグdfm,2を「F」であり、「b」の大文字フラグdfm,1は「F」、小文字フラグdfm,2は「T」である(図5B)。また、各対象文字種別情報dfm,k,対象符号dcについて秘密計算が可能なのであれば、対象文字種別情報dfm,k,対象符号dcが個々に独立して秘匿化されてもよいし、対象文字種別情報dfm,1,・・・,dfm,Kおよび対象符号dcがまとめて秘匿化されていてもよいし、その他の単位でまとめて秘匿化されてもよい。秘匿化方式にも限定はなく、秘密計算による一致判定(等号判定)および論理演算(論理和、論理積、論理否定)が可能であれば、秘密分散方式(Shamir秘密分散方式等)、秘匿回路方式、準同型性暗号方式など、どのような方式が用いられてもよい。例えば、非特許文献1や参考文献1(Damgard, I., Fitzi, M., Kiltz, E., Nielsen, J. B., & Toft, T. (2006), “Unconditionally secure constant-rounds multi-party computation for equality, comparison, bits and exponentiation,” In Theory of Cryptography (pp. 285-304). Springer Berlin Heidelberg.)などに記載された方式を用いてもよい。
<Pre-processing>
In the pre-processing, the database of the ciphertext C of the text data and the “confidential database” corresponding to the “target character string” included in each of the text data are stored in the storage unit 131 n of the database device 13 n (FIG. 3B). Stored in The “concealed database” includes one or a plurality of concealment records [d] n . Concealing Records [d] n is target character string (target information) d = (d 1, ··· , d M) ( although, M is a positive integer) each object character d m included in (but, m∈ {1, ···, M} ) and, the target character d m object character type information (flag notation indicating whether corresponds to a specific type of) df m, k ∈ {T , F} (However, k∈ {1, ···, K }) and a concealment information of the target code dc m and has the associated data structures representing the contents of the target character d m. There is no limitation on the configuration of the target code dc m . For example, if the target character d m is lowercase, the original code point (Unicode, etc.) into the code point of the upper case (converted code point), the "post-conversion code point" to the target code dc m To do. Further, for example, the target character d m may be uppercase, to target code dc m the code point of the original as it is as "converted code point". For example, the original code point “U + 0041” of “A” is the target code dc m of “A” and “a”, and the original code point “U + 0042” of “B” is the target code of “B” and “b”. It is set as dc m (FIG. 5A). Target character type information df m, but is not limited to the configuration of k, for example, K = 2 and then, uppercase object character type information object character d m represents whether the upper case flag df m, 1 ∈ {T , F}, and the target character type information indicating whether it is a small letter is a small letter flag df m, 2 ∈ {T, F}. For example, the uppercase flag df m, 1 of “A” is “T”, the lowercase flag dfm , 2 is “F”, the uppercase flag dfm , 1 of “a” is “F”, and the lowercase flag df m, 1 2 is “T”, uppercase flag df m, 1 of “B” is “T”, lowercase flag df m, 2 is “F”, and uppercase flag df m, 1 of “b” is “F”. The small letter flag df m, 2 is “T” (FIG. 5B). In addition, if the target character type information df m, k and the target code dc m can be secretly calculated, the target character type information df m, k and the target code dc m may be individually concealed. The target character type information df m, 1 ,..., Df m, K and the target code dc m may be concealed together, or may be concealed together in other units. There is no limitation on the concealment method, and if it is possible to perform match determination (equal sign determination) and logical operation (logical sum, logical product, logical negation) by secret calculation, secret sharing method (Shamir secret sharing method, etc.), concealment Any method such as a circuit method or a homomorphic encryption method may be used. For example, Non-Patent Document 1 and Reference Document 1 (Damgard, I., Fitzi, M., Kiltz, E., Nielsen, JB, & Toft, T. (2006), “Unconditionally secure constant-rounds multi-party computation for Equality, comparison, bits and exponentiation, “In Theory of Cryptography (pp. 285-304). Springer Berlin Heidelberg.) may be used.

<パターンマッチング処理>
図4Aに例示するように、端末装置12(図3A)の入力部121に、表記の種別を区別するか否かを表す判定条件a∈{T,F}、およびパターン文字列(パターン情報)p=(p,・・・,p)が入力される。判定条件aは「表記の種別を区別する」ことを表す「真(T)」であるか、「表記の種別を区別しない」ことを表す「偽(F)」である。パターン文字列pはM個のパターン文字p,・・・,pを含む。判定条件aは、秘匿化部124に送られ、パターン文字列pは、文字種別情報取得部122および符号点変換部123に送られる(ステップS121)。
<Pattern matching process>
As illustrated in FIG. 4A, the input unit 121 of the terminal device 12 (FIG. 3A) has a determination condition a∈ {T, F} indicating whether to distinguish the notation type, and a pattern character string (pattern information). p = (p 1 ,..., p M ) is input. The determination condition “a” is “true (T)” indicating that “notation type is distinguished” or “false (F)” indicating that “notation type is not distinguished”. The pattern character string p includes M pattern characters p 1 ,..., P M. The determination condition a is sent to the concealment unit 124, and the pattern character string p is sent to the character type information acquisition unit 122 and the code point conversion unit 123 (step S121).

文字種別情報取得部122は、パターン文字列pが含む各パターン文字p(ただし、m∈{1,・・・,M})の表記が特定の種別に該当するか否かを表すパターン文字種別情報(フラグ)pfm,k∈{T,F}(ただし、k∈{1,・・・,K})を得て出力する。パターン文字種別情報pfm,kは対象文字種別情報dfm,kと同じ基準(例えば、図5B)に従って生成される。例えばK=2とし、パターン文字pが大文字であるか否かを表すパターン文字種別情報を大文字フラグpfm,1∈{T,F}とし、小文字であるか否かを表すパターン文字種別情報を小文字フラグpfm,2∈{T,F}とする(ステップS122)。符号点変換部123は、パターン文字列pが含む各パターン文字p(ただし、m∈{1,・・・,M})の内容を表すパターン符号pcを得て出力する。パターン符号pcも対象符号dcと同じ基準(例えば、図5A)に従って生成される(ステップS123)。 The character type information acquisition unit 122 indicates whether each notation of each pattern character p m (where m∈ {1,..., M}) included in the pattern character string p corresponds to a specific type. The type information (flag) pf m, k ε {T, F} (where kε {1,..., K}) is obtained and output. The pattern character type information pf m, k is generated according to the same standard (for example, FIG. 5B) as the target character type information df m, k . For example a K = 2, and the pattern character type information pattern character p m represents whether the upper case upper case flag pf m, 1 ∈ {T, F} and the pattern character type information indicating whether a lowercase Is a lowercase flag pf m, 2 ε {T, F} (step S122). The code point conversion unit 123 obtains and outputs a pattern code pc m representing the contents of each pattern character p m (where mε {1,..., M}) included in the pattern character string p. The pattern code pc m is also generated according to the same standard (for example, FIG. 5A) as the target code dc m (step S123).

秘匿化部124は、前述の「秘匿化データベース」と同じ秘匿化方法を用い、判定条件aに対応する秘匿化情報(判定条件aが秘匿化された秘匿化判定条件)[a]、ならびに各パターン文字p(ただし、m∈{1,・・・,M})のパターン文字種別情報pfm,1,・・・,pfm,Kおよびパターン符号pcに対応する秘匿化情報[p]を含む、秘匿化クエリ[a],[p]を得て出力する。各パターン文字種別情報pfm,k,パターン符号pcについて秘密計算が可能なのであれば、パターン文字種別情報pfm,k,パターン符号pcが個々に独立して秘匿化されてもよいし、パターン文字種別情pfm,1,・・・,pfm,Kおよびパターン符号pcがまとめて秘匿化されていてもよいし、その他の単位でまとめて秘匿化されてもよい(ステップS124)。 The concealment unit 124 uses the same concealment method as the above-mentioned “concealment database”, and concealment information corresponding to the determination condition a (the concealment determination condition in which the determination condition a is concealed) [a] n , and Confidential information corresponding to pattern character type information pf m, 1 ,..., Pf m, K and pattern code pc m of each pattern character p m (where m∈ {1,..., M}) [ containing p] n, concealing query [a] n, and outputs to obtain [p] n. If secret calculation is possible for each pattern character type information pf m, k and pattern code pc m , the pattern character type information pf m, k and pattern code pc m may be individually concealed, The pattern character type information pf m, 1 ,..., Pf m, K and the pattern code pc m may be concealed together or may be concealed together in other units (step S124). .

秘匿化クエリ[a],[p]は出力部125に送られ、出力部125は秘匿化クエリ[a],[p]を、秘匿パターンマッチング装置11(ただし、n∈{1,・・・,N})に送信する(ステップS125)。 The concealment query [a] n , [p] n is sent to the output unit 125, and the output unit 125 sends the concealment query [a] n , [p] n to the concealment pattern matching device 11 n (where n∈ { 1,..., N}) (step S125).

図4Bに例示するように、秘匿化クエリ[a],[p]は、秘匿パターンマッチング装置11(図2)の入力部111に入力される(ステップS110)。制御部119は、秘匿化レコードの送信要求を生成して出力部118から送信する。送信要求はデータベース装置13(図3B)の入力部134に入力され、抽出部132に送られる。抽出部132は、記憶部131から秘匿化データベースの何れかの秘匿化レコード[d]を抽出し、出力部133から送信する。秘匿化レコード[d]は、秘匿パターンマッチング装置11(図2)の入力部111に入力される(ステップS111)。 As illustrated in FIG. 4B, the concealment queries [a] n and [p] n are input to the input unit 111 n of the concealment pattern matching device 11 n (FIG. 2) (step S110 n ). The control unit 119 n generates a transmission request for the concealment record and transmits it from the output unit 118 n . The transmission request is input to the input unit 134 n of the database device 13 n (FIG. 3B) and sent to the extraction unit 132 n . Extractor 132 n extracts one of concealing records [d] n of concealing the database from the storage unit 131 n, and transmits from the output unit 133 n. The concealment record [d] n is input to the input unit 111 n of the concealment pattern matching device 11 n (FIG. 2) (step S111 n ).

秘匿パターンマッチング装置11(図2)の秘匿一致判定部112−k(ただし、k∈{1,・・・,K})および秘匿一致判定部113は、[d]および[p]を入力とし、m∈{1,・・・,M}について、以下のステップS112およびS113の処理を実行する。これらの処理は各mについて順番に実行されてもよいし、複数のmについて同時に実行されてもよい。 The secret match determination unit 112 n −k (where k∈ {1,..., K}) and the secret match determination unit 113 n of the secret pattern matching device 11 n (FIG. 2) are [d] n and [p ] With n as an input, the following steps S112 n and S113 n are executed for m∈ {1,..., M}. These processes may be executed in order for each m, or may be executed simultaneously for a plurality of m.

《ステップS112
秘匿一致判定部112−k(ただし、k∈{1,・・・,K})は、秘密計算による一致判定(等号判定)により、dfm,kとpfm,kとが一致する場合(dfm,k=pfm,k)に真(T)となり、一致しない場合(dfm,k≠pfm,k)に偽(F)となる一致判定結果rfm,k∈{T,F}の秘匿化情報[rfm,kを得て出力する。図6Aの例では、対象文字d=「A」について、大文字フラグdfm,1=T、小文字フラグdfm,2=Fであり、パターン文字p=「a」について、大文字フラグpfm,1=F、小文字フラグpfm,2=Tであるため、rfm,1=F、rfm,2=Fとなる。図6Bの例では、対象文字d=「a」について、大文字フラグdfm,1=F、小文字フラグdfm,2=Tであり、パターン文字p=「a」について、大文字フラグpfm,1=F、小文字フラグpfm,2=Tであるため、rfm,1=T、rfm,2=Tとなる。図7Aの例では、対象文字d=「B」について、大文字フラグdfm,1=T、小文字フラグdfm,2=Fであり、p=「a」について、大文字フラグpfm,1=F、小文字フラグpfm,2=Tであるため、rfm,1=F、rfm,2=Fとなる(結果I)。図7Bの例では、d=「b」について、大文字フラグdfm,1=F、小文字フラグdfm,2=Tであり、パターン文字p=「a」について、大文字フラグpfm,1=F、小文字フラグpfm,2=Tであるため、rfm,1=T、rfm,2=Tとなる(結果I)。なお、例えば「T」を1とし、「F」を0とすると、dfm,kとpfm,kとの一致判定は、dfm,kとpfm,kとの排他的論理和の否定となる。このような秘密計算による一致判定は、例えば、参考文献1等に記載された方法によって実現できる(以下、同様)。
"Step S112 n"
The secret match determination unit 112 n −k (where k∈ {1,..., K}) matches df m, k and pf m, k by match determination (equal sign determination) by secret calculation. If (df m, k = pf m , k) true (T), and when they do not match (df m, k ≠ pf m , k) becomes false (F) to the matching determination result rf m, k ∈ {T , F} concealment information [rf m, k ] n is obtained and output. In the example of FIG. 6A, the target character d m = "A", a case flag df m, 1 = T, lowercase flag df m, 2 = F, the pattern character p m = "a", uppercase flag pf m , 1 = F and the small letter flag pf m, 2 = T, so rf m, 1 = F and rf m, 2 = F. In the example of FIG. 6B, the target character d m = "a" is an uppercase flag df m, 1 = F, lowercase flag df m, 2 = T, the pattern character p m = "a", uppercase flag pf m , 1 = F, and the small letter flag pf m, 2 = T, so that rf m, 1 = T and rf m, 2 = T. In the example of FIG. 7A, the uppercase flag df m, 1 = T and the lowercase flag df m, 2 = F for the target character d m = “B”, and the uppercase flag pf m, 1 for p m = “a”. = F and the small letter flag pf m, 2 = T, so rf m, 1 = F and rf m, 2 = F (result I). In the example of FIG. 7B, d m = the "b" is an uppercase flag df m, 1 = F, lowercase flag df m, 2 = T, the pattern character p m = "a", uppercase flag pf m, 1 = F and the small letter flag pf m, 2 = T, so rf m, 1 = T and rf m, 2 = T (result I). Incidentally, for example, "T" is 1, when 0 to "F", df m, k and pf m, match determination that k is the negation of exclusive OR of df m, k and pf m, k It becomes. Such coincidence determination by secret calculation can be realized, for example, by the method described in Reference 1 (hereinafter the same).

秘匿一致判定部113は、秘密計算による一致判定(等号判定)により、対象符号dcとパターン符号pcとが一致する場合(dc=pc)に真(T)となり、一致しない場合(dc≠pc)に偽(F)となる一致判定結果rc∈{T,F}の秘匿化情報[rcを得て出力する。図6A−図6Dの例では、dc=pc=「U+0041」となるため、rc=Tとなる(結果I)。図7A−図7Dの例では、dc=「U+0042」であり、pc=「U+0041」となるため、rc=Fとなる(結果Iおよび結果III)。なお、一致判定結果rcは、「対象符号dcとパターン符号pcとが一致するという条件を満たすか否かを表す第2情報」の例である。一致判定結果rcは、対象符号dcとパターン符号pcとが一致する場合に真(T)となり、対象符号dcとパターン符号pcとが異なる場合に偽(F)となる。 The secret match determination unit 113 n is true (T) and does not match when the target code dc m and the pattern code pc m match (dc m = pc m ) by match determination (equal sign determination) by secret calculation. In the case (dc m ≠ pc m ), the concealment information [rc m ] n of the coincidence determination result rc m ε {T, F} that is false (F) is obtained and output. In the example of FIGS. 6A to 6D, dc m = pc m = “U + 0041”, and therefore rc m = T (result I). In the example of FIGS. 7A to 7D, dc m = “U + 0042” and pc m = “U + 0041”, and therefore rc m = F (result I and result III). The match determination result rc m is an example of “second information indicating whether or not a condition that the target code dc m and the pattern code pc m match” is satisfied. The match determination result rc m is true (T) when the target code dc m and the pattern code pc m match, and is false (F) when the target code dc m and the pattern code pc m are different.

《ステップS113
秘匿論理積演算部114は、[rfm,k(ただし、k∈{1,・・・,K})および[rcを入力とし、秘密計算による論理積により、(rfm,1=T)AND(rfm,2=T)AND・・・AND(rfm,K=T)AND(rc=T)のときに真(T)となり、そうでない場合に偽(F)となる論理積CON∈{T,F}の秘匿化情報[CON(ただし、m∈{1,・・・,M})を得て出力する。「AND」は論理積を表す。図6Aの例ではCON=Fとなり、図6Bの例ではCON=Tとなり、図7Aの例ではCON=Fとなり、図7Bの例ではCON=Fとなる(結果II)。例えば「T」を1とし、「F」を0とすると、CON=(rfm,1)AND(rfm,2)AND・・・AND(rfm,K)AND(rc)となる。このような秘密計算による論理積は、例えば、非特許文献1等に記載された方法によって実現できる(以下、同様)。また、論理積CONは、「対象文字種別情報dfm,kとパターン文字種別情報pfm,kとが一致し、かつ、対象符号dcとパターン符号pcとが一致する、という条件を満たすか否かを表す第1情報」の例である。論理積CONは、対象文字種別情報dfm,kとパターン文字種別情報pfm,kとが一致し、かつ、対象符号dcとパターン符号pcとが一致する場合に真(T)となり、対象文字種別情報dfm,kとパターン文字種別情報pfm,kとが異なるか、または、対象符号dcとパターン符号pcとが異なる場合に偽(T)となる(ステップS112およびS113の処理の説明終わり)。
"Step S113 n"
The concealment AND unit 114 n receives [rf m, k ] n (where k∈ {1,..., K}) and [rc m ] n as inputs, and performs (rf m, 1 = T) AND (rf m, 2 = T) AND... AND (rf m, K = T) AND (rc m = T) is true (T), otherwise it is false ( F) The concealment information [CON m ] n (where mε {1,..., M}) of the logical product CON m ε {T, F} is obtained and output. “AND” represents a logical product. In the example of FIG. 6A, CON m = F, in the example of FIG. 6B, CON m = T, in the example of FIG. 7A, CON m = F, and in the example of FIG. 7B, CON m = F (result II). For example, if “T” is 1 and “F” is 0, then CON m = (rf m, 1 ) AND (rf m, 2 ) AND... AND (rf m, K ) AND (rc m ) . Such a logical product by the secret calculation can be realized, for example, by a method described in Non-Patent Document 1 or the like (hereinafter the same). Further, the logical product CON m has the condition that “the target character type information df m, k and the pattern character type information pf m, k match, and the target code dc m and the pattern code pc m match. It is an example of “first information indicating whether or not to satisfy”. The logical product CON m is true (T) when the target character type information df m, k matches the pattern character type information pf m, k and the target code dc m matches the pattern code pc m . , If the target character type information df m, k and the pattern character type information pf m, k are different, or if the target code dc m and the pattern code pc m are different (step S112 n and S113 described the end of the n of processing).

秘匿論理積演算部115は、[CON(ただし、m∈{1,・・・,M})を入力とし、秘密計算による論理積により、(CON=T)AND(CON=T)AND・・・AND(CON=T)のときに真(T)となり、そうでない場合に偽(F)となる論理積であるパターンマッチング結果xの秘匿化情報[x]を得て出力する。例えば「T」を1とし、「F」を0とすると、x=(CON)AND(CON)AND・・・AND(CON)となる。図8Aの例では、M=3,CON=F,CON=F,CON=Tであり、x=Fとなる。図8Bの例では、M=3,CON=T,CON=T,CON=Tであり、x=Tとなる。M=1の場合にはx=CONである。なお、パターンマッチング結果xは「第1情報に基づく第1判定結果」の例である。パターンマッチング結果xは、パターン文字列p(および対象文字列d)に対応するすべての論理積CON,・・・,CONが真(T)である場合に真(T)となり、対象文字列dに対応する何れかのCONが偽(F)である場合に偽(F)となる。[x]は「第1判定結果が秘匿化された秘匿化判定結果」の例である(ステップS114)。 The concealment AND operation unit 115 n receives [CON m ] n (where m∈ {1,..., M}) as an input, and performs (CON 1 = T) AND (CON 2 ) by logical product based on the secret calculation. = T) AND ... The concealment information [x] n of the pattern matching result x, which is a logical product that is true (T) when AND (CON M = T) and is false (F) otherwise. Output. For example, when “T” is 1 and “F” is 0, x = (CON 1 ) AND (CON 2 ) AND... AND (CON M ). In the example of FIG. 8A, M = 3, CON 1 = F, CON 2 = F, CON 3 = T, and x = F. In the example of FIG. 8B, M = 3, CON 1 = T, CON 2 = T, CON 3 = T, and x = T. When M = 1, x = CON 1 is satisfied. The pattern matching result x is an example of “first determination result based on first information”. The pattern matching result x is true (T) when all the logical products CON 1 ,..., CON M corresponding to the pattern character string p (and the target character string d) are true (T). It is false (F) when any CON m corresponding to the column d is false (F). [X] n is an example of “a concealment determination result in which the first determination result is concealed” (step S114 n ).

秘匿論理積演算部116は、[rc(ただし、m∈{1,・・・,M})を入力とし、秘密計算による論理積により、(rc=T)AND(rc=T)AND・・・AND(rc=T)のときに真(T)となり、そうでない場合に偽(F)となる論理積であるパターンマッチング結果yの秘匿化情報[y]を得て出力する。例えば「T」を1とし、「F」を0とすると、rc=(rc)AND(rc)AND・・・AND(rc)である。図9Aの例では、M=3,rc=T,rc=T,rc=Tであり、y=Tとなる。図9Bの例では、M=3,rc=F,rc=T,rc=Tであり、y=Fとなる。M=1の場合にはy=rcである。なお、パターンマッチング結果yは「第2情報に基づく第2判定結果」の例である。パターンマッチング結果yは、パターン文字列p(および対象文字列d)に対応するすべてのrcが真(T)である場合に真(T)となり、パターン情報pに対応する何れかのrcが偽(F)である場合に偽(F)となる。[y]は「第2判定結果が秘匿化された秘匿化判定結果」の例である(ステップS115)。 The concealment AND operation unit 116 n receives [rc m ] n (where m∈ {1,..., M}) as an input, and performs (rc 1 = T) AND (rc 2 ) by logical product based on the secret calculation. = T) AND ... The concealment information [y] n of the pattern matching result y, which is a logical product that is true (T) when AND (rc M = T) and false (F) otherwise. Output. For example, when “T” is 1 and “F” is 0, rc m = (rc 1 ) AND (rc 2 ) AND... AND (rc M ). In the example of FIG. 9A, M = 3, rc 1 = T, rc 2 = T, rc 3 = T, and y = T. In the example of FIG. 9B, M = 3, rc 1 = F, rc 2 = T, rc 3 = T, and y = F. When M = 1, y = rc 1 is satisfied. The pattern matching result y is an example of “second determination result based on second information”. The pattern matching result y is true (T) when all rc m corresponding to the pattern character string p (and the target character string d) are true (T), and any rc m corresponding to the pattern information p is obtained. Is false (F) when is false (F). [Y] n is an example of “a concealment determination result in which the second determination result is concealed” (step S115 n ).

秘匿論理演算部117は、[a],[x],[y]を入力とし、秘密計算による論理演算により、判定条件a=Tの場合(表記の種別を区別することを表す場合)にパターンマッチング結果x(第1判定結果)に基づき、判定条件a=Fの場合(表記の種別を区別しないことを表す場合)にパターンマッチング結果y(第2判定結果)に基づく結果r(第3判定結果)に応じた秘匿化情報[r]を得て出力する。本形態では、判定条件a=Tの場合にr=xとなり、判定条件a=Fの場合にr=yとなる結果rが秘匿化された秘匿化情報[r]を得て出力する。例えば、秘匿論理演算部117は、{(x=T)AND(a=T)}OR{(y=T)AND(a=F)}のときに真(T)となり、そうでない場合に偽(F)となる論理演算値r∈{T,F}が秘匿化された秘匿化情報[r]を得て出力する。「OR」は論理和を表す。すなわち、論理演算値rは、(1)パターンマッチング結果xが真であり、かつ、判定条件aが真であるか、または、(2)パターンマッチング結果yが真であり、かつ、判定条件aが偽である場合に真となり、それ以外の場合に偽となる。例えば「T」を1とし、「F」を0とすると、r=(x AND a)OR(y AND (1−a))となり、[r]=[(x AND a) OR (y AND (1−a))]となる。このような秘密計算による論理演算は、例えば、非特許文献1等に記載された方法によって実現できる(ステップS116)。[r]は出力部118から送信される(ステップS117)。 The concealment logic operation unit 117 n receives [a] n , [x] n , and [y] n as input, and when the determination condition is a = T (representing the distinction of the notation type) by logical operation by secret calculation. Case)) based on the pattern matching result x (first determination result), and when the determination condition a = F (indicating that the notation type is not distinguished), the result r based on the pattern matching result y (second determination result). The concealment information [r] n corresponding to (third determination result) is obtained and output. In the present embodiment, concealment information [r] n in which r is concealed as a result of r = x when the determination condition a = T and r = y when the determination condition a = F is obtained and output. For example, the concealment logic operation unit 117 n is true (T) when {(x = T) AND (a = T)} OR {(y = T) AND (a = F)}, and otherwise. Obtain and output the concealment information [r] n in which the logical operation value rε {T, F} that is false (F) is concealed. “OR” represents a logical sum. That is, the logical operation value r is (1) the pattern matching result x is true and the determination condition a is true, or (2) the pattern matching result y is true and the determination condition a True if is false, false otherwise. For example, if “T” is 1 and “F” is 0, then r = (x AND a) OR (y AND (1-a)) and [r] n = [(x AND a) OR (y AND (1-a))] n . Such a logical operation by the secret calculation can be realized by a method described in Non-Patent Document 1 or the like (step S116 n ). [R] n is transmitted from the output unit 118 n (step S117 n ).

[r]は何れかのデータベース装置13に送信され、データベース装置13(図3B)の入力部134に入力される。[r]は復元部135に送られて復元値rが得られる。ここで、a=Tであった場合にはr=x∈{T,F}となっており、a=Fであった場合にはr=y∈{T,F}となっている。復元値rは抽出部132に送られる。r=Tであった場合、復元値rはステップS111で抽出された秘匿化レコード[d]に対応するテキストデータの暗号文Cを記憶部131から抽出し、出力部133から送信する。暗号文Cは、端末装置12の入力部126に入力され、復元部127でテキストデータmに復元されて出力される。一方、r=Fであった場合、復元値rは記憶部131から新たな秘匿化レコード[d]を抽出し、前述のステップS111以降の処理が繰り返される。記憶部131に新たな秘匿化レコード[d]が存在しない場合にはエラーメッセージを返してもよい。 [R] n is transmitted to one of the database devices 13 n and is input to the input unit 134 n of the database device 13 n (FIG. 3B). [R] n is sent to the restoration unit 135 n to obtain a restoration value r. Here, when a = T, r = x∈ {T, F}, and when a = F, r = y∈ {T, F}. The restoration value r is sent to the extraction unit 132 n . When r = T, the restored value r is extracted from the storage unit 131 n as the ciphertext C of the text data corresponding to the concealment record [d] n extracted in step S111 n , and transmitted from the output unit 133 n. To do. The ciphertext C is input to the input unit 126 of the terminal device 12, and is restored to the text data m by the restoration unit 127 and output. On the other hand, when r = F, a new concealment record [d] n is extracted from the storage unit 131 n as the restoration value r, and the processes after step S111 n are repeated. If there is no new concealment record [d] n in the storage unit 131 n , an error message may be returned.

以上のように、本形態では判定条件aによって表記の種別の区別の有無を指定可能であり、また各処理は秘密計算による一致判定や論理演算によって実現できる。これにより、表記の種別の区別の有無を指定可能なパターンマッチングを秘密計算で実現できる。   As described above, in this embodiment, it is possible to specify whether or not to distinguish between the types of notation according to the determination condition a, and each process can be realized by a coincidence determination by a secret calculation or a logical operation. Thereby, the pattern matching which can designate the presence or absence of distinction of the description classification is realizable by secret calculation.

[変形例等]
本発明は上述の実施形態に限定されるものではない。例えば、上述の実施形態では、判定条件aに応じ、秘密計算によって、テキストデータに含まれた対象文字列d=(d,・・・,d)とパターン文字列p=(p,・・・,p)とのパターンマッチングを行った。すなわち、テキストデータの全部または部分である対象文字列dとパターン文字列pとのパターンマッチングを行った。この変形例として、テキストデータの全部または部分である文字列と、パターン文字および特殊記号を含むパターンと、のパターンマッチングを行ってもよい。特殊記号とは、どのような対象文字もマッチすることにするものである。特殊記号の例は、1個の任意の対象文字にマッチすることにする「ワイルドカード」や、0個以上の任意の対象文字にマッチすることにする「無限長ギャップ」などである。このようなパターンマッチングは、特殊記号を含むパターンでパターンマッチングを行う公知手法(例えば、非特許文献1等)でのパターン文字との一致判定を、文字ごと(M=1)のステップS112−S117の処理に置換することで実現できる。
[Modifications, etc.]
The present invention is not limited to the above-described embodiment. For example, in the above-described embodiment, the target character string d = (d 1 ,..., D M ) included in the text data and the pattern character string p = (p 1 , ... was subjected to pattern matching with the p M). That is, pattern matching between the target character string d and the pattern character string p, which is all or part of the text data, is performed. As a modification, pattern matching may be performed between a character string that is all or part of text data and a pattern that includes pattern characters and special symbols. Special symbols are those that match any target character. Examples of special symbols include “wild cards” that match one arbitrary target character, “infinite length gaps” that match zero or more arbitrary target characters, and the like. For such pattern matching, matching with a pattern character by a known method (for example, Non-Patent Document 1) that performs pattern matching using a pattern including a special symbol is performed for each character (M = 1) in step S112 n −. S117 can be realized by replacing the n processing.

M=1の場合、秘匿論理積演算部115,116を省略し、秘匿論理積演算部114で得られた[CONをそのまま[x]とし、秘匿一致判定部113で得られた[rcをそのまま[y]としてもよい。 For M = 1, concealment AND operation section is omitted 115 n, 116 n, concealed logical product obtained by the calculation unit 114 n and [CON m] n as a [x] n, concealment matching determining unit 113 n [Rc m ] n obtained in step (b) may be used as [y] n as it is.

上述の実施形態では、判定条件a=Tの場合にr=xとなり、判定条件a=Fの場合にr=yとなった。しかしながら、判定条件a=Tの場合にxとその他の情報とに応じた値がrとなり、判定条件a=Fの場合にyとその他の情報とに応じた値がrとなってもよい。   In the above-described embodiment, r = x when the determination condition a = T, and r = y when the determination condition a = F. However, when the determination condition a = T, the value according to x and other information may be r, and when the determination condition a = F, the value according to y and other information may be r.

判定条件a、パターン文字列p=(p,・・・,p)、および対象文字列d=(d,・・・,d)の組が複数組存在し、それぞれの組についてステップS112−S117の処理が実行されてもよい。または、それぞれの組についての結果rの論理演算結果(論理積など)が秘匿化された秘匿化情報が出力されてもよい。各組の判定条件aやMは同一であってもよいし、異なっていてもよい。このような論理演算結果の秘匿化情報も、「判定条件が表記の種別を区別することを表す場合に第1判定結果に基づき、判定条件が表記の種別を区別しないことを表す場合に第2判定結果に基づく、第3判定結果に応じた秘匿化情報」に相当する。 There are a plurality of sets of determination condition a, pattern character string p = (p 1 ,..., P M ), and target character string d = (d 1 ,..., D M ). step S112 processes the n -S117 n may be performed. Alternatively, concealment information in which a logical operation result (logical product or the like) of the result r for each pair is concealed may be output. The determination conditions a and M of each set may be the same or different. Such concealment information of the logical operation result is also “second when the determination condition indicates that the notation type is not distinguished based on the first determination result when the determination condition indicates that the notation type is distinguished. This corresponds to “confidential information according to the third determination result” based on the determination result.

パターン文字列pおよび対象文字列dの両方が互いに同一または異なるテキストデータに含まれたものであってもよい。パターン文字列pおよび対象文字列dの両方が入力テキストであってもよい。上述のようなテキストを抽出するためではなく、テキストからパターン文字列pにマッチングする対象文字列dを抽出するために本方式が用いられてもよい。また、秘密計算が可能なのであれば、パターンマッチング結果xおよびパターンマッチング結果yが個々に秘匿化されていてもよいし、これらがまとめて秘匿化されていてもよい。   Both the pattern character string p and the target character string d may be included in the same or different text data. Both the pattern character string p and the target character string d may be input text. This method may be used not to extract the text as described above but to extract the target character string d that matches the pattern character string p from the text. Further, if secret calculation is possible, the pattern matching result x and the pattern matching result y may be individually concealed, or may be concealed together.

上述の実施形態では、データベース装置13が復元部135を含み、入力された[r]から復元値rを復元し、復元値rに応じ、新たな秘匿化レコード[d]またはテキストデータの暗号文Cを抽出した。しかしながら、データベース装置13が復元部135を持たず、記憶部131が、テキストデータの暗号文Cに代え、秘密計算可能なテキストデータの秘匿化情報を保持していてもよい。この場合には抽出部132が[r]をそのまま用い、秘密計算によって新たな秘匿化レコード[d]またはテキストデータの秘匿化情報を抽出してもよい。 In the above-described embodiment, the database device 13 n includes the restoration unit 135 n , restores the restoration value r from the input [r] n , and creates a new concealment record [d] n or text according to the restoration value r. The ciphertext C of the data was extracted. However, the database device 13 n may not have the restoration unit 135 n , and the storage unit 131 n may hold text data concealment information that can be secretly calculated instead of the ciphertext C of the text data. In this case, the extraction unit 132 n may use [r] n as it is and extract a new concealment record [d] n or concealment information of text data by secret calculation.

各装置がネットワークを通じて情報をやり取りするのではなく、少なくとも一部の組の装置が可搬型記録媒体を介して情報をやり取りしてもよい。或いは、少なくとも一部の組の装置が非可搬型の記録媒体を介して情報をやり取りしてもよい。すなわち、これらの装置の一部からなる組み合わせが、同一の装置であってもよい。例えば、端末装置とデータベース装置とが同一の装置であってもよいし、データベース装置と秘匿パターンマッチング装置とが同一の装置であってもよい。   Instead of each device exchanging information via a network, at least some of the devices may exchange information via a portable recording medium. Alternatively, at least some of the devices may exchange information via a non-portable recording medium. That is, the combination which consists of a part of these apparatuses may be the same apparatus. For example, the terminal device and the database device may be the same device, and the database device and the secret pattern matching device may be the same device.

上述の各種の処理は、記載に従って時系列に実行されるのみならず、処理を実行する装置の処理能力あるいは必要に応じて並列的にあるいは個別に実行されてもよい。その他、本発明の趣旨を逸脱しない範囲で適宜変更が可能であることはいうまでもない。   The various processes described above are not only executed in time series according to the description, but may also be executed in parallel or individually as required by the processing capability of the apparatus that executes the processes. Needless to say, other modifications are possible without departing from the spirit of the present invention.

上述の構成をコンピュータによって実現する場合、各装置が有すべき機能の処理内容はプログラムによって記述される。このプログラムをコンピュータで実行することにより、上記処理機能がコンピュータ上で実現される。この処理内容を記述したプログラムは、コンピュータで読み取り可能な記録媒体に記録しておくことができる。コンピュータで読み取り可能な記録媒体の例は、非一時的な(non-transitory)記録媒体である。このような記録媒体の例は、磁気記録装置、光ディスク、光磁気記録媒体、半導体メモリ等である。   When the above configuration is realized by a computer, the processing contents of the functions that each device should have are described by a program. By executing this program on a computer, the above processing functions are realized on the computer. The program describing the processing contents can be recorded on a computer-readable recording medium. An example of a computer-readable recording medium is a non-transitory recording medium. Examples of such a recording medium are a magnetic recording device, an optical disk, a magneto-optical recording medium, a semiconductor memory, and the like.

このプログラムの流通は、例えば、そのプログラムを記録したDVD、CD−ROM等の可搬型記録媒体を販売、譲渡、貸与等することによって行う。さらに、このプログラムをサーバコンピュータの記憶装置に格納しておき、ネットワークを介して、サーバコンピュータから他のコンピュータにそのプログラムを転送することにより、このプログラムを流通させる構成としてもよい。   This program is distributed, for example, by selling, transferring, or lending a portable recording medium such as a DVD or CD-ROM in which the program is recorded. Furthermore, the program may be distributed by storing the program in a storage device of the server computer and transferring the program from the server computer to another computer via a network.

このようなプログラムを実行するコンピュータは、例えば、まず、可搬型記録媒体に記録されたプログラムもしくはサーバコンピュータから転送されたプログラムを、一旦、自己の記憶装置に格納する。処理の実行時、このコンピュータは、自己の記録装置に格納されたプログラムを読み取り、読み取ったプログラムに従った処理を実行する。このプログラムの別の実行形態として、コンピュータが可搬型記録媒体から直接プログラムを読み取り、そのプログラムに従った処理を実行することとしてもよく、さらに、このコンピュータにサーバコンピュータからプログラムが転送されるたびに、逐次、受け取ったプログラムに従った処理を実行することとしてもよい。サーバコンピュータから、このコンピュータへのプログラムの転送は行わず、その実行指示と結果取得のみによって処理機能を実現する、いわゆるASP(Application Service Provider)型のサービスによって、上述の処理を実行する構成としてもよい。   A computer that executes such a program first stores, for example, a program recorded on a portable recording medium or a program transferred from a server computer in its own storage device. When executing the process, this computer reads a program stored in its own recording device and executes a process according to the read program. As another execution form of the program, the computer may read the program directly from the portable recording medium and execute processing according to the program, and each time the program is transferred from the server computer to the computer. The processing according to the received program may be executed sequentially. The above-described processing may be executed by a so-called ASP (Application Service Provider) type service that realizes a processing function only by an execution instruction and result acquisition without transferring a program from the server computer to the computer. Good.

対象文字の表記が特定の種別に該当するか否かを表す対象文字種別情報と前記対象文字の内容を表す対象符号とが対応付けられた情報の秘匿化情報を含むデータ構造を流通させてもよい。この流通は可搬型記録媒体を販売、譲渡、貸与等したり、ネットワークを介して転送したりすることによって行う。このようなデータ構造は、第1演算部が、前記対象文字種別情報とパターン文字の表記が前記特定の種別に該当するか否かを表すパターン文字種別情報とが一致し、かつ、前記対象符号と前記パターン文字の内容を表すパターン符号とが一致する、という条件を満たすか否かを表す第1情報に基づく第1判定結果、および、前記対象符号と前記パターン符号とが一致するという条件を満たすか否かを表す第2情報に基づく第2判定結果、が秘匿化された秘匿化判定結果を得、第2演算部が、判定条件が表記の種別を区別することを表す場合に前記第1判定結果に基づき、前記判定条件が表記の種別を区別しないことを表す場合に前記第2判定結果に基づく、第3判定結果に応じた秘匿化情報を得るために用いられる。   Even if the data structure including the concealment information of the information in which the target character type information indicating whether the notation of the target character corresponds to a specific type and the target code indicating the content of the target character is associated is distributed Good. This distribution is performed by selling, transferring, or lending a portable recording medium or transferring the portable recording medium via a network. In such a data structure, the first arithmetic unit matches the target character type information and the pattern character type information indicating whether the notation of the pattern character corresponds to the specific type, and the target code And the first determination result based on the first information indicating whether or not the condition that the pattern code representing the content of the pattern character matches is satisfied, and the condition that the target code and the pattern code match When the second determination result based on the second information indicating whether or not the information is concealed is obtained and the second calculation unit indicates that the determination condition indicates the type of the notation, the second determination result Based on one determination result, it is used to obtain concealment information corresponding to a third determination result based on the second determination result when the determination condition indicates that the type of notation is not distinguished.

上記実施形態では、コンピュータ上で所定のプログラムを実行させて本装置の処理機能が実現されたが、これらの処理機能の少なくとも一部がハードウェアで実現されてもよい。   In the above embodiment, the processing functions of the apparatus are realized by executing a predetermined program on a computer. However, at least a part of these processing functions may be realized by hardware.

上述した技術は、例えば、クラウド上での秘密計算によるデータベース検索などに利用できる。   The above-described technique can be used for, for example, database search by secret calculation on the cloud.

1 秘匿パターンマッチングシステム
11 秘匿パターンマッチング装置
12 端末装置
13 データベース装置
DESCRIPTION OF SYMBOLS 1 Secret pattern matching system 11 n Secret pattern matching apparatus 12 Terminal device 13 n Database apparatus

Claims (5)

対象文字列d=(d ,…,d )に含まれた対象文字 の表記が特定の種別に該当するか否かを表す対象文字種別情報df m,k ∈{1,0}パターン文字列p=(p ,・・・,p )に含まれたパターン文字 の表記が前記特定の種別に該当するか否かを表すパターン文字種別情報pf m,k ∈{1,0}とが一致し、かつ、前記対象文字 の内容を表す対象符号dc と前記パターン文字 の内容を表すパターン符号pc とが一致する、という条件を満たす場合に1となり、満たさない場合に0となる第1情報CON ∈{1,0}に基づく第1判定結果x∈{1,0}、および、前記対象符号dc と前記パターン符号pc とが一致するという条件を満たす場合に1となり、満たさない場合に0となる第2情報rc ∈{1,0}に基づく第2判定結果y∈{1,0}、が秘匿化された秘匿化判定結果[x] および[y] を得る第1演算部と、
判定条件a∈{1,0}が表記の種別を区別することを表す場合に前記第1判定結果に基づき、前記判定条件が表記の種別を区別しないことを表す場合に前記第2判定結果に基づく、第3判定結果r∈{1,0}が秘匿化された秘匿化情報[r] を得る第2演算部と、
を有し、
Mが1以上の整数、Kが正の整数、m∈{1,・・・,M}、k∈{1,・・・,K}であり、
前記第1判定結果xが(CON )AND(CON )AND・・・AND(CON )であり、
前記第2判定結果yが(rc )AND(rc )AND・・・AND(rc )であり、
a=1は前記表記の種別を区別することを表し、a=0は前記表記の種別を区別しないことを表し、
前記第1演算部は、前記対象文字種別情報df m,k および前記対象符号dc が秘匿化された秘匿化レコード[d] 、および、前記パターン文字種別情報pf m,k および前記パターン符号pc が秘匿化された秘匿化情報[p] を入力とし、秘密計算によって、前記秘匿化判定結果[x] および[y] を得、
前記第2演算部は、前記秘匿化判定結果[x] および[y] ならびに前記判定条件aが秘匿化された秘匿化情報[a] を入力とし、秘密計算によって、前記第3判定結果r=(x AND a)OR(y AND (1−a))が秘匿化された秘匿化情報[(x AND a)OR(y AND (1−a))] を得る、秘匿パターンマッチング装置。
Target string d = (d 1, ..., d M) target character type information indicating whether notation to include the target character d m corresponds to a particular type df m, k ∈ {1,0} a pattern string p = (p 1, ···, p M) pattern character representation of the included pattern letters p m indicating whether corresponding to the specific type to the type information pf m, k ∈ { 1,0} and match and a target code dc m representing the content of the object character d m and the pattern character p pattern code pc m representing the contents of the m match, if the condition that 1 And the first determination result xε {1 , 0} based on the first information CON m ε {1, 0} that becomes 0 if not satisfied , and the target code dc m and the pattern code pc m match 1 next to the case conditions are satisfied that, and 0 if not satisfied Second judgment result y∈ {1,0}, is concealed by the concealment decision result [x] n and a first arithmetic unit for obtaining a [y] n based on the second information rc m ∈ {1,0} that When,
Based on the first determination result x when the determination condition a ∈ {1, 0} indicates that the notation type is distinguished, the second determination is performed when the determination condition a indicates that the notation type is not distinguished. A second computing unit that obtains concealment information [r] n based on the result y and concealing the third determination result rε {1, 0} ;
I have a,
M is an integer greater than or equal to 1, K is a positive integer, m∈ {1,..., M}, k∈ {1,.
The first determination result x is (CON 1 ) AND (CON 2 ) AND... AND (CON M ).
The second determination result y is (rc 1 ) AND (rc 2 ) AND... AND (rc M )
a = 1 indicates that the type of the notation is distinguished, a = 0 indicates that the type of the notation is not distinguished,
The first calculation unit includes a concealment record [d] n in which the target character type information df m, k and the target code dc m are concealed , and the pattern character type information pf m, k and the pattern code. The confidential information [p] n in which pc m is concealed is input, and the concealment determination results [x] n and [y] n are obtained by secret calculation ,
The second calculation unit receives the concealment determination results [x] n and [y] n and the concealment information [a] n in which the determination condition a is concealed, and performs the third determination by secret calculation. get result r = (x aND a) OR (y aND (1-a)) is concealed by the concealment information [(x aND a) OR ( y aND (1-a))] n, confidential pattern matching apparatus.
請求項1の秘匿パターンマッチング装置であって、
df m,k =1は前記対象文字d の表記がkに対応する特定の種別に該当することを表し、df m,k =0は前記対象文字d の表記がkに対応する特定の種別に該当しないことを表し、
pf m,k =1は前記パターン文字p の表記がkに対応する特定の種別に該当することを表し、pf m,k =0は前記パターン文字p の表記がkに対応する特定の種別に該当しないことを表し、
前記第1演算部は、
前記秘匿化レコード[d] 、および、前記秘匿化情報[p] を入力とし、秘密計算によって、前記対象文字種別情報df m,k と前記パターン文字種別情報pf m,k との排他的論理和の否定を表す一致判定結果rf m,k ∈{1,0}が秘匿化された秘匿化情報[rf m,k を得、前記対象符号dc と前記パターン符号pc とが一致する場合にrc =1となり、前記対象符号dc と前記パターン符号pc とが一致しない場合にrc =0となる前記第2情報rc が秘匿化された秘匿化情報[rc を得る秘匿一致判定部と、
前記秘匿化情報[rf m,k および前記秘匿化情報[rc を入力とし、秘密計算によって、前記一致判定結果rf m,1 ,…,rf m,K および前記一致判定結果rc の論理積である前記第1情報CON が秘匿化された秘匿化情報[CON を得る第1秘匿論理積演算部と、
前記秘匿化情報[CON を入力とし、秘密計算によって、前記第1判定結果xが秘匿化された前記秘匿化判定結果[x] を得る第2秘匿論理積演算部と、
前記秘匿化情報[rc を入力とし、秘密計算によって、前記第2判定結果yが秘匿化された前記秘匿化判定結果[y] を得る第3秘匿論理積演算部と、を含む、秘匿パターンマッチング装置。
The secret pattern matching device according to claim 1,
df m, k = 1 represents that corresponding to the particular type of representation of the target character d m corresponding to k, df m, k = 0 is given to representation of the target character d m corresponding to the k Indicates that it does not fall under the category,
pf m, k = 1 represents that corresponding to the particular type of representation of the pattern character p m corresponds to k, pf m, k = 0 is given to representation of the pattern character p m corresponds to the k Indicates that it does not fall under the category,
The first calculation unit includes:
Using the concealment record [d] n and the concealment information [p] n as inputs , exclusive calculation of the target character type information df m, k and the pattern character type information pf m, k is performed by secret calculation. The concealment information [rf m, k ] n in which the coincidence determination result rf m, k ε {1, 0} representing negation of the logical sum is concealed is obtained, and the target code dc m and the pattern code pc m are obtained. rc m = 1 next to the case of matching, the target code dc m and the pattern codes pc m and a rc m = 0 when does not match the second information rc m is concealed been concealed information [rc m A concealment coincidence determining unit for obtaining n ;
The concealment information [rf m, k ] n and the concealment information [rc m ] n are input, and the coincidence determination result rf m, 1 ,..., Rf m, K and the coincidence determination result rc are obtained by secret calculation. a first conjunctive AND operation unit for obtaining concealment information [CON m ] n in which the first information CON m, which is a logical product of m, is concealed ;
A second conjunctive AND operation unit that receives the concealment information [CON m ] n and obtains the concealment determination result [x] n by concealment of the first determination result x ;
A third conjunctive AND operation unit which receives the concealment information [rc m ] n and obtains the concealment determination result [y] n by concealing the second determination result y by a secret calculation. Secret pattern matching device.
第1演算部が、対象文字列d=(d ,…,d )に含まれた対象文字 の表記が特定の種別に該当するか否かを表す対象文字種別情報df m,k ∈{1,0}パターン文字列p=(p ,・・・,p )に含まれたパターン文字 の表記が前記特定の種別に該当するか否かを表すパターン文字種別情報pf m,k ∈{1,0}とが一致し、かつ、前記対象文字 の内容を表す対象符号dc と前記パターン文字 の内容を表すパターン符号pc とが一致する、という条件を満たす場合に1となり、満たさない場合に0となる第1情報CON ∈{1,0}に基づく第1判定結果x∈{1,0}、および、前記対象符号dc と前記パターン符号pc とが一致するという条件を満たす場合に1となり、満たさない場合に0となる第2情報rc ∈{1,0}に基づく第2判定結果y∈{1,0}、が秘匿化された秘匿化判定結果[x] および[y] を得る第1演算ステップと、
第2演算部が、判定条件a∈{1,0}が表記の種別を区別することを表す場合に前記第1判定結果に基づき、前記判定条件が表記の種別を区別しないことを表す場合に前記第2判定結果に基づく、第3判定結果r∈{1,0}が秘匿化された秘匿化情報[r] を得る第2演算ステップと、
を有し、
Mが1以上の整数、Kが正の整数、m∈{1,・・・,M}、k∈{1,・・・,K}であり、
前記第1判定結果xが(CON )AND(CON )AND・・・AND(CON )であり、
前記第2判定結果yが(rc )AND(rc )AND・・・AND(rc )であり、
a=1は前記表記の種別を区別することを表し、a=0は前記表記の種別を区別しないことを表し、
前記第1演算ステップは、前記対象文字種別情報df m,k および前記対象符号dc が秘匿化された秘匿化レコード[d] 、および、前記パターン文字種別情報pf m,k および前記パターン符号pc が秘匿化された秘匿化情報[p] を入力とし、秘密計算によって、前記秘匿化判定結果[x] および[y] を得、
前記第2演算ステップは、前記秘匿化判定結果[x] および[y] ならびに前記判定条件aが秘匿化された秘匿化情報[a] を入力とし、秘密計算によって、前記第3判定結果r=(x AND a)OR(y AND (1−a))が秘匿化された秘匿化情報[(x AND a)OR(y AND (1−a))] を得るステップを含む、秘匿パターンマッチング方法。
The first calculation unit, the target character string d = (d 1, ..., d M) target character type information indicating whether notation to include the target character d m corresponds to a particular type df m, k ∈ {1, 0} and pattern string p = (p 1, ···, p M) pattern character type information representation of the included pattern character p m indicating whether corresponding to the particular type pf m, k ∈ {1,0} and match and a pattern code pc m representing the content of the target code dc m representing the content of the object character d m the pattern character p m coincide, that The first determination result xε {1 , 0} based on the first information CON m ε {1, 0} that is 1 when the condition is satisfied and 0 when the condition is not satisfied , and the target code dc m and the pattern becomes 1 when the condition that the sign pc m coincide, met Second judgment result y∈ based 0. The second information rc m ∈ {1,0} When have {1,0}, the concealment of been concealed determination result [x] n and [y] n Obtaining a first computation step;
The second arithmetic unit represents that the determination condition a does not distinguish the notation type based on the first determination result x when the determination condition aε {1, 0} indicates that the notation type is distinguished. A second calculation step for obtaining concealment information [r] n in which the third determination result rε {1, 0} is concealed , based on the second determination result y ,
I have a,
M is an integer greater than or equal to 1, K is a positive integer, m∈ {1,..., M}, k∈ {1,.
The first determination result x is (CON 1 ) AND (CON 2 ) AND... AND (CON M ).
The second determination result y is (rc 1 ) AND (rc 2 ) AND... AND (rc M )
a = 1 indicates that the type of the notation is distinguished, a = 0 indicates that the type of the notation is not distinguished,
The first calculation step includes a concealment record [d] n in which the target character type information df m, k and the target code dc m are concealed , and the pattern character type information pf m, k and the pattern code The confidential information [p] n in which pc m is concealed is input, and the concealment determination results [x] n and [y] n are obtained by secret calculation ,
In the second calculation step, the concealment determination results [x] n and [y] n and the concealment information [a] n in which the determination condition a is concealed are input, and the third determination is performed by secret calculation. A result r = (x AND a) OR (y AND (1-a)) is concealed [(x AND a) OR (y AND (1-a))] n is obtained, Secret pattern matching method.
請求項3の秘匿パターンマッチング方法であって、  The secret pattern matching method according to claim 3,
df  df m,km, k =1は前記対象文字d= 1 is the target character d m の表記がkに対応する特定の種別に該当することを表し、dfRepresents a specific type corresponding to k, and df m,km, k =0は前記対象文字d= 0 is the target character d m の表記がkに対応する特定の種別に該当しないことを表し、The notation does not correspond to a specific type corresponding to k,
pf  pf m,km, k =1は前記パターン文字p= 1 is the pattern character p m の表記がkに対応する特定の種別に該当することを表し、pfPp represents a specific type corresponding to k, and pf m,km, k =0は前記パターン文字p= 0 is the pattern character p m の表記がkに対応する特定の種別に該当しないことを表し、The notation does not correspond to a specific type corresponding to k,
前記第1演算ステップは、  The first calculation step includes:
秘匿一致判定部が、前記対象文字種別情報df  The confidentiality match determination unit is configured to perform the target character type information df m,km, k および前記対象符号dcAnd the target code dc m が秘匿化された秘匿化レコード[d]Concealment record [d] n 、および、前記パターン文字種別情報pf, And the pattern character type information pf m,km, k および前記パターン符号pcAnd the pattern code pc m が秘匿化された秘匿化情報[p]Information concealed [p] n を入力とし、秘密計算によって、前記対象文字種別情報dfAnd the target character type information df by secret calculation m,km, k と前記パターン文字種別情報pfAnd the pattern character type information pf m,km, k との排他的論理和の否定を表す一致判定結果rfMatch determination result rf indicating negation of exclusive OR with m,km, k ∈{1,0}が秘匿化された秘匿化情報[rfConfidential information [rf in which ∈ {1, 0} is concealed m,km, k ] n を得、前記対象符号dcAnd the target code dc m と前記パターン符号pcAnd the pattern code pc m とが一致する場合にrcRc if and match m =1となり、前記対象符号dc= 1 and the target code dc m と前記パターン符号pcAnd the pattern code pc m とが一致しない場合にrcRc if does not match m =0となる前記第2情報rcThe second information rc that becomes = 0 m が秘匿化された秘匿化情報[rcConcealment information [rc m ] n を得る秘匿一致判定ステップと、Obtaining a concealment match determination step,
第1秘匿論理積演算部が、前記秘匿化情報[rf  The first concealment AND operation unit performs the concealment information [rf m,km, k ] n および前記秘匿化情報[rcAnd the concealment information [rc m ] n を入力とし、秘密計算によって、前記一致判定結果rfAnd the match determination result rf by secret calculation. m,1m, 1 ,…,rf, ..., rf m,Km, K および前記一致判定結果rcAnd the coincidence determination result rc m の論理積である前記第1情報CONThe first information CON which is the logical product of m が秘匿化された秘匿化情報[CONIs concealed [CON m ] n を得る第1秘匿論理積演算ステップと、A first conjunctive AND operation step to obtain
第2秘匿論理積演算部が、前記秘匿化情報[CON  The second conjunctive AND operation unit performs the concealment information [CON m ] n を入力とし、秘密計算によって、前記第1判定結果xが秘匿化された前記秘匿化判定結果[x]And the concealment determination result [x] in which the first determination result x is concealed by secret calculation. n を得る第2秘匿論理積演算ステップと、A second conjunctive AND operation step to obtain
第3秘匿論理積演算部が、前記秘匿化情報[rc  The third cipher AND operation unit performs the ciphering information [rc m ] n を入力とし、秘密計算によって、前記第2判定結果yが秘匿化された前記秘匿化判定結果[y]And the second determination result y is concealed by a secret calculation, the concealment determination result [y] n を得る第3秘匿論理積演算ステップと、を含む、秘匿パターンマッチング方法。A secret pattern matching method comprising: a third secret AND operation step for obtaining
請求項1または2の秘匿パターンマッチング装置としてコンピュータを機能させるためのプログラム。
Program for causing a computer to function as the concealed pattern matching equipment of claim 1 or 2.
JP2015024218A 2015-02-10 2015-02-10 Secret pattern matching apparatus, method and program Active JP6305946B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2015024218A JP6305946B2 (en) 2015-02-10 2015-02-10 Secret pattern matching apparatus, method and program

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2015024218A JP6305946B2 (en) 2015-02-10 2015-02-10 Secret pattern matching apparatus, method and program

Publications (2)

Publication Number Publication Date
JP2016148722A JP2016148722A (en) 2016-08-18
JP6305946B2 true JP6305946B2 (en) 2018-04-04

Family

ID=56691158

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2015024218A Active JP6305946B2 (en) 2015-02-10 2015-02-10 Secret pattern matching apparatus, method and program

Country Status (1)

Country Link
JP (1) JP6305946B2 (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP6927332B2 (en) * 2017-12-19 2021-08-25 日本電信電話株式会社 Search devices, search methods, programs, and recording media

Family Cites Families (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH0877188A (en) * 1994-09-05 1996-03-22 Oki Electric Ind Co Ltd Full text search method
AU2009288767B2 (en) * 2008-09-08 2015-08-06 Salesforce.Com, Inc. An appliance, system, method and corresponding software components for encrypting and processing data
JP2010191858A (en) * 2009-02-20 2010-09-02 Daikin Ind Ltd Software development support device
JP6089881B2 (en) * 2013-03-28 2017-03-08 富士通株式会社 Data search method, data addition / update method, data search program, and relay device

Also Published As

Publication number Publication date
JP2016148722A (en) 2016-08-18

Similar Documents

Publication Publication Date Title
US11487897B2 (en) Generating and processing obfuscated sensitive information
Al Etaiwi Encryption algorithm using graph theory
CN109241484B (en) Method and equipment for sending webpage data based on encryption technology
JP2018054765A (en) Data processing device, data processing method, and program
US10541982B1 (en) Techniques for protecting electronic data
Dang Changes in federal information processing standard (FIPS) 180-4, secure hash standard
US11120143B2 (en) Data analysis server, data analysis system, and data analysis method
Dyson et al. Scenario-based creation and digital investigation of ethereum ERC20 tokens
CN110062941B (en) Message transmission system, message transmission method, communication terminal, server device, and recording medium
Ahmad et al. A secure network communication protocol based on text to barcode encryption algorithm
JPWO2016203555A1 (en) Concealed similarity search system and similarity concealment search method
Tayyab et al. Cryptographic based secure model on dataset for deep learning algorithms
Malik et al. A homomorphic approach for security and privacy preservation of Smart Airports
EP3483867B1 (en) System, device, method, and program for indexing a secret-shared array with secure multiparty computations
CN116055067B (en) Weak password detection method, device, electronic equipment and medium
JP6305946B2 (en) Secret pattern matching apparatus, method and program
US20180309579A1 (en) Secure representation via a format preserving hash function
US10291396B2 (en) Device, method and program for detecting positions of partial character strings
JP6274669B2 (en) Secret pattern matching device, terminal device, method thereof, and program
Nechta Steganography in social networks
Wu et al. A reliable user authentication and key agreement scheme for web-based hospital-acquired infection surveillance information system
Hussein et al. Encryption of Association Rules Using Modified Dynamic Mapping and Modified (AES) Algorithm
Kozik et al. The http content segmentation method combined with adaboost classifier for web-layer anomaly detection system
Kuvonchbek Method Authentication of Objects Information Communication
CN111475690A (en) Character string matching method and device, data detection method and server

Legal Events

Date Code Title Description
A621 Written request for application examination

Free format text: JAPANESE INTERMEDIATE CODE: A621

Effective date: 20170302

A131 Notification of reasons for refusal

Free format text: JAPANESE INTERMEDIATE CODE: A131

Effective date: 20180104

A521 Written amendment

Free format text: JAPANESE INTERMEDIATE CODE: A523

Effective date: 20180222

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: 20180306

A61 First payment of annual fees (during grant procedure)

Free format text: JAPANESE INTERMEDIATE CODE: A61

Effective date: 20180307

R150 Certificate of patent or registration of utility model

Ref document number: 6305946

Country of ref document: JP

Free format text: JAPANESE INTERMEDIATE CODE: R150