JP2022044737A - Input person device, arithmetic support device, device, secret arithmetic device, and program - Google Patents

Input person device, arithmetic support device, device, secret arithmetic device, and program Download PDF

Info

Publication number
JP2022044737A
JP2022044737A JP2022010040A JP2022010040A JP2022044737A JP 2022044737 A JP2022044737 A JP 2022044737A JP 2022010040 A JP2022010040 A JP 2022010040A JP 2022010040 A JP2022010040 A JP 2022010040A JP 2022044737 A JP2022044737 A JP 2022044737A
Authority
JP
Japan
Prior art keywords
secret
integer
calculation
less
information
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
JP2022010040A
Other languages
Japanese (ja)
Other versions
JP7240037B2 (en
Inventor
惠市 岩村
Keiichi Iwamura
純一 桶谷
Junichi Oketani
淳 國井
Atsushi Kunii
清 友村
Kiyoshi Tomomura
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.)
Individual
Original Assignee
Individual
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
Priority claimed from JP2018028308A external-priority patent/JP7041951B2/en
Application filed by Individual filed Critical Individual
Priority to JP2022010040A priority Critical patent/JP7240037B2/en
Publication of JP2022044737A publication Critical patent/JP2022044737A/en
Priority to JP2023008279A priority patent/JP2023052580A/en
Application granted granted Critical
Publication of JP7240037B2 publication Critical patent/JP7240037B2/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Landscapes

  • Storage Device Security (AREA)

Abstract

PROBLEM TO BE SOLVED: To efficiently perform calculation.
SOLUTION: A system performs secret arithmetic between a first integer and a second integer using means that distributes confidential information to n pieces and can restore the confidential information by collecting k distributed values of the n pieces but cannot restore the confidential information with k-L pieces or less, where n denotes an integer, k an integer equal to or less than n, and L an integer of 1 or greater and k or smaller. The system adds a value other than 0 to the confidential information, then multiplies the sum by a random number other than 0 (54), and transmits the product to each machine as is (56).
SELECTED DRAWING: Figure 5
COPYRIGHT: (C)2022,JPO&INPIT

Description

本発明は、入力者装置、演算支援装置、装置、秘匿演算装置、及びプログラムに関する。 The present invention relates to an input person device, a calculation support device, a device, a secret calculation device, and a program.

演算支援装置、及び秘匿演算装置は情報を安全に分散管理する分散管理技術に関する。また、分散管理された情報を秘匿したまま演算を行う秘匿演算技術に関する。 The arithmetic support unit and the confidential arithmetic unit relate to distributed management technology for safely distributed management of information. Further, the present invention relates to a concealment operation technique for performing an operation while concealing distributed managed information.

近年、AIなどの進歩に伴い、ニューラルネットワーク(以降、NN)の活用が期待されている。ただし、NNの活用においては、解こうとする問題が漏洩すると個人のプライバシーや企業の機密情報に影響を与える可能性がある。そのため、NNの利活用においては、その入力情報や解こうとする問題を秘匿できることが望まれる。 In recent years, with the progress of AI and the like, the utilization of neural networks (hereinafter referred to as NN) is expected. However, in the utilization of NN, if the problem to be solved is leaked, it may affect the privacy of individuals and the confidential information of companies. Therefore, in the utilization of NN, it is desired to be able to conceal the input information and the problem to be solved.

入力情報を秘匿しながら計算を実現する手法として秘匿計算技術が研究されている。秘匿計算技術を大きく分けると、主に鍵を用いてデータを秘匿する公開鍵暗号に基づく準同型暗号と、鍵を用いずにデータを秘匿する秘密分散法を用いた秘匿計算がある。ただし、準同型暗号は一般的に計算量が多く、演算の処理に多大な時間がかかるという問題がある。一方、秘密分散を用いる場合、最小2台の装置が必要であるが、秘匿計算を行おうとすれば、一般に3台以上の別々に管理された装置が必要であることが知られており、装置規模が大きくなるという問題がある。よって、高速な秘匿計算が可能で、できるだけ少ない台数、または小さな装置規模で秘匿計算が行える仕組みが必要とされている。 Confidential calculation technology is being researched as a method for realizing calculation while concealing input information. The secret calculation technology can be broadly divided into homomorphic encryption based on public key cryptography, which mainly uses a key to conceal data, and concealment calculation, which uses a secret sharing method to conceal data without using a key. However, homomorphic encryption generally requires a large amount of calculation, and has a problem that it takes a lot of time to process the calculation. On the other hand, when secret sharing is used, a minimum of two devices are required, but it is generally known that three or more separately managed devices are required for secret calculation. There is a problem that the scale becomes large. Therefore, there is a need for a mechanism that enables high-speed concealment calculation and can perform concealment calculation with as few units as possible or with a small device scale.

本発明では、小さな装置規模で効率的に秘匿計算を行える入力者装置、演算支援装置、及び秘匿演算装置を提供することを目的とする。 It is an object of the present invention to provide an input person device, a calculation support device, and a secret calculation device capable of efficiently performing confidential calculation on a small device scale.

請求項1に記載の発明の演算支援装置は、nを2以上の整数、kを、最小値が2で最大値がnの整数、Lを1以上k以下の整数とし、秘密情報をn個に分散し、n個のうちk個の分散値を集めれば秘密情報を復元でき、k-L個以下では秘密情報を復元できない手段を用いて秘匿演算を行うシステムにおいて、秘密情報に0でない値の乱数を秘匿加算する手段と、その秘匿加算結果をそのまま秘匿演算に参加する全秘匿演算装置に送る手段と、を有することを特徴とする。 The arithmetic support unit of the invention according to claim 1 has n as an integer of 2 or more, k as an integer having a minimum value of 2 and a maximum value of n, and L as an integer of 1 or more and k or less. Confidential information can be restored by collecting k distributed values out of n values, and non-zero values for confidential information in a system that performs confidential operations using means that cannot restore confidential information if the number is k-L or less. It is characterized by having a means for secretly adding the random number of the above and a means for sending the secret addition result as it is to all the secret calculation devices participating in the secret calculation.

請求項2に記載の発明の装置は、nを2以上の整数、kを、最小値が2で最大値がnの整数、Lを1以上k以下の整数とし、秘密情報をn個に分散し、n個のうちk個の分散値を集めれば秘密情報を復元でき、k-L個以下では秘密情報を復元できない手段を用いて秘匿演算を行うシステムにおいて、1個以上の第1の乱数を生成する手段と、第1の乱数の各々を秘密分散した分散値の各々にかける手段と、を有することを特徴とする。 In the apparatus of the invention according to claim 2, n is an integer of 2 or more, k is an integer having a minimum value of 2 and a maximum value of n, and L is an integer of 1 or more and k or less, and secret information is distributed to n pieces. Then, in a system in which the secret information can be restored by collecting k distributed values out of n, and the secret operation is performed using a means that cannot restore the secret information if the number is k-L or less, one or more first random numbers. It is characterized by having a means for generating a first random number and a means for multiplying each of the secretly distributed distributed values by each of the first random numbers.

請求項3に記載の発明の秘匿演算装置は、nを2以上の整数、kを、最小値が2で最大値がnの整数、Lを1以上k以下の整数とし、秘密情報をn個に分散し、n個のうちk個の分散値を集めれば秘密情報を復元でき、k-L個以下では秘密情報を復元できない手段を用いて秘匿演算を行うシステムにおいて、請求項2による異なる乱数がかかった分散値に請求項1の装置によって公開された秘匿化秘密情報を作用させる手段と、その手段の出力である同一の秘密情報に対して異なる乱数を作用させた分散値を用いて演算する手段を有することを特徴とする。 The secret arithmetic unit of the invention according to claim 3 has n as an integer of 2 or more, k as an integer having a minimum value of 2 and a maximum value of n, and L as an integer of 1 or more and k or less. In a system in which the secret information can be restored by collecting k distributed values out of n and the secret information cannot be restored if the number is k-L or less, the different random numbers according to claim 2 are performed. A calculation is performed using a means for applying the concealed secret information disclosed by the apparatus of claim 1 to the distributed value obtained by the method and a distributed value in which different random numbers are applied to the same secret information which is the output of the means. It is characterized by having a means to do so.

請求項4に記載の発明の入力者装置は、nを2以上の整数、kを、最小値が2で最大値がnの整数、Lを1以上k以下の整数とし、秘密情報をn個に分散し、n個のうちk個の分散値を集めれば秘密情報を復元でき、k-L個以下では秘密情報を復元できない手段を用いて秘匿演算を行うシステムにおいて、用いる秘匿演算装置の数をt、入力数をuとしたとき、nをut以上として秘密分散を行う手段と、その分散値をn/t個毎に分割して異なる乱数を乗算する手段と、その異なる乱数が乗じられた分散値n/t個から少なくとも1つの分散値を秘匿演算装置に配布する手段と、を有することを特徴とする。 The inputter device of the invention according to claim 4 has n as an integer of 2 or more, k as an integer having a minimum value of 2 and a maximum value of n, and L as an integer of 1 or more and k or less, and n pieces of secret information. The number of secret arithmetic devices used in a system that performs a secret operation using a means that can restore secret information by collecting k distributed values out of n and cannot restore confidential information if the number is k-L or less. When t and the number of inputs are u, a means for performing secret sharing with n being ut or more, a means for dividing the distribution value for each n / t and multiplying by different random numbers, and the different random numbers are multiplied. It is characterized by having a means for distributing at least one distribution value from n / t of the distribution values to a secret computing device.

請求項5に記載の発明の秘匿演算装置は、nを2以上の整数、kを、最小値が2で最大値がnの整数、Lを1以上k以下の整数とし、秘密情報をn個に分散し、n個のうちk個の分散値を集めれば秘密情報を復元でき、k-L個以下では秘密情報を復元できない手段を用いて秘匿演算を行うシステムにおいて、分散値同士の乗算を行う手段と、乱数がかけられた分散値同士の積から乱数を削除する手段と、乱数が削除された分散値に対して次数変換処理を1回以上繰り返す手段と、を有することを特徴とする。 In the confidential operation device of the invention according to claim 5, n is an integer of 2 or more, k is an integer having a minimum value of 2 and a maximum value of n, and L is an integer of 1 or more and k or less, and n pieces of confidential information. In a system that performs a concealment operation using a means that can restore confidential information by collecting k distributed values out of n, and cannot restore confidential information with k-L or less, multiply the distributed values. It is characterized by having a means for performing, a means for deleting a random number from the product of distributed values to which a random number has been applied, and a means for repeating a degree conversion process for the distributed value from which the random number has been deleted one or more times. ..

請求項6に記載の発明の秘匿演算装置は、nを2以上の整数、kを、最小値が2で最大値がnの整数、Lを1以上k以下の整数とし、秘密情報をn個に分散し、n個のうちk個の分散値を集めれば秘密情報を復元でき、k-L個以下では秘密情報を復元できない手段を用いて秘匿演算を行うシステムにおいて、請求項1による秘匿化秘密情報から請求項1で加算された定数を秘匿減算する手段と、その秘匿減算結果が0であるかを検証する手段と、0でないときに秘匿減算された値からその逆数を生成する手段と、を有する。 The concealment arithmetic unit of the invention according to claim 6 has n as an integer of 2 or more, k as an integer having a minimum value of 2 and a maximum value of n, and L as an integer of 1 or more and k or less. Concealment according to claim 1 in a system in which confidential information can be restored by collecting k distributed values out of n, and concealment calculation is performed using a means that cannot restore confidential information with k-L or less. A means for secretly subtracting a constant added in claim 1 from confidential information, a means for verifying whether the secret subtraction result is 0, and a means for generating the reciprocal of the secretly subtracted value when it is not 0. , Have.

請求項7に記載の発明の演算支援装置は、nを2以上の整数、kを、最小値が2で最大値がnの整数、Lを1以上k以下の整数とし、秘密情報をn個に分散し、n個のうちk個の分散値を集めれば秘密情報を復元でき、k-L個以下では秘密情報を復元できない手段を用いて秘匿演算を行うシステムにおいて、異なる乱数がかかった分散値を他の分散値と同じ乱数に変換する手段と、同じ乱数がかかった秘密情報を復元する、または秘匿演算装置が復元できるようにする手段と、を有する。 The arithmetic support unit of the invention according to claim 7 has n as an integer of 2 or more, k as an integer having a minimum value of 2 and a maximum value of n, and L as an integer of 1 or more and k or less. Dispersion with different random numbers is applied in a system that performs concealment operations using means that can restore secret information by collecting k distribution values out of n, and cannot restore confidential information with k-L or less. It has a means for converting a value into the same random number as other distributed values, and a means for recovering confidential information to which the same random number is applied, or for allowing a secret arithmetic unit to recover.

請求項8に記載の発明のプログラムは、nを2以上の整数、kを、最小値が2で最大値がnの整数、Lを1以上k以下の整数とし、秘密情報をn個に分散し、n個のうちk個の分散値を集めれば秘密情報を復元でき、k-L個以下では秘密情報を復元できない手段を用いて秘匿演算を行うシステムにおける演算支援装置のコンピュータを、秘密情報に0でない値の乱数を秘匿加算する手段、及びその秘匿加算結果をそのまま秘匿演算に参加する全秘匿演算装置に送る手段として機能させる。 In the program of the invention according to claim 8, n is an integer of 2 or more, k is an integer having a minimum value of 2 and a maximum value of n, and L is an integer of 1 or more and k or less, and secret information is distributed to n pieces. Then, if k distributed values out of n are collected, the secret information can be restored, and if the number is k-L or less, the secret information cannot be restored. It functions as a means for secretly adding a non-zero integer and a means for sending the secret addition result as it is to all the secret calculation devices participating in the secret calculation.

請求項9に記載の発明のプログラムは、nを2以上の整数、kを、最小値が2で最大値がnの整数、Lを1以上k以下の整数とし、秘密情報をn個に分散し、n個のうちk個の分散値を集めれば秘密情報を復元でき、k-L個以下では秘密情報を復元できない手段を用いて秘匿演算を行うシステムにおける装置のコンピュータを、1個以上の第1の乱数を生成する手段、及び第1の乱数の各々を秘密分散した分散値の各々にかける手段として機能させる。 In the program of the invention according to claim 9, n is an integer of 2 or more, k is an integer having a minimum value of 2 and a maximum value of n, and L is an integer of 1 or more and k or less, and secret information is distributed to n pieces. Then, if k of the n distributed values are collected, the secret information can be restored, and if the number is k-L or less, the secret information cannot be restored. It functions as a means for generating a first random number and a means for multiplying each of the first random numbers by each of the secretly distributed distributed values.

請求項10に記載の発明のプログラムは、nを2以上の整数、kを、最小値が2で最大値がnの整数、Lを1以上k以下の整数とし、秘密情報をn個に分散し、n個のうちk個の分散値を集めれば秘密情報を復元でき、k-L個以下では秘密情報を復元できない手段を用いて秘匿演算を行うシステムにおける秘匿演算装置のコンピュータを、請求項2による異なる乱数がかかった分散値に請求項1の装置によって公開された秘匿化秘密情報を作用させる手段、及びその手段の出力である同一の秘密情報に対して異なる乱数を作用させた分散値を用いて演算する手段として機能させる。 In the program of the invention according to claim 10, n is an integer of 2 or more, k is an integer having a minimum value of 2 and a maximum value of n, and L is an integer of 1 or more and k or less, and secret information is distributed to n pieces. The computer of the secret arithmetic unit in the system that performs the secret calculation by using a means that can recover the secret information by collecting k distributed values out of n and cannot recover the secret information if the number is k-L or less is claimed. A means for applying the concealment secret information disclosed by the device of claim 1 to a distributed value obtained by applying different random numbers according to 2, and a distributed value in which different random numbers are applied to the same secret information output from the means. It functions as a means of calculating using.

請求項11に記載の発明のプログラムは、nを2以上の整数、kを、最小値が2で最大値がnの整数、Lを1以上k以下の整数とし、秘密情報をn個に分散し、n個のうちk個の分散値を集めれば秘密情報を復元でき、k-L個以下では秘密情報を復元できない手段を用いて秘匿演算を行うシステムにおける入力者装置のコンピュータを、用いる秘匿演算装置の数をt、入力数をuとしたとき、nをut以上として秘密分散を行う手段、その分散値をn/t個毎に分割して異なる乱数を乗算する手段、及びその異なる乱数が乗じられた分散値n/t個から少なくとも1つの分散値を秘匿演算装置に配布する手段として機能させる。 In the program of the invention according to claim 11, n is an integer of 2 or more, k is an integer having a minimum value of 2 and a maximum value of n, and L is an integer of 1 or more and k or less, and secret information is distributed to n pieces. Then, if k distributed values out of n are collected, the secret information can be restored, and if the number is k-L or less, the secret information cannot be restored. When the number of arithmetic devices is t and the number of inputs is u, a means for performing secret sharing with n being ut or more, a means for dividing the distribution value into n / t units and multiplying them by different random numbers, and a different random number. It functions as a means for distributing at least one distribution value from the n / t distribution values multiplied by the concealment calculation device.

請求項12に記載の発明のプログラムは、nを2以上の整数、kを、最小値が2で最大値がnの整数、Lを1以上k以下の整数とし、秘密情報をn個に分散し、n個のうちk個の分散値を集めれば秘密情報を復元でき、k-L個以下では秘密情報を復元できない手段を用いて秘匿演算を行うシステムにおける秘匿演算装置のコンピュータを、分散値同士の乗算を行う手段と、乱数がかけられた分散値同士の積から乱数を削除する手段、及び乱数が削除された分散値に対して次数変換処理を1回以上繰り返す手段として機能させる。 In the program of the invention according to claim 12, n is an integer of 2 or more, k is an integer having a minimum value of 2 and a maximum value of n, and L is an integer of 1 or more and k or less, and confidential information is distributed to n pieces. Then, if k of the n distributed values are collected, the secret information can be restored, and if the number is k-L or less, the confidential information cannot be restored. It functions as a means for multiplying each other, a means for deleting a random number from the product of distributed values to which a random number is applied, and a means for repeating a degree conversion process for the distributed value from which the random number has been deleted one or more times.

請求項13に記載の発明のプログラムは、nを2以上の整数、kを、最小値が2で最大値がnの整数、Lを1以上k以下の整数とし、秘密情報をn個に分散し、n個のうちk個の分散値を集めれば秘密情報を復元でき、k-L個以下では秘密情報を復元できない手段を用いて秘匿演算を行うシステムにおける秘匿演算装置のコンピュータを、請求項1による秘匿化秘密情報から請求項1で加算された定数を秘匿減算する手段、及びその秘匿減算結果が0であるかを検証する手段と、0でないときに秘匿減算された値からその逆数を生成する手段として機能させる。 In the program of the invention according to claim 13, n is an integer of 2 or more, k is an integer having a minimum value of 2 and a maximum value of n, and L is an integer of 1 or more and k or less, and secret information is distributed to n pieces. The computer of the secret calculation device in the system that performs the secret calculation by using a means that can recover the secret information by collecting k distributed values out of n and cannot recover the secret information if the number is k-L or less is claimed. Concealment by 1 Means for concealing and subtracting the constant added in claim 1 from confidential information, means for verifying whether the concealment subtraction result is 0, and the inverse number from the concealed subtracted value when it is not 0. It functions as a means of generation.

請求項14に記載の発明のプログラムは、nを2以上の整数、kを、最小値が2で最大値がnの整数、Lを1以上k以下の整数とし、秘密情報をn個に分散し、n個のうちk個の分散値を集めれば秘密情報を復元でき、k-L個以下では秘密情報を復元できない手段を用いて秘匿演算を行うシステムにおける演算支援装置のコンピュータを、異なる乱数がかかった分散値を他の分散値と同じ乱数に変換する手段、及び同じ乱数がかかった秘密情報を復元する、または秘匿演算装置が復元できるようにする手段として機能させる。 In the program of the invention according to claim 14, n is an integer of 2 or more, k is an integer having a minimum value of 2 and a maximum value of n, and L is an integer of 1 or more and k or less, and secret information is distributed to n pieces. Then, if k distributed values out of n are collected, the secret information can be restored, and if the number is k-L or less, the secret information cannot be restored. It functions as a means for converting the distributed value with the same random number into the same random number as other distributed values, and as a means for restoring the secret information with the same random number or enabling the secret arithmetic unit to restore it.

本発明は、効率的に計算を行える。 The present invention can perform calculations efficiently.

第1の実施の形態の秘密情報分散秘匿演算システムの構成図である。It is a block diagram of the secret information distribution secret operation system of 1st Embodiment. 第1の実施の形態の入力者装置12のブロック図である。It is a block diagram of the input person apparatus 12 of 1st Embodiment. 入力者装置12のCPU22の機能ブロック図である。It is a functional block diagram of the CPU 22 of the input person apparatus 12. マシン14N0~14Nn-1のCPU22の機能ブロック図である。It is a functional block diagram of the CPU 22 of the machines 14N0 to 14Nn-1. 分散1のプログラムのフローチャートである。It is a flowchart of the program of variance 1. 秘匿積和演算1のプログラムのフローチャートである。It is a flowchart of the program of secret product sum operation 1. 秘密分散1のプログラムのフローチャートである。It is a flowchart of the program of secret sharing 1. 秘匿除算1のプログラムのフローチャートである。It is a flowchart of the program of concealment division 1. 分散1′のプログラムのフローチャートである。It is a flowchart of the program of variance 1'. 秘匿積和演算1′のプログラムのフローチャートである。It is a flowchart of the program of secret product sum operation 1'. 秘匿積和演算1′のプログラムのフローチャートである。It is a flowchart of the program of secret product sum operation 1'. 入力者装置12のCPU22の機能ブロック図である。It is a functional block diagram of the CPU 22 of the input person apparatus 12. 分散2のプログラムのフローチャートである。It is a flowchart of the program of variance 2. 積和のプログラムのフローチャートである。It is a flowchart of the product sum program. 演算支援2のプログラムのフローチャートである。It is a flowchart of the program of calculation support 2. 演算支援2′のプログラムのフローチャートである。It is a flowchart of the program of calculation support 2'. 秘匿除算2のプログラムのフローチャートである。It is a flowchart of the program of concealment division 2. 第3の実施の形態の秘密情報分散秘匿演算システムの構成図である。It is a block diagram of the secret information distribution secret operation system of 3rd Embodiment. 入力者装置12のCPU22の機能ブロック図である。It is a functional block diagram of the CPU 22 of the input person apparatus 12. マシン14N0~14Nn-1のCPU22の機能ブロック図である。It is a functional block diagram of the CPU 22 of the machines 14N0 to 14Nn-1. 変換用乱数生成3のシーケンス図である。It is a sequence diagram of random number generation 3 for conversion. 変換用乱数生成3’のシーケンス図である。It is a sequence diagram of random number generation 3'for conversion. 分散3のプログラムのフローチャートである。It is a flowchart of the program of variance 3. 秘匿積和演算3のプログラムのフローチャートである。It is a flowchart of the program of the secret product sum operation 3. 第4の実施の形態の構成の秘密情報分散秘匿演算システムの構成図である。It is a block diagram of the secret information distribution secret operation system of the structure of 4th Embodiment. 分散4のプログラムのフローチャートである。It is a flowchart of the program of variance 4. 積和演算4のプログラムのフローチャートである。It is a flowchart of the program of the product-sum operation 4. 演算支援4のプログラムのフローチャートである。It is a flowchart of the program of calculation support 4. 入力者装置12Aの分散5のプログラムのフローチャートである。It is a flowchart of the program of the variance 5 of the input person apparatus 12A. 入力者装置12Bの分散5のプログラムのフローチャートである。It is a flowchart of the program of the variance 5 of the input person apparatus 12B. 入力者装置12Cの分散5のプログラムのフローチャートである。It is a flowchart of the program of the dispersion 5 of the input person apparatus 12C. 演算支援装置16の分散5のプログラムのフローチャートである。It is a flowchart of the program of the dispersion 5 of the arithmetic support apparatus 16. マシン14NNの分散5のプログラムのフローチャートである。It is a flowchart of the program of the dispersion 5 of the machine 14NN. 分散5のシーケンス図である。It is a sequence diagram of dispersion 5. 秘匿積和演算5のプログラムのフローチャートである。It is a flowchart of the program of the secret product sum operation 5. 秘匿積和演算5のプログラムのフローチャートである。It is a flowchart of the program of the secret product sum operation 5. 演算支援5のプログラムのフローチャートである。It is a flowchart of the program of calculation support 5.

以下、図面を参照して本発明の実施の形態の一例を詳細に説明する。
< 第1の実施の形態>
まず、第1の実施の形態の構成を説明する。
図1に示すように、第1の実施の形態の秘密情報分散秘匿演算システムは、ネットワーク10を介して相互に接続された、入力者装置12、複数(N個)のマシン14N0~14Nn-1を備えている。マシン14N0~14Nn-1は、ニューラルネットワークマシン(NNマシン)である。なお、以下では、マシン14N0~14Nn-1の各々を、マシン14Niで標記する場合もある。
Hereinafter, an example of an embodiment of the present invention will be described in detail with reference to the drawings.
<First Embodiment>
First, the configuration of the first embodiment will be described.
As shown in FIG. 1, the secret information distribution secret calculation system of the first embodiment has an input user device 12 and a plurality of (N) machines 14N0 to 14Nn-1 connected to each other via a network 10. It is equipped with. The machines 14N0 to 14Nn-1 are neural network machines (NN machines). In the following, each of the machines 14N0 to 14Nn-1 may be marked with the machine 14Ni.

入力者装置12及びマシン14N0~14Nn-1は、同様の構成になっているので、入力者装置12の構成のみを、図2を参照して説明する。図2に示すように、入力者装置12は、コンピュータを備え、CPU22、ROM24、RAM26、メモリ28、入力装置30、送受信装置32、表示装置34がバス36を介して相互に接続されて、構成されている。入力者装置12及びマシン14N0~14Nn-1のメモリ28には、後述するプログラムが記憶されている。 Since the input person device 12 and the machines 14N0 to 14Nn-1 have the same configuration, only the configuration of the input person device 12 will be described with reference to FIG. As shown in FIG. 2, the input device 12 includes a computer, and a CPU 22, a ROM 24, a RAM 26, a memory 28, an input device 30, a transmission / reception device 32, and a display device 34 are connected to each other via a bus 36. Has been done. A program to be described later is stored in the memory 28 of the input user device 12 and the machines 14N0 to 14Nn-1.

次に、図3を参照して、入力者装置12のCPU22がプログラムを実行することで実現される機能について説明する。プログラムは、分散機能を備えている。CPU22がこの機能を有するプログラムを実行することで、CPU22は、図3に示すように、分散部42として機能する。なお、上記プログラムは、復元機能を備え、CPU22がこの機能を有するプログラムを実行することで、CPU22は、図示しない復元部として機能する。 Next, with reference to FIG. 3, a function realized by executing a program by the CPU 22 of the input user device 12 will be described. The program has a distributed function. When the CPU 22 executes a program having this function, the CPU 22 functions as a distribution unit 42 as shown in FIG. The above program has a restoration function, and when the CPU 22 executes a program having this function, the CPU 22 functions as a restoration unit (not shown).

次に、図4を参照して、マシン14N0~14Nn-1の各々のCPU22がプログラムを実行することで実現される機能について説明する。プログラムは、秘匿積和演算機能及び秘匿除算機能を備えている。CPU22がこの機能を有するプログラムを実行することで、CPU22は、図4に示すように、秘匿積和演算部44及び秘匿除算部46として機能する。 Next, with reference to FIG. 4, the functions realized by each CPU 22 of the machines 14N0 to 14Nn-1 executing the program will be described. The program has a secret product-sum calculation function and a secret division function. When the CPU 22 executes a program having this function, the CPU 22 functions as a secret product-sum calculation unit 44 and a secret division unit 46, as shown in FIG.

次に、本実施の形態の作用を説明する。 Next, the operation of this embodiment will be described.

本実施の形態では、秘密分散法を用いる。最初に、秘密分散法を説明する。代表的な秘密分散法であるShamirの(k、n)閾値秘密分散法(以降、Shamir法)は、1つの秘密情報をn個の分散値に変換し、n台のサーバに分散する。Shamir法の特徴は、分散したn個の分散値から、k個の分散値を集めれば、元の秘密情報を復元することができるが、k個未満の情報からは、秘密情報に関する情報を一切得ることができないということである。Shamir法のアルゴリズムを以下に示す。また、秘密分散法を用いた秘匿計算法として以下に示すTUS方式がある。 In this embodiment, the secret sharing method is used. First, the secret sharing method will be explained. Shamir's (k, n) threshold secret sharing method (hereinafter referred to as the Shamir method), which is a typical secret sharing method, converts one secret information into n distributed values and distributes them to n servers. The feature of the Shamir method is that the original confidential information can be restored by collecting k distributed values from the distributed n distributed values, but from less than k information, no information related to the confidential information can be obtained. You can't get it. The algorithm of the Shamir method is shown below. Further, there is the TUS method shown below as a secret calculation method using the secret sharing method.

Shamirの(k、n)閾値秘密分散法
(分散処理)
ユーザはs<pかつn<pの条件を満たす任意の素数pを選択する。
Shamir's (k, n) threshold secret sharing method (distributed processing)
The user selects an arbitrary prime number p that satisfies the conditions of s <p and n <p.

ユーザはGF(p)の元からn個のx(i=0、1、2、・・・、n-1)を選び、サーバIDとする。 The user selects n xi (i = 0, 1, 2, ..., N-1) from the source of GF (p) and uses them as server IDs.

ユーザはGF(p)の元からk-1個の乱数a(l=1、2、・・・、k-1)を選び、以下の分散式を生成する。 The user selects k-1 random numbers a ( l = 1, 2, ..., K-1) from the source of GF (p), and generates the following dispersion formula.

=s+a+axi+・・・+ak-1 k-1(modp) Wi i = s + a 1 x i + a 2 xi 2 + ... + a k-1 x i k-1 (modp)

ユーザは上式のxに各サーバIDを代入し、分散値Wを計算し、各サーバSに送信する。 The user assigns each server ID to xi in the above equation, calculates the distribution value Wii , and sends it to each server Si .

(復元処理)
復元に用いる分散情報をW(i=0、1、2、・・・、k-1)として、その分散情報に対応するサーバIDをxとする。
(Restore processing)
The distributed information used for restoration is Wi ( i = 0, 1, 2, ..., K-1), and the server ID corresponding to the distributed information is xi .

分散式にxとWを代入し、k個の連立方程式を解いて、元の秘密情報sを復元する。ただし、秘密情報sを復元する際に、ラグランジュの補間公式を使うと便利である。 Substitute x i and Wi i into the distributed equation, solve k simultaneous equations, and restore the original secret information s. However, it is convenient to use the Lagrange interpolation formula when restoring the secret information s.

また、秘密情報をL個に分割し、分散式の係数として含ませるランプ型秘密分散方式も知られている。これによって、分散値の小型化が実現できる。 Further, a lamp type secret sharing method is also known in which secret information is divided into L pieces and included as a coefficient of the distributed type. This makes it possible to reduce the size of the variance value.

TUS方式
従来の秘匿乗算はShamir法による分散値をそのまま用いて乗算するため多項式の次数が変化し、復元に必要な分散値の数が2k-1個に増加する。しかし、以下の文献1で提案されたTUS方式は、秘密情報に乱数を乗じて秘匿化秘密情報を生成し、それを秘密分散する。秘匿乗算を行う際には、秘匿化秘密情報を一時的に復元してスカラー量として扱い、他の分散値と乗算を行う。これにより、乗算した際に多項式の次数は増加しないので、閾値を変化させない秘匿乗算を行うことができる。ただし、秘匿乗算においては秘密情報が漏洩する可能性があるため、秘密情報a、bは0を含まず、乱数も0を含まない(秘匿乗算以外では秘密情報に0を含んでもよい)。TUS方式は秘密分散の処理も含めてすべての秘匿演算はpを法として行われる。
TUS method In the conventional secret multiplication, the variance value by the Shamir method is used as it is for multiplication, so that the degree of the polynomial changes and the number of variance values required for restoration increases to 2k-1. However, the TUS method proposed in Document 1 below generates confidential secret information by multiplying the secret information by a random number and secretly shares it. When performing secret multiplication, the secret information is temporarily restored and treated as a scalar quantity, and then multiplied with other variance values. As a result, since the degree of the polynomial does not increase when multiplied, it is possible to perform secret multiplication without changing the threshold value. However, since the secret information may be leaked in the secret multiplication, the secret information a and b do not include 0, and the random number does not include 0 (the secret information may include 0 other than the secret multiplication). In the TUS method, all confidential operations including secret sharing processing are performed using p as a method.

文献1:神宮武志、岩村惠市:“除算を含む四則演算に適応可能な秘密分散法を用いた秘匿計算手法の提案”、信学技報115(122)、51-57、2015-07-02。 Reference 1: Takeshi Jingu, Keiichi Iwamura: "Proposal of a secret calculation method using a secret sharing method applicable to four arithmetic operations including division", Shingaku Giho 115 (122), 51-57, 2015-07- 02.

文献2:青井健、神宮武志、岩村惠市:“n<2k-1における秘匿計算の安全性検討及び非対称秘密分散との応用”、信学技報116(129)、237-243、2016-07-14。 Reference 2: Takeshi Aoi, Takeshi Jingu, Keiichi Iwamura: "Safety study of confidentiality calculation in n <2k-1 and application with asymmetric secret sharing", Shingaku Giho 116 (129), 237-243, 2016- 07-14.

TUS方式の問題点
TUS方式は秘匿加減算と秘匿乗除算が別々に構成され、それら単独であれば安全であることが、上記文献2に示されている。しかし、秘匿乗算と秘匿加算を組み合わせて、f(x)=ab+cのような積和演算を行う場合安全でない。以下に、手順1~5でTUS方式の秘匿乗算abを行い、手順6~10で秘匿加算ab+cを行う場合を示す。なお、秘密情報a、b、cはa、b、c∈Z/pZであり、分散処理および秘匿加算で生成する乱数αj、β、λ、γもαj、βj、λj、γ∈Z/pZである(ただし、乗算において一旦復元されるaと乱数は0ではない)。以下において、
Problems of the TUS method It is shown in the above document 2 that the TUS method is composed of secret addition / subtraction and secret multiplication / division separately, and it is safe if they are used alone. However, it is not safe to perform a product-sum operation such as f (x) = ab + c by combining secret multiplication and secret addition. The following shows a case where the secret multiplication ab of the TUS method is performed in steps 1 to 5, and the secret addition ab + c is performed in steps 6 to 10. The secret information a, b, c is a, b, c ∈ Z / pZ, and the random numbers α j, β j , λ j , and γ j generated by the distributed processing and the secret addition are also α j, β j, and λ. j, γ j ∈ Z / pZ (however, a and the random number that are restored once in multiplication are not 0). In the following

Figure 2022044737000002
Figure 2022044737000002

はaに対する分散値を表す。秘密分散の処理も含めてすべての秘匿演算はpを法として行われる。 Represents the variance value for a. All secret operations, including secret sharing processing, are performed in modulo p.

(ab+cの秘匿演算)
入力:

Figure 2022044737000003

(Ab + c concealment operation)
input:
Figure 2022044737000003

出力:

Figure 2022044737000004

output:
Figure 2022044737000004

手順1:サーバSはk台のサーバより

Figure 2022044737000005


を収集し、一時的にαaのスカラー量を復元し、全サーバSに送信する。 Step 1: Server S0 is from k servers
Figure 2022044737000005


Is collected, the scalar amount of αa is temporarily restored, and it is transmitted to all servers Si .

手順2:全サーバSは以下の式を用いて、

Figure 2022044737000006


を計算する。
Figure 2022044737000007

Step 2: All servers Si use the following formula
Figure 2022044737000006


To calculate.
Figure 2022044737000007

手順3:k台のサーバS

Figure 2022044737000008



Figure 2022044737000009


を収集し、αとβを復元し、αβを計算する。 Step 3: k servers Sj
Figure 2022044737000008


When
Figure 2022044737000009


Is collected, α j and β j are restored, and α j β j is calculated.

手順4:k台のサーバSは乱数αβをShamirの(k、n)閾値秘密分散法で全サーバSに分散する。 Step 4: The k servers S j distribute the random numbers α j β j to all the servers S i by Shamir's (k, n) threshold secret sharing method.

手順5:サーバS(i=0、1、2、・・・、n-1)は秘密情報abに関する分散情報として

Figure 2022044737000010


を保持する。 Step 5: Server S i (i = 0, 1, 2, ..., N-1) is used as distributed information regarding the secret information ab.
Figure 2022044737000010


To hold.

手順6:k台のサーバS

Figure 2022044737000011



Figure 2022044737000012


を収集し、αβとλを復元する。それから、k台のサーバSは乱数γを生成し、サーバSにγ/αβ、γ/λを送信する。 Step 6: k servers Sj
Figure 2022044737000011


When
Figure 2022044737000012


And restore α j β j and λ j . Then, k servers S j generate a random number γ j , and transmit γ j / α j β j and γ j / λ j to the server S 0 .

手順7:サーバSはγ/αβ、γ/λを用いて、以下の式よりγ/αβ、γ/λを計算し、全サーバSに送信する。

Figure 2022044737000013

Step 7: Server S 0 calculates γ / αβ and γ / λ from the following equation using γ j / α j β j and γ j / λ j , and sends them to all servers S i .
Figure 2022044737000013

手順8:全サーバSは以下の式を用いて、

Figure 2022044737000014


を計算する。
Figure 2022044737000015

Step 8: All servers Si use the following formula
Figure 2022044737000014


To calculate.
Figure 2022044737000015

手順9:k台のサーバSは乱数γをShamirの(k、n)閾値秘密分散法で全サーバSに分散する。 Step 9: The k servers S j distribute the random number γ j to all the servers S i by Shamir's (k, n) threshold secret sharing method.

手順10:サーバS(i=0、1、2、・・・、n-1)は秘密情報ab+cに関する分散情報として

Figure 2022044737000016

Figure 2022044737000017


を保持する。 Step 10: The server S i (i = 0, 1, 2, ..., N-1) is used as distributed information regarding the secret information ab + c.
Figure 2022044737000016

Figure 2022044737000017


To hold.

(復号処理)
手順a:復元者はK台のサーバよりk個の分散情報[ab+c]を収集する。
(Decryption process)
Procedure a: The restorer collects k pieces of distributed information [ab + c] j from K servers.

手順b:収集した分散情報の

Figure 2022044737000018


からγ(ab+c)、γ0、・・・、γk-1を復元し、乱数
Figure 2022044737000019


を計算する。 Step b: Of the collected distributed information
Figure 2022044737000018


Restore γ (ab + c), γ 0, ..., γ k-1 from
Figure 2022044737000019


To calculate.

手順c:復元した秘匿した秘密情報γ(ab+c)と乱数γを用いて、以下の式より秘密情報ab+cを復元する。
γ(ab+c)×γ-1=ab+c
Step c: The secret information ab + c is restored from the following equation using the restored secret information γ (ab + c) and the random number γ.
γ (ab + c) × γ -1 = ab + c

積和演算は3入力1出力の演算であるため、入力者は3人、出力者は1人想定される。ここで、攻撃者として復元者かつ1つの値の入力者である場合を考える。例えば、攻撃者が秘密情報bの入力者かつ復元者である場合、攻撃者は入力者が入力した秘密情報b、乱数β、演算結果を復元するための乱数γ、演算結果ab+cおよびk-1台のサーバから漏洩するαa、γ/αβ、γ/λの情報を持っている。攻撃者は乱数β、γ、γ/αβの情報を用いて、乱数αを求めることができる。攻撃者は求めた乱数αと演算途中に得られるαaより秘密情報aを計算することができる。それから、攻撃者は秘密情報a、bと演算結果ab+cを用いて、秘密情報cを知ることができる。これによって、攻撃者は入力者Bの入力情報、復元者の持つ情報およびk-1台のサーバから漏洩する情報を持っていれば、残りの入力者の情報が漏洩してしまうという問題がある。 Since the product-sum operation is a three-input, one-output operation, it is assumed that there are three inputters and one output person. Here, consider the case where the attacker is a restorer and an input person of one value. For example, when the attacker is the inputter and the restorer of the secret information b, the attacker has the secret information b, the random number β, the random number γ for restoring the calculation result, the calculation result ab + c and k-1 entered by the inputter. It has information on αa, γ / αβ, and γ / λ leaked from the server. The attacker can obtain the random number α by using the information of the random numbers β, γ, and γ / αβ. The attacker can calculate the secret information a from the obtained random number α and αa obtained during the calculation. Then, the attacker can know the secret information c by using the secret information a and b and the calculation result ab + c. As a result, if the attacker has the input information of the input person B, the information of the restorer, and the information leaked from the k-1 server, there is a problem that the information of the remaining input persons is leaked. ..

一般に、ビッグデータなどに対する秘匿計算においては、秘密情報の入力者は複数存在し、秘匿演算結果を復元する復元者も入力者と異なる、または入力者と一部同一であり、その利害は他者と対立すると想定する。それに対して、NNでは入力者はある問題を解こうとする1名または同一組織(以降、入力者と呼ぶ)であることが多く、入力者は多くの学習データを準備して、すべての秘密情報と演算結果を知る。ここでは、入力者がNNマシン及びNNマシンを監視できる攻撃者に対して入力および解こうとする問題を秘匿したい場合を想定する。秘密分散を用いる場合、最小n=2であるが、以降ではn=1をめざし、n=1、2の場合に対して有効な秘匿計算法を提案する。 Generally, in confidential calculation for big data, there are multiple inputters of confidential information, and the restorer who restores the confidential operation result is different from the input person or partly the same as the input person, and their interests are others. Suppose that it conflicts with. On the other hand, in NN, the input person is often one person or the same organization (hereinafter referred to as the input person) trying to solve a certain problem, and the input person prepares a lot of learning data and all secrets. Know information and calculation results. Here, it is assumed that the input person wants to conceal the problem of inputting and solving to the NN machine and the attacker who can monitor the NN machine. When secret sharing is used, the minimum is n = 2, but thereafter, we aim for n = 1 and propose an effective secret calculation method for the cases of n = 1 and 2.

まず、秘密分散を用いてNNマシンで問題を解こうとする場合、TUS方式以外では最小閾値であるn=k=2としたくても秘匿乗算が含まれれば、nに相当するNNマシンは3台以上必要とすることが知られている。また、TUS方式では安全な積和演算が実現できない。 First, when trying to solve a problem with an NN machine using secret sharing, even if you want to set n = k = 2, which is the minimum threshold value other than the TUS method, if secret multiplication is included, the number of NN machines corresponding to n is 3. It is known to require more than one. In addition, the TUS method cannot realize a safe product-sum calculation.

そこで、第1の実施の形態として、入力者及び復元者を同一の1名として、最小2台のNNマシンで秘匿計算を実現する場合を考える。この場合、入力者及び復元者が異なり利害が対立するとするTUS方式を上記状況に合わせて効率化することと、入力される情報に0が含まれないとは保証されないため、TUS方式では対応できなかった秘密情報に0を含む積和演算を実現することが課題となる。 Therefore, as the first embodiment, consider a case where the input person and the restorer are the same person and the concealment calculation is realized by a minimum of two NN machines. In this case, the TUS method can be used because it is not guaranteed that the input information will not contain 0 and that the TUS method, in which the input person and the restorer are different and the interests conflict with each other, will be streamlined according to the above situation. The challenge is to realize a product-sum operation that includes 0 in the secret information that did not exist.

四則演算は積和演算ab+cの組み合わせで実現できる。TUS方式では積和演算を安全に実行できなかったが、秘匿積和演算を安全に実現できれば、任意の四則演算はその組み合わせによって実現される。ただし、本実施の形態では一人の入力者が全秘密情報a、b、cを入力するとする。また、以下ではn台のNNマシンを例に説明するが、最小にしたい場合n=k=2とできる。また、前記TUS方式では秘密情報に直接乱数をかけて分散したため、秘匿乗算においてαaをスカラー量として復元したとき、秘密情報がa=0の場合、αa=0となるため秘密情報に0を含むことができなかった。また、秘匿加算ではαaを復元しないため、a=0であってもよいが、そのためαaは必ず秘密分散しておく必要があり、αを構成する乱数α0、α1、・・・、αk-1を含む全情報は全て秘密分散しておく必要があった。よって、その全秘密情報の分散及び復元に大きな手間が生じた。以下では秘密情報に直接乱数をかけるだけで分散せず、秘密情報aに1を加えることから、a=0であってもα(a+1)=0とならない。そのためα(a+1)を分散することなくそのまま配布することができる。また、入力者は全ての秘密を知るためαを直接使用できる。すなわち、α0、α1、・・・、αk-1などに分解する必要がなく、これによって秘密分散に関する手間を大きく効率化できる。 The four arithmetic operations can be realized by the combination of the product-sum operation ab + c. The TUS method could not safely execute the product-sum operation, but if the secret product-sum operation can be safely realized, any four arithmetic operations can be realized by the combination. However, in the present embodiment, it is assumed that one input person inputs all the confidential information a, b, and c. In the following, n NN machines will be described as an example, but if it is desired to minimize it, n = k = 2. Further, in the TUS method, since the secret information is directly multiplied by a random number and distributed, when αa is restored as a scalar quantity in the secret multiplication, if the secret information is a = 0, αa = 0, so the secret information includes 0. I couldn't. Further, since αa is not restored by the secret addition, a = 0 may be set, but αa must be secretly distributed, and the random numbers α0, α1, ..., Αk-1 constituting α must be secretly distributed. All information including was required to be secretly shared. Therefore, it takes a lot of time and effort to distribute and restore all the confidential information. In the following, the secret information is not dispersed only by directly applying a random number, and 1 is added to the secret information a. Therefore, even if a = 0, α (a + 1) = 0 does not hold. Therefore, α (a + 1) can be distributed as it is without being dispersed. Also, the input person can use α directly to know all the secrets. That is, it is not necessary to decompose it into α0, α1, ..., αk-1, and the like, which can greatly improve the efficiency of secret sharing.

以下において、秘密情報a、b、cは1を加えるためa、b、c<p-1であり、生成する乱数α、β、γ、δはα、β、γ、δ∈Z/pZである(ただし、乱数として0は選択されない)。また、秘密分散の処理も含めてすべての演算はpを法として行われる。また、以下の記号を定義する。また、値を公開するとは秘匿演算を行う全マシンにその値を送ることを意味する。 In the following, the secret information a, b, c is a, b, c <p-1 because 1 is added, and the generated random numbers α, β, γ, δ are α, β, γ, δ ∈ Z / pZ. Yes (however, 0 is not selected as a random number). In addition, all operations including secret sharing processing are performed using p as a method. In addition, the following symbols are defined. Also, publishing a value means sending the value to all machines that perform confidential operations.

(記号定義)
[a]iは、マシン14Niが保持する値aに対する分散値を示す。
(Symbol definition)
[A] i indicates a dispersion value with respect to the value a held by the machine 14Ni.

[分散1]
次に、図5を参照して、入力者装置12のCPU22における分散部42が実行する分散1を説明する。
[Dispersion 1]
Next, with reference to FIG. 5, the distribution 1 executed by the distribution unit 42 in the CPU 22 of the input user device 12 will be described.

ステップ52で、分散部42は、乱数α、β、γを生成する。なお、乱数α、β、γは、真正乱数でも疑似乱数でもよい。以下の各乱数も同様である。 In step 52, the dispersion unit 42 generates random numbers α, β, and γ. The random numbers α, β, and γ may be true random numbers or pseudo-random numbers. The same applies to each of the following random numbers.

ステップ54で、分散部42は、α(a+1)、β(b+1)、γ(c+1)を、次のように計算する。 In step 54, the dispersion unit 42 calculates α (a + 1), β (b + 1), and γ (c + 1) as follows.

α(a+1)=α×(a+1)
β(b+1)=β×(b+1)
γ(c+1)=γ×(c+1)
α (a + 1) = α × (a + 1)
β (b + 1) = β × (b + 1)
γ (c + 1) = γ × (c + 1)

ステップ56で、分散部42は、α(a+1)、β(b+1)、γ(c+1)を、全マシン14N0~14Nn-1に送信する。 In step 56, the dispersion unit 42 transmits α (a + 1), β (b + 1), and γ (c + 1) to all machines 14N0 to 14Nn-1.

ステップ58で、分散部42は、乱数δを生成し、ステップ60で、分散部42は、δ/αβ、δ/α、δ/β、δ/γ、δを計算し、ステップ62で、分散部42は、その秘密分散の分散値[δ/αβ]、[δ/α]、[δ/β]、[δ/γ]、[δ]を計算する(i=0,・・・,k-1)。 In step 58, the dispersion unit 42 generates a random number δ, in step 60, the dispersion unit 42 calculates δ / αβ, δ / α, δ / β, δ / γ, δ, and in step 62, the dispersion unit 42 generates a random number δ. Part 42 calculates the dispersion values [δ / αβ] i , [δ / α] i , [δ / β] i , [δ / γ] i , and [δ] i of the secret dispersion (i = 0, ..., k-1).

ステップ64で、分散部42は、分散値[δ/αβ]、[δ/α]、[δ/β]、[δ/γ]、[δ]を、対応するマシン14N0~14Nn-1中のマシン14Niに送信する。 In step 64, the dispersion unit 42 sets the dispersion values [δ / αβ] i , [δ / α] i , [δ / β] i , [δ / γ] i , and [δ] i to the corresponding machines 14N0 to It is transmitted to the machine 14Ni in 14Nn-1.

なお、入力者装置12のCPU22における分散部42はδを入力者装置12のメモリ28に保存する。 The distribution unit 42 in the CPU 22 of the input person device 12 stores δ in the memory 28 of the input person device 12.

