Secure computation device, secure computation system, secure computation method, and program
The secure computing device efficiently calculates the intersection of multisets with duplicate elements by using stable sorting and equality judgment, addressing the limitations of conventional methods and achieving low-cost, high-speed masked operation results.
Patent Information
- Application Number
- JP2023525310
- Authority / Receiving Office
- JP · JP
- Patent Type
- Patents
- Current Assignee / Owner
- Filing Date
- 2021-06-04
- Publication Date
- 2024-08-14
- Estimated Expiration
- 2041-06-04
AI Technical Summary
Conventional secure calculation methods do not allow for the intersection of multisets with duplicate elements, preventing the obtention of concealed information of the intersection set using masked information of the multisets as input.
A secure computing device that performs stable sorting and equality judgment on masked information of multisets to obtain the concealed operation result representing the intersection of two multisets, using input flags and output flags to identify elements in the intersection set.
Enables the efficient calculation of the intersection of multisets with duplicate elements through secure computation, reducing the calculation cost and enabling high-speed processing of masked operation results.
Smart Images

Figure 0007533784000014 
Figure 0007533784000012 
Figure 0007533784000013
Abstract
Description
[Technical field]
[0001] The present invention relates to cryptography, and more particularly to secure computation technology. [Background technology]
[0002] In a normal set, duplicate elements are not allowed. In contrast, a set in which duplicate elements are allowed is called a "multiset." For two multisets X and Y, the Intersect operation is defined as follows: Intersect(X,Y) = X'∩Y' Here, X' represents a set obtained by removing duplicate elements from multiset X. In other words, X' is a set obtained by replacing the same elements belonging to multiset X with a single corresponding element. Similarly, Y' represents a set obtained by removing duplicate elements from multiset Y. X'∩Y' represents the intersection of sets X' and Y'.
[0003] Also, a secure computation method is known in which, by using concealment information of two sets, concealment information of the intersection result of the two sets is obtained while keeping the information secret (see, for example, Non-Patent Document 1, etc.). [Prior art documents] [Non-patent literature]
[0004] [Non-Patent Document 1] Hiroki Hamada, Dai Igarashi, Koji Senda, “Improved Algorithms for Computing Relational Algebra Operators for Secure Function Evaluation”, Journal of Communications Technology LOIS2012-82, Vol. 112, No. 446, pp. 76-82, 2013. Summary of the Invention [Problem to be solved by the invention]
[0005] However, in conventional secure computation methods, overlapping elements are not allowed in the sets to be used for intersection computation. Therefore, it is not possible to obtain the concealment information of Intersect(X,Y) by using the concealment information of two multisets X and Y as input using conventional secure computation methods.
[0006] This problem can be solved by first using the concealment information of two multisets X and Y as input and using secure computation to obtain the concealment information of sets X' and Y' by removing duplicate elements of the multisets X and Y, and then applying a conventional secure computation method to the concealment information of the sets X' and Y' to obtain the concealment information of the intersection of sets X' and Y'.
[0007] However, the computational cost of secure computation to obtain concealment information of a set by removing duplicate elements of a multiset from the concealment information of the multiset is high.
[0008] The present invention has been made in consideration of the above points, and has an object to provide a technique for using concealment information of two multisets X and Y as input and obtaining, through secure computation, a concealment computation result representing the concealment information of Intersect(X,Y) at low computational cost. [Means for solving the problem]
[0009] The secure computing device of the present invention calculates a first multiset X={{x0,...,x n-1}} and a second multiset Y={{y0,...,y m-1}} is kept concealed, a concealed operation result is obtained that represents concealed information of the Intersect operation result between the first multiset X and the second multiset Y, where n and m are positive integers, i = 0,...,n-1, j = 0,...,m-1, q = 0,...,n+m-1, and [α] is the concealed information of α.
[0010] (A) The input flag assignment unit assigns n first elements [x0],...,[x n-1 ] and m second elements [y0],...,[y m-1], and a sequence [s] = ([s0],...,[s n-1 ],[s n ],...,[s n+m-1 ])=([B0],...,[B0],[B1],...,[B1]) and the first element [x0],...,[x n-1 ] and the second element [y0],...,[y m-1 ], column [M]=([M0],...,[M n-1 ],[M n ],...,[M n+m-1 ])=([x0],...,[x n-1 ],[y0],...,[y m-1 ]), where B0 and B1 are different and each first element [M i ]=[x i ] for each first value [s i ]=[B0] is associated with each second element [M j+n ]=[y j ] to each second value [s j+n ]=[B1] is associated.
[0011] (B) The stable sorting part sorts input flagged strings ([s], [M]) by [s q ] and [M q ], while maintaining the correspondence with the elements M0,...,M n+m-1 A stable sort is performed by secret computation according to the order of the contents represented by each of them, and the sorted values [s'0],...,[s' n+m-1 ] column [s'] = ([s'0],...,[s' n+m-1 ]) and sorted elements [M'0],...,[M' n+m-1 ] column [M'] = ([M'0],...,[M' n+m-1 ]) to obtain the sorted sequence ([s'],[M']).
[0012] (C) The equality determination unit uses the sorted sequence ([s'], [M']) and performs secret computation to obtain the first equality determination result [eq q ] and the second equality test result [seq q], where M' q =M' q+1 When eq q =T, and M' q =M' q+1 If not, eq q =F, and eq n+m-1 =F, and s' q =s' q+1 When seq q =T, and s' q =s' q+1 If not, seq q = F, and seq n+m-1 =F, and T and F are different from each other.
[0013] (D) The output flag generation unit generates the first equality judgment result [eq q ] and the second equality test result [seq q ], and the output flag [f q ], where “eq q = T and seq q =F” when f q =D1, and “eq q = T and seq q =F” when f q =D0, and D1 and D0 are different from each other.
[0014] (E) The output flag assigning unit assigns the output flags [f q ] and sorted elements of column [M'] [M' q ] is output as the concealment calculation result. Effect of the Invention
[0015] As a result, by using the concealment information of two multisets X and Y as input, it is possible to obtain a concealment calculation result representing the concealment information of Intersect(X,Y) with small computation cost through secure computation. [Brief description of the drawings]
[0016] [Figure 1] FIG. 1 is a block diagram illustrating the functional configuration of a secure computing system according to an embodiment. [Diagram 2] FIG. 2 is a block diagram illustrating a functional configuration of the secure computing device according to the embodiment. [Diagram 3] FIG. 3 is a flow diagram illustrating the secure calculation method of the embodiment. [Figure 4] FIG. 4 is a block diagram illustrating a hardware configuration of the secure computing device according to the embodiment. DETAILED DESCRIPTION OF THE PREFERRED EMBODIMENTS
[0017] Hereinafter, an embodiment of the present invention will be described with reference to the drawings. [Terminology definition] First, the symbols used in the embodiment will be defined. X={{x0,...,x n-1}} is x0,...,x n-1 n represents the elements x0,...,x belonging to the multiset X (the first multiset). n-1 n can be 1 or 2 or more. i=0,...,n-1 is the number of elements x0,...,x n-1 is an index of, and the element corresponding to index i in the multiset X is x i The elements x0,...,x n-1 The contents represented by any two or more elements (e.g., numbers, characters (alphabetical characters, numbers, etc.), date and time, etc.) may be the same, or elements x0,...,x n-1 The contents of each element may be different from each other. n-1 Each element represents the index i and the corresponding element x0,...,x n-1 The order relationship (order) is defined according to the content represented by each element. For example, elements x0,...,x n-1 If represents a number, then elements x0,...,x n-1 The numerical values each represent have a defined order (e.g., ascending or descending) according to the magnitude of the numerical value. For example, elements x0,...,x n-1 If represents the alphabet, then elements x0,...,x n-1Each alphabet has a defined order (e.g., alphabetical order or reverse order) according to the alphabet. For example, elements x0,...,x n-1 If represents a date and time, then elements x0,...,x n-1 The order of the date and time (for example, forward or backward order) is defined according to the date and time. For example, elements x0,...,x n-1 If represents multiple types of characters such as numbers, letters, and symbols, the elements x0,...,x n-1 Each character has a specific order (for example, character code order or reverse character code order) defined for it.
[0018] Y={{y0,...,y m-1}} is y0,...,y m-1 m represents a multiset (second multiset) whose elements are y0,...,y m-1 m is a positive integer that represents the number of elements y0,...,y m-1 is the index of Y, and the element corresponding to index j in the multiset Y is y j The elements y0,...,y m-1 The contents represented by any two or more elements of y0,...,y m-1 The contents represented by each element may be different from each other. m-1 In addition to the index j, elements y0,...,y m-1 The order of elements y0,...,y m-1 The definition of the ordering relationship according to the contents of (e.g., descending, descending, alphabetical, etc.) is given for elements x0,...,x n-1 The order of elements x0,...,x n-1 ,y0,...,y m-1 Also, elements x0,...,x n-1 ,y0,...,y m-1 The order relationship is defined according to the contents of
[0019] (κ0,...,κ P-1 ) has P elements κ0,...,κ P-1 For example, the sequence (κ0,...,κ P-1 ) is the element κ0,...,κ P-1 is a vector with columns (κ0,...,κ P-1 There is no restriction on the implementation form of P. P is a sequence (κ0,...,κ P-1 ) elements κ0,...,κ P-1 p=0,...,P-1 is the number of elements κ0,...,κ P-1 is an index of the columns (κ0,...,κ P-1 ) element corresponding to index p is p This is expressed as follows.
[0020] [α] represents the concealed information of α. In other words, [α] represents the information obtained by concealing α. α is a set of multiple elements κ0,...,κ P-1 A sequence of (κ0,...,κ P-1 ), then α=(κ0,...,κ P-1 ) has multiple elements κ0,...,κ P-1 Each sequence of concealed information [κ0],...,[κ P-1 ] is also expressed as [α]. However, the concealment information [α] is information that can be calculated secretly. In other words, concealment information [β] of the calculation result β for α can be obtained by secret calculation using the concealment information [α] while keeping α secret. The secure calculation may be based on secret sharing (see, for example, Non-Patent Document 1, etc.) or homomorphic encryption. In the former case, [α] is a share (sometimes called a secret share or secret sharing value) obtained by secretly sharing α. In the latter case, [α] is a ciphertext obtained by encrypting α in accordance with the homomorphic encryption method.
[0021] <Secret sharing> Secret sharing is an encryption method in which data is divided into multiple values (shares) and distributed to multiple parties. One example of secret sharing is (K,N) threshold secret sharing. (K,N) threshold secret sharing is a method in which the original data is divided into N random shares and distributed to multiple parties. The original data can be restored by collecting K or more shares, but information about the original data cannot be obtained from fewer than K shares. Here, K and N are positive integers such that K≦N. Specific examples of (K,N) threshold secret sharing are Shamir secret sharing (see, for example, Reference 1) and cloning secret sharing (see, for example, References 2 and 3). Reference 1: Adi Shamir, "How to share a secret," Communications of the ACM, Vol. 22, No. 11, pp. 612-613, 1979. Reference 2: Mitsuru Ito, Akira Saito, and Takao Nishizeki, "Secret sharing scheme realizing general access structure," Electronics and Communications in Japan (Part III: Fundamental Electronic Science), Vol. 72, No. 9, pp. 56-64, 1989. Reference 3: Ronald Cramer, Ivan Damgard, and Yuval Ishai, "Share conversion, pseudorandom secret-sharing and applications to secure computation," In Theory of Cryptography Conference, pp. 342-362. Springer, 2005.
[0022] An example of a secure computation will be given below (see, for example, Non-Patent Document 1). <Equality check> The equality determination of encrypted information [α1] and [α2] by secret calculation means an operation that uses the encrypted information [α1] and [α2] of α1 and α2 (for example, shares) as inputs and outputs the encrypted information [β] of the truth value β ∈ {T, F} such that β = T (true) when α1 = α2 and β = F (false) when α1 ≠ α2. Here, T and F represent different values from each other (T ≠ F), for example, T = 1 and F = 0. The execution of this operation is described as follows. [β] ← E Q ([α1], [α2])
[0023] <NOT operation> The NOT operation of encrypted information [α] by secret calculation means an operation that uses the encrypted information [α] of α ∈ {T, F} as an input and outputs the encrypted information [β] of the truth value β ∈ {T, F} such that β = F (false) when α = T (true) and β = T (true) when α = F (false). For example, when T = 1 and F = 0, β = α (XOR) 1 is satisfied. Here, α1 (XOR) α2 represents the exclusive OR of α1 and α2. The execution of this operation is described as follows. [β] ← N OT ([a])
[0024] <AND operation> The AND operation of encrypted information [α1] and [α2] by secret calculation means an operation that uses the encrypted information [α1] and [α2] of α1, α2 ∈ {T, F} as inputs and outputs the encrypted information [β] of the logical product β = α1 (AND) α2 ∈ {T, F} of α1 and α2. β = T (true) when α1 = T (true) and α2 = T (true), and β = F (false) otherwise. The execution of this operation is described as follows. [β] ← A ND ([α1], [α2])
[0025] <Secret stable sort> The secret stable sort of the column [α] = ([α0],..., [α P-1 ) by secret calculation means that for the column (α0,..., α P-1 ) the elements α0,..., α belonging to P-1The concealed information [α0],...,[α P-1 ] as input and elements α0,...,α P-1 Elements α0,...,α according to the order of the contents they represent P-1 Stable sorting result α'0,...,α' P-1 The concealed information of [α']=([α'0],..., [α' P-1 ]) where the stable sort results α'0,...,α' P-1 is the element α0,...,α P-1 Depending on the order of the contents represented by each element, elements α0,...,α P-1 The order may be determined in advance or based on the input. This privacy-stable sorting is performed using the following two algorithms (GenPerm, S ORT ) [Π] ← GenPerm([α]): The algorithm GenPerm is defined as [α] = ([α0],...,[α P-1 ]) as input, and calculate [α0],...,[α P-1 ] to [α'0],...,[α' P-1 ], the method outputs the privacy-stable sorting information [Π] of the permutation information Π for privacy-stable sorting. [α']←S ORT ([Π],[α]): Algorithm S ORT takes [Π] and [α] as input, obtains [α'] through secret computation, and outputs it. A high-speed implementation method for achieving this is disclosed in Reference 4, etc. Reference 4: Dai Igarashi, Hiroki Hamada, Ryo Kikuchi, and Koji Senda. “A Design and an Implementation of Super-high-speed Multi-party Sorting:The Day When Multi-party Computation Reaches Scripting Languages: The Day When Multi-party Computation Reaches Scripting Languages,” In CSS2017, pp. 1-8, 2017.
[0026] [Embodiment] Next, an embodiment of the present invention will be described. <Configuration> 1, the secure computation system 1 of this embodiment has W secure computation apparatuses 11-0, ..., 11-(W-1) configured to be able to communicate through a network, where W is an integer equal to or greater than 1. For example, when the secure computation apparatuses 11-0, ..., 11-(W-1) perform secure computation based on secret sharing, W is an integer equal to or greater than 2, and when they perform secure computation based on homomorphic encryption, W is an integer equal to or greater than 1.
[0027] 2, the secure computing device 11-w (where w=0,...,W-1) includes an input unit 111-w, an input flag assignment unit 112-w, a substitution information generation unit 113-w, a stable sort unit 114-w, an equality determination unit 115-w, an output flag generation unit 116-w, an output flag assignment unit 117-w, a control unit 118-w, and a storage unit 119-w. The secure computing device 11-w executes each process under the control of the control unit 118-w, and data input to the secure computing device 11-w and data obtained in each process are stored in the storage unit 119-w and are read out as necessary for use in other processes.
[0028] <Processing> The secure computation device 11-w (where w=0, ..., W-1) computes, by secure computation, a multiset (first multiset) X={{x0, ..., xn-1}} and a multiset (second multiset) Y={{y0,...,y m-1}} is concealed, and the concealed operation result [Z] of the data structure representing the concealed information [Intersect(X,Y)] of the Intersect operation result Intersect(X,Y)=X'∩Y' between multisets X and Y is obtained and output. Here, X' represents a set obtained by removing duplicate elements from multiset X, and Y' represents a set obtained by removing duplicate elements from multiset Y. To give a specific example, if the elements of multisets X and Y represent the alphabet, n=5 and m=3, X={{x0,x1,x2,x3,x4}}={{a,a,b,c,d}} and Y={{y0,y1,y2}}={{b,b,c}}, then X'={a,b,c,d} and Y'={b,c}, and Intersect(X,Y)=X'∩Y'={b,c}. The secure computation process of the secure computation apparatus 11-w will be described with reference to FIG.
[0029] The input unit 111-w of the secure computing device 11-w is provided with a multiset X={{x0,...,x n-1}}'s confidential information [X]=([x0],...,[x n-1 ]) and multiset Y={{y0,...,y m-1}}'s confidential information [Y]=([y0],...,[y m-1 ]) is input. In the above specific example, [X]=([a],[a],[b],[c],[d]) and [Y]=([b],[b],[c]) are input. [X] and [Y] may be sent from any of the W secure computing devices 11-0, ..., 11-(W-1), or may be sent from another device not shown (step S111-w).
[0030] [X]=([x0],...,[x n-1 n elements (first elements) [x0],...,[x n-1 ] and [Y]=([y0],...,[y m-1 ]) m elements (second elements) [y0],...,[y m-1] is input to the input flag assignment unit 112. For example, in the above specific example, five elements [a], [b], [c], and [d] and three elements [b], [b], and [c] are input to the input flag assignment unit 112. First, the input flag setting unit 112 sets [s0] and [s1] shown in expressions (1) and (2). [s0]=[B0] n =([B0],...,[B0])=([s0],...,[s n-1 ]) (1) [s1]=[B1] m =([B1],...,[B1])=([s1],...,[s m-1 ]) (2) Here, B0 and B1 are different from each other. There is no limitation to B0 and B1, and for example, B0=0 and B1=1 may be satisfied, or B0=1 and B1=0 may be satisfied. Next, the input flagging unit 112 obtains and outputs an input flagged sequence ([s], [M]) including sequence [s] and sequence [M]. Note that sequence [s] is a sequence ([B0], ..., [B0]) of n values [B0], ..., [B0] in formula (1) followed by a sequence ([B1], ..., [B1]) of m values [B1], ..., [B1] in formula (2), and includes n values (first values) [B0] and m values (second values) [B1]. Column [M] is a sequence of n elements [x0], ..., [x n-1 ] followed by m elements [y0],...,[y m-1 ], which consists of n elements [x0],...,[x n-1 ] and m elements [y0],...,[y m-1 These are expressed as the following equations (3) and (4). [s]=([s0],...,[s n-1 ],[s n ],...,[s n+m-1 ]) =([B0],...,[B0],[B1],...,[B1]) (3) [M]=([M0],...,[M n-1 ],[M n ],...,[M n+m-1 ]) =([x0],...,[x n-1 ],[y0],...,[y m-1 ]) (4) Here, in the input flagged column ([s],[M]), [M i ]=[x i ] to [s i ]=[B0] is matched, and [M j+n ]=[y j ] to [s j+n ]=[B1]. That is, [B0] corresponds to [x i ], and [B1] is the concealment flag assigned to [y j For example, the input flag assigning unit 112 assigns a concealment flag to ([s0 T ],[X T ]) and ([s1 T ],[Y T ]) and output it as an input flagged string ([s],[M]). T represents the transpose of α. That is, the input flagging unit 112 outputs, for example, the following input flagged sequence ([s], [M]).
number
number
[0031] The replacement information generating unit 113-w receives the sequence [M] as input. The replacement information generating unit 113-w applies the above-mentioned algorithm GenPerm to the sequence [M] by secure computation ([Π] = ← GenPerm ([M])) to obtain ([M0],...,[M n-1],[M n ],...,[M n+m-1 ]) to ([M'0],...,[M' n-1 ],[M' n ],...,[M' n+m-1 The concealment information [Π] is sent to the stable sorting unit 114-w (step S113-w).
[0032] The stable sorting unit 114-w receives the input flagged string ([s], [M]) and the anonymization information [Π]. The stable sorting unit 114-w applies the above-mentioned algorithm S ORT Apply (([s'],[M'])←S ORT ([Π],([s],[M]))), for the input flag sequence ([s],[M]), [s q ] and [M q ], while maintaining the correspondence with the elements M0,...,M n+m-1 A stable sort (private stable sort) according to the order of the contents represented by each is performed by secret computation, and the sorted sequence ([s'], [M']) is obtained and output. [s'] is the sorted value [s'0],...,[s' n+m-1 ] column [s'] = ([s'0],...,[s' n+m-1 ]), and [M'] is the sorted elements [M'0],...,[M' n+m-1 ] column [M'] = ([M'0],...,[M' n+m-1 ]), and the sorted sequence ([s'],[M']) is expressed as follows:
number
number
[0033] The sorted sequence ([s'], [M']) is input to the equality determination unit 115-w. The equality determination unit 115-w uses the sorted sequence ([s'], [M']) to perform secure computation to obtain an equality determination result (first equality determination result) [eq q ] and equality test result (second equality test result) [seq q ] is obtained and output. However, M' q =M' q+1 When eq q =T, and M' q =M' q+1 If not, eq q =F, and eq n+m-1 =F, and s' q =s' q+1 When seq q =T, and s' q =s' q+1 If not, seq q = F, and seq n+m-1 =F, where T and F are different from each other. There is no limitation on T and F, but for example, T=1 and F=0, or T=0 and F=1 may be used. These processes are carried out by using the concealed information [M' q ],[M' q+1 ] and secret computation of the concealed information [s' q ],[s' q+1For example, the equality judgment unit 115-w executes the following equations (7) and (8) for q=0,...,n+m-1 (i.e., q∈[0,n+m]) by secure computation, and obtains the equality judgment result [eq q ] and [seq q ] is obtained and output. Since there is no order dependency in these processes, it is also possible to execute the processes of equations (7) and (8) in parallel for q=0,...,n+m-1. [eq q ]←E Q ([M' q ],[M' q+1 ]) where [eq n+m-1 =F]=[F] (7) [seq q ]←E Q ([s' q ],[s' q+1 ]) where [seq n+m-1 ]=[F] (8) For example, in the case of the sorted sequence ([s'], [M']) shown in equation (6), if T=1 and F=0, the equality judgment result [eq q ] and [seq q ] is obtained. [eq0]=[1],[eq1]=[0],[eq2]=[1],[eq3]=[1],[eq4]=[0],[eq5]=[1],[eq6]=[0],[eq7]=[0] (9) [seq0]=[1],[seq1]=[1],[seq2]=[0],[seq3]=[1],[seq4]=[0],[seq5]=[0],[seq6]=[0],[seq7]=[0] (10) Equality test result [eq q ] and [seq q ] is sent to output flag generation unit 116-w (step S115-w).
[0034] The output flag generation unit 116-w receives the equality judgment result [eq q ] and [seq q The output flag generation unit 116-w receives the equality judgment result [eq q ] and [seqq ], and the output flag [f q ] is obtained and output. However, “eq q = T and seq q =F” when f q =D1, and “eq q = T and seq q =F” when f q =D0, and D1 and D0 are different from each other. There is no limitation on D1 and D0, but for example, D1=1 and D0=0, or D1=0 and D0=1 may be used. This process can be realized as shown in the following formula (11) by setting D1=T and D0=F and using the NOT operation and AND operation of the anonymized information obtained by the above-mentioned secure computation. [f q ]←A ND ([eq q ],N OT ([seq q ])) (11) Output flags [f q ] column [f] is expressed as follows:
number
number
[0035] The output flag assigning unit 117-w receives the column [f] and the column [M']. The output flag assigning unit 117-w assigns the output flag [f q ] and sorted elements of column [M'] [M' q ] are associated with each other, and the associated output flags [f q] and sorted elements [M' q For example, the concealment calculation result [Z] is expressed as follows:
number
number
[0036] <Features of this embodiment> As described above, in the stable sorting unit 114-w, [s q ] and [M q ], while maintaining the correspondence with the elements M0,...,M n+m-1 A stable sorting is performed by secret computation according to the order relationship of the contents represented by each, and the sorted sequence ([s'], [M'])([s']=([s'0],...,[s' n+m-1 ]), [M']=([M'0],...,[M' n+m-1])) is obtained and output. Since this is a stable sort, the order relationship of multiple elements in the column [M] that correspond to the same content (for example, the same alphabet "b") is maintained in the sorted column ([s'],[M']). Here, the order relationship of the elements in the column [s q ] and [M q ] is maintained. Therefore, the element [M'] in column [M'] that corresponds to the same content is q(1) ],...,[M' q(Q) ]∈{[M'0],...,[M' n+m-1 ])} of element [s'] of column [s'] q(1) ],...,[s' q(Q) ]∈{[s'0],...,[s' n+m-1 ]} is one or more consecutive [B0] (e.g., [0]) corresponding to the multiset X, or one or more consecutive [B0] (e.g., [0]) corresponding to the multiset X followed by one or more consecutive [B1] (e.g., [1]) corresponding to the multiset Y, or one or more consecutive [B1] (e.g., [1]) corresponding to the multiset Y (see, for example, formula (6)). Therefore, the output flag [f q ] is (I)M' q =M' q+1 And M' q and M' q+1 and [M' q About q = D1 (for example, 1), and (II) any other [M' q About q =D0 (e.g., 0) (see, for example, equation (13)). Therefore, the element [M' q ] corresponds to M' q is an element of Intersect(X,Y)=X'∩Y', and the output flag [f q ] and sorted elements [M' qThe concealment operation result [Z] including [A,B,C] represents the concealment information [Intersect(X,Y)] of Intersect(X,Y)=X'∩Y'. For example, when X={{x0,x1,x2,x3,x4}}={{a,a,b,c,d}} and Y={{y0,y1,y2}}={{b,b,c}}, Intersect(X,Y)={b,c}. In the concealment operation result [Z] of the corresponding formula (13), the output flag [1] is associated with one sorted element [b] [c], and the output flag [0] is associated with the other sorted elements.
[0037] Thus, in this embodiment, each element [M q ], whereas M q belongs to multiset X or multiset Y, and these concealed flags ([s]) are used to perform the logical product X'∩Y' calculation by secure computation, regardless of whether multiset X or multiset Y contains overlapping elements, to obtain the concealed computation result [Z] representing the concealed information [Intersect(X,Y)] of the computation result of Intersect(X,Y). The number of bits of the flag ([s]) is small, and the flags in the equality judgment unit 115-w, i.e., [s' q ] and [s' q+1 ] has a small computational cost. q ] and [s' q+1 ] does not depend on the order, it is also possible to execute the processes for q=0,...,n+m-1 in parallel. Therefore, the calculation in this embodiment can be executed at high speed. In this manner, in this embodiment, the concealment information [X], [Y] of two multisets X, Y are used as input, and the concealment operation result [Z] representing the concealment information of Intersect(X,Y) can be obtained with small calculation cost by secure computation.
[0038] The concealed computation result [Z] may be used to restore Z, or may be used as an operand of a subsequent secure computation. For example, invalid rows may be deleted from the concealed computation result [Z] by the method disclosed in Reference 5, etc., and the obtained result may be used for other database computations. Reference 5: Hirotaka Sudo, Dai Igarashi, “Implementation and Evaluation of a Secure Computation Database Management System that Discloses Only the Number of Rows,” In SCIS2021, pp. 1-6, 2021. In addition, it is also possible to leave invalid rows in the concealed computation result [Z] in order to treat valid rows as confidential, and to add concealment information of a valid flag indicating whether the row is valid or invalid, and then perform subsequent processing. Alternatively, in the input flag adding unit 112-w described above, q ],[M q ]) to M q The confidentiality information of the validity flag [Ψ q ] is added, and the processes from step S113-w to S117-w are performed as ([s q ],[M q ],[Ψ q ]) while maintaining the correspondence between them, and then perform subsequent processing.
[0039] [Hardware configuration] The secure computing device 11-w in each embodiment is a device configured by a general-purpose or dedicated computer having a processor (hardware processor) such as a CPU (central processing unit) and a memory such as a RAM (random-access memory) and a ROM (read-only memory) executing a predetermined program. That is, the secure computing device 11-w in each embodiment has, for example, a processing circuit configured to implement each unit that each of them has. This computer may have one processor and memory, or may have multiple processors and memories. This program may be installed in the computer, or may be recorded in a ROM or the like in advance. In addition, a part or all of the processing units may be configured using an electronic circuit that realizes a processing function by itself, rather than an electronic circuit that realizes a functional configuration by reading a program like a CPU. In addition, an electronic circuit that configures one device may include multiple CPUs.
[0040] FIG. 4 is a block diagram illustrating the hardware configuration of the secure computing device 11-w in each embodiment. As illustrated in FIG. 4, the secure computing device 11-w in this example has a CPU (Central Processing Unit) 10a, an input unit 10b, an output unit 10c, a RAM (Random Access Memory) 10d, a ROM (Read Only Memory) 10e, an auxiliary storage device 10f, and a bus 10g. The CPU 10a in this example has a control unit 10aa, a calculation unit 10ab, and a register 10ac, and executes various calculation processes according to various programs loaded into the register 10ac. The input unit 10b is an input terminal to which data is input, a keyboard, a mouse, a touch panel, etc. The output unit 10c is an output terminal to which data is output, a display, a LAN card controlled by the CPU 10a that has loaded a predetermined program, etc. The RAM 10d is a static random access memory (SRAM), a dynamic random access memory (DRAM), or the like, and has a program area 10da in which a predetermined program is stored, and a data area 10db in which various data is stored. The auxiliary storage device 10f is, for example, a hard disk, a magneto-optical disc (MO), a semiconductor memory, or the like, and has a program area 10fa in which a predetermined program is stored, and a data area 10fb in which various data is stored. The bus 10g connects the CPU 10a, the input unit 10b, the output unit 10c, the RAM 10d, the ROM 10e, and the auxiliary storage device 10f so that information can be exchanged. The CPU 10a writes the program stored in the program area 10fa of the auxiliary storage device 10f to the program area 10da of the RAM 10d according to the loaded OS (Operating System) program. Similarly, the CPU 10a writes various data stored in the data area 10fb of the auxiliary storage device 10f to the data area 10db of the RAM 10d. The addresses on the RAM 10d where these programs and data are written are stored in the register 10ac of the CPU 10a.The control unit 10aa of the CPU 10a sequentially reads out these addresses stored in the register 10ac, reads out programs and data from the areas on the RAM 10d indicated by the read addresses, sequentially causes the calculation unit 10ab to execute the calculations indicated by the programs, and stores the calculation results in the register 10ac. With this configuration, the functional configuration of the secure computing device 11-w is realized.
[0041] The above-mentioned program can be recorded in a computer-readable recording medium. An example of a computer-readable recording medium is a non-transitory recording medium. Examples of such a recording medium include a magnetic recording device, an optical disk, a magneto-optical recording medium, a semiconductor memory, and the like.
[0042] The distribution of this program is performed, for example, by selling, transferring, lending, etc., a portable recording medium such as a DVD or CD-ROM on which the program is recorded. Furthermore, the program may be stored in a storage device of a server computer, and the program may be distributed by transferring the program from the server computer to another computer via a network. As described above, a computer that executes such a program, for example, first temporarily stores in its own storage device the program recorded in the portable recording medium or the program transferred from the server computer. Then, when executing the process, the computer reads the program stored in its own storage device and executes the process according to the read program. As another execution form of the program, the computer may directly read the program from the portable recording medium and execute the process according to the program, and further, each time the program is transferred from the server computer to the computer, the computer may execute the process according to the received program. Furthermore, the server computer may not transfer the program to the computer, and the above-mentioned process may be executed by a so-called ASP (Application Service Provider) type service that realizes the processing function only by issuing an execution instruction and obtaining the result. In addition, the program in this embodiment includes information used for processing by an electronic computer and equivalent to a program (such as data that is not a direct instruction to a computer but has the nature of defining computer processing).
[0043] In each embodiment, the present device is configured by executing a predetermined program on a computer, but at least a part of the processing contents may be realized by hardware.
[0044] The present invention is not limited to the above-described embodiment. For example, the processes may be executed not only in chronological order as described, but also in parallel or individually depending on the processing capacity of the device that executes the processes or on the need of the device. It goes without saying that other modifications are possible without departing from the spirit of the present invention. [Industrial Applicability]
[0045] The present invention can be applied to applications in which an Intersect operation is performed on two multisets by secure computation. For example, the present invention can be used to perform an Intersect operation in an RDBMS (Relational Database Management System) by secure computation. [Explanation of symbols]
[0046] 1. Secure Computing System 11-w Secret computing device 112-w Input flag assignment section 114-w Stable sorting unit 115-w Equal sign judgment part 116-w Output flag generator 117-w Output flag assignment section
Claims
1. First multiset X={{x 0 ,...,x n-1 }} and the second multiset Y={{y 0 ,...,y m-1 }} is kept confidential, the secure computing device obtains a concealed computation result representing concealed information of an Intersect computation result between the first multiset X and the second multiset Y, n and m are positive integers, i = 0, ..., n-1, j = 0, ..., m-1, q = 0, ..., n+m-1, [α] is the concealment information of α, (A) The first element of n [x 0 ],...,[x n-1 ] and m second elements [y 0 ],...,[y m-1 ] as input, n first values [B 0 ] and m second values [B 1 Columns containing [s]=([s 0 ],...,[s n-1 ],[s n ],...,[s n+m-1 ])=([B 0 ],...,[B 0 ],[B 1 ],...,[B 1 ]) And the first element [x 0 ],...,[x n-1 ] and the second element [y 0 ],...,[y m-1 Columns containing [M]=([M 0 ],...,[M n-1 ],[M n ],...,[M n+m-1 ])=([x 0 ],...,[x n-1 ],[y 0 ],...,[y m-1 ]), B 0 and B. 1 are different from each other, and each first element [M i ]=[x i ] for each first value [s i ]=[B 0 ] are matched, and each second element [M j+n ]=[y j ] for each second value [s j+n ]=[B 1 ] is associated with an input flagging unit that obtains an input flagged sequence ([s], [M]); (B) For the input flagged sequence ([s], [M]), q ] and [M q ], while maintaining the correspondence with the element M corresponding to the column [M] 0 ,...,M n+m-1 A stable sorting is performed according to the order of the contents represented by each item using secret computation, and the sorted value [s' 0 ],...,[s' n+m-1 ] column [s'] = ([s' 0 ],...,[s' n+m-1 ]) and sorted elements [M' 0 ],...,[M' n+m-1 ] column [M'] = ([M' 0 ],...,[M' n+m-1 A stable sorting part obtains a sorted sequence ([s'], [M']) including the first s' and the second s'. (CM' q =M' q+1 When eq q =T, and M' q =M' q+1 If not, eq q =F, and eq n+m-1 =F, and s' q =s' q+1 When seq q =T, and s' q =s' q+1 If not, seq q = F, and seq n+m-1 =F, T and F are different from each other, Using the sorted sequence ([s'], [M']), the first equality judgment result [eq q ] and the second equality test result [seq q an equality test unit for obtaining (D)"eq q = T and seq q =F” when f q =D 1 and "eq q = T and seq q =F” when f q =D 0 and D 1 and D. 0 are different from each other, The first equality judgment result [eq q ] and the second equality judgment result [seq q ], and the output flag [f q an output flag generator for obtaining (E) The output flags [f q ] and the sorted elements of the sequence [M'] [M' q an output flag assignment unit that outputs the concealment calculation result including A secure computing device having the above configuration.
2. 2. The secure computing device of claim 1, (A) the input flag assignment unit, [0090] Obtain the input flagged sequence ([s], [M]) represented by (B) the stable sorting unit, [0089] The sorted sequence ([s'], [M']) is obtained as follows: M' 0 ,...,M' n+m-1 The column of the element M 0 ,...,M n+m-1 The elements M according to the order of the contents they each represent 0 ,...,M n+m-1 is a stable sort result for the sequence of Each sorted value [s' q ] is calculated by the stable sorting unit by secure computation of each sorted element [M' q ] into the stably sorted elements [M r ] was assigned to the element [s r ], and r=0,...,n+m-1.
3. A secure computing system comprising the secure computing device according to claim 1 or 2.
4. First multiset X={{x 0 ,...,x n-1 }} and the second multiset Y={{y 0 ,...,y m-1 }} is kept concealed, the method comprising: obtaining a concealed computation result representing concealed information of an Intersect computation result between the first multiset X and the second multiset Y, n and m are positive integers, i = 0, ..., n-1, j = 0, ..., m-1, q = 0, ..., n+m-1, [α] is the concealment information of α, (A) In the input flag assignment unit, the first element [x 0 ],...,[x n-1 ] and m second elements [y 0 ],...,[y m-1 ] as input, n first values [B 0 ] and m second values [B 1 Columns containing [s]=([s 0 ],...,[s n-1 ],[s n ],...,[s n+m-1 ])=([B 0 ],...,[B 0 ],[B 1 ],...,[B 1 ]) And the first element [x 0 ],...,[x n-1 ] and the second element [y 0 ],...,[y m-1 Columns containing [M]=([M 0 ],...,[M n-1 ],[M n ],...,[M n+m-1 ])=([x 0 ],...,[x n-1 ],[y 0 ],...,[y m-1 ]), B 0 and B. 1 are different from each other, and each first element [M i ]=[x i ] for each first value [s i ]=[B 0 ] are matched, and each second element [M j+n ]=[y j ] for each second value [s j+n ]=[B 1 ] is associated with an input flagging step to obtain an input flagged sequence ([s], [M]); (B) In the stable sorting unit, for the input flagged sequence ([s], [M]), [s q ] and [M q ], while maintaining the correspondence with the element M corresponding to the column [M] 0 ,...,M n+m-1 A stable sorting is performed according to the order of the contents represented by each item using secret computation, and the sorted value [s' 0 ],...,[s' n+m-1 ] column [s'] = ([s' 0 ],...,[s' n+m-1 ]) and sorted elements [M' 0 ],...,[M' n+m-1 ] column [M'] = ([M' 0 ],...,[M' n+m-1 A stable sorting step to obtain a sorted sequence ([s'], [M']) including (CM' q =M' q+1 When eq q =T, and M' q =M' q+1 If not, eq q =F, and eq n+m-1 =F, and s' q =s' q+1 When seq q =T, and s' q =s' q+1 If not, seq q = F, and seq n+m-1 =F, T and F are different from each other, In the equality judgment unit, the sorted sequence ([s'], [M']) is used to perform a secure computation to obtain a first equality judgment result [eq q ] and the second equality test result [seq q an equality test step to obtain (D) (eq q = T and seq q = F) when f q =D 1 and (eq q = T and seq q = F) when f q =D 0 and D 1 and D. 0 are different from each other, In the output flag generation unit, the first equality judgment result [eq q ] and the second equality judgment result [seq q ], and the output flag [f q ]; and (E) an output flag assigning unit assigns the output flags [f q ] and the sorted elements of the sequence [M'] [M' q an output flag assignment step of outputting the concealment calculation result including A secure computation method comprising:
5. A program for causing a computer to function as the secure computing device of claim 1 or 2.
Citation Information
Patent Citations
Method of selecting and delivering content for privacy-protected targeting content systems
EP3340152A1
Secret set calculation device and method
JP2014164145A
Secure multiparty computation of shuffle, sort, and set operations
US20200242234A1
