Secure aggregate maximum system, secure aggregate minimum system, secure computation apparatus, secure aggregate maximum method, secure aggregate minimum method, and program

Information

  • Patent Grant
  • 11251945
  • Patent Number
    11,251,945
  • Date Filed
    Monday, April 22, 2019
    5 years ago
  • Date Issued
    Tuesday, February 15, 2022
    2 years ago
Abstract
An aggregate maximum is efficiently obtained while keeping confidentiality. A flag converting part (12) converts a form of a share of a flag representing a last element of a group. A flag applying part (13) generates a share of a vector in which a value of a value attribute is set if a flag representing the last element of the group is true, and a predetermined value is set if the flag is false. A sorting part (14) generates a share of a sorted vector obtained by sorting the vector with a permutation which moves elements so that the last elements of each group are sequentially arranged from beginning. An output part (15) generates and outputs a share of a vector representing a maximum of each group from the sorted vector.
Description
CROSS-REFERENCE TO RELATED APPLICATIONS

The present application is based on PCT filing PCT/JP2019/016986, filed Apr. 22, 2019, which claims priority to JP 2018-084115, filed Apr. 25, 2018, the entire contents of each are incorporated herein by reference.


TECHNICAL FIELD

The present invention relates to a secure computation technique, and, particularly, relates to a technique of computing an aggregate function while keeping confidentiality.


BACKGROUND ART

An aggregate function is an operation for obtaining statistics grouped based on a value of a key attribute when a table includes a key attribute and a value attribute. The aggregate function is also referred to as a group-by operation. The key attribute is an attribute to be used for grouping records of the table, and, examples of the key attribute can include, for example, an official position, gender, or the like. The value attribute is an attribute to be used for computing statistics, and, examples of the value attribute can include, for example, salary, body height, or the like. The group-by operation is, for example, an operation for obtaining average body height by gender in a case where the key attribute is gender, or the like. The key attribute may be a composite key including a plurality of attributes, and, for example, in a case where the key attributes are gender and age, the group-by operation may be an operation for obtaining average body height of males in their teens, average body height of males in their twenties, . . . . Non-patent literature 1 discloses a method for performing the group-by operation using secure computation.


An aggregate maximum is one of the aggregate functions, and is an operation for obtaining a maximum of a desired value attribute for each group when the table is grouped based on the value of the key attribute. The aggregate maximum is also referred to as a group-by maximum. The group-by maximum is, for example, an operation for obtaining a maximum amount of salary of males in their teens, a maximum amount of salary of males in their twenties, . . . , when the key attributes are gender and age, and the value attribute is salary.


An aggregate minimum is one of the aggregate functions, and is an operation for obtaining a minimum of a desired value attribute for each group when the table is grouped based on the value of the key attribute. The aggregate minimum is also referred to as a group-by minimum. The group-by minimum is, for example, an operation for obtaining a minimum amount of salary of males in their teens, a minimum amount of salary of males in their twenties, . . . , when the key attributes are gender and age, and the value attribute is salary.


PRIOR ART LITERATURE
Non-Patent Literature



  • Non-patent literature 1: Dai Ikarashi, Koji Chida, Koki Hamada, and Katsumi Takahashi, “Secure Database Operations Using An Improved 3-party Verifiable Secure Function Evaluation”, The 2011 Symposium on Cryptography and Information Security, 2011.



SUMMARY OF THE INVENTION
Problems to be Solved by the Invention

In a conventional secure computation technique, the number of times of communication of log(n) where n is the number of subjects to perform computation is required to obtain a group-by maximum/minimum, which is inefficient.


In view of the technical problem as described above, an object of the present invention is to provide a technique which is capable of efficiently obtaining a group-by maximum/minimum while keeping confidentiality.


Means to Solve the Problem

To solve the above-described problem, a secure aggregate maximum system according to a first aspect of the present invention is a secure aggregate maximum system including a plurality of secure computation apparatuses, m being an integer equal to or greater than 2, [v]:=[v0], . . . , [vm−1] being a share obtained by secret sharing a desired value attribute v:=v0, . . . , vm−1 when a table including a key attribute and a value attribute is stably sorted based on a value of the value attribute and a value of the key attribute, [e]:=[e0], . . . , [em−1] being a share obtained by secret sharing a flag e:=e0, . . . , em−1 indicating that a last element of each group is true and other elements are false when the table is grouped based on the value of the key attribute, {{σ}} being a share obtained by secret sharing a permutation σ which moves elements so that the last elements of each group are sequentially arranged from beginning when the table is grouped based on the value of the key attribute, and g being a maximum number of the groups, each of the secure computation apparatuses comprising a flag applying part configured to generate a share [f] which becomes a vector f:=f0, . . . , fm−1, when reconstructed, by setting [vi] at [fi] if [ei] is true, and setting a predetermined fixed value at [fi] if [ei] is false for each integer i equal to or greater than 0 and equal to or less than m−1 using the share [v] and the share [e], a sorting part configured to generate a share [σ(f)] which becomes a sorted vector σ(f) obtained by sorting the vector f with the permutation σ, when reconstructed, using the share [f] and the share {{σ}}, and an output part configured to generate a share [x] which becomes a vector x:=σ(f)0, . . . , σ(f)min(g,m)−1 representing a maximum of each group, when reconstructed, using the share [σ(f)].


To solve the above-described problem, a secure aggregate minimum system according to a second aspect of the present invention is a secure aggregate minimum system including a plurality of secure computation apparatuses, m being an integer equal to or greater than 2, [v]:=[v0], . . . , [vm−1] being a share obtained by secret sharing a desired value attribute v:=v0, . . . , vm−1 when a table including a key attribute and a value attribute is stably sorted based on a value of the value attribute and a value of the key attribute, [e]:=[e0], . . . , [em−1] being a share obtained by secret sharing a flag e:=e0, . . . , em−1 indicating that a last element of each group is true and other elements are false when the table is grouped based on the value of the key attribute, {{σ}} being a share obtained by secret sharing a permutation σ which moves elements so that the last elements of each group are sequentially arranged from beginning when the table is grouped based on the value of the key attribute, and g being a maximum number of the groups, each of the secure computation apparatuses comprising a flag shifting part configured to generate a share [e′] which becomes a flag e′:=e′0, . . . , e′m−1, when reconstructed, by setting [ei−1] at [e′i] for each integer i equal to or greater than 1 and equal to or less than m−1 and setting true at [e′0] using the share [e], a flag applying part configured to generate a share [f′] which becomes a vector f′:=f′0, . . . , f′m−1, when reconstructed, by setting [vi] at [f′i] if [e′i] is true, and setting a predetermined fixed value at [f′i] if [e′i] is false for each integer i equal to or greater than 0 and equal to or less than m−1 using the share [v] and the share [e′], a sorting part configured to generate a share [σ(f′)] which becomes a sorted vector σ(f′) obtained by sorting the vector f′ with the permutation σ, when reconstructed, using the share [f′] and the share {{σ}}, and an output part configured to generate a share [x′] which becomes a vector x′:=σ(f′)0, . . . , σ(f′)min(g,m)−1 representing a minimum of each group, when reconstructed, using the share [σ(f′)].


Effect of the Invention

According to a secure aggregate maximum/minimum technique of the present invention, it is possible to efficiently obtain a group-by maximum/minimum with the number of times of communication of O(1) while keeping confidentiality.





BRIEF DESCRIPTION OF THE DRAWINGS


FIG. 1 is a diagram illustrating a functional configuration of a secure aggregate maximum/minimum system;



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



FIG. 3 is a diagram illustrating a processing procedure of a secure aggregate maximum method;



FIG. 4 is a diagram illustrating a processing procedure of a secure aggregate minimum method; and



FIG. 5 is a diagram illustrating a functional configuration of a secure computation apparatus of a modification.





DETAILED DESCRIPTION OF THE EMBODIMENTS

Embodiments of the present invention will be described in detail below. Note that the same reference numerals will be assigned to components having the same functions in the drawings, and overlapped description will be omitted.


[x]∈[F] indicates that a certain value x is concealed through secret sharing, or the like, on an arbitrary ring F. {b}∈{B} indicates that a certain value b of one bit is concealed through secret sharing, or the like, on a ring B which can represent one bit. {{s}}∈{{Sm}} indicates that a certain permutation s which belongs to a set Sm of permutations of m elements is concealed through secret sharing, or the like. Hereinafter, a secret shared value will be referred to as a “share”.


In sort processing (including stable sort) in secure computation used in the embodiment, for example, sort disclosed in the following Reference literature 1 can be used. Concerning the share {{s}} of the permutation s, it is only necessary to use a hybrid permutation {{π}} disclosed in the following Reference literature 1.


[Reference literature 1] Dai Ikarashi, Koki Hamada, Ryo Kikuchi, and Koji Chida, “A Design and an Implementation of Super-high-speed Multi-party Sorting: The Day When Multi-party Computation Reaches Scripting Languages”, Computer Security Symposium 2017.


First Embodiment
Secure Aggregate Maximum System

A first embodiment of the present invention is a secure aggregate maximum system and method for obtaining a group-by maximum. A configuration example of the secure aggregate maximum system 100 of the first embodiment will be described with reference to FIG. 1. The secure aggregate maximum system 100 includes N (≥2) secure computation apparatuses 11, . . . , 1N. In the present embodiment, the secure computation apparatuses 11, . . . , 1N are respectively connected to a communication network 9. The communication network 9 is a communication network of a circuit switching system or a packet switching system, configured so that respective connected apparatuses can perform communication with each other, and, for example, the Internet, a local area network (LAN), a wide area network (WAN), or the like, can be used. Note that the respective apparatuses do not necessarily have to be able to perform communication online via the communication network 9. For example, it is also possible to employ a configuration where information which is to be input to the secure computation apparatuses 11, . . . , 1N is stored in a portable recording medium such as a magnetic tape and a USB memory, and the information is input from the portable recording medium to the secure computation apparatuses 11, . . . , 1N offline.


A configuration example of the secure computation apparatuses 1n (n=1, . . . , N) included in the secure aggregate maximum system 100 of the present embodiment will be described with reference to FIG. 2. For example, as illustrated in FIG. 2, the secure computation apparatus 1n includes an input part 10, a flag converting part 12, a flag applying part 13, a sorting part 14 and an output part 15. By this secure computation apparatus 1n (1≤n≤N) performing processing in each step which will be described later while cooperating with another secure computation apparatus 1n′ (n′=1, . . . , N, where n≠n′), the secure aggregate maximum method of the first embodiment is implemented.


The secure computation apparatus 1n is a special apparatus configured by a special program being loaded to a publicly-known or dedicated computer having, for example, a central processing unit (CPU), a main memory (RAM: random access memory), or the like. The secure computation apparatus 1n, for example, executes respective kinds of processing under control by the central processing unit. Data input to the secure computation apparatus 1n and data obtained through the respective kinds of processing are stored in, for example, the main memory, and the data stored in the main memory is read out to the central processing unit as necessary and is utilized for other processing. At least part of respective processing parts of the secure computation apparatus 1n may be configured with hardware such as an integrated circuit.


A processing procedure of the secure aggregate maximum method to be executed by the secure aggregate maximum system 100 of the first embodiment will be described with reference to FIG. 3.


In step S10, the input part 10 of each secure computation apparatus 1n receives a share [v]∈[F]m obtained by concealing a value attribute v∈Fm through secret sharing, a share {e}∈{B}m obtained by concealing a flag e∈Bm through secret sharing, a share {{σ}}∈{{Sm}} obtained by concealing a permutation σ through secret sharing, and a maximum number of groups g, as input. m is an integer equal to or greater than 2. The input part 10 outputs the share {e} of the flag e to the flag converting part 12, outputs the share [v] of the value attribute v to the flag applying part 13, and outputs the share {{σ}} of the permutation σ to the sorting part 14.


The value attribute v is a value attribute after a table is stably sorted in ascending order of a value attribute and a key attribute. Note that stable sort is an operation of storing order of elements of the same value in a case where elements of the same value exist, among sort operations. For example, if a table sorted in order of employee number is stably sorted with gender, a sort result in which order of the employee number is kept in each type of gender can be obtained. In other words, the value attribute v is a value attribute after a table is sorted in ascending order of a value of the value attribute for each group. Hereinafter, there is a case where each element of [v]∈[F]m is referred to by [vi]∈[F] (i=0, . . . , m−1).


The flag e is a flag representing a boundary of groups. For example, the flag e is a flag such that, when the table is stably sorted with a key attribute, and when records having the same value of the key attribute are put into the same group, a value corresponding to a last element (that is, an element immediately before the boundary of groups) of each group is true (for example, 1), and values corresponding to the other elements are false (for example, 0). Hereinafter, there is a case where each element of {e}∈{B}m is referred to by {ei}∈{B} (i=0, . . . , m−1).


The permutation σ is a permutation which arranges values of key attributes of each group from the head one by one. For example, the permutation σ is a permutation which moves elements so that, when the table is stably sorted with a key attribute, and when records having the same value of the key attribute are put into the same group, the last elements of each group are sequentially arranged from beginning, and subsequently, other elements are sequentially arranged. The share {{σ}} of the permutation σ is only required to be configured using the hybrid permutation {{π}} disclosed in the above-described Reference literature 1.


The maximum number of groups g is the number of combinations of values which the key attribute can take, that is, the number of types of values which the key attribute can take.


In step S12, the flag converting part 12 of each secure computation apparatus 1n converts the share {e}∈{B}m of the flag e into a share [e]∈[F]m through secret sharing on an arbitrary ring F. The flag converting part 12 outputs the share [e] of the flag e to the flag applying part 13.


In step S13, the flag applying part 13 of each secure computation apparatus 1n generates a share [f]∈[F]m which becomes a vector f:=f0, . . . , fm−1∈F, when reconstructed, by setting [fi]:=[ei?vi:0] for each integer i equal to or greater than 0 and equal to or less than m−1 using the share [v] of the value attribute v and the share [e] of the flag e. Here, “?” is a conditional operator (ternary operator). In other words, when [ei] is true (for example, [ei]=[1]), [fi]:=[vi] is set, while, when [ei] is false (for example, [ei]=[0]), [fi]:=[0] is set. A value set when [ei]=[0] does not have to be 0, and may be any value if the value is a value which the value attribute v never takes. The vector f becomes a vector in which, when records having the same value of the key attribute are put into the same group when the table is stably sorted with the key attribute, at the last element fi of each group, a value vi of a value attribute corresponding to the element is set, and at other elements, 0 is set. In other words, the vector f becomes a vector which has a maximum of each group and 0 as elements. The flag applying part 13 outputs a share [f] of the vector f to the sorting part 14.


In step S14, the sorting part 14 of each secure computation apparatus 1n generates a share [σ(f)]∈[F]m which becomes a sorted vector σ(f) obtained by sorting the vector f with the permutation σ, when reconstructed, using the share [f] of the vector f and the share {{σ}} of the permutation σ. Hereinafter, there is a case where each element of [σ(f)]∈[F]m is referred to by [σ(f)i]∈[F] (i=0, . . . , m−1). The sorted vector σ(f) becomes a vector in which, at elements corresponding to the number of groups from the head, a value of the last element (that is, a maximum of each group) when the table is sorted for each group, is set, and at subsequent elements, 0 is set. The sorting part 14 outputs the share [σ(f)] of the sorted vector σ(f) to the output part 15.


In step S15, the output part 15 of each secure computation apparatus 1n generates a share [x]∈[F]min(g,m) which becomes a vector x:=σ(f)0, . . . , σ(f)min(g,m)−1 representing the maximum of each group, when reconstructed, from the share [σ(f)] of the sorted vector σ(f), and outputs the share [x] of the maximum x.


Second Embodiment
Secure Aggregate Minimum System

A second embodiment of the present invention is a secure aggregate minimum system and method for obtaining a group-by minimum. A configuration example of a secure aggregate minimum system 101 of the second embodiment will be described with reference to FIG. 1. The secure aggregate minimum system 101 includes N (≥2) secure computation apparatuses 21, . . . , 2N. In the present embodiment, the secure computation apparatuses 21, . . . , 2N are respectively connected to the communication network 9. The communication network 9 is a communication network of a circuit switching system or a packet switching system, configured so that respective connected apparatuses can perform communication with each other, and, for example, the Internet, a local area network (LAN), a wide area network (WAN), or the like, can be used. Note that the respective apparatuses do not necessarily have to be able to perform communication online via the communication network 9. For example, it is also possible to employ a configuration where information which is to be input to the secure computation apparatuses 21, . . . , 2N is stored in a portable recording medium such as a magnetic tape and a USB memory, and the information is input from the portable recording medium to the secure computation apparatuses 21, . . . , 2N offline.


A configuration example of the secure computation apparatus 2n (n=1, . . . , N) included in the secure aggregate minimum system 101 of the present embodiment will be described with reference to FIG. 2. For example, as illustrated in FIG. 2, the secure computation apparatus 2n further includes a flag shifting part 11 in addition to processing parts provided at the secure computation apparatus 1n included in the secure aggregate maximum system 100 of the first embodiment. By this secure computation apparatus 2n (1≤n≤N) performing processing in each step which will be described later while cooperating with another secure computation apparatus 2n′ (n′=1, . . . , N, where n≠n′), the secure aggregate minimum method of the second embodiment is implemented.


A processing procedure of the secure aggregate minimum method to be executed by the secure aggregate minimum system 101 of the second embodiment will be described with reference to FIG. 4.


In step S10, the input part 10 of each secure computation apparatus 2n receives a share [v]∈[F]m obtained by concealing a value attribute v∈Fm through secret sharing, a share {e}∈{B}m obtained by concealing a flag e∈Bm through secret sharing, a share {{σ}}∈{{Sm}} obtained by concealing a permutation σ through secret sharing, and a maximum number of groups g, as input. The input part 10 outputs the share {e} of the flag e to the flag shifting part 11, outputs the share [v] of the value attribute v to the flag applying part 13, and outputs the share {{σ}} of the permutation σ to the sorting part 14.


In step S11, the flag shifting part 11 of each secure computation apparatus 2n generates a share {e′}∈{B}m which becomes a flag e′:=e′0, . . . , e′m−1 ∈Bm, when reconstructed, by setting {e′i}:={ei−1} for each integer 1 equal to or greater than 1 and equal to or less than m−1 and setting {e′0}:={1} using the share {e} of the flag e. Because the flag e′ is a flag obtained by shifting the flag e indicating the last element of each group backward one by one, the flag e′ becomes a flag indicating a first element of each group (that is, an element immediately after the boundary between groups). The flag shifting part 11 outputs the share {e′} of the flag e′ to the flag converting part 12.


In step S12, the flag converting part 12 of each secure computation apparatus 2n converts the share {e′}∈{B}m of the flag e′ into a share [e′]∈[F]m through secret sharing on an arbitrary ring F. The flag converting part 12 outputs the share [e′] of the flag e′ to the flag applying part 13.


In step S13, the flag applying part 13 of each secure computation apparatus 2n generates a share [f′]∈[F]m which becomes a vector f′:=f′0, . . . , f′m−1∈F, when reconstructed, by setting [f′]:=[e′i?vi:0] for each integer i equal to or greater than 0 and equal to or less than m−1 using the share [v] of the value attribute v and the share [e′] of the flag e′. In other words, when [e′i] is true (for example, [e′i]=[1]), [f′i]:=[vi] is set, while, when [e′i] is false (for example, [e′i]=[0]), [f′i]:=[0] is set. A value set when [e′i]=[0] does not have to be 0, and may be any value if the value is a value which the value attribute v never takes. The vector f′ becomes a vector in which, when the table is stably sorted with the key attribute, and records having the same value of the key attribute are put into the same group, at a first element f′i of each group, a value vi of the value attribute corresponding to the element is set, and 0 is set at other elements. In other words, the vector f′ becomes a vector which has a minimum of each group and 0 as elements. The flag applying part 13 outputs the share [f′] of the vector f′ to the sorting part 14.


In step S14, the sorting part 14 of each secure computation apparatus 2n generates a share [σ(f′)]∈[F]m which becomes a sorted vector σ(f′) obtained by sorting the vector f′ with the permutation σ, when reconstructed, using the share [f′] of the vector f′ and the share {{σ}} of the permutation σ. Hereinafter, there is a case where each element of [σ(f′)]∈[F]m is referred to by [σ(f′)i]∈[F] (i=0, . . . , m−1). The sorted vector σ(f′) becomes a vector in which, at elements corresponding to the number of groups from the head, a value of a first element (that is, a minimum of each group) when the table is sorted for each group, is set, and at subsequent elements, 0 is set. The sorting part 14 outputs the share [σ(f′)] of the sorted vector σ(f′) to the output part 15.


In step S15, the output part 15 of each secure computation apparatus 2n generates a share [x′]∈[F]min(g,m) which becomes a vector x′:=σ(f′)0, . . . , σ(f′)min(g,m)−1 representing a minimum of each group, when reconstructed, from the share [σ(f′)] of the sorted vector σ(f′), and outputs the share [x′] of the minimum x′.


Modification

In the above-described embodiments, a configuration has been described where the share [v] of the value attribute v, the share {e} of the flag e, and the share {{σ}} of the permutation σ are input to the input part 10. In a modification, a configuration will be described where a share obtained by concealing the table through secret sharing, or the like, is input to the input part 10, and, after the share [v] of the value attribute v, the share {e} of the flag e, and the share {{σ}} of the permutation σ are obtained, a group-by maximum/minimum is calculated in accordance with the procedure described in the above-described embodiments.


For example, as illustrated in FIG. 5, a secure computation apparatus 3n (n=1, . . . , N) of the modification includes a bit decomposing part 21, a group sort generating part 22, a bit string sorting part 23, a flag generating part 24, a key aggregate sort generating part 25 and a value sorting part 26 in addition to respective processing parts provided at the secure computation apparatus 1n (n=1, . . . , N) of the first embodiment and the secure computation apparatus 2n (n=1, . . . , N) of the second embodiment. Only a difference from the secure aggregate maximum system 100 of the first embodiment and the secure aggregate minimum system 101 of the second embodiment will be described below.


The input part 10 of each secure computation apparatus 3n receives a share [k0], . . . , [knk−1]∈[F]m obtained by concealing each of nk key attributes k0, . . . , knk−1∈Fm through secret sharing, and a share [v′0], . . . , [v′na−1]∈[F]m obtained by concealing each of na value attributes v′0, . . . , v′na−1∈Fm through secret sharing, as input. However, nk and na are integers equal to or greater than 1. Hereinafter, there is a case where each element of [kj]∈[F]m (j=0, . . . , nk−1) is referred to by [kj, i]∈[F] (i=0, . . . , m−1). The input part 10 outputs shares [k0], . . . , [knk−1] of the key attributes k0, . . . , knk−1 to the bit decomposing part 21. Further, the input part 10 outputs shares [v′0], . . . , [v′na−1] of the value attributes v′0, . . . , v′na−1 to the value sorting part 26.


The bit decomposing part 21 of each secure computation apparatus 3n bit-decomposes and concatenates the shares [k0], . . . , [knk−1] of the key attributes k0, . . . , knk−1 and obtains a share {b}∈{B}λ which becomes a bit string b:=b0, . . . , bm−1∈Bλ which is a coupled bit expression of the key attributes k0, . . . , knk−1, when reconstructed. Note that λ is a bit length of the bit string b, and a sum of bit lengths of respective bi (i=0, . . . , m−1). In other words, {bi} is a bit string obtained by coupling bit expression of the i-th elements [k0, i], . . . , [knk−1,i] of the respective shares [k0], . . . , [knk−1] of the key attributes k0, . . . , knk−1. The bit decomposing part 21 outputs the share {b} of the bit string b to the group sort generating part 22.


The group sort generating part 22 of each secure computation apparatus 3n generates a share {{σ0}}∈{{Sm}} which becomes a permutation σ0 which stably sorts the bit string b in ascending order, when reconstructed, using the share {b} of the bit string b. Because the bit string b is a coupled bit expression of the key attributes k0, . . . , knk−1, it can be said that the permutation σ0 is an operation of grouping records by rearranging the records so that records having equal values of the key attributes k0, . . . , knk−1 are successive. The group sort generating part 22 outputs the share {b} of the bit string b and the share {{σ0}} of the permutation σ0 to the bit string sorting part 23. Further, the group sort generating part 22 outputs the share {{σ0}} of the permutation σ0 to the value sorting part 26.


The bit string sorting part 23 of each secure computation apparatus 3n obtains a share {b′}∈{B}λ which becomes a sorted bit string b′:=b′0, . . . , b′m−1∈Bλ obtained by sorting the bit string b with the permutation σ0, when reconstructed, using the share {b} of the bit string b and the share {{σ0}} of the permutation σ0. The bit string sorting part 23 outputs the share {b′} of the sorted bit string b′ to the flag generating part 24.


The flag generating part 24 of each secure computation apparatus 3n generates a share {e}∈{B}m which becomes a flag e:=e0, . . . , em−1∈Bm, when reconstructed, by setting {ei}:={b′i≠b′i+1} for each integer i equal to or greater than 0 and equal to or less than m−2 and setting {em−1}:={1}, using the share {b′} of the sorted bit string b′. Because true is set at the flag ei if the i-th element b′i of the sorted bit string b′ is different from the i+1-th element b′i+1, the flag ei becomes a flag which indicates the last element of each group (that is, an element immediately before the boundary between groups). The flag generating part 24 outputs the share {e} of the flag e to the key aggregate sort generating part 25. Further, the flag generating part 24 outputs the share {e} of the flag e to the flag converting part 12 or the flag shifting part 11.


The key aggregate sort generating part 25 of each secure computation apparatus 3n first generates a share {e″}∈{B}m which becomes a flag e″ which is a negation ¬e of the flag e, when reconstructed, using the share {e} of the flag e. In other words, the key aggregate sort generating part 25 sets {e″i}:={¬ei} for each integer i equal to or greater than 0 and equal to or less than m−1. Then, the key aggregate sort generating part 25 generates a share {{σ}}∈{{Sm}} which becomes a permutation σ which stably sorts the flag e″ in ascending order, when reconstructed, using the share {e″} of the flag e″. The key aggregate sort generating part 25 outputs the share {{σ}} of the permutation σ to the value sorting part 26. Further, the key aggregate sort generating part 25 outputs the share {{σ}} of the permutation σ to the sorting part 14.


The value sorting part 26 of each secure computation apparatus 3n generates shares [v0], . . . , [vna−1] which become sorted value attributes v0, . . . , vna−1 obtained by sorting value attributes v′0, . . . , v′na−1 with the permutation σ0, when reconstructed, using shares [v′0], . . . , [v′na−1] of the value attributes v′0, . . . , v′na−1 and the share {{σ0}} of the permutation σ0. The value sorting part 26 outputs shares for which it is desired to compute a maximum/minimum for each group among the shares [v0], . . . , [vna−1] of the sorted value attributes v0, . . . , vna−1, to the flag applying part 13 as the share [v] of the value attribute v.


While the embodiments of the present invention have been described above, it goes without saying that a specific configuration is not limited to these embodiments, and design change, or the like, within the scope not deviating from the gist of the present invention are incorporated into the present invention. Various kinds of processing described in the embodiments are executed not only in chronological order in accordance with order of description, but also executed in parallel or individually in accordance with processing performance of apparatuses which execute the processing or as necessary.


Program, Recording Medium


In a case where various kinds of processing functions of the respective apparatuses described in the above-described embodiments are realized with a computer, a processing content of the functions which should be provided at the respective apparatuses is described with a program. Then, by this program being executed with the computer, various kinds of processing functions at the above-described respective apparatuses are realized on the computer.


The program describing this processing content can be recorded in a computer-readable recording medium. As the computer-readable recording medium, any medium such as, for example, a magnetic recording apparatus, an optical disk, a magnetooptical recording medium and a semiconductor memory can be used.


Further, this program is distributed by, for example, a portable recording medium such as a DVD and a CD-ROM in which the program is recorded being sold, given, lent, or the like. Still further, it is also possible to employ a configuration where this program is distributed by the program being stored in a storage device of a server computer and transferred from the server computer to other computers via a network.


A computer which executes such a program, for example, first, stores a program recorded in the portable recording medium or a program transferred from the server computer in the storage device of the own computer once. Then, upon execution of the processing, this computer reads out the program stored in the storage device of the own computer and executes the processing in accordance with the read program. Further, as another execution form of this program, the computer may directly read a program from the portable recording medium and execute the processing in accordance with the program, and, further, sequentially execute the processing in accordance with the received program every time the program is transferred from the server computer to this computer. Further, it is also possible to employ a configuration where the above-described processing is executed by so-called ASP (Application Service Provider) type service which realizes processing functions only by an instruction of execution and acquisition of a result without the program being transferred from the server computer to this computer. Note that, it is assumed that the program in the present embodiment includes information which is to be used for processing by an electronic computer, and which is equivalent to a program (not a direct command to the computer, but data, or the like, having property specifying processing of the computer).


Further, while, in this embodiment, the present apparatus is constituted by a predetermined program being executed on the computer, at least part of the processing content may be realized with hardware.

Claims
  • 1. A secure aggregate maximum system comprising a plurality of secure computation apparatuses, m being an integer equal to or greater than 2, [v]: =[v0], . . . , [vm−1] being a share m−1 obtained by secret sharing a desired value attribute v: =v0, . . . , vm−1 when a table including a key attribute and a value attribute is stably sorted based on a value of the value attribute and a value of the key attribute, [e]: =[e0], . . . , [em−1] being a share obtained by secret sharing a flag e: =e0, . . . , em−1 indicating that a last element of each group is true and other elements are false when the table is grouped based on the value of the key attribute, {{σ}} being a share obtained by secret sharing a permutation a which moves elements so that the last elements of each group are sequentially arranged from beginning when the table is grouped based on the value of the key attribute, and g being a maximum number of the groups,each of the secure computation apparatuses comprising processing circuitry configured to:generate a share [f] which becomes a vector f: =f0, . . . , fm−1, when reconstructed, by setting [vi] at [fi] if [ei] is true, and setting a predetermined fixed value at [fi] if [ei] is false for each integer i equal to or greater than 0 and equal to or less than m−1 using the share [v] and the share [e],generate a share [σ(f)] which becomes a sorted vector σ(f) obtained by sorting the vector f with the permutation σ, when reconstructed, using the share [f] and the share {{σ}}, andgenerate a share [x] which becomes a vector x: =σ(f)0, . . . , σ(f)min(g,m)−1 representing a maximum of each group, when reconstructed, using the share [σ(f)].
  • 2. The secure aggregate maximum system according to claim 1, wherein F is an arbitrary ring, nk is an integer equal to or greater than 1, [k0], . . . , [knk−1] are shares obtained by secret sharing key attributes k0, . . . , knk−1 ∈ Fm, [v′] is a share obtained by secret sharing a desired value attribute v′ ∈ Fm before the table is sorted based on the value of the key attribute, andthe processing circuitry is further configured to:generate a share {{σ0}} which becomes a permutation σ0 which stably sorts a bit string b in ascending order, when reconstructed, from a share {b} which becomes the bit string b: =b0, . . . , bm−1 obtained by bit-decomposing and coupling the key attributes k0, . . . , when reconstructed, using the shares [k0], . . . , [knk−1];generate a share {b′} which becomes a sorted bit string b′: =b′0, . . . , b′m−1 obtained by sorting the bit string b with the permutation σ0, when reconstructed, using the share {b} and the share {{σ0}};generate the share {e} which becomes the flag e: =e0, . . . , em−1, when reconstructed, by setting {ei}:={b′i≠b′i+1} for each integer i equal to or greater than 0 and equal to or less than m−2 and setting {em−1}: ={1} using the share {b′};generate the share {{σ}} which becomes the permutation a which stably sorts a denial ¬e of the flag e in ascending order, when reconstructed, using the share {e}; andgenerate a share [v] which becomes the value attribute v obtained by sorting the value attribute v′ with the permutation σ0, when reconstructed, using the share [v′] and the share {{σ0}}.
  • 3. A secure aggregate minimum system comprising a plurality of secure computation apparatuses, m being an integer equal to or greater than 2, [v]: =[v0], . . . , [vm−1] being a share obtained by secret sharing a desired value attribute v: =v0, . . . , vm−1 when a table including a key attribute and a value attribute is stably sorted based on a value of the value attribute and a value of the key attribute, [e]: =[e0], . . . , [em−1] being a share obtained by secret sharing a flag e: =e0, . . . , em−1 indicating that a last element of each group is true and other elements are false when the table is grouped based on the value of the key attribute, {{σ}} being a share obtained by secret sharing a permutation a which moves elements so that the last elements of each group are sequentially arranged from beginning when the table is grouped based on the value of the key attribute, and g being a maximum number of the groups,each of the secure computation apparatuses comprising processing circuitry configured to:generate a share [e′] which becomes a flag e′: =e′0, e′m−1, when reconstructed, by setting [ei−1] at [e′i] and setting true at [e′0] for each integer i equal to or greater than 1 and equal to or less than m−1 using the share [e];generate a share [f′] which becomes a vector f′: =f′0, . . . , f′m−1, when reconstructed, by setting [vi] at [f′i] if [e′i] is true, and setting a predetermined fixed value at [f′i] if [e′i] is false for each integer i equal to or greater than 0 and equal to or less than m−1 using the share [v] and the share [e′];generate a share [σ(f′)] which becomes a sorted vector σ(f′) obtained by sorting the vector f with the permutation a, when reconstructed, using the share [f′] and the share {{σ}}; andgenerate a share [x′] which becomes a vector x′: =σ(f′)0, . . . , σ(f′)min(g,m)−1 representing a minimum of each group, when reconstructed, using the share [σ(f)].
  • 4. The secure aggregate minimum system according to claim 3, wherein F is an arbitrary ring, nk is an integer equal to or greater than 1, [k0], . . . , [knk−1] are shares obtained by secret sharing key attributes k0, . . . , knk−1 ∈Fm, and [V′] is a share obtained by secret sharing a desired value attribute v′ ∈Fm before the table is sorted based on the value of the key attribute, andthe processing circuitry is further configured to:generate a share {{σ}} which becomes a permutation σ0 which stably sorts a bit string b in ascending order, when reconstructed, from a share {b} which becomes the bit string b: =b0, . . . , bm−1 obtained by bit-decomposing and coupling the key attributes k0, . . . , knk−1, when reconstructed, using the shares [k0], . . . , [knk−1];generate a share {b′} which becomes a sorted bit string b′: =b′0, . . . , b′m−1 obtained by sorting the bit string b with the permutation σ0, when reconstructed, using the share {b} and the share {{σ0}};generate the share {e} which becomes the flag e:=e0, . . . , em−1 when reconstructed, by setting {ei}:={b′i≠b′i+1} for each integer i equal to or greater than 0 and equal to or less than m−2 and setting {em−1}: ={1} using the share {b′};generate the share {{σ}} which becomes the permutation σ which stably sorts a denial of the flag e in ascending order, when reconstructed, using the share {e}; andgenerate a share [v] which becomes the value attribute v obtained by sorting the value attribute v′ with the permutation σ0, when reconstructed, using the share [v′] and the share {{σ0}}.
  • 5. A secure computation apparatus, m being an integer equal to or greater than 2, [v]: =[v0], . . . , [vm−1] being a share obtained by secret sharing a desired value attribute v: =v0, . . . , vm−1 when a table including a key attribute and a value attribute is stably sorted based on a value of the value attribute and a value of the key attribute, [e]: =[e0], . . . , [em−1] being a share obtained by secret sharing a flag e: =e0, . . . , em−1 indicating that a last element of each group is true and other elements are false when the table is grouped based on the value of the key attribute, {{σ}} being a share obtained by secret sharing a permutation a which moves elements so that the last elements of each group are sequentially arranged from beginning when the table is grouped based on the value of the key attribute, and g being a maximum number of the groups,the secure computation apparatus comprising processing circuitry configured to:generate a share [f] which becomes a vector f: =f0, . . . , fm−1, when reconstructed, by setting [vi] at [fi] if [ei] is true, and setting a predetermined fixed value at [fi] if [ei] is false for each integer i equal to or greater than 0 and equal to or less than m−1 using the share [v] and the share [e],generate a share [σ(f)] which becomes a sorted vector σ(f) obtained by sorting the vector f with the permutation σ, when reconstructed, using the share [f] and the share {{σ}}, andgenerate a share [x] which becomes a vector x: =σ(f)0, . . . , σ(f)min(g,m)−1 representing a maximum of each group, when reconstructed, using the share [σ(f)].
  • 6. A non-transitory computer-readable recording medium including a program recorded thereon for causing a computer to function as the secure computation apparatus according to claim 5.
  • 7. A secure computation apparatus, m being an integer equal to or greater than 2, [v]: =[v0], . . . , [vm−1] being a share obtained by secret sharing a desired value attribute v: =v0, . . . , vm−1 when a table including a key attribute and a value attribute is stably sorted based on a value of the value attribute and a value of the key attribute, [e]: =[e0], . . . , [em−1] being a share obtained by secret sharing a flag e: =e0, . . . , em−1 indicating that a last element of each group is true and other elements are false when the table is grouped based on the value of the key attribute, {{σ}} being a share obtained by secret sharing a permutation a which moves elements so that the last elements of each group are sequentially arranged from beginning when the table is grouped based on the value of the key attribute, and g being a maximum number of the groups,the secure computation apparatus comprising processing circuitry configured to:generate a share [e′] which becomes a flag e′: =e′0, . . . , e′m−1, when reconstructed, by setting [ei−1] at [e′i] for each integer i equal to or greater than 1 and equal to or less than m−1 and setting true at [e′0] using the share [e];generate a share [f′] which becomes a vector f: =f′0, . . . , f′m−1, when reconstructed, by setting [vi] at [f′i] if [e′i] is true, and setting a predetermined fixed value at [f′i] if [e′i] is false for each integer i equal to or greater than 0 and equal to or less than m−1 using the share [v] and the share [e′],generate a share [σ(f′)] which becomes a sorted vector σ(f′) obtained by sorting the vector f with the permutation σ, when reconstructed, using the share [(f′)] and the share {{σ}}; andgenerate a share [x′] which becomes a vector x′: =σ(f′)0, . . . , σ(f′)min(g,m)−1 representing a minimum of each group, when reconstructed, using the share [σ(f′)].
  • 8. A non-transitory computer-readable recording medium including a program recorded thereon for causing a computer to function as the secure computation apparatus according to claim 7.
  • 9. A secure aggregate maximum method to be executed by a secure aggregate maximum system comprising a plurality of secure computation apparatuses, m being an integer equal to or greater than 2, [v]: =[vm−1] being a share obtained by secret sharing a desired value attribute v: =v0, . . . , vm−1 when a table including a key attribute and a value attribute is stably sorted based on a value of the value attribute and a value of the key attribute, [e]: =[e0], . . . , [em−1] being a share obtained by secret sharing a flag e: =e0, . . . , em−1 indicating that a last element of each group is true and other elements are false when the table is grouped based on the value of the key attribute, {{σ}} being a share obtained by secret sharing a permutation a which moves elements so that the last elements of each group are sequentially arranged from beginning when the table is grouped based on the value of the key attribute, and g being a maximum number of the groups,the secure aggregate maximum method comprising:generating, by processing circuitry of each of the secure computation apparatuses, a share [f] which becomes a vector f: =f0, . . . , fm−1, when reconstructed, by setting [vi] at [fi] if [ei] is true, and setting a predetermined fixed value at [fi] if [ei] is false for each integer i equal to or greater than 0 and equal to or less than m−1 using the share [v] and the share [e];generating, by the processing circuitry of each of the secure computation apparatuses, a share [σ(f)] which becomes a sorted vector σ(f) obtained by sorting the vector f with the permutation σ, when reconstructed, using the share [f] and the share {{σ}}, andgenerating, by the processing circuitry of each of the secure computation apparatuses, a share [x] which becomes a vector x′: =σ(f)0, . . . , σ(f)min(g,m)−1 representing a maximum of each group, when reconstructed, using the share [σ(f)].
  • 10. A secure aggregate minimum method to be executed by a secure aggregate minimum system comprising a plurality of secure computation apparatuses, m being an integer equal to or greater than 2, [v]: =[v0], . . . , [vm−1] being a share obtained by secret sharing a desired value attribute v: =v0, . . . , vm−1 when a table including a key attribute and a value attribute is stably sorted based on a value of the value attribute and a value of the key attribute, [e]: =[e0], . . . , [em−1] being a share obtained by secret sharing a flag e: =e0, . . . , em−1 indicating that a last element of each group is true and other elements are false when the table is grouped based on the value of the key attribute, {{σ}} being a share obtained by secret sharing a permutation σ which moves elements so that the last elements of each group are sequentially arranged from beginning when the table is grouped based on the value of the key attribute, and g being a maximum of the group,the secure aggregate minimum method comprising:generating, by processing circuitry of each of the secure computation apparatuses, a share [e′] which becomes a flag e′: =e′0, . . . , e′m−1, when reconstructed, by setting [ei−1] at [e′1] for each integer i equal to or greater than 1 and equal to or less than m−1 and setting true at [e0] using the share [e];generating, by the processing circuitry of each of the secure computation apparatuses, a share [f′] which becomes a vector f′: =f′0, . . . , f′m−1, when reconstructed, by setting [vi] at [f′i] if [e′] is true, and setting a predetermined fixed value at [f′i] if [e′i] is false for each integer i equal to or greater than 0 and equal to or less than m−1 using the share [v] and the share [e′];generating, by the processing circuitry of each of the secure computation apparatuses, a share [σ(f)] which becomes a sorted vector σ(f′) obtained by sorting the vector f′ with the permutation σ, when reconstructed, using the share [f′] and the share {{σ}}; andgenerating, by the processing circuitry of each of the secure computation apparatuses, a share [x′] which becomes a vector x′: =σ(f′)0, . . . , σ(f′)min(g,m)−1 representing a minimum of each group, when reconstructed, using the share [σ(f′)].
Priority Claims (1)
Number Date Country Kind
JP2018-084115 Apr 2018 JP national
PCT Information
Filing Document Filing Date Country Kind
PCT/JP2019/016986 4/22/2019 WO 00
Publishing Document Publishing Date Country Kind
WO2019/208485 10/31/2019 WO A
US Referenced Citations (4)
Number Name Date Kind
20110305333 Jacobson Dec 2011 A1
20130272521 Kipnis Oct 2013 A1
20150149763 Kamara May 2015 A1
20160321958 Ikarashi Nov 2016 A1
Foreign Referenced Citations (1)
Number Date Country
2012-154968 Aug 2012 JP
Non-Patent Literature Citations (3)
Entry
Karashi et al., “Secure Database Operations Using An Improved 3-party Verifiable Secure Function Evaluation”, The 2011 Symposium on Cryptography and Information Security, Kokura, Japan, The Institute of Electronics, Information and Communication Engineers, Jan. 25-28, 2011, 20 pages including English Translation.
Karashi et al.,“A Design and an Implementation of Super-high-speed Multi-party Sorting: The Day When Multi-party Computation Reaches Scripting Languages”, Computer Security Symposium 2017, Oct. 23-25, 2017, 9 pages (See English Abstract).
Hamada K. et al.: “An Algorithm for Computing Aggregate Median on Secure Function Evaluation”, Proceedings of Computer Security Symposium 2012, vol. 2012, No. 3, Oct. 23, 2012 (Oct. 23, 2012), pp. 509-516.
Related Publications (1)
Number Date Country
20210243014 A1 Aug 2021 US