The present invention relates to applied technology of an information security technology and, in particular, relates to a computation technology using a concealed circuit.
In Non-patent Literatures 1 and 2, the existing technologies of a computation system using a concealed circuit are disclosed.
However, in the systems described in Non-patent Literatures 1 and 2, there is room to reduce the amount of data of a concealed circuit.
An object of the present invention is to reduce the amount of data of a concealed circuit.
At least any one of input keys KA0, KA1, KB′0, and KB′1 is set so that the input keys KA0, KA1, KB′0, and KB′1 which satisfy KA1−KA0−KB′1−KB′0=di are obtained, and an output key Kig(I(A), I(B)) corresponding to an output value gi(I(A), I(B)) is set by using the input keys KA0, KA1, KB′0, and KB′1. It is to be noted that input values of a gate that performs a logical operation are I(A), I(B)∈{0, 1}, an output value of the gate is gi(I(A), I(B))∈{0, 1}, an input key corresponding to the input value I(A) is KAI(A), and an input key corresponding to the input value I(B) is KB′I(B).
By making a difference between KA1 and KA0 and a difference between KB′1 and KB′0 equal to each other, it is possible to reduce the amount of data of a concealed circuit.
A first embodiment will be described by using the drawings.
As illustrated in
<Circuit Concealing Apparatus 11>
As illustrated in
<Coding Apparatus 12>
As illustrated in
<Calculation Apparatus 13>
As illustrated in
<Decoding Apparatus 14>
As illustrated in
Each of the circuit concealing apparatus 11, the coding apparatus 12, the calculation apparatus 13, and the decoding apparatus 14 is an apparatus configured as a result of, for example, a general-purpose or dedicated computer including a communication apparatus, a processor (a hardware processor) such as a central processing unit (CPU), memory such as random-access memory (RAM) and read-only memory (ROM), and so forth executing a predetermined program. This computer may include one processor or memory or more than one processor or memory. This program may be installed in the computer or may be recorded on the ROM or the like in advance. Moreover, part or all of the processing units may be configured by using not an electronic circuit (circuitry), like a CPU, which implements a functional configuration as a result of a program being read thereinto but an electronic circuit that implements a processing function without using a program. Furthermore, an electronic circuit with which one apparatus is configured may include a plurality of CPUs. The circuit concealing apparatus 11, the coding apparatus 12, the calculation apparatus 13, and the decoding apparatus 14 perform processing under control of the controllers 113, 123, 133, and 143, respectively. Information input to the circuit concealing apparatus 11, the coding apparatus 12, the calculation apparatus 13, and the decoding apparatus 14 and data obtained in these apparatuses are stored respectively in the storages 112, 122, 132, and 142 one by one and used by being read therefrom when necessary.
<Illustration of a Circuit f to be Concealed=(n, m, u, A, B, g)>
A circuit f to be concealed is mapping (a function) that outputs an m-bit output value W∈{0, 1}m for an n-bit input value Z∈{0, 1}n (f: {0, 1}n→{0, 1}m). Here, n is an even number greater than or equal to 2 and n may be equal to 4 or may be greater than or equal to 6. m is an integer greater than or equal to 1, and m may be equal to 1 or may be greater than or equal to 2. For instance, m may be smaller than n. {0, 1n} represents a set of n members of 0 or 1. That is, {0, 1}n represents a set of n-bit binary values.
As illustrated in
An input variable to the gate G(i) is referred to as an input wire and an output variable is referred to as an output wire. Each gate G(i) has two input wires and one output wire. The input wires and the output wire are generically referred to as wires. The input wires of the gate G(i) are written as W(A(i)) and W(B(i)) and the output wire is written as W(i). A set of wires of the gates G(n+1), . . . , G(n+u) is written as Wset:={W(1), . . . , W(n+u)}. It is to be noted that A(i)<B(i)<i and A(n+1)=1, B(n+1)=2, . . . , A(3n/2)=n−1, B(3n/2)=n, . . . , and A(n+u)=n+u−2, B(n+u)=n+u−1. A set of input wires W(A(n+1))=W(1), W(B(n+1))=W(2), . . . , W(A(3n/2))=W(n−1), W(B(3n/2))=W(n) of n/2 gates G(n+1), . . . , G(3n/2) belonging to the set Ginput is written as Winput:={W(1), . . . , W(n)}. A set of output wires W(n+u−m+1), . . . , W(n+u) of the gate G(n+u) is written as Woutput:={W(n+u−m+1), . . . , W(n+u)}. The output wires W(n+u−m+1), . . . , W(n+u) indicate the computation results.
The input wires W(1), . . . , W(n) of the gates belonging to the set Ginput are the input wires of the circuit f and correspond to the n-bit input value Z. An output wire W(ν) of a gate G(ν) (where ν∈{n+1, . . . , n+u−1}) is an input wire W(A(ω)) or W(B(ω)) of any gate G(ω)∈cGset. It is to be noted that cGset represents a complementary set of a set {G(n+1), . . . , G(n+u−1)} in the set Gset. That is, cGset represents a set obtained by removing an element belonging to the set {G(n+1), . . . , G(n+u−1)} from the set Gset. ν<ω holds. Different output wires are not the same input wire and a single output wire is not a plurality of input wires. The output wires W(n+u−m+1), . . . , W(n+u) of the gates G(n+u−m+1), . . . , G(n+u) are the output wires of the circuit f and correspond to bits of the output value W.
An output value gi(I(A(i)), I(B(i)))∈{0, 1} of the output wire W(i) is determined in accordance with the type of the gate G(i) (where i∈{n+1, . . . , n+u}) and input values I(A(i)), I(B(i))∈{0, 1} of the input wires W(A(i)) and W(B(i)). That is, the logical operation result in the gate G(i) obtained for I(A(i)) and I(B(i)) is gi(I(A(i)), I(B(i))). For instance, when the gate G(i) is an AND gate, an OR gate, or an XOR gate, the relationship among I(A(i)), I(B(i)), and gi(I(A(i)), I(B(i))) is as follows.
It is to be noted that the gate G(i) is not limited to the AND gate, the OR gate, and the XOR gate. Other 2-input 1-output logical gates, whose output value gi(1, 0) and output value gi(0, 1) are equal, may be used as the gate G(i). The circuit f of
<Circuit Concealment Processing of the Circuit Concealing Apparatus 11>
Next, concealment processing which is performed on the circuit f=(n, in, u, A, B, g) by the circuit concealing apparatus 11 will be described by using
A security parameter k and the circuit f=(n, m, u, A, B, g) are input to the input unit 1112 of the circuit concealing apparatus 11 (
The input wire setter 115 makes settings so that A:=A(i) and B:=B(i) (Step S103). The determiner 1160 determines whether a label LAI(A) ∈{0, 1} of an input wire W(A) corresponding to an input value I(A) is not yet set (Step S104). It is to be noted that the label LAI(A) is a value obtained by randomizing the input value I(A)∈{0, 1}. If the input wire W(A) is an output wire of another gate G(ι) (where ι∈{n+1, . . . , n+u}), the label LAI(A) is set (is set as a label gι(I(A(ι)), I(B(ι)))(xor)λ(ι)∈{0, 1} of the output wire of the other gate G(ι) (Step S139, which will be described later)); otherwise, the label LAI(A) is not yet set. In an example of
In Step S105, the permutation bit setter 1161 randomly selects a permutation bit λ(A)∈{0, 1} (Step S105). Next, the input label setter 1162 sets the label LAI(A)=λ(A)(xor)I(A)∈{0, 1} for all I(A)∈{0, 1} by using the permutation bit λ(A) as input and stores the label LAI(A) in the storage 112. That is, the input label setter 1162 makes settings so that LA0=λ(A) and LA1=λ(A)(xor)1 and stores LA0 and LA1 in the storage 112. It is to be noted that “α(xor)β” represents an XOR
α⊕β
of α and β (Step S106). After Step S106, the procedure proceeds to Step S107.
In Step S107, the determiner 1160 determines whether a label LBI(B) of an input wire W(B) corresponding to an input value I(B) is not yet set (Step S107). If the input wire W(B) is an output wire of another gate G(ι), the label LBI(B) is set (is set as a label gι(I(A(ι)), I(B(ι)))(xor)λ(ι) of the output wire of the other gate G(ι)); otherwise, the label LBI(B) is not yet set. In the example of
In Step S108, the permutation bit setter 1161 randomly selects a permutation bit λ(B)∈{0, 1} (Step S108). Next, the input label setter 1162 sets the label LBI(B)=λ(B)(xor)I(B) for all I(B)∈{0, 1} by using the permutation bit λ(B) as input and stores the label LBI(B) in the storage 112. That is, the input label setter 1162 sets LB0=λ(B) and LB1=λ(B)(xor)1 and stores LB0 and LB1 in the storage 112 (Step S109). After Step S109, the procedure proceeds to Step S110.
In Steps S110 to S130, at least any one of input keys KA0, KA1, KB′0, and KB′1, is set so that the input keys KA0, KA1, KB′0, KB′1∈Fq which satisfy KA1−KA0=KB′1−KB′0=di are obtained. Here, Fq represents a finite field of order q. q is a positive integer and the characteristic of the finite field Fq is 3 or greater. Moreover, an XOR bitα(xor)bitβ of a bit string bitα∈{0, 1}k, which is obtained by expressing α∈Fq in k bits, and a bit string bitβ∈{0, 1}k, which is obtained by expressing β∈Fq in k bits, is written as “α(xor)β”. That is, an XOR α(xor)β of α∈Fq and β∈Fq means bitα(xor)bitβ. In Step S110, the determiner 1171 determines whether an input key KAI(A)∈Fq of the input wire W(A) corresponding to the input value I(A)∈{0, 1} is set and an input key KBI(B)∈Fq of the input wire W(B) corresponding to the input value I(B)∈{0, 1} is set (Step S110). If the input wire W(A) is the output wire of the other gate G(ι), the input key KΛI(A)) is set (is set as an input key Kιg(I(A(ι)), I(B(ι))) of the output wire of the other gate G(ι) (Steps S134 and S135, which will be described later)); otherwise, the input key KAI(A) is not set. In the example of
In Step S111, the subtractor 1172a (
d
i
:=K
A
1
−K
A
0
Next, the setter 1172b obtains KB′λ(B)=KBλ(B) by using, as input, KBλ(B) for the label LBI(B)=λ(B)(xor)I(B) corresponding to the input value I(B) and outputs KB′λ(B) (Step S112).
K
B′
λ(B)
:=K
B
λ(B)
Next, the setter 1172c obtains KB′1(xor)λ(B)=KB′λ(B)+(−1)λ(B)di by using KB′λ(B) and di as input and outputs KB′1(xor)λ(B) (Step S113).
K
B′
1(xor)λ(B)
=K
B′
λ(B)+(−1)λ(B)di
where (−1)λ(B)=1 when λ(B)=0 and (−1)λ(B)=−1 when λ(B)=1. That is, (−1)λ(B)) represents (−1) to the power of λ(B).
Next, the setter 1172d increments the internal counter by 1 by nextindex( ) and outputs the value of the internal counter after increment as jE (Step S114).
j
E:=nextindex( )
Next, the encryptor 1172e obtains, by using KB1(xor)λ(B), jE, and KB′1(xor)λ(B) as input, an XOR of a hash value H(KB1(xor)λ(B), jE)∈Fq corresponding to the input key KB1(xor)λ(B) and the index jE and the input key KB′1(xor)λ(B)∈Fq as cipher text Ei∈Fq and outputs Ei. It is to be noted that H is a hash function that outputs an element of Fq, which corresponds to input; for example, H(α, β) is the hash value of a bit concatenated value of α and β. Moreover, Ei corresponds to cipher text obtained by encrypting KB′1(xor)λ(B) by using, as a symmetric key, the function value (H(KB1(xor)λ(B), jE)) of a value including the input key KB′1(xor)λ(B) (Step S115).
E
i
:=H(KB1(xor)λ(B),jE)(xor)KB′1(xor)λ(B)
After Step S115, the procedure proceeds to Step S131.
In Step S116, the determiner 1171 determines whether the input key KAI(A)∈Fq is set. If the input key KAI(A) is set (if the input key KAI(A) is set and the input key KBI(B) is not set), the procedure proceeds to Step S117; if the input key KAI(A) is not set, the procedure proceeds to Step S122 (Step S116).
In Step S117, the subtractor 1173a (
d
i
:=K
A
1
−K
A
0
K
B
0
∈F
q
K
B
1
:=K
B
0
+d
i
K
B
0
:=K
B
0
K
B′
1
:=K
B
1
That is, when the input key KAI(A) is set and the input key KBI(B) is not set, the input key setter 1173 obtains di=KA1−KA0 and obtains the input key KB′1 and the input key KB′0, which satisfy KB′1=KB′0+di. After Step S121, the procedure proceeds to Step S131.
In Step S122, the determiner 1171 determines whether the input key KBI(B)∈Fq is set (Step S122). If the input key KBI(B) is set (if the input key KBI(B) is set and the input key KAI(A) is not set), the procedure proceeds to Step S123; if the input key KBI(B) is not set (if the input key KAI(A) and the input key KBI(B) are not set), the procedure proceeds to Step S126.
In Step S123, the subtractor 1173a (
d
i
:=K
B
1
−K
B
0
K
A
0
∈F
q
K
A
1
:=K
A
0
+d
i
K
B′
0
:=K
B
0
K
B′
1
:=K
B
1
That is, when the input key KBI(B) is set and the input key KAI(A) is not set, the input key setter 1173 obtains di=KB1−KB0, obtains the input key KA1 and the input key KA0 which satisfy KA1=KA0+di, and sets the input key KBI(B) as the input key KB′I(B). After Step S121, the procedure proceeds to Step S131.
In Step S126, the selector 1174a (
K
A
0
,K
B
0
,d
i
∈F
q
K
A
1
:=K
A
0
+d
i
K
B
1
:=K
B
0
+d
i
K
B′
0
:=K
B
0
K
B′
1
:=K
B
1
That is, when the input key KAI(A) and the input key KBI(B) are not set, the input key setter 1174 randomly selects di and obtains the input key KA1 and the input key KA0 which satisfy KA1=KA0+di and the input key KB′1 and the input key KB′0 which satisfy KB′1=KB′0+di. After Step S130, the procedure proceeds to Step S131.
In Steps S131 to S136, an output key Kig(I(A), I(B)) corresponding to the output value gi(I(A), I(B))∈{0, 1} is set by using the input keys KA0, KA1, KB′0, and KB′1 and, furthermore, γ(0, 0), γ(0, 1)=γ(1, 0), and γ(1, 1)are obtained. It is to be noted that, when a gate G(θ) whose input wire W(A(θ)) is the output wire W(i) of the gate G(i) is present, the output key Kig(I(A), I(B)) is an input key KAI(A(θ)) of the gate G(θ). When a gate G(θ) whose input wire W(B(θ)) is the output wire W(i) of the gate G(i) is present, the output key Kig(I(A), I(B)) is an input key KBI(B(θ)) of the gate G(θ). Processing in Steps S131 to S136 differs depending on the type of the gate G(i). Hereinafter, processing in Steps S131 to S136 when the gate G(i) is the AND gate, when the gate G(i) is the OR gate, and when the gate G(i) is the XOR gate will be described.
<<When the Gate G(i) is the AND Gate>>
In Step S131, the setter 1181 (
j
L:=nextindex( )
Next, the Ψ setter 1182 obtains, by using KA0, KB′0, di, and jL as input, an XOR Ψ∈Fq of a hash value H(KA0+KB′0, jL)∈Fq corresponding to KA0+KB′0 and the index jL and a hash value H(KA0+KB′0+di, jL)∈Fq corresponding to KA0+KB′0+di and the index jL and outputs the XOR Ψi. That is, the Ψ setter 1182 obtains an XOR Ψi of the function value (H(KA0+KB′0, jL)) of a value including KA0+KB′0 and the function value (H(KA0+KB′0+di, jL)) of a value including KA0+KB′0+di (Step S132). Ψi:=H(KA0+KB′0, jL)(xor)H(KA0+KB′0+di, jL)
The RB selector 1183 randomly selects arbitrary values b0, b1 ∈{0, 1} and outputs the arbitrary values b0 and b1 (Step S133).
b
0
,b
1∈{0,1}
The output key setter 1184 outputs, by using KA0, KB′0, b0, di, and jL as input, a hash value H(KA0+KB′0+b0di, jL)∈Fq corresponding to KA0+KB′0+b0di and the index jL as an output key Ki0. That is, the output key setter 1184 sets the function value (H(KA0+KB′0+b0di, jL)) of a value including KA0+KB′0+b0di as the output key Ki0 (Step S134).
K
i
0
:=H(KA0+KB′0+b0di,jL)
The output key setter 1185 outputs, by using KA0, KB′0, di, jL, b1, and Ψi as input, an XOR of a hash value H(KA0+KB′0+2di, jL)∈Fq corresponding to KA0+KB′0+2di and the index jL and b1 Ψi∈Fq as an output key Ki1. That is, the output key setter 1185 sets an XOR of the function value (H(KA0+KB′0+2di, jL)) of a value including KA0+KB′0+2di and b1Ψi as the output key Ki1 (Step S135).
K
i
1
:=H(KA0+KB0+2di,jL)(xor)b1Ψi
The γ setter 1186 obtains γ(0, 0)=b0, γ(0, 1)=γ(1, 0)=1(xor)b0, and γ(1, 1)=b1 by using b0 and b1 as input and outputs γ(0, 0), γ(0, 1)=γ(1, 0), and γ(1, 0) (Step S136).
γ(0,0):=b0,γ(0,1):=γ(1,0):=1(xor)b0,γ(1,1):=b1
<<When the Gate G(i) is the OR Gate>>
In Step S131, the setter 1181 increments the internal counter by 1 by nextindex( ) and outputs the value of the internal counter after increment as jL (Step S131).
j
L:=nextindex( )
Next, the Ψ setter 1182 obtains, by using KA0, KB′0, di, and jL as input, an XOR Ψi of a hash value H(KA0+KB′0+di, jL)∈Fq corresponding to KA0+KB′0+di and the index jL and a hash value H(KA0+KB′0+2di, jL)∈Fq corresponding to KA0+KB′0+2di and the index jL and outputs the XOR Ψi. That is, the Ψ setter 1182 obtains an XOR Ψi of the function value (H(KA0+KB′0+di, jL)) of a value including KA0+KB′0+di and the function value (H(KA0+KB′0+2di, jL)) of a value including KA0+KB′0+2di (Step S132).
Ψi:=H(KA0+KB′0+di,jL)(xor)H(KA0+KB′0+2di,jL)
The RB selector 1183 randomly selects arbitrary values b0, b1 ∈{0, 1} and outputs the arbitrary values b0 and b1 (Step S133).
b
0
,b
1∈{0,1}
The output key setter 1184 outputs, by using KA0, KB′0, jL, b1, and Ψi as input, an XOR of a hash value H(KA0+KB′0, jL)∈Fq corresponding to KA0+KB′0 and the index jL and b1Ψi as the output key Ki0. That is, the output key setter 1184 sets an XOR of the function value (H(KA0+KB′0, jL)) of a value including KA0+KB′0 and b1Ψi as the output key Ki0 (Step S134).
K
i
0
:=H(KA0+KB′0,jL)(xor)b1Ψi
The output key setter 1185 outputs, by using KA0, KB′0, di, b0, and jL as input, an XOR of a hash value H(KA0+KB′0+di+b0di, jL)∈Fq corresponding to KA0+KB′0+di+b0di and the index jL and b1Ψ1∈Fq as the output key Ki1. That is, the output key setter 1185 sets the function value (H(KA0+KB′0+di+b0di, jL)) of a value including KA0+KB′0+di+b0di as the output key Ki1 (Step S135).
K
i
1
:=H(KA0+KB′0+di+b0di,jL)
The γ setter 1186 obtains γ(0, 0)=b1, γ(0, 1)=γ(1, 0)=b0, and γ(1, 1)=1(xor)b0 by using b0 and b1 as input and outputs γ(0, 0), γ(0, 1)=γ(1, 0), and γ(1, 1) (Step S136).
γ(0,0):=b1,γ(0,1):=γ(1,0)=b0,γ(1,1):=1(xor)b0
<<When the Gate G(i) is the XOR Gate>>
In Step S131, the setter 1181 increments the internal counter by 1 by nextindex( ) and outputs the value of the internal counter after increment as jL (Step S131).
j
L:=nextindex( )
Next, the Ψ setter 1182 obtains, by using KA0, KB′0, jL, and di as input, an XOR Ψi of a hash value H(KA0+KB′0, jL)∈Fq corresponding to KA0+KB′0 and the index jL and a hash value H(KA0+KB′0+2di, jL)∈Fq corresponding to KA0+KB′0+2di and the index jL and outputs the XOR Ti. That is, the Ψ setter 1182 obtains an XOR Ψi of the function value (H(KA0+KB′0, jL)) of a value including KA0+KB′0 and the function value (H(KA0+KB′0+2di, jL)) of a value including KA0+KB0+2di (Step S132). Ψi:=H(KA0+KB′0, jL)(xor)H(KA0+KB′0+2di, jL)
The RB selector 1183 randomly selects arbitrary values b0, b1∈{0, 1} and outputs the arbitrary values b0 and b1 (Step S133).
b
0
,b
1∈{0,1}
The output key setter 1184 outputs, by using KA0, KB′0, b0, di, and jL as input, a hash value H(KA0+KB′0+2b0di, jL)∈Fq corresponding to KA0+KB′0+2b0di and the index jL as the output key Ki0. That is, the output key setter 1184 sets the function value (H(KA0+KB′0+2b0di, jL)) of a value including KA0+KB′0+2b0di as the output key Ki0 (Step S134).
K
i
0
:=H(KA0+KB′0+2b0di,jL)
The output key setter 1185 outputs, by using KA0, KB′0, di, jL, b1, and Ψi as input, an XOR of a hash value H(KA0+KB′0+di, jL)∈Fq corresponding to KA0+KB′0+di and the index jL and b1Ψi∈Fq as the output key Ki1. That is, the output key setter 1185 sets an XOR of the function value (H(KA0+KB′0+di, jL)) of a value including KA0+KB′0+di and b1Ψi as the output key Ki1 (Step S135).
K
i
1
:=H(KA0+KB′0+di,jL)(xor)b1Ψi
The γ setter 1186 obtains γ(0, 0)=1(xor)b0, γ(0, 1)=γ(1, 0)=b1, and γ(1, 1)=b0 by using b0 and b1 as input and outputs γ(0, 0), γ(0, 1)=γ(1, 0), and γ(1, 1)(Step S136).
γ(0,0):=b0,γ(0,1):=γ(1,0)=b1,γ(1,1):=1(xor)b0
After Steps S131 to S136, the setter 1191 increments the internal counter by 1 by nextindex( ) and outputs the value of the internal counter after increment as jL,γ (Step S137).
j
L,γ:=nextindex( )
The RPB selector 1192 randomly selects a permutation bit λ(i)∈{0, 1} and outputs the permutation bit λ(i) (Step S138).
For all of I(A), I(B)∈{0, 1}, by using KAI(A), KB′I(B), jL,γ, λ(i), and γ(I(A), I(B)) as input, the encryptor 1193 (an output label setter) obtains and outputs
where lsb2(α) represents 2 bits from the least significant bit to the second bit of the bit string bitα∈{0, 1}k which is obtained by expressing α∈Fq in k bits. gi(I(A), I(B)) is determined in accordance with the gate G(i). gi(I(A), I(B))(xor)λ(i) is a label Lig(I(A), I(B))∈{0, 1} set for the output value gi(I(A), I(B)). When a gate G(θ) whose input wire W(A(O)) is the output wire W(i) of the gate G(i) is present, the label Lig(I(A), I(B)) is a label LAI(A(θ)) of the gate G(θ). When a gate G(θ) whose input wire W(B(θ)) is the output wire W(i) of the gate G(i) is present, the label Lig(I(A), I(B)) is a label LBI(B(θ)) of the gate G(θ). α|β is bit concatenation of α and β.
is cipher text obtained by encrypting the label Lig(I(A), I(B))=gi(I(A), I(B))(xor)λ(i) set for the output value gi(I(A), I(B)) and γ(I(A), I(B)) by using, as a symmetric key, the function value
lsb
2(H(KAI(A)|KBI(B),jL,γ))
of a value including the input keys KAI(A) and KB′I(B) (Step S139).
If the cipher text Ei is set in Step S115, the F setter 1194 obtains a concealed gate F[i]: (b0L,γ, b1L,γ, b2L,γ, b3L,γ, Ψi, Ei) by using b0L,γ, b1L,γ, b2L,γ, b3L,γ, Ψi, and Ei as input and outputs the concealed gate F[i]. On the other hand, if the cipher text Ei is not set in Step S115, the F setter 1194 obtains a concealed gate F[i]:=(b0L,γ, b1L,γ, b2L,γ, b3L,γ, Ψi) by using b0L,γ, b1L,γ, b2L,γ, b3L,γ, and Ψi as input and outputs the concealed gate F[i] (Step S140).
When W(j) (where j∈{A, B}) is an input wire of the circuit f (in the example of
When W(i) is an output wire of the circuit f (in the example of
The controller 113 determines whether i=n+u holds (Step S143). If i=n+u does not hold, the controller 113 sets i+1 as new i (i:=i+1) (Step S144) and returns the processing to Step S103. On the other hand, if i=n+u holds, the communication unit 1111 transmits the concealed circuit F made up of all the concealed gates F[i] thus obtained, the coding information e made up of all the coding information e[j] thus obtained, and the decoding information d made up of all the decoding information d[i−(n+u)+m] thus obtained. Here, in the case of the circuit f illustrated in
<Coding Processing of the Coding Apparatus 12>
Coding processing of the coding apparatus 12 will be described by using
The coding information e is input to the communication unit 1211 of the coding apparatus 12 (
η[i]:=ex
by using xi∈{0, 1} and e[i]=(e0, e1) (Step S155). The controller 123 determines whether i=n holds (Step S156). If i=n does not hold, the controller 123 sets i+1 as new i (i:=i+1) (Step S157) and returns the processing to Step S154. On the other hand, if i=n holds, the communication unit 1211 transmits a code string η=(η[1], . . . , r[n]). The code string η is transmitted to the calculation apparatus 13 (Step S158).
<Calculation Processing of the Calculation Apparatus 13>
Calculation processing of the calculation apparatus 13 will be described by using
The concealed circuit F=(F[n+1], . . . , F[n+u]), m, and the code string η=(η[1], . . . , η[n]) are input to the communication unit 1311 of the calculation apparatus 13 (
The controller 133 makes settings so that j:=1 (Step S172). The separator 134 uses a code η[j] as input and separates the code η[j] into Kj|Lj:=η[j] (Step S173). The controller 133 determines whether j=n holds (Step S174). If j=n does not hold, the controller 133 sets j+1 as new j (j:=j+1) (Step S175) and returns the processing to Step S173. On the other hand, if j=n holds, the controller 133 makes settings so that i:=n+1 (Step S176) and makes the processing proceed to Step S177.
In Step S177, the input wire setter 1351 makes settings so that A:=A(i) and B:=B(i) (Step S177). The label calculation unit 1352 obtains t:=2LA+LB∈{0, 1, 2, 3} by using LA and LB as input and outputs t (Step S178). The separator 1353 separates F[i], obtains (b0L,γ, b1L,γ, b2L,γ, b3L,γ, Ψi, Ei) or (b0L,γ, b1L,γ, b2L,γ, b3L,γ, Ψi), and stores (b0L,γ, b1L,γ, b2L,γ, b3L,γ, Ψi, Ei) or (b0L,γ, b1L,γ, b2L,γ, b3L,γ, Ψi) in the storage 132 (Step S179).
The determiner 1354 uses the output from the separator 1353 as input and determines whether F[i] includes the cipher text Ei (Step S180). Here, if F[i] does not include the cipher text Ei, the procedure proceeds to Step S184. On the other hand, if F[i] includes the cipher text Ei, the setter 1355 increments the internal counter by 1 by nextindex( ) and outputs the value of the internal counter after increment as jE (Step S181).
j
E:=nextindex( )
The determiner 1354 determines whether LB-=1 holds by using the label LB as input (Step S182). Here, if LB=1 does not hold, the procedure proceeds to Step S184. On the other hand, if LB=1 holds, the key decoder 1356 obtains an XOR of Ei and H(KB, jE) as a new input key KB by using KB, jE, and Ei as input and outputs the input key KB. That is, the key decoder 1356 obtains a new input key KB by decoding the cipher text Ei by using the function value (H(KB, jE)) of a value including the input key KB as a symmetric key (Step S183).
K
B
:=E
i(xor)H(KB,jE)
After Step S183, the procedure proceeds to Step S184.
In Step S184, the setter 1357 increments the internal counter by 1 by nextindex( ) and outputs the value of the internal counter after increment as jL (Step S184).
j
L:=nextindex( )
Then, the setter 1357 further increments the internal counter by 1 by nextindex( ) and outputs the value of the internal counter after increment as jL,γ (Step S185).
j
L,γ:=nextindex( )
The decoder 1358 obtains an XOR of lsb2(H(KA|KB), jL,γ) and btL,γ as Li|γ by using KA, KB, jL,γ, and btL,γ of b0L,γ, b1L,γ, b2L,γ, and b3L,γ obtained in Step S179, which corresponds to t∈{0, 1, 2, 3} obtained in Step S178, as input and outputs Li|γ. That is, the decoder 1358 obtains Li and γ=γ(I(A), I(B)) by decoding the cipher text btL,γ by using the function value (lsb2(H(KA|KB), jL,γ)) of a value including KA and KB corresponding to the input value of the gate G(i) as a symmetric key (Step S186).
L
i
|γ:=lsb
2(H(KA|KB,jL,γ))⊕btL,γ
The output key generator 1359 obtains an XOR of H(KA+KB, jL) and γΨi as an output key Ki by using KA, KB, jL, γ, and Ψi as input and outputs the output key Ki. That is, the output key generator 1359 obtains an XOR of the function value (H(KA+KB, jL)) of a value including KA+KB and γΨi as the output key Ki corresponding to the output value of the gate (Step S187).
K
i
:=H(KA+KB,jL)(xor)γΨi
The controller 133 determines whether i=n+u holds (Step S188). If i=n+u does not hold, the controller 133 sets i+1l as new i (i:=i+1) (Step S189) and returns the processing to Step S177. On the other hand, if i=n+u holds, the output value generator 136 obtains a label sequence μ=(Ln+u−m+1, . . . , Ln+u) by using the label Li (where i∈{n+1, . . . , n+u}) obtained in Step S186 and m as input. If m is a constant, m is not input. The communication unit 1311 transmits the label sequence p to the decoding apparatus 14 (Step S190).
μ:=(Ln+u−m+1, . . . ,Ln+u)
<Decoding Processing of the Decoding Apparatus 14>
Next, decoding processing of the decoding apparatus 14 will be described by using
The decoding information d=(λ(n+u−m+1), . . . , λ(n+u)) and the label sequence μ=(Ln+u−m+1, . . . , Ln+u) are input to the communication unit 1411 of the decoding apparatus 14 (
f(x):=(Ln+u−m+1(xor)λ(n+u−m+1), . . . ,Ln+u(xor)(n+u))
In the present embodiment, in the circuit concealment processing, for each gate G(i), at least any one of the input keys KA0, KA1, KB′0, and KB′1 is set so that the input keys KA0, KA1, KB′0, and KB′1 which satisfy KA−KA0=KB1−KB′0=di are obtained, and, by using the input keys KA0, KA1, KB′0, and KB′1, the output key Kig(I(A), I(B)) corresponding to the output value gi(I(A), I(B)) is set (Steps S110 to S130). As a result, compared to an existing system that independently generates all the input keys KA0, KA1, KB′0, and KB′1, it is possible to reduce the amount of data of the concealed circuit F. In the present embodiment, an XOR Ψi is calculated in Step S132 by using a fact that KA1−KA=KB′1−KB′0=di is satisfied and the XOR Ψi is used as a member of each concealed gate F[i]. By doing so, the amount of data of each concealed gate F[i] is reduced. For instance, the bit length of each concealed gate F[i]=(b0L,γ, b1L,γ, b2L,γ, b3L,γ, Ψi) which does not include the cipher text Ei is k+8 bits, which is about half the amount of data of that of Non-patent Literature 1 in which the amount of data of each concealed gate is 2k bits (when k is sufficiently large; for example, k=128 or k=256). Since the normal security parameter k satisfies the relationship 2k>k+8, the system of the present embodiment can reduce the amount of data of a concealed circuit.
In Step S187, an output key is calculated by using Ki:=H(KA+KB, jL)(xor)γΨi, and it is easily verified that a correct output key Ki is obtained by doing so. For instance, when a case where the gate G(i) is the AND gate is taken up as an example, Ψi:=H(KA0+KB′0, jL)(xor)H(KA0+KB0+di, jL) in Step S132, Ki0:=H(KA0+KB′0+b0di, jL) in Step S134, Ki1:=H(KA0+KB′0+2di, jL)(xor)b1Ψi in Step S135, and γ(0, 0):=b0, γ(0, 1):=γ(1, 0):=1(xor)b0, and γ(1, 1):=b1 in Step S136. Furthermore, when a case where (b0, b1)=(0, 0) is taken up as an example, Ki0:=H(KA0+KB′0, jL), Ki1:=H(KA0+KB′0+2di, jL), γ(0, 0):=0, γ(0, 1):=γ(1, 0):=1, and γ(1, 1):=0. Here, when I(A)=I(B)=0, γ=γ(0, 0)=0, and Ki which is obtained in Step S187 is Ki:=H(KA+KB, jL)=H(KA0+KB′0, jL). This coincides with Ki0=H(KA0+KB′0, jL) corresponding to an output value gi(0, 0)=0. When I(A)=0 and I(B)=1, γ=γ(0, 1)=1, and Ki which is obtained in Step S187 is Ki=H(KA+KB, jL)(xor)Ψi=H(KA0+KB′1, jL)(xor)H(KA0+KB′0, jL)(xor)H(KA0+KB′0+di, jL)=H(KA0+KB′0+di, jL)(xor)H(KA0+KB′0, jL)(xor)H(KA0+KB′0+di, jL)=H(KA0+KB′0, jL). This coincides with Ki0=H(KA0+KB′0, jL) corresponding to an output value gi(0, 1)=0. When I(A)=1 and I(B)=1, γ=γ(1, 1)=0, and Ki which is obtained in Step S187 is Ki=H(KA+KB, jL)=H(KA1+KB1, jL)=H(KA0+KB0+2di, jL). This coincides with Ki1=H(KA0+KB′0+2di, jL) corresponding to an output value gi(1, 1)=1. Moreover, when a case where the gate G(i) is the OR gate is taken up as an example, Ψi:=H(KA0+KB′0+di, jL)(xor)H(KA0+KB′0+2di, jL) in Step S132, Ki0:=H(KA0+KB0, jL)(xor)b1Ψi in Step S134, Ki1:=H(KA0+KB′0+di+b0di, jL) in Step S135, and γ(0, 0):=b1, γ(0, 1):=γ(1, 0):=b0, and γ(1, 1):=1(xor)b0 in Step S136. Furthermore, when a case where (b0, b1)=(0, 0) is taken up as an example, Ki0:=H(KA0+KB′0, jL), Ki1:=H(KA0+KB′0+di, jL), γ(0, 0):=0, γ(0, 1):=γ(1, 0):=0, and γ(1, 1):=1. Here, when I(A)=I(B)=0, γ=γ(0, 0)=0, and Ki:=H(KA+KB, jL)=H(KA0+KB′0, jL), which is obtained in Step S187, coincides with Ki0=H(KA0+KB′0, jL) corresponding to an output value gi(0, 0)=0. When I(A)=0 and I(B)=1, γ=γ(0, 0)=0, and Ki which is obtained in Step S187 is Ki:=H(KA+KB, jL)=H(KA0+KB′1, jL)=H(KA0+KB′0+di, jL). This coincides with Ki1=H(KA0+KB′0+di, jL) corresponding to an output value gi(0, 1)=1. When I(A)=1 and I(B)=1, γ=γ(1, 1)=1, and Ki which is obtained in Step S187 is Ki:=H(KA0+KB′0, jL)(xor)Ψi=H(KA1+KB1, jL)(xor)H(KA0+KB′0+di, jL)(xor)H(KA0+KB′0+2di, jL)=H(KA0+KB′0+2di, jL)(xor)H(KA0+KB′0+di, jL)(xor)H(KA0+KB′0+2di, jL)=H(KA0+KB′0+di, jL). This coincides with Ki1=H(KA0+KB0+di, jL) corresponding to an output value gi(1, 1)=1. Moreover, when a case where the gate G(i) is the XOR gate is taken up as an example, Ψi:=H(KA0+KB′0, jL)(xor)H(KA0+KB′0+2di, jL) in Step S132, Ki0:=H(KA0+KB′0+2b0di, jL) in Step S134, Ki1=H(KA0+KB′0+di, jL)(xor)b1Ψi in Step S135, and γ(0, 0):=b0, γ(0, 1):=γ(1, 0):=b1, and γ(1, 1):=1(xor)b0 in Step S136. Furthermore, when a case where (b0, b1)=(0, 0) is taken up as an example, Ki0:=H(KA0+KB′0, jL), Ki1:=H(KA0°+KB′0+di, jL), γ(0, 0):=0, γ(0, 1):=γ(1, 0):=0, and γ(1, 1):=1. Here, when I(A)=I(B)=0, γ(0, 0):=0, and Ki which is obtained in Step S187 is Ki:=H(KA+KB, jL)=H(KA0+KB′0, jL). This coincides with Ki1:=H(KA0+KB′0, jL) corresponding to an output value gi(0, 0)=0. When I(A)=0 and I(B)=1, γ=γ(0, 1)=0, and Ki which is obtained in Step S187 is Ki:=H(KA+KB, jL)=H(KA0+KB′1, jL)=H(KA0+KB′0+di, jL). This coincides with Ki1:=H(KA0+KB′0+di, jL) corresponding to an output value gi(0, 1)=1. When I(A)=1 and I(B)=1, γ(1, 1):=1, and Ki which is obtained in Step S187 is Ki:=H(KA+KB, jL)(xor)Ψi=H(KA1+KB′1, jL)(xor)H(KA0+KB′0, jL)(xor)H(KA0+KB′0+2di, jL)=H(KA0+KB′0+2di, jL)(xor)H(KA0+KB′0, jL)(xor)H(KA0+KB′0+2di, jL)=H(KA0+KB′0, jL). This coincides with Ki0:=H(KA0+KB′0, jL) corresponding to an output value gi(1, 1)=0. As described above, it is clear that a correct output key Ki is obtained by Step S187.
Moreover, when the input key KAI(A) of the gate G(i) is an output key KαI(α) of another gate G(α) (the input key KAI(A) is set) and the input key KBI(B) is an output key KβI(β) of another gate G(β) (when the input key KBI(B) is set), if KαI(α)=KAI(A) itself is used as the input key KAI(A) and KβI(β)=KBI(B) itself is used as the input key KB′I(B), KA1−KA0=KB′1−KB′0=di is usually not satisfied. In the present embodiment, in such a case, di=KA1−KA0 is obtained, KB′λ(B)=KBλ(B)is obtained for the label LBI(B)=λ(B)(xor)I(B) corresponding to the input value I(B), KB′1(xor)λ(B)=KB′λ(B)+(−1)λ(B)di is obtained, and the cipher text Ei obtained by encrypting KB′1(xor)λ(B) by using the function value of a value including the input key KB1(xor)λ(B) as a symmetric key is obtained (Steps S110 to S115). As a result, KA1−KA0=KB′1−KB′0=di is satisfied. The calculation apparatus 13 can obtain a new input key KB=KB′1(xor)λ(B) by decoding the cipher text Ei by using, as a symmetric key, the function value of a value including the input key KB which is the output key KβI(β) of the other gate G(β) (Step S183).
A second embodiment will be described by using the drawings. Hereinafter, a difference from the first embodiment will be mainly described. Explanations of the matters which are common to the first embodiment and the second embodiment will be simplified by using the above-mentioned reference numerals.
<Configuration>
As illustrated in
<Circuit Concealing Apparatus 21>
As illustrated in
<Calculation Apparatus 23>
As illustrated in
Each of the circuit concealing apparatus 21, the coding apparatus 12, the calculation apparatus 23, and the decoding apparatus 14 is an apparatus configured as a result of, for example, the above-mentioned computer executing a predetermined program. The circuit concealing apparatus 21, the coding apparatus 12, the calculation apparatus 23, and the decoding apparatus 14 perform processing under control of the controllers 113, 123, 133, and 143, respectively. Information input to the circuit concealing apparatus 21, the coding apparatus 12, the calculation apparatus 23, and the decoding apparatus 14 and data obtained in these apparatuses are stored respectively in the storages 112, 122, 132, and 142 one by one and used by being read therefrom when necessary.
<Circuit Concealment Processing of the Circuit Concealing Apparatus 21>
Concealment processing which is performed on the circuit f=(n, m, u, A, B, g) by the circuit concealing apparatus 21 will be described by using
In the present embodiment, in place of the circuit concealing apparatus 11, the circuit concealing apparatus 21 executes processing in Step S101 to S130 described in the first embodiment. Then, in place of the circuit concealing apparatus 11, the circuit concealing apparatus 21 executes processing in Steps S131 and S231 to S238 of
In Steps S131 and S231 to S238, an output key Kig(I(A), I(B)) corresponding to an output value gi(I(A), I(B))∈{0, 1} is set by using input keys KA0, KA1, KB′0, and KB′1, and, furthermore, γ(0, 0), γ(0, 1)=γ(1, 0), and γ(1, 1)are obtained. Processing in Steps S131 and S231 to S238 differs depending on the type of the gate G(i). Hereinafter, processing in Steps S131 and S231 to S238 when the gate G(i) is the AND gate, when the gate G(i) is the OR gate, and when the gate G(i) is the XOR gate will be described.
<<When the Gate G(i) is the AND Gate>>
In Step S131, the setter 1181 (
j
L:=nextindex( )
The setter 2181 sets a random permutation function π: {1, 2, 3}→{1, 2, 3} that randomly permutates the member sequence of {1, 2, 3}(Step S231), obtains π(e)∈{1, 2, 3} by applying this random permutation function π to ε∈{1, 2, 3}, and makes settings so that γ(0, 0):=π(1)∈{0, 1}2, γ(0, 1):=γ(1, 0):=π(2)∈{0, 1}2, and γ(1, 1):=π(3)∈{0, 1}2. γ(0, 0) is a value corresponding to (I(A), I(B))∈(0, 0), γ(0, 1) is a value corresponding to (I(A), I(B))=(0, 1), γ(1, 0) is a value corresponding to (I(A), I(B))=(1, 0), and γ(1, 1)is a value corresponding to (I(A), I(B))=(1, 1). Here, π(1)≠π(2), π(2) π(3), and π(1)≠π(3) (Step S232).
The coordinate point identifier 2187 obtains, by using γ(0, 0), γ(0, 1), =γ(1, 0), γ(1, 1), KA0, KB′0, di, and jL as input, a point (X1, Y1):=γ(0, 0), H(KA0+KB′0, jL)), a point (X2, Y2):=(γ(1, 0), H(KA+KB′0+di, jL))=(γ(0, 1), H(KA0+KB′0+di, jL)), and a point (X3, Y3):=(γ(1, 1), H(KA0+KB′0+2di, jL)) and outputs the point (X1, Y1), the point (X2, Y2), and the point (X3, Y3). X1 is the function value of the value γ(0, 0), Y1 is the function value of a value including KA0+KB′0, X2 is the function value of the value γ(1, 0)=γ(0, 1), Y2 is the function value of a value including KA0+KB′0+di, X3 is the function value of the value γ(1, 1), and Y3 is the function value of a value including KA0+KB′0+2di(Step S233).
The P polynomial setter 2183 obtains, by using the point (X1, Y1) and the point (X2, Y2) as input, a first-degree polynomial Y=P(X) passing through the point (X1, Y1) and the point (X2, Y2) and outputs the first-degree polynomial Y=P(X). X is a value on the x-axis and Y is a value on the y-axis. In
The Q polynomial setter 2186 obtains, by using the first-degree polynomial Y=P(X) as input, a point (X4, P(X4)) by substituting a constant X4 (for example, X4=4), which is different from X1 to X3, into Y=P(X). The Q polynomial setter 2186 further obtains, by using the point (X3, Y3) as input, a first-degree polynomial Y=Q(X) passing through the point (X3, Y3) and the point (X4, P(X4)) and outputs the first-degree polynomial Y=Q(X). In
The Ψ setter 2182 sets Ψi:=P(X4) by using P(X4)=Q(X4) as input and outputs Ψi(Step S236).
Ψi:=P(X4)
The output key setter 2184 outputs, as an output key Ki0:=P(X0), P(X0) obtained by substituting a constant X0 (for example, X0=0), which is different from X1 to X4, into Y=P(X) by using the first-degree polynomial Y=P(X) as input. In
K
i
0
:=P(X0)
The output key setter 2185 outputs, as an output key Ki1:=Q(X0), Q(X0) obtained by substituting the above-described constant X0 into Y=Q(X) by using the first-degree polynomial Y=Q(X) as input. In
<<When the Gate G(i) is the OR Gate>>
The processing in Steps S131 and S231 to S233 is the same as the processing performed when the gate G(i) is the AND gate. After Step S233, the Q polynomial setter 2186 obtains, by using the point (X2, Y2) and the point (X3, Y3) as input, a first-degree polynomial Y=Q(X) passing through the point (X2, Y2) and the point (X3, Y3) and outputs the first-degree polynomial Y=Q(X). In
The P polynomial setter 2183 obtains, by using the first-degree polynomial Y=Q(X) as input, a point (X4, Q(X4)) by substituting a constant X4 (for example, X4=4), which is different from X1 to X3, into Y=Q(X). The P polynomial setter 2183 further obtains, by using the point (X1, Y1) as input, a first-degree polynomial Y=P(X) passing through the point (X1, Y1) and the point (X4, Q(X4)) and outputs the first-degree polynomial Y=P(X). In
The Ψ setter 2182 makes settings so that Ψi:=Q(X4) by using Q(X4)=P(X4) as input and outputs Ψi (Step S236).
Ψi:=Q(X4)
The output key setter 2184 outputs, as an output key Ki0:=P(X0), P(X0) obtained by substituting a constant X0 (for example, X0=0), which is different from X1 to X4, into Y=P(X) by using the first-degree polynomial Y=P(X) as input. In
K
i
0
:=P(X0)
The output key setter 2185 outputs, as an output key Ki1:=Q(X0), Q(X0) obtained by substituting the above-described constant X0 into Y=Q(X) by using the first-degree polynomial Y=Q(X) as input. In
<<When the Gate G(i) is the XOR Gate>>
The processing in Steps S131 and S231 to S233 is the same as the processing performed when the gate G(i) is the AND gate. After Step S233, the P polynomial setter 2183 obtains, by using the point (X1, Y1) and the point (X3, Y3) as input, a first-degree polynomial Y=P(X) passing through the point (X1, Y1) and the point (X3, Y3) and outputs the first-degree polynomial Y=P(X). In
The Q polynomial setter 2186 obtains, by using the first-degree polynomial Y=P(X) as input, a point (X4, P(X4)) by substituting a constant X4 (for example, X4=4), which is different from X1 to X3, into Y=P(X). The Q polynomial setter 2186 further obtains, by using the point (X2, Y2) as input, a first-degree polynomial Y=Q(X) passing through the point (X2, Y2) and the point (X4, P(X4)) and outputs the first-degree polynomial Y=Q(X). In
The Ψ setter 2182 makes settings so that Ψi:=P(X4) by using P(X4)=Q(X4) as input and outputs Ψi (Step S236).
Ψi:=P(X4)
The output key setter 2184 outputs, as an output key Ki0:=P(X0), P(X0) obtained by substituting a constant X0 (for example, X0=0), which is different from X1 to X4, into Y=P(X) by using the first-degree polynomial Y=P(X) as input. In
K
i
0
:=P(X0)
The output key setter 2185 outputs, as an output key Ki1:=Q(X0), Q(X0) obtained by substituting the above-described constant X0 into Y=Q(X) by using the first-degree polynomial Y=Q(X) as input. In
After Steps S131 and S231 to S238, in place of the circuit concealing apparatus 11, the circuit concealing apparatus 21 performs the processing in Steps S137 and S138 described in the first embodiment (
where lsb3(α) represents 3 bits from the least significant bit to the third bit of the bit string bitα∈{0, 1}k which is obtained by expressing α∈Fq in k bits.
is cipher text obtained by encrypting the label Lig(I(A), I(B))=gi(I(A), I(B))(xor)λ(i) set for the output value gi(I(A), I(B)) and γ(IA), I(B)) by using, as a symmetric key, the function value
lsb
3(H(KAI(A)|KBI(B),jL,γ))
of a value including the input keys KAI(A) and KB′I(B) (Step S239).
Then, in place of the circuit concealing apparatus 11, the circuit concealing apparatus 21 performs the processing from Steps S140 to S143 described in the first embodiment. If a determination is made in Step S143 that i=n+u does not hold, the controller 113 sets i+1 as new i (i:=i+1) (Step S144) and returns the processing to Step S103. On the other hand, if i=n+u holds, the communication unit 1111 transmits the concealed circuit F made up of all the concealed gates F[i] thus obtained, the coding information e made up of all the coding information e[j] thus obtained, and the decoding information d made up of all the decoding information d[i−(n+u)+m] thus obtained. The concealed circuit F is transmitted to the calculation apparatus 13 along with m, the coding information e is transmitted to the coding apparatus 12, and the decoding information d is transmitted to the decoding apparatus 14 (Step S145).
<Coding Processing of the Coding Apparatus 12>
The coding processing of the coding apparatus 12 is the same as that of the first embodiment.
<Calculation Processing of the Calculation Apparatus 23>
The calculation processing of the calculation apparatus 23 will be described by using
In the present embodiment, in place of the calculation apparatus 13, the calculation apparatus 23 executes the processing in Steps S171 to S185 described in the first embodiment. Next, the decoder 2358 obtains, by using KA, KB, jL,γ, and btL,γ of b0L,γ, b1L,γ, b2L,γ, and b3L,γ obtained in Step S179, which corresponds to t c {0, 1, 2, 3} obtained in Step S178, as input, an XOR of lsb3(H(KA|KB), jL,γ) and btL,γ as Li|γ and outputs Li|γ. That is, the decoder 2358 obtains Li and γ=γ(I(A), I(B)) by decoding the cipher text btL,γ by using, as a symmetric key, the function value (lsb3(H(KA|KB), jL,γ)) of a value including KA and KB corresponding to the input value of the gate G(i) (Step S286).
L
i
|γ:=lsb
3(H(KA|KB,jL,γ))⊕btL,γ
The coordinate point identifier 2357 obtains a point (Xγ, YK)=(γ, H(KA+KB, jL)) by using the input keys KA=KAI(A), KB=KBI(B)∈{0, 1}corresponding to the input values (I(A), I(B)), the value γ=γ(I(A), I(B)), and jL as input and outputs the point (Xγ, YK). That is, the coordinate point identifier 2357 obtains the point (Xγ, YK) by setting the function value of the value γ=γ(I(A), I(B)) as Xγ and the function value of a value including KA+KB as YK and outputs the point (Xγ, YK) (Step S287).
The output key generator 2359 obtains, as an output key Ki, a value Y=R(X0) obtained by substituting a constant X0 (for example, X0=0) into a first-degree polynomial Y=R(X) passing through the point (Xγ, YK) and the point (X4, Ψi) by using Ψi=P(X4)=Q(X4) obtained in Step S179 and the point (Xγ, YK) obtained in Step S287 as input and outputs the output key Ki. As mentioned earlier, X4 (for example, X4=4) is a constant (Step S288).
The controller 133 determines whether i=n+u (Step S188). If i=n+u does not hold, the controller 133 sets i+1 as new i (i:=i+1) (Step S189) and returns the processing to Step S177. On the other hand, if i=n+u, the output value generator 136 obtains a label sequence μ=(Ln+u−m+1, . . . , Ln+u) by using the label Li(where i∈{n+1, . . . , n+u}) obtained in Step S186 and m as input, and the communication unit 1311 transmits the label sequence pt to the decoding apparatus 14 (Step S190).
μ:=(Ln+u−m+1, . . . ,Ln+u)
<Coding Processing of the Decoding Apparatus 14>
The coding processing of the decoding apparatus 14 is the same as that of the first embodiment.
Also in the present embodiment, in the circuit concealment processing, for each gate G(i), at least any one of the input keys KA0, KA1, KB′0, and KB′1 is set so that the input keys KA0, KA1, KB′0, and KB′1 which satisfy KA1−KA0=KB′1−KB′0=di are obtained, and the output key Kig(I(A), I(B)) corresponding to the output value gi(I(A), I(B)) is set by using the input keys KA0, KA1, KB′1 and KB1 (Steps S110 to S130). As a result, compared to the existing system that independently generates all the input keys KA0, KA1, KB′0, and KB′1, it is possible to reduce the amount of data of the concealed circuit F.
It is to be noted that the present invention is not limited to the above-described embodiments. For instance, as long as the circuit concealing apparatus and the coding apparatus are different apparatuses, more than one apparatus of the circuit concealing apparatus, the coding apparatus, the calculation apparatus, and the decoding apparatus may be configured as one apparatus. Moreover, in the above-described embodiments, as a method of encrypting β by using α as a symmetric key (for example, Step S115), an example in which an XOR of α and β is calculated is described. Alternatively, β may be encrypted by using a as a symmetric key in accordance with a symmetric key cryptosystem such as AES or Camellia (a registered trademark). Furthermore, the “function value of a value including α” may be a itself, the function value of α, or the function value of a value including a and other information. For example, in place of H(KB1(xor)λ(B), jE) in Step S115, KB1(xor)λ(B) itself may be used or H(KB1(xor)λ(B)) may be used. Moreover, as the “function value”, an injective function value (such as cipher text) other than a hash value may be used.
The above-described various kinds of processing may be executed, in addition to being executed in chronological order in accordance with the descriptions, in parallel or individually depending on the processing power of an apparatus that executes the processing or when needed. In addition, it goes without saying that changes may be made as appropriate without departing from the spirit of the present invention.
When the above-described configurations are implemented by a computer, the processing details of the functions supposed to be provided in each apparatus are described by a program. As a result of this program being executed by the computer, the above-described processing functions are implemented on the computer. The program describing the processing details can be recorded on a computer-readable recording medium. An example of the computer-readable recording medium is a non-transitory recording medium. Examples of such a recording medium include a magnetic recording apparatus, an optical disk, a magneto-optical recording medium, and semiconductor memory.
The distribution of this program is performed by, for example, selling, transferring, or lending a portable recording medium such as a DVD or a CD-ROM on which the program is recorded. Furthermore, a configuration may be adopted in which this program is distributed by storing the program in a storage apparatus of a server computer and transferring the program to other computers from the server computer via a network.
The computer that executes such a program first, for example, temporarily stores the program recorded on the portable recording medium or the program transferred from the server computer in a storage apparatus thereof. At the time of execution of processing, the computer reads the program stored in the storage apparatus thereof and executes the processing in accordance with the read program. As another mode of execution of this program, the computer may read the program directly from the portable recording medium and execute the processing in accordance with the program and, furthermore, every time the program is transferred to the computer from the server computer, the computer may sequentially execute the processing in accordance with the received program. 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.
In the above-described embodiments, processing functions of the present apparatus are implemented as a result of a predetermined program being executed on the computer, but at least part of these processing functions may be implemented by hardware.
Number | Date | Country | Kind |
---|---|---|---|
2016-220784 | Nov 2016 | JP | national |
Filing Document | Filing Date | Country | Kind |
---|---|---|---|
PCT/JP2017/040450 | 11/9/2017 | WO | 00 |