Electronic device and method for performing encrypted operation in electronic device
The use of arithmetic garbled circuits with algebraic garbling and oblivious transfer in electronic devices addresses the inefficiency of garbled circuits in arithmetic operations, reducing ciphertext size and improving secure multi-party computation scalability.
Patent Information
- Application Number
- PCT/KR2024/005137
- Authority / Receiving Office
- WO · WO
- Patent Type
- Applications
- Current Assignee / Owner
- Priority Date
- 2024-02-16
- Filing Date
- 2024-04-17
- Publication Date
- 2024-10-24
AI Technical Summary
Garbled circuits are less suitable for secure operations in arithmetic circuits compared to other multi-party computation primitives, particularly due to the large size of garbled circuit ciphertexts, which hinders efficient transmission and computation.
An electronic device and method for performing encrypted operations using an arithmetic garbled circuit, where a garbling equation is set to generate and transmit garbled circuit ciphertexts, reducing the size of data transmitted and received by employing algebraic garbling instead of Boolean garbling, and utilizing oblivious transfer to securely transmit random bit strings.
This approach significantly reduces the number of garbled circuit ciphertexts required, enhancing the scalability and efficiency of secure multi-party computations by minimizing data transmission while maintaining secure operation.
Smart Images

Figure KR2024005137_24102024_PF_FP_ABST
Abstract
Description
Electronic devices and methods for performing encrypted operations on electronic devices
[0001] Various embodiments of the present invention relate to an electronic device and a method for performing encrypted operations in the electronic device.
[0002] Garbled circuits (GC) are one of the most promising primitives for secure multi-party computation (MPC). A general solution for GC was proposed by Andrew Yao, winner of the 1986 Turing Award. Yao proved that for any polynomial function, a general circuit can be safely computed polynomially (without revealing the player's inputs) by "garbling."
[0003] For example, if there is a way for A to send the information it needs to B, it is possible to privately evaluate arbitrary functions by GC (e.g., without revealing the inputs to the function to be computed).
[0004] Since Yao's seminal work, improvements to GC have primarily focused on reducing the size of the data to be transmitted (e.g., garbled circuit ciphertext). However, despite GC's long history, a significant portion of research has focused on garbling Boolean circuits. GC is still considered less suitable for secure arithmetic operations than other MPC primitives, such as secret sharing. Therefore, when performing multiparty computations via garbling circuits, a method is needed that reduces the size of the garbled circuit ciphertext transmitted and received while still ensuring its secure transmission.
[0005] The above information may be provided as background art to aid in understanding the present disclosure. No claim or determination is made as to whether any of the above-described matters constitute prior art related to the present disclosure.
[0006] According to one embodiment, when performing multi-party operations through a garbled circuit, a method for performing encrypted operations in an electronic device and an electronic device may be provided by setting a garbled equation by an arithmetic garbled circuit.
[0007] According to one embodiment, an electronic device may include a memory, a communication circuit, and a processor electrically connected to the memory and the communication circuit. The processor may verify at least one garbled circuit ciphertext generated based on a garbled equation set corresponding to a target operation from the memory. The processor may transmit the verified at least one garbled circuit ciphertext to an evaluator device through the communication circuit. The processor may receive a first result value of the garbled equation corresponding to at least one input value from the evaluator device through the communication circuit. The processor may be configured to verify a second result value of the target operation corresponding to the at least one input value based on the first result value.
[0008] A method for performing an encrypted operation in an electronic device according to one embodiment may include an operation of verifying at least one garbled circuit ciphertext generated based on a garbled equation set corresponding to a target operation. The method may include an operation of transmitting the verified at least one garbled circuit ciphertext to an evaluator device. The method may include an operation of receiving, from the evaluator device, a first result value of the garbled equation corresponding to at least one input value. The method may include an operation of verifying, based on the first result value, a second result value of the target operation corresponding to the at least one input value.
[0009] FIG. 1 is a drawing showing a gabling system according to one embodiment.
[0010] Figure 2 is a block diagram showing the configuration of a gobbler device and an evaluator device according to one embodiment.
[0011] Figure 3 is a flowchart showing an operating method in a gobbler device according to one embodiment.
[0012] Figure 4 is a flowchart illustrating an operation method in an evaluator device according to one embodiment.
[0013] Garbled Circuits (GCs) allow two parties who do not trust each other to jointly compute functions on their private inputs, where the functions represent only the outputs and nothing else. Since their introduction by Yao, several approaches have focused on reducing the size of the garbled circuit ciphertext transmitted from one party (hereafter referred to as the "garbler" for convenience) to the other party (hereafter referred to as the "evaluator" for convenience).
[0014] In one embodiment, studies on garbled circuits can express functions to be computed as Boolean circuits composed of XOR / AND gates, and generate garbled circuit ciphertexts under a gate-by-gate paradigm. Due to the free-XOR structure, garbling XOR gates can be performed freely, i.e., the garbler does not need to transmit ciphertexts to the evaluator to compute the XOR gate. Subsequently, a series of studies aim to reduce the cost of garbled AND gates. As an example of a garbled method, AND gates can be garbled using 1.5κ (kappa) bit ciphertexts, where κ is a computational security parameter. Meanwhile, recent studies have proven that 1.5κ bits are optimal for AND gates. Therefore, scalability may decrease as the multiplicative depth of the circuit increases. To garble an arithmetic operation using the above approach, the function is first expressed as a Boolean circuit, and then the GC configuration can be applied gate-by-gate. For example, even for a single 16-bit integer addition, if κ = 128, it may require about 360 bytes.
[0015] Below, we will explain an example of implementing a garbled circuit using a Boolean circuit (or Boolean garbled circuit).
[0016] According to one embodiment, the multiplication operation of x and y can be represented by an AND gate in a Boolean operation circuit. The truth value of the AND gate can be represented as shown in Table 1 below.
[0017] xyz(=xy)000010100111
[0018] Here, the random bit string set corresponding to the value of input x being 0 can be represented as A0, the random bit string set corresponding to the value of input x being 1 can be represented as A1, the random bit string set corresponding to the value of input y being 0 can be represented as B0, and the random bit string set corresponding to the value of input y being 1 can be represented as B1. In addition, the random bit string set corresponding to the value of output z (= xy) being 0 can be represented as C0, and the random bit string set corresponding to the value of output z being 1 can be represented as C1. That is, the input value of each input (x, y) or the output value of the output (z) can be garbled into a random bit string of 128 bits (κ = 128) or 256 bits (κ = 256) as described above. The input value garbled with the above random bit string is referred to as a garbled input, and is not limited to the above term. At this time, based on the Boolean operation circuit for the above multiplication operation, garbled circuit ciphertexts G0, G1, G2, and G3 can be generated as in <Mathematical Formula 1> below.
[0019]
[0020] For example, referring to the above and <Mathematical Formula 1>, the number of garbled circuit ciphertexts can be determined according to the domain of each input value. For example, when the domain of the input value is 2 (i.e., when the input value is composed of 0 or 1), the garbled circuit ciphertext corresponding to the xy operation can be composed of 4 (=2*2), which is a combination of the number of input values of x and the number of input values of y.
[0021] In one embodiment, a gobbler (e.g., a gobbler device) can transmit the garbled circuit ciphertexts G0, G1, G2, and G3 to an evaluator (e.g., an evaluator device). The evaluator, which receives the garbled circuit ciphertexts, can generate a garbled input by garbling the input values, or receive the generated garbled input from the gobbler. For example, the evaluator can generate a garbled input A x , B y Receive one of the above from the gable, or A x , B y One of them can be generated on its own. As an example, the evaluator can compute the garbled input corresponding to a specific input value as in <Mathematical Formula 2> below and transmit the computed result to the garbler.
[0022]
[0023] According to one embodiment, the gobbler can verify that the result of the multiplication operation xy of two inputs (i.e., x, y) is 0 by receiving C0 determined by <Mathematical Formula 2> from the evaluator, even if the gobbler does not know at least one of the values of x and y.
[0024] The above-described example exemplifies a case where the domain is 2, but according to one embodiment, when the domain of each input is p, the number of the garbled circuit ciphertext is p 2 It can be a dog. Therefore, as described above, in the case of a garbled circuit using a Blian circuit, as the number of domains increases, the number of garbled circuit ciphertexts increases significantly, so the amount of data that the garbler must transmit to the evaluator can increase dramatically.
[0025] In the embodiments described below, methods for reducing the size of ciphertext transmitted and received between devices will be described by generating garbled circuit ciphertext based on an arithmetic garbling circuit using algebraic garbling instead of a Blian garbling circuit.
[0026] FIG. 1 is a drawing showing a gabling system according to one embodiment.
[0027] Referring to FIG. 1, a gabling system may include a first device (110) and a second device (120). The first device (110) may be referred to as a first electronic device or a gabling device, but the embodiments described below are not limited to the terms. The second device (120) may be referred to as a second electronic device or an evaluator device, but the embodiments described below are not limited to the terms. Communication between the first device (110) and the second device (120) may correspond to communication between electronic devices, and may correspond to communication between a client and a server. Furthermore, communication between the first device (110) and the second device (120) may correspond to communication between chips (e.g., integrated circuits) within the electronic devices. According to various embodiments, the gabling system may further include a third device, and data transmitted and received between the first device (110) and the second device (120) may be transmitted via the third device. At this time, the third device may generate at least one data required for the garbling system (e.g., at least one input value or at least one garbled circuit ciphertext, a result value of the garbling equation (e.g., a first result value)), or may perform a role of confirming a result value of the target operation (e.g., a second result value). The various embodiments described below may be implemented by further including the third device.
[0028] According to one embodiment, the first device (110) can establish a Gabbling equation corresponding to the target operation. For example, the Gabbling equation can be generalized to a finite field (e.g., a Galois field (GF)) with prime factor properties by implementing an arithmetic Gabbling circuit through algebraic Gabbling. A detailed description thereof will be provided later.
[0029] According to one embodiment, the first device (110) generates a garbled circuit ciphertext (G1, ..., G) based on the garbled equations (e.g., algebraic equations). 2(p-1) ) can be generated. The number of garbled circuit ciphertexts can be relatively smaller compared to the case where the garbled circuit is implemented using a Boolean circuit (or a Boolean garbled circuit). For example, in order to perform an xy operation where the domain of each input value of the input x and y is p, as described above, in a Boolean circuit, p 2 A garbled circuit ciphertext may be required for a single operation. On the other hand, an arithmetic garbled circuit may require 2(p-1) garbled circuit ciphertexts for the same operation. Specific examples of this will be described later.
[0030] According to one embodiment, the first device (110) transmits the generated garbled circuit ciphertext (G1, ..., G) to the second device (120). 2(p-1) ) can be transmitted. According to one embodiment, the first device (110) transmits a random bit string (A) corresponding to the input value (x, y) to the second device (120). x , B y ) can be transmitted. The random bit string can be transmitted without the input value or whether the input value is transmitted being exposed to the first device (110) and / or the second device (120) by an oblivious transfer (OT) method, and the embodiments described below are not limited thereto.
[0031] According to one embodiment, the second device (120) receives the garbled circuit ciphertext (G1, ..., G) from the first device (110). 2(p-1) ) and a random bit string (A) corresponding to the input value (x, y) x , B y ) to obtain the result of the Gabbling equation corresponding to the input value above. ) can be generated. The gabbling equation used in the second device (120) may be the same as, similar to, or different from the gabbling equation used in the first device (110). For convenience of explanation, the gabbling equation used in the first device (110) may be referred to as the 'first gabbling equation', and the gabbling equation used in the second device (120) may be referred to as the 'second gabbling equation'.
[0032] According to one embodiment, the second device (120) outputs to the first device (110) the result of the Gabbling equation corresponding to the input value. ) (e.g., the first result value) can be transmitted. The first device (110) transmits the result value of the Gabbling equation transmitted from the second device (120). ) (e.g., the first result value), the result value of the target operation corresponding to the input value (e.g., z=xy) (hereinafter, for convenience of explanation, referred to as the 'second result value') can be confirmed.
[0033] Figure 2 is a block diagram showing the configuration of a gobbler device and an evaluator device according to one embodiment.
[0034] Referring to FIG. 2, according to one embodiment, a first device (110) (e.g., a gobbler device) may include a processor (112), a communication module (114), and a memory (116). A second device (120) (e.g., a gobbler device) may include a processor (122), a communication module (124), and a memory (126).
[0035] According to one embodiment, the processor (112) of the first device (110) can set a garbling equation corresponding to a target operation. The processor (112) can generate at least one garbled circuit ciphertext based on the set garbled equation. The generated at least one garbled circuit ciphertext can be stored in the memory (116). If the target operation between the first device (110) and the second device (120) is preset, the at least one garbled circuit ciphertext may be generated in an external device and then pre-stored in the memory (116). According to one embodiment, the processor (112) of the first device (110) can transmit the at least one garbled circuit ciphertext to the second device (120) via the communication module (114).
[0036] In one embodiment, the second device (120) can receive the at least one garbled circuit ciphertext via the communication module (124). The processor (122) of the second device (120) can verify the at least one garbled circuit ciphertext received via the communication module (124). In one embodiment, the second device (120) can generate or receive from the first device (110) at least one input value or at least one garbled input obtained by garbling the at least one input value. For example, the second device (120) can receive from the first device (110) the at least one input value or at least one garbled input obtained by garbling the at least one input value by oblivious transfer (OT) without exposing the input value or whether the input value was transmitted to the first device (110) and / or the second device (120). The second device (120) can store at least one input value or at least one garbling input that garbles at least one input value in the memory (126).
[0037] According to one embodiment, the processor (122) of the second device (120) can generate a result value (e.g., a first result value) by inputting at least one input value stored in the memory (126) or at least one garbled input obtained by garbling at least one input value, and at least one garbled circuit ciphertext into a garbled equation (e.g., a second garbled equation).
[0038] According to one embodiment, the processor (122) of the second device (120) can transmit the generated result value (e.g., the first result value) to the first device (110) via the communication module (124). The first device (110) can receive the result value (e.g., the first result value) transmitted from the second device (120) via the communication module (114).
[0039] According to one embodiment, the processor (112) of the first device (110) can check the result value of the corresponding operation corresponding to the input value based on the result value received through the communication module (114).
[0040] Figure 3 is a flowchart showing an operating method in a gobbler device according to one embodiment.
[0041] Referring to FIG. 3, according to one embodiment, in operation 302, an electronic device (e.g., the first device (110)) may set a Gabbling equation corresponding to a target operation.
[0042] According to one embodiment, in operation 304, the electronic device may generate at least one garbled circuit ciphertext based on the set garbled equation.
[0043] According to one embodiment, in operation 306, the electronic device may transmit the generated garbled circuit cryptogram to an evaluator device (e.g., a second device (120)).
[0044] According to one embodiment, in operation 308, the electronic device may receive a result value (e.g., a first result value) of a gabling equation corresponding to an input value (or gabling input) from the evaluator device.
[0045] According to one embodiment, in operation 310, the electronic device can determine a result value (e.g., a second result value) of a target operation corresponding to an input value based on a result value of the received Gabbling equation.
[0046] Figure 4 is a flowchart illustrating an operation method in an evaluator device according to one embodiment.
[0047] Referring to FIG. 4, according to one embodiment, at operation 402, an evaluator device (e.g., a second device (120)) may receive at least one gabbling circuit cryptogram from a gabbling device (e.g., a first device (110)).
[0048] In one embodiment, at operation 404, the evaluator device may transmit an input value for at least one input to the gobbler device.
[0049] In one embodiment, at operation 406, the evaluator device may receive a random bit string (e.g., a gabbling input) corresponding to the input value from the gabbling device.
[0050] According to one embodiment, in operation 408, the evaluator device may generate a result (e.g., a first result) of a gabling equation corresponding to the input value (or gabling input).
[0051] According to one embodiment, in operation 410, the evaluator device can transmit the result of the gabbling equation to the gabbling device.
[0052] Hereinafter, specific embodiments of setting a garbling equation corresponding to a target operation and generating a garbled circuit ciphertext according to an embodiment as described above will be described. To facilitate understanding, an embodiment in which the domain of each input value of input x and y is 2 and the target operation is an xy operation will be described first, and then various embodiments for a generalized target operation will be described.
[0053] In one embodiment, once the target operation is determined as described above, a garbling equation corresponding to the target operation may be established. For example, if the target operation is a multiplication operation of x and y, and the domain of each input value is 2, the garbling equation may be established as in <Mathematical Formula 3> below.
[0054]
[0055] In the above <Mathematical Formula 3>, x and y are input values, C, G1, and G2 are coefficients of the Gabbling equation and correspond to the Gabbling circuit ciphertext, and M can represent a matrix set to output 1 when each input value is 0. represents a hash vector corresponding to each input value, α and β represent the permutation bits of the Gabler, and Δ represents a variable for offset.
[0056] According to one embodiment, in the above <Mathematical Formula 3>, M is It can be expressed as, Is It can be expressed as follows. That is, the above M and If we substitute into the above <Mathematical Formula 3>, the Gabbling equation can be expressed as <Mathematical Formula 4> below.
[0057]
[0058] By substituting (x, y) = (1, 0) in the above <Mathematical Formula 4>, the following <Mathematical Formula 5> can be generated.
[0059]
[0060] By substituting (x, y) = (0, 1) in the above <Mathematical Formula 4>, the following <Mathematical Formula 6> can be generated.
[0061]
[0062] By substituting (x, y) = (0, 0) in the above <Mathematical Formula 4>, the following <Mathematical Formula 7> can be generated.
[0063]
[0064] If the above <Mathematical Formula 5>, <Mathematical Formula 6>, and <Mathematical Formula 7> are combined and calculated, the garbled circuit ciphertexts G1 and G2 can be produced as in <Mathematical Formula 8> and <Mathematical Formula 9> below.
[0065]
[0066]
[0067] According to one embodiment, a processor of an electronic device may set A0, Δ, and β, and calculate A1 by the following <Mathematical Formula 10>.
[0068]
[0069] Next, the processor of the electronic device can generate the garbled circuit ciphertext G1 by substituting A0, A1, Δ, and β into the above <Mathematical Formula 8>.
[0070] According to one embodiment, a processor of an electronic device may set B0 and α, and calculate B1 by the following <Mathematical Formula 11>.
[0071]
[0072] Next, the processor of the electronic device can generate the garbled circuit ciphertext G2 by substituting B0, B1, Δ, and α into the above <Mathematical Formula 9>. The above-mentioned <Mathematical Formula 10> and <Mathematical Formula 11> may be referred to as free-XOR operations, but are not limited to the above term.
[0073] In one embodiment, a gobbler device (e.g., a first device) can transmit the generated garbled circuit ciphertexts G1 and G2 to an evaluator device (e.g., a second device).
[0074] According to one embodiment, the evaluator device can receive ciphertexts G1 and G2 transmitted from the gobbler device. The evaluator device can receive a random bit string A for inputs x, y. x , B y , G1, and G2 are substituted into the Gabbling equation of <Mathematical Formula 12> to obtain the result of the Gabbling equation (e.g., the second Gabbling equation) corresponding to the input values. ) can be created.
[0075]
[0076] The result of the above <Mathematical Formula 12> ( ) can correspond to C+(x+α)(y+β)Δ according to the aforementioned <Mathematical Formula 3>.
[0077] According to one embodiment, the evaluator device calculates the calculated result value ( ) can be transmitted to the Gabler device. The Gabler device can transmit the above result value ( ) can be received. The gable device can receive the received result value ( ) corresponds to C, the operation result of xy is judged to be 0, and the received result value ( ) corresponds to C+Δ, the operation result of xy can be determined as 1. According to one embodiment, the gobbler device can determine the operation result XY for X and Y, in which x and y are randomly masked by α and β, respectively, as 0 or 1.
[0078] Hereinafter, according to one embodiment, various embodiments of establishing a Gabbling equation by extending the corresponding operation to a generalized equation will be described.
[0079] In one embodiment, when constructing an arithmetic garbling circuit, its structure can freely support addition and multiplication by constants for arithmetic calculations on ring modulo integers (p). Other simple operations, exponentiations and multiplications, can be garbled using p-1 and 6p-5 ciphertexts, respectively. The cost of multiplication can later be reduced to 2p-2 based on the concept of half-gate methods. For arithmetic on relatively large integers, they can represent integers as tuples of integers modulo small primes using the Chinese remainder theorem (CRT), and then apply the above configuration to each prime factor module.
[0080] In the following embodiments, we describe a method for further reducing the cost of garbling arbitrary two-input polynomial gates. The following embodiments describe a garbling structure for arithmetic calculations. For example, the following embodiments may be based on the concept of algebraic garbling. The following embodiments may generalize the concept of algebraic garbling from the Boolean case to a finite field of prime factorization properties.
[0081] <Basic arithmetic calculations modulo p>
[0082] As a natural consequence of the embodiments, the structure described below can perform the following gates: addition, exponentiation, and multiplication (mod p) at costs of the size of the ciphertext, 0, p-1, and 2(p-1), respectively.
[0083] Also, F p Any auto-morphism for F (which is p ) can be garbled at the same cost as exponentiation, i.e., at the cost of (p-1) ciphertexts.
[0084] <Gabbling of arbitrary 2-input arithmetic gates>
[0085] In one embodiment, first, a polynomial F∈F p One can consider garbling a bivariate polynomial of the form F(X)Y for [X]. In one embodiment, this can be done by first applying a projection gate on F(X) (at a cost of (p-1) ciphertexts), then applying a multiplication gate to compute F(X)Y (at a cost of 2(p-1) ciphertexts), which can then be garbled into a 3(p-1) ciphertext.
[0086] Meanwhile, in one embodiment, the cost can be further reduced to 2(p-1)+ε (for some small ε>0). Consequently, Garbling a bivariate polynomial of the form can reduce the number of ciphertexts to about 2(p-1), a 25% reduction compared to conventional approaches.
[0087] Generalization of the Garbling equation
[0088] In one embodiment, most of the existing garbling structures can be formulated as equations called garbling equations. The garbling equations can be generalized from the garbling equations for binary fields for garbling Boolean circuits to the case of arbitrary prime fields for processing arithmetic circuits mod p.
[0089] <Application of dicing technique>
[0090] In one embodiment, for a structure of arbitrary polynomials, the evaluator can apply several linear combinations that depend on hidden private input values. The gobbler can obliviously transmit information about such linear combinations to the evaluator. This technique may be referred to as a dicing technique, but is not limited to this term. In one embodiment, the method can transmit the input values or whether they are transmitted without being exposed to the first device (110) and / or the second device (120) by an oblivious transfer (OT) method, but is not limited thereto.
[0091] Preliminaries
[0092] In one embodiment, a prime characteristic p and a bivariate polynomial ring F p Finite field F of [x, y] p can be processed. For example, the Boolean logical values {0, 1} can be considered as components of F2. The Boolean operations XOR / AND can be considered as addition / multiplication for F2, respectively. According to one embodiment, a vector and its entries can be represented as . The matrix can be represented as M in bold capital letters.
[0093] <Gabbling Technique>
[0094] In one embodiment, a garbling technique abstraction may be used. For example, the garbling technique may consist of the following algorithm.
[0095] - Gb: Input 1 κ For a circuit f, the output (F, e, e), where F is the garbled circuit, e is the encoding information, and d is the decoding information.
[0096] - En: For input (e, x), where e is as above and x is an input suitable for f, output the garbled input X.
[0097] - Ev: For input (F, X), output the garbled output Y.
[0098] - De: For input (d, Y), returns output y.
[0099] The gabling technique defined above is correct, and (F, e, d) ← Gb(1 κ , f), then this satisfies De(d, Ev(F, En(e, x))) = F(x) for all x.
[0100] The following description provides an overview of the construction and optimization of a garbling circuit (GC), according to one embodiment. Furthermore, the algebraic representation of the garbling circuit is briefly reviewed. In the embodiments described below, κ can be considered an operational security parameter.
[0101] <GC 구조에 대한 개요>
[0102] Most practical GC architectures focus on garbling Boolean circuits through a gate-by-gate structure. Consider a Boolean gate structured with two input wires a and b and one output wire c. To garble the gate, the gobbler can choose two κ-bit random wire labels A0 and A1 (B0 and B1, respectively) for the input wires a (and b, respectively). The gobbler secretly selects A α Wow A β There are some α, β ∈F p We know that it corresponds to the truth value 0 for another label, A 1+α and B 1+β are encoded values of truth value 1. The addition of the subscripts can be computed on F2. Bits α and β may be referred to as permute bits, but are not limited to the above terminology.
[0103] In one embodiment, depending on the hidden truth value, the evaluator may have one wire label for each input wire. For example, if the truth value of wire a is v ∈ F2, then A v+α can only be obtained. This can be done by receiving labels directly from the gobbler (if the gobbler knows v) or by using techniques such as silent transfer (if the evaluator knows v).
[0104] Point-and-permute
[0105] In one embodiment, a point-and-permute technique can be considered. Using this technique, the evaluator can know the subscripts of the wire labels he has. This means that the evaluator's input labels are A for any i, j ∈ F2. i Wow B j , it may mean that he knows the values of i and j. These values may be referred to as color bits. The color bits are often referred to as the least significant bits of the wire label, i.e. lsb (A i ) = i and lsb(B j ) = j. Therefore, the wire labels of each wire can be chosen so that their least significant bits are opposite to each other.
[0106] <free-xor>
[0107] In one embodiment, a free-XOR configuration may be considered. In this configuration, the gobbler may choose a global random secret offset Δ for the entire circuit. Instead of choosing them independently, the wire labels may be chosen such that A0+ A1= B0+ B1= Δ. Addition is Note that it is performed on , i.e., it is equivalent to the XOR operation. We can make free-XOR compatible with point-and-permute by choosing Δ such that lsb(Δ) = 1.
[0108] Then, with free-XOR, the evaluator can freely obtain the output label for the XOR gate by applying a simple XOR operation. To see why, for v = i + α and w = j + β, A i + B j = (A α + B β ) + (v + w)Δ. Note that v and w are the truth values for the input wires for the color bits (i, j) of the evaluator and the permutation bits (α, β) of the Gabler. The Gabler is A α + B β can be set as the output label encoding 0. Input (A i , B j ), the evaluator encodes A, which is the XOR result of v and w, v + w. i + B j = (A α + B β ) + (v + w)Δ can be calculated.
[0109] Garbled Circuit
[0110] By free-XOR, most practical GC constructions can focus on the garbled AND gate. We can examine the garbled circuit using free-XOR and point-and-permute. The garbler can set a κ-bit random string C as the output label corresponding to truth value 0. Then, the garbler can set all (i, j) ∈ F 2 For 2, G is defined as in <Mathematical Formula 13> below. i,j By calculating , four ciphertexts (e.g., Gabbling circuit ciphertexts) can be generated.
[0111]
[0112] In the above <Mathematical Formula 13>, H represents a random oracle that outputs a κ-bit string. Intuitively, the evaluator (i, j) ∈ F 2 If he holds (i, j) for 2, he uses his input as a one-time key for G i,j Decrypt and label the desired output You can get it.
[0113] Half-gate technique
[0114] In the half-gate garbling technique, a GC configuration for an AND gate with a 2κ-bit ciphertext can be obtained. By choosing the permutation bits (α, β), the garbler can set C := H(A0) + H(B0) + αβΔ as the output label for truth value 0. Then, two ciphertexts can be generated as G0:= H(A0) + H(A1) + βΔ and G1:= H(B0) + H(B1) + A0+ αΔ. Input A i and B j In the evaluator H(A i ) + H(B j ) + iG0+ jG1+ jA i By calculating , we can obtain the output label C + (i +α)(j + β)Δ.
[0115] Algebraic Gabbling
[0116] In one embodiment, the Gabbling method can be expressed as an algebraic equation, referred to as the Gabbling equation. Then, constructing a GC can be understood as finding an appropriate formula for the Gabbling equation.
[0117] For better understanding, let us give an example of a half-gate construction for an AND gate. For x, y ∈F2, H(A x ) = (x + 1)H(A0) + xH(A1) and H(B y ) = (y + 1)H(B0) + yH(B1), the behavior of the evaluator can be expressed as in <Mathematical Formula 14> below.
[0118]
[0119] If we rearrange the equation of the above <Equation 14> (since we are working on characteristic 2, X ∈ For X = -X), the following <Mathematical Formula 15> can be obtained.
[0120]
[0121] In fact, we can see that Gabler's choices C, G0, and G1 (coefficients on the left) are made such that the equality of the above equation holds for all x, y ∈ F2.
[0122] In general, it can be confirmed that most GC configurations have a Garbling equation of the form shown in <Mathematical Formula 16> below.
[0123]
[0124] Here, g is the target Boolean function. For the half-gate technique, g is an AND gate, i.e., a multiplication for F2, and M = [x+ 1 x y+ 1 y], V = [1 xy], r A = y and r B = can be 0.
[0125] The process of constructing a garbling technique can be performed in the following steps:
[0126] (1) First, a vector consisting of random oracle responses created by Gabler can be decided.
[0127] (2) Then, M can be set in a way that reflects which operation the evaluator will apply. Since the input of the evaluator depends on the color bits (x, y), M is can exist on [x,y]. In the example of the half-gate method, H(A x ) + H(B y ) to become You can choose.
[0128] (3) Extended by the elements of V V can be chosen such that the space of the top is identical to the space extended by M. For example, in the half-gate method, we have span(M) = span(V)= {A0+ A1+ A2y: A i ∈ } can be seen.
[0129] (4) The remainder of the equation can be determined to belong to span(V). In the previous example, we can check that y(A0+ xΔ) + (x + α) (y + β)Δ∈ span(V).
[0130] Once the Gabbling equation is constructed, the Gabbling algorithm can compare the coefficients on both sides of the equation to determine the output label and ciphertext. On the other side, the evaluator computes its input A i and B j Using (x, y) = (i, j) + W(G1,...,G s ) +W(G1, ..., G s ) T + r A A x + r B B y By evaluating , we can recover the desired output label. Here, W is a matrix satisfying V = [1||W]. Now, we have r so that the evaluator can perform the above calculation. A and r B We assume that all values depend only on the color bits. However, in one embodiment, in the main configuration, r A and r B We also need to consider the case where the permutation bits depend on the order of the values, which cannot be disclosed to the evaluator. This issue will be discussed later.
[0131] Free Addition / Point-and-Permute
[0132] In one embodiment, a garbling scheme can be provided for arithmetic circuits on a ring modulo. For example, it can provide a natural generalization of the free-XOR and point-and-permute techniques for Boolean circuits to any arithmetic circuit modulo p. For example, it is generally applicable to any integer p, but for mathematical convenience, we illustrate the case of primes. This generalization will be described in the following description.
[0133] <Free addition mode p>
[0134] For Booleans, it should be noted that each wire label carries a logical value in F2. For arithmetic operations on the modulus p, the wire labels can carry values in F. And wire labels can be represented as vectors of F rather than as strings of bits. i ∈ F p In this case, the encoding of i in wire a is W a i = W a 0 + iΔ p (Addition is F p can be set to ) where W a 0 and Δ p is F p can be random vectors for the value W a 0 is 0 ∈F p represents the encoding of . Similar to free-XOR, this generalization allows us to compute the addition modulo p from <Equation 17>.
[0135]
[0136] From now on, wire labels are λ p Dimension F p is represented as a vector for , where λ p := κ / log2(p). That is, the bit length of the wire label is κ. If it is clear from the context, the subscripts are omitted, and the vectors are instead It can be simply represented as components in .
[0137] Points and Permutes
[0138] In a generalization of the point-and-permute technique, color digits / permute digits may be considered instead of bits, depending on one embodiment. More specifically, in one embodiment, the color digit may be defined as the last component of a wire label. This value may be denoted as color(W) for a wire label W. In the case of a Boolean, color(W) = lsb(W) may be used.
[0139] In free-addition using point-and-permute settings, the global pre-addition offset Δ p is color(Δ p ) = 1 ∈F p This can be selected to be so. This can be expressed as in <Mathematical Formula 18> below.
[0140]
[0141] For example, the color digits on the wire label are F p can be assigned by a random circular motion of . According to one embodiment, the truth value 0 ∈F p Define the permutation number as the color digit of the wire label corresponding to , i.e., α := color(W a 0 ) represents the permutation bits in the wire, and similarly β := color(W b 0 ) represents the permutation bits in the wire. Once the permutation digits are fixed, we have A x := W a x-α and B y := W b y-β Also, for all x,y ∈F p About color(A x ) = x and color(B y ) = y. Therefore, as a free-XOR setup, we can assume that the subscript (or color digit) of the wire label is known to the evaluator. However, it should be noted that the color digit assigned to the encoding of 0 is known only to the gobbler.
[0142] Hereinafter, a concept for efficient gabbling of an arithmetic circuit according to an embodiment will be described. In the above description, an efficient gabbling technique for Boolean gates was examined and an algebraic gabbling method for constructing a gabbling circuit using a gabbling equation was described. These techniques are for Boolean gates and may require appropriate modifications when applied to the target arithmetic circuit. In the following description, a method for constructing a gabbling equation for an arithmetic circuit defined for a prime field will be discussed. In addition, some of the coefficients of the gabbling equation must be randomized for security purposes during this process, and a randomization method will be discussed. In addition, if the input label is A x and B y As a target circuit, we consider an arithmetic circuit of a prime field, where x and y can each be color digits. As mentioned above, pre-addition and point-and-permute settings are also assumed in the embodiments described below.
[0143] Generalization of the Garbling equation
[0144] Let's recall the process of obtaining the Gabbling equation for a Boolean gate. In the evaluator's behavior, the output label C + g(x + α, y + β)Δ is obtained as an appropriate linear combination of the random oracle response and the input label, where g corresponds to the target circuit. This linear combination depends on the color bits possessed by the evaluator, and the equation for the color bits x and y representing this relationship can be expressed as in <Mathematical Equation 16> described above.
[0145] As described above, according to one embodiment, the configuration of the above <Mathematical Formula 16> It starts by determining , and then M and V can be naturally selected accordingly. The input of the random oracle consists of the input labels of the garbled circuit, and the number of columns of M and V can vary depending on how the input is applied. M is Since we determine which items of are included in the linear combination, and the evaluator can only control the items corresponding to the color bits, M can be composed of a polynomial whose value is 1 in the bit corresponding to that item and 0 otherwise. For example, In H(A i ) is included, M can contain x + 1 and x for H(A0) and H(A1), respectively. Then, V is chosen such that span(M) = span(V), and r A and r B can be chosen so that the remainder of the equation falls within span(V).
[0146] Now, let us extend the Gabbling equation to the case of arithmetic circuit modulo p, following this process. Here, p can be any prime integer with p≥3. The output label C + g(x + α, y + β)Δ obtained by the evaluator is F p Since it is a vector of the upper part, if <Mathematical Formula 16> is expanded, it can be expressed as <Mathematical Formula 19> below.
[0147]
[0148] Here, g is the target arithmetic circuit modulus, and all operations can be performed on the modulus p. Once it is decided which arbitrary oracle query to perform, the vector , and then M and V can be naturally designated from it. The most important thing in is how the random oracle input for each item is applied and how M and V are determined accordingly. As in the binary case, the evaluator can only control the items corresponding to his color digit, so M must be a polynomial that is 1 for the digit corresponding to the item and 0 otherwise. It is easy to see that the polynomial defined as follows satisfies these properties.
[0149] (Definition 1)
[0150] F p The Lagrange basis for polynomials is the set of polynomials , and can be defined as <Mathematical Formula 20> below.
[0151]
[0152] Here, ℓ for x = i i (x) = 1, otherwise, ℓ i Note that (x) = 0.
[0153] = (H(A0),..., H(A p-1 )) Then, we have M= Take , and therefore Obtain. For color digit i, is H(A) at x = i i ) is evaluated. Also, span(M) =F p From the fact that [x], we have F p Using the standard q basis of [x], V = [1 x . . . x p-1 ] can be set.
[0154] Hereinafter, according to one embodiment, various embodiments of configuring a garbled circuit according to a target operation circuit will be described. The embodiments described below are r A and r B The process of finding will be illustrated with examples. To facilitate understanding, p=3 is assumed in the examples described below.
[0155] <Example 1: Exponentiation>
[0156] The target circuit is g(x) = x 2 We can consider the case where the evaluator has an input label A with a color digit x. x can have. Then, the Gabbling equation can be expressed as <Mathematical Formula 21> below.
[0157]
[0158] In one embodiment, since g is a one-variable function, = (H(A0), H(A1), H(A2)). Also, we have M= [l0(x) l1(x) l2(x)] = [2x 2 + 1 2x 2 + 2x 2x 2 +x] and V= [1 xx 2 ] can be set to (x + α) 2 already span(V) =F p Since it is in [x], r A = r B = can be set to 0. Then, the Gabbling equation can be expressed as <Mathematical Formula 22> below.
[0159]
[0160] In one embodiment, the garbler may select G1 and G2 as output labels C and ciphertext (e.g., garbled circuit ciphertext) as in <Mathematical Formula 23> below.
[0161]
[0162] And, the evaluator can obtain the output label of <Mathematical Formula 24> below.
[0163]
[0164] Here, x is a color digit. To garble an exponent circuit g, a ciphertext of p-1 = 2 may be required. In fact, any 1-input arithmetic circuit g(x) = F p [x] is also the same It is easy to see that it can be garbled, and even in this case the number of ciphertexts required is p-1.
[0165] <Example 2: Multiplication>
[0166] In one embodiment, the evaluator inputs labels A each having color digits x and y. x and B y We can consider the case of g(x, y) = xy. Since g is a two-variable function, it can be set as in <Mathematical Formula 25> below.
[0167]
[0168] In the term (x + α)(y + β)Δ, only xyΔ does not belong to span(V). Therefore, r A = y and r B = xyΔ can be eliminated by setting it to 0. Then, the Gabbling equation can be expressed as <Mathematical Formula 26> below.
[0169]
[0170] In one embodiment, the gable compares coefficients C and G i By selecting the field, the evaluator can obtain the output label as in <Mathematical Formula 27>.
[0171]
[0172] In this case, 2(p-1) = 4 ciphertexts may be needed to garble the multiplication circuit.
[0173] <Example 3: g(x, y) = x 2 y 2 >
[0174] Input labels A, each with color digits x and y, are evaluated by the evaluator. x and B y g(x, y) = x with 2 y 2 We can consider the case of .
[0175] According to one embodiment, the same as the above-described embodiment 2 , we can garble this circuit using M and V. Then, the right side of the above-mentioned <Equation 19> becomes span(V) = F p [x] +F p [y] must belong to. Since A0, B0, and Δ are chosen independently, the polynomial r A , r B and r A x + r B y - (x + α) 2 (x + β) 2 must be within span(V). However, r A Since ∈ span(V), xy 2 -cannot contain an element. Similarly, r B In x 2 Since it cannot include the y-term, r A x + r B y is (x + α) 2 (x + β) 2 in x 2 y 2 cannot be deleted. In conclusion, If the circuit consists of only one oracle with one input, it can be seen that this circuit cannot be garbled at once.
[0176] In fact, F p For every arithmetic circuit in [x, y], H(A i , B j ) consisting of We can garble this circuit by constructing a garble equation with . In this case, M is , and r A = r B = 0 can be constructed. For example, the above Gabbling equation is p 2 -1 ciphertext may be required. For efficiency, we can perform sequential garbling using a 1-input random oracle instead of this approach using a 2-input random oracle. The target circuit is 2≤m,n. <p에 대해 g(x, y) = x m y n If , we have three gabblings, namely, x m , y n and their multiplication can be performed. In this case, 4(p-1) ciphertexts are required to garble g(x, y), which is p when using a 2-input random oracle. 2 -It is more efficient than requiring only one ciphertext. Furthermore, we propose a method to reduce this complexity in the following description.
[0177] Private Component Garbling
[0178] In one embodiment, the evaluator must be able to evaluate the Gabbling equation on the color digits it has, since it uses the color digits to compute the output label. In the example of the previous section, V, , r A and r B Since V and M can be evaluated from color digits without additional information, the same is true for the Gabbling equation. However, there may be cases where the evaluator cannot evaluate the Gabbling equation with only the given information. Even if V and M are configured to be evaluated by the evaluator, r A and r B should serve to offset the parts of g(x + α, y + β) that do not belong to span(V), which may contain α and β that the evaluator does not have input access to.
[0179] In this case, additional information needs to be provided to enable the evaluator to evaluate the Gabbling equation. The following examples describe methods for addressing this issue.
[0180] In one embodiment, the evaluator inputs labels A each having color digits x and y. x and B y Arithmetic circuit g(x, y) = x 2 We can consider the case of y. According to one embodiment, the same as the aforementioned embodiment 2 , we can garble this circuit using M and V. (x + α) 2 (y + β)Δ ∈ (x 2 + 2αx)yΔ + span(V) and (x 2 + 2αx)yΔ is not within span(V), so this term is r A and r B should be deleted using. Therefore, according to one embodiment, r A = 0 and r B = x 2 By setting + 2αx (x 2 + 2αx)yΔ can be deleted. Accordingly, the Gabbling equation can be expressed as <Mathematical Formula 28> below.
[0181]
[0182] The evaluator calculates the output label C+(x + α) by calculating the following <Mathematical Formula 29> 2 We can obtain (y + β)Δ.
[0183]
[0184] For this evaluation, r B = x 2 + Information about 2αx must be provided to the evaluator, and information about α must not be exposed to the evaluator. Therefore, if Gabler provides r to the evaluator without exposing α, B You may need a way to provide .
[0185] As a way to solve this problem, the evaluator r A and r B r in color digits without knowing A and r B One could consider an approach that allows obtaining only the evaluation values of . This could be similar to the principle of the Gabbling circuit, so that the Gabbling equation can be used instead of g(x, y) , with r A and r B We present an approach to garbling. Since the output obtained is an evaluation value of 1 digit, rather than a λ digit output label, as in the case of a garbled circuit, we use a random oracle H' that returns 1 digit. can be configured.
[0186] According to one embodiment, r A and r B must be within span(V) from the fact that A0, B0, and Δ are chosen independently. Therefore, r A The Gabbling equation for, according to one embodiment, is It can be expressed as <Mathematical Formula 30> below.
[0187]
[0188] In one embodiment, the gobbler uses this equation to generate a relatively short ciphertext can be calculated and provided to the evaluator. The evaluator can Using polynomial r A You can get the evaluation value from the color digit other than r B A similar method can be applied to the gabbling process.
[0189] One important thing to consider, according to one embodiment, is r A and r B This should be randomly assigned. Polynomial r A (x, y) ∈F p If [x, y] contains α or β in its coefficients, then it is (x, y, α, β) ∈F p can be considered as a polynomial in [x, y, α, β]. Even if the evaluator does not know α and β and thus cannot access them, If you know, r obtained using A α and β can also be found using the evaluation values of . For example, if the evaluator does not even know α, then r A (x) = (x +α) 2 We can assume that the evaluator knows that Calculate the evaluation value r from the color digit x A can obtain the evaluation value of (x + β). Then, the evaluator can obtain the evaluation value of (x + β) 2 = From c, we can find β. Therefore, r A and r B It must be randomly assigned while satisfying the conditions of the Gabbling equation setting. For better understanding, the following examples are described.
[0190] According to one embodiment, in the above-described embodiment, r B should be gobbled up. As mentioned above, if r B (x) = x 2 + 2αx, the evaluator evaluates the value c = x 2 + 2αx can be obtained, and therefore α = (cx 2 ) / 2x can also be obtained. r B To randomize , some suitable h(x, y) ∈F unknown to the evaluator p r for [x, y] B = x 2 + 2αx + h(x, y) can be set. r B and r B yg(x + α, y + β) must still be within span(V). We can obtain h(x, y) = y, which satisfies the above condition. The random oracle H' can output 1 digit and can be expressed as <Equation 31> below.
[0191]
[0192] According to the above <Mathematical Formula 31>, the Gabbling equation for Gabbling rB can be expressed as <Mathematical Formula 32> below.
[0193]
[0194] In the above <Mathematical Formula 32>, Gabler It can be calculated as in <Mathematical Formula 33>.
[0195]
[0196] And, the evaluator is r as in <Mathematical Formula 34> below B can be obtained.
[0197]
[0198] Each r A or r B Additional gabbling for may only require 2p-1 digit ciphertext. As mentioned above, X m Y n Gabbling requires 4(p-1) ciphertexts, i.e., it takes a communication complexity of 4(p-1)λ-digits. On the other hand, according to the above-described embodiment, Z = X m and Z=Y n It only requires performing two gablings. In this case, it can have a communication complexity of 3(p-1)λ + 2(2p-1)-digits.
[0199] Arithmetic Circuit Gabbling: Prime Modulus
[0200] In the embodiments described below, the configuration of a garbled circuit for a prime modulus p is described. First, a garbled equation for a target computational circuit can be established. Next, a garbler can compare coefficients of the garbled equation to obtain a ciphertext (e.g., a garbled circuit ciphertext) and provide it to an evaluator. Finally, the evaluator can use the ciphertext to evaluate the garbled equation for color digits. If necessary, additional garbled may be required for some portions of the garbled equation, as described above.
[0201] In the following description, we will explain the Gabbling equations for various types of circuits.
[0202] <Establishing the Garbling Equation>
[0203] Since the number of ciphertexts increases significantly when using a 2-input random oracle, in one embodiment, a 1-input random oracle is used. can be configured. M and V can also be configured using the Lagrangian basis and the standard basis, respectively, as described above. For a two-variable circuit g(X, Y), it can be set as in <Mathematical Formula 35> below.
[0204]
[0205] Then, r suitable for the target circuit A and r B By finding the Gabbling equations, the Gabbling equations can be established. For example, the Gabbling equations can be provided for various types of circuits, such as:
[0206] Addition / Constant Multiplication
[0207] For these circuits, the Gabbling equation may not be needed, since we use the free addition and point-and-permute settings for the modulus p as described above. In this setting, we have A i = A0+ iΔ, B j = B0+ jΔ can be set. In addition mode, the output label is just A i + B j = C0+ (i + j)Δ, where C0= A0+ B0. Similarly, when multiplying by a non-zero constant c mod p, the output label is cA i = C0+ ciΔ, where C0= cA0.
[0208] <Fan-in-1을 갖는 회로>
[0209] For the target circuit with Fan-in-1, the Gabbling equation is F p [X] or F p It can only be set in [Y]. If the target circuit is g(X), it can be set as in <Mathematical Formula 36> below.
[0210]
[0211] In one embodiment, g(X +α) already span(V) =F p Since it is in [X], r A = r B = can be set to 0. Then, the Gabbling equation can be set as in <Mathematical Formula 37> below.
[0212]
[0213] This may require p-1 ciphertexts to garble g(X).
[0214] Multiplication circuit
[0215] According to one embodiment, , M and V can be set as described above, and the Gabbling equation can be set as in <Mathematical Formula 38> below.
[0216]
[0217] Here, = (G1, ..., G 2(p-1) ) can be. In the term (X + α) (Y + β)Δ, only Δ does not belong to span(V). Therefore, we have r A = Y and r B = 0 can be set to eliminate Δ. Then, the Gabbling equation can be expressed as <Mathematical Formula 39> below.
[0218]
[0219] This may require 2(p-1) ciphertexts to garble the multiplication circuit.
[0220] <s(X)Y + Xt(Y)>
[0221] Polynomial r in the Gabbling equation A , r B and r A X + r B Y - g(X, Y) must be within span(V) since A0, B0, and Δ are chosen independently. , if M and V are used as 4, r A Wow r B must be a polynomial of the form r1(X) + r2(Y).
[0222] Official Description
[0223] Below we present a formal description of the gabbling structure.
[0224] Circuit
[0225] Let the topological order of inputs and gates be chosen to represent a circuit f = (input, output, in, eval). Let input be the number of inputs, and |f| be the total number of inputs and gates. That is, there can be (|f| - input) gates in the circuit. Each gate can be indexed by an integer g ∈ [input + 1, |f|]. Gate g has one or two inputs, depending on its type. The input(s) to gate g can be indexed as in1(g) and in2(g) if it uses two inputs, or in1(g) if g has only one input. We can consider four types of gates, denoted by eval(g), each of which can be set as follows (all defined modulo p):
[0226] - EVAL P : X → P(X), a 1-input gate that outputs the evaluation of the polynomial P(X) given the input.
[0227] - ADD: (X, Y) → X + Y, a 2-input gate that adds the given inputs
[0228] - MUL: (X, Y) → XY, a 2-input gate that multiplies the given inputs
[0229] - EnM s,t : (X, Y) → Ys(X) + Xt(Y), two polynomials s, t ∈F p A 2-input gate parameterized by [X]. (X, Y) ∈F 2 p If we take as input, Ys(X) + Xt(Y) ∈F p Returns .
[0230] <Structure according to the embodiment>
[0231] The structure according to the above-described embodiment can be implemented as shown in to below.
[0232]
[0233]
[0234]
[0235]
[0236]
[0237] Referring to the above to , according to one embodiment, the gobbler is a random λ-dimensional vector W having the lowest digit 0. k can be selected. Also, the point-and-permute digit π k can be obtained. μ∈F p The kth wire label encoding W k + (μ+π k ) can be designated as Δ. That is, W k is the operation value -π k This is the wire label corresponding to .
[0238] In one embodiment, span(V) depends on the number of inputs to gate g. or It can be eval(g) = EVAL P In the case of the former, = H(A x ) and r A = r B = 0 so that M and can be set. Therefore, when <Equation 19> is evaluated at x = i, a result similar to <Equation 40> below can be produced.
[0239]
[0240] Similarly, when running for i from 0 to p-1, it can be expressed as in <Mathematical Formula 41> below.
[0241]
[0242] In the above <Mathematical Formula 41>, V p is a Vandermonde matrix of p of the same degree as in <Mathematical Formula 42> below.
[0243]
[0244] From the equation of the above <Mathematical Formula 42>, Gabler is V p -1 is a vector (···, H(A) i ) + P(i)Δ, ···) T Multiply by C and G i Can induce hearing.
[0245] In one embodiment, eval(g)≠ EVAL P In the latter case, the Gabbling equation can be expressed as a bivariate polynomial. The bivariate polynomial appearing on the right side of the aforementioned <Equation 19> is F(x, y) ∈ can be expressed as . Each i, j ∈F p For , we can consider the evaluation at (x, y) = (i, 0) or (0, j). This can lead to considering a univariate equation of the form of either <Equation 43> or <Equation 44> below.
[0246]
[0247]
[0248] Similarly to before, this can be re-expressed as <Mathematical Formula 45> below.
[0249]
[0250] Here, the Vandermonde matrix V p,biv The two-variable version of can be expressed as in <Mathematical Formula 46>.
[0251]
[0252] Here, 0 p-1 is a square zero matrix of dimension p-1, is V p is a submatrix obtained by removing the first row and first column from V. We have p,biv We can verify that is an invertible matrix of dimension 2p-1. As before, the Gabler is V -1 p,biv to vector(···, F(i, 0), ···, F(0, j), ···) T By applying to C and G i You can calculate them.
[0253] As mentioned above, in some cases, several components of the gabbling equation must also be gabbled. To be precise, eval(g) = EnM s,t In this case, the gable is r A and r B We need to add a ciphertext of a certain size that encodes information about H. For this purpose, we need to perform additional queries to a random oracle. However, to avoid unnecessary additional calls to H, we assume that the range of H is r A and r B We assume that r is expanded by the amount required to garble it. We A and r B For each gabbling of F p - Since the element is needed, H can be set to have a range of . In one embodiment, F p - Since the vector is written in big endian order, It could be. Here, msd λ and lsd2 represent the most significant digit of λ and the two least significant digits, respectively. Then, concatenation is used to generate the main ciphertext and an additional constant-sized ciphertext. The Gabbling equations for can be set as in <Mathematical Formula 47>.
[0254]
[0255] Here, , where i (respectively j) can range from 0 (respectively 1) to 1. And, φ is F(x, y) = H(A x ) + H(B y ) can be defined as a polynomial such as φ(x, y). Therefore, , and are vectors obtained by evaluating each polynomial in the operation for (i, 0) and (0, j).
[0256] In the above description, we omitted tweaks in H for simplicity, but a formal description could include modifications based on gate indices for domain separation, such as H(A, 2g-2) and H(B, 2g-1).
[0257] In one embodiment, the evaluator in the Ev algorithm may start with input wire labels. For each gate k, the evaluator may E k can perform appropriate operations to compute x. Ultimately, x k Active wire label E corresponding to k will hold. Here, x k may be the basic arithmetic value of the wire.
[0258] Security Proofs
[0259] Hereinafter, the security of the structure according to the above-described embodiments can be proven. The structure according to the above-described embodiments may require a hash function with a property called circular correlation robustness (CCR). For example, most free-XOR-based structure may rely on the CCR property (or its variants) for security. One relevant definition in this context is the tweakable CCR (TCCR), which is briefly mentioned here.
[0260] Circular Correlation Robustness (CCR)
[0261] Let H be the hash function and oracle O H Δ We can define (X, g, b) := H(X + Δ, g) + bΔ where X, Δ ∈ , b ∈ F2, and g can be any string. Under the condition that the attacker does not repeat a single pair (X, g) for the oracle query, O H Δ If H is indistinguishable from a random oracle, then H can be referred to as a TCCR. For example, the security of the half-gate technique can be proven under the assumption that H is TCCR.
[0262] Since the structure according to the above-described embodiment aims at the gabbling of an arithmetic circuit, a modified definition of TCCR can be used as follows. For example, the above-described embodiments consider the domain / range of H for the ring modulo p.
[0263] In one embodiment, H is a hash function mapping {0, 1} to some set of tweaks T. n × T → {0, 1} n can be set to . For an n-bit string, for an appropriate choice of prime number p and integer λ, It can be assumed that it can be expressed as an element of Oracle O H Δ can be expressed as <Mathematical Formula 48> below.
[0264]
[0265] Here, X, Δ ∈ and a, b ∈F p , and g ∈ T. The addition operation is It can be performed on the top.
[0266] In one embodiment, Oracle O H Δ A hash function H is said to be modulus-tunable circular correlation robust (Mod-TCCR) if it is distinguishable from a random oracle for all polynomial-time adversaries querying for a≠0 and unique g. In one embodiment, the following assumptions may be used.
[0267] (Basic) Modulus-TCCR Definition: (X + aΔ, τ) + bΔ is random for a,b ∈ Z.
[0268] (RR variant) Modulus-RTCCR Definition: H is taken from the family, and the description of H can be disclosed to the other party after executing all oracle queries.
[0269] (GKWY variant) Define Modulus-TCCR for naturally derived keys: extending the definitions above and the "natural sequences" of the GKWY paper.
[0270] For simplicity, we will only consider the "basic" definition, which can be relaxed to RR or GKWY depending on the implementation.
[0271] In one embodiment, the Mod-TCCR assumption can be applied if each row of the inverse of the Vandermonde matrix has at least two non-zero elements.
[0272] The aforementioned embodiments can be utilized in operations known as secure multiparty computation (SMC) or secure function evaluation (SFE), which are problems of computing a function with private key input. Furthermore, garbled circuits can be used to provide solutions to important problems in various areas, including IP protection (evaluating a function without knowing what the function is), healthcare (analyzing medical records without disclosing them), biometrics (comparing biometric information without disclosing it), private database-as-a-service (query hosting and processing customer data hidden from the processor), and cloud-based machine learning (protecting proprietary models from customers and sensitive customer data from the processor).
[0273] An electronic device according to one embodiment includes a memory, a communication circuit, and a processor electrically connected to the memory and the communication circuit, wherein the processor is configured to verify at least one garbled circuit ciphertext generated based on a garbled equation set corresponding to a target operation from the memory, transmit the verified at least one garbled circuit ciphertext to an evaluator device through the communication circuit, receive a first result value of the garbled equation corresponding to at least one input value from the evaluator device through the communication circuit, and verify a second result value of the target operation corresponding to the at least one input value based on the first result value.
[0274] According to one embodiment, the garbling equation may be set based on the number of at least one variable included in the target operation and a domain for the at least one variable.
[0275] According to one embodiment, the Gabbling equation may be set based on the degree of at least one variable included in the target operation.
[0276] According to one embodiment, the first result value may be generated by the evaluator device based on the at least one garbled circuit ciphertext.
[0277] According to one embodiment, the processor may be configured to receive the at least one input value from the evaluator device, generate a random bit string of a set number of bits based on the received at least one input value, and transmit the generated random bit string to the evaluator device.
[0278] According to one embodiment, the at least one garbled circuit ciphertext may be generated based on coefficients included in the garbled equation.
[0279] According to one embodiment, if the target operation is a multiplication operation of x and y, the Gabbling equation may correspond to the following <Mathematical Formula 49>.
[0280]
[0281] Here, x, y are input values, C, G1, G2 are coefficients of the Gabbling equation, M is a matrix set to output 1 when each input value is 0, is a hash vector corresponding to each input value, α and β are the permutation bits of the Gabler, and Δ is a variable for offset.
[0282] According to one embodiment, the at least one garbled circuit ciphertext may include the G1 and the G2.
[0283] According to one embodiment, if the target operation is a square operation of x, the Gabbling equation may correspond to the following <Mathematical Formula 50>.
[0284]
[0285] Here, x is the input value, C, G1, G2 are the coefficients of the Gabbling equation, M is a matrix set to output 1 when each input value is 0, is a hash vector corresponding to the input value, α is the permutation bit of the Gabler, and Δ is a variable for offset.
[0286] According to one embodiment, the at least one garbled circuit ciphertext may include the G1 and the G2.
[0287] According to one embodiment, a method of operating an electronic device may include a method of performing an encrypted operation in an electronic device, the method including: verifying at least one garbled circuit ciphertext generated based on a garbled equation set corresponding to a target operation; transmitting the verified at least one garbled circuit ciphertext to an evaluator device; receiving a first result value of the garbled equation corresponding to at least one input value from the evaluator device; and verifying a second result value of the target operation corresponding to the at least one input value based on the first result value.
[0288] According to one embodiment, the garbling equation may be set based on the number of at least one variable included in the target operation and a domain for the at least one variable.
[0289] According to one embodiment, the Gabbling equation may be set based on the degree of at least one variable included in the target operation.
[0290] According to one embodiment, the first result value may be generated by the evaluator device based on the at least one garbled circuit ciphertext.
[0291] According to one embodiment, the method may further include receiving at least one input value from the evaluator device, generating a random bit string of a set number of bits based on the received at least one input value, and transmitting the generated random bit string to the evaluator device.
[0292] According to one embodiment, the at least one garbled circuit ciphertext may be generated based on coefficients included in the garbled equation.
[0293] According to one embodiment, if the target operation is a multiplication operation of x and y, the Gabbling equation may correspond to the following <Mathematical Formula 51>.
[0294]
[0295] Here, x, y are input values, C, G1, G2 are coefficients of the Gabbling equation, M is a matrix set to output 1 when each input value is 0, is a hash vector corresponding to each input value, α and β are the permutation bits of the Gabler, and Δ is a variable for offset.
[0296] According to one embodiment, the at least one garbled circuit ciphertext may include the G1 and the G2.
[0297] According to one embodiment, if the target operation is a square operation of x, the Gabbling equation may correspond to the following <Mathematical Formula 52>.
[0298]
[0299] Here, x is the input value, C, G1, G2 are the coefficients of the Gabbling equation, M is a matrix set to output 1 when each input value is 0, is a hash vector corresponding to the input value, α is the permutation bit of the Gabler, and Δ is a variable for offset.
[0300] According to one embodiment, the at least one garbled circuit ciphertext may include the G1 and the G2.
[0301] Electronic devices according to the various embodiments disclosed in this document may take various forms. Electronic devices may include, for example, portable communication devices (e.g., smartphones), computer devices, portable multimedia devices, portable medical devices, cameras, wearable devices, or home appliances. Electronic devices according to the embodiments of this document are not limited to the aforementioned devices.
[0302] The various embodiments of this document and the terminology used therein are not intended to limit the technical features described in this document to specific embodiments, but should be understood to include various modifications, equivalents, or substitutes of the embodiments. In connection with the description of the drawings, similar reference numerals may be used for similar or related components. The singular form of a noun corresponding to an item may include one or more of the items, unless the context clearly indicates otherwise. In this document, each of the phrases "A or B", "at least one of A and B", "at least one of A or B", "A, B, or C", "at least one of A, B, and C", and "at least one of A, B, or C" can include any one of the items listed together in the corresponding phrase among those phrases, or all possible combinations thereof. Terms such as "first," "second," or "first" or "second" may be used merely to distinguish one component from another, and do not limit the components in any other respect (e.g., importance or order). When a component (e.g., a first component) is referred to as "coupled" or "connected" to another (e.g., a second component), with or without the terms "functionally" or "communicatively," it means that the component can be connected to the other component directly (e.g., wired), wirelessly, or through a third component.
[0303] The term "module" used in various embodiments of this document may include a unit implemented in hardware, software, or firmware, and may be used interchangeably with terms such as logic, logic block, component, or circuit. A module may be an integral component, or a minimum unit or part of such a component that performs one or more functions. For example, according to one embodiment, a module may be implemented in the form of an application-specific integrated circuit (ASIC).
[0304] Various embodiments of the present document may be implemented as software (e.g., a program (140)) including one or more instructions stored in a storage medium (e.g., an internal memory (136) or an external memory (138)) readable by a machine (e.g., an electronic device (101)). For example, a processor (e.g., a processor (120)) of the machine (e.g., an electronic device (101)) may call at least one instruction among the one or more instructions stored from the storage medium and execute it. This enables the machine to operate to perform at least one function according to the at least one called instruction. The one or more instructions may include code generated by a compiler or code executable by an interpreter. The machine-readable storage medium may be provided in the form of a non-transitory storage medium. Here, 'non-transitory' simply means that the storage medium is a tangible device and does not contain signals (e.g., electromagnetic waves), and the term does not distinguish between cases where data is stored semi-permanently or temporarily on the storage medium.
[0305] According to one embodiment, the method according to various embodiments disclosed in this document may be provided as included in a computer program product. The computer program product may be traded as a product between a seller and a buyer. The computer program product may be distributed in the form of a machine-readable storage medium (e.g., compact disc read-only memory (CD-ROM)), or may be distributed online (e.g., downloaded or uploaded) through an application store (e.g., Play Store™) or directly between two user devices (e.g., smart phones). In the case of online distribution, at least a portion of the computer program product may be temporarily stored or temporarily generated in a machine-readable storage medium, such as the memory of a manufacturer's server, an application store's server, or an intermediary server.
[0306] According to various embodiments, each component (e.g., a module or a program) of the above-described components may include one or more entities, and some of the entities may be separated and placed in other components. According to various embodiments, one or more components or operations of the aforementioned components may be omitted, or one or more other components or operations may be added. Alternatively or additionally, a plurality of components (e.g., a module or a program) may be integrated into a single component. In such a case, the integrated component may perform one or more functions of each of the plurality of components identically or similarly to those performed by the corresponding component among the plurality of components prior to the integration. According to various embodiments, the operations performed by a module, program, or other component may be executed sequentially, in parallel, iteratively, or heuristically, or one or more of the operations may be executed in a different order, omitted, or one or more other operations may be added.
Claims
1. In electronic devices, memory; Communication circuit; and A processor electrically connected to the above memory and the above communication circuit; The above processor, Verify from the memory at least one garbled circuit ciphertext generated based on a garbled equation set corresponding to the target operation, Transmitting at least one of the above-described garbled circuit ciphertexts to the evaluator device through the communication circuit, Receiving a first result value of the Garbling equation corresponding to at least one input value from the evaluator device through the communication circuit, An electronic device configured to check a second result value of the target operation corresponding to at least one input value based on the first result value.
2. In the first paragraph, the Garbling equation is, An electronic device, wherein the number of at least one variable included in the target operation and the domain for the at least one variable are set based on the number of at least one variable included in the target operation.
3. In the first paragraph, the Garbling equation is, An electronic device, which is set based on the degree of at least one variable included in the above target operation.
4. In the first paragraph, the first result value is, An electronic device, generated by said evaluator device based on said at least one garbled circuit ciphertext.
5. In the first paragraph, the processor, Receiving at least one input value from said evaluator device, Generate a random bit string of a set number of bits based on at least one input value received above, An electronic device configured to transmit the generated random bit string to the evaluator device.
6. In the first paragraph, at least one garbled circuit ciphertext is, An electronic device generated based on the coefficients included in the above Garbling equation.
7. In paragraph 1, if the target operation is a multiplication operation of x and y, The above Gabbling equation corresponds to the following mathematical equation, an electronic device. Here, x, y are input values, C, G 1 , G 2 is the coefficient of the Garbling equation, M is a matrix set to output 1 when each input value is 0, is a hash vector corresponding to each input value, α and β are the permutation bits of the Gobbler, and Δ is a variable for offset.
8. In the 7th paragraph, at least one garbled circuit ciphertext is, Above G 1 and the above G 2 An electronic device comprising:
9. In paragraph 1, if the target operation is a square operation of x, The above Gabbling equation corresponds to the following mathematical equation, an electronic device. Here, x is the input value, C, G 1 , G 2 is the coefficient of the Garbling equation, M is a matrix set to output 1 when each input value is 0, is a hash vector corresponding to the input value, α is the permutation bit of the Gabler, and Δ is a variable for offset.
10. In the 9th paragraph, at least one garbled circuit ciphertext is, Above G 1 and the above G 2 An electronic device comprising:
11. A method for performing encrypted operations on an electronic device, An operation of verifying at least one garbled circuit ciphertext generated based on a set of garbled equations corresponding to a target operation; The operation of transmitting at least one of the verified garbled circuit ciphertexts to an evaluator device; An operation of receiving a first result value of the garbling equation corresponding to at least one input value from the evaluator device; and A method for performing an encrypted operation in an electronic device, comprising: an operation of checking a second result value of the target operation corresponding to at least one input value based on the first result value.
12. In the 11th paragraph, the Garbling equation is, A method for performing an encrypted operation on an electronic device, the method being set based on the number of at least one variable included in the target operation and a domain for the at least one variable.
13. In the 11th paragraph, the Garbling equation is, A method for performing an encrypted operation in an electronic device, the method being set based on the order of at least one variable included in the target operation.
14. In the 11th paragraph, the first result value is, A method for performing an encrypted operation in an electronic device, wherein the encrypted operation is generated by the evaluator device based on at least one garbled circuit ciphertext.
15. In paragraph 11, the method, An operation of receiving at least one input value from said evaluator device; An operation for generating a random bit string of a set number of bits based on at least one input value received above; and A method for performing an encrypted operation in an electronic device, further comprising the action of transmitting the generated random bit string to the evaluator device.
Citation Information
Patent Citations
Input consistency verification for two-party secure function evaluation
KR1020150048827A
Privacy-preserving ridge regression
KR1020150143423A
A method and system for privacy preserving matrix factorization
KR1020160041028A
Method for securing a transaction from a non-secure terminal
KR1020180037254A
Remote terminal unit and Remote terminal unit system
KR1020210126371A