[秘匿積和演算1]
次に、図6を参照して、マシン14N0~14Nn-1の予め定められたk台以上のマシン(マシン14Ni(i=0,・・・,k-1)のCPU22における秘匿積和演算部44が実行する秘匿積和演算1を説明する。
ステップ72で、秘匿積和演算部44は、以下を計算する。
[δ(ab+c+1)]=α(a+1)×β(b+1)×[δ/αβ]-α(a+1)×[δ/α]-β(b+1)×[δ/β]+γ(c+1)×[δ/γ]+[δ]
[Concealed multiply-accumulate operation 1]
Next, with reference to FIG. 6, the secret product-sum calculation unit in the CPU 22 of the machines 14N0 to 14Nn-1 having k or more predetermined machines (machine 14Ni (i = 0, ..., K-1)). The secret product-sum operation 1 executed by 44 will be described.
In step 72, the secret product-sum calculation unit 44 calculates the following.
[Δ (ab + c + 1)] i = α (a + 1) × β (b + 1) × [δ / αβ] i −α (a + 1) × [δ / α] i −β (b + 1) × [δ / β] i + γ ( c + 1) × [δ / γ] i + [δ] i

ステップ74で、秘匿積和演算部44は、予め定められたk台以上のマシンが協力してδ(ab+c+1)を復元する。 In step 74, the secret product-sum calculation unit 44 restores δ (ab + c + 1) in cooperation with a predetermined k or more machines.

ステップ76で、秘匿積和演算部44は、δ(ab+c+1)を各マシン14N0~14Nn-1のメモリ28に保存する。 In step 76, the secret product-sum calculation unit 44 stores δ (ab + c + 1) in the memory 28 of each machine 14N0 to 14Nn-1.

入力者が計算結果を得る場合、入力者装置12は、δ(ab+c+1)をどれかのマシンから得て、保存しているδで割って1を引くことによって積和演算結果であるab+cを得る。もしくは、[δ]を集めて復元し、δで割って1を引く。また、分散1では1を加えるが、加える値は1に限定されず、その他の値、例えば、2であれば下記を積和演算として計算すればよい。 When the input person obtains the calculation result, the input person device 12 obtains δ (ab + c + 1) from any machine, divides it by the stored δ, and subtracts 1, to obtain the product-sum operation result ab + c. .. Alternatively, collect [δ] i , restore it, divide by δ, and subtract 1. Further, 1 is added in the variance 1, but the value to be added is not limited to 1, and if it is another value, for example, 2, the following may be calculated as a product-sum operation.

[δ(ab+c+2)]=α(a+2)×β(b+2)×[δ/αβ]-2α(a+2)×[δ/α]-2β(b+2)×[δ/β]+γ(c+2)×[δ/γ]+4[δ] [Δ (ab + c + 2)] i = α (a + 2) × β (b + 2) × [δ / αβ] i -2α (a + 2) × [δ / α] i -2β (b + 2) × [δ / β] i + γ ( c + 2) × [δ / γ] i +4 [δ] i

その他の値は、例えば、-1、-2に相当するZ/pZ上の値でもよい。入力者装置12は、δ(ab+c-1)を保存しているδで割って、1(または2等)を加えることによって積和演算結果であるab+cを得るようにしてもよい。 Other values may be, for example, values on Z / pZ corresponding to -1 and -2. The input person device 12 may obtain ab + c, which is the result of the product-sum operation, by dividing δ (ab + c-1) by the stored δ and adding 1 (or 2 or the like).

また、秘匿積和演算1においてc=0とすれば秘匿乗算となり、a=1とすれば秘匿加算となる。また、図6のステップ72の+γ(c+1)を-γ(c+1)とすれば秘匿減算となる。秘匿積和演算1では公開されたα(a+1),β(b+1),γ(c+1)以外のステップ72における秘匿積和演算に必要な情報は分散され、入力者装置12以外知らないため、攻撃者は公開された情報以外知ることができず情報理論的に安全である。 Further, in the secret multiply-accumulate operation 1, if c = 0, it is a secret multiplication, and if a = 1, it is a secret addition. Further, if + γ (c + 1) in step 72 of FIG. 6 is set to −γ (c + 1), the secret subtraction is performed. In the secret product sum operation 1, the information required for the secret product sum operation in step 72 other than the disclosed α (a + 1), β (b + 1), and γ (c + 1) is distributed, and since only the input user device 12 knows, an attack. A person cannot know anything other than publicly available information and is information-theoretically safe.

[秘密分散1] [Secret sharing 1]

また、秘匿除算は以下のように行う。図7には、秘匿除算のための、入力者装置12のCPU22における分散部42が実行する秘密分散1のフローチャートが示されている。 In addition, confidential division is performed as follows. FIG. 7 shows a flowchart of the secret sharing 1 executed by the distribution unit 42 in the CPU 22 of the input person device 12 for the secret division.

ステップ82で、分散部42は、乱数α′を生成し、ステップ84で、分散部42は、α′/αを計算する。 In step 82, the dispersion unit 42 generates a random number α', and in step 84, the dispersion unit 42 calculates α'/ α.

ステップ86で、分散部42は、α′/αの秘密分散の分散値とα′の秘密分散値とを計算する。 In step 86, the distribution unit 42 calculates the distribution value of the secret distribution of α ′ / α and the secret distribution value of α ′.

ステップ88で、分散部42は、α′/αの秘密分散の分散値とα′の秘密分散値とを、対応するマシン14Niに送信する。 In step 88, the distribution unit 42 transmits the distribution value of the secret distribution of α'/ α and the secret distribution value of α'to the corresponding machine 14Ni.

[秘匿除算1]
図8には、マシン14N0~14Nn-1の各々のCPU22における秘匿除算部46が実行する秘匿除算1のフローチャートが示されている。
[Confidential division 1]
FIG. 8 shows a flowchart of the secret division 1 executed by the secret division unit 46 in each CPU 22 of the machines 14N0 to 14Nn-1.

ステップ92で、秘匿除算部46は、以下を計算する。
[α’a]=α(a+1)×[α′/α]-[α′]
In step 92, the secret division unit 46 calculates:
[Α'a] i = α (a + 1) × [α'/ α] i- [α'] i

ステップ94で、秘匿除算部46は、他のマシンと協力して[α′a]iを復元する。 In step 94, the secret division unit 46 cooperates with another machine to restore [α'a] i.

ステップ96で、秘匿除算部46は、α′a=0であるか否かを判断する。α′a=0であれば、秘匿除算1は終了する。 In step 96, the concealment division unit 46 determines whether or not α'a = 0. If α'a = 0, the concealment division 1 ends.

α′a=0でなければ、ステップ98で、秘匿除算部46は、1/α′aを計算する、 If α'a = 0, in step 98, the concealment division unit 46 calculates 1 / α'a.

ステップ100で、秘匿除算部46は、1/α′aをα(a+1)として秘匿積和演算1のために秘匿積和演算部44に送る。これにより、秘匿積和演算部44により、乗算を除算に変えた結果が得られる。ただし、秘匿積和演算1のステップ72における-β(b+1)×[δ/β]の計算は1/α′aに1が足されていないため省略される。 In step 100, the secret division unit 46 sends 1 / α'a as α (a + 1) to the secret product-sum calculation unit 44 for the secret product-sum operation 1. As a result, the secret product-sum calculation unit 44 obtains the result of changing multiplication to division. However, the calculation of −β (b + 1) × [δ / β] i in step 72 of the secret product sum operation 1 is omitted because 1 is not added to 1 / α'a.

上記秘匿除算においてα′a=0である場合、a=0であることが漏洩するが、除数が0の場合演算できず、それを検知して演算を中止する必要があるので、除算において除数が0であることがわかるのは問題ない。よって、入力者があらかじめ[α′a]を生成しておき、必要な時に入力してもよい。 In the above secret division, when α'a = 0, it leaks that a = 0, but when the divisor is 0, the calculation cannot be performed and it is necessary to detect it and stop the calculation. Therefore, the division is divided. It is no problem to know that is 0. Therefore, the input person may generate [α'a] i in advance and input it when necessary.

演算を連続する場合、復元したδ(ab+c+1)を、α(a+1)、β(b+1)、γ(c+1)の1つとし、同様の演算によって計算された他の秘匿演算結果をα(a+1)、β(b+1)、γ(c+1)の残りとすればよい。また、新たにδを生成し、α、β、γとなった乱数に対してδ/αβ、δ/α、δ/β、δ/γ、δを計算すればよい。 When the operations are continuous, the restored δ (ab + c + 1) is set as one of α (a + 1), β (b + 1), and γ (c + 1), and the other concealed operation results calculated by the same operation are α (a + 1). , Β (b + 1), γ (c + 1). Further, δ may be newly generated, and δ / αβ, δ / α, δ / β, δ / γ, and δ may be calculated for the random numbers that have become α, β, and γ.

また、以上によって入力を秘匿することができるが、四則演算は積和演算の組み合わせで表せることから、解きたい問題をダミーの積和演算(a=b=c=0とすれば加算用のダミー積和演算処理となり、a=b=0、c=1とすれば乗算用のダミー積和演算処理となる)を含めて定型の秘匿積和演算の繰り返しで表すことにより、解こうとする問題も秘匿することができる。 In addition, although the input can be concealed by the above, since the four rules operation can be expressed by a combination of product-sum operations, if the problem to be solved is a dummy product-sum operation (a = b = c = 0, a dummy for addition). It is a product-sum operation process, and if a = b = 0 and c = 1, it is a dummy product-sum operation process for multiplication). Can also be kept secret.

また、入力者装置12のCPU22における分散部42は、演算を繰り返す場合、分散1(図5参照)において、新たにδを生成し新たにα、β、γとなった乱数に対してδ/αβ、δ/α、δ/β、δ/γ、δを計算するが、演算手順が予め分かっている場合、予め計算しておくこともできる。 Further, when the calculation is repeated, the distribution unit 42 in the CPU 22 of the input user device 12 newly generates δ in the distribution 1 (see FIG. 5), and δ / for the newly generated random numbers α, β, and γ. αβ, δ / α, δ / β, δ / γ, and δ are calculated, but if the calculation procedure is known in advance, it can be calculated in advance.

ただし、この場合、分散部42が演算手順に応じて予め計算しておく必要があり、分散部42の負担が大きい可能性がある。よって、分散部42の負担を減らしたい場合、以下によって分散部42は乱数を生成して分散するだけでよく、以降の処理はマシン14N0~14Nn-1だけで実行できる。以下では、n=kとしてn台のマシンの中から演算を行うマシン14Niは定まっているとし、αを構成する乱数を直接マシンに送付する場合を説明する。分散1’と秘匿積和演算1’が連続して行われず、演算を行うマシン14Niが定まっていない場合は、α、β、γ(i=0、・・・、k-1)などをn台のマシンに秘密分散し、秘匿演算時に演算に参加するマシンがその中から対応する乱数のk個の分散値を集めて復元してもよい。 However, in this case, the dispersion unit 42 needs to calculate in advance according to the calculation procedure, and the burden on the distribution unit 42 may be large. Therefore, when it is desired to reduce the load on the distribution unit 42, the distribution unit 42 only needs to generate a random number and distribute it according to the following, and the subsequent processing can be executed only by the machines 14N0 to 14Nn-1. In the following, it is assumed that the machine 14Ni that performs the calculation from the n machines with n = k is fixed, and the case where the random numbers constituting α are directly sent to the machines will be described. If the variance 1'and the secret product sum operation 1'are not performed consecutively and the machine 14Ni to perform the operation is not determined, α i , β i , γ i (i = 0, ..., k-1). Etc. may be secretly distributed to n machines, and the machines participating in the operation at the time of the secret operation may collect and restore k distributed values of the corresponding random numbers.

[分散1′]
次に、上記の場合において入力者装置12のCPU22における分散部42が実行する分散1′を、図9を参照して説明する。
[Dispersion 1']
Next, the dispersion 1'executed by the dispersion unit 42 in the CPU 22 of the input user device 12 in the above case will be described with reference to FIG.

ステップ102で、分散部42は、k個の乱数の組α、α、・・・、αk-1及びβ、β、・・・、βk-1、γ、γ、・・・、γk-1を生成する。 In step 102, the dispersion unit 42 has a set of k random numbers α 0 , α 1 , ..., α k-1 and β 0 , β 1 , ..., β k-1 , γ 0 , γ 1 . , ..., γ k-1 is generated.

ステップ104で、分散部42は、以下を計算する。 In step 104, the dispersion unit 42 calculates the following.

まず、分散部42は、α=α×α×・・・×αk-1を計算し、α(a+1)=α×(a+1)を計算する。 First, the dispersion unit 42 calculates α = α 0 × α 1 × ... × α k-1 , and α (a + 1) = α × (a + 1).

分散部42は、β=β×β×・・・×βk-1を計算し、β(b+1)=β×(b+1)を計算する。 The dispersion unit 42 calculates β = β 0 × β 1 × ... × β k-1 , and β (b + 1) = β × (b + 1).

分散部42は、γ=γ×γ×・・・×γk-1を計算し、γ(c+1)=γ×(c+1)を計算する。 The dispersion unit 42 calculates γ = γ 0 × γ 1 × ... × γ k-1 , and calculates γ (c + 1) = γ × (c + 1).

ステップ106で、分散部42は、α(a+1)、β(b+1)、γ(c+1)を、全マシン14N0~14Nn-1に送信する。 In step 106, the dispersion unit 42 transmits α (a + 1), β (b + 1), and γ (c + 1) to all machines 14N0 to 14Nn-1.

ステップ110で、分散部42は、αi、βi、γi(i=0、・・・、k-1)を、対応するマシン14Niに送信する。 In step 110, the dispersion unit 42 transmits αi, βi, γi (i = 0, ..., K-1) to the corresponding machine 14Ni.

ステップ112で、分散部42は、k個の乱数の組ε、ε、・・・、εk-1及びφ、φ、・・・、φk-1、λ、λ、・・・、λk-1、η、η、・・・、ηk-1、μ、μ、・・・、μk-1を生成する。 In step 112, the dispersion unit 42 has a set of k random numbers ε 0 , ε 1 , ..., ε k-1 and φ 0 , φ 1 , ..., φ k-1 , λ 0 , λ 1 . , ..., λ k-1 , η 0 , η 1 , ..., η k-1 , μ 0 , μ 1 , ..., Μ k-1 .

ステップ114で、分散部42は、以下を計算する。 In step 114, the dispersion unit 42 calculates the following:

ε=ε×ε×・・・×εk-1
φ=φ×φ×・・・×φk-1
λ=λ×λ×・・・×λk-1
η=η×η×・・・×ηk-1
μ=μ×μ×・・・×μk-1
ステップ116で、分散部42は、ε、φ、λ、η、μの分散値[ε]、[φ]、[λ]、[η]、[μ]を計算する。
ε = ε 0 × ε 1 × ・ ・ ・ × ε k-1
φ = φ 0 × φ 1 × ・ ・ ・ × φ k-1
λ = λ 0 × λ 1 × ・ ・ ・ × λ k-1
η = η 0 × η 1 × ・ ・ ・ × η k-1
μ = μ 0 × μ 1 × ・ ・ ・ × μ k-1
In step 116, the dispersion unit 42 calculates the dispersion values [ε] i , [φ] i , [λ] i , [η] i , and [μ] i of ε, φ, λ, η, and μ.

ステップ118で、分散部42は、分散値[ε]、[φ]、[λ]、[η]、[μ]とε、φ、λ、η、μを、対応するマシンに送信する。 In step 118, the dispersion unit 42 has the dispersion values [ε] i , [φ] i , [λ] i , [η] i , [μ] i and ε i , φ i , λ i , η i , μ i . To the corresponding machine.

[秘匿積和演算1’]
次に、マシン14N0~14Nn-1の各々のCPU22における秘匿積和演算部44が実行する秘匿積和演算1’を、図10を参照して、説明する。
[Confidential multiply-accumulate operation 1']
Next, the secret product-sum calculation 1'executed by the secret product-sum calculation unit 44 in each of the CPUs 22 of the machines 14N0 to 14Nn-1 will be described with reference to FIG.

ステップ122で、秘匿積和演算部44は、乱数δを生成する。 In step 122, the secret product-sum calculation unit 44 generates a random number δ i .

ステップ124で、秘匿積和演算部44は、δ/αβε、δ/αφ、δ/βλi、δ/γη、δμを計算する。 In step 124, the concealed sum-of-sum calculation unit 44 has δ i / α i β i ε i , δ i / α i φ i , δ i / β i λ i, δ i / γ i η i , δ i μ i . To calculate.

ステップ126で、秘匿積和演算部44は、δ/αβε、δ/αφ、δ/βλi、δ/γη、δμを、予め定められたマシン14N0に送信する(n=k=2のとき、2台のマシン間で互いに交換してもよい)。 In step 126, the concealed sum-of-sum calculation unit 44 has δ i / α i β i ε i , δ i / α i φ i , δ i / β i λ i, δ i / γ i η i , δ i μ i . Is transmitted to a predetermined machine 14N0 (when n = k = 2, two machines may exchange each other).

図11に示すように、予め定められたマシン14N0のCPU22における秘匿積和演算部44は、ステップ142で、以下のδ/αβε、δ/αφ、δ/βλ、δ/γη、μを計算し、ステップ146で、ステップ142で当該計算された各値を、全マシンに送信する(ステップ126で互いに値を交換した場合、図11の処理は不要で、全マシンがδ/αβε、δ/αφ、δ/βλ、δ/γη、μを計算する。すなわち、ステップ128は「δ/αβε、δ/αφ、δ/βλ、δ/γη、μを計算」に変更される)。 As shown in FIG. 11, the secret product-sum calculation unit 44 in the CPU 22 of the predetermined machine 14N0 calculates the following δ / αβε, δ / αφ, δ / βλ, δ / γη, μ in step 142. , In step 146, each value calculated in step 142 is transmitted to all machines (when the values are exchanged with each other in step 126, the processing of FIG. 11 is unnecessary, and all machines have δ / αβε and δ / αφ. , Δ / βλ, δ / γη, μ. That is, step 128 is changed to “calculate δ / αβε, δ / αφ, δ / βλ, δ / γη, μ”).

Figure 2022044737000020
Figure 2022044737000020

Figure 2022044737000021
Figure 2022044737000021

なお、「φ」と

Figure 2022044737000022


とは同じである。 In addition, with "φ"
Figure 2022044737000022


Is the same as.

ステップ128で、秘匿積和演算部44は、予め定められたマシン14N0から送信されたδ/αβε、δ/αφ、δ/βλ、δ/γη、μを受信する。 In step 128, the secret product-sum calculation unit 44 receives δ / αβε, δ / αφ, δ / βλ, δ / γη, μ transmitted from the predetermined machine 14N0.

ステップ130で、秘匿積和演算部44は、以下を計算する。
[αβε(a+1)(b+1)]=α(a+1)×β(b+1)×[ε]
[αφ(a+1)]=α(a+1)×[φ]、[βλ(b+1)]=β(b+1)×[λ]、[γη(c+1)]=γ(c+1)×[η]
In step 130, the secret product-sum calculation unit 44 calculates the following.
[Αβε (a + 1) (b + 1)] i = α (a + 1) × β (b + 1) × [ε] i
[Αφ (a + 1)] i = α (a + 1) × [φ] i , [βλ (b + 1)] i = β (b + 1) × [λ] i , [γη (c + 1)] i = γ (c + 1) × [ η] i

ステップ132で、秘匿積和演算部44は、以下を計算する。
[δ(ab+c+1)]=δ/αβε×[αβε(a+1)(b+1)]-δ/αφ×[αφ(a+1)]-δ/βλ×[βλ(b+1)]+δ/γη×[γη(c+1)]+δ/μ×[μ]
In step 132, the secret product-sum calculation unit 44 calculates the following.
[Δ (ab + c + 1)] i = δ / αβε × [αβε (a + 1) (b + 1)] i -δ / αφ × [αφ (a + 1)] i -δ / βλ × [βλ (b + 1)] i + δ / γη × [Γη (c + 1)] i + δ / μ × [μ] i

分散1’におけるステップ112~118で生成され各マシンに送付される([ε]i、εi)、([φ]i、φi)、([λ]i、λi)、([η]i、ηi)、([μ]i、μi)は後述するように変換用乱数と呼ぶが、入力者装置が必ず生成する必要はなく、第3の実施の形態に示されるようにマシン間または他のマシンによって生成されてもよい。また、([ε]i、εi)、([φ]i、φi)、([λ]i、λi)、([η]i、ηi)、([μ]i、μi)は予め準備されているとしてもよい。秘匿積和演算1’では次のα,β,γに相当するδは演算中に分散され、新たなδも演算中にマシン14N0~14Nn-1が生成するため、演算途中で分散部42の処理がなくても演算継続できる。 Generated in steps 112 to 118 in dispersion 1'and sent to each machine ([ε] i , ε i ), ([φ] i , φ i ), ([λ] i , λ i ), ([η) ] i , η i ), ([μ] i , μ i ) are called conversion random numbers as described later, but they do not necessarily have to be generated by the inputter device, as shown in the third embodiment. It may be generated between machines or by other machines. Also, ([ε] i , ε i ), ([φ] i , φ i ), ([λ] i , λ i ), ([η] i , η i ), ([μ] i , μ i ). ) May be prepared in advance. In the secret product sum operation 1', the δ corresponding to the next α, β, γ is distributed during the operation, and the new δ is also generated by the machines 14N0 to 14Nn-1 during the operation. Calculation can be continued without processing.

近年、NNマシンを公開して自由に利用できるようにする動きが広がっている。このようなパブリックのNNマシンが2台あったとき、第1の実施の形態によって全NNマシンの情報が漏洩しない限り安全であり、準備するNNマシンも2台で済むという従来法では実現できない利点を実現できる。また、TUS方式では安全にできなかった積和演算の定型の組み合わせによって解いている問題も秘匿しながら、効率的に秘匿演算結果を得ることができる。また、入力者装置が復元者装置であり、すべての情報を知るため多くの処理を効率化できる。これによって、個人または同一組織が自分の秘密情報及び解こうとする問題をNNマシンまたは攻撃者に漏らすことなく、公開されたNNマシンを利用して望む秘匿演算を実行できるようになる。 In recent years, there has been a growing movement to make NN machines publicly available for free use. When there are two such public NN machines, it is safe as long as the information of all NN machines is not leaked according to the first embodiment, and only two NN machines are prepared, which is an advantage that cannot be realized by the conventional method. Can be realized. In addition, it is possible to efficiently obtain the concealed operation result while concealing the problem solved by the fixed combination of the product-sum operation that could not be safely performed by the TUS method. Further, the input person device is a restorer device, and many processes can be streamlined because all the information is known. This allows an individual or the same organization to use a publicly available NN machine to perform desired concealment operations without leaking their confidential information and the problem they are trying to solve to an NN machine or attacker.

<第2の実施の形態>
第2の実施の形態の秘密情報分散秘匿演算システムは、第1の実施の形態と同様の構成であるので、同様の構成部分には同一の符号を付して、その説明を省略する。ただし、入力者装置12は、演算支援装置でもある。
<Second embodiment>
Since the secret information distribution secret calculation system of the second embodiment has the same configuration as that of the first embodiment, the same components are designated by the same reference numerals and the description thereof will be omitted. However, the input person device 12 is also a calculation support device.

また、第2の実施の形態では、マシン14N0~14Nn-1の内の予め定められた1台のマシン14NNが秘匿演算を行う。 Further, in the second embodiment, one predetermined machine 14NN among the machines 14N0 to 14Nn-1 performs the concealment operation.

秘密分散法においては、秘密情報の分散数と演算を行うマシン数は同じである。本実施の形態においては、演算を行うマシン数と秘密分散における分散数が異なるため、演算を行うマシン数をN(本実施の形態では1)台とし、秘密分散に関する分散数と閾値はn及びkで表現する(n,kは任意の数を選択できるが、以下では説明を簡単にするため最小値のn=k=2とする)。 In the secret sharing method, the number of distributed secret information and the number of machines performing operations are the same. In this embodiment, since the number of machines performing operations and the number of variances in secret sharing are different, the number of machines performing operations is set to N (1 in this embodiment), and the number of variances and thresholds related to secret sharing are n and. It is expressed by k (n and k can be any number, but in the following, the minimum value is n = k = 2 for the sake of simplicity).

秘密分散を用いた秘匿演算を1台のマシン14NNでいかに安全に実行させるか、または演算を行うマシン数と秘密情報の分散数が異なる場合どのように秘匿演算を行うかは大きな課題であり、今までそれを実現した例はない。 How to safely execute a secret operation using secret sharing on one machine 14NN, or how to perform a secret operation when the number of machines to perform the operation and the number of distributed secret information are different is a big issue. No example has ever achieved that.

第2の実施の形態では、1台のNNマシンで秘密分散を安全に実行するために、詳細には後述するが、2つの乱数δ、δを導入し、分散値毎に異なる乱数をかけて演算を行うことが特徴である。 In the second embodiment, in order to safely execute secret sharing on one NN machine, two random numbers δ 0 and δ 1 are introduced, which will be described in detail later, and different random numbers are generated for each distribution value. It is characterized by performing calculations by multiplying.

次に、第2の実施の形態における入力者装置12のCPU22がプログラムを実行することで実現される機能について説明する。プログラムは、分散機能及び演算支援機能を備えている。CPU22がこれらの機能を有するプログラムを実行することで、CPU22は、図12に示すように、分散部42及び演算支援部150として機能する。 Next, the function realized by executing the program by the CPU 22 of the input person apparatus 12 in the second embodiment will be described. The program has a distributed function and a calculation support function. When the CPU 22 executes a program having these functions, the CPU 22 functions as a distribution unit 42 and a calculation support unit 150, as shown in FIG.

[分散2]
まず、図13を参照して、入力者装置12のCPU22における分散部42が実行する分散2を説明する。
[Dispersion 2]
First, with reference to FIG. 13, the distribution 2 executed by the distribution unit 42 in the CPU 22 of the input user device 12 will be described.

ステップ152で、分散部42は、乱数α、β、γを生成する。 In step 152, the dispersion unit 42 generates random numbers α, β, and γ.

ステップ154で、分散部42は、α(a+1)、β(b+1)、γ(c+1)を、以下のように計算する。
α(a+1)=α×(a+1)
β(b+1)=β×(b+1)
γ(c+1)=γ×(c+1)
In step 154, the dispersion unit 42 calculates α (a + 1), β (b + 1), and γ (c + 1) as follows.
α (a + 1) = α × (a + 1)
β (b + 1) = β × (b + 1)
γ (c + 1) = γ × (c + 1)

ステップ156で、分散部42は、α(a+1)、β(b+1)、γ(c+1)を1台のマシン14NNに送信する。 In step 156, the dispersion unit 42 transmits α (a + 1), β (b + 1), and γ (c + 1) to one machine 14NN.

ステップ158で、分散部42は、乱数δ、δを生成する。 In step 158, the dispersion unit 42 generates random numbers δ 0 and δ 1 .

ステップ160で、分散部42は、δ/αβ、δ/α、δ/β、δ/γの秘密分散の分散値を計算し、[δ/αβ]、[δ/α]、[δ/β]、[δ/γ]とδ/αβ]、[δ/α]、[δ/β]、[δ/γ]を得る。 In step 160, the dispersion unit 42 calculates the dispersion value of the secret dispersion of δ 0 / αβ, δ 0 / α, δ 0 / β, δ 0 / γ, and [δ 0 / αβ] 0 , [δ 0 /]. α] 0 , [δ 0 / β] 0 , [δ 0 / γ] 0 and δ 0 / αβ] 1 , [δ 0 / α] 1 , [δ 0 / β] 1 , [δ 0 / γ] 1 To get.

ステップ162で、分散部42は、以下を計算する(δ=δδ)。
[δ/αβ]=δ×[δ/αβ]
[δ/α]=δ×[δ/α]
[δ/β]=δ×[δ/β]
[δ/γ]=δ×[δ/γ]
ステップ164で、分散部42は、[δ/αβ]、[δ/α]、[δ/β]、[δ/γ]と[δ/αβ]、[δ/α]、[δ/β]、[δ/γ]をマシン14NNに送信する。
In step 162, the variance unit 42 calculates the following (δ = δ 0 δ 1 ).
[Δ / αβ] 1 = δ 1 × [δ 0 / αβ] 1
[Δ / α] 1 = δ 1 × [δ 0 / α] 1
[Δ / β] 1 = δ 1 × [δ 0 / β] 1
[Δ / γ] 1 = δ 1 × [δ 0 / γ] 1
In step 164, the dispersion unit 42 has [δ 0 / αβ] 0 , [δ 0 / α] 0 , [δ 0 / β] 0 , [δ 0 / γ] 0 and [δ / αβ] 1 , [δ]. / Α] 1 , [δ / β] 1 , [δ / γ] 1 are transmitted to the machine 14NN.

[積和演算2] [Multiply-accumulate calculation 2]

次に、マシン14NNのCPU22における秘匿積和演算部44が実行する積和演算2を、図14を参照して説明する。 Next, the product-sum calculation 2 executed by the secret product-sum calculation unit 44 in the CPU 22 of the machine 14NN will be described with reference to FIG.

ステップ172で、秘匿積和演算部44は、以下を計算する。
[δ(ab+c)]=α(a+1)×β(b+1)×[δ/αβ]-α(a+1)×[δ/α]-β(b+1)×[δ/β]+γ(c+1)×[δ/γ]
[δ(ab+c)]=α(a+1)×β(b+1)×[δ/αβ]-α(a+1)×[δ/α]-β(b+1)×[δ/β]+γ(c+1)×[δ/γ]
In step 172, the secret product-sum calculation unit 44 calculates the following.
0 (ab + c)] 0 = α (a + 1) × β (b + 1) × [δ 0 / αβ] 0 -α (a + 1) × [δ 0 / α] 0 -β (b + 1) × [δ 0 / β ] 0 + γ (c + 1) × [δ 0 / γ] 0
[Δ (ab + c)] 1 = α (a + 1) × β (b + 1) × [δ / αβ] 1 -α (a + 1) × [δ / α] 1 -β (b + 1) × [δ / β] 1 + γ ( c + 1) × [δ / γ] 1

[演算支援2] [Calculation support 2]

次に、演算を継続または終了する場合、入力者装置12のCPU22における演算支援部150が実行する演算支援2を、図15を参照して説明する。 Next, when the calculation is continued or terminated, the calculation support 2 executed by the calculation support unit 150 in the CPU 22 of the input person device 12 will be described with reference to FIG.

ステップ182で、演算支援部150は、[δ(ab+c)]と[δ(ab+c)]を収集する。 In step 182, the arithmetic support unit 150 collects [δ 0 (ab + c)] 0 and [δ (ab + c)] 1 .

ステップ184で、演算支援部150は、[δ(ab+c)]=δ[δ(ab+c)]を計算する。 In step 184, the calculation support unit 150 calculates [δ (ab + c)] 0 = δ 10 (ab + c)] 0 .

ステップ186で、演算支援部150は、δ(ab+c)を復元する。 In step 186, the arithmetic support unit 150 restores δ (ab + c).

ステップ187で、演算支援部150は、演算を継続するか否かを判断する。これは実行している演算処理がそこで終わるか、継続する処理があるかによって判断される、すなわち入力者が設定したプログラムによる。演算を継続する場合には、ステップ188で、演算支援部150は、δ(ab+c+1)=δ(ab+c)+δを計算する。 In step 187, the calculation support unit 150 determines whether or not to continue the calculation. This is determined by whether the arithmetic processing being executed ends there or there is processing to continue, that is, it depends on the program set by the input person. When continuing the calculation, in step 188, the calculation support unit 150 calculates δ (ab + c + 1) = δ (ab + c) + δ.

その後、ステップ190で、演算支援部150は、δ(ab+c+1)をマシン14NNに送信する。 Then, in step 190, the arithmetic support unit 150 transmits δ (ab + c + 1) to the machine 14NN.

演算を継続せず演算結果を得る場合は、ステップ192で、演算支援部150は、δ(ab+c)をδで割って、ab+cを計算する。 When the calculation result is obtained without continuing the calculation, in step 192, the calculation support unit 150 divides δ (ab + c) by δ to calculate ab + c.

ただし、加減算を継続する演算を行う場合、演算支援2を行わずに他の[δ(ab+c)],[δ(ab+c)]と係数を合わせて加減算を継続してもよい。また、乗除残においてもα(a+1)×β(b+1)のように直接繰り返すことができる。すなわち、加減算または乗除算の繰返しにおいては演算支援処理を行わなくてもよく、積和演算のような加減算と乗除算を組み合わせる場合に1度行えば良い。積和演算2において計算される[δ(ab+c)],[δ(ab+c)]は独立に定められた異なる乱数δ,δがかかっているため、k=2であっても正しく復元できず、情報理論的安全性が達成できる。 However, when performing an operation to continue addition / subtraction, the addition / subtraction may be continued by combining the coefficients with other [δ 0 (ab + c)] 0 and [δ (ab + c)] 1 without performing the operation support 2. Further, the multiplication / division balance can be directly repeated as α (a + 1) × β (b + 1). That is, it is not necessary to perform the calculation support process in the repetition of addition / subtraction or multiplication / division, and it may be performed once when the addition / subtraction and multiplication / division such as the product-sum operation are combined. Since [δ 0 (ab + c)] 0 and [δ (ab + c)] 1 calculated in the product-sum operation 2 are multiplied by different random numbers δ 0 and δ that are independently determined, they are correct even if k = 2. It cannot be restored and information-theoretic security can be achieved.

[演算支援2′] [Operation support 2']

次に、入力者装置12のCPU22における演算支援部150が実行する演算支援2′を、図16を参照して説明する。 Next, the calculation support 2'executed by the calculation support unit 150 in the CPU 22 of the input person device 12 will be described with reference to FIG.

ステップ202で、演算支援部150は、[δ(ab+c)]と[δ(ab+c)]を収集する。 In step 202, the calculation support unit 150 collects [δ 0 (ab + c)] 0 and [δ (ab + c)] 1 .

ステップ203で、演算支援部150は、以下を計算する。
[δ(ab+c+1)]=[δ(ab+c+1)]+[0]+δ
[δ(ab+c+1)]=[δ(ab+c+1)]+[0]+δ
ここで、[0]、[0]は定数項0の分散値であり、事前に準備できる。
In step 203, the calculation support unit 150 calculates the following.
0 (ab + c + 1)] 0 = [δ 0 (ab + c + 1)] 0 + [0] 0 + δ 0
[Δ (ab + c + 1)] 1 = [δ (ab + c + 1)] 1 + [0] 1 + δ
Here, [0] 0 and [0] 1 are variance values of the constant term 0 and can be prepared in advance.

ステップ204で、演算支援部150は、演算を継続するか否かを判断する。 In step 204, the calculation support unit 150 determines whether or not to continue the calculation.

演算を継続する場合には、ステップ205で計算結果をマシン14NNに送信する。 If the calculation is to be continued, the calculation result is transmitted to the machine 14NN in step 205.

演算を継続しない場合(ステップ204:N)、ステップ206で、演算支援部150は、[δ(ab+c+1)]にδを掛けて[δ(ab+c+1)]0を生成する。その後、ステップ207で、[δ(ab+c+1)]と[δ(ab+c+1)]からδ(ab+c+1)を復元してδで割って1を引きab+cを得る。 When the calculation is not continued (step 204: N), in step 206, the calculation support unit 150 multiplies [δ 0 (ab + c + 1)] 0 by δ 1 to generate [δ (ab + c + 1)] 0 . Then, in step 207, [δ (ab + c + 1)] 0 and [δ (ab + c + 1)] 1 are restored to δ (ab + c + 1), divided by δ, and 1 is subtracted to obtain ab + c.

このようにすれば、演算支援2′により最終の演算結果を得る場合以外、入力者装置12の復元の手間はなくなる。 By doing so, the trouble of restoring the input user device 12 is eliminated except when the final calculation result is obtained by the calculation support 2'.

演算を継続する場合、マシン14NNはδ(ab+c+1)を復元し、それをα(a+1)、β(b+1)、γ(c+1)の1つとすれば、演算が連続できることは明らかである。 If the machine 14NN restores δ (ab + c + 1) and makes it one of α (a + 1), β (b + 1), and γ (c + 1), it is clear that the operation can be continued.

また、秘匿積和演算においてc=0とすれば秘匿乗算となり、a=1とすれば秘匿加算となる。また、図14のステップ172で、ab+cの+を-とし、ab-cとする、すなわち+γ(c+1)を-γ(c+1)とすれば秘匿減算となる。 Further, in the secret multiply-accumulate operation, if c = 0, it is a secret multiplication, and if a = 1, it is a secret addition. Further, in step 172 of FIG. 14, if + of ab + c is set to − and ab−c is set, that is, + γ (c + 1) is set to −γ (c + 1), the secret subtraction is performed.

[秘匿除算2] [Confidential division 2]

次に、入力者装置12のCPU22における演算支援部150(分散部42でもよい)が実行する秘匿除算2を、図17を参照して説明する。なお、秘匿除算のための、入力者装置12のCPU22における分散部42は、図7のステップ82~86を実行する。 Next, the concealment division 2 executed by the calculation support unit 150 (may be the distribution unit 42) in the CPU 22 of the input person device 12 will be described with reference to FIG. The distribution unit 42 in the CPU 22 of the input person device 12 for the confidential division executes steps 82 to 86 in FIG. 7.

ステップ220で、演算支援部150は、乱数α″を生成する。 In step 220, the calculation support unit 150 generates a random number α ″.

ステップ222で、演算支援部150は、以下を計算する。
[α″/α]=(α″/α′)[α′/α]
[α″]=(α″/α′)[α′]
In step 222, the calculation support unit 150 calculates the following.
[Α ″ / α] 1 = (α ″ / α ′) [α ′ / α] 1
[Α ″] 1 = (α ″ / α ′) [α ′] 1

ステップ226で、秘匿除算部46は、[α′/α]、[α′]、[α″/α]、[α″]をマシン14NNに送信する。 In step 226, the concealment division unit 46 transmits [α'/ α] 0 , [α'] 0 , [α ″ / α] 1 , and [α ″] 1 to the machine 14NN.

マシン14NNは、以下を計算して、入力者装置12に送る。 The machine 14NN calculates the following and sends it to the input person device 12.

[α′a]=α(a+1)×[α′/α]-[α′]
[α″a]=α(a+1)×[α″/α]-[α″]
[Α'a] 0 = α (a + 1) × [α'/ α] 0- [α'] 0
[Α ″ a] 1 = α (a + 1) × [α ″ / α] 1- [α ″] 1

そこで、ステップ228で、演算支援部150は、[α′a]、[α″a]を受信する。 Therefore, in step 228, the calculation support unit 150 receives [α'a] 0 and [α ″ a] 1 .

ステップ230で、演算支援部150は、[α″a]=(α″/α′)[α′a]と[α″a]からα″aを復元する。 In step 230, the arithmetic support unit 150 restores α ″ a from [α ″ a] 0 = (α ″ / α ′) [α ′ a] 0 and [α ″ a] 1 .

ステップ232で、演算支援部150は、α″a=0であるか否かを判断する。α″a=0であれば、秘匿除算2を終了する。 In step 232, the calculation support unit 150 determines whether or not α ″ a = 0. If α ″ a = 0, the concealment division 2 is terminated.

α″a=0でなければ、ステップ234で、演算支援部150は、1/α″aを計算する。 If α "a = 0, the calculation support unit 150 calculates 1 / α" a in step 234.

ステップ236で、演算支援部150は、1/α″aをα(a+1)として秘匿積和演算2のために秘匿積和演算部44に送る。これにより、秘匿積和演算部44により、乗算を除算に変えた結果が得られる。ただし、1/α″aには1が加えられていないため、秘匿積和演算2のステップ172においてβ(b+1)を減算する計算は省略される。 In step 236, the calculation support unit 150 sends 1 / α ″ a as α (a + 1) to the secret product-sum calculation unit 44 for the secret product-sum calculation 2, whereby the secret product-sum calculation unit 44 multiplies. However, since 1 is not added to 1 / α ″ a, the calculation of subtracting β (b + 1) in step 172 of the secret multiply-accumulate operation 2 is omitted.

秘匿除算2において、図17のステップ222~228は事前に実行でき、ステップ230~236が秘匿除算における演算支援となる。また、ステップ228~236の処理を演算支援部が行わず、そのままマシン14NNが行ってもよい。 In the secret division 2, steps 222 to 228 in FIG. 17 can be executed in advance, and steps 230 to 236 provide arithmetic support in the secret division. Further, the processing of steps 228 to 236 may not be performed by the calculation support unit, but may be performed by the machine 14NN as it is.

また、分散2の図13のステップ156の後に、α、β、γを秘密分散する処理を加え、ステップ164の後に、α、β、γを復元する処理を加えれば、分散2のステップ152~156と、ステップ158~164との間の実行開始時間が大きく異なっても、入力者装置12のCPU22における分散部42は、秘密情報の秘匿に用いたα、β、γを記憶しておくことなく実行でき、ステップ158~164を事前に計算しておかなくても、演算支援として演算中に処理できる。 Further, if the process of secretly dispersing α, β, and γ is added after step 156 of FIG. 13 of the dispersion 2, and the process of restoring α, β, and γ is added after step 164, the process of dispersion 2 from step 152 to Even if the execution start times differ greatly between 156 and steps 158 to 164, the distribution unit 42 in the CPU 22 of the input user device 12 stores α, β, and γ used for concealing confidential information. It can be executed without any calculation, and even if steps 158 to 164 are not calculated in advance, it can be processed during the calculation as calculation support.

第2の実施の形態によってマシン14NNが1台しかなくても、入力者装置12の秘密情報及び解こうとする問題が漏洩しないようにすることができる。従来、1台のNNマシンしかないとき、秘密分散法は適用できず膨大な計算量を必要とする準同型暗号を用いるしかなかったが、第2の実施の形態によってこの問題を解決できる。 According to the second embodiment, even if there is only one machine 14NN, the confidential information of the input user device 12 and the problem to be solved can be prevented from being leaked. Conventionally, when there is only one NN machine, the secret sharing method cannot be applied and there is no choice but to use homomorphic encryption which requires a huge amount of calculation, but this problem can be solved by the second embodiment.

<第3の実施の形態>
次に、第3の実施の形態を説明する。第3の実施の形態の構成は、第1の実施の形態の構成と同様の部分を有するので、同様の部分には、同様の符号を付してその詳細な説明を省略する。
<Third embodiment>
Next, a third embodiment will be described. Since the configuration of the third embodiment has the same parts as the configuration of the first embodiment, the same parts are designated by the same reference numerals and detailed description thereof will be omitted.

図18に示すように、第3の実施の形態の秘密情報分散秘匿演算システムは、ネットワーク10を介して相互に接続された、複数、例えば、3台の入力者装置12A~12C、複数(N個)のマシン14N0~14Nn-1、及び復元者装置18を備えている。第3の実施の形態では、秘密情報a、b、cをそれぞれ有する3台の入力者装置12A~12Cを備え、下記復元者装置18を備えている点で、第1の実施の形態と異なる。 As shown in FIG. 18, the secret information distribution secret calculation system of the third embodiment is connected to each other via the network 10, for example, three inputter devices 12A to 12C, and a plurality (N). The machines 14N0 to 14Nn-1 and the restorer device 18 are provided. The third embodiment is different from the first embodiment in that it includes three inputter devices 12A to 12C having confidential information a, b, and c, respectively, and includes the following restorer device 18. ..

次に、第3の実施の形態における復元者装置18のCPU22がプログラムを実行することで実現される機能について説明する。プログラムは、分散値を集めて秘密情報の復元を行う復元機能を備えている。CPU22がこれらの機能を有するプログラムを実行することで、復元者装置18のCPU22は、図19に示すように、復元部242として機能する。 Next, the function realized by executing the program by the CPU 22 of the restorer device 18 in the third embodiment will be described. The program has a restore function that collects distributed values and restores confidential information. When the CPU 22 executes a program having these functions, the CPU 22 of the restorer device 18 functions as a restore unit 242 as shown in FIG.

次に、第3の実施の形態におけるマシン14N0~14Nn-1の各々のCPU22がプログラムを実行することで実現される機能について説明する。プログラムは、変換用乱数生成機能、秘匿積和演算機能及び秘匿除算機能を備えている。CPU22がこの機能を有するプログラムを実行することで、CPU22は、図20に示すように、変換用乱数生成部244、秘匿積和演算部44及び秘匿除算部46として機能する。 Next, the functions realized by each CPU 22 of the machines 14N0 to 14Nn-1 in the third embodiment will be described. The program has a random number generation function for conversion, a secret product-sum calculation function, and a secret division function. When the CPU 22 executes a program having this function, the CPU 22 functions as a conversion random number generation unit 244, a secret product-sum calculation unit 44, and a secret division unit 46, as shown in FIG.

マシン14N0~14Nn-1は更に、変換用乱数生成部として機能する。 The machines 14N0 to 14Nn-1 further function as a conversion random number generator.

第3の実施の形態では、複数(例えば、3台)の入力者装置12A~12Cと、結果を知る復元者装置18とが異なり、複数(最小はn=k=2)のマシン14N0~14Nn-1で秘匿計算する場合を考える。 In the third embodiment, the plurality of (for example, three) inputter devices 12A to 12C and the restorer device 18 that knows the result are different, and the plurality of machines (minimum is n = k = 2) 14N0 to 14Nn. Consider the case of confidential calculation with -1.

TUS方式では秘匿加算と秘匿乗算は単独では安全であるが、積和演算のように乗算と加算を組み合わせると、入力者の秘密情報が漏洩するなど安全性に問題があることが知られている。そこで、そのような場合においても安全に秘匿計算が実現できるように変換用乱数の生成が課題となる。なお、第1、2の実施の形態では同一の入出力者装置を仮定するため、TUS方式で積和演算を行っても利害が対立する複数の入出力者が存在しないので、上記問題が発生しなかった。 In the TUS method, secret addition and secret multiplication are safe by themselves, but it is known that if multiplication and addition are combined like a product-sum operation, there is a safety problem such as leakage of confidential information of the input person. .. Therefore, even in such a case, the generation of a random number for conversion becomes an issue so that the confidential calculation can be safely realized. Since the same input / output person device is assumed in the first and second embodiments, the above problem occurs because there are no plurality of input / output persons having conflicting interests even if the product-sum operation is performed by the TUS method. I didn't.

ここでは、秘密情報a,b,cをもつ入力者装置(以下、第3の実施の形態では、「入力者」ともいう)が異なり、復元者装置(以下、第3の実施の形態では、「復元者」ともいう)も異なり、利害が対立する場合を考える。また、マシンは複数(最小はN=n=k=2)あるとする。また、他の入力者や復元者から自らの秘密情報を守るために以下の変換用乱数を生成する。この変換用乱数は複数の信頼できない入力者によって秘密に生成する方法は知られていなかった。例えば、第1の実施の形態の分散1’の図9のステップ112~118のように一台の入力者が生成する方法は知られているが、この入力者は変換用乱数の値を知る。よって、入力者装置が攻撃者であれば、それを用いた秘匿計算は安全ではなく、第1の実施の形態のように入力者装置は信頼できなければならない。それに対して信頼できる入力者がいない場合でも、変換用乱数が特定されない生成方法を以下に示す。 Here, the input person device having the confidential information a, b, and c (hereinafter, also referred to as “input person” in the third embodiment) is different, and the restorer device (hereinafter, also referred to as “input person” in the third embodiment) is different. (Also called "restorer") is also different, and consider the case where interests conflict. Further, it is assumed that there are a plurality of machines (minimum is N = n = k = 2). It also generates the following conversion random numbers to protect its confidential information from other inputters and restorers. It was not known how to secretly generate this conversion random number by multiple untrusted inputters. For example, as in steps 112 to 118 of FIG. 9 of the variance 1'of the first embodiment, a method of generating by one input person is known, but this input person knows the value of the random number for conversion. .. Therefore, if the input person device is an attacker, the confidential calculation using it is not safe, and the input person device must be reliable as in the first embodiment. On the other hand, the generation method in which the conversion random number is not specified even if there is no reliable input person is shown below.

下記文献3、文献4において、2k次の多項式を用いて生成された分散値をk次の多項式に対する分散値に変換する方法が示されている。例えば文献3の手法では、ある規則によって生成された定数を要素とする下記行列Aを用いて、2k次の多項式に対する分散値ベクトルW=(W0,W1,・・・,W2k-1)に対してR=W・Aを計算し、k次の多項式に対する分散値ベクトルR=(R0,R1,・・・,R2k-1)に変換することができる(文献4の手法もほぼ同様の処理で実現できる)。ただし、文献3、4の手法はマシン台数NがN≧2k-1の場合に有効であるが、本実施例ではN<2k-1、すなわち実際のマシン台数NがN≧2k-1を満たさない場合を扱う。 Documents 3 and 4 below show a method of converting a variance value generated by using a polynomial of order 2k into a variance value for a polynomial of order k. For example, in the method of Document 3, the following matrix A whose elements are constants generated by a certain rule is used for the variance vector W = (W0, W1, ..., W2k-1) for a polynomial of order 2k. R = WA can be calculated and converted into a variance vector R = (R0, R1, ..., R2k-1) for a polynomial of degree k (the method of Document 4 is also processed in almost the same manner). realizable). However, the methods of Documents 3 and 4 are effective when the number of machines N is N ≧ 2k-1, but in this embodiment N <2k-1, that is, the actual number of machines N satisfies N ≧ 2k-1. Handle the case that does not exist.

Figure 2022044737000023
Figure 2022044737000023

文献3:M. Ben-Or, S. Goldwasser, and A. Wigderson, “Completeness theorems for non-cryptographic fault-tolerant distributed computation,” STOC ’88, 1988, pp. 1-10, ACM Press. Reference 3: M. Ben-Or, S. Goldwasser, and A. Wigderson, “Completeness theorems for non-cryptographic fault-tolerant distributed computation,” STOC '88, 1988, pp. 1-10, ACM Press.

文献4:Rosario Gennaro, Michael O. Rabin, and Tal Rabin, “Simplified VSS and fast-track multiparty computations with applications to threshold cryptography,” In Brian A. Coen and Yehuda Afek, editors, PODC, 1998, pp. 101-111, ACM. Reference 4: Rosario Gennaro, Michael O. Rabin, and Tal Rabin, “Simplified VSS and fast-track multiparty computations with applications to threshold cryptography,” In Brian A. Coen and Yehuda Afek, editors, PODC, 1998, pp. 101- 111, ACM.

以下に、u人の入力者による変換用乱数生成部がN=t=k台のマシンの変換用乱数生成部244を用いて変換用乱数を生成する場合を、図21を参照して説明する。以下において、入力者は入力者装置を意味し、Sはマシン14Niとすることができる。ただし、この入力者及びSなどは後述の秘匿積和演算を行う各装置と同じである必要はなく、他の秘匿演算システムによって生成されてもよいし、そのシステム自体を変換用乱数生成システムとして専用化してもよい。 Hereinafter, a case where the conversion random number generation unit by u inputters generates the conversion random number using the conversion random number generation unit 244 of N = t = k machines will be described with reference to FIG. 21. .. In the following, the input person means an input person device, and Si can be a machine 14Ni. However, this input person, Si , etc. do not have to be the same as each device that performs the secret product-sum calculation described later, and may be generated by another secret calculation system, or the system itself may be a random number generation system for conversion. It may be dedicated as.

[変換用乱数生成3] [Random number generation for conversion 3]

(処理3(1))
入力者i(i=0,・・・,u-1)は乱数λi,0,・・・,λi,t-1,αi,0,・・・,αi,t-1,βi,0,・・・,βi,t-1,・・・,γi,0,・・・,γi,t-1を生成し、以下を計算する。
λ=λ,0×・・・×λi,t-1,α=αi,0×・・・×αi,t-1,β=βi,0×・・・×βi,t-1,・・・,γ=γi,0×・・・×γi,t-1
(Process 3 (1))
The input person i (i = 0, ..., U-1) is a random number λ i, 0 , ..., λ i, t-1 , α i, 0 , ..., α i, t-1 , Generate β i, 0 , ..., β i, t-1 , ..., γ i, 0 , ..., γ i, t-1 , and calculate the following.
λ i = λ , 0 × ・ ・ ・ × λ i, t-1 , α i = α i, 0 × ・ ・ ・ × α i, t-1 , β i = β i, 0 × ・ ・ ・ × β i, t-1 , ..., γ i = γ i, 0 × ... × γ i, t-1

(処理3(2))
入力者iはk=t、n=ut(厳密にはn=u(k-1)+1以上)として、λをShamir法を用いて秘密分散し、[λ,・・・,[λut-1を得る。
(Process 3 (2))
The input person i is k = t, n = ut (strictly speaking, n = u (k-1) + 1 or more), and λ i is secretly distributed using the Shamir method, and [λ i ] 0 , ..., [Λ i ] Obtain ut-1 .

(処理3(3)) (Process 3 (3))

入力者iは生成した分散値をt毎に分割して以下のように乱数を乗じる。
[αλ=α×[λ,・・・,[αλ2t-1=α×[λ2t-1
[βλ2t=β×[λ2t,・・・,[βλ3t-1=β×[λ3t-1

[γλ(u-1)t=γ×[λ(u-1)t,・・・,[γλut-1=γ×[λut-1
The input person i divides the generated variance value every t and multiplies it by a random number as follows.
i λ i ] t = α i × [λ i ] t , ..., [α i λ i ] 2t-1 = α i × [λ i ] 2t-1 ,
i λ i ] 2t = β i × [λ i ] 2t , ..., [β i λ i ] 3t-1 = β i × [λ i ] 3t-1 ,
:
i λ i ] (u-1) t = γ i × [λ i ] (u-1) t , ..., [γ i λ i ] ut-1 = γ i × [λ i ] ut- 1

(処理3(4))
入力者iは[λ,[αλj+t,[βλj+2t,・・・,[γλj+(u-1)t,λi,j,αi,j,βi,j,・・・,γi,jをマシン14NjであるマシンS(j=0,・・・,t-1)に送る。
(Process 3 (4))
The input person i is [λ i ] j , [α i λ i ] j + t , [β i λ i ] j + 2t , ..., [γ i λ i ] j + (u-1) t , λ i, j , α. i, j , β i, j , ..., γ i, j are sent to machine S j (j = 0, ..., t-1) which is machine 14Nj.

(処理3(5))
(i=0,・・・,t-1)は以下を計算する。ただし、下記乗算は分散値同士の乗算であるので、乗算結果はk=u(t-1)+1、n=utとしたShamir法による分散値と等価である。
[λλ・・・λ=[λ×[λ×・・・×[λu-1
(Process 3 (5))
S i (i = 0, ..., T-1) calculates the following. However, since the following multiplication is a multiplication of variance values, the multiplication result is equivalent to the variance value by the Shamir method in which k = u (t-1) + 1 and n = ut.
0 λ 1 ... λ 3 ] i = [λ 0 ] i × [λ 1 ] i × ・ ・ ・ × [λ u-1 ] i ,

[αα・・・αλλ・・・λi+t=[αλi+t×[αλi+t×・・・×[αu-1λu-1i+t
[ββ・・・βλλ・・・λi+2t=[βλi+2t×[βλi+2t×・・・×[βu-1λu-1i+2t

[γγ・・・γλλ・・・λi+(u-1)t=[γλi+(u-1)t×[γλi+(u-1)t×・・・×[γu-1λu-1i+(u-1)t
0 α 1 ... α 3 λ 0 λ 1 ... λ 3 ] i + t = [α 0 λ 0 ] i + t × [α 1 λ 1 ] i + t × ・ ・ ・ × [α u-1 λ u- 1 ] i + t
0 β 1 ... β 3 λ 0 λ 1 ... λ 3 ] i + 2t = [β 0 λ 0 ] i + 2t × [β 1 λ 1 ] i + 2t × ・ ・ ・ × [β u-1 λ u- 1 ] i + 2t
:
[Gamma 0 γ 1 ... γ 3 λ 0 λ 1 ... λ 3 ] i + (u-1) t = [γ 0 λ 0 ] i + (u-1) t × [γ 1 λ 1 ] i + ( u-1) t × ・ ・ ・ × [γ u-1 λ u-1 ] i + (u-1) t

(処理3(6))
(i=0,・・・,t-1)はα0,i×α1,i・・・×αu-1,i,β0,i×β1,i・・・×βu-1,i,・・・,γ0,i×γ1,i・・・×γu-1,iを計算し、Sに送る。また、λ′=λ0,i×λ1,i×λ2,i×・・・×λu-1,iを計算する。
(Process 3 (6))
S i (i = 0, ..., t-1) is α 0, i × α 1, i ... × α u-1, i , β 0, i × β 1, i ... × β u-1, i , ..., γ 0, i × γ 1, i ... × γ u-1, i is calculated and sent to S 0 . In addition, λ'i = λ 0, i × λ 1, i × λ 2, i × ... × λ u-1, i is calculated.

(処理3(7)) (Process 3 (7))

は送られてきた全てのα0,i×α1,i・・・×αu-1,iをかけあわせαα・・・αu-1を、β0,i×β1,i・・・×βu-1をかけあわせββ・・・βu-1を、・・・、γ0,i×γ1,i・・・×γu-1,iをかけあわせγγ・・・γu-1を計算し、全マシンに送る。 S 0 is the product of all the sent α 0, i × α 1, i ... × α u-1, i , and α 0 α 1 ... α u-1 , β 0, i × β. 1, i ... × β u-1 is multiplied to β 0 β 1 ... β u-1 , ..., γ 0, i × γ 1, i ... × γ u-1, i Multiply γ 0 γ 1 ... γ u-1 is calculated and sent to all machines.

(処理3(8)) (Process 3 (8))

(i=0,・・・,t-1)は以下を計算する。ただし、λ=λλ・・・λu-1とする。
[λ]i+t=[αα・・・αλλ・・・λi+t/(αα・・・α
[λ]i+2t=[ββ・・・βλλ・・・λi+2t/(ββ・・・β

[λ]i+(u-1)t=[γγ・・・γλλ・・・λi+(u-1)t/(γγ・・・γ
S i (i = 0, ..., T-1) calculates the following. However, λ = λ 0 λ 1 ... λ u-1 .
[Λ] i + t = [α 0 α 1 ... α 3 λ 0 λ 1 ... λ 3 ] i + t / (α 0 α 1 ... α 3 )
[Λ] i + 2t = [β 0 β 1 ... β 3 λ 0 λ 1 ... λ 3 ] i + 2t / (β 0 β 1 ... β 3 )
:
[Λ] i + (u-1) t = [γ 0 γ 1 ... γ 3 λ 0 λ 1 ... λ 3 ] i + (u-1) t / (γ 0 γ 1 ... γ 3 )

(処理3(9))
(i=0,・・・,t-1)は0をk=u(t-1)/2+1,n=ut/2としてShamir法を用いて秘密分散した[0を計算し、以下を計算してRi,j,Ri,j+t,・・・,Ri,j+u‘tをSに送る。ただし、h=0,・・・,2t-1,u’=u/4であり、ai,hは行列Aの各要素である。
i,h=ai,h×[λ]+ai+t,h×[λ]i+t+ai+2t,h×[λ]i+2t+・・・+a(u-1)t,h×[λ]i+(u-1)t+[0
(Process 3 (9))
S i (i = 0, ..., T-1) calculates [0 i ] j secretly distributed using the Shamir method with 0 as k = u (t-1) / 2 + 1, n = ut / 2. Then, the following is calculated and R i, j , R i, j + t , ..., R i, j + u't are sent to S j . However, h = 0, ..., 2t-1, u'= u / 4, and ai and h are elements of the matrix A.
R i, h = ai, h × [λ] i + a i + t, h × [λ] i + t + a i + 2t, h × [λ] i + 2t + ... + a i + (u-1) t, h × [λ ] I + (u-1) t + [0 i ] h ,

(処理3(10)) (Process 3 (10))

(i=0,・・・,t-1)は以下を計算して得られた[λ],・・・,[λ]i+u”-1を次数が半減された(u”+1,ut/2)における分散値とする。ただし、u”=u(t-1)/2
[λ]=R0,i+・・・+Rt-1,i,[λ]i+u′=R0,i+u′+・・・+Rt-1,i+u′,,・・・,
S i (i = 0, ..., T-1) is obtained by calculating the following [λ] i , ..., [λ] i + u "-1 and the order is halved (u" + 1 , Ut / 2). However, u "= u (t-1) / 2
[Λ] i = R 0, i + ... + R t-1, i , [λ] i + u' = R 0, i + u' + ... + R t-1, i + u' ,,,

(処理3(11)) (Process 3 (11))

(i=0,・・・,t-1)は必要な次数になるまで(9)(10)の次数変換処理を繰り返し、変換用乱数{λ}=([λ],λ′)を生成する。 S i (i = 0, ..., T-1) repeats the order conversion process of (9) and (10) until the required order is reached, and the conversion random number {λ} i = ([λ] i , λ). ′ I ) is generated.

上記は記述が複雑であるので、u=4,N=t=k=2の場合を以下に具体的に記す(図22も参照)。 Since the above description is complicated, the case of u = 4, N = t = k = 2 will be specifically described below (see also FIG. 22).

[変換用乱数生成3’]
(処理3′(1))
入力者0は乱数λ0,0,λ0,1,α0,0,α0,1,β0,0,β0,1,γ0,0,γ0,1を生成し、以下を計算する。
λ=λ0,0×λ0,1,α=α0,0×α0,1,β=β0,0×β0,1,γ=γ0,0×γ0,1
[Random number generation for conversion 3']
(Processing 3'(1))
Input person 0 generates random numbers λ 0 , 0, λ 0 , 1, α 0 , 0, α 0, 1 , β 0 , 0, β 0, 1 , γ 0 , 0, γ 0 , 1, and the following calculate.
λ 0 = λ 0, 0 × λ 0 , 1, α 0 = α 0, 0 × α 0 , 1, β 0 = β 0, 0 × β 0 , 1, γ 0 = γ 0, 0 × γ 0, 1

(処理3′(2))
入力者0はλを(2,8)Shamir法で秘密分散し、[λ,・・・,[λを得る。
(Processing 3'(2))
The input person 0 secretly shares λ 0 by the (2,8) Shamir method to obtain [λ 0 ] 0 , ..., [λ 0 ] 7 .

(処理3′(3))
入力者0は以下を計算する。
[αλ=α×[λ,[αλ=α×[λ
[βλ=β×[λ,[βλ=β×[λ
[γλ=γ×[λ,[γλ=γ×[λ
(Processing 3'(3))
Input person 0 calculates the following.
0 λ 0 ] 2 = α 0 × [λ 0 ] 2 , [α 0 λ 0 ] 3 = α 0 × [λ 0 ] 3
0 λ 0 ] 4 = β 0 × [λ 0 ] 4 , [β 0 λ 0 ] 5 = β 0 × [λ 0 ] 5
0 λ 0 ] 6 = γ 0 × [λ 0 ] 6 , [γ 0 λ 0 ] 7 = γ 0 × [λ 0 ] 7

(処理3′(4))
入力者0は[λ,[αλ,[βλ,[γλ,λ0,0,α0,0,β0,0,γ0,0をマシンSに送る。
(Processing 3'(4))
Input person 0 is [λ 0 ] 0 , [α 0 λ 0 ] 2 , [β 0 λ 0 ] 4 , [γ 0 λ 0 ] 6 , λ 0 , 0, α 0 , 0, β 0 , 0, γ Send 0,0 to machine S0 .

(処理3′(5))
入力者0は[λ,[αλ,[βλ,[γλ,λ0,1,α0,1,β0,1,γ0,1をマシンSに送る。
(Processing 3'(5))
Input person 0 is [λ 0 ] 1 , [α 0 λ 0 ] 3 , [β 0 λ 0 ] 5 , [γ 0 λ 0 ] 7 , λ 0 , 1, α 0 , 1, β 0 , 1, γ Send 0,1 to machine S1.

(処理3′(6))
入力者1は乱数λ1,0,λ1,1,α1,0,α1,1,β1,0,β1,1,γ1,0,γ1,1を生成し、以下を計算する。
λ=λ1,0×λ1,1,α=α1,0×α1,1,β=β1,0×β1,1,γ=γ1,0×γ1,1
(Processing 3'(6))
Input person 1 generates random numbers λ 1,0 , λ 1,1 , α 1,0 , α 1,1 , β 1,0 , β 1,1 , γ 1,0 , γ 1 , 1, and the following calculate.
λ 1 = λ 1,0 × λ 1,1 , α 1 = α 1,0 × α 1,1 , β 1 = β 1,0 × β 1,1 , γ 1 = γ 1,0 × γ 1, 1

(処理3′(7))
入力者1はλを(2,8)Shamir法で秘密分散し、[λ,・・・,[λを得る。
(Processing 3'(7))
The input person 1 secretly shares λ 1 by the (2,8) Shamir method to obtain [λ 1 ] 0 , ..., [λ 1 ] 7 .

(処理3′(8))
入力者1は以下を計算する。
[αλ=α×[λ,[αλ=α×[λ
[βλ=β×[λ,[βλ=β×[λ
[γλ=γ×[λ,[γλ=γ×[λ
(Processing 3'(8))
Input person 1 calculates the following.
1 λ 1 ] 2 = α 1 × [λ 1 ] 2 , [α 1 λ 1 ] 3 = α 1 × [λ 1 ] 3
1 λ 1 ] 4 = β 1 × [λ 1 ] 4 , [β 1 λ 1 ] 5 = β 1 × [λ 1 ] 5
1 λ 1 ] 6 = γ 1 × [λ 1 ] 6 , [γ 1 λ 1 ] 7 = γ 1 × [λ 1 ] 7

(処理3′(9))
入力者1は[λ,[αλ,[βλ,[γλ,λ1,0,α1,0,β1,0,γ1,0をマシンSに送る。
(Processing 3'(9))
Inputter 1 is [λ 1 ] 0 , [α 1 λ 1 ] 2 , [β 1 λ 1 ] 4 , [γ 1 λ 1 ] 6 , λ 1, 0 , α 1, 0 , β 1, 0 , γ Sends 1,0 to machine S0.

(処理3′(10))
入力者1は[λ,[αλ,[βλ,[γλ,λ1,1,α1,1,β1,1,γ1,1をマシンSに送る。
(Processing 3'(10))
Inputter 1 is [λ 1 ] 1 , [α 1 λ 1 ] 3 , [β 1 λ 1 ] 5 , [γ 1 λ 1 ] 7 , λ 1 , 1, α 1 , 1, β 1 , 1, γ. Sends 1 and 1 to machine S0.

(処理3′(12))
入力者2,3も同様の処理を行う。よって、Sは以下を保持する。
(Processing 3'(12))
Inputters 2 and 3 also perform the same processing. Therefore, S 0 holds the following.

[λ,[λ,[λ,[λ,[αλ,[αλ,[αλ,[αλ,[βλ,[βλ,[βλ,[βλ,[γλ,[γλ,[γλ,[γλ
λ0,0,λ1,0λ2,0λ3,0,α0,0,α1,0,α2,0,α3,0,β0,0,β1,0,β2,0,β3,0,γ0,0,γ1,0,γ2,0,γ3,0
0 ] 0 , [λ 1 ] 0 , [λ 2 ] 0 , [λ 3 ] 0 , [α 0 λ 0 ] 2 , [α 1 λ 1 ] 2 , [α 2 λ 2 ] 2 , [α 3 λ 3 ] 2 , [β 0 λ 0 ] 4 , [β 1 λ 1 ] 4 , [β 2 λ 2 ] 4 , [β 3 λ 3 ] 4 , [γ 0 λ 0 ] 6 , [γ 1 λ 1 ] 6 , [γ 2 λ 2 ] 6 , [γ 3 λ 3 ] 6 ,
λ 0 , 0, λ 1, 0 λ 2, 0 λ 3 , 0, α 0 , 0, α 1 , 0, α 2 , 0, α 3 , 0, β 0 , 0, β 1, 0 , β 2 , 0 , β 3,0 , γ 0 , 0, γ 1,0 , γ 2,0 , γ 3,0

(処理3′(13))
は以下を保持する。
(Processing 3'(13))
S 1 holds the following.

[λ,[λ,[λ,[λ,[αλ,[αλ,[αλ,[αλ,[βλ,[βλ,[βλ,[βλ,[γλ,[γλ,[γλ,[γλ
λ0,1,λ1,1λ2,1λ3,1,α0,1,α1,1,α2,1,α3,1,β0,1,β1,1,β2,1,β3,1,γ0,1,γ1,1,γ2,1,γ3,1
0 ] 1 , [λ 1 ] 1 , [λ 2 ] 1 , [λ 3 ] 1 , [α 0 λ 0 ] 3 , [α 1 λ 1 ] 3 , [α 2 λ 2 ] 3 , [α 3 λ 3 ] 3 , [β 0 λ 0 ] 5 , [β 1 λ 1 ] 5 , [β 2 λ 2 ] 5 , [β 3 λ 3 ] 5 , [γ 0 λ 0 ] 7 , [γ 1 λ 1 ] 7 , [γ 2 λ 2 ] 7 , [γ 3 λ 3 ] 7 ,
λ 0 , 1, λ 1, 1 λ 2 , 1 λ 3 , 1, α 0 , 1, α 1, 1 , α 2 , 1, α 3 , 1, β 0 , 1, β 1, 1 , β 2 , 1 , β 3,1 , γ 0 , 1, γ 1 , 1, γ 2 , 1, γ 3, 1

(処理3′(14))
は以下を計算する。乗算結果は(5,8)Shamir法による分散値と等価である。
[λλλλ=[λ×[λ×[λ×[λ
[ααααλλλλ=[αλ×[αλ×[αλ×[αλ
[ββββλλλλ=[βλ×[βλ×[βλ×[βλ
[γγγγλλλλ=[γλ×[γλ×[γλ×[γλ
(Processing 3'(14))
S 0 calculates the following. The multiplication result is equivalent to the variance value by the (5,8) Shamir method.
0 λ 1 λ 2 λ 3 ] 0 = [λ 0 ] 0 × [λ 1 ] 0 × [λ 2 ] 0 × [λ 3 ] 0 ,
0 α 1 α 2 α 3 λ 0 λ 1 λ 2 λ 3 ] 2 = [α 0 λ 0 ] 2 × [α 1 λ 1 ] 2 × [α 2 λ 2 ] 2 × [α 3 λ 3 ] 2
0 β 1 β 2 β 3 λ 0 λ 1 λ 2 λ 3 ] 4 = [β 0 λ 0 ] 4 × [β 1 λ 1 ] 4 × [β 2 λ 2 ] 4 × [β 3 λ 3 ] 4
[Gamma 0 γ 1 γ 2 γ 3 λ 0 λ 1 λ 2 λ 3 ] 6 = [γ 0 λ 0 ] 6 × [γ 1 λ 1 ] 6 × [γ 2 λ 2 ] 6 × [γ 3 λ 3 ] 6

(処理3′(15)) (Processing 3'(15))

は以下を計算する。乗算結果は(5,8)Shamir法による分散値と等価である。
[λλλλ=[λ×[λ×[λ×[λ
[ααααλλλλ=[αλ×[αλ×[αλ×[αλ
[ββββλλλλ=[βλ×[βλ×[βλ×[βλ
[γγγγλλλλ=[γλ×[γλ×[γλ×[γλ
S 1 calculates the following. The multiplication result is equivalent to the variance value by the (5,8) Shamir method.
0 λ 1 λ 2 λ 3 ] 1 = [λ 0 ] 1 × [λ 1 ] 1 × [λ 2 ] 1 × [λ 3 ] 1 ,
0 α 1 α 2 α 3 λ 0 λ 1 λ 2 λ 3 ] 3 = [α 0 λ 0 ] 3 × [α 1 λ 1 ] 3 × [α 2 λ 2 ] 3 × [α 3 λ 3 ] 3
0 β 1 β 2 β 3 λ 0 λ 1 λ 2 λ 3 ] 5 = [β 0 λ 0 ] 5 × [β 1 λ 1 ] 5 × [β 2 λ 2 ] 5 × [β 3 λ 3 ] 5
[Gamma 0 γ 1 γ 2 γ 3 λ 0 λ 1 λ 2 λ 3 ] 7 = [γ 0 λ 0 ] 7 × [γ 1 λ 1 ] 7 × [γ 2 λ 2 ] 7 × [γ 3 λ 3 ] 7

(処理3′(16)) (Processing 3'(16))

はα0,0×α1,0×α2,0×α3,0,β0,0×β1,0×β2,0×β3,0,γ0,0×γ1,0×γ2,0×γ3,0を計算する。また、λ′=λ0,0×λ1,0×λ2,0×λ3,0を計算する。 S 0 is α 0,0 × α 1,0 × α 2,0 × α 3,0 , β 0,0 × β 1,0 × β 2,0 × β 3,0 , γ 0,0 × γ 1 , 0 × γ 2,0 × γ 3,0 is calculated. In addition, λ ′ 0 = λ 0,0 × λ 1,0 × λ 2,0 × λ 3,0 is calculated.

(処理3′(17)) (Processing 3'(17))

はα0,1×α1,1×α2,1×α3,1,β0,1×β1,1×β2,1×β3,1,γ0,1×γ1,1×γ2,1×γ3,1を計算してSに送る。また、λ′=λ0,1×λ1,1×λ2,1×λ3,1を計算する。 S 1 is α 0,1 × α 1,1 × α 2,1 × α 3,1 , β 0,1 × β 1,1 × β 2,1 × β 3,1 , γ 0,1 × γ 1 , 1 × γ 2,1 × γ 3,1 is calculated and sent to S0 . Also, λ ′ 1 = λ 0,1 × λ 1,1 × λ 2,1 × λ 3,1 is calculated.

(処理3′(18))
は以下を計算し、Sに送る。
(Processing 3'(18))
S 0 calculates the following and sends it to S 1 .

αααα=α0,0α1,0α2,0α3,0×α0,1α1,1α2,1α3,1
ββββ=β0,0β1,0β2,0β3,0×β0,1β1,1β2,1β3,1
γγγγ=γ0,0γ1,0γ2,0γ3,0×γ0,1γ1,1γ2,1γ3,1
(処理3′(19))
は以下を計算する。ただし、λ=λλλλとする。

Figure 2022044737000024

α 0 α 1 α 2 α 3 = α 0,0 α 1,0 α 2,0 α 3,0 × α 0,1 α 1,1 α 2,1 α 3,1 ,
β 0 β 1 β 2 β 3 = β 0,0 β 1,0 β 2,0 β 3,0 × β 0,1 β 1,1 β 2,1 β 3,1 ,
γ 0 γ 1 γ 2 γ 3 = γ 0,0 γ 1,0 γ 2,0 γ 3,0 × γ 0,1 γ 1,1 γ 2,1 γ 3,1
(Processing 3'(19))
S 0 calculates the following. However, λ = λ 0 λ 1 λ 2 λ 3
Figure 2022044737000024

(処理3′(20))
S1は以下を計算する。

Figure 2022044737000025

(Processing 3'(20))
S1 calculates the following.
Figure 2022044737000025

(処理3′(21)) (Processing 3'(21))

は0を(3,4)Shamir法で秘密分散した[0を計算し、以下を計算してR0,1とR0,3をSに送る。ただし、ai,jは4次式を2次式に変換する行列Aにおける位置i,jにおける要素である。
0,0=a0,0×[λ]+a2,0×[λ]+a4,0×[λ]+a6,0×[λ]+[0
0,1=a0,1×[λ]+a2,1×[λ]+a4,1×[λ]+a6,1×[λ]+[0
0,2=a0,2×[λ]+a2,2×[λ]+a4,2×[λ]+a6,2×[λ]+[0
0,3=a0,3×[λ]+a2,3×[λ]+a4,3×[λ]+a6,3×[λ]+[0
For S 0 , 0 is secretly distributed by the (3,4) Shamir method [0 0 ] j is calculated, and the following is calculated to send R 0 , 1 and R 0 , 3 to S 1 . However, ai and j are elements at positions i and j in the matrix A that transforms a quaternary expression into a quadratic expression.
R 0,0 = a 0,0 × [λ] 0 + a 2,0 × [λ] 2 + a 4,0 × [λ] 4 + a 6,0 × [λ] 6 + [0 0 ] 0 ,
R 0,1 = a 0,1 x [λ] 0 + a 2,1 x [λ] 2 + a 4,1 x [λ] 4 + a 6,1 x [λ] 6 + [0 0 ] 1 ,
R 0,2 = a 0,2 x [λ] 0 + a 2,2 x [λ] 2 + a 4,2 x [λ] 4 + a 6,2 x [λ] 6 + [0 0 ] 2 ,
R 0,3 = a 0,3 x [λ] 0 + a 2,3 x [λ] 2 + a 4,3 x [λ] 4 + a 6,3 x [λ] 6 + [0 0 ] 3 ,

(処理3′(22)) (Processing 3'(22))

は0を(3,4)Shamir法で秘密分散した[0を計算し、以下を計算してR1,0とR1,2をSに送る。 S 1 calculates [0 1 ] j in which 0 is secretly distributed by the (3, 4) Shamir method, calculates the following, and sends R 1, 0 and R 1, 2 to S 0 .

1,0=a1,0×[λ]+a3,0×[λ]+a5,0×[λ]+a7,0×[λ]+[0
1,1=a1,1×[λ]+a3,1×[λ]+a5,1×[λ]+a7,1×[λ]+[0
1,2=a1,2×[λ]+a3,2×[λ]+a5,2×[λ]+a7,2×[λ]+[0
1,3=a1,3×[λ]+a3,3×[λ]+a5,3×[λ]+a7,3×[λ]+[0
R 1,0 = a 1,0 x [λ] 1 + a 3,0 x [λ] 3 + a 5,0 x [λ] 5 + a 7,0 x [λ] 7 + [0 1 ] 0 ,
R 1,1 = a 1,1 x [λ] 1 + a 3,1 x [λ] 3 + a 5,1 x [λ] 5 + a 7,1 x [λ] 7 + [0 1 ] 1 ,
R 1,2 = a 1,2 x [λ] 1 + a 3,2 x [λ] 3 + a 5,2 x [λ] 5 + a 7,2 x [λ] 7 + [0 1 ] 2 ,
R 1,3 = a 1,3 x [λ] 1 + a 3,3 x [λ] 3 + a 5,3 x [λ] 5 + a 7,3 x [λ] 7 + [0 1 ] 3 ,

(処理3′(23))
は[λ]=R0,0+R1,0,[λ]=R0,2+R1,2を(3,4)Shamir法における分散値とし、(2,2)Shamir法で秘密分散した[0を計算して以下を計算する。SはR′0,1をSに送る。ただし、a′i,jは2次式を1次式に変換する行列A’における位置i,jにおける要素である。
R′0,0=a′0,0×[λ]+a′2,0×[λ]+[0
R′0,1=a′0,1×[λ]+a′2,1×[λ]+[0
(Processing 3'(23))
For S 0 , [λ] 0 = R 0,0 + R 1,0 , [λ] 2 = R 0,2 + R 1 , 2 are the dispersion values in the (3,4) Shamir method, and the (2,2) Shamir method. Calculate the secret-shared [0 0 ] j in and calculate the following. S 0 sends R'0,1 to S1. However, a'i, j are elements at positions i , j in the matrix A'that transforms a quadratic expression into a linear expression.
R'0,0 = a'0,0 x [λ] 0 + a'2,0 x [λ] 2 + [0 0 ] 0 ,
R ′ 0,1 = a ′ 0,1 × [λ] 0 + a ′ 2,1 × [λ] 2 + [0 0 ] 1 ,

(処理3′(24)) (Processing 3'(24))

は[λ]=R0,1+R1,1,[λ]=R0,3+R1,3を(3,4)Shamir法における分散値とし、(2,2)Shamir法で秘密分散した[0を計算して以下を計算する。SはR′1,0をSに送る。
R′1,0=a′1,0×[λ]+a′3,0×[λ]+[0
R′1,1=a′1,1×[λ]+a′3,1×[λ]+[0
For S 1 , [λ] 1 = R 0,1 + R 1,1 , [λ] 3 = R 0,3 + R 1,3 are used as the variance values in the (3,4) Shamir method, and the (2,2) Shamir method is used. Calculate the secret-shared [0 0 ] j in and calculate the following. S 1 sends R'1,0 to S0 .
R'1,0 = a'1,0 x [λ] 1 + a'3,0 x [λ] 3 + [0 1 ] 0 ,
R'1,1 = a'1,1 x [λ] 1 + a'3,1 x [λ] 3 + [0 1 ] 1 ,

(処理3′(25))
は[λ]=R′0,0+R′1,0を(2,2)Shamir法における分散値とし、{λ}=([λ],λ′)を変換用乱数とする。
(Processing 3'(25))
For S 0 , [λ] 0 = R'0,0 + R'1,0 is the dispersion value in the (2,2) Shamir method, and {λ} 0 = ([λ] 0 , λ'0 ) is a random number for conversion. And.

(処理3′(26))
は[λ]=R′0,1+R′1,1を(2,2)Shamir法における分散値とし、{λ}=([λ],λ′)を変換用乱数とする。
(Processing 3'(26))
For S 1 , [λ] 1 = R'0,1 + R'1,1 is the variance value in the (2,2) Shamir method, and {λ} 1 = ([λ] 1 , λ'1) is a random number for conversion. And.

変換用乱数生成3においてu=2,k=2であれば、(7)においてααが復元されるが、入力者が1台のマシンを観察できれば、それから自らが入力した例えばαでααを割った結果がもう一人の入力者のαであることがわかる。よって、もう一人の入力者の秘密情報はαで秘匿されているが、それが解除され2つの分散値が判るため秘密情報λ1が復元され漏洩する。入力者が3人以上であればαααが復元されるが、残りの乱数を分解できないため各入力者の秘密情報は漏洩しない。ただし、u=2としたい場合、一人の入力者が入力者0,1となり、もう一人の入力者が入力者2,3となって4つの秘密情報及び乱数を用いれば、例えば入力者0,1は入力者2,3のααを分解できないので、個別の秘密情報は漏洩しない。よって、マシンS0,S1が各々入力者0,1及び入力者2,3となれば変換用乱数をマシン間で自動的に生成できる。逆に、u>4であっても、(1)~(4)の処理を各入力者が行うことにより実現できることは明らかである。また例えば、u=3,t=4,k=3として入力者i(i=0,1,2)は秘密情報λiを(3,12)Shamir法で秘密分散し、3つの分散値を乗算して(7,12)Shamir法に対応する乗算結果を得るが、1回次数変換処理を行えば(4,6)Shamir法に対応する変換用乱数を得ることができる。この(4,6)Shamir法に対応する変換用乱数を各マシンが1つずつ持つことにより(4,4)Shamir法に対応する変換用乱数とできる。よって、演算を行うマシン数tとkは同じとする必要はなく、最終的に設定されるkも当初のkと変えることができる。また、(9)~(10)の次数変換を行う回数もu,t,kの設定及び最終的に必要な分散式の次数により異なる。変換用乱数生成3’においてu=4とする理由は上記よりu>2である必要があり、u=3,t=k=2であれば乗算結果はu(k-1)より3次式となり、半減できないためである。 If u = 2 and k = 2 in the random number generation 3 for conversion, α 0 α 1 is restored in (7), but if the input person can observe one machine, then he / she inputs, for example, α 0 . It can be seen that the result of dividing α 0 α 1 by is the α 1 of the other input person. Therefore, the secret information of the other input person is concealed by α 1 , but since it is released and the two distributed values are known, the secret information λ 1 is restored and leaked. If there are three or more input users, α 0 α 1 α 2 is restored, but since the remaining random numbers cannot be decomposed, the confidential information of each input person is not leaked. However, if u = 2, one input person becomes the input person 0, 1, and the other input person becomes the input person 2, 3, and if four secret information and random numbers are used, for example, the input person 0, Since 1 cannot decompose α 2 α 3 of the input persons 2 and 3, individual confidential information is not leaked. Therefore, if the machines S0 and S1 are inputters 0 and 1 and inputters 2 and 3, respectively, conversion random numbers can be automatically generated between the machines. On the contrary, even if u> 4, it is clear that the processing of (1) to (4) can be realized by each input person. Further, for example, the input person i (i = 0, 1, 2) secretly shares the secret information λi by the (3,12) Shamir method with u = 3, t = 4, k = 3, and multiplies the three distribution values. Then, the multiplication result corresponding to the (7,12) Shamir method is obtained, but if the order conversion process is performed once, the conversion random number corresponding to the (4,6) Shamir method can be obtained. Since each machine has one conversion random number corresponding to the (4,6) Shamir method, it can be a conversion random number corresponding to the (4,4) Shamir method. Therefore, it is not necessary that the number of machines t and k for performing the calculation are the same, and the finally set k can be changed from the initial k. Further, the number of times of order conversion of (9) to (10) also differs depending on the setting of u, t, k and the order of the finally required distributed expression. The reason for setting u = 4 in the random number generation 3'for conversion needs to be u> 2 from the above, and if u = 3 and t = k = 2, the multiplication result is a cubic expression from u (k-1). This is because it cannot be halved.

また、変換用乱数生成の安全性としては以下が言える。変換用乱数生成3’において、例えばSは一つの秘密情報λについて[λ,[αλ,[βλ,[γλと4個の分散値を持つが、これらは異なる乱数がかけられているため、k=2であっても解くことができない。また、処理3′(19)、(20)において乱数が外され、例えばSは[λ],[λ],[λ],[λ]の4個の分散値を持つが、この分散値は分散値同士の乗算結果であるので、5個集めなければ解けない。また、(23)において次数が半減され3個集めればよくなるが、Sは[λ],[λ]の2個しか持たない。最後に、もう1度次数削減され、2個集めればよくなるが、Sは[λ]しか持たないので解けない。よって、この手法によって生成された変換用乱数の値は二人以上の入力者が結託しないならば、誰も知らない値となる。よって、この手法は情報理論的安全性をもつといえる。ただし上記において、行列AとA’の積をA”としてその各要素をかけて2回の次数変換を1回にしてもよい。
In addition, the following can be said as the security of random number generation for conversion. In the conversion random number generation 3', for example, S 0 is [λ 3 ] 0 , [α 3 λ 3 ] 2 , [β 3 λ 3 ] 4 , [γ 3 λ 3 ] 6 and 4 for one secret information λ 3 . Although they have individual dispersion values, they cannot be solved even if k = 2 because they are multiplied by different random numbers. Further, the random numbers are removed in the processes 3'(19) and (20), for example, S 0 has four variance values of [λ] 0 , [λ] 2 , [λ] 4 , and [λ] 6 . Since this variance value is the result of multiplication of the variance values, it cannot be solved unless five are collected. Further, in (23), the order is halved and it is sufficient to collect three pieces, but S 0 has only two pieces, [λ] 0 and [λ] 2 . Finally, the order is reduced once more, and it is sufficient to collect two, but S 0 has only [λ] 0 , so it cannot be solved. Therefore, the value of the conversion random number generated by this method is a value that no one knows unless two or more inputrs collude. Therefore, it can be said that this method has information-theoretic security. However, in the above, the product of the matrices A and A'may be set as A', and each element thereof may be multiplied to perform two degree conversions once.

以下では上記変換用乱数生成処理によって、変換用乱数

Figure 2022044737000026


が事前に準備されているとする。 In the following, the conversion random number is generated by the above conversion random number generation process.
Figure 2022044737000026


Is prepared in advance.

[分散3] [Dispersion 3]

次に、入力者装置12AのCPU22における分散部42が実行する分散3を、図23を参照して説明する。 Next, the distribution 3 executed by the distribution unit 42 in the CPU 22 of the input user device 12A will be described with reference to FIG. 23.

ステップ402で、分散部42は、k個の乱数α、α、・・・、αk-1を生成する。 In step 402, the dispersion unit 42 generates k random numbers α 0 , α 1 , ..., α k-1 .

ステップ404で、分散部42は、以下を計算する。 In step 404, the variance unit 42 calculates:

α(a+1)=α×(a+1)(α=αα・・・αk-1α (a + 1) = α × (a + 1) (α = α 0 α 1 ... α k-1 )

ステップ406で、分散部42は、α=αα・・・αk-1を構成する乱数αiを対応するマシン14Niに送信する。 In step 406, the dispersion unit 42 transmits the random numbers αi constituting α = α 0 α 1 ... α k-1 to the corresponding machine 14Ni.

入力者装置12B、12Cも、図23と同様の処理を実行する。例えば、ステップ404では、入力者装置12B、12Cの分散部42はそれぞれ、β、β、・・・、βk-1、γ、γ、・・・、γk-1を生成し、以下を計算する。 The input user devices 12B and 12C also execute the same processing as in FIG. 23. For example, in step 404, the dispersion portions 42 of the input user devices 12B and 12C generate β 0 , β 1 , ..., β k-1 , γ 0 , γ 1 , ..., γ k-1 , respectively. And calculate the following.

β(b+1)=β×b(β=ββ・・・βk-1β (b + 1) = β × b (β = β 0 β 1 ... β k-1 )

γ(c+1)=γ×c(γ=γγ・・・γk-1γ (c + 1) = γ × c (γ = γ 0 γ 1 ... γ k-1 )

α、β、γ(i=0、・・・、k-1)を秘密分散して、必要時にマシンSがα、β、γを復元してもよい。 α i , β i , γ i (i = 0, ..., K-1) may be secretly distributed, and the machine S i may restore α i , β i , γ i when necessary.

[秘匿積和演算3] [Concealed multiply-accumulate calculation 3]

次に、マシン14N0~14Nn-1のCPU22における秘匿積和演算部44が実行する秘匿積和演算3を、図24を参照して説明する。 Next, the secret product-sum calculation 3 executed by the secret product-sum calculation unit 44 in the CPU 22 of the machines 14N0 to 14Nn-1 will be described with reference to FIG. 24.

ステップ412で、秘匿積和演算部44は、以下を計算する。
[φωαβ(a+1)(b+1)]=α(a+1)×β(b+1)×[φ]
[εηα(a+1)]=α(a+1)×[ε]
[λμβ(b+1)]=β(b+1)×[μ]
[τργ(c+1)]=γ(c+1)×[ρ]
In step 412, the secret product-sum calculation unit 44 calculates the following.
[Φωαβ (a + 1) (b + 1)] i = α (a + 1) × β (b + 1) × [φ] i
[Εηα (a + 1)] i = α (a + 1) × [ε] i
[Λμβ (b + 1)] i = β (b + 1) × [μ] i
[Τργ (c + 1)] i = γ (c + 1) × [ρ] i

ステップ414で、秘匿積和演算部44は、乱数δj∈Z/pZを生成する。 In step 414, the secret product-sum calculation unit 44 generates a random number δj ∈ Z / pZ.

ステップ416で、秘匿積和演算部44は、以下を計算し、ステップ418で、秘匿積和演算部44は、以下の計算値を、予め定めたマシン14N0に送信する。

Figure 2022044737000027

In step 416, the secret product-sum calculation unit 44 calculates the following, and in step 418, the secret product-sum calculation unit 44 transmits the following calculated values to the predetermined machine 14N0.
Figure 2022044737000027

予め定めたマシン14N0は、以下を計算し、他のマシンに送信するので、ステップ420で、秘匿積和演算部44は、以下の計算値を受信する。

Figure 2022044737000028

Since the predetermined machine 14N0 calculates the following and transmits it to another machine, in step 420, the secret product-sum calculation unit 44 receives the following calculated value.
Figure 2022044737000028

ステップ422で、秘匿積和演算部44は、以下を計算する。 In step 422, the secret product-sum calculation unit 44 calculates the following.

Figure 2022044737000029
Figure 2022044737000029

ステップ424で、秘匿積和演算部44は、δを保存する。 In step 424, the secret product-sum calculation unit 44 saves δ j .

δをSが秘密分散して、権限をもつ復元者が必要時に復元してもよい。 δ j may be secret-shared by S j and restored by an authorized restorer when necessary.

演算結果を得るには復元者装置18の復元部242は[δ(ab+c)]をk個集めて復元し、保存しているδを集めて、復元したδで割れば積和演算結果であるab+cが得られる。 To obtain the calculation result, the restoration unit 242 of the restorer device 18 collects and restores k [δ (ab + c)] i , collects the stored δ i , and divides by the restored δ to obtain the product-sum operation result. Ab + c is obtained.

また、秘匿積和演算においてc=0とすれば秘匿乗算となり、a=1とすれば秘匿加算となる。また、ステップ422のγ(c+1)の前の+を-とすれば秘匿減算となる。 Further, in the secret multiply-accumulate operation, if c = 0, it is a secret multiplication, and if a = 1, it is a secret addition. Further, if the + before γ (c + 1) in step 422 is set to −, the secret subtraction is performed.

(秘匿除算3) (Confidential division 3)

また、秘匿除算は以下のように行う。ただし、分散3においてマシン14Niは徐算用の分散値[α′a]とα′を構成するα′をもつとする。 In addition, confidential division is performed as follows. However, in the dispersion 3, the machine 14Ni has a dispersion value [α'a] i for gradual calculation and α'i constituting α'.

予め定められたマシン14N0は、k台のサーバより[α′a]iを収集し、一時的にα′aを復元する。このとき、α′a=0となった場合、除数が0であるので演算を中止する。α′a=0でない場合、マシン14N0は、1/α′aを計算し、他のマシンに送信する。その後、積和演算3において1/α′aをα(a+1)として扱うことによって、秘匿除算が実行される。ただし、1/α′aは1が加えられていないので、ステップ422でμβ(b+1)を削減する処理は省略される。 The predetermined machine 14N0 collects [α'a] i from k servers and temporarily restores α'a. At this time, when α'a = 0, the divisor is 0, so the calculation is stopped. If α'a = 0, the machine 14N0 calculates 1 / α'a and sends it to another machine. After that, the concealment division is executed by treating 1 / α'a as α (a + 1) in the product-sum operation 3. However, since 1 is not added to 1 / α'a, the process of reducing μβ (b + 1) in step 422 is omitted.

演算の連続及び演算の秘匿も第1の実施の形態と同様に実現できることは明らかである。また、変換用乱数は誰も知らないので、攻撃者となる1入力の入力者と復元者が結託した場合でも秘密情報にかけられた乱数を知ることができず、TUS方式の問題点で説明した解析ができなくなり、利害関係が対立する入出力者間であっても情報理論的に安全な秘匿積和演算が実現される。 It is clear that the continuity of the operations and the concealment of the operations can be realized in the same manner as in the first embodiment. In addition, since no one knows the random number for conversion, even if the one-input inputter who is the attacker and the restorer collude, it is not possible to know the random number applied to the secret information, which was explained in the problem of the TUS method. It becomes impossible to analyze, and information-theoretic safe secret product-sum operation is realized even between input / output parties with conflicting interests.

第3の実施の形態によって多くの人または組織が協力してNNマシンの学習などを実現することができる。これによって、各入力者装置の入力情報は他の入力者装置及び復元者装置に漏えいせず、その学習結果などを公開できるようになる。また、第3の実施の形態は最小n=k=2台のNNマシンによって実現でき、少なくとも1つのNNマシンの情報が漏えいしなければ安全であり、一般のビッグデータへの応用が可能である。よって、第3の実施の形態によって、TUS方式で実現できなかった積和演算を含むどのような場合にも適用できる安全な秘匿演算を実現する。 According to the third embodiment, many people or organizations can cooperate to realize learning of the NN machine. As a result, the input information of each input person device is not leaked to other input person devices and the restorer device, and the learning result and the like can be disclosed. Further, the third embodiment can be realized by a minimum of n = k = 2 NN machines, is safe as long as the information of at least one NN machine is not leaked, and can be applied to general big data. .. Therefore, according to the third embodiment, a secure concealment operation that can be applied in any case including a product-sum operation that could not be realized by the TUS method is realized.

<第4の実施の形態> <Fourth Embodiment>

第4の実施の形態の構成は、図25に示すように、第3の実施の形態の構成(図18)と同様の構成があるので、同一部分には同一の符号を付して、その説明を省略し、異なる部分を説明する。第4の実施の形態では、演算支援装置16を備えている。第4の実施の形態における入力者装置12A0~12C0は、演算支援部を備えていない。演算支援装置16が、演算支援部を備えている。第4の実施の形態では、マシン14N0~14Nn-1の内の予め定められた1台のマシン14NN(マシン数N=1、n=k=2)が秘匿演算を行う。ただし、演算支援装置16は後述するように復元処理も行えるので、復元者装置18はなくてもよい。第2の実施の形態と同様に秘密分散に関するn及びkは最小値である2(任意の数を選択できる)として説明する。 As shown in FIG. 25, the configuration of the fourth embodiment has the same configuration as the configuration of the third embodiment (FIG. 18), so that the same parts are designated by the same reference numerals. The explanation is omitted and the different parts are explained. In the fourth embodiment, the arithmetic support device 16 is provided. The inputter devices 12A0 to 12C0 in the fourth embodiment do not include a calculation support unit. The calculation support device 16 includes a calculation support unit. In the fourth embodiment, one predetermined machine 14NN (number of machines N = 1, n = k = 2) among the machines 14N0 to 14Nn-1 performs the concealment operation. However, since the arithmetic support device 16 can also perform restoration processing as described later, the restorer device 18 may not be necessary. As in the second embodiment, n and k regarding the secret sharing will be described as the minimum value of 2 (any number can be selected).

入力者装置12A~12Cの各々のCPU22の機能部は、図3に示すように、分散部42を備える。マシン14NNのCPU22の機能部は、図4に示すように、秘匿積和演算部44及び秘匿除算部46を備える。演算支援装置16のCPU22の機能部は、図12に示すように、分散部42と演算支援部150を備える。 As shown in FIG. 3, the functional unit of each CPU 22 of the input person devices 12A to 12C includes a distributed unit 42. As shown in FIG. 4, the functional unit of the CPU 22 of the machine 14NN includes a secret product-sum calculation unit 44 and a secret division unit 46. As shown in FIG. 12, the functional unit of the CPU 22 of the calculation support device 16 includes a distribution unit 42 and a calculation support unit 150.

第4の実施の形態では、複数の秘密情報の入力者装置12A~12Cと、結果を知る復元者装置18とが異なり、かつ1台の演算支援装置と1台のマシン14NNで秘匿演算を実行する。 In the fourth embodiment, the plurality of confidential information inputter devices 12A to 12C and the restorer device 18 that knows the result are different, and the concealment calculation is executed by one calculation support device and one machine 14NN. do.

第4の実施の形態では、利害が対立する入力者装置12A~12Cの間で1台のマシン14NNによって秘匿計算を実現するために、信頼できる演算支援装置が1台あるとする。また、各入力者装置12A~12Cはその演算支援装置と暗号などを用いた安全な通信路を確保しているとする。 In the fourth embodiment, it is assumed that there is one reliable calculation support device in order to realize the confidential calculation by one machine 14NN between the inputter devices 12A to 12C having conflicting interests. Further, it is assumed that each input person device 12A to 12C secures a secure communication path using the calculation support device and encryption or the like.

演算支援装置はマシン14N0~14Nn-1に比べて非常に小さな処理でよく、マシン14NNの処理は攻撃者が知ることができるが、演算支援装置の処理は漏えいしないとする。 The arithmetic support device may require much smaller processing than the machines 14N0 to 14Nn-1, and the attacker can know the processing of the machine 14NN, but the processing of the arithmetic support device is not leaked.

詳細は後述するが、1台のNNマシンで秘匿計算を行う第2の実施の形態との大きな違いは入力者からの攻撃を想定する点である。第2の実施の形態における入力者は全ての情報を知るため攻撃する必要はなく、NNマシン及びそれを観察できる者だけが攻撃者であった。それに対して、本実施の形態における入力者は部分的な情報しか知らず、他の入力者及び演算結果を知るための攻撃を行う可能性がある、よって、積和演算自体を入力者から秘匿するため、1のような定数ではなく、第1の乱数a1を秘密情報に加算して第2の乱数αを乗じたα(a+a1)を公開する。これによって、入力者による攻撃を防ぐ。 The details will be described later, but the major difference from the second embodiment in which the concealment calculation is performed by one NN machine is that an attack from an input person is assumed. The input person in the second embodiment does not need to attack in order to know all the information, and only the NN machine and the person who can observe it were the attackers. On the other hand, the input person in the present embodiment knows only partial information and may make an attack to know other input persons and the operation result. Therefore, the product-sum operation itself is concealed from the input person. Therefore, instead of a constant such as 1, the first random number a1 is added to the secret information and α (a + a1) multiplied by the second random number α is disclosed. This prevents attacks by the input person.

[分散4] [Dispersion 4]

各入力者装置12A~12Cから安全な通信路を介して得た秘密情報a,b,cに対する演算支援装置のCPU22における分散部42が実行する分散4を、図26を参照して説明する。 The distribution 4 executed by the distribution unit 42 in the CPU 22 of the calculation support device for the secret information a, b, c obtained from the input person devices 12A to 12C via the secure communication path will be described with reference to FIG. 26.

ステップ432で、分散部42は、乱数α、β、γと乱数a1、b1、c1を生成する。 In step 432, the dispersion unit 42 generates random numbers α, β, γ and random numbers a1, b1, and c1.

ステップ434で、分散部42は、以下を計算する。
α(a+a1)=α×(a+a1)
β(b+b1)=β×(b+b1)
γ(c+c1)=γ×(c+c1)
In step 434, the dispersion unit 42 calculates the following.
α (a + a1) = α × (a + a1)
β (b + b1) = β × (b + b1)
γ (c + c1) = γ × (c + c1)

ステップ436で、分散部42は、α(a+a1)、β(b+b1)、及びγ(c+c1)を、1台のマシン14NNに送信する。 In step 436, the dispersion unit 42 transmits α (a + a1), β (b + b1), and γ (c + c1) to one machine 14NN.

ステップ438で、分散部42は、乱数δ、δを生成する。 In step 438, the dispersion unit 42 generates random numbers δ 0 and δ 1 .

ステップ440で、分散部42は、δ/αβ、δb1/α、δa1/β、δ/γを計算する。 In step 440, the dispersion unit 42 calculates δ 0 / αβ, δ 0 b1 / α, δ 0 a1 / β, and δ 0 / γ.

ステップ442で、分散部42は、δ/αβ、δb1/α、δa1/β、δ/γの秘密分散における以下の分散値[δ/αβ]、[δb1/α]、[δa1/β]、[δ/γ]と[δ/αβ]、[δb1/α]、[δa1/β]、[δ/γ]を計算する。 In step 442, the dispersion unit 42 has the following dispersion values [δ 0 / α β] 0 , [δ 0 b1] in the secret dispersion of δ 0 / α β, δ 0 b1 / α, δ 0 a1 / β, δ 0 / γ. / Α] 0 , [δ 0 a1 / β] 0 , [δ 0 / γ] 0 and [δ 0 / αβ] 1 , [δ 0 b1 / α] 1 , [δ 0 a1 / β] 1 , [δ] 0 / γ] 1 is calculated.

ステップ444で、分散部42は、以下の計算(δ=δδ)をする。
[δ/αβ]=δ[δ/αβ]
[δb1/α]=δ[δb1/α]
[δa1/β]=δ[δa1/β]
[δ/γ]=δ[δ/γ]
In step 444, the dispersion unit 42 performs the following calculation (δ = δ 0 δ 1 ).
[Δ / αβ] 1 = δ 10 / αβ] 1
[Δb1 / α] 1 = δ 10 b1 / α] 1
[Δa1 / β] 1 = δ 10 a1 / β] 1
[Δ / γ] 1 = δ 10 / γ] 1

ステップ446で、分散部42は、[δ/αβ]、[δb1/α]、[δa1/β]、[δ/γ]と[δ/αβ]、[δb1/α]、[δa1/β]、[δ/γ]を1台のマシン14NNに送信する。 In step 446, the dispersion unit 42 has [δ 0 / αβ] 0 , [δ 0 b1 / α] 0 , [δ 0 a1 / β] 0 , [δ 0 / γ] 0 and [δ / αβ] 1 , [Δb1 / α] 1 , [δa1 / β] 1 , and [δ / γ] 1 are transmitted to one machine 14NN.

[積和演算4]
次に、マシン14NNのCPU22における秘匿積和演算部44が実行する積和演算4を、図27を参照して説明する。
[Multiply-accumulate calculation 4]
Next, the product-sum calculation 4 executed by the secret product-sum calculation unit 44 in the CPU 22 of the machine 14NN will be described with reference to FIG. 27.

ステップ452で、秘匿積和演算部44は、以下の計算をする。
[δ{(ab+c)-(a1b1-c1)}]=α(a+a1)×β(b+b1)×[δ/αβ]-α(a+a1)×[δb1/α]-β(b+b1)×[δa1/β]+γ(c+c1)×[δ/γ]
[δ{(ab+c)-(a1b1-c1)}]=α(a+1)×β(b+1)×[δ/αβ]-α(a+1)×[δb1/α]-β(b+1)×[δa1/β]+γ(c+1)×[δ/γ]
In step 452, the secret product-sum calculation unit 44 performs the following calculation.
0 {(ab + c)-(a1b1-c1)}] 0 = α (a + a1) × β (b + b1) × [δ 0 / αβ] 0 -α (a + a1) × [δ 0 b1 / α] 0 -β (B + b1) × [δ 0 a1 / β] 0 + γ (c + c1) × [δ 0 / γ] 0
[Δ {(ab + c)-(a1b1-c1)}] 1 = α (a + 1) × β (b + 1) × [δ / αβ] 1 -α (a + 1) × [δb1 / α] 1 -β (b + 1) × [Δa1 / β] 1 + γ (c + 1) × [δ / γ] 1

[演算支援4]
次に、演算支援装置16のCPU22における演算支援部が実行する演算支援4を、図28を参照して説明する。
[Operation support 4]
Next, the calculation support 4 executed by the calculation support unit in the CPU 22 of the calculation support device 16 will be described with reference to FIG. 28.

ステップ462で、演算支援部は、[δ{(ab+c)-(a1b1-c1)}]と[δ{(ab+c)-(a1b1-c1)}]を収集する。 In step 462, the arithmetic support unit collects [δ 0 {(ab + c)-(a1b1-c1)}] 0 and [δ {(ab + c)-(a1b1-c1)}] 1 .

ステップ464で、演算支援部は、以下を計算する。
[δ{(ab+c)-(a1b1-c1)]=δ[δ{(ab+c)-(a1b1-c1)}]
In step 464, the calculation support unit calculates the following.
[Δ {(ab + c)-(a1b1-c1)] 0 = δ 10 {(ab + c)-(a1b1-c1)}] 0

ステップ466で、演算支援部は、[δ{(ab+c)-(a1b1-c1)}]0と[δ{(ab+c)-(a1b1-c1)}]1からδ{(ab+c)-(a1b1-c1)を復元する。 In step 466, the arithmetic support unit changes from [δ {(ab + c)-(a1b1-c1)}] 0 and [δ {(ab + c)-(a1b1-c1)}] 1 to δ {(ab + c)-(a1b1-). Restore c1).

ステップ468で、演算支援部は、δ(ab+c+d1)を計算する。ここで、d1=(c1-a1b1)としてもよいが、δ{(ab+c)-(a1b1-c1)}にδ(a1b1-c1)を足して、新たに生成した乱数δd1を足してもよい。 In step 468, the calculation support unit calculates δ (ab + c + d1). Here, d1 = (c1-a1b1) may be set, but δ (a1b1-c1) may be added to δ {(ab + c)-(a1b1-c1)}, and a newly generated random number δd1 may be added.

ステップ470で、演算支援部は、演算を継続するか否かを判断し、演算を継続しない場合には、ステップ472で、演算支援部は、上記においてδd1を足さずにδで割ることによりab+cを計算する。 In step 470, the calculation support unit determines whether or not to continue the calculation, and if the calculation is not continued, in step 472, the calculation support unit divides by δ without adding δd1 in the above. Calculate ab + c.

演算を継続する場合、分散4の図26のステップ438~444の処理は演算手順が判っていれば事前に実行できる。よって、演算中に行われる必須の演算支援処理は演算支援処理4のみとなる。また、演算支援処理は積和演算毎に実行しなくても必要に応じて実行すればよい。例えば、Σδ0(ai+1)(bi+1)などの処理では演算後に1度演算支援処理をするだけでよい。 When the calculation is continued, the processing of steps 438 to 444 of FIG. 26 of the variance 4 can be executed in advance if the calculation procedure is known. Therefore, the operation support process 4 is the only essential operation support process performed during the operation. Further, the calculation support process may be executed as needed without being executed for each product-sum operation. For example, in the process of Σδ0 (ai + 1) (bi + 1), it is only necessary to perform the operation support process once after the operation.

[秘匿除算4]
次に、演算支援装置16のCPU22における演算支援部254が実行する秘匿除算4を説明する。本実施の形態における秘匿除算4は、前述した秘匿除算2(図17)において、入力者装置12のCPU22における演算支援部150が実行した処理を、演算支援装置16のCPU22における演算支援部254が実行する点のみが異なるので、その説明を省略する。
[Confidential division 4]
Next, the concealment division 4 executed by the calculation support unit 254 in the CPU 22 of the calculation support device 16 will be described. In the secret division 4 in the present embodiment, in the above-mentioned secret division 2 (FIG. 17), the calculation support unit 254 in the CPU 22 of the calculation support device 16 performs the processing executed by the calculation support unit 150 in the CPU 22 of the input person device 12. Only the points to be executed are different, so the description thereof will be omitted.

第4の実施の形態によって1台のマシン14NNと1台の演算支援装置の組み合わせによって、入力者装置及び復元者装置などの利害関係が対立しても安全な秘匿計算が実現できるようになる。一般に、マシン14NNはその制御を担当するICチップまたは専用の制御装置などとセットで動作する場合が多い。よって、そのICチップまたは専用の制御装置に耐タンパ性を持たせ、第4の実施の形態による演算支援機能を追加すれば、大きなシステム変更を伴わず本実施の形態が実現できる。すなわち、マシン14NNは高速演算器として動作し、その動作を観察されてもICチップまたは制御装置が安全であれば、入力情報や解こうとする問題が漏えいしないシステムが構成できる。ただし、演算支援装置16は第2の実施の形態における1個の入力者装置と同様に全ての情報を知るので、演算支援装置16が解析されると秘密情報及び秘匿演算結果が漏洩する。 According to the fourth embodiment, the combination of one machine 14NN and one arithmetic support device enables safe concealment calculation even if the interests of the input person device and the restorer device conflict with each other. In general, the machine 14NN often operates as a set with an IC chip in charge of its control or a dedicated control device. Therefore, if the IC chip or the dedicated control device is provided with tamper resistance and the calculation support function according to the fourth embodiment is added, the present embodiment can be realized without major system changes. That is, the machine 14NN operates as a high-speed arithmetic unit, and if the IC chip or the control device is safe even if the operation is observed, a system can be configured in which the input information and the problem to be solved are not leaked. However, since the calculation support device 16 knows all the information as in the case of one inputter device in the second embodiment, the secret information and the secret calculation result are leaked when the calculation support device 16 is analyzed.

<第5の実施の形態>
次に、第5の実施の形態を説明する。
第5の実施の形態の構成は、第4の実施の形態の構成(図25参照)と同様であるので、その説明を省略する。
<Fifth Embodiment>
Next, a fifth embodiment will be described.
Since the configuration of the fifth embodiment is the same as the configuration of the fourth embodiment (see FIG. 25), the description thereof will be omitted.

第5の実施の形態において、第4の実施の形態のように演算支援装置を絶対としなくても第3の実施の形態のような安全性が実現できる手法を考える。第4の実施の形態においては演算支援装置が解析できれば、全ての秘密情報が漏洩する。これは、演算支援装置が第2の実施の形態における入力者のように全ての情報を1元的に管理するためである。これに第3の実施の形態の要素を加え、秘密分散における処理量がNNマシンは大きく演算支援装置は小さいという特徴を生かしながら、1台のマシン14NNと演算支援装置の両方を解析しなければ秘密情報が漏洩しないようにすることが課題である。第5の実施の形態においてもN=1,n=k=2として説明する。 In the fifth embodiment, consider a method that can realize the safety as in the third embodiment without making the arithmetic support device absolute as in the fourth embodiment. In the fourth embodiment, if the arithmetic support device can be analyzed, all the confidential information will be leaked. This is because the arithmetic support device centrally manages all the information like the input person in the second embodiment. By adding the elements of the third embodiment to this, it is necessary to analyze both one machine 14NN and the calculation support device while taking advantage of the feature that the processing amount in secret sharing is large for the NN machine and the calculation support device is small. The challenge is to prevent the leakage of confidential information. Also in the fifth embodiment, it will be described as N = 1, n = k = 2.

第4の実施の形態では演算支援装置は全ての秘密情報を知るため、演算支援装置だけ攻撃できれば全秘密情報が漏えいする。そこで、第4の実施の形態のように利害が対立する入力者装置間でも1台のマシンで演算可能で、かつ第3の実施の形態のように1台のマシンと演算支援装置の2つが解析されない限り安全な実施の形態を示す。また、第3の実施の形態と同様に変換用乱数を生成するが、演算支援装置は信頼できるとするので、第1の実施の形態の(1-2)と同等に変換用乱数は演算支援装置が生成する。よって、分散5において変換用乱数{μ′}i、{ν′}i、{ε′}i、{ρ′}i、{ω′}iは準備されているとする。 In the fourth embodiment, since the calculation support device knows all the secret information, if only the calculation support device can attack, all the secret information will be leaked. Therefore, as in the fourth embodiment, it is possible to perform calculation with one machine even between inputter devices having conflicting interests, and as in the third embodiment, one machine and a calculation support device are used. An embodiment that is safe unless analyzed is shown. Further, the conversion random number is generated in the same manner as in the third embodiment, but since the calculation support device is reliable, the conversion random number is calculated and supported in the same manner as in (1-2) of the first embodiment. Generated by the device. Therefore, it is assumed that the conversion random numbers {μ'} i, {ν'} i, {ε'} i, {ρ'} i, and {ω'} i are prepared in the variance 5.

[分散5]
分散5を、入力者装置12Aの分散5のプログラムのフローチャート(図29A)、入力者装置12Bの分散5のプログラムのフローチャート(図29B)、入力者装置12Cの分散5のプログラムのフローチャート(図29C)、演算支援装置16の分散5のプログラムのフローチャート(図29D)、マシン14NNの分散5のプログラムのフローチャート(図29E)、及び分散5のシーケンス図(図29F)を参照して説明する。
[Dispersion 5]
The distribution 5 is shown as a flowchart of the distribution 5 program of the input user device 12A (FIG. 29A), a flowchart of the distribution 5 program of the input user device 12B (FIG. 29B), and a flowchart of the distribution 5 program of the input user device 12C (FIG. 29C). ), The flowchart of the program of the distribution 5 of the calculation support device 16 (FIG. 29D), the flowchart of the program of the distribution 5 of the machine 14NN (FIG. 29E), and the sequence diagram of the distribution 5 (FIG. 29F).

(分散5(1))
入力者装置12Aは乱数α′、α′を生成して以下を計算してα′(a+1)をマシン14NNと演算支援装置16に送信し、マシン14NNにα′を送信し、演算支援装置16にα′を送信する(図29Aのステップ502A~508A、図29Dのステップ512、図29Eのステップ552も参照)。
α′=α′×α′、 α′(a+1)=α′×(a+1)
(Dispersion 5 (1))
The inputter device 12A generates random numbers α ′ 0 and α ′ 1 and calculates the following to transmit α ′ (a + 1) to the machine 14NN and the calculation support device 16, and sends α ′ 0 to the machine 14NN to perform the calculation. Α'1 is transmitted to the support device 16 (see also steps 502A to 508A in FIG. 29A, step 512 in FIG. 29D, and step 552 in FIG. 29E).
α ′ = α ′ 0 × α ′ 1 , α ′ (a + 1) = α ′ × (a + 1)

入力者装置12Bは乱数β′、β′を生成して以下を計算してβ′(b+1)をマシン14NNと演算支援装置16に送信し、マシン14NNにβ′を送信し、演算支援装置16にβ′を送信する(図29Bのステップ502B~508B、図29Dのステップ514、図29Eのステップ554も参照)。
β′=β′×β′、 β′(b+1)=β′×(b+1)
The inputter device 12B generates random numbers β ′ 0 and β ′ 1 and calculates the following to send β ′ (b + 1) to the machine 14NN and the calculation support device 16, and sends β ′ 0 to the machine 14NN to perform the calculation. Β ′ 1 is transmitted to the support device 16 (see also steps 502B to 508B in FIG. 29B, step 514 in FIG. 29D, and step 554 in FIG. 29E).
β ′ = β ′ 0 × β ′ 1 , β ′ (b + 1) = β ′ × (b + 1)

入力者装置12Cは乱数γ′、γ′を生成して以下を計算してγ′(c+1)をマシン14NNと演算支援装置16に送信し、マシン14NNにγ′を送信し、演算支援装置16にγ′を送信する(図29Cのステップ502C~508C、図29Dのステップ516、図29Eのステップ556も参照)。
γ′=γ′×γ′、 γ′(c+1)=γ′×(c+1)
The inputter device 12C generates random numbers γ'0 and γ'1 and calculates the following to send γ'(c + 1 ) to the machine 14NN and the calculation support device 16, and sends γ'0 to the machine 14NN for calculation. Gamma ′ 1 is transmitted to the support device 16 (see also steps 502C to 508C in FIG. 29C, step 516 in FIG. 29D, and step 556 in FIG. 29E).
γ' = γ'0 x γ'1, γ'(c + 1 ) = γ'x (c + 1)

α′、β′、γ′(i=0、・・・、k-1)を秘密分散して、必要時にマシン14NN及び演算支援装置16がα′、β′、γ′を復元してもよい。 α'i, β'i, γ'i ( i = 0, ..., k-1) are secretly distributed, and when necessary, the machine 14NN and the arithmetic support device 16 perform α'i , β'i , γ'. i may be restored.

(分散5(2)) (Dispersion 5 (2))

マシン14NNは、2以上の乱数a0、a0を生成し、a0=a0×a0を計算して、a0からa0′=a0-1を計算し、乱数ξa0、0、ξa0.1とξ′a0、0、ξ′a0.1を生成して、ξa0=ξa0、0×ξa0.1、ξ′a0=ξa0×a0を計算し、ξ′a0×a0′と、ξa0.1、ξ′a0、1、a0を演算支援装置16に送信する(図29Eのステップ558~568、図29Dのステップ518参照)。 The machine 14NN generates two or more random numbers a0 0 , a01 1 , calculates a0 = a0 0 × a01 1 , calculates a0'= a0-1 from a0, and random numbers ξ a0 , 0, ξ a0. 1 and ξ'a0 , 0, ξ'a0.1 are generated, ξ a0 = ξ a0, 0 × ξ a0.1, ξ'a0 = ξ a0 × a0 is calculated, and ξ'a0 × a0 ' , Ξ a0.1 , ξ'a0 , 1 , a01 1 are transmitted to the calculation support device 16 (see steps 558 to 568 in FIG. 29E and steps 518 in FIG. 29D).

(分散5(3)) (Dispersion 5 (3))

演算支援装置16は、0でない乱数a1、a1、ξa1、0、ξa1.1を生成してa1=a1×a1、ξa1=ξa1、0×ξa1.1を計算してξa1×a1とξa1、0をマシン14NNに送信する(図29Dのステップ520~524、図29Eのステップ570参照)。 The arithmetic support device 16 generates non -zero random numbers a1 0 , a1 1 , ξ a1, 0, ξ a1.1 and calculates a1 = a1 0 × a1 1 , ξ a1 = ξ a1, 0 × ξ a1.1 . Then, ξ a1 × a1 and ξ a1, 0 are transmitted to the machine 14NN (see steps 520 to 524 in FIG. 29D and steps 570 in FIG. 29E).

マシン14NNは乱数α、α′を生成し(図29Eのステップ572参照)、演算支援装置16は乱数α、α′を生成し(図29Dのステップ526)、マシン14NNは、以下を計算し(図29Eのステップ574)、演算支援装置16は以下を計算し、マシン14NNに送る(図29Dステップ528、図29Eのステップ576参照)(以降、マシン14NNはi=0、演算支援装置16はi=1に対応する計算を行う)。 The machine 14NN generates random numbers α 0 and α ′ 0 (see step 572 in FIG. 29E), the arithmetic support device 16 generates random numbers α 1 and α ′ 1 (step 526 in FIG. 29D), and the machine 14NN generates the following random numbers α 1 and α ′ 1. (Step 574 in FIG. 29E), the calculation support device 16 calculates the following and sends it to the machine 14NN (see step 528 in FIG. 29D and step 576 in FIG. 29E) (hereinafter, the machine 14NN has i = 0 and calculation support. The device 16 performs the calculation corresponding to i = 1).

Figure 2022044737000030
Figure 2022044737000030

(分散5(4)) (Dispersion 5 (4))

マシン14NNは、 Machine 14NN

Figure 2022044737000031
Figure 2022044737000031

をi=0,1について掛け合わせ、(A)、(B)、(C)、(D)、(E)、即ち、それぞれ Is multiplied for i = 0, 1 and (A), (B), (C), (D), (E), that is, each

Figure 2022044737000032
Figure 2022044737000032

を計算して、演算支援装置16に送る(図29Eのステップ578、580、図29Dのステップ530参照)。 Is calculated and sent to the calculation support device 16 (see step 578 and 580 in FIG. 29E and step 530 in FIG. 29D).

(分散5(5)) (Dispersion 5 (5))

マシン14NNはi=0に対応する下記式を計算し(図29Eのステップ582)、演算支援装置16はi=1に対応する下記式を計算する(図29Dのステップ532)。ただし、a0+a1=a2とする。 The machine 14NN calculates the following equation corresponding to i = 0 (step 582 in FIG. 29E), and the arithmetic support device 16 calculates the following equation corresponding to i = 1 (step 532 in FIG. 29D). However, a0 + a1 = a2.

Figure 2022044737000033
Figure 2022044737000033

Figure 2022044737000034

Figure 2022044737000034

(分散5(6)) (Dispersion 5 (6))

演算支援装置16はi=1に対応する[α″a2]、[α(a+a2)]をマシン14NNに送信し(図29Dのステップ534、図29Eのステップ584参照)、マシン14NNはα″a2、α(a+a2)を復元する(図29Eのステップ586参照)。 The arithmetic support device 16 transmits [α ″ a2] 1 and [α (a + a2)] 1 corresponding to i = 1 to the machine 14NN (see step 534 in FIG. 29D and step 584 in FIG. 29E), and the machine 14NN is α. "A2, α (a + a2) is restored (see step 586 in FIG. 29E).

(分散5(7)) (Dispersion 5 (7))

マシン14NNと演算支援装置16は分散5(1)~(6)をb、cに対しても実行し、β(b+b2)、β″b2、γ(c+c2)、γ″c2を得る(図29Dのステップ536、図29Eのステップ588、図29A~29Cも参照)。 The machine 14NN and the arithmetic support device 16 also execute the variances 5 (1) to (6) for b and c to obtain β (b + b2), β ″ b2, γ (c + c2), and γ ″ c2 (FIG. 29D). 536, step 588 of FIG. 29E, also see FIGS. 29A-29C).

(分散5(8)) (Dispersion 5 (8))

演算支援装置16は乱数χと乱数ε、τ、ω、λ、κ、ζを生成して、ε、τ、ω、λ、κ、ζを秘密分散して以下を計算し、変換用乱数{ε}、{τ}、{ω}、{λ}、{κ}、{ζ}をマシン14N0に送る(図29Dのステップ540、542参照)。
[χε]=χ×[ε]
[χτ]=χ×[τ]
[χφω]=χ×[φ]
[χλ]=χ×[λ]
[χκ]=χ×[κ]
[χζ]=χ×[ζ]
{ε}=([ε]、[χε]、ε
{ρ}=([ρ]、[χρ]、ρ
{ω}=([ω]、[χω]、ω
{μ}=([μ]、[χμ]、μ
{ν}=([ν]、[χν]、ν
{ζ}=([ζ]、[χζ]、ζ
The arithmetic support device 16 generates a random number χ and random numbers ε, τ, ω, λ, κ, ζ, secretly distributes ε, τ, ω, λ, κ, ζ and calculates the following, and converts the random number { Send ε}, {τ}, {ω}, {λ}, {κ}, {ζ} to machine 14N0 (see steps 540, 542 in FIG. 29D).
[Χε] 1 = χ × [ε] 1
[Χτ] 1 = χ × [τ] 1
[Χφω] 1 = χ × [φ] 1
[Χλ] 1 = χ × [λ] 1
[Χκ] 1 = χ × [κ] 1
[Χζ] 1 = χ × [ζ] 1
{Ε} = ([ε] 0 , [χε] 1 , ε 0 )
{Ρ} = ([ρ] 0 , [χρ] 1 , ρ 0 )
{Ω} = ([ω] 0 , [χω] 1 , ω 0 )
{Μ} = ([μ] 0 , [χμ] 1 , μ 0 )
{Ν} = ([ν] 0 , [χν] 1 , ν 0 )
{Ζ} = ([ζ] 0 , [χζ] 1 , ζ 0 )

第3の実施の形態で説明した複数の入力者による変換用乱数生成3’を用いて変換用乱数が生成されている場合、S1に相当する演算支援装置16が最終結果である例えば[ε]とεを得、S0に相当するマシン14N0が[ε]とεを既に得ている。この場合、演算支援装置16はステップ538の乱数生成を省略でき、ステップ540の処理を行った後、ステップ542において例えば[χε]のみをマシン14N0に送ればよい(他のτ、ω、λ、κ、ζも同様)。
[秘匿積和演算5]
When the conversion random number is generated using the conversion random number generation 3'by the plurality of inputters described in the third embodiment, the arithmetic support device 16 corresponding to S1 is the final result, for example, [ε]. 1 and ε 1 are obtained, and the machine 14N0 corresponding to S0 has already obtained [ε] 0 and ε 0 . In this case, the arithmetic support device 16 can omit the random number generation in step 538, and after performing the processing in step 540, for example, only [χε] 1 may be sent to the machine 14N0 in step 542 (other τ, ω, λ). , Kappa, ζ as well).
[Concealed multiply-accumulate calculation 5]

次に、マシン14NNのCPU22における秘匿積和演算部44が実行する秘匿積和演算5と、演算支援装置16のCPU22における演算支援部150が実行する演算支援5とをそれぞれ、図30、図31を参照して説明する。 Next, the secret product-sum calculation 5 executed by the secret product-sum calculation unit 44 in the CPU 22 of the machine 14NN and the calculation support 5 executed by the calculation support unit 150 in the CPU 22 of the calculation support device 16 are shown in FIGS. 30 and 31, respectively. Will be described with reference to.

図30のステップ602で、マシン14NNの秘匿積和演算部44は、乱数δ∈Z/pZを生成する。 In step 602 of FIG. 30, the secret product-sum calculation unit 44 of the machine 14NN generates a random number δ 0 ∈ Z / pZ.

図31のステップ612で、演算支援装置16の演算支援部150は、乱数δ∈Z/pZを生成する。 In step 612 of FIG. 31, the arithmetic support unit 150 of the arithmetic support device 16 generates a random number δ 1 ∈ Z / pZ.

図30のステップ604で、マシン14NNの秘匿積和演算部44は、i=0として以下を計算する。 In step 604 of FIG. 30, the secret product-sum calculation unit 44 of the machine 14NN calculates the following with i = 0.

Figure 2022044737000035
Figure 2022044737000035

を送信する。 To send.

図31のステップ614で、演算支援装置16の演算支援部150は、i=1として以下を計算して、ステップ616でマシン14NNに送る。 In step 614 of FIG. 31, the calculation support unit 150 of the calculation support device 16 calculates the following with i = 1 and sends the following to the machine 14NN in step 616.

Figure 2022044737000036
Figure 2022044737000036

図30のステップ606で、マシン14NNのCPU22における秘匿積和演算部44は、上記2つの式(i=0,1)を掛け合わせ、以下を計算する。 In step 606 of FIG. 30, the secret product-sum calculation unit 44 in the CPU 22 of the machine 14NN multiplies the above two equations (i = 0, 1) and calculates the following.

Figure 2022044737000037
Figure 2022044737000037

図30のステップ608で、マシン14NNのCPU22における秘匿積和演算部44は、以下を計算する。 In step 608 of FIG. 30, the secret product-sum calculation unit 44 in the CPU 22 of the machine 14NN calculates the following.

Figure 2022044737000038
Figure 2022044737000038

Figure 2022044737000039
Figure 2022044737000039

[演算支援処理5]
次に、演算支援装置16のCPU22における演算支援部150が実行する演算支援処理5を、図32を参照して、説明する。
[Operation support process 5]
Next, the calculation support process 5 executed by the calculation support unit 150 in the CPU 22 of the calculation support device 16 will be described with reference to FIG. 32.

ステップ622で、演算支援部150は、[δ(ab+c)]と[δ(ab+c)]を収集する。 In step 622, the arithmetic support unit 150 collects [δ 0 (ab + c)] 0 and [δ (ab + c)] 1 .

ステップ624で、演算支援部150は、以下を計算する。
[δ{(ab+c)]=δ[δ(ab+c)]
In step 624, the calculation support unit 150 calculates the following.
[Δ {(ab + c)] 0 = δ 10 (ab + c)] 0

ステップ626で、演算支援部150は、[δ(ab+c)]と[δ(ab+c)]からδ(ab+c)を復元する。 In step 626, the arithmetic support unit 150 restores δ (ab + c) from [δ (ab + c)] 0 and [δ (ab + c)] 1 .

演算を継続する場合、マシン14N0と演算支援装置16は新たにa0、a1に相当する乱数を生成し、それらを秘匿加算したものを新たなα″a2、さらに復元したδ(ab+c)とα″a2を秘匿加算したものを新たなα(a+a2)とすればよい。 When the calculation is continued, the machine 14N0 and the calculation support device 16 newly generate random numbers corresponding to a0 and a1, and the new α ″ a2 and the restored δ (ab + c) and α ″ are obtained by secretly adding them. A new α (a + a2) may be obtained by secretly adding a2.

秘匿徐算はa2を秘匿徐算4におけるa1とすれば、同様に実現可能である。 Concealment graduation can be similarly realized if a2 is a1 in concealment graduation 4.

本実施の形態において演算支援装置16は秘密情報a,b,cを知らず、それらを復元することなく、演算支援装置16はとマシン14NNによって生成された乱数の秘匿加算を行い、入力者が知らない第1の乱数の加算と第2の乱数の乗算を行う。よって、攻撃者が演算支援装置16を攻撃しただけでは秘密情報は漏洩せず、マシン14NNも一緒に解析しなければ秘密情報は漏洩しない。よって、第5の実施の形態によって演算支援装置のみが解析されても安全なシステムが構築できる。 In the present embodiment, the arithmetic support device 16 does not know the secret information a, b, c, and without restoring them, the arithmetic support device 16 performs a secret addition of random numbers generated by the machine 14NN, and the input person knows. Adds the first random number and multiplies the second random number. Therefore, the secret information is not leaked only by the attacker attacking the calculation support device 16, and the secret information is not leaked unless the machine 14NN is also analyzed. Therefore, according to the fifth embodiment, a safe system can be constructed even if only the arithmetic support device is analyzed.

また、第2、第4の実施の形態において演算を継続する場合、入力者装置12は新たなα,β,γに対して新たなδを生成し、δ/αβ、δ/α、δ/β、δ/γを計算する必要があるが、本実施の形態と同様に、例えば{ε}=([ε]、[χε]、ε)となる変換用乱数をマシン14NNに送り(他の変換用乱数も同様)、秘匿積和演算2及び4において秘匿積和演算5と同様の演算を行えば、演算を継続するためにδ/αβ、δ/α、δ/β、δ/γを演算中に計算する必要がなくなる(ただし、図30でa0=b0=0、α″=β″=γ″=0であり、第2の実施の形態のみa1=b1=c2=1とする。それに伴いa0、b0等に関する図30、31の演算は省略される)。すなわち、{ε}=([ε]、[χε]、ε)の形式の変換用乱数が事前に準備されていればよい。 Further, when the calculation is continued in the second and fourth embodiments, the input user device 12 generates a new δ 0 for the new α, β, γ, and δ 0 / α β, δ 0 / α. , Δ 0 / β, δ 0 / γ, but as in the present embodiment, for example, a conversion random number such that {ε} = ([ε] 0 , [χε] 1 , ε 0 ). Is sent to the machine 14NN (same for other conversion random numbers), and if the same operations as the secret product sum operations 5 are performed in the secret product sum operations 2 and 4, δ 0 / αβ and δ 0 / are performed in order to continue the operations. It is no longer necessary to calculate α, δ 0 / β, δ 0 / γ during the calculation (however, in FIG. 30, a0 = b0 = 0, α ″ = β ″ = γ ″ = 0, and the second embodiment is performed. Only the form is a1 = b1 = c2 = 1. Accordingly, the operations of FIGS. 30 and 31 relating to a0, b0, etc. are omitted). That is, {ε} = ([ε] 0 , [χε] 1 , ε 0 . It suffices if a conversion random number in the form of) is prepared in advance.

第1の実施の形態~第5の実施の形態では、秘匿演算するマシンが1台または2台を例として説明されたが、1台または2台のマシンを用いて秘匿計算を行う場合に汎用的に用いることができる。 In the first embodiment to the fifth embodiment, one or two machines for concealment calculation have been described as an example, but general purpose is used when concealment calculation is performed using one or two machines. Can be used as a target.

以上より、秘匿演算するマシンが1台の場合、入力者装置が1台であれば第2の実施の形態が最も高速であり、複数台であり演算支援装置が耐タンパ性を有していれば第4の実施の形態が、複数名であり演算装置も解析される可能性がある場合、第5の実施の形態が推奨される。 From the above, when there is one machine for confidential calculation, the second embodiment is the fastest if there is one inputter device, and there are multiple machines and the calculation support device has tamper resistance. For example, when the fourth embodiment has a plurality of names and there is a possibility that the arithmetic unit may also be analyzed, the fifth embodiment is recommended.

また、秘匿演算するマシンを2台利用できる場合、入力者装置が1台であれば第1の実施の形態が最も高速であり、複数台であれば第3の実施の形態が推奨される。 Further, when two machines for confidential calculation can be used, the first embodiment is the fastest if there is one inputter device, and the third embodiment is recommended if there are a plurality of machines.

12 入力者装置
14N0~14Nn-1 マシン
12 Input user device 14N0-14Nn-1 machine

Claims (14)

nを2以上の整数、kを、最小値が2で最大値がnの整数、Lを1以上k以下の整数とし、秘密情報をn個に分散し、n個のうちk個の分散値を集めれば秘密情報を復元でき、k-L個以下では秘密情報を復元できない手段を用いて秘匿演算を行うシステムにおいて、秘密情報に0でない値の乱数を秘匿加算する手段と、その秘匿加算結果をそのまま秘匿演算に参加する全秘匿演算装置に送る手段と、を有することを特徴とする演算支援装置。 Let n be an integer of 2 or more, k be an integer with a minimum value of 2 and a maximum value of n, and L be an integer of 1 or more and k or less. In a system that performs a secret operation using a means that can restore secret information with less than kl, and cannot restore secret information with less than kl, a means to secretly add a non-zero integer to the secret information and the result of the secret addition. A calculation support device characterized by having a means for sending a message as it is to a total secret calculation device that participates in a secret calculation. nを2以上の整数、kを、最小値が2で最大値がnの整数、Lを1以上k以下の整数とし、秘密情報をn個に分散し、n個のうちk個の分散値を集めれば秘密情報を復元でき、k-L個以下では秘密情報を復元できない手段を用いて秘匿演算を行うシステムにおいて、1個以上の第1の乱数を生成する手段と、第1の乱数の各々を秘密分散した分散値の各々にかける手段と、を有することを特徴とする装置。 Let n be an integer of 2 or more, k be an integer with a minimum value of 2 and a maximum value of n, and L be an integer of 1 or more and k or less. In a system that performs a secret operation using a means that can restore secret information with less than kl and cannot restore confidential information, a means for generating one or more first random numbers and a means for generating the first random number A device comprising: means for applying each to each of the secretly distributed distributed values. nを2以上の整数、kを、最小値が2で最大値がnの整数、Lを1以上k以下の整数とし、秘密情報をn個に分散し、n個のうちk個の分散値を集めれば秘密情報を復元でき、k-L個以下では秘密情報を復元できない手段を用いて秘匿演算を行うシステムにおいて、請求項2による異なる乱数がかかった分散値に請求項1又は請求項2の装置によって公開された秘匿化秘密情報を作用させる手段と、その手段の出力である同一の秘密情報に対して異なる乱数を作用させた分散値を用いて演算する手段を有することを特徴とする秘匿演算装置。 Let n be an integer of 2 or more, k be an integer with a minimum value of 2 and a maximum value of n, and L be an integer of 1 or more and k or less. In a system in which the confidential information can be restored by collecting the secret information and the confidential information cannot be restored if the number is k-L or less, claim 1 or claim 2 is applied to the variance value obtained by applying different integers according to claim 2. It is characterized by having a means for operating the confidential secret information disclosed by the device of the above-mentioned device and a means for calculating using a distributed value in which different random numbers are applied to the same secret information which is the output of the means. Concealed arithmetic device. nを2以上の整数、kを、最小値が2で最大値がnの整数、Lを1以上k以下の整数とし、秘密情報をn個に分散し、n個のうちk個の分散値を集めれば秘密情報を復元でき、k-L個以下では秘密情報を復元できない手段を用いて秘匿演算を行うシステムにおいて、用いる秘匿演算装置の数をt、入力数をuとしたとき、nをu(k-1)+1以上として秘密分散を行う手段と、その分散値をn/t個毎に分割して異なる乱数を乗算する手段と、その異なる乱数が乗じられた分散値n/t個から少なくとも1つの分散値を秘匿演算装置に配布する手段と、を有することを特徴とした入力者装置。 Let n be an integer of 2 or more, k be an integer with a minimum value of 2 and a maximum value of n, and L be an integer of 1 or more and k or less. In a system that performs a secret operation using a means that cannot restore the secret information if the number is k-L or less, when the number of secret operation devices used is t and the number of inputs is u, n is A means for performing secret sharing with u (k-1) +1 or more, a means for dividing the distribution value into n / t pieces and multiplying them by different integers, and a distribution value n / t pieces obtained by multiplying the different random numbers. An input person device characterized by having a means for distributing at least one distributed value to a secret arithmetic device. nを2以上の整数、kを、最小値が2で最大値がnの整数、Lを1以上k以下の整数とし、秘密情報をn個に分散し、n個のうちk個の分散値を集めれば秘密情報を復元でき、k-L個以下では秘密情報を復元できない手段を用いて秘匿演算を行うシステムにおいて、分散値同士の乗算を行う手段と、乱数がかけられた分散値同士の積から乱数を削除する手段と、乱数が削除された分散値に対して次数変換処理を1回以上繰り返す手段と、を有することを特徴とする秘匿演算装置。 Let n be an integer of 2 or more, k be an integer with a minimum value of 2 and a maximum value of n, and L be an integer of 1 or more and k or less. In a system that performs concealment operations using means that can restore confidential information with less than kl, and cannot restore confidential information with less than kl, a means for multiplying distributed values and a means for multiplying distributed values with random numbers A concealment arithmetic device comprising: a means for deleting a random number from a product and a means for repeating a degree conversion process once or more for a distributed value from which the random number has been deleted. nを2以上の整数、kを、最小値が2で最大値がnの整数、Lを1以上k以下の整数とし、秘密情報をn個に分散し、n個のうちk個の分散値を集めれば秘密情報を復元でき、k-L個以下では秘密情報を復元できない手段を用いて秘匿演算を行うシステムにおいて、請求項1による秘匿化秘密情報から請求項1で加算された定数を秘匿減算する手段と、その秘匿減算結果が0であるかを検証する手段と、0でないときに秘匿減算された値からその逆数を生成する手段と、を有する秘匿演算装置。 Let n be an integer of 2 or more, k be an integer with a minimum value of 2 and a maximum value of n, and L be an integer of 1 or more and k or less. Confidential information can be restored by collecting the secret information, and in a system that performs a concealment operation using a means that cannot restore the confidential information if the number is k-L or less, the concealment according to claim 1 The constant added in claim 1 is concealed from the confidential information. A secret arithmetic device having a means for subtracting, a means for verifying whether the secret subtraction result is 0, and a means for generating the reciprocal of the secretly subtracted value when the subtraction result is not 0. nを2以上の整数、kを、最小値が2で最大値がnの整数、Lを1以上k以下の整数とし、秘密情報をn個に分散し、n個のうちk個の分散値を集めれば秘密情報を復元でき、k-L個以下では秘密情報を復元できない手段を用いて秘匿演算を行うシステムにおいて、異なる乱数がかかった分散値を他の分散値と同じ乱数に変換する手段と、同じ乱数がかかった秘密情報を復元する、または秘匿演算装置が復元できるようにする手段と、を有する演算支援装置。 Let n be an integer of 2 or more, k be an integer with a minimum value of 2 and a maximum value of n, and L be an integer of 1 or more and k or less. Confidential information can be restored by collecting the secret information, and in a system that performs a confidential operation using a means that cannot restore confidential information if the number is k-L or less, a means for converting a distributed value with a different random number into the same random number as another distributed value. A calculation support device having a means for recovering confidential information to which the same random number is applied, or a means for enabling a secret calculation device to recover. nを2以上の整数、kを、最小値が2で最大値がnの整数、Lを1以上k以下の整数とし、秘密情報をn個に分散し、n個のうちk個の分散値を集めれば秘密情報を復元でき、k-L個以下では秘密情報を復元できない手段を用いて秘匿演算を行うシステムにおける演算支援装置のコンピュータを、秘密情報に0でない値の乱数を秘匿加算する手段、及びその秘匿加算結果をそのまま秘匿演算に参加する全秘匿演算装置に送る手段として機能させるプログラム。 Let n be an integer of 2 or more, k be an integer with a minimum value of 2 and a maximum value of n, and L be an integer of 1 or more and k or less. A means to secretly add a non-zero integer to the secret information by using the computer of the calculation support device in the system that performs the secret calculation by using a means that cannot recover the secret information if the number of secret information is k-L or less. , And a program that functions as a means to send the secret addition result as it is to all the secret calculation devices that participate in the secret calculation. nを2以上の整数、kを、最小値が2で最大値がnの整数、Lを1以上k以下の整数とし、秘密情報をn個に分散し、n個のうちk個の分散値を集めれば秘密情報を復元でき、k-L個以下では秘密情報を復元できない手段を用いて秘匿演算を行うシステムにおける装置のコンピュータを、1個以上の第1の乱数を生成する手段、及び第1の乱数の各々を秘密分散した分散値の各々にかける手段として機能させるプログラム。 Let n be an integer of 2 or more, k be an integer with a minimum value of 2 and a maximum value of n, and L be an integer of 1 or more and k or less. The computer of the device in the system that performs the secret operation by using the means that can recover the secret information with less than kl, and the means to generate one or more first random numbers, and the first A program that functions as a means to apply each of the integers of 1 to each of the secretly distributed distributed values. nを2以上の整数、kを、最小値が2で最大値がnの整数、Lを1以上k以下の整数とし、秘密情報をn個に分散し、n個のうちk個の分散値を集めれば秘密情報を復元でき、k-L個以下では秘密情報を復元できない手段を用いて秘匿演算を行うシステムにおける秘匿演算装置のコンピュータを、請求項2による異なる乱数がかかった分散値に請求項1の装置によって公開された秘匿化秘密情報を作用させる手段、及びその手段の出力である同一の秘密情報に対して異なる乱数を作用させた分散値を用いて演算する手段として機能させるプログラム。 Let n be an integer of 2 or more, k be an integer with a minimum value of 2 and a maximum value of n, and L be an integer of 1 or more and k or less. The computer of the concealment calculation device in the system that performs the concealment calculation by means that the secret information cannot be restored with k-L or less can be charged to the distributed value to which different random numbers are applied according to claim 2. A program that functions as a means for operating the confidential secret information disclosed by the device of Item 1 and a means for calculating using a distributed value in which different random numbers are applied to the same secret information that is the output of the means. nを2以上の整数、kを、最小値が2で最大値がnの整数、Lを1以上k以下の整数とし、秘密情報をn個に分散し、n個のうちk個の分散値を集めれば秘密情報を復元でき、k-L個以下では秘密情報を復元できない手段を用いて秘匿演算を行うシステムにおける入力者装置のコンピュータを、用いる秘匿演算装置の数をt、入力数をuとしたとき、nをut以上として秘密分散を行う手段、その分散値をn/t個毎に分割して異なる乱数を乗算する手段、及びその異なる乱数が乗じられた分散値n/t個から少なくとも1つの分散値を秘匿演算装置に配布する手段として機能させるプログラム。 Let n be an integer of 2 or more, k be an integer with a minimum value of 2 and a maximum value of n, and L be an integer of 1 or more and k or less. The number of secret calculation devices used is t, and the number of inputs is u. Then, from the means for performing secret sharing with n being ut or more, the means for dividing the distribution value into n / t pieces and multiplying them by different random numbers, and the distribution value n / t pieces multiplied by the different random numbers. A program that functions as a means of distributing at least one distributed value to a secret computing device. nを2以上の整数、kを、最小値が2で最大値がnの整数、Lを1以上k以下の整数とし、秘密情報をn個に分散し、n個のうちk個の分散値を集めれば秘密情報を復元でき、k-L個以下では秘密情報を復元できない手段を用いて秘匿演算を行うシステムにおける秘匿演算装置のコンピュータを、分散値同士の乗算を行う手段と、乱数がかけられた分散値同士の積から乱数を削除する手段、及び乱数が削除された分散値に対して次数変換処理を1回以上繰り返す手段として機能させるプログラム。 Let n be an integer of 2 or more, k be an integer with a minimum value of 2 and a maximum value of n, and L be an integer of 1 or more and k or less. The secret information can be restored by collecting the secret information, and the computer of the secret arithmetic unit in the system that performs the secret calculation by the means that the secret information cannot be restored with k-L or less is multiplied by the means for multiplying the distributed values and the integer. A program that functions as a means for deleting a random number from the product of the distributed values and a means for repeating the order conversion process for the distributed value from which the random number has been deleted. nを2以上の整数、kを、最小値が2で最大値がnの整数、Lを1以上k以下の整数とし、秘密情報をn個に分散し、n個のうちk個の分散値を集めれば秘密情報を復元でき、k-L個以下では秘密情報を復元できない手段を用いて秘匿演算を行うシステムにおける秘匿演算装置のコンピュータを、請求項1による秘匿化秘密情報から請求項1で加算された定数を秘匿減算する手段、及びその秘匿減算結果が0であるかを検証する手段と、0でないときに秘匿減算された値からその逆数を生成する手段として機能させるプログラム。 Let n be an integer of 2 or more, k be an integer with a minimum value of 2 and a maximum value of n, and L be an integer of 1 or more and k or less. The computer of the concealment calculation device in the system that performs the concealment calculation by means that the confidential information cannot be restored with kl or less can be recovered from the concealment secret information according to claim 1. A program that functions as a means for secretly subtracting an added constant, a means for verifying whether the secret subtraction result is 0, and a means for generating the reciprocal of the secretally subtracted value when it is not 0. nを2以上の整数、kを、最小値が2で最大値がnの整数、Lを1以上k以下の整数とし、秘密情報をn個に分散し、n個のうちk個の分散値を集めれば秘密情報を復元でき、k-L個以下では秘密情報を復元できない手段を用いて秘匿演算を行うシステムにおける演算支援装置のコンピュータを、異なる乱数がかかった分散値を他の分散値と同じ乱数に変換する手段、及び同じ乱数がかかった秘密情報を復元する、または秘匿演算装置が復元できるようにする手段として機能させるプログラム。 Let n be an integer of 2 or more, k be an integer with a minimum value of 2 and a maximum value of n, and L be an integer of 1 or more and k or less. The computer of the arithmetic support unit in the system that performs the secret operation by the means that the secret information cannot be restored with less than kl, and the distributed value with different integers is different from the other distributed values. A program that functions as a means to convert to the same integer, and to restore confidential information with the same integer, or to enable a secret arithmetic unit to restore it.
JP2022010040A 2018-02-20 2022-01-26 Input person device, calculation support device, device, confidential calculation device, and program Active JP7240037B2 (en)

Priority Applications (2)

Application Number Priority Date Filing Date Title
JP2022010040A JP7240037B2 (en) 2018-02-20 2022-01-26 Input person device, calculation support device, device, confidential calculation device, and program
JP2023008279A JP2023052580A (en) 2022-01-26 2023-01-23 Input person device, calculation support device, device, concealment calculation device, and program

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
JP2018028308A JP7041951B2 (en) 2018-02-20 2018-02-20 Inputter device, calculation support device, and program
JP2022010040A JP7240037B2 (en) 2018-02-20 2022-01-26 Input person device, calculation support device, device, confidential calculation device, and program

Related Parent Applications (1)

Application Number Title Priority Date Filing Date
JP2018028308A Division JP7041951B2 (en) 2018-02-20 2018-02-20 Inputter device, calculation support device, and program

Related Child Applications (1)

Application Number Title Priority Date Filing Date
JP2023008279A Division JP2023052580A (en) 2022-01-26 2023-01-23 Input person device, calculation support device, device, concealment calculation device, and program

Publications (2)

Publication Number Publication Date
JP2022044737A true JP2022044737A (en) 2022-03-17
JP7240037B2 JP7240037B2 (en) 2023-03-15

Family

ID=87890717

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2022010040A Active JP7240037B2 (en) 2018-02-20 2022-01-26 Input person device, calculation support device, device, confidential calculation device, and program

Country Status (1)

Country Link
JP (1) JP7240037B2 (en)

Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2012127572A1 (en) * 2011-03-18 2012-09-27 富士通株式会社 Secret data processing method, program and device
WO2016129363A1 (en) * 2015-02-12 2016-08-18 学校法人東京理科大学 Calculating device relating to concealment computation system employing distribution of secrets

Patent Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2012127572A1 (en) * 2011-03-18 2012-09-27 富士通株式会社 Secret data processing method, program and device
WO2016129363A1 (en) * 2015-02-12 2016-08-18 学校法人東京理科大学 Calculating device relating to concealment computation system employing distribution of secrets

Non-Patent Citations (3)

* Cited by examiner, † Cited by third party
Title
AHMAD AKMAL AMINUDDIN, M. K., 岩村恵市: "演算の連続に対して安全な秘密分散法を用いた秘匿計算", 情報処理学会研究報告, JPN6021047641, 7 July 2017 (2017-07-07), pages 1 - 8, ISSN: 0004926758 *
神宮武志,岩村恵市: "除算を含む四則演算に適用可能な秘密分散法を用いた秘匿計算手法の提案", 電子情報通信学会技術研究報告, vol. 第115巻 第122号, JPN6021047638, 25 June 2015 (2015-06-25), pages 1 - 7, ISSN: 0004926756 *
青井健,神宮武志,岩村惠市: "n<2k−1における秘匿計算の安全性検討及び非対称秘密分散との応用", 電子情報通信学会技術研究報告, vol. 第116巻 第129号, JPN6021047639, 7 July 2016 (2016-07-07), pages 237 - 243, ISSN: 0004926757 *

Also Published As

Publication number Publication date
JP7240037B2 (en) 2023-03-15

Similar Documents

Publication Publication Date Title
CN110557245B (en) Method and system for SPDZ fault tolerant and secure multiparty computing
EP3725023B1 (en) Method for faster secure multiparty inner product with spdz
Sathya et al. A review of homomorphic encryption libraries for secure computation
JP6095792B2 (en) Secret bit decomposition apparatus, secret modulus conversion apparatus, secret bit decomposition method, secret modulus conversion method, program
WO2014007310A1 (en) Secret sharing system, data distribution device, distributed data conversion device, secret sharing method, and program
EP3866142B1 (en) Secure right shift computation system, secure division system, methods therefor, secure computation apparatus, and program
CN113434878B (en) Modeling and application method, device, equipment and storage medium based on federal learning
US20110060901A1 (en) Cryptographic System for Performing Secure Iterative Matrix Inversions and Solving Systems of Linear Equations
CN114614970A (en) Privacy data security processing method based on multi-calculator and homomorphic encryption
WO2023094453A1 (en) Secure multi-party computations
Mansouri et al. Learning from failures: Secure and fault-tolerant aggregation for federated learning
WO2017038761A1 (en) Secret calculation system, secret calculation device, and secret calculation method
JP7041951B2 (en) Inputter device, calculation support device, and program
WO2021124520A1 (en) Secret random number generation system, secret calculation device, secret random number generation method, and program
Aly et al. Practically efficient secure distributed exponentiation without bit-decomposition
JP7240037B2 (en) Input person device, calculation support device, device, confidential calculation device, and program
WO2020165931A1 (en) Information processing device, secret computation method, and program
WO2019111319A1 (en) Secret equality determination system, secret equality determination method and secret equality determination program recording medium
JP2023052580A (en) Input person device, calculation support device, device, concealment calculation device, and program
JP2004341152A (en) Secrecy distribution method, secrecy distribution system, and distribution calculation unit
WO2019111318A1 (en) Server device, secret equality determination system, secret equality determination method and secret equality determination program storage medium
CN114817954A (en) Image processing method, system and device
Catrina Optimization and tradeoffs in secure floating-point computation: products, powers, and polynomials
Pandey et al. Homomorphic Encryption of Neural Networks
JP5189799B2 (en) Secret information restoring apparatus, secret information restoring method and program

Legal Events

Date Code Title Description
A621 Written request for application examination

Free format text: JAPANESE INTERMEDIATE CODE: A621

Effective date: 20220126

A131 Notification of reasons for refusal

Free format text: JAPANESE INTERMEDIATE CODE: A131

Effective date: 20221122

A521 Request for written amendment filed

Free format text: JAPANESE INTERMEDIATE CODE: A523

Effective date: 20230123

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

A61 First payment of annual fees (during grant procedure)

Free format text: JAPANESE INTERMEDIATE CODE: A61

Effective date: 20230224

R150 Certificate of patent or registration of utility model

Ref document number: 7240037

Country of ref document: JP

Free format text: JAPANESE INTERMEDIATE CODE: R150