Secure computation system, secure computation device, secure computation method, and program
The secure computation system efficiently performs two-party secret computations using additive homomorphic encryption and commutative encryption, addressing inefficiencies in existing methods and enabling secure data combination and cross-tabulation.
Patent Information
- Application Number
- JP2023536228
- Authority / Receiving Office
- JP · JP
- Patent Type
- Patents
- Current Assignee / Owner
- Filing Date
- 2021-07-19
- Publication Date
- 2024-08-27
- Estimated Expiration
- 2041-07-19
AI Technical Summary
Existing two-party secret computation methods are inefficient due to the use of general circuits or specialized protocols requiring complete homomorphic calculations, which are computationally intensive.
A secure computation system employing additive homomorphic encryption and commutative encryption to efficiently perform two-party secret calculations, allowing only one party to obtain the calculation result while minimizing information disclosure to the other party.
Enables efficient two-party secret computations by using only additive homomorphic calculations, reducing computational overhead and enabling secure data combination and cross-tabulation table calculations between parties.
Smart Images

Figure 0007540599000015 
Figure 0007540599000013 
Figure 0007540599000016
Abstract
Description
[Technical field]
[0001] The present invention relates to a secure computation system, a secure computation device, a secure computation method, and a program. [Background technology]
[0002] When two parties each have data, and they are trying to obtain some kind of calculation result from those two pieces of data, there are many well-researched techniques to minimize the information that each party obtains other than the calculation result, and these are called two-party secure computation.
[0003]
number
[0004]
number
[0005]
number
[0006] In order to realize the above-mentioned calculations, two patterns are known in the prior art: performing the calculations in a general circuit manner using secret circuits or fully homomorphic encryption (e.g., Non-Patent Document 1), or using fully homomorphic encryption to utilize a protocol specialized for such applications (e.g., Non-Patent Document 2). [Prior art documents] [Non-patent literature]
[0007] [Non-Patent Document 1] Andrew Chi-Chih Yao: How to Generate and Exchange Secrets. FOCS 1986 [Non-Patent Document 2] Gentaro Katayama, Yutaka Yoshiura: Realization and Performance Comparison of Two-Party Private Cross-Tabulation with Anonymization Using Fully Homomorphic Encryption. Transactions of Information Processing Society of Japan, vol.61, No.6, 1175-1189 (June 2020) Summary of the Invention [Problem to be solved by the invention]
[0008] However, calculations using general circuits are obviously very inefficient, and even specialized protocols are inefficient because they contain inefficient processing such as fully homomorphic calculations (i.e., homomorphic calculations that use both addition and multiplication).
[0009] An embodiment of the present invention has been made in consideration of the above points, and has an object to efficiently execute a specific two-party secure computation. [Means for solving the problem]
[0010] In order to achieve the above object, a secure computation system according to one embodiment includes a first set of numerical values X=(x i,j )(i∈A1,j∈A2) and a second set of numbers Y=(y i,j) (i∈B1, j∈B2), the first secure computing device includes a first encryption unit which transmits a vector having elements which are ciphertexts obtained by encrypting elements of the A1 by commutative encryption to the second secure computing device, a second encryption unit which calculates a matrix T1' by permuting a matrix T1 having elements which are ciphertexts obtained by encrypting elements of the first numerical set X by additive homomorphic encryption based on the vector received from the second secure computing device, and transmits the matrix T1' to the second secure computing device, and a second encryption unit which, upon receiving a calculation result of the additive homomorphic computation from the second secure computing device, decrypts the calculation result by the additive homomorphic encryption, and obtains x i,j y i,j' the second secure computing device has a third encryption unit which transmits a vector having elements which are ciphertexts obtained by encrypting the elements of B1 using the commutative encryption to the first secure computing device, and a calculation unit which transmits to the first secure computing device a calculation result obtained by calculating, using the additive homomorphic calculation, the product of a transpose of a matrix representing the second numerical set Y and a matrix Z obtained by replacing the rows of the matrix T1' using a predetermined function. Effect of the Invention
[0011] It is possible to efficiently perform certain two-party secure computations. [Brief description of the drawings]
[0012] [Figure 1] 1 is a diagram showing an example of the overall configuration of a secure computation system according to an embodiment of the present invention; [Diagram 2] FIG. 2 is a diagram illustrating an example of a hardware configuration of a secure computing device according to the present embodiment. [Diagram 3] FIG. 11 is a sequence diagram showing a two-party secure computation process in the first embodiment. [Figure 4] FIG. 11 is a sequence diagram showing a two-party secure computation process in the second embodiment. DETAILED DESCRIPTION OF THE PREFERRED EMBODIMENTS
[0013] An embodiment of the present invention will be described below. In this embodiment, parties A and B each have a set of numerical values.
[0014]
number
[0015]
number
[0016]
number
[0017] <Overall configuration of secure computation system 1> The secure computation system 1 according to this embodiment includes a secure computation apparatus 10 and a secure computation apparatus 20. The secure computation apparatus 10 and the secure computation apparatus 20 are communicatively connected via a communication network N including, for example, the Internet.
[0018] The secure computing apparatus 10 is a computer or computer system that functions as the party A. For example, the secure computing apparatus 10 is a database server or the like that functions as the party A.
[0019] Here, the secure computing device 10 includes a secure computing unit 101 and a communication unit 102. Each of these units is realized by, for example, processing executed by one or more programs installed in the secure computing device 10 in a processor such as a CPU (Central Processing Unit).
[0020] The secure computing apparatus 10 also includes a storage unit 103. The storage unit 103 is realized by an auxiliary storage device such as a hard disk drive (HDD) or a solid state drive (SSD).
[0021] The secure computation unit 101 performs two-party secure computation with the secure computation apparatus 20, which will be described in a first or second embodiment below, to obtain function values f1, . . . , f n The communication unit 102 transmits and receives various information necessary for the two-party secure computation. The storage unit 103 stores a set of numerical values X, A1, and A2.
[0022] The secure computing device 20 is a computer or computer system that functions as party B. For example, the secure computing device 20 is a database server or the like that functions as party B.
[0023] Here, the secure computing device 20 includes a secure computing unit 201 and a communication unit 202. Each of these units is realized, for example, by a process in which one or more programs installed in the secure computing device 20 are executed by a processor such as a CPU.
[0024] The secure computing apparatus 20 also includes a storage unit 203. The storage unit 203 is realized by an auxiliary storage device such as an HDD or SSD.
[0025] The secure computation unit 201 performs two-party secure computation, which will be described in the following embodiment 1 or 2, with the secure computation apparatus 10. The communication unit 202 transmits and receives various information required for the two-party secure computation. The storage unit 203 stores a set of numerical values Y, B1, and B2.
[0026] <Hardware configuration of the secure computing devices 10 and 20> The hardware configuration of the secure computing apparatuses 10 and 20 according to this embodiment is shown in Fig. 2. Note that since the secure computing apparatuses 10 and 20 can be realized with the same hardware configuration, the hardware configuration of the secure computing apparatus 10 will be mainly described below.
[0027] 2, the secure computing device 10 according to this embodiment is realized by the hardware configuration of a general computer or computer system, and includes an input device 301, a display device 302, an external I / F 303, a communication I / F 304, a processor 305, and a memory device 306. Each of these pieces of hardware is connected to each other via a bus 307 so as to be able to communicate with each other.
[0028] The input device 301 is, for example, a keyboard, a mouse, a touch panel, various physical buttons, etc. The display device 302 is, for example, a display, a display panel, etc. Note that the secure computing devices 10 and 20 may not have at least one of the input device 301 and the display device 302, for example.
[0029] The external I / F 303 is an interface with a recording medium 303a etc. Examples of the recording medium 303a include a CD (Compact Disc), a DVD (Digital Versatile Disk), an SD memory card (Secure Digital memory card), and a USB (Universal Serial Bus) memory card.
[0030] The communication I / F 304 is an interface with the communication network N. The processor 305 is, for example, various types of arithmetic devices such as a CPU, etc. The memory device 306 is, for example, various types of storage devices such as an HDD, SSD, flash memory, RAM (Random Access Memory), and ROM (Read Only Memory).
[0031] The secure computing apparatuses 10 and 20 according to the present embodiment can realize various processes described below by having the hardware configuration shown in Fig. 2. Note that the hardware configuration shown in Fig. 2 is an example, and the secure computing apparatuses 10 and 20 may have, for example, multiple processors 305, multiple memory devices 306, or various other hardware than the hardware shown in Fig. 2. Also, in Fig. 2, the case where the hardware configurations of the secure computing apparatuses 10 and 20 are the same has been described, but the hardware configurations of the secure computing apparatuses 10 and 20 may be different.
[0032] <Example 1> The first embodiment will be described below.
[0033] ≪Preparation≫ Let the public key of additive homomorphic encryption be PK and the private key be SK, and let aEnc(PK,·) be the encryption algorithm of additive homomorphic encryption, and aDec(SK,·) be the decryption algorithm of additive homomorphic encryption.Furthermore, the additive homomorphic computation of ciphertexts CT1 and CT2 of additive homomorphic encryption is simply denoted additively as CT1+CT2.
[0034] Let s be the secret key of the commutative encryption and Enc(s, ) be the encryption algorithm of the commutative encryption. Commutative encryption is an encryption algorithm for an arbitrary natural number k and k secret keys s1, , s k This is a cryptosystem that has the following properties for Enc(Πs i ,m)=Enc(s k ,Enc(s k-1 , ,Enc(s1,m)) is satisfied (the right-hand side means that m is encrypted with s1, which is then encrypted with s2, and then encrypted with s3). k ).
[0035] In the following, we consider an arbitrary natural number k and a plaintext set m = (m1, ,m k ) Τ For Enc(s,m)=(Enc(s,m1), ,Enc(s,m k)) Τ The same notation is used even if the plaintext set is a matrix. Note that T represents transposition.
[0036] The i-th element of vector t is denoted as t[i].
[0037] <Two-party secure computation process in the first embodiment> The two-party secure computation process in the first embodiment will be described with reference to FIG.
[0038] Step S101: The secure computation unit 101 of the secure computation apparatus 10 randomly selects a private key a for the commutative cipher, and calculates t1=Enc(a, A1).
[0039] Step S102: The communication unit 102 of the secure computing apparatus 10 transmits t1 to the secure computing apparatus 20.
[0040] Step S103: The secure computation unit 201 of the secure computation apparatus 20 randomly selects a private key b of the commutative encryption, and calculates t2=Enc(b, B1).
[0041] Step S104: The communication unit 202 of the secure computing apparatus 20 transmits t2 to the secure computing apparatus 10.
[0042] Step S105: The secure computation unit 101 of the secure computation apparatus 10 calculates t3=Enc(a, t2') for t2' obtained by randomly rearranging the elements of t2.
[0043] Step S106: The communication unit 102 of the secure computing apparatus 10 transmits t3 to the secure computing apparatus 20.
[0044] Step S107: The secure computation unit 201 of the secure computation device 20 calculates t4=Enc(1 / b, t3) and sets t5=t1∪t4 (at this time, the order of the elements of t5 is such that the elements of t1 are arranged in order and the elements of t4 arranged in order excluding the elements that overlap with t1 are concatenated). Next, the secure computation unit 201 of the secure computation device 20 randomly selects the private keys c and d of the commutative cipher and calculates t6=Enc(c, t5) and t7=Enc(d, B1).
[0045] Step S108: The communication unit 202 of the secure computing apparatus 20 transmits t6 and t7 to the secure computing apparatus 10.
[0046] Step S109: The secure computation unit 101 of the secure computation device 10 randomly selects a private key e for the commutative encryption and a public key and a private key (PK, SK) for the additive homomorphic encryption. Next, the secure computation unit 101 of the secure computation device 10 calculates t8=Enc(e / a, t6) and obtains the following:
[0047]
number
[0048] Step S110: The communication unit 102 of the secure computing apparatus 10 transmits t8′, T1′, and t9 to the secure computing apparatus 20.
[0049] Step S111: The secure computation unit 201 of the secure computation device 20 calculates v=Enc(1 / c,t8') and w=Enc(1 / d,t9). Next, the secure computation unit 201 of the secure computation device 20 sets φ as a function that satisfies w[i]=v[φ(i)], and sets Z as a matrix of |B1|×|A2|, the i-th row of which is the φ(i)-th row of T1'. Then, the secure computation unit 201 of the secure computation device 20 calculates T2=YΤ Calculate Z using additive homomorphic computation of additive homomorphic encryption.
[0050] Step S112: The communication unit 202 of the secure computing apparatus 20 transmits T2 to the secure computing apparatus 10.
[0051] Step S113: The secure computing unit 101 of the secure computing apparatus 10 decrypts the decrypted result (j B ,j A ) Ingredients are
[0052]
number
[0053] <Example 2> Hereinafter, a description will be given of the embodiment 2. The embodiment 2 is an improved version of the protocol in the embodiment 1, in which the amount of communication and the number of rounds are reduced.
[0054] ≪Preparation≫ Let L = |B1\A1|. Although this is an abuse of notation, if a is included in the elements of vector t, we write a∈t. Furthermore, let D be a set where D∩(A1∪B1)=φ (empty set). For the rest, we will use the same symbols and notations as in Example 1.
[0055] <<Two-party secure computation process in the second embodiment>> The two-party secure computation process in the second embodiment will be described with reference to FIG.
[0056] Step S201: The secure computation unit 101 of the secure computation apparatus 10 randomly selects a private key a for the commutative cipher, and calculates t1=Enc(a, A1).
[0057] Step S202: The communication unit 102 of the secure computing apparatus 10 transmits t1 to the secure computing apparatus 20.
[0058] Step S203: The secure computation unit 201 of the secure computation device 20 randomly selects a private key b of the commutative cipher. Next, the secure computation unit 201 of the secure computation device 20 calculates t2=Enc(b, t1') for t1' obtained by randomly rearranging the elements of t1. In addition, the secure computation unit 201 of the secure computation device 20 calculates t3=Enc(b, B1) and t4=Enc(b, D).
[0059] Step S204: The communication unit 202 of the secure computing apparatus 20 transmits t2, t3, and t4 to the secure computing apparatus 20.
[0060] Step S205: The secure computation unit 101 of the secure computation apparatus 10 calculates t5=Enc(1 / a, t2), and calculates each element t6[i] of t6={t6[1], . . . , t6[|B1|]} as follows.
[0061]
number
[0062]
number
[0063]
number
[0064] Step S206: The communication unit 102 of the secure computing apparatus 10 transmits t7, t8′, and T1′ to the secure computing apparatus 20.
[0065] Step S207: The secure computation unit 201 of the secure computation device 20 calculates v=t8' and w=Enc(1 / b,t7). Next, the secure computation unit 201 of the secure computation device 20 sets φ as a function that satisfies w[i]=v[φ(i)], and sets Z as a matrix of |B1|×|A2|, the i-th row of which is the φ(i)-th row of T1'. Then, the secure computation unit 201 of the secure computation device 20 calculates T2=Y Τ Calculate Z using additive homomorphic computation of additive homomorphic encryption.
[0066] Step S208: The communication unit 202 of the secure computing apparatus 20 transmits T2 to the secure computing apparatus 10.
[0067] Step S209: The secure computing unit 101 of the secure computing apparatus 10 decrypts the decrypted result (j B ,j A ) Ingredients are
[0068]
number
[0069] <Summary> As described above, in the secure computation system 1 in the first and second embodiments, the function value shown in the above formula 6 (i.e., the function value representing an aggregate value between elements of the value set X and elements of the value set Y) is calculated by two-party secure computation from the value set X held by the party A and the value set Y held by the party B, and only the party A can obtain these function values. Moreover, at this time, the function value is calculated using only additive homomorphic computation, which is an efficiently executable process, without using fully homomorphic computation, which is an inefficient process. This makes it possible to efficiently execute two-party secure computation for calculating the function value shown in the above formula 6.
[0070] As described above, if the function value shown in the above formula 6 can be calculated, it becomes possible to, for example, equally combine the databases held by both parties A and B and calculate a cross-tabulation table of the associated data. Therefore, the secure computing device 10 according to this embodiment may further calculate a cross-tabulation table and output it (including displaying, saving, transmitting to another device or apparatus, etc.).
[0071] The present invention is not limited to the above-described embodiments specifically disclosed, and various modifications, changes, combinations with known technologies, etc. are possible without departing from the scope of the claims. [Explanation of symbols]
[0072] 10 Secret computing device 20 Secret Computing Device 101 Secret Computing Department 102 Communications Department 103 Storage section 201 Secret Computing Department 202 Communications Department 203 Storage section 301 Input Device 302 Display device 303 External I / F 303a Recording media 304 Communication I / F 305 Processor 306 Memory Device 307 Bus N Communication Network
Claims
1. First set of values X=(x i,j ) (i∈A 1 , j∈A 2 ) and a second value set Y=(y i,j ) (i∈B 1 , j∈B 2 and a second secure computing device having a The first secure computing device is The above A 1 a first encryption unit that transmits a vector having elements that are ciphertexts obtained by encrypting the elements of A matrix T having elements that are ciphertexts obtained by encrypting the elements of the first numerical set X by additive homomorphic encryption based on the vector received from the second secure computing device. 1 The matrix T 1 ', and the matrix T 1 a second encryption unit that transmits the second secure computing device; When a calculation result of the additive homomorphic computation is received from the second secure computing device, the calculation result is decrypted by the additive homomorphic encryption, and x i,j y i,j' i∈A 1 ∩B 1 The sum of the (j', j) components is 2 |×|A 2 A decoding unit for calculating a matrix; The second secure computing device is B 1 a third encryption unit that transmits a vector having elements that are ciphertexts obtained by encrypting the elements of a transpose of a matrix representing the second set of values Y; and 1 a calculation unit that calculates, by the additive homomorphic calculation, a product of a matrix Z obtained by permuting rows of the matrix ' by a predetermined function, and transmits the result of the calculation to the first secure computing device; A secure computing system having the above structure.
2. The first encryption unit The above A 1A vector t whose elements are the ciphertexts obtained by encrypting the elements of 1 to the second secure computing device, The second secure computing device transmits the vector t 2 Upon receiving the vector t 2 The elements of the vector t are rearranged. 2 ', and the vector t 2 A vector t ′ whose elements are the ciphertexts obtained by encrypting the elements of 3 to the second secure computing device, The third encryption unit B 1 A vector t whose elements are ciphertexts obtained by encrypting the elements of 2 to the first secure computing device, The first secure computing device transmits a vector t 3 Upon receiving the vector t 3 A vector t whose elements are ciphertexts obtained by encrypting the elements of 4 Calculate the vector t 1 and the vector t 4 A vector t with elements 5 and the vector t 5 A vector t whose elements are ciphertexts obtained by encrypting the elements of 6 And the above B 1 A vector t whose elements are ciphertexts obtained by encrypting the elements of 7 to the first secure computing device, The second encryption unit includes: The vector t 6 and the vector t 7 When the vector t 6 A vector t whose elements are ciphertexts obtained by encrypting the elements of 8 and the matrix T 1 and the vector t 8 and the matrix T 1 A vector t, where the rows of 8 ' and the matrix T 1' and the vector t 7 A vector t whose elements are ciphertexts obtained by encrypting the elements of 9 to the second secure computing device, The calculation unit is The vector t 8 ' and the matrix T 1 ' and the vector t 9 When the vector t 8 A vector v has elements that are ciphertexts obtained by encrypting the elements of vector t 9 and a vector w whose elements are ciphertexts obtained by encrypting the elements of 1 2. The secure computation system according to claim 1, wherein the matrix Z is calculated to be the φ(i)th row of i′, and the product of the transposed matrix and the matrix Z is calculated by the additive homomorphic computation.
3. The first encryption unit The above A 1 A vector t whose elements are the ciphertexts obtained by encrypting the elements of 1 to the second secure computing device, The second encryption unit The second secure computing device transmits the vector t 2 and vector t 3 and vector t 4 Upon receiving the vector t 2 A vector t whose elements are ciphertexts obtained by encrypting the elements of 5 Calculate the vector t 3 and the vector t 5 Based on the relationship with 3 and the vector t 4 From vector t 6 Calculate the vector t 6 A vector t whose elements are ciphertexts obtained by encrypting the elements of 7 And the A 1 and D∩(A 1 ∪B 1 ) = φ, and a vector t 8 and the matrix T 1 and the vector t 8 and the matrix T 1 A vector t, where the rows of 8 ' and the matrix T 1 ' and the vector t 7 to the second secure computing device, The third encryption unit The vector t 1 When the vector t 1 A vector t with the elements of 1 ', and the vector t 1 A vector t ′ whose elements are the ciphertexts obtained by encrypting the elements of 2 And the above B 1 A vector t whose elements are ciphertexts obtained by encrypting the elements of 3 and a vector t 4 to the first secure computing device, The calculation unit is The vector t 8 ' and the matrix T 1 ' and the vector t 7 When the vector t 8 Let v be a vector v, and let t 7 A vector w having elements of ciphertext obtained by encrypting the elements of the matrix T by the commutative cipher is calculated, and the i-th row is converted to the matrix T by using a function φ that makes the i-th element v[i] of the vector v equal to the φ(i)-th element w[φ(i)] of the vector w. 1 2. The secure computation system according to claim 1, wherein the matrix Z is calculated to be the φ(i)th row of i′, and the product of the transposed matrix and the matrix Z is calculated by the additive homomorphic computation.
4. Numerical set Y = (y i,j) (i∈B 1 , j∈B 2 ), and a set of values X=(x i,j ) (i∈A 1 , j∈A 2 ) a secure computing device having The above A 1 a first encryption unit that transmits a vector having elements that are ciphertexts obtained by encrypting the elements of A matrix T having elements that are ciphertexts obtained by encrypting the elements of the numerical set X using additive homomorphic encryption based on the vector received from the other secure computing device. 1 The matrix T 1 ', and the matrix T 1 a second encryption unit that transmits the second encryption key ' to the other secure computing device; When a calculation result of the additive homomorphic computation is received from the other secure computing device, the calculation result is decrypted by the additive homomorphic encryption, and x i,j y i,j' i∈A 1 ∩B 1 The sum of the (j', j) components is 2 |×|A 2 | A secure computation device having a decryption unit that calculates a matrix.
5. Numeric set X = (x i,j ) (i∈A 1 , j∈A 2 ), and a set of values Y=(y i,j ) (i∈B 1 , j∈B 2 ) a secure computing device having B 1 an encryption unit that transmits a vector having elements that are ciphertexts obtained by encrypting the elements of A matrix T whose elements are ciphertexts obtained by encrypting the elements of the numerical set X using additive homomorphic encryption 1 The matrix T 1 ', the transpose of the matrix representing the value set Y and the matrix T 1a calculation unit that calculates a product of the matrix Z obtained by permuting rows of the matrix ' by a predetermined function using the additive homomorphic calculation of the additive homomorphic encryption; A secure computing device having the above configuration.
6. First set of values X=(x i,j ) (i∈A 1 , j∈A 2 ) and a second value set Y=(y i,j ) (i∈B 1 , j∈B 2 and a second secure computing device having a second key, The first secure computing device, The above A 1 a first encryption step of transmitting a vector having elements each of which is a ciphertext obtained by encrypting the elements of A matrix T having elements that are ciphertexts obtained by encrypting the elements of the first numerical set X by additive homomorphic encryption based on the vector received from the second secure computing device. 1 The matrix T 1 ', and the matrix T 1 a second encryption step of transmitting ' to the second secure computing device; When a calculation result of the additive homomorphic computation is received from the second secure computing device, the calculation result is decrypted by the additive homomorphic encryption, and x i,j y i,j' i∈A 1 ∩B 1 The sum of the (j', j) components is 2 |×|A 2 |, and a decoding procedure for computing the matrix; The second secure computing device, B 1 a third encryption step of transmitting a vector having elements each of which is a ciphertext obtained by encrypting the elements of a transpose of a matrix representing the second set of values Y; and 1a calculation step of calculating, by the additive homomorphic calculation, a product of the matrix Z obtained by permuting rows of the matrix ' by a predetermined function, and transmitting the result of the calculation to the first secure computing device; A secret computation method for performing
7. A program for causing a computer to function as a first secure computing device or a second secure computing device included in the secure computing system according to any one of claims 1 to 3.
Citation Information
Patent Citations
Secret computing system, first secret computing device, second secret computing device, secrecy circuit generation method, secrecy circuit evaluation method, and program
JP2018013608A
