SECRET JOINING SYSTEM, METHOD, SECRET CALCULATION APPARATUS AND PROGRAM

Information

  • Patent Application
  • 20210263921
  • Publication Number
    20210263921
  • Date Filed
    June 13, 2019
    5 years ago
  • Date Published
    August 26, 2021
    3 years ago
Abstract
A secure joining system is a secure joining system comprising a plurality of secure computation apparatuses; and the plurality of secure computation apparatuses are provided with vector joining parts 11n, first permutation calculating parts 12n, first permutation applying parts 13n, first vector generating parts 14n, second vector generating parts 15n, bit-flipping parts 16n, second permutation calculating parts 17n, second permutation applying parts 18n, third vector generating parts 19n, inverse permutation applying parts 110n, vector separating parts 111n, third permutation applying parts 112n, attribute value permutating parts 113n and fourth vector generating parts 114n.
Description
TECHNICAL FIELD

This invention relates to secure computation technology. In particular, this invention relates to a technique for joining two tables while maintaining confidentiality.


BACKGROUND ART

In the field of secure computation technology, a technique for joining two tables while maintaining confidentiality is required.


As the technique for joining two tables while maintaining confidentiality, for example, a technique described in Non-patent literature 1 is known. In Non-patent literature 1, an equijoin with key duplication is realized.


PRIOR ART LITERATURE
Non-Patent Literature

Non-patent literature 1: “An Efficient Equi-Join Algorithm for Secure Computation and Its Implementation Toward Secure Comprehensive Analyses of Users' Athibute and History Information”, Naoto Kiribuchi, Dai Ikarashi, Genbu Morohashi and Koki Hamada, CS52016, 2016


SUMMARY OF THE INVENTION
Problems to be Solved by the Invention

This invention provides a secure joining system that, when there is no key duplication, joins two tables while maintaining confidentiality at a higher speed than the technique of Non-patent literature 1, a method, a secure computation apparatus and a program.


Means to Solve the Problems

A secure joining system according to one aspect of this invention is a secure joining system comprising a plurality of secure computation apparatuses, wherein F is an arbitrary ring, [α] represents shares obtained by α being secret-shared when α is an arbitrary vector, {{β}} represents shares obtained by β being secret-shared when β is an arbitrary permutation, m0, m, L0 and L1 are integers equal to or larger than 1, k0∈Fm0 is a vector of keys of a first table, k1∈Fm1 is a vector of keys of a second table, v0,p∈Fm0 is a vector of attribute values of attributes p of the first table when p=0, . . . , L0-1 is assumed, v1,q∈Fm1 is a vector of attribute values of attributes q of the second table when q=0, . . . , L1-1 is assumed, and π0 and π1 are predetermined permutations of lengths m0 and m1, respectively; and the plurality of secure computation apparatuses are provided with: a plurality of vector joining parts generating shares [k′] of a vector k′∈[F]m0+m1 obtained by joining the vector k0 and the vector k1, using shares [k0] of the vector k0 and shares [k1] of the vector k1; a plurality of first permutation calculating parts generating shares {{σ}} of a permutation a that performs stable sorting of the vector k′ in ascending order, using the shares [k′]; a plurality of first permutation applying parts generating shares [σ(k′)] of a vector σ(k′) obtained by applying the permutation σ to the vector k′, using the shares [k′] and the shares {{σ}}; a plurality of first vector generating parts generating shares [e] of a vector e that has 1 as an element corresponding to a certain element of the vector σ(k′) if the certain element and an element next to the certain element are the same and has 0 as the element corresponding to the certain element if the certain element and the element next to the certain element are different, using the shares [σ(k′)]; a plurality of second vector generating parts generating shares [e′] of a vector e′ that has 1 as an element corresponding to a certain element of the vector e if one of the certain element and an element before the certain element is 1 and, otherwise, has 0 as the element corresponding to the certain element, using the shares [e]; a. plurality of bit-flipping parts generating shares [e″] of a vector e″ obtained by bit-flipping each element of the vector e′, using the shares [e′]; a plurality of second permutation calculating parts generating shares {{σ′}} of a permutation σ′ that performs stable sorting of the vector e″ in ascending order, using the shares [e″]; a plurality of second permutation applying parts generating shares [σ′(e″)] of a vector σ′(e″) obtained by applying the permutation σ′ to the vector e″, using the shares [e″] and the shares {{σ}}; a plurality of third vector generating parts generating shares [x] of a vector x that has └i/2┘ as ant element corresponding to a certain element i of the vector σ′(e″) if the certain element i is 0 and has 0 as the element corresponding to the certain element i if the certain element i is not 0, using the shares [σ′(e″)]; a plurality of inverse permutation applying parts generating shares [σ−1(σ′−1(x)] of a vector σ−1(σ′−1(x)) obtained by applying an inverse permutation σ′−1 of the permutation σ′ and an inverse permutation σ−1 of the permutation o to the vector x, using the shares [x], the shares {{σ}} and the shares {{σ′}}; a plurality of vector separating parts generating shares [s0] of a vector s0 composed of m0 elements from the top of the vector σ−1(σ′−1(x)) and shares [s1] of a vector s1 composed of remaining m1 elements of the vector σ−1(σ′−1(x)), using the shares [σ−1(σ′−1(x))], a plurality of third permutation applying parts generating shares [π0(s0)] of a vector τ0:=π0(s0) obtained by applying a permutation π0 to the vector s0 and shares [π1(s1)] of a vector τ1:=π1(s1) obtained by applying a permutation π1 to the vector s1, using the shares [s0], the shares [s1] and the permutations π0 and π1, and publishing τ0:=π0(s0) and τ1:=π1(s1); a plurality of attribute value permutating parts generating shares [v′0,p] of a vector v′0,p obtained by per mutating a vector v0,p of attribute values of the attributes p of the first table by the permutation π0 and shares [v′1,q] of a vector v′1,q obtained by permutating a vector v1,q of attribute values of the attributes q of the second table by the permutation π1, using the shares {{π0}} of the permutation π0, the shares {{π1}} of the permutation π1, the shares [v0,p] of the vector v0,p and the shares [v1,q] of the vector v1,q; and a plurality of fourth vector generating parts generating shares [v″0,p] of a vector v″0,p that has the i′-th element of the vector v′0,p as the (i′-1)th element if the i′-th element of the vector τ0 is not 0, and shares [v″1,q] of a vector v″1,q that has the i′-th element of the vector v′1,q as the (i′-1)th element if the i′-th element of the vector τ1 is not 0, using the vector τ0, the vector τ1, the shares [v′0,p] and the shares [v′1,q].


Effects of the Invention

By using an inverse permutation, it is possible to, when there is no key duplication, join two tables while maintaining confidentiality at a higher speed than the technique of Non-patent literature 1.





BRIEF DESCRIPTION OF THE DRAWINGS


FIG. 1 is a diagram illustrating a functional configuration of a secure joining system;



FIG. 2 is a diagram illustrating a functional configuration of a secure computation apparatus;



FIG. 3 is a diagram illustrating a process procedure of a secure joining method; and



FIG. 4 is a diagram illustrating a functional configuration example of a computer.





DETAILED DESCRIPTION OF THE EMBODIMENT

An embodiment of this invention will be described below in detail. Note that, in the drawings, components having the same function will be given the same reference numeral, and duplicated description will be omitted.


A configuration example of a secure joining system of the embodiment will be described with reference to FIG. 1. The secure joining system includes N (≥2) secure computation apparatuses 11, . . . , 1N. In the present embodiment, each of the secure computation apparatuses 11, . . . , 1N is connected to a communication network 2. The communication network 2 is a circuit-switched or packet-switched communication network configured so that the connected apparatuses can mutually communicate with one another, and is, for example, the Internet, a LAN (local area network), a WAN (wide area network) or the like. Note that each apparatus is not necessarily required to be able to communicate online via the communication network 2. For example, a configuration may be made in which information to be inputted to the secure computation apparatuses 11, . . . , 1N is stored into a portable recording medium such as a magnetic tape and a USB memory and inputted to the secure computation apparatuses 11, . . . , 1N from the portable recording medium offline.


A configuration example of the secure computation apparatuses 1n (n=1, . . . , N) included in the secure joining system will be described with reference to FIG. 2. For example, as shown in FIG. 2, the secure computation apparatuses 1n of the secure joining system are provided with vector joining parts 11n, first permutation calculating parts 12n, first permutation applying parts 13n, first vector generating parts 14n, second vector generating parts 15n, bit-flipping parts 16n, second permutation calculating parts 17n, second permutation applying parts 18n, third vector generating parts 19n, inverse permutation applying parts 110n, vector separating parts 111n, third permutation applying parts 112n, attribute value permutating parts 113n, and fourth vector generating parts 114n, respectively.


By each component of the secure computation apparatuses 1n (1≤n≤N) performing a process of each step described later in cooperation with each component of the other secure computation apparatuses 1n′ (n′=1, . . . , N; n≠n′), a secure joining method of the embodiment is realized.


Note that the processing of each step is performed by secure computation. in other words, the secure computation apparatuses 1n perform the process of each step without restoring shares, in other words, without knowing content of the shares.


Each of the secure computation apparatuses 1n is, for example, a special apparatus configured by a special program being read into a well-known or dedicated computer having a central processing unit (CPU), a random access memory (RAM) and the like. For example, the secure computation apparatuses 1n execute each process under the control of the central processing unit. Data inputted to the secure computation apparatuses 1n and data obtained by each process are, for example, stored into the random access memory, and the data stored in the random access memory is read out to the central processing unit and used for other processes as necessary. At least a part of each component of the secure computation apparatuses 1n may be configured with hardware such as an integrated circuit.


In the description below, it is assumed that [α] represents shares obtained by α being secret-shared when α is an arbitrary vector, and {{β}} represents shares obtained by β being secret-shared when β is an arbitrary permutation.


A process procedure of a secure joining method executed by the secure joining system of the embodiment will be described with reference to FIG. 3.


The secure joining system described below secretly and vertically joins a first table and a second table. In other words, the secure joining system described below obtains attribute values of the first table and attribute values of the second table about keys common to the first table and the second table while maintaining confidentiality


It is assumed that m0, m1, L0 and L1 are integers equal to or larger than 1. Here, m0, m1, L0 and L1 may be the same values or may be different value.


The first table has m0 records. Each of the m0 records has one key and attribute values of L0 attributes. It is assumed that k0∈Fm0 is a vector of keys of the first table. When p=0, . . . , L0-1 is assumed, it is assumed that v0,p∈Fm0 is a vector of attribute values of attributes p of the first table. It is assumed that there are not duplicate keys in the first table.


Here, a superscript m0 of [F]m0 means “m0”. Thus, in a superscript, an expression of a further superscript or subscript may be omitted. Similarly, in a subscript, an expression of a further superscript or subscript may be omitted.


The second table has m1 records. Each of the m1 records has one key and attribute values of L1 attributes. It is assumed that k1∈Fm1 is a vector of keys of the second table. When q=0, . . . , L1-1 is assumed, it is assumed that v1,q∈Fm1 is a vector of attribute values of attributes q of the second table. It is assumed that there are not duplicate keys in the second table.


For example, it is assumed that the number of records of the first table is three, and that the first table is configured with a key vector k0=(1,2,3)T and an attribute value vector v0,1=(5,10,1)T of one attribute z1.


Further, it is assumed that the number of records of the second table is four, and that the second table is configured with a key vector k1=(1,3,4,5)T and an attribute value vector v1,1=(2,4,9,8)T of one attribute z1′.


<Step S1>


Shares [k0] of the vector k0 and shares [k1] of the vector k1 are inputted to the vector joining parts 111, . . . , 11N.


The vector joining parts 111, . . . , 11N join [k0] and [k1] to obtain [k′]∈[F]m0+m1.


More specifically, the vector joining parts 111, . . . , 11N generate shares [k′] of a vector k′∈[F]m0+m1 obtained by joining the vector k0 and the vector k1, using the shares [k0] of the vector k0 and the shares [k1] of the vector k1 (step S1).


The generated shares [k′] are outputted to the first permutation calculating parts 121, . . . , 12N and the first permutation applying parts 131, . . . , 13N.


For example, the vector k0=(1,2,3)T and the vector k1=(1,3,4,5)T are assumed. In this case, the vector k′=(1,2,3,1,3,4,5)T is obtained.


<Step S2>


The shares [k′] are inputted to the first permutation calculating parts 121, . . . , 12N.


The first permutation calculating parts 121, . . . , 12N obtain a sort {{σ}} of [k′].


More specifically, the first permutation calculating parts 121, . . . , 12N generate shares {{σ}} of a permutation σ that performs stable sorting of the vector k′ in ascending order, using the shares [k′] (step S2).


The stable sorting refers to such that order of equal data before the sorting is stored after the sorting. The generation of the shares {{σ}} of the permutation σ that performs the stable sorting can be realized, for example, by a method of Reference Literature 1.


Reference Literature 1: “A Design and an Implementation of Super-High-Speed Multi-Party Sorting: The Day When Multi-Party Computation Reaches Scripting Languages”, Dai Ikarashi, Koki Hamada, Ryo Kikuchi and Koji Chida, CSS2017, 2017


The generated shares {{σ}} are outputted to the first permutation applying parts 131, . . , 13N the inverse permutation applying parts 1101, . . . , 110N.


For example, the vector k′=(1,2,3,1,3,4,5)T is assumed. In this case, the permutation σ is as shown by Formula (1). For example, when it is assumed that numbers are written with 1 as start, each column (i,j)T of the permutation σ means that the i-th element of the vector to which the permutation is applied is moved to the j-th position.







[

Formula





1

]














σ
=

(



1


2


3


4


5


6


7




1


3


4


2


5


6


7



)





(
1
)







Note that each element of the vector k′ may be such that is obtained by bit decomposition. In other words, each element of the vector k′ may be such that is expressed by 0 and 1 bits.


<Step S3>


The shares [k′] and the shares {{σ}} are inputted to the first permutation applying parts 131, . . . , 13N.


The first permutation applying parts 131, . . . , 13N apply {{σ}} to [k′] to obtain [σ(k′)].


More specifically, the first permutation applying parts 131, . . . , 13N generate shares [σ(k′)] of a vector σ(k′) obtained by applying the permutation σ to the vector k′, using the shares [k′] and the shares {{σ}} (step S3).


The generated shares [σ(k′)] are outputted to the first vector generating parts 141, . . . , 14N.


For example, the vector k′=(1,2,3,1,3,4,5)T is assumed, and it is assumed that the permutation σ is the permutation indicated by Formula (1) above. In this case, the vector σ(k′)=(1,1,2,3,3,4,5)T is obtained.


<Step S4>


The shares [σ(k′)] are inputted to the first vector generating parts 141, . . . , 14N.


The first vector generating parts 141, . . . , 14N obtain such [e] that [ei]:=[σ(k′)i=σ(k′)i+1] and [em0+m1−1]:=[0] are satisfied. When i is an integer equal to or larger than 0, ei means the i-th element of a vector e, and σ(k′)i means the i-th element of the vector σ(k′). Thus, when i is an integer equal to or larger than 0, the subscript i of a vector means the i-th element of the vector. Here, “:=” means to substitute a value on the right of “:=” for a variable on the left of “:=”. For example, a:=b means to substitute the value of b for a variable a.


Note that, when the number of elements of a vector is assumed to be M, the first element of the vector is called the 0th element, the next element of the vector is called the 1st element, and the last element of the vector is called the (M-1)th element.


More specifically, the first vector generating parts 141, . . . , 14N generate shares [e] of a vector e that has 1 as an element corresponding to a certain element of the vector σ(k′) if the certain element and an element next to the certain element are the same and has 0 as the element corresponding to the certain element if the certain element and the element next to the certain element are different, using the shares [σ(k′)] (step S4). Here, it is assumed that the last element of the vector e is 0.


The generated shares [e] are outputted to the second vector generating parts 151, . . . , 15N.


For example, the vector σ(k′)=(1,1,2,3,3,4,5)T is assumed. In this case, the vector e=(1,0,0,1,0,0,0)T is obtained.


<Step S5>


The shares [e] are inputted to the second vector generating parts 151, . . . , 15N.


The second vector generating parts 151, . . . , 15N obtain such [e′] that [e′i]=[ei(+)ei−1] and [e′0]=[e0] are satisfied. Here, (+) indicates exclusive-OR or addition,


More specifically, the second vector generating parts 151, . . . , 15N generate shares [e′] of a vector e′ that has 1 as an element corresponding to a certain element of the vector e if one of the certain element and an element before the certain element is 1 and, otherwise, has 0 as the element corresponding to the certain element, using the shares [e] (step S5). Here, it is assumed that the first element of the vector es is the same as the first element of the vector e.


The generated shares [e′] are outputted to the bit-flipping parts 161, . . . , 16N.


For example, the vector e=(1,0,0,1,0,0,0)T is assumed. In this case, the vector e′=(1,1,0,1,1,0,0)T is obtained,


<Step S6>


The shares [e′] are inputted to the bit-flipping parts 161, . . . , 16N.


The bit-flipping parts 161, . . . , 16N obtain a bit flip [e″] of [e′].


More specifically, the bit-flipping parts 161, . . . , 16N generate shares [e″] of a vector e″ obtained by bit-flipping each element of the vector e′, using the shares [e′] (step S6).


The generated shares [e″] are outputted to the second permutation calculating parts 171, . . . , 17N and the second permutation applying parts 181, . . . , 18N.


For example, e′=(1,1,0,1,1,0,0)T is assumed. In this case, the vector e″=(0,0,1,0,0,1,1)T is obtained.


Note that, if each element of the vector k′ is such that is obtained by bit decomposition, a ring of e″ may be changed, for example, by mod P conversion, Here, P is a prime number equal to or larger than 3. The mod P conversion can be realized, for example, by a method described in Scheme 5 of Reference Literature 1.


<Step S7>


The shares [e″] are inputted to the second permutation calculating parts 171, . . . , 17N.


The second permutation calculating parts 171, . . . , 17N obtain a sort {{σ′}} of [e″].


More specifically, the second permutation calculating parts 171, . . . , 17N generate shares {{σ′}} of a permutation σ′ that performs stable sorting of the vector e″ in ascending order, using the shares [e″] (step S7).


The generated shares {{σ′}} are outputted to the second permutation applying parts 181, . . . , 18N and the inverse permutation applying parts 1101, . . . , 110N.


For example, the vector e″=(0,0,1,0,0,1,1)T is assumed. In this case, the permutation σ′ is as shown by Formula (2).







[

Formula





2

]















σ


=

(



1


2


3


4


5


6


7




1


2


5


3


4


6


7



)





(
2
)







<Step S8>


The shares [e″] and the shares {{σ′}} are inputted to the second permutation applying parts 181, . . . , 18N.


The second permutation applying parts 181, . . . , 18N apply {{σ′}} to [e″] to obtain [σ′(e″)].


More specifically, the second permutation applying parts 181, . . . , 18N generate shares [σ′(e″)] of a vector σ′(e″) obtained by applying the permutation σ′ to the vector e″, using the shares [e″] and the shares {{σ′}} (step S8).


The generated shares [σ′(e″)] are outputted to the third vector generating parts 191, . . . , 19N.


For example, the vector e″=(0,0,1,0,0,1,1)T is assumed, and it is assumed that the permutation σ′ is the permutation indicated by Formula (2) above. In this case, the vector σ′(e″)=(0,0,0,0,1,1,1)T is obtained.


<Step S9>


The shares [σ′(e″)] are inputted to the third vector generating parts 191, . . . , 19N.


The third vector generating parts 191, . . . , 19N obtain [x]:=[σ′(e″)i?0:└i/2┘+1].


More specifically, the third vector generating parts 191, . . . , 19N generate shares [x] of a vector x that has └i/2┘ as an element corresponding to a certain element i of the vector σ′(e″) if the certain element i is 0 and has 0 as the element corresponding to the certain element i if the certain element i is not 0, using the shares [σ′(e″)] (step S9).


Here, i=0, . . . , m0+m1-1 is assumed, and └i/2┘ means the largest integer that is equal to or smaller than i/2.


The generated shares [x] are outputted to the inverse permutation applying parts 1101, . . . , 110N.


For example, the vector σ′(e″)=(0,0,0,0,1,1,1)T is assumed. In this case, the vector x=(1,1,2,2,0,0,0)T is obtained.


<Step S10>


The shares [x], the shares {{σ}} and the shares {{σ′}} are inputted to the inverse permutation applying parts 1101, . . . , 110N.


The inverse permutation applying parts 1101, . . . , 110N inversely apply {{σ′}} and {{σ}} to [x] to obtain [σ−1(σ′−1(x))].


More specifically, the inverse permutation applying parts 1101, . . . , 110N generate shares [σ−1(σ′−1(x))] of a vector σ−1(σ′−1(x)) obtained by applying an inverse permutation σ′−1 of the permutation σ and an inverse permutation σ−1 of the permutation σ to the vector x, using the shares [x], the shares {{σ}} and the shares {{σ′}} (step S10).


The generated shares [σ−1(σ′−1(x))] are outputted to the vector separating parts 1111, . . . , 111N.


For example, the vector x=(1,2,2,0,0,0)T is assumed, and it is assumed that the permutation σ is the permutation indicated by Formula (1) above, and the permutation σ′ is the permutation indicated by Formula (2) above. In this case, the vector σ−1(σ′−1 (x))=(1,0,2,1,2,0,0)T is obtained.


<Step S111>


The shares [σ−1(σ′−1(x))] are inputted to the vector separating parts 1111, . . . , 111N.


The vector separating parts 1111, . . . , 111N separate [σ−1(σ′−1(x))] into m0 elements [s0] from the top and remaining m1 elements [s1].


More specifically, the vector separating parts 1111, . . . , 111N generate shares [s0] of a vector s0 composed of the m0 elements from the top of the vector σ−1(σ′−1(x)) and shares [s1] of a vector s1 composed of the remaining m1 elements of the vector σ−1(σ′−1(x)), using the shares [σ−1(σ′−1(x))] (step S11).


The generated shares [s0] and shares [s1] are outputted. to the third permutation applying parts 1121, . . . , 112N.


For example, the vector σ−1(σ′−1(x))=(1,0,2,1,2,0,0)T is assumed. In this case, the vector s0(1,0,2)T and the vector s1=(1,2,0,0)T are obtained.


The vectors s0 and s1 show positions of duplicate keys between the first and second tables, For example, it is assumed that the key vector of the first table is k0=(1,2,3)T, and the key vector of the second table is k1=(1,3,4,5)T. In this case, the vector s0=(1,0,2)T and the vector s1=(1,2,0,0)T are obtained. The duplicate keys between the first and second tables are “1” and “3”. The vector s0=(1,0,2)T and the vector s1=(1,2,0,0)T show positions of “1” and “3” in the vectors k0=(1,2,3)T and k1=(1,3,4,5)T, respectively.


<Step S12>


The shares [s0] and the shares [s1] are inputted to the third permutation applying parts 1121, . . . , 112N.


The third permutation applying parts 1121, . . . , 112N obtain [π0(s0)] and [π1(s1)] and publish τ0:=τ0(s0) and τ1:=π1(s1).


More specifically, the third permutation applying parts 1121, . . . , 112N generate shares [π0(s0)] of a vector τ0:=π0(s0) obtained by applying a permutation π0 to the vector s0 and shares [π1(s1)] of a vector τ1:=π1(s1) obtained by applying a permutation π1 to the vector s1, using the shares [s0], the shares [s1] and the permutations π0 and π1, and publish the vector τ0 and the vector τ1 (step S12). The vector τ0 and the vector τ1 are published to the secure computation apparatuses 1n (1≤n≤N).


The permutations π0 and π1 are predetermined permutations, for example, random permutations. The permutations π0 and π1 may be permutations determined in advance or may be generated at the time of performing the process of step S12. The permutations π0 and π1 and shares {{π0}} and {{π1}} thereof can be generated, for example, by a method described in Paragraph 4.1 of Reference Literature 1. It is assumed that the secure computation apparatuses 1n (1≤n≤N) have information about the permutations π0 and π1 and the shares {{π0}} and {{π1}} thereof and can perform calculation using the permutations π0 and π1 and the shares {{π0}} and {{π1}} thereof.


The generated shares [π0(s0)] and shares [π1(s1)] are outputted to the attribute value permutating parts 1131, . . . , 113N.


For example, the vector s0=(1,0,2)T and the vector s1=(1,2,0,0)T are assumed, and it is assumed that π0 is a permutation indicated by Formula (3) below, and π1 is a permutation indicated by Formula (4) below.







[

Formula





3

]















π
0

=

(



1


2


3




3


1


2



)





(
3
)







π
1

=

(



1


2


3


4




2


4


1


3



)





(
4
)







In this case, the vector τ0=(0,2,1)T and the vector τ1=(0,1,0,2)T are obtained.


<Step S13>


Shares [v0,p] and shares [v1,q] are inputted to the attribute value permutating parts 1131, . . . , 113N.


The attribute value permutating parts 1131, . . . , 113N permutate each attribute value of the first table by {{π0}} and permutate each attribute value of the second table by {{π1}}.


More specifically, the attribute value permutating parts 1131, . . . , 113N generate shares [v′0,p] of a vector v′0,p obtained by permutating a vector v0,p of attribute values of the attributes p (p=0, . . . , m0-1) of the first table by the permutation π0 and shares [v′1,q] of a vector v′1,q obtained by permutating a vector v1,q of attribute values of the attributes q (q=0, . . . , m1-1) of the second table by the permutation π1, using the shares {{π0}} of the permutation π0, the shares {{π1}} of the permutation π1, the shares [v0,p] of the vector v0,p and the shares [v1,q] of the vector v1,q (step S13).


The generated shares [v′0,p] and shares [v′1,q] are outputted to the fourth vector generating parts 1141, . . . , 114N.


For example, it is assumed that the vector of the attribute z1 of the first table is v0,1=(5,10,1)T, the vector of the attribute z1′ of the second table is v1,1=(2,4,9,8)T, π0 is the permutation indicated by Formula (3) above, and π1 is the permutation indicated by Formula (4) above. In this case, the vector v′0,1=(10,1,5)T and the vector v′1,1=(9,2,8,4)T are obtained.


<Step S14>


The vector τ0, the vector τ1, the shares [v′0,p] and the shares [v′1,q] are inputted to the fourth vector generating parts 1141, . . . , 114N.


The fourth vector generating parts 1141, . . . , 114N obtain such [(v″i,j)] that [(v″i,j)(τi)i′−1]:=[(v′i,j)i′] is satisfied when (τi)i≠0 is satisfied, for permutated attribute values [v′i,j] wherein i=1,2 is assumed.


More specifically, the fourth vector generating parts 1141, . . . , 114N generate shares [v″0,p] of a vector v″0,p that has the i′-th element of the vector v′0,p as the (i′-1)th element if the i′-th element of the vector τ0 is not 0, and shares [v″1,q] of a vector v″1,q that has the i′-th element of the vector v′1,q as the (i′-1)th element if the i′-th element of the vector τ1 is not 0, using the vector τ0, the vector τ1, the shares [v′0,p] and the shares [v′1,q] (step S14). The fourth vector generating parts 1141, . . . , 114N perform this process for each of p (p=0, . . . , L0-1) and each of q (q=0, . . . , L1-1).


For example, the vector τ0=(0,2,1)T, the vector v′0,1=(10,1,5)T, the vector τ1=(0,1,0,2)T and the vector v′1,1=(9,2,8,4)T are assumed. In this case, a vector v″0,1=(5, 1)T and a vector v″1,1=(2,4)T are obtained.


Since the vectors s0 and s1 show positions of duplicate keys between the first and second tables, the vectors τ0 and τ1 obtained by permutating the vectors s0 and s1 by the permutations π0 and π1, respectively, show positions of duplicate keys between the first table and the second table after permutation by the permutations π0 and π1.


In the example described above, the second element “1” of the vector τ0=(0,2,1)T shows a position of the key “1” in the first table after permutation by the permutation π0, and the first element “2” of the vector τ0=(0,2,1)T shows a position of the key “3” in the first table after permutation by the permutation π0.


Similarly, in the example described above, the first element “1” of the vector τ1=(0,1,0,2)T shows a position of the key “1” in the second table after permutation by the pet mutation π1, and the third element “2” of the vector τ1=(0,1,0,2)T shows a position of the key “3” in the second table after permutation by permutation π1.


Therefore, by causing [(v″i,j)(τi)i′−1]:=[(v′i,j)i′] to be satisfied when (τi)i≠0 is satisfied, it is possible to cause the attribute value “5” of the attribute z1 of the record with the key “1” in the first table to be the 0th element of the vector v″0,1=(5,1)T and cause the attribute value “1” of the attribute z1 of the record with the key “3” in the first table to be the first element of the vector v″0,1=(5,1)T.


Further, it is possible to cause the attribute value of “2” of the attribute z1′ of the record with the key “1” in the second table to be the 0th element of the vector v″1,1=(2,4)T and cause the attribute value of “4” of the attribute z1′ of the record with the key “3” in the second table to be the first element of the vector v″1,1=(2,4)T.


In other words, the 0th element “5” of the vector v″0,1=(5,1)T is the attribute value of the attribute z1 of the record with the key “1” in the first table, and the first element “1” of the vector v″0,1=(5,1)T is the attribute value of the attribute z1 of the record with the key “3” in the first table.


Further, the 0th element “2” of the vector v″1,1=(2,4)T is the attribute value of the attribute z1′ of the record with the key “1” in the second table, and the first element “4” of the vector v″1,1=(2,4)T is the attribute value of the attribute z1′ of the record with the key “3” in the second table.


Thus, it can be said that the vector v″0,1=(5,1)T and the vector v″1,1=(2,4)T indicate the attribute values in the first table and the attribute values in the second table, for the keys “1” and “3” common to the first table and the second table.


According to this embodiment, it is possible to obtain attribute values in the first table and attribute values in the second table, for keys common to the first table and the second table while maintaining confidentiality.


[Modification]


Note that, when x is a positive integer equal to or larger than 2, a key attribute may be a composite key for x attributes. In this case, the process of step S1 may be performed, for example, as below.


It is assumed that keys of the first table are k0,0, . . . , k0,x−1. It is assumed that keys of the second table are k1,0, . . . , k1,x−1.


In this case, at the process of step S1, k0,i and k1,i are joined for each i to obtain k′i (i=0, . . . , x-1). Then, each k′i is bit-decomposed to obtain a bit expression, and the bit expressions are horizontally joined. For example, when k′0=(1,2,3,1,3,0,1)T and k′1=(0,0,0,0,0,1,1)T are assumed, (k′0)0=(1,0,1,1,1,0, 1)T and (k′0)1=(0,1,1,0,1,0,0)T are obtained by bit-decomposing k′0,


Here, since k′0 takes a value between 1 and 3, including 1 and 3, each element of k′0 can be expressed in two bits. Here, (k′0)0 are low-order bits when k′0 is bit-decomposed, and (k′0)1 are high-order bits when k′0 is bit-decomposed. Since k′1 is originally a 1-bit number in this example, decomposition is not required, and k′1=(k′1)0 is assumed. When (k′0)0, (k′0)1 and (k′1)0 are horizontally joined, the following can be obtained.







[

Formula





4

]












(




1
,
0
,
1
,
1
,
1
,
0
,
1






0
,
1
,
1
,
0
,
1
,
0
,
0






0
,
0
,
0
,
0
,
0
,
1
,
1




)

T




When what are arranged as above is regarded as a matrix, and each row of this matrix is regarded as a bit expression of a key of one record, a vector of bit expressions of keys of (1,2,3,1,3,4,5) is obtained. This vector may be used as k′ used at and after step S2. In this way, processing can be also performed for the case of a composite key.


In the case of a composite key, key duplication refers to whether duplication occurs in terms of combinations of all key attribute values, and it is assumed that, even if individual attribute values are duplicate, it is not regarded as duplication. For example, combinations of (1,0) and (1,1) are not duplicate.


The embodiment of this invention has been described above. However, a specific configuration is not limited to the embodiment, and it goes without saying that, even if design changes and the like are appropriately made within a range not departing from the spirit of this invention, the configuration is included in this invention.


Various kinds of processes described in the embodiment are not only executed in time series in order of the description but also may be executed in parallel or individually according to processing capability of an apparatus that executes the processes or as necessary.


[Program and Recording Medium]


The various kinds of processes described above can be performed by causing a recording part 2020 of a computer shown in FIG. 4 to read a program that causes each step of the above method. to be executed, and causing a controlling part 2010, an inputting part 2030, an outputting part 2040 and the like to operate.


The program in which the processing content is written can be recorded in a computer-readable recording medium. As the computer-readable recording medium, anything is possible, for example, a magnetic recording device, an optical disk, a magneto-optical recording medium or a semiconductor memory.


Distribution of this program is performed, for example, by performing sales, transfer, lending or the like of a portable recording medium such as a DVD or a CD-ROM in which the program is recorded. Furthermore, a configuration is also possible in which this program is stored in a storage device of a server computer, and is distributed by being transferred from the server computer to other computers via a network.


For example, a computer that executes such a program first stores the program recorded in a portable recording medium or transferred from a server computer into its own storage device once. Then, at the time of executing a process, the computer reads the program stored in its own storage device and executes the process according to the read program. Further, as another execution form of this program, the computer may directly read the program from the portable recording medium and execute the process according to the program. Furthermore, each time a program is transferred to the computer from the sever computer, the computer may sequentially execute a process according to the received program. Further, a configuration is also possible in which the above process is executed by a so-called ASP (application service provider) type service in which, without transferring the program to the computer from the server computer, the processing functions are realized only by an instruction to execute the program and acquisition of a result. it is assumed that the program in this form includes information which is provided for processing by an electronic calculator and is equivalent to a program (data or the like which is not a direct command to the computer but has a nature of specifying processing of the computer).


Further, though it is assumed in this form that the apparatus is configured by causing a predetermined program to be executed on a computer, at least a part of the processing content may be realized as hardware.

Claims
  • 1. A secure joining system comprising a plurality of secure computation apparatuses, wherein F is an arbitrary ring, [α] represents shares obtained by α being secret-shared when α is an arbitrary vector, {{β}} represents shares obtained by β being secret-shared when β is an arbitrary permutation, m0, m1, L0 and L1 are integers equal to or larger than 1, k0∈Fm0 is a vector of keys of a first table, k1∈Fm1 is a vector of keys of a second table, v0,p∈Fm0 is a vector of attribute values of attributes p of the first table when p=0, . . . , L0-1 is assumed, v1,q∈Fm1 is a vector of attribute values of attributes q of the second table when q=0, . . . , L1-1 is assumed, and π0 and π1 are predetermined permutations of lengths m0 and m1, respectively; andthe plurality of secure computation apparatuses comprise: processing circuitry configured togenerate shares [k′] of a vector k′∈[F]m0+m1 obtained by joining the vector k0 and the vector k1, using shares [k0] of the vector k0 and shares [k1] of the vector k1;generate shares {{σ}} full of a permutation σ that performs stable sorting of the vector k′ in ascending order, using the shares [k′];generate shares [σ(k′)] of a vector σ(k′) obtained by applying the permutation σ to the vector k′, using the shares [k′] and the shares {{σ}};generate shares [e] of a vector e that has 1 as an element corresponding to a certain element of the vector σ(k′) if the certain element and an element next to the certain element are the same and has 0 as the element corresponding to the certain element if the certain element and the element next to the certain element are different, using the shares [σ(k′)];generate shares [e′] of a vector e′ that has 1 as an element corresponding to a certain element of the vector e if one of the certain element and an element before the certain element is 1 and, otherwise, has 0 as the element corresponding to the certain element, using the shares [e];generate shares [e″] of a vector e″ obtained by bit-flipping each element of the vector e′, using the shares [e′];generate shares {{σ′}} of a permutation that performs stable sorting of the vector e″ in ascending order, using the shares [e″];generate shares [σ′(e″)] of a vector σ′(e″) obtained by applying the permutation σ′ to the vector e″, using the shares [e″] and the shares {{σ′}};generate shares [x] of a vector x that has └i/2┘ as an element corresponding to a certain element i of the vector σ′(e″) if the certain element i is 0 and has 0 as the element corresponding to the certain element i if the certain element i is not 0, using the shares [σ40 (e″)];generate shares [σ−1(σ′−1(x))] of a vector σ−1(σ′−1(x)) obtained by applying an inverse permutation σ′−1 of the permutation σ′ and an inverse permutation σ−1 of the permutation σ to the vector x, using the shares [x], the shares {{σ}} and the shares {{σ′}};generate shares [s0] of a vector so composed of m0 elements from the top of the vector σ−1(σ′−1 (x)) and shares [s1] of a vector s1 composed of remaining m1 elements of the vector σ−1(σ′−1(x)), using the shares [σ−1(σ′−1(x))];generate shares [π0(s0)] of a vector τ0:=π0(s0) obtained by applying a permutation π0 to the vector s0 and shares [π1(s1)] of a vector τ1:=π1(s1) obtained by applying a permutation π1 to the vector s1, using the shares [s0], the shares [s1] and the permutations π0 and π1, and publishing τ0:=π0(s0) and τ1:=π1(s1);generate shares [v′0,p] of a vector v′0,p obtained by permutating a vector v0,p of attribute values of the attributes p of the first table by the permutation π0 and shares [v′1,q] of a vector v′1,q obtained by permutating a vector v1,q of attribute values of the attributes q of the second table by the permutation π1, using the shares {{π0}} of the permutation π0, the shares {{π1}} of the permutation π1, the shares [v0,p] of the vector v0,p and the shares [v1,q] of the vector v1,q; andgenerate shares [v″0,p] of a vector v″0,p that has the i′-th element of the vector v′0,p as the (i′-1)th element if the i′-th element of the vector τ0 is not 0, and shares [v″1,q] of a vector v″1,q that has the i′-th element of the vector v′1,q as the (i′-1)th element if the i′-th element of the vector τ1 is not 0, using the vector τ0, the vector τ1, the shares [v′0,p] and the shares [v′1,q].
  • 2. A secure computation apparatus of the secure joining system of claim 1.
  • 3. A secure joining method, wherein F is an arbitrary ring, [α] represents shares obtained by α being secret-shared when α is an arbitrary vector, {{β}} represents shares obtained by β being secret-shared when β is an arbitrary permutation, m0, m1, L0 and L1 are integers equal to or larger than 1, k0∈Fm0 is a vector of keys of a first table, k1∈Fm1 is a vector of keys of a second table, v0,pFm0 is a vector of attribute values of attributes p of the first table when p=0, . . . , L0-1 is assumed, v1,q∈Fm1 is a vector of attribute values of attributes q of the second table when q=0, . . . L1-1 is assumed, and π0 and π1 are predetermined permutations of lengths mo and respectively; andthe secure joining method comprises:a vector joining step of a plurality of vector joining parts generating shares [k′] of a vector k′∈[F]m0+m1 obtained by joining the vector k0 and the vector k1, using shares [k0] of the vector k0 and shares [k1] of the vector k1;a first permutation calculating step of a plurality of first permutation calculating parts generating shares {{σ}} of a permutation σ that performs stable sorting of the vector k′ in ascending order, using the shares [k′];a first permutation applying step of a plurality of first permutation applying parts generating shares [σ(k′)] of a vector σ(k′) obtained by applying the permutation σ to the vector k′, using the shares [k′] and the shares {{σ}};a first vector generating step of a plurality of first vector generating parts generating shares [e] of a vector e that has 1 as an element corresponding to a certain element of the vector σ(k′) if the certain element and an element next to the certain element are the same and has 0 as the element corresponding to the certain element if the certain element and the element next to the certain element are different, using the shares [σ(k′)];a second vector generating step of a plurality of second vector generating parts generating shares [e′] of a vector e′ that has 1 as an element corresponding to a certain element of the vector e if one of the certain element and an element before the certain element is 1 and, otherwise, has 0 as the element corresponding to the certain element, using the shares [e];a bit-flipping step of a plurality of bit-flipping parts generating shares [e″] of a vector e″ obtained by bit-flipping each element of the vector e′, using the shares [e′];a second permutation calculating step of a plurality of second permutation calculating parts generating shares {{σ′}} of a permutation σ′ that performs stable sorting of the vector e″ in ascending order, using the shares [e″];a second permutation applying step of a plurality of second permutation applying parts generating shares [σ′(e″)] of a vector σ′(e″) obtained by applying the permutation σ′ to the vector e″, using the shares [e″] and the shares {{σ′}};a third vector generating step of a plurality of third vector generating parts generating shares [x] of a vector x that has └i/2┘ as an element corresponding to a certain element i of the vector σ′(e″) if the certain element i is 0 and has 0 as the element corresponding to the certain element i if the certain element i is not 0, using the shares [σ′(e″)];an inverse permutation applying step of a plurality of inverse permutation applying parts generating shares [σ−1(σ′−1(x))] of a vector σ−1(σ′−1(x)) obtained by applying an inverse permutation σ′−1 of the permutation σ′ and an inverse permutation σ−1 of the permutation σ to the vector x, using the shares [x], the shares {{σ}} and the shares {{σ′}};a vector separating step of a plurality of vector separating parts generating shares [s0] of a vector s0 composed of m0 elements from the top of the vector σ−1(σ′−1(x)) and shares [s1] of a vector s1 composed of remaining m1 elements of the vector σ−1(σ′−1(x)), using the shares [σ−1(σ′−1(x))];a third permutation applying step of a plurality of third permutation applying parts generating shares [π0(s0)] of a vector τ0:=π0(s0) obtained by applying a permutation π0 to the vector s0 and shares [π1(s1)] of a vector τ1:=π1(s1) obtained by applying a permutation π1 to the vector s1, using the shares [s0], the shares [s1] and the permutations π0 and π1, and publishing τ0:=π0(s0) and τ1:=π1(s1);an attribute value permutating step of a plurality of attribute value permutating parts generating shares [v′0,p] of a vector v′0,p obtained by permutating a vector v0,p of attribute values of the attributes p of the first table by the permutation π0 and shares [v′1,q] of a vector v′1,q obtained by permutating a vector v1,q of attribute values of the attributes q of the second table by the permutation π1, using the shares {{π0}} of the permutation π0, the shares {{π1}} of the permutation π1, the shares [v0,p] of the vector v0,p and the shares [v1,q] of the vector v1,q; anda fourth vector generating step of a plurality of fourth vector generating parts generating shares [v″0,p] of a vector v″0,p that has the i′-th element of the vector v′0,p as the (i′-1)th element if the i′-th element of the vector τ0 is not 0, and shares [v″1,q] of a vector v″1,q that has the i′-th element of the vector v′1,q as the (i′-1)th element if the i′-th element of the vector τ1 is not 0, using the vector τ0, the vector τ1, the shares [v′0,p] and the shares [v′1,q].
  • 4. One or more non-transitory computer readable media that store a program for causing one or more computers to perform the method of claim 3.
Priority Claims (1)
Number Date Country Kind
2018-116576 Jun 2018 JP national
PCT Information
Filing Document Filing Date Country Kind
PCT/JP2019/023390 6/13/2019 WO 00