SECURE JOINING INFORMATION GENERATION SYSTEM, SECURE JOINING SYSTEM, METHODS THEREFOR, SECURE COMPUTING APPARATUS AND PROGRAM
20210182419 · 2021-06-17
Assignee
Inventors
Cpc classification
G09C1/00
PHYSICS
G06F7/76
PHYSICS
H04L9/085
ELECTRICITY
G06F21/6227
PHYSICS
H04L2209/46
ELECTRICITY
G06F17/16
PHYSICS
International classification
G06F21/62
PHYSICS
G06F17/16
PHYSICS
G06F7/24
PHYSICS
Abstract
A secure joining system is a secure joining system including a plurality of secure computing apparatuses. The plurality of secure computing apparatuses include a vector joining unit 11.sub.n, a first vector generation unit 12.sub.n, a first permutation calculation unit 13.sub.n, a first permutation application unit 14.sub.n, a second vector generation unit 15.sub.n, a third vector generation unit 16.sub.n, a second permutation calculation unit 17.sub.n, a second permutation application unit 18.sub.n, a fourth vector generation unit 19.sub.n, a fifth vector generation unit 110.sub.n, a first inverse permutation application unit 111.sub.n, a first vector separation unit 112.sub.n, a second inverse permutation application unit 113.sub.n and a second vector separation unit 114.sub.n, a third permutation application unit 115.sub.n, a fourth permutation application unit 116.sub.n, and a first joined table generation unit 117.sub.n.
Claims
1. A secure joining information generation system comprising: a plurality of secure computing apparatuses, wherein F.sub.k and F.sub.v are arbitrary rings; [α] is a share generated by secret sharing of α, with α being an arbitrary vector or arbitrary permutation; m.sub.0 and m.sub.1 are integers greater than or equal to 1; k.sub.0 ∈ F.sub.k.sup.m0 is a vector of a key of a first table; v.sub.0 ∈ F.sub.v.sup.m0 is a vector of an attribute value of the first table; k.sub.1 ∈ F.sub.k.sup.m1 is a vector of a key of a second table; v.sub.1 ∈ F.sub.v.sup.m1 is a vector of an attribute value of the second table; and π.sub.0 and π.sub.1 are predetermined permutations with lengths of m.sub.0 and m.sub.1, respectively, and the plurality of secure computing apparatuses include processing circuitry configured to use a share [k.sub.0] of the vector k.sub.0 and a share [k.sub.1] of the vector k.sub.1 to generate a share [k] of a vector k ∈ [F.sub.k].sup.m0+m1 which is generated by joining the vector k.sub.0 and the vector k.sub.1, generate a share [f] of a vector f which is generated by joining m.sub.0 0's and m.sub.1 1's; use the share [k] to generate a share [σ] of a permutation σ for stable sorting of the vector k, use the share [k], the share [σ], and the share [f] to generate a share [σ(k)] of a vector σ(k) which is generated by application of the permutation σ to the vector k and a share [σ(f)] of a vector σ(f) which is generated by application of the permutation σ to the vector f, use the share [σ(k)] to generate a share [e] of a vector e which has 1 when a certain element of the vector σ(k) and an element following that element are the same and has 0 when they are different as an element corresponding to that element, use the share [e] to generate a share [e′] of a vector e′, which is generated by bit inversion of each element of a vector which has 1 when one of a certain element of the vector e and an element preceding that element is 1 and has 0 otherwise as an element corresponding to that element, use the share [e′] to generate a share [σ′] of a permutation σ′ for stable sorting of the vector e′; use the share [σ(f)] and the share [σ′] to generate a share [f′] of a vector f′=σ′(σ(f)) which is generated by application of the permutation σ′ to the vector σ(f), use the share [f′] to generate a share [s] of a vector s, each element of which is a sum of elements of the vector f′ up to an element corresponding to that element, the elements including the element corresponding to that element, and a share [s′] of a vector s′, each element of which is a sum of elements of a bit-inverted vector up to an element corresponding to that element, the elements including the element corresponding to that element, where the bit-inverted vector is a vector generated by bit inversion of each element of the vector f′, use the share [f′], the share [s], and the share [s′] to calculate a share [σ″] of a vector σ″=f′s+(1−f′)s′−1, use the share [e′] and the share [σ] to generate a share [e″] of a vector e″=σ.sup.−1(e′) which is generated by application of an inverse permutation σ.sup.−1 of the permutation σ to the vector e′, use the share [e″] to generate a share [g.sub.0] of a vector g.sub.0 which is formed from first m.sub.0 elements of the vector e″ and a share [g.sub.1] of a vector g.sub.1 which is formed from remaining m.sub.1 elements of the vector e″, use the share [σ″], the share [σ], and the share [σ′] to generate a share [σ′″.sup.−1] of a vector σ′″.sup.−1=σ.sup.−1(σ′.sup.−1(σ″)) which is generated by application of an inverse permutation σ′.sup.−1 of the permutation σ′ and the inverse permutation σ.sup.−1 of the permutation σ to the vector x, use the share [σ′″.sup.−1] to generate a share [σ.sub.0.sup.−1] of a vector σ.sub.0.sup.−1 which is formed from first m.sub.0 elements of the vector σ′″.sup.−1 and a share [σ.sub.1.sup.−1] of a vector σ.sub.1.sup.−1 which is formed from remaining m.sub.1 elements of the vector σ′″.sup.−1, and use the share [σ.sub.0.sup.−1], the share [σ.sub.1.sup.−1], a share [π.sub.0] of the permutation π.sub.0, and a share [π.sub.1] of the permutation π.sub.1 to generate a share [π.sub.0(σ.sub.0.sup.−1)] of a vector π.sub.0(σ.sub.0.sup.−1) which is generated by application of the permutation π.sub.0 to the vector σ.sub.0.sup.−1 and a share [π.sub.1(σ.sub.1.sup.−1)] of a vector π.sub.1(σ.sub.1.sup.−1) which is generated by application of the permutation π.sub.1 to the vector σ.sub.1.sup.−1, and release the π.sub.0(σ.sub.0.sup.−1) and the π.sub.1(σ.sub.1.sup.−1).
2. A secure joining system comprising: the plurality of secure computing apparatuses of the secure joining information generation system according to claim 1, wherein the plurality of secure computing apparatuses further include processing circuitry configured to use the share [k.sub.0] of the vector k.sub.0, a share [v.sub.0] of the vector v.sub.0, the share [k.sub.1] of the vector k.sub.1, and a share [v.sub.1] of the vector v.sub.1 to calculate a share [k.sub.0′] of a vector k.sub.0′=(π.sub.0(σ.sub.0.sup.−1)).sup.−1(π.sub.0(k.sub.0)), a share [v.sub.0′] of a vector v.sub.0′=(π.sub.0(σ.sub.0.sup.−1)).sup.−1(π.sub.0(v.sub.0)), a share [k.sub.1′] of a vector k.sub.1′=(π.sub.1(σ.sub.1.sup.−1)).sup.−1(π.sub.1(k.sub.1′)), and a share [v.sub.1′] of a vector v.sub.1′=(π.sub.1(σ.sub.1.sup.−1)).sup.−1(π.sub.1(v.sub.1′), and use the share [k.sub.0′], the share [v.sub.0′], the share [k.sub.1′], and the share [v.sub.1′] to generate a joined table which joins a vector generated by extracting first c elements of the vector k.sub.0′, a vector generated by extracting first c elements of the vector v.sub.0′, a vector generated by extracting first c elements of the vector k.sub.1′, and a vector generated by extracting first c elements of the vector v.sub.1′, where c is the number of 0 elements in the vector g.sub.0 or the vector g.sub.1.
3. A secure joining system comprising: a plurality of secure computing apparatuses, wherein F.sub.k and F.sub.v are arbitrary rings; [α] is a share generated by secret sharing of α, with α being an arbitrary vector or arbitrary permutation; m.sub.0 and m.sub.1 are integers greater than or equal to 1; k.sub.0 ∈ F.sub.k.sup.m0 is a vector of a key of a first table; v.sub.0 ∈ F.sub.v.sup.m0 is a vector of an attribute value of the first table; k.sub.1 ∈ F.sub.k.sup.m1 is a vector of a key of a second table; v.sub.1 ∈ F.sub.v.sup.m1 is a vector of an attribute value of the second table; and π.sub.0 and π.sub.1 are predetermined permutations with lengths of m.sub.0 and m.sub.1, respectively, and the plurality of secure computing apparatuses include processing circuitry configured to use a share [k.sub.0] of the vector k.sub.0, a share [k.sub.1] of the vector k.sub.1, a share [π.sub.0] of the permutation π.sub.0, and a share [π.sub.1] of the permutation π.sub.1 to generate: a share [π.sub.0(σ.sub.0.sup.−1)] of a vector π.sub.0(σ.sub.0.sup.−1) which is generated by application of the permutation π.sub.0 to an inverse permutation σ.sub.0.sup.−1 of a permutation σ.sub.0, where permutation of each vector of the first table with the permutation σ.sub.0 causes records for keys common to the first table and the second table to move to a head side; a share [π.sub.1(σ.sub.1.sup.−1)] of a vector π.sub.1(σ.sub.1.sup.−) which is generated by application of the permutation π.sub.1 to an inverse permutation σ.sub.1.sup.−1 of a permutation σ.sub.1, where permutation of each vector of the second table with the permutation σ.sub.1 causes records for keys common to the first table and the second table to move to the head side; a share [g.sub.0] of a vector g.sub.0 which is formed from a value g.sub.0,i indicating whether the ith record of the first table is a record for a key that is common to the first table and the second table; and a share [g.sub.1] of a vector g.sub.1 which is formed from a value g.sub.1,i indicating whether the ith record of the second table is a record for a key that is common to the first table and the second table, use the share [g.sub.1], the share [k.sub.1] of the vector k.sub.1, and the share [v.sub.1] of the vector v.sub.1 to generate a modified second table in which if g.sub.1,i=1, the ith element of the key of the second table is set to a predefined value u.sub.1,k indicating null and the ith element of the attribute of the second table is set to a predefined value u.sub.1,v indicating null, where g.sub.1,i is the ith element of the vector g.sub.1, use the share [k.sub.0] of the vector k.sub.0, a share [v.sub.0] of the vector v.sub.0, a share [k.sub.1′] of k.sub.1′, which is a vector of the key of the modified second table, a share [v.sub.1′] of v.sub.1′, which is a vector of the attribute value of the modified second table, the share [π.sub.0] of the permutation π.sub.0, the share [π.sub.1] of the permutation π.sub.1, the share [π.sub.0(σ.sub.0.sup.−1)], and the share [π.sub.1(σ.sub.1.sup.−1)] to calculate a share [k.sub.0′] of a vector k.sub.0′=(π.sub.0(σ.sub.0.sup.−1)).sup.−1(π.sub.0(k.sub.0)), a share [v.sub.0′] of a vector v.sub.0′=(π.sub.0(σ.sub.0.sup.−1)).sup.−1(π.sub.0(v.sub.0)), a share [k.sub.1″] of a vector k.sub.1″=(π.sub.1(σ.sub.1.sup.−1)).sup.−1(π.sub.1(k.sub.1′)), and a share [v.sub.1″] of a vector v.sub.1″=(π.sub.1(σ.sub.1.sup.−1)).sup.−1(π.sub.1(v.sub.1′)), and use the share [k.sub.0′], the share [v.sub.0′], the share [k.sub.1″], and the share [v.sub.1″] to generate, when m.sub.0<m.sub.1, a joined table which joins the vector k.sub.0′, the vector v.sub.0′, a vector generated by extracting first m.sub.0 elements of the vector k.sub.1″, and a vector generated by extracting first m.sub.0 elements of the vector v.sub.1″, and to generate, when m.sub.0>m.sub.1, a joined table which joins the vector k.sub.0′, the vector v.sub.0′, a vector generated by adding m.sub.0-m.sub.1 elements being a predefined value u.sub.k indicating null to the vector k.sub.1″, and a vector generated by adding m.sub.0-m.sub.1 elements being a predefined value u.sub.v indicating null to the vector v.sub.1″.
4. A secure joining system comprising: a plurality of secure computing apparatuses, wherein F.sub.k and F.sub.v are arbitrary rings; [α] is a share generated by secret sharing of α, with α being an arbitrary vector or arbitrary permutation; m.sub.0 and m.sub.1 are integers greater than or equal to 1; k.sub.0 ∈ F.sub.k.sup.m0 is a vector of a key of a first table; v.sub.0 ∈ F.sub.v.sup.m0 is a vector of an attribute value of the first table; k.sub.1 ∈ F.sub.k.sup.m1 is a vector of a key of a second table; v.sub.1 ∈ F.sub.v.sup.m1 is a vector of an attribute value of the second table; and π.sub.0 and π.sub.1 are predetermined permutations with lengths of m.sub.0 and m.sub.1, respectively, and the plurality of secure computing apparatuses include processing circuitry configured to use a share [k.sub.0] of the vector k.sub.0, a share [k.sub.1] of the vector k.sub.1, a share [π.sub.0] of the permutation π.sub.0, and a share [π.sub.1] of the permutation π.sub.1 to generate: a share [π.sub.0(σ.sub.0.sup.−1)] of a vector π.sub.0(σ.sub.0.sup.−1) which is generated by application of the permutation π.sub.0 to an inverse permutation σ.sub.0.sup.−1 of a permutation σ.sub.0, where permutation of each vector of the first table with the permutation σ.sub.0 causes records for keys common to the first table and the second table to move to a head side; a share [π.sub.1(σ.sub.1.sup.−1)] of a vector π.sub.1(σ.sub.1.sup.−1) which is generated by application of the permutation π.sub.1 to an inverse permutation σ.sub.1.sup.−1 of a permutation σ.sub.1, where permutation of each vector of the second table with the permutation σ.sub.1 causes records for keys common to the first table and the second table to move to the head side; a share [g.sub.0] of a vector g.sub.0 which is formed from a value g.sub.0,i indicating whether the ith record of the first table is a record for a key that is common to the first table and the second table; and a share [g.sub.1] of a vector g.sub.1 which is formed from a value g.sub.1,i indicating whether the ith record of the second table is a record for a key that is common to the first table and the second table, use the share [k.sub.0] of the vector k.sub.0, a share [v.sub.0] of the vector v.sub.0, the share [k.sub.1] of the vector k.sub.1, and a share [v.sub.1] of the vector v.sub.1 to calculate a share [k.sub.0′] of a vector k.sub.0′=(π.sub.0(σ.sub.0.sup.−1)).sup.−1(π.sub.0(k.sub.0)), a share [v.sub.0′] of a vector v.sub.0′=(π.sub.0(σ.sub.0.sup.−1)).sup.−1(π.sub.0(v.sub.0)), a share [k.sub.1′] of a vector k.sub.1′=(π.sub.1(σ.sub.1.sup.−1)).sup.−1(π.sub.1(k.sub.1′), and a share [v.sub.1′] of a vector v.sub.1′=(π.sub.1(σ.sub.1.sup.−1)).sup.−1(π.sub.1(v.sub.1′)), and use the share [k.sub.0′], the share [v.sub.0′], the share [k.sub.1′], and the share [v.sub.1′] to generate a joined table which joins a table (1) which joins a vector generated by extracting first c elements of the vector k.sub.0′, a vector generated by extracting first c elements of the vector v.sub.0′, a vector generated by extracting first c elements of the vector k.sub.1′, and a vector generated by extracting first c elements of the vector v.sub.1′, a table (2) which joins a vector generated by extracting remaining m.sub.0-c elements of the vector k.sub.0′, a vector generated by extracting remaining m.sub.0-c elements of the vector v.sub.0′, and a vector having a value corresponding to the attribute value of the second table set to a predefined value u′.sub.1,v indicating null, and a table (3) which joins a vector generated by extracting remaining m.sub.0-c elements of the vector v.sub.0′, a vector generated by extracting remaining m.sub.1-c elements of the vector v.sub.1′, and a vector having a value corresponding to the attribute value of the first table set to a predefined value u′.sub.0,v indicating null where c is the number of 0 elements in the vector g.sub.0 or the vector g.sub.1.
5. The secure joining system according to claim 3 or 4, wherein the plurality of secure computing apparatuses further include processing circuitry configured to use a share [k.sub.0] of the vector k.sub.0 and a share [k.sub.1] of the vector k.sub.1 to generate a share [k] of a vector k ∈ [F.sub.k].sup.m0+m1 which is generated by joining the vector k.sub.0 and the vector k.sub.1, generate a share [f] of a vector f which is generated by joining m.sub.0 0's and m.sub.1 1's, use the share [k] to generate a share [σ] of a permutation σ for stable sorting of the vector k, use the share [k], the share [σ], and the share [f] to generate a share [σ(k)] of a vector σ(k) which is generated by application of the permutation σ to the vector k and a share [σ(f)] of a vector σ(f) which is generated by application of the permutation σ to the vector f, use the share [σ(k)] to generate a share [e] of a vector e which has 1 when a certain element of the vector σ(k) and an element following that element are the same and has 0 when they are different as an element corresponding to that element, use the share [e] to generate a share [e′] of a vector e′, which is generated by bit inversion of each element of a vector which has 1 when one of a certain element of the vector e and an element preceding that element is 1 and has 0 otherwise as an element corresponding to that element, use the share [e′] to generate a share [σ′] of a permutation σ′ for stable sorting of the vector e′, use the share [σ(f)] and the share [σ′] to generate a share [f′] of a vector f′=σ′(σ(f)) which is generated by application of the permutation σ′ to the vector σ(f), use the share [f′] to generate a share [s] of a vector s, each element of which is a sum of elements of the vector f′ up to an element corresponding to that element, the elements including the element corresponding to that element, and a share [s′] of a vector s′, each element of which is a sum of elements of a bit-inverted vector up to an element corresponding to that element, the elements including the element corresponding to that element, where the bit-inverted vector is a vector generated by bit inversion of each element of the vector f′, use the share [f′], the share [s], and the share [s′] to calculate a share [σ″] of a vector σ″=f′s+(1−f′)s′−1, use the share [e′] and the share [σ] to generate a share [e″] of a vector e″=σ.sup.−1(e′) which is generated by application of an inverse permutation σ.sup.−1 of the permutation σ to the vector e′, use the share [e″] to generate a share [g.sub.0] of a vector g.sub.0 which is formed from first m.sub.0 elements of the vector e″ and a share [g.sub.1] of a vector g.sub.1 which is formed from remaining m.sub.1 elements of the vector e″, use the share [σ″], the share [σ], and the share [σ′] to generate a share [σ′″.sup.−1] of a vector σ′″.sup.−1=σ.sup.−1(σ′.sup.−1(σ″)) which is generated by application of an inverse permutation σ′.sup.−1 of the permutation σ′ and the inverse permutation σ.sup.−1 of the permutation σ to the vector x, use the share [σ′″.sup.−1] to generate a share [σ.sub.0.sup.−1] of a vector σ.sub.0.sup.−1 which is formed from first m.sub.0 elements of the vector σ′″.sup.−1 and a share [σ.sub.1.sup.−1] of a vector σ.sub.1.sup.−1 which is formed from remaining m.sub.1 elements of the vector σ′″.sup.−1, and use the share [σ.sub.0.sup.−1], the share [σ.sub.1.sup.−1], a share [π] of the permutation π.sub.0, and a share [π.sub.1] of the permutation π.sub.1 to generate a share [π.sub.0(σ.sub.0.sup.−1)] of a vector π.sub.0(σ.sub.0.sup.−1) which is generated by application of the permutation π.sub.0 to the vector σ.sub.0.sup.−1 and a share [π.sub.1(σ.sub.1.sup.−1)] of a vector π.sub.1(σ.sub.1.sup.−1) which is generated by application of the permutation π.sub.1 to the vector σ.sub.1.sup.−1, and release the π.sub.0(σ.sub.0.sup.−1) and the π.sub.1(σ.sub.1.sup.−1).
6. A secure computing apparatus of the secure joining information generation system according to claim 1 or the secure joining system according to claim 2 or 3.
7. A secure joining information generation method, where F.sub.k and F.sub.v are arbitrary rings; [α] is a share generated by secret sharing of α, with α being an arbitrary vector or arbitrary permutation; m.sub.0 and m.sub.1 are integers greater than or equal to 1; k.sub.0 ∈ F.sub.k.sup.m0 is a vector of a key of a first table; v.sub.0 ∈ F.sub.v.sup.m0 is a vector of an attribute value of the first table; k.sub.1 ∈ F.sub.k.sup.m1 is a vector of a key of a second table; v.sub.1 ∈ F.sub.v.sup.m1 is a vector of an attribute value of the second table; and π.sub.0 and π.sub.1 are predetermined permutations with lengths of m.sub.0 and m.sub.1, respectively, the secure joining information generation method comprising: a vector joining step in which a plurality of vector joining units use a share [k.sub.0] of the vector k.sub.0 and a share [k.sub.1] of the vector k.sub.1 to generate a share [k] of a vector k ∈ [F.sub.k].sup.m0+m1 which is generated by joining the vector k.sub.0 and the vector k.sub.1; a first vector generation step in which a plurality of first vector generation units generate a share [f] of a vector f which is generated by joining m.sub.0 0's and m.sub.1 1's; a first permutation calculation step in which a plurality of first permutation calculation units use the share [k] to generate a share [σ] of a permutation σ for stable sorting of the vector k; a first permutation application step in which a plurality of first permutation application units use the share [k], the share [σ], and the share [f] to generate a share [σ(k)] of a vector σ(k) which is generated by application of the permutation σ to the vector k and a share [σ(f)] of a vector σ(f) which is generated by application of the permutation σ to the vector f; a second vector generation step in which a plurality of second vector generation units use the share [σ(k)] to generate a share [e] of a vector e which has 1 when a certain element of the vector σ(k) and an element following that element are the same and has 0 when they are different as an element corresponding to that element; a third vector generation step in which a plurality of third vector generation units use the share [e] to generate a share [e′] of a vector e′, which is generated by bit inversion of each element of a vector which has 1 when one of a certain element of the vector e and an element preceding that element is 1 and has 0 otherwise as an element corresponding to that element; a second permutation calculation step in which a plurality of second permutation calculation units use the share [e′] to generate a share [σ′] of a permutation σ′ for stable sorting of the vector e′; a second permutation application step in which a plurality of second permutation application units use the share [σ(f)] and the share [σ′] to generate a share [f′] of a vector f′=σ′(σ(f)) which is generated by application of the permutation σ′ to the vector σ(f); a fourth vector generation step in which a plurality of fourth vector generation units use the share [f′] to generate a share [s] of a vector s, each element of which is a sum of elements of the vector f′ up to an element corresponding to that element, the elements including the element corresponding to that element, and a share [s′] of a vector s′, each element of which is a sum of elements of a bit-inverted vector up to an element corresponding to that element, the elements including the element corresponding to that element, where the bit-inverted vector is a vector generated by bit inversion of each element of the vector f′; a fifth vector generation step in which a plurality of fifth vector generation units use the share [f′], the share [s], and the share [s′] to calculate a share [σ″] of a vector σ″=f′s+(1−f′)s′−1; a first inverse permutation application step in which a plurality of first inverse permutation application units use the share [e′] and the share [σ] to generate a share [e″] of a vector e″=σ.sup.−1(e′) which is generated by application of an inverse permutation σ.sup.−1 of the permutation σ to the vector e′; a first vector separation step in which a plurality of first vector separation units use the share [e″] to generate a share [g.sub.0] of a vector g.sub.0 which is formed from first m.sub.0 elements of the vector e″ and a share [g.sub.1] of a vector g.sub.1 which is formed from remaining m.sub.1 elements of the vector e″; a second inverse permutation application step in which a plurality of second inverse permutation application units use the share [σ″], the share [σ], and the share [σ′] to generate a share [σ′″.sup.−1] of a vector σ′″.sup.−1=σ.sup.−1(σ′.sup.−1(σ″)) which is generated by application of an inverse permutation σ′.sup.−1 of the permutation σ′ and the inverse permutation σ.sup.−1 of the permutation σ to the vector x; a second vector separation step in which a plurality of second vector separation units use the share [σ′″.sup.−1] to generate a share [σ.sub.0.sup.−1] of a vector σ.sub.0.sup.−1 which is formed from first m.sub.0 elements of the vector σ′″.sup.−1 and a share [σ.sub.1.sup.1] of a vector σ.sub.1.sup.−1 which is formed from remaining m.sub.1 elements of the vector σ′″.sup.−1; and a third permutation application step in which a plurality of third permutation application units use the share [σ.sub.0.sup.−1], the share [σ.sub.1.sup.−1], a share [π.sub.0] of the permutation π.sub.0, and a share [π.sub.1] of the permutation π.sub.1 to generate a share [π.sub.0(σ.sub.0.sup.−1)] of a vector π.sub.0(σ.sub.0.sup.−1) which is generated by application of the permutation π.sub.0 to the vector σ.sub.0.sup.−1 and a share [π.sub.1(σ.sub.1.sup.−1)] of a vector π.sub.1(σ.sub.1.sup.−1) which is generated by application of the permutation π.sub.1 to the vector σ.sub.1.sup.−1, and release the π.sub.0(σ.sub.0.sup.−1) and the π.sub.1(σ.sub.1.sup.−1).
8. A secure joining method comprising: the steps of the secure joining information generation system according to claim 7; a fourth permutation application step in which a plurality of fourth permutation application units use the share [k.sub.0] of the vector k.sub.0, a share [v.sub.0] of the vector v.sub.0, the share [k.sub.1] of the vector k.sub.1, and a share [v.sub.1] of the vector v.sub.1 to calculate a share [k.sub.0′] of a vector k.sub.0′=(π.sub.0(σ.sub.0.sup.−1)).sup.−1(π.sub.0(k.sub.0)), a share [v.sub.0′] of a vector v.sub.0′=(π.sub.0(σ.sub.0.sup.−1)).sup.−1(π.sub.0(v.sub.0)), a share [k.sub.1′] of a vector k.sub.1′=(π.sub.1(σ.sub.1.sup.−1)).sup.−1(π.sub.1(k.sub.1′)), and a share [v.sub.1′] of a vector v.sub.1′=(π.sub.1(σ.sub.1.sup.−1)).sup.−1(π.sub.1(v.sub.1′)); and a first joined table generation step in which a plurality of first joined table generation units use the share [k.sub.0′], the share [v.sub.0′], the share [k.sub.1′], and the share [v.sub.1′] to generate a joined table which joins a vector generated by extracting first c elements of the vector k.sub.0′, a vector generated by extracting first c elements of the vector v.sub.0′, a vector generated by extracting first c elements of the vector k.sub.1′, and a vector generated by extracting first c elements of the vector v.sub.1′, where c is the number of 0 elements in the vector g.sub.0 or the vector g.sub.1.
9. A secure joining method, where F.sub.k and F.sub.v are arbitrary rings; [α] is a share generated by secret sharing of α, with α being an arbitrary vector or arbitrary permutation; m.sub.0 and m.sub.1 are integers greater than or equal to 1; k.sub.0 ∈ F.sub.k.sup.m0 is a vector of a key of a first table; v.sub.0 ∈ F.sub.v.sup.m0 is a vector of an attribute value of the first table; k.sub.1 ∈ F.sub.k.sup.m1 is a vector of a key of a second table; v.sub.1 ∈ F.sub.v.sup.m1 is a vector of an attribute value of the second table; and π.sub.0 and π.sub.1 are predetermined permutations with lengths of m.sub.0 and m.sub.1, respectively, the secure joining method comprising: a secure joining information generation step in which a plurality of secure joining information generation units use a share [k.sub.0] of the vector k.sub.0, a share [k.sub.1] of the vector k.sub.1, a share [π.sub.0] of the permutation π.sub.0, and a share [π.sub.1] of the permutation π.sub.1 to generate: a share [π.sub.0(σ.sub.0.sup.−1)] of a vector π.sub.0(σ.sub.0.sup.−1) which is generated by application of the permutation π.sub.0 to an inverse permutation σ.sub.0.sup.−1 of a permutation σ.sub.0, where permutation of each vector of the first table with the permutation σ.sub.0 causes records for keys common to the first table and the second table to move to a head side; a share [π.sub.1(σ.sub.1.sup.−1)] of a vector π.sub.1(σ.sub.1.sup.−1) which is generated by application of the permutation π.sub.1 to an inverse permutation σ.sub.1.sup.−1 of a permutation σ.sub.1, where permutation of each vector of the second table with the permutation σ.sub.1 causes records for keys common to the first table and the second table to move to the head side; a share [g.sub.0] of a vector g.sub.0 which is formed from a value g.sub.0,i indicating whether the ith record of the first table is a record for a key that is common to the first table and the second table; and a share [g.sub.1] of a vector g.sub.1 which is formed from a value g.sub.1,i indicating whether the ith record of the second table is a record for a key that is common to the first table and the second table; a filtering step in which a plurality of filtering units use the share [g.sub.1], the share [k.sub.1] of the vector k.sub.1, and the share [v.sub.1] of the vector v.sub.1 to generate a modified second table in which if g.sub.1,i=1, the ith element of the key of the second table is set to a predefined value u.sub.1,k indicating null and the ith element of the attribute of the second table is set to a predefined value u.sub.1,v indicating null, where g.sub.1,i is the ith element of the vector g.sub.1; a fifth permutation application step in which a plurality of fifth permutation application units use the share [k.sub.0] of the vector k.sub.0, a share [v.sub.0] of the vector v.sub.0, a share [k.sub.1′] of k.sub.1′, which is a vector of the key of the modified second table, a share [v.sub.1′] of v.sub.1′, which is a vector of the attribute value of the modified second table, the share [π.sub.0] of the permutation π.sub.0, the share [π.sub.1] of the permutation π.sub.1, the share [π.sub.0(σ.sub.0.sup.−1)], and the share [π.sub.1(σ.sub.1.sup.−1)] to calculate a share [k.sub.0′] of a vector k.sub.0′(π.sub.0(σ.sub.0.sup.−1)).sup.−1(π.sub.0(k.sub.0)), a share [v.sub.0′] of a vector v.sub.0′=(π.sub.0(σ.sub.0.sup.−1)).sup.−1(π.sub.0(v.sub.0)), a share [k.sub.1″] of a vector k.sub.1″=(π.sub.1(σ.sub.1.sup.−1)).sup.−1(π.sub.1(k.sub.1′)), and a share [v.sub.1″] of a vector v.sub.1″=(π.sub.1(σ.sub.1.sup.−1)).sup.−1(π.sub.1(v.sub.1′)); and a second joined table generation step in which a plurality of second joined table generation units use the share [k.sub.0′], the share [v.sub.0′], the share [k.sub.1″], and the share [v.sub.1″] to generate, when m.sub.0<m.sub.1, a joined table which joins the vector k.sub.0′, the vector v.sub.0′, a vector generated by extracting first m.sub.0 elements of the vector k.sub.1″, and a vector generated by extracting first m.sub.0 elements of the vector v.sub.1″, and to generate, when m.sub.0>m.sub.1, a joined table which joins the vector k.sub.0′, the vector v.sub.0′, a vector generated by adding m.sub.0-m.sub.1 elements being a predefined value u.sub.k indicating null to the vector k.sub.1″, and a vector generated by adding m.sub.0-m.sub.1 elements being a predefined value u.sub.v indicating null to the vector v.sub.1″.
10. A secure joining method, where F.sub.k and F.sub.v are arbitrary rings; [α] is a share generated by secret sharing of α, with α being an arbitrary vector or arbitrary permutation; m.sub.0 and m.sub.1 are integers greater than or equal to 1; k.sub.0 ∈ F.sub.k.sup.m0 is a vector of a key of a first table; v.sub.0 ∈ F.sub.v.sup.m0 is a vector of an attribute value of the first table; k.sub.1 ∈ F.sub.k.sup.m1 is a vector of a key of a second table; v.sub.1 ∈ F.sub.v.sup.m1 is a vector of an attribute value of the second table; and π.sub.0 and π.sub.1 are predetermined permutations with lengths of m.sub.0 and m.sub.1, respectively, the secure joining method comprising: a secure joining information generation step in which a plurality of secure joining information generation units use a share [k.sub.0] of the vector k.sub.0, a share [k.sub.1] of the vector k.sub.1, a share [π.sub.0] of the permutation π.sub.0, and a share [π.sub.1] of the permutation π.sub.1 to generate: a share [π.sub.0(σ.sub.0.sup.−1)] of a vector π.sub.0(σ.sub.0.sup.−1) which is generated by application of the permutation π.sub.0 to an inverse permutation σ.sub.0.sup.−1 of a permutation σ.sub.0, where permutation of each vector of the first table with the permutation σ.sub.0 causes records for keys common to the first table and the second table to move to a head side; a share [π.sub.1(σ.sub.1.sup.−1)] of a vector π.sub.1(σ.sub.1.sup.−1) which is generated by application of the permutation π.sub.1 to an inverse permutation σ.sub.1.sup.−1 of a permutation σ.sub.1, where permutation of each vector of the second table with the permutation σ.sub.1 causes records for keys common to the first table and the second table to move to the head side; a share [g.sub.0] of a vector g.sub.0 which is formed from a value g.sub.0,i indicating whether the ith record of the first table is a record for a key that is common to the first table and the second table; and a share [g.sub.1] of a vector g.sub.1 which is formed from a value g.sub.1,i indicating whether the ith record of the second table is a record for a key that is common to the first table and the second table; a fourth permutation application step in which a plurality of fourth permutation application units use the share [k.sub.0] of the vector k.sub.0, a share [v.sub.0] of the vector v.sub.0, the share [k.sub.1] of the vector k.sub.1, and a share [v.sub.1] of the vector v.sub.1 to calculate a share [k.sub.0′] of a vector k.sub.0′=(π.sub.0(σ.sub.0.sup.−1)).sup.−1(π.sub.0(k.sub.0)), a share [v.sub.0′] of a vector v.sub.0′=(π.sub.0(σ.sub.0.sup.−1)).sup.−1(π.sub.0(v.sub.0)), a share [k.sub.1′] of a vector k.sub.1′=(π.sub.1(σ.sub.1.sup.−1)).sup.−1(π.sub.1(k.sub.1′)), and a share [v.sub.1′] of a vector v.sub.1′=(π.sub.1(σ.sub.1.sup.−1)).sup.−1(π.sub.1(v.sub.1′)); and a third joined table generation step in which a plurality of third joined table generation units use the share [k.sub.0′], the share [v.sub.0′], the share [k.sub.1′], and the share [v.sub.1′] to generate a joined table which joins a table (1) which joins a vector generated by extracting first c elements of the vector k.sub.0′, a vector generated by extracting first c elements of the vector v.sub.0′, a vector generated by extracting first c elements of the vector k.sub.1′, and a vector generated by extracting first c elements of the vector vu.sub.1′, a table (2) which joins a vector generated by extracting remaining m.sub.0-c elements of the vector k.sub.0′, a vector generated by extracting remaining m.sub.0-c elements of the vector v.sub.0′, and a vector having a value corresponding to the attribute value of the second table set to a predefined value u′.sub.1,v indicating null, and a table (3) which joins a vector generated by extracting remaining m.sub.0-c elements of the vector v.sub.0′, a vector generated by extracting remaining m.sub.1-c elements of the vector v.sub.1′, and a vector having a value corresponding to the attribute value of the first table set to a predefined value u′.sub.0,v indicating null, where c is the number of 0 elements in the vector g.sub.0 or the vector g.sub.1.
11. One or more non-transitory computer readable that store a program for causing one or more computers to perform the method according to any one of claims 7-10
Description
BRIEF DESCRIPTION OF THE DRAWINGS
[0011]
[0012]
[0013]
[0014]
[0015]
[0016]
[0017]
DETAILED DESCRIPTION OF THE EMBODIMENTS
[0018] Embodiments of the present invention are described below in detail. In the drawings, components having the same function are given the same reference characters and overlapping description is omitted.
Secure Joining System for Performing Inner Join
[0019] Referring to
[0020] The secure joining system includes N (≥2) secure computing apparatuses 1.sub.1, . . . , 1.sub.N. In this embodiment, the secure computing apparatuses 1.sub.1, . . . , 1.sub.N are each connected to a communication network 2. The communication network 2 is a circuit-switched or packet-switched communication network configured to allow communications between connected apparatuses, and can be the Internet, a local area network (LAN), a wide area network (WAN), and the like, for example. The apparatuses do not necessarily be capable of communicating online via the communication network 2. For example, they may be configured such that information entered to the secure computing apparatuses 1.sub.1, . . ., 1.sub.N is stored in a portable recording medium such as magnetic tape or a USB memory and the information is entered offline to the secure computing apparatuses 1.sub.1, . . . , 1.sub.N from the portable recording medium.
[0021] Referring to
[0022] By the components of the secure computing apparatus 1.sub.n (1≤n≤N) performing processing at each step described later in cooperation with the components of other secure computing apparatus 1.sub.n′ (n′=1, . . . , N; where n≠n′), the secure joining method according to the embodiment is implemented.
[0023] The processing at each step is performed in secure computation. That is, the secure computing apparatus 1.sub.n performs the processing at each step without reconstructing a share, in other words, without knowing the content of the share.
[0024] The secure computing apparatus 1.sub.n is a special apparatus configured by loading of a special program into a well-known or dedicated computer having a central processing unit (CPU), main storage unit (random access memory: RAM), and the like, for example. The secure computing apparatus 1.sub.n executes various kinds of processing under control of the central processing unit, for example. Data input to the secure computing apparatus 1.sub.n and data resulting from processing are stored in the main storage unit, for example, and the data stored in the main storage unit is read into the central processing unit as necessary to be used for other processing. The components of the secure computing apparatus 1.sub.n may at least partially consist of hardware such as an integrated circuit.
[0025] For the following description, [α] is assumed to be a share generated by secret sharing of α, with α being an arbitrary vector or an arbitrary permutation.
[0026] Referring to
[0027] For the following description, assume that m.sub.0, m.sub.1, L.sub.0, and L.sub.1 are integers greater than or equal to 1. m.sub.0, m.sub.1, L.sub.0, and L.sub.1 may be the same value or different values.
[0028] The first table has m.sub.0 records. Each one of the m.sub.0 records has one key and attribute values of L.sub.0 attributes. Let k.sub.0 ∈ F.sub.k.sup.m0 be a vector of the keys of the first table. Let v.sub.0 ∈ F.sub.v.sup.m0 be a vector of the attribute values of each attribute of the first table. It is assumed that there are no overlapping keys in the first table. In a case where the first table contains the attribute values of multiple attributes, v.sub.0 may be a vector which is a concatenation of the attribute values of the multiple attributes. For example, assume that the first table has two records and contains the attribute values of two attributes, where the vector of the attribute values of the first attribute is v.sub.0,1=(29, 169) and the vector of the attribute values of the second attribute is v.sub.0,1=(35, 175). In this case, v.sub.0 may be the vector v.sub.0=((29, 35), (169, 175)), which is a concatenation of the attribute values of these two attributes.
[0029] “m0” in the superscript to [F.sub.k, F.sub.v].sup.m0 means “m.sub.0”. In this manner, representation of a further superscript or subscript can be omitted in a superscript. Similarly, representation of a further superscript or subscript can be omitted in a subscript.
[0030] The second table has m.sub.1 records. Each one of the m.sub.1 records has one key and attribute values of L.sub.1 attributes. Let k.sub.1 ∈ F.sub.k.sup.m1 be a vector of the keys of the second table. Let v.sub.1 ∈ F.sub.v.sup.m1 be a vector of the attribute values of each attribute of the second table. It is assumed that there are no overlapping keys in the second table. In a case where the second table contains the attribute values of multiple attributes, v.sub.1 may be a vector which is a concatenation of the attribute values of the multiple attributes like v.sub.0.
[0031] Since in general a vector with its elements being rings is also a ring, data formed by arranging the values of the respective attributes contained in a record can be considered to be a vector, that is, a ring.
[0032] For example, assume that the first table has three records and consists of a vector of keys, k.sub.0=(1, 2, 3), and a vector of the attribute values of one attribute, v.sub.0=(5, 10, 1).
[0033] Also assume that the second table has four records and consists of a vector of keys, k.sub.1=(1, 3, 4, 5), and a vector of the attribute values of one attribute, v.sub.1=(2, 4, 9, 8).
Step S1
[0034] A share [k.sub.0] of the vector k.sub.0 and a share [k.sub.1] of the vector k.sub.1 are input to the vector joining units 11.sub.1, . . . , 11.sub.N.
[0035] The vector joining units 11.sub.1, . . . , 11.sub.N each join [k.sub.0] and [k.sub.1] to obtain [k] ∈ [F.sub.k].sup.m0+m1.
[0036] More specifically, the vector joining units 11.sub.1, . . . , 11.sub.N each use the share [k.sub.0] of the vector k.sub.0 and the share [k.sub.1] of the vector k.sub.1 to generate a share [k] of a vector k ∈ [F.sub.k].sup.m0+m1 which is generated by joining the vector k.sub.0 and the vector k.sub.1 (step S1).
[0037] The generated share [k] is output to the first permutation calculation units 13.sub.1, . . . , 13.sub.N and the first permutation application units 14.sub.1, . . . , 14.sub.N.
[0038] For example, assume that the vector k.sub.0=(1, 2, 3) and the vector k.sub.1=(1, 3, 4, 5) hold. In this case, the vector k=(1, 2, 3, 1, 3, 4, 5) is yielded.
Step S2
[0039] The first vector generation units 12.sub.1, . . . , 12.sub.N each generate a share [f] of a vector f which is generated by joining m.sub.0 0's and m.sub.1 1's (step S2).
[0040] The share [f] is output to the first permutation application units 14.sub.1, . . . , 14.sub.N.
[0041] For example, the vector f=(0, 0, 0, 1, 1, 1, 1) is yielded when m.sub.0=3 and m.sub.1=4.
Step S3
[0042] The share [k] is input to the first permutation calculation units 13.sub.1, . . . , 13.sub.N.
[0043] The first permutation calculation units 13.sub.1, . . . , 13.sub.N each use the share [k] to generate a share [σ] of a permutation σ for stable sorting of the vector k (step S3).
[0044] The share [σ] is output to the first permutation application units 14.sub.1, . . . , 14.sub.N and the second inverse permutation application units 113.sub.1, . . . , 113.sub.N.
[0045] For example, when k=(1, 2, 3, 1, 3, 4, 5), the permutation a will be as shown in Formula (1) below. For example, assuming that numbers are denoted starting at 1, each sequence (i,j).sup.T of the permutation σ means that the ith element of the vector to which the permutation is applied is moved to the jth element.
[0046] Stable sort refers to sorting in which the order of equal data before sorting is preserved after the sorting. Generation of the share [σ] of the permutation σ for performing a stable sort can be implemented with the approach of Reference Literature 1, for example.
[0047] [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”, CSS2017, 2017
Step S4
[0048] The share [k], the share [σ], and the share [f] are input to the first permutation application units 14.sub.1, . . . , 14.sub.N.
[0049] The first permutation application units 14.sub.1, . . . , 14.sub.N each use the share [k], the share [σ], and the share [f] to generate a share [σ(k)] of a vector σ(k) which is generated by application of the permutation σ to the vector k and a share [σ(f)] of a vector σ(f) which is generated by application of the permutation σ to the vector f (step S4).
[0050] The share [σ(k)] is output to the second vector generation units 15.sub.1, . . . , 15.sub.N.
[0051] The share [σ(f)] is output to the second permutation application units 18.sub.k, . . . , 18.sub.N.
[0052] For example, the vector σ(k)=(1, 1, 2, 3, 3, 4, 5) and the vector σ(f)=(0, 1, 0, 0, 1, 1, 1) are yielded when the vector k=(1, 2, 3, 1, 3, 4, 5) and the vector f=(0, 0, 0, 1, 1, 1, 1) hold and the permutation σ is the permutation defined by the Formula (1) above.
Step S5
[0053] The share [σ(k)] is input to the second vector generation units 15.sub.1, . . . , 15.sub.N.
[0054] The second vector generation units 15.sub.1, . . . , 15.sub.N each use the share [σ(k)] to generate a share [e] of a vector e which has 1 when a certain element of the vector σ(k) and the element following that element are the same and has 0 when they are different as the element corresponding to that element (step S5). Here, assume that e.sub.n−1=0 holds.
[0055] The share [e] is output to the third vector generation units 16.sub.1, . . . , 16.sub.N.
[0056] For example, the vector e=(1, 0, 0, 1, 0, 0, 0) is yielded when the vector σ(k)=(1, 1, 2, 3, 3, 4, 5).
Step S6
[0057] The share [e] is input to the third vector generation units 16.sub.1, . . . , 16.sub.N.
[0058] The third vector generation units 16.sub.1, . . . , 16.sub.N each use the share [e] to generate a share [e′] of a vector e′, which is generated by bit inversion of each element of a vector which has 1 when one of a certain element of the vector e and the element preceding that element is 1 and has 0 otherwise as the element corresponding to that element (step S6).
[0059] The share [e′] is output to the second permutation calculation units 17.sub.1, . . . , 17.sub.N.
[0060] For example, the vector e′=(0, 0, 1, 0, 0, 1, 1) is yielded when the vector e=(1, 0, 0, 1, 0, 0, 0).
Step S7
[0061] The share [e′] is input to the second permutation calculation units 17.sub.1, . . . , 17.sub.N.
[0062] The second permutation calculation units 17.sub.1, . . . , 17.sub.N each use the share [e′] to generate a share [σ′] of a permutation σ′ for stable sorting of the vector e′ (step S7).
[0063] The share [σ′] is output to the second permutation application units 18.sub.1, . . . , 18.sub.N and the second inverse permutation application units 113.sub.1, . . . , 113.sub.N.
[0064] For example, the permutation σ′ will be as shown in Formula (2) below when the vector e′=(0, 0, 1, 0, 0, 1, 1).
Step S8
[0065] The share [σ(f)] and the share [σ′] are input to the second permutation application units 18.sub.1, . . . , 18.sub.N.
[0066] The second permutation application units 18.sub.1, . . . , 18.sub.N each use the share [σ(f)] and the share [σ′] to generate a share [f′] of a vector f′=σ′(σ(f)) which is generated by application of the permutation σ′ to the vector σ(f) (step S8).
[0067] The share [f′] is output to the fourth vector generation units 19.sub.1, . . . , 19.sub.N.
[0068] For example, the vector f′=(0, 1, 0, 1, 0, 1, 1) is yielded when the vector σ(f)=(0, 1, 0, 0, 1, 1, 1) holds and the permutation σ′ is the permutation defined by the Formula (2) above.
Step S9
[0069] The share [f′] is input to the fourth vector generation units 19.sub.1, . . . , 19.sub.N.
[0070] The fourth vector generation units 19.sub.1, . . . , 19.sub.N each use the share [f′] to generate a share [s] of a vector s, each element of which is a sum of elements of the vector f′ up to an element corresponding to that element, the elements including the element corresponding to that element, and a share [s′] of a vector s′, each element of which is a sum of elements of a bit-inverted vector up to an element corresponding to that element, the elements including the element corresponding to that element, where the bit-inverted vector is a vector generated by bit inversion of each element of the vector f′ (step S9).
[0071] The share [s] and the share [s′] are output to the fifth vector generation units 110.sub.1, . . . , 110.sub.N.
[0072] For example, the vector s=(0, 1, 1, 2, 2, 3, 4) and the vector s′=(1, 1, 2, 2, 3, 3, 3) are yielded when the vector f′=(0, 1, 0, 1, 0, 1, 1).
Step S10
[0073] The share [s] and the share [s′] are input to the fifth vector generation units 110.sub.1, . . . , 110.sub.N.
[0074] The fifth vector generation units 110.sub.1, . . . , 110.sub.N each use the share [f′], the share [s], and the share [s′] to calculate a share [σ″] of a vector σ″=f′s+(1−f′)s′−1 (step S10).
[0075] The share [σ″] is output to the first inverse permutation application units 111.sub.1, . . . , 111.sub.N.
[0076] For example, σ″=(0, 0, 1, 1, 2, 2, 3) is yielded when the vector s=(0, 1, 1, 2, 2, 3, 4) and the vector s′=(1, 1, 2, 2, 3, 3, 3).
Step S11
[0077] The share [e′] and the share [σ] are input to the first inverse permutation application units 111.sub.1, . . . , 111.sub.N.
[0078] The first inverse permutation application units 111.sub.1, . . . , 111.sub.N each use the share [e′] and the share [σ] to generate a share [e″] of a vector e″=σ.sup.−1(e′) which is generated by application of an inverse permutation σ.sup.−1 of the permutation σ to the vector e′ (step S11).
[0079] The share [e″] is output to the first vector separation units 112.sub.1, . . . , 112.sub.N.
[0080] For example, the vector e″=(0, 1, 0, 0, 0, 1, 1) is yielded when the vector e′=(0, 0, 1, 0, 0, 1, 1) holds and the permutation σ is the permutation of the Formula (1) above.
Step S12
[0081] The share [e″] is input to the first vector separation units 112.sub.k, . . . , 112.sub.N.
[0082] The first vector separation units 112.sub.k, . . . , 112.sub.N each use the share [e″] to generate a share [g.sub.0] of a vector g.sub.0 which is formed from the first m.sub.0 elements of the vector e″ and a share [g.sub.1] of a vector g.sub.1 which is formed from the remaining m.sub.1 elements of the vector e″ (step S12).
[0083] The share [g.sub.1] is output.
[0084] For example, the vector g.sub.0=(0, 1, 0) and the vector g.sub.0=(0, 0, 1, 1) are yielded when the vector e″=(0, 1, 0, 0, 0, 1, 1).
Step S13
[0085] The share [σ] and the share [σ′] are input to the second inverse permutation application units 113.sub.1, . . . , 113.sub.N.
[0086] The second inverse permutation application units 113.sub.1, . . . , 113.sub.N each use the share [σ″], the share [σ], and the share [σ] to generate a share [σ′″.sup.−1] of a vector σ′″.sup.−1=σ.sup.−1(σ′.sup.−1(σ″)) which is generated by application of an inverse permutation σ′.sup.−1 of the permutation σ′ and the inverse permutation σ.sup.−1 of the permutation σ to the vector x (step S13).
[0087] The share [σ′″.sup.−1] is output to the second vector separation units 114.sub.1, . . . , 114.sub.N.
[0088] For example, σ′″.sup.−1=(0, 2, 1, 0, 1, 2, 3) is yielded when the permutation σ is the permutation of the Formula (1) above and the permutation σ′ is the permutation of the Formula (2) above.
Step S14
[0089] The share [σ′″.sup.−1] is input to the second vector separation units 114.sub.1, . . . , 114.sub.N.
[0090] The second vector separation units 114.sub.1, . . . , 114.sub.N each use the share [σ′″.sup.−1] to generate a share [σ.sub.0.sup.−1] of a vector σ.sub.0.sup.−1 which is formed from the first m.sub.0 elements of the vector σ′″.sup.−1 and a share [σ.sub.1.sup.−1] of a vector σ.sub.1.sup.−1 which is formed from the remaining m.sub.1 elements of the vector σ′″.sup.−1 (step S14).
[0091] The share [σ.sub.1.sup.−1] is output.
[0092] For example, the vector σ.sub.0.sup.−1=(0, 2, 1) and the vector σ.sub.1.sup.−1=(0, 1, 2, 3) are yielded when σ′″.sup.−1=(0, 2, 1, 0, 1, 2, 3).
Step S15
[0093] The share [σ.sub.1.sup.−1], a share [π.sub.0] of a permutation π.sub.0, and a share [π.sub.1] of a permutation π.sub.1 are input to the third permutation application units 115.sub.1, . . . , 115.sub.N.
[0094] The third permutation application units 115.sub.1, . . . , 115.sub.N each use the share [σ.sub.0.sup.−1], the share [σ.sub.1.sup.−1], the share [π.sub.0] of the permutation π.sub.0, and the share [π.sub.1] of the permutation π.sub.1 to generate a share [π.sub.0(σ.sub.0.sup.−1)] of a vector π.sub.0(σ.sub.0.sup.−1) which is generated by application of the permutation π.sub.0 to the vector σ.sub.0.sup.−1 and a share [π.sub.1(σ.sub.1.sup.−1)] of a vector π.sub.1(σ.sub.1.sup.−1) which is generated by application of the permutation π.sub.1 to the vector σ.sub.1.sup.−1, and release π.sub.0(σ.sub.0.sup.−1) and π.sub.1(σ.sub.1.sup.−1) (step S15).
[0095] The permutations π.sub.0 and π.sub.1 are predetermined permutations, which may be random permutations, for example. The permutations π.sub.0 and π.sub.1 may be predefined permutations or may be generated when the processing at step S15 is performed. The permutations π.sub.0 and π.sub.1 and their shares [π.sub.0] and [π.sub.1] can be generated by the approach described in Section 4.1 of Reference Literature 1, for example. It is assumed that the secure computing apparatus 1.sub.n (1≤n≤N) has information on the permutations π.sub.0 and π.sub.1 and their shares [π.sub.0] and [π.sub.1] and is capable of calculation using the permutations π.sub.0 and π.sub.1 and their shares [π.sub.0] and [π.sub.1].
[0096] For example, assume that the vector σ.sub.0.sup.−1=(0, 2, 1) and the vector σ.sub.1.sup.−1=(0, 1, 2, 3) hold, π.sub.0 is the permutation represented by Formula (3) below, and π.sub.1 is the permutation represented by Formula (4) below.
[0097] In this case, the vector π.sub.0(σ.sub.0.sup.−1)=(2, 1, 0) and the vector π.sub.1(σ.sub.1.sup.−1)=(2, 0, 3, 1) are yielded.
Step S16
[0098] The share [k.sub.0] of the vector k.sub.0, the share [v.sub.0] of the vector v.sub.0, the share [k.sub.1] of the vector k.sub.1, and the share [v.sub.1] of the vector v.sub.1 are input to the fourth permutation application units 116.sub.1, . . . , 116.sub.N.
[0099] The fourth permutation application units 116.sub.1, . . . , 116.sub.N each use the share [k.sub.0] of the vector k.sub.0, the share [v.sub.0] of the vector v.sub.0, the share [k.sub.1] of the vector k.sub.1, and the share [v.sub.1] of the vector v.sub.1 to calculate a share [k.sub.0′] of a vector k.sub.0′=(π.sub.0(σ.sub.0.sup.−1)).sup.−1(π.sub.0(k.sub.0)), a share [v.sub.0′] of a vector v.sub.0′=(π.sub.0(σ.sub.0.sup.−1)).sup.−1(π.sub.0(v.sub.0)), a share [k.sub.1′] of a vector k.sub.1′=(90 .sub.1(σ.sub.1.sup.−1)).sup.−1(π.sub.1(k.sub.1′)), and a share [v.sub.1′] of a vector v.sub.1′=(π.sub.1(σ.sub.1.sup.−1)).sup.−1(π.sub.1(v.sub.1′)) (step S16).
[0100] The share [k.sub.0′], the share [v.sub.0′], the share [k.sub.1′], and the share [v.sub.1′] are output to the first joined table generation units 117.sub.1, . . . , 117.sub.N.
[0101] For example, the vector k.sub.0′=(1, 3, 2), the vector v.sub.0′=(5, 1, 10), a vector k.sub.1″=(1, 3, 4, 5), and a vector v.sub.1″=(2, 4, 9, 8) are yielded in a case where the vector k.sub.0=(1, 2, 3), the vector v.sub.0=(5, 10, 1), the vector k.sub.1=(1, 3, 4, 5), and the vector v.sub.1′=(2, 4, 9, 8) hold, the permutation π.sub.0 is the permutation represented by the Formula (3) above, and the permutation π.sub.1 is the permutation represented by the Formula (4) above.
Step S17
[0102] The share [k.sub.0′], the share [v.sub.0′], the share [k.sub.1′], and the share [v.sub.1′] are input to the first joined table generation units 117.sub.1, . . . , 117.sub.N.
[0103] The first joined table generation units 117.sub.1, . . . , 117.sub.N each use the share [k.sub.0′], the share [v.sub.0′], the share [k.sub.1′], and the share [v.sub.1′] to generate a joined table which joins a vector generated by extracting the first c elements of the vector k.sub.0′, a vector generated by extracting the first c elements of the vector v.sub.0′, a vector generated by extracting the first c elements of the vector k.sub.1′, and a vector generated by extracting the first c elements of the vector v.sub.1′, where c is the number of 0 elements in the vector g.sub.0 or the vector g.sub.1 (step S17).
[0104] For example, the joined table will be the table shown below when the vector g.sub.0=(0, 1, 0), the vector k.sub.0′=(1, 3, 2), the vector v.sub.0′=(5, 1, 10), the vector k.sub.1″=(1, 3, 4, 5), and the vector v.sub.1″=(2, 4, 9, 8).
TABLE-US-00001 k.sub.0′ v.sub.0′ k.sub.1′ v.sub.1′ (A) 1 5 1 2 3 1 3 4
[0105] The joined table (A) above is a table generated by left outer join of the first table which has three records and consists of the vector of keys, k.sub.0=(1, 2, 3), and the vector of attribute values of one attribute, v.sub.0=(5, 10, 1), and the second table which consists of the vector of keys, k.sub.1=(1, 3, 4, 5), and the vector of attribute values of one attribute, v.sub.1=(2, 4, 9, 8).
[0106] In this manner, use of inverse permutation enables two tables to be joined while maintaining confidentiality in a case with no key overlap more rapidly than the technique of Non-patent Literature 1.
Secure Joining System for Performing Left Outer Join
[0107] Referring to
[0108] The secure joining system for performing left outer join is similar to the secure joining system for performing inner join except that it includes a filtering unit 118.sub.n, a fifth permutation application unit 119.sub.n, and a second joined table generation unit 120.sub.n instead of including the fourth permutation application unit 116.sub.n and the first joined table generation unit 117.sub.n.
[0109] The secure joining method for performing left outer join is similar to the secure joining method for performing inner join except that it performs the processing at steps S18 and S20 instead of performing the processing at step S16 and step S17.
[0110] In the following, differences from the secure joining system and method for performing inner join are described. The same portions as those of the secure joining system and method for performing inner join are not described again.
[0111] As shown in
[0112] First, processing at <step S1> to <step S15> is performed. As the processing at <step S1>to <step S15> is similar to the processing at <step S1> to <step S15> described in Section [Secure joining system and method for performing inner join], overlapping description is not repeated here.
[0113] Then, the processing at steps S18 to S20 described below is performed.
Step S18
[0114] The share [g.sub.1], the share [k.sub.1] of the vector k.sub.1, and the share [v.sub.1] of the vector v.sub.1 are input to the filtering units 118.sub.1, . . . , 118.sub.N.
[0115] The filtering units 118.sub.1, . . . , 118.sub.N each use the share [g.sub.1], the share [k.sub.1] of the vector k.sub.1, and the share [v.sub.1] of the vector v.sub.1 to generate a modified second table in which if g.sub.1,i=1, the ith element of the key of the second table is set to a predefined value u.sub.1,k indicating null and the ith element of the attribute of the second table is set to a predefined value u.sub.1,v indicating null, where g.sub.1,i is the ith element of the vector g.sub.1 (step S18). Let k.sub.1′ be the vector of the key of the modified second table, and let v.sub.1′ be the vector of the attribute value of the modified second table.
[0116] The modified second table is output to the fifth permutation application units 119.sub.1, . . . , 119.sub.N.
[0117] For example, the modified second table will be the table shown below when the second table consists of the vector of keys, k.sub.1=(1, 3, 4, 5), and the vector of attribute values of one attribute, v.sub.1=(2, 4, 9, 8), and the vector g.sub.1=(0, 0, 1, 1) holds.
TABLE-US-00002 k.sub.1′ v.sub.1′ (B) 1 2 3 4 null null null null
Step S19
[0118] The share [k.sub.0] of the vector k.sub.0, the share [v.sub.0] of the vector v.sub.0, the share [k.sub.1′] of k.sub.1′, which is the vector of the key of the modified second table, the share [v.sub.1′] of v.sub.1′, which is the vector of the attribute value of the modified second table, the share [π.sub.0] of the permutation π.sub.0, the share [π.sub.1] of the permutation π.sub.1, the share [π.sub.0(σ.sub.0.sup.−1)], and the share [π.sub.1(σ.sub.1.sup.−1)] are input to the fifth permutation application units 119.sub.1, . . . , 119.sub.N.
[0119] The fifth permutation application units 119.sub.1, . . . , 119.sub.N each use the share [k.sub.0] of the vector k.sub.0, the share [v.sub.0] of the vector v.sub.0, the share [k.sub.1′] of k.sub.1′, which is the vector of the key of the modified second table, the share [v.sub.1′] of v.sub.1′, which is the vector of the attribute value of the modified second table, the share [π.sub.0] of the permutation π.sub.0, the share [π.sub.1] of the permutation π.sub.1, the share [π.sub.0(σ.sub.0.sup.−1)], and the share [π.sub.1(σ.sub.1.sup.−1)] to calculate the share [k.sub.0′] of the vector k.sub.0′=(π.sub.0(σ.sub.0.sup.−1)).sup.−1(π.sub.0(k.sub.0)), the share [v.sub.0′] of the vector v.sub.0′=(π.sub.0(σ.sub.0.sup.−1)).sup.−1(π.sub.0(v.sub.0)), a share [k.sub.1″] of a vector k.sub.1″=(π.sub.1(σ.sub.1.sup.−1)).sup.−1(π.sub.1(k.sub.1′)), and a share [v.sub.1″] of a vector v.sub.1″=(π.sub.1(σ.sub.1.sup.−1)).sup.−1(π.sub.1(v.sub.1′)) (step S18).
[0120] The share [k.sub.0′], the share [v.sub.0′], the share [k.sub.1″], and the share [v.sub.1″] are output to the second joined table generation units 120.sub.1, . . . , 120.sub.N.
[0121] For example, the vector k.sub.0′=(1, 3, 2), the vector v.sub.0′=(5, 1, 10), the vector k.sub.1″=(1, 3, u.sub.1,k, u.sub.1,k), and the vector v.sub.1″=(2, 4, u.sub.1,v, u.sub.1,v) are yielded in a case where the vector k.sub.0=(1, 2, 3), the vector v.sub.0=(5, 10, 1), the vector k.sub.1′=(1, 3, u.sub.1,k, u.sub.1,k), and the vector v.sub.1′=(2, 4, u.sub.1,v, u.sub.1,v) hold, the permutation π.sub.0 is the permutation represented by the Formula (3) above, and the permutation π.sub.1 is the permutation represented by the Formula (4) above.
Step S20
[0122] The share [k.sub.0′], the share [v.sub.0′], the share [k.sub.1′], and the share [v.sub.1″] are input to the second joined table generation units 120.sub.1, . . . , 120.sub.N.
[0123] The second joined table generation units 120.sub.1, . . . , 120.sub.N each use the share [k.sub.0′], the share [v.sub.0′], the share [k.sub.1′], and the share [v.sub.1″] to generate, when m.sub.0<m.sub.1, a joined table which joins the vector k.sub.0′, the vector v.sub.0′, a vector generated by extracting the first m.sub.0 elements of the vector k.sub.1″, and a vector generated by extracting the first m.sub.0 elements of the vector v.sub.1″, and to generate, when m.sub.0>m.sub.1, a joined table which joins a vector generated by adding m.sub.0-m.sub.1 elements being a predefined value u.sub.k indicating null to the vector k.sub.1″, a vector generated by adding m.sub.0-m.sub.1 elements being a predefined value u.sub.v indicating null to the vector v.sub.1″, the vector k.sub.0′, and the vector v.sub.0′ (step S20).
[0124] For example, the joined table will be the table shown below when the vector k.sub.0′=(1, 3, 2), the vector v.sub.0′=(5, 1, 10), the vector k.sub.1″=(1, 3, u.sub.1,k, u.sub.1,k), and the vector v.sub.1″=(2, 4, u.sub.1,v, u.sub.1,v).
TABLE-US-00003 k.sub.0′ v.sub.0′ k.sub.1″ v.sub.1″ (C) 1 5 1 2 3 1 3 4 2 10 u.sub.k u.sub.v
[0125] The joined table (C) above is a table generated by left outer join of the first table which has three records and consists of the vector of keys, k.sub.0=(1, 2, 3), and the vector of attribute values of one attribute, v.sub.0=(5, 10, 1), and the second table which consists of the vector of keys, k.sub.1=(1, 3, 4, 5), and the vector of attribute values of one attribute, v.sub.1=(2, 4, 9, 8).
[0126] As another example, the joined table will be the table shown below when the vector k.sub.0′=(1, 3, 4, 5), the vector v.sub.0′=(2, 4, 9, 8), the vector k.sub.1″=(1, 3), and the vector v.sub.1″=(5, 1).
TABLE-US-00004 k.sub.0′ v.sub.0′ k.sub.1″ v.sub.1″ (D) 1 2 1 5 3 4 3 1 4 9 u.sub.k u.sub.v 5 8 u.sub.k u.sub.v
[0127] With this embodiment, left outer join of the first table and the second table can be performed while maintaining confidentiality.
[0128] In this manner, use of inverse permutation enables two tables to be joined while maintaining confidentiality in a case with no key overlap more rapidly than the technique of Non-patent Literature 1.
Secure Joining System and Method for Performing Full Outer Join
[0129] Referring to
[0130] The secure joining system for performing full outer join is similar to the secure joining system for performing inner join except that it includes a third joined table generation unit 121.sub.n instead of including the first joined table generation unit 117.sub.n.
[0131] The secure joining method for performing full outer join is similar to the secure joining method for performing inner join except that it performs the processing at step S21 instead of performing the processing at step S17.
[0132] In the following, differences from the secure joining system and method for performing inner join are described. The same portions as those of the secure joining system and method for performing inner join are not described again.
[0133] As shown in
[0134] First, processing at <step S1> to <step S16> is performed. As the processing at <step S1> to <step S16> is similar to the processing at <step S1> to <step S16> described in Section [Secure joining system and method for performing inner join], overlapping description is not repeated here.
[0135] Then, the processing at step S21 described below is performed.
Step S21
[0136] The share [k.sub.0′], the share [v.sub.0′], the share [k.sub.1′], and the share [v.sub.1′] are input to the third joined table generation units 121.sub.1, . . . , 121.sub.N.
[0137] The third joined table generation units 121.sub.1, . . . , 121.sub.N each use the share [k.sub.0′], the share [v.sub.0′], the share [k.sub.1′], and the share [v.sub.1′] to generate a joined table which joins a table (1) which joins a vector generated by extracting the first c elements of the vector k.sub.0′, a vector generated by extracting the first c elements of the vector v.sub.0′, a vector generated by extracting the first c elements of the vector k.sub.1′, and a vector generated by extracting the first c elements of the vector v.sub.1′, a table (2) which joins a vector generated by extracting the remaining m.sub.0-c elements of the vector k.sub.0′, a vector generated by extracting the remaining m.sub.0-c elements of the vector v.sub.0′, and a vector having a value corresponding to the attribute value of the second table set to a predefined value u′.sub.1,v indicating null, and a table (3) which joins a vector generated by extracting the remaining m.sub.0-c elements of the vector v.sub.0′, a vector generated by extracting the remaining m.sub.1-c elements of the vector v.sub.1′, and a vector having a value corresponding to the attribute value of the first table set to a predefined value u′.sub.0,v indicating null, where c is the number of 0 elements in the vector g.sub.0 or the vector g.sub.1 (step S21).
[0138] For example, the joined table will be the table shown below when the vector g.sub.0=(0, 1, 0), the vector k.sub.0′=(1, 3, 2), the vector v.sub.0′=(5, 1, 10), the vector k.sub.1″=(1, 3, 4, 5), and the vector v.sub.1″=(2, 4, 9, 8).
[0139] In the table below, the table from the first row to the second row corresponds to table (1), the table in the third row corresponds to table (2), and the table from the fourth row to the fifth row corresponds to table (3).
TABLE-US-00005 k.sub.0′ v.sub.0′ k.sub.1″ v.sub.1″ (E) 1 5 1 2 3 1 3 4 2 10 u′.sub.1, u u′.sub.1, v u′.sub.0, u u′.sub.0, v 4 9 u′.sub.0, u u′.sub.0, v 5 8
[0140] The joined table (E) above is a table generated by full outer join of the first table which has three records and consists of the vector of keys, k.sub.o=(1, 2, 3), and the vector of attribute values of one attribute, v.sub.0=(5, 10, 1), and the second table which consists of the vector of keys, k.sub.1=(1, 3, 4, 5), and the vector of attribute values of one attribute, v.sub.1=(2, 4, 9, 8).
[0141] In this manner, use of inverse permutation enables two tables to be joined while maintaining confidentiality in a case with no key overlap more rapidly than the technique of Non-patent Literature 1.
Secure Joining Information Generation System
[0142] In the secure computing apparatus 1.sub.n of the secure joining system described above, the portion including the vector joining unit 11.sub.n, the first vector generation unit 12.sub.n, the first permutation calculation unit 13.sub.n, the first permutation application unit 14.sub.n, the second vector generation unit 15.sub.n, the third vector generation unit 16.sub.n, the second permutation calculation unit 17.sub.n, the second permutation application unit 18.sub.n, the fourth vector generation unit 19.sub.n, the fifth vector generation unit 110.sub.n, the first inverse permutation application unit 111.sub.n, the first vector separation unit 112.sub.n, the second inverse permutation application unit 113.sub.n and the second vector separation unit 114.sub.n, and the third permutation application unit 115.sub.n represents the secure joining information generation system.
[0143] In other words, the secure computing apparatus 1.sub.n of the secure joining information generation system includes the vector joining unit 11.sub.n, the first vector generation unit 12.sub.n, the first permutation calculation unit 13.sub.n, the first permutation application unit 14.sub.n, the second vector generation unit 15.sub.n, the third vector generation unit 16.sub.n, the second permutation calculation unit 17.sub.n, the second permutation application unit 18.sub.n, the fourth vector generation unit 19.sub.n, the fifth vector generation unit 110.sub.n, the first inverse permutation application unit 111.sub.n, the first vector separation unit 112.sub.n, the second inverse permutation application unit 113.sub.n and the second vector separation unit 114.sub.n, and the third permutation application unit 115, as shown by broken lines in
[0144] The secure joining information generation method is implemented by the execution of steps S1 to S15 by the components of the secure computing apparatus 1.sub.n of the secure joining information generation system. As the processing at step S1 to step S15 is similar to those described above, overlapping description is not repeated.
[0145] Multiple secure joining information generation units 1.sub.1, . . . , 1.sub.N of the secure joining information generation system can be said to use the share [k.sub.0] of the vector k.sub.0, the share [k.sub.1] of the vector k.sub.1, the share [π.sub.0] of the permutation π.sub.0, and the share [π.sub.1] of the permutation π.sub.1 to generate: the share [π.sub.0(σ.sub.0.sup.−1)] of the vector π.sub.0(σ.sub.0.sup.−1) which is generated by application of the permutation π.sub.0 to the inverse permutation σ.sub.0.sup.−1 of the permutation σ.sub.0, where permutation of each vector of the first table with the permutation σ.sub.0 causes records for keys common to the first table and the second table to move to the head side; the share [π.sub.1(σ.sub.1.sup.−1)] of the vector π.sub.1(σ.sub.1.sup.−1) which is generated by application of the permutation π.sub.1 to the inverse permutation σ.sub.1.sup.−1 of the permutation σ.sub.1, where permutation of each vector of the second table with the permutation σ.sub.1 causes records for keys common to the first table and the second table to move to the head side; the share [g.sub.0] of the vector g.sub.0 which is formed from a value g.sub.0,i indicating whether the ith record of the first table is a record for a key that is common to the first table and the second table; and the share [g.sub.1] of the vector g.sub.1 which is formed from a value g.sub.1,i indicating whether the ith record of the second table is a record for a key that is common to the first table and the second table.
Modifications
[0146] While the embodiments of the present invention have been described, specific configurations are not limited to these embodiments, but design modifications and the like within a range not departing from the spirit of the invention are encompassed in the scope of the invention, of course.
[0147] For example, the attribute of a key may be a composite key of x attributes, where x is a positive integer greater than or equal to 2. In this case, the processing at step S1 may be performed in the following manner, for example.
[0148] The keys of the first table are assumed to be k.sub.0,0, . . . , k.sub.0,x−1. The keys of the second table are assumed to be k.sub.1,0, . . . , k.sub.1,x−1.
[0149] In this case, the processing at step S1 joins k.sub.0,i and k.sub.1,i to obtain k′.sub.i for each i (where i=0, . . . , x−1). Then, each k′.sub.i is turned into a bit representation by bit decomposition and joined horizontally. For example, when k′.sub.0=(1, 2, 3, 1, 3, 0, 1).sup.T and k′.sub.1=(0, 0, 0, 0, 0, 1, 1).sup.T, bit decomposition of k′.sub.0 results in (k′.sub.0).sub.0=(1, 0, 1, 1, 1, 0, 1).sup.T and (k′.sub.0).sub.1=(0, 1, 1, 0, 1, 0, 0).sup.T.
[0150] Here, since k′.sub.0 assumes a value from 1 to 3, each element of k′.sub.0 can be represented in 2 bits. (k′.sub.0).sub.0 is the lower bit of k′.sub.0 upon bit decomposition, and (k′.sub.0).sub.1 is the upper bit of k′.sub.0 upon bit decomposition. Since k′.sub.1 is inherently a 1-bit number in this example, it does not require decomposition and k′.sub.1=(k′.sub.1).sub.0 is assumed. Horizontal joining of (k′.sub.0).sub.0, (k′.sub.0).sub.1, and (k′.sub.1).sub.0 gives:
[0151] Regarding such an arrangement as a matrix and regarding each row of this matrix as a bit representation of the keys of one record, a vector of bit representations of keys, (1, 2, 3, 1, 3, 4, 5), is obtained. This vector can be k′ which is used at step S2 and after. In this manner, a case with a composite key can also be addressed.
[0152] For a composite key, overlap of keys refers to whether keys overlap in terms of combination of the values of the all key attributes and it is assumed that mere overlapping of the values of individual attributes is not regarded as an overlap. For example, a combination of (1, 0) and (1, 1) is not an overlap.
[0153] The various processes described in the embodiments may be executed in parallel or separately depending on the processing ability of an apparatus executing the process or on any necessity, rather than being executed in time series in accordance with the described order.
Program and Recording Medium
[0154] When various types of processing functions in the apparatuses described in the above embodiments are implemented on a computer, the contents of processing function to be contained in each apparatus is written by a program. With this program executed on the computer, various types of processing functions in the above-described apparatuses are implemented on the computer.
[0155] This program in which the contents of processing are written can be recorded in a computer-readable recording medium. The computer-readable recording medium may be any medium such as a magnetic recording device, an optical disk, a magneto-optical recording medium, and a semiconductor memory.
[0156] Distribution of this program is implemented by sales, transfer, rental, and other transactions of a portable recording medium such as a DVD and a CD-ROM on which the program is recorded, for example.
[0157] Furthermore, this program may be stored in a storage unit of a server computer and transferred from the server computer to other computers via a network so as to be distributed.
[0158] A computer which executes such program first stores the program recorded in a portable recording medium or transferred from a server computer once in a storage unit thereof, for example. When the processing is performed, the computer reads out the program stored in the storage unit thereof and performs processing in accordance with the program thus read out. As another execution form of this program, the computer may directly read out the program from a portable recording medium and perform processing in accordance with the program. Furthermore, each time the program is transferred to the computer from the server computer, the computer may sequentially perform processing in accordance with the received program. Alternatively, a configuration may be adopted in which the transfer of a program to the computer from the server computer is not performed and the above-described processing is executed by so-called application service provider (ASP)-type service by which the processing functions are implemented only by an instruction for execution thereof and result acquisition. It should be noted that a program in this form includes information which is provided for processing performed by electronic calculation equipment and which is equivalent to a program (such as data which is not a direct instruction to the computer but has a property specifying the processing performed by the computer).
[0159] In this form, the present apparatus is configured with a predetermined program executed on a computer. However, the present apparatus may be configured with at least part of these processing contents realized in a hardware manner.