Optimizing constant-round secure multiparty computation protocols
Patent Information
- Application Number
- JP2024519968
- Authority / Receiving Office
- JP · JP
- Patent Type
- Patents
- Current Assignee / Owner
- Priority Date
- 2022-11-02
- Filing Date
- 2023-10-31
- Publication Date
- 2024-10-25
- Estimated Expiration
- 2043-10-31
Smart Images

Figure 0007573333000207 
Figure 0007573333000208 
Figure 0007573333000209
Abstract
Description
[Technical field]
[0001] The present application relates to the field of computer technology, and in particular to an optimization method for a constant round secure multi-party computation protocol. [Background technology]
[0002] In secure multi-party computation (MPC), each participant has private input and jointly computes a function f, ensuring the privacy of the input and the correctness of the computation.
[0003] Yao's secure multiparty computation protocol based on obfuscated circuits (GC) has achieved security in the semi-honest rival model. However, secure multiparty computation protocols with n participants have received little attention, and progress has been relatively slow, especially in terms of dishonest majority and constant rounds. In the setting of a secure multiparty computation protocol with n participants, the structural complexity of the obfuscated circuit increases, and each participant needs to construct the obfuscated circuit in a distributed manner. The method of achieving this distributed obfuscation is called the BMR protocol, which divides the MPC protocol into a preprocessing stage and an online evaluation stage, and only requires one constant depth circuit.
[0004] Specifically, the preprocessing stage of the BMR protocol included the Tiny-OT protocol to generate relevant random information and the distributed obfuscation protocol to generate unauthenticated obfuscated circuits, and this structure shifted many computations to the preprocessing stage, whose main cost was the F2 multiplication computation for each AND gate. Although this structure efficiently improved the computational efficiency of the online evaluation stage, there were many important building blocks in the Tiny-OT protocol that needed improvement.
[0005] Therefore, there is a need to provide an improved technical solution to address the shortcomings of the prior art. Summary of the Invention [Problem to be solved by the invention]
[0006] The objective of the present application is to provide an optimization method for a constant-round secure multi-party computation protocol to solve or mitigate the problems existing in the above-mentioned prior art. [Means for solving the problem]
[0007] In order to achieve the above object, the present application provides the following technical means.
[0008] The present application provides a method for optimizing a constant-round secure multi-party computation protocol, the secure multi-party computation protocol including a pre-processing phase and an online evaluation phase, the secure multi-party computation protocol has multiple participants, and P i represents the i-th participant, i takes values of 1, 2, ..., n, and n represents the total number of participants. The optimization method for the constant-round secure multi-party computation protocol is as follows: All participants run the optimized Tiny-OT protocol in parallel to generate a number of AND triples, which are used to generate associated random information constituting an unauthenticated obfuscated circuit, and which are used to perform multiplication calculations of random shares to decrypt the circuit during an online evaluation phase; Each participant P i linearly combining the commitment values of the plurality of AND triples to obtain a commitment combination result; Each participant P i checking the correctness of the plurality of AND triples while unpacking the commitment combination result; Including, Each of the plurality of AND triples includes a first secret share [x], a second secret share [y], and a third secret share [z]. The step of executing an optimized Tiny-OT protocol to generate a τ-th AND triple in the plurality of AND triples includes steps S201 to S207. In step S201, each participant P i is the global key Δ i and
number
number
number
number
number
number
number
number
number
number
number
number
number
number
number
number
number
number
[0009] All participants run the optimized Tiny-OT protocol in parallel, generating multiple AND triples, which are used to generate associated random information that constitutes an unauthenticated obfuscated circuit, and are used to perform multiplication calculations of the random shares to decrypt the circuit in the online evaluation phase. Each participant P i The commitment values of multiple AND triples are linearly combined to obtain a commitment combination result, and each participant P i The system opens the commitment combination result and checks the correctness of multiple AND triples. By batch processing the correctness check of AND triples in the optimized Tiny-OT protocol, it is possible to integrate AND triple generation and correctness check into a single protocol, reducing the number of communications required for checking the correctness of AND triples and the number of calls to hash functions, thereby optimizing communication efficiency. [Brief description of the drawings]
[0010] [Figure 1] 1 is a flowchart of an optimization method for a constant-round secure multi-party computation protocol. [Diagram 2] 1 is a flowchart of running the optimized Tiny-OT protocol to generate AND triples. [Diagram 3] 4 is a flowchart of performing a correlated oblivious transmission protocol COT to obtain a first secret share [x]. DETAILED DESCRIPTION OF THE PREFERRED EMBODIMENTS
[0011] In secure multiparty computation (MPC), each participant has a private input and jointly computes a function f while ensuring input privacy and computational correctness. Yao's secure bipartite computation protocol based on obfuscated circuits (GC) achieves security in the semi-honest rival model. Later, Lindell and Pinkas proposed cut-and-choose technique to achieve security in the malicious rival model. Currently, the computational efficiency of bipartite protocols in the malicious model has already improved by several orders of magnitude. However, n-way computation protocols (especially dishonest majority and constant rounds) have not received much attention, and their progress is relatively slow. In the n-way setting, the structure of the obfuscation circuit becomes complicated. Each party needs to construct the obfuscation circuit in a distributed manner. The method to realize this distributed obfuscation is called BMR protocol, which divides the MPC protocol into a preprocessing stage and an online evaluation stage, and only requires one constant depth circuit. Distributed obfuscation is a core tool of constant round MPC protocols.
[0012] According to the obfuscation method, existing multi-party constant-round MPC protocols can be divided into two styles. One is the authenticated obfuscation proposed by Wang et al., and the other is the improved SPDZ-BMR by Hazay et al. Both of them construct circuits decentrally, but the basic protocols are different. Wang et al.'s protocol requires the generation of authenticated information, and the computation protocol is asymmetric, so that the authenticated circuit is constructed by one participant and evaluated by the other n-1 parties. In contrast, Hazay et al.'s SPDZ-BMR protocol is symmetric, and according to the BMR paradigm, the n parties jointly construct unauthenticated circuits and obtain their share of the circuit.
[0013] For the SPDZ-BMR protocol, the pre-processing stage includes the Tiny-OT protocol for constructing unauthenticated AND triples and a distributed obfuscation protocol. This generic structure shifts a large amount of computation to the pre-processing stage, whose main cost is the multiplication of each AND gate. Although this paradigm has significantly improved the efficiency of the online stage, we find that many important building blocks, such as unauthenticated AND triple generation and correctness checking, still need improvement. Intuitively, the Tiny-OT protocol is very practical for secure multi-party computation protocols based on secret sharing and the BMR protocol, but its computational complexity still needs to be improved.
[0014] For this purpose, the present application provides an optimized method and system for a constant-round secure multi-party computation (MPC) protocol that can tolerate any n-1 corrupters by executing an active constant-round secure multi-party computation (MPC) protocol based on the structure of the SPDZ-BMR protocol. In particular, the method is based on the Tiny-OT protocol and an unauthenticated obfuscation scheme. At a high level, first, an optimized Tiny-OT protocol for generating unauthenticated AND triples is proposed to reduce the number of consistency checks and hash function calls when generating AND triples, avoid using additional OT operations to calculate obfuscation circuits, and improve communication efficiency. To be precise, the method provided in the present application can reduce the number of hash function calls to generate shared random bits and reduce the number of commitments used in the AND triple consistency check protocol to one by about 50%. This application provides an optimization method for a constant-round secure multi-party computation protocol, whose communication complexity is O(Bnk) (where B=O(k+s / logC), n is the total number of participants, k is a computation security parameter, and C is the number of AND gates in the circuit), and the communication efficiency is greatly optimized.
[0015] In order to facilitate understanding of the technical solution of the present application, the relevant parameters are defined as follows: f is a function computed in common by multiple participants, k is a preset computational security parameter, s is a preset statistical security parameter, ab represents multiplication or logic and calculation with range F2, A quadruple (x,y,z,.) represents a gate in a circuit, where x,y represent the input lines of the gate in the circuit, and z represents the output line. . represents the type of gate, which in an obfuscated circuit can be an XOR gate or an AND gate. A triple (x,y,z) represents an AND triple, where x,y,z are all shares of a secret.
[0016] In the obfuscated circuit, w represents any one line, and all w constitute a line set, which is represented as W, where the set of input lines is W in The set of output lines is represented as W out It is expressed as:
[0017] Next, the related art will be described in detail.
[0018] First, the BMR protocol will be described.
[0019] In the secure bidirectional computation protocol based on Yao's obfuscated circuit, the obfuscation table of the AND gate can be expressed as the following formula:
number
[0020] The BMR protocol is an extension of Yao's obfuscated circuit protocol in a multi-party setting, and its basic idea is to generate circuits in a distributed manner, such that no participant (or any subset of all participants) can know all the information generated by the circuit. Also, the BMR protocol can generate obfuscated tables in a parallel manner, and the obfuscated circuit generation can be independent of the computational circuit depth, and the process of generating the obfuscated circuit is completed in the pre-processing phase. After generating the obfuscated circuit, each participant obtains a share of the obfuscated circuit and the associated key, which is then evaluated locally in the online phase.
[0021] In the BMR obfuscation protocol, each participant P i is a pair of keys randomly assigned to each line w in the obfuscated circuit.
number
number
number
number
number
[0022] The obfuscation table for the above AND gate can be written simply as follows:
number
[0023] From the obfuscation table of the AND gate above, we can see that in a secure multi-party computation protocol with n participants, one AND gate requires 4n ciphertexts, which is n times the obfuscation circuit of the secure multi-party computation protocol, and if any of the participants is honest, the above encryption is secure.
[0024] In a secure multi-party computation protocol with n participants, the Free-XOR technique can be used to make the evaluation of the XOR gate free. Specifically, when computing the XOR gate in an obfuscated circuit, the Free-XOR technique can be used to eliminate the need to transmit ciphertext, perform decryption operations, and deal with garbled characters in the XOR gate. With the Free-XOR technique, each participant P i There is one global key Δ i Randomly select
number
number
number
[0025] During the online evaluation phase, each participant receives a private input v w with an external value Λw where
number
number
[0026] To achieve active security, the SPDZ-BMR protocol requires honest participants P j is key in the online evaluation stage
number
number
number
[0027] [Exemplary Method] This embodiment provides a method for optimizing a constant-round secure multi-party computation protocol, in which the secure multi-party computation protocol includes a pre-processing phase and an online evaluation phase, and there are multiple participants in the secure multi-party computation protocol, and P i represents the i-th participant, i takes values of 1, 2, ..., n, and n represents the total number of participants. As shown in Figures 1 to 3, the optimization method for the constant-round secure multi-party computation protocol includes the following steps S101 to S103.
[0028] In step S101, all participants execute the optimized Tiny-OT protocol in parallel to generate multiple AND triples, which are used to generate associated random information constituting an unauthenticated obfuscated circuit, and are used to perform multiplication calculations of random shares to decrypt the circuit in the online evaluation phase.
[0029] In this embodiment, the MPC protocol is active and constant-round, uses the structure of SPDZ-BMR, runs based on the optimized Tiny-OT protocol, and can tolerate any n-1 corrupters. The specific flow of this MPC protocol is as follows: each participant generates a correct AND triple in the pre-processing stage, then uses a distributed obfuscation protocol to build an obfuscated circuit, then each participant obtains a secret share of the obfuscated circuit and the associated key in the online stage, and finally, each participant evaluates the obfuscated circuit locally to obtain the output.
[0030] Unlike the conventional SPDZ-BMR, this embodiment optimizes the Tiny-OT protocol with two building blocks: AND triple generation and correctness checking. Specifically, the conventional Tiny-OT protocol checks the correctness of AND triples based on cut-and-choose technology, and this embodiment provides a new AND triple generation method based on the optimized Tiny-OT protocol. The optimized Tiny-OT protocol adopts a method of checking the correctness of AND triples in a batch by integrating AND triple generation and correctness checking into one protocol, so that correctness checking of multiple (e.g., m') AND triples requires one commitment instead of the conventional m' commitments. m' is the number of AND triples, and reduces the hash function calls by half. Checking AND triples by batch processing reduces the computational complexity of the MPC protocol from m'×k bits to k bits, achieving higher computational efficiency than the conventional Tiny-OT protocol.
[0031] In addition, the MPC protocol based on the optimized Tiny-OT protocol can achieve active security, and the communication complexity of each participant is O(|C|Bnk). Table 1 shows the comparison result of the communication complexity between the multi-party MPC protocol provided in this embodiment and other multi-party MPC protocols, as shown in Table 1 below.
[0032] [Table 1]
[0033] In the above table, O(.) represents the complexity, |C| represents the number of AND gates in the circuit, d represents the circuit depth, and B=O(k+s / logC). As can be seen from the table, the method provided by this embodiment has greatly improved communication efficiency.
[0034] In concrete implementation, the optimized Tiny-OT protocol is used to generate random secret shares with consistency checks and AND triples with correctness checks in the pre-processing stage, and the generated AND triples are used in the calculation of the online evaluation stage. Next, the optimized Tiny-OT protocol will be described in detail.
[0035] Before generating the random secret shares with consistency checks and the AND triples with correctness checks, the optimized Tiny-OT protocol also includes an initialization, which performs the following steps S2011 to S2012: In step S2011, for i ∈ [n], P i is one global key Δ i ←{0,1} k Randomly select In step S2012, each ordered pair (P i ,P j ), where j ≠ i and P i and P j are respectively, (init,Δ j ) and (init) COT Send to.
[0036] To obtain an AND triple having a correctness check, each of the multiple AND triples includes a first secret share [x], a second secret share [y], and a third secret share [z], and the step of executing the optimized Tiny-OT protocol to generate a τ-th AND triple in the multiple AND triples includes steps S201 to S207; In step S201, each participant P i is the global key Δ i ←{0,1} k Generates and
number
number
number
number
number
number
number
number
number
number
number
[0037] In this embodiment, constructing an AND triple involves two steps: generating an AND triple and checking the correctness of the AND triple. i , y i and z i Because we cannot get much information about the query and global key x i Information about the random secret sharing, such as a linear combination with , can be inferred, and therefore the above-mentioned inference behavior does not affect the optimized Tiny-OT protocol of this embodiment. The conventional Tiny-OT protocol uses cut-and-choose technology to ensure the correctness of AND triples, which greatly wastes AND triples and reduces efficiency. The optimized Tiny-OT protocol does not use cut-and-choose, but combines AND triple generation and correctness checking, effectively reducing the number of hash functions used for correctness checking. The execution process of the optimized Tiny-OT protocol is specifically analyzed as follows.
[0038] In step S203, each participant P i is the first intermediate value ∂ i is calculated locally,
number
number
[0039] When constructing the AND triple in step S204, we have the following:
number
[0040] Then, the following formula can be calculated:
number
[0041] In step S206, the following occurs:
number
[0042] therefore,
number
[0043] Finally, in step S207,
number
[0044] Therefore, [z] = [x] · [y], and we have an AND triple ([x], [y], [z]).
[0045] To generate a random secret share with integrity check, in step S202, each participant P i obtaining a first secret share [x] by executing a correlated oblivious transmission protocol COT specifically includes steps S301 to S303; In step S301, a global key Δi To ensure the integrity of i is a random bit sequence of length m as the first random bit sequence x.
number
number
[0046] Steps S301 to S303 are repeated to obtain the second secret share [y] and the third secret share [z].
[0047] In this embodiment, each pair of participants (P i ,P j ) is the related oblivious transmission protocol F COT However, a malicious participant may input a mismatched global key during each run, resulting in multiple different random secret shares being verified by multiple global keys. To ensure the integrity of the global keys, the implementation of this application introduces a double random technique.
[0048] Specifically, we linearly map each P i The random secret share of
number
[0049] Global Key Δ i In order to verify the integrity of the global key Δ i The consistency verification for i and P j The ordered pair (P i ,P j ) about P i , P j is any two of the n participants, j ≠ i, and participant P i Based on the first secret share [x] and the fourth secret share [o], a first map value C i locally and C i The message authentication code M j [C i ] and key K i [C j ] and Each participant P i is random zero distribution
number
number
number
number
number
number
number
number
[0050] Each of you will open up those commitments.
number
[0051] The above global key Δ i In the integrity verification process of,to prevent crosstalk between malicious participants, each participant only needs to make one,commitment to obtain the global key,Δ,. i The integrity of the global key can be verified, ensuring the integrity of the global key.
[0052] however,
number
[0053] Therefore, each of you has made a commitment
number
[0054] In one example, the optimized Tiny-OT protocol is as follows: Protocol Π n-TinyOT
[0055] Initialization: 1, for i ∈ [n], P i is one global key Δ i ←{0,1} k Select randomly. 2, each ordered pair (P i ,P j ), where j ≠ i and P i and are respectively init,Δ j and (init) to F COT Send to.
[0056] Random secret share generation: Generates m+k random secret bits, but does not guarantee global key consistency. 1, each P i is m+k random shared bits
number
number
number
number
number
[0057] Integrity detection: Participants check the integrity of the global key. 1. P i is C i , and locally compute the MACs value M j [C i ] and key K i [C j ] where j≠i and j∈[n].
number
number
number
number
number
number
number
number
number
number
number
number
number
[0058] AND triple generation and correctness checking: 1, each P i is the global key Δ i ←{0,1} k Regenerate and
number
number
number
number
number
number
number
number
number
number
number
number
[0059] However, the related oblivious transmission protocol F COT The execution process is as follows:
[0060] Initialize: Sender P S Receive (init,Δ) from Δ∈{0,1} k and the receiver P R Receives (init) from, stores Δ, and ignores other (init) commands.
[0061] Extend: Receiver P R From (extend, x1,…,x m ) and sender P S Receives (extend) from and performs the following operations: 1. K[x i ]∈{0,1} k Randomly select i ∈ [m] and the receiver P R If is malignant, then malignant rival A to K[x i ] to obtain. 2.
number
number
[0062] Output: K[x i ] to the recipient P R , and M[x i ] by sender P S , where i ∈ [m].
[0063] The called function F Comcontains a commitment command and an open command, and the execution process is as follows:
[0064] Commit command: Participant P i From input (Commit,x,i,τ x ) and (i, x, τ x ) and store (i, τ x ) to all participants.
[0065] Open command: Participant P i Input from (Open,i,τ x ) and receives the triple (i, x, τ x ) has been stored, (i,x,τ x ) to all participants, otherwise, the triple (i, x, τ x ) is not stored, and participant P i is malicious, and (NoOpen,i,τ x ), (i,⊥,τ x ) to all participants.
[0066] In addition, in the process of checking the correctness of the AND triples, a malicious rival may find some leaks, so after all participants run the optimized Tiny-OT protocol in parallel to generate multiple AND triples, Packetizing the multiple AND triples; and for each packet, combining all the AND triples in the packet into one to obtain multiple combinations. Matching the multiple combinations two by two, for a first combination {[x1],[y1],[z1]} in the matching and a second combination {[x2],[y2],[z2]} in the matching, performing the following steps to eliminate leakage: Each participant
number
number
number
[0067] In this embodiment, in order to eliminate leakage of AND triples in the subprotocol, a bucket technique is adopted in which several AND triples are combined in each bucket.
[0068] Specifically, in one example, a sub-protocol using bucket technology is as follows: Sub-protocol
number
[0069] Let B be the size of the bucket, and each participant performs m' iterations of Π to generate m' AND triples. n-TinyOT However, x may have a leak. Input: m' possibly leaky AND triples.
[0070] Eliminate leaks: 1. Put m triples into a bucket of size B. 2. For each bucket, combine all B triples into a single triple. Set {[x1],[y1],[z1]} and {[x2],[y2],[z2]} to be the two triples. To eliminate potential leaks in x, each party: (a)Π open Call
number
number
number
[0071] In step S102, each participant P i The commitment values of multiple AND triples are linearly combined to obtain a commitment combination result.
[0072] Executing the above-mentioned optimized Tiny-OT protocol can generate one AND triple. In real-world applications, the execution process of the MPC protocol needs to consume a large number of AND triples, so the AND triples are usually generated in a batch manner. In a specific implementation, the above-mentioned optimized Tiny-OT protocol can be executed in parallel to generate multiple AND triples, for example, m' AND triples, in parallel, and calculate the commitment value of each AND triple. After executing the optimized Tiny-OT protocol m' times in parallel, when checking the correctness of the m' AND triples, each participant P i computes a linear combination of the commitment values of multiple AND triples using the following formula:
number
[0073] And the function F Com Call the commitment command Z i Commit to:
[0074] The above random function F Rand The specific process is as follows:
[0075] All participants receive input (rand,S), where S is any valid sampling set. Randomly sample r from S, where r ← S, Send r to A, wait for A's input, and if A's input is OK, output r to all participants; otherwise, output ⊥.
[0076] In step S103, each participant P i opens the commitment combination result and checks the correctness of multiple AND triples.
[0077] Each participant has a function F Com The opening command calls the commitment Z i Open and
number
[0078] Each participant P i After opening the commitment combination result and checking the correctness of the multiple AND triples, the method further comprises: Obtaining a Boolean circuit; generating associated random information for constructing and generating an unauthenticated obfuscated circuit based on a plurality of AND triples; generating an obfuscated circuit corresponding to the Boolean circuit based on the associated random information; Includes. However, a Boolean circuit is constructed based on the operational logic of a function f.
[0079] In this embodiment, each participant generates correct AND triples in a preprocessing stage, and then builds an obfuscated version of the Boolean circuit based on the AND triples using a distributed obfuscation protocol.
[0080] We generate an obfuscated circuit by a multi-party obfuscation protocol. However, in a multi-party obfuscation protocol, each participant jointly generates an obfuscated circuit by distributed obfuscation. Specifically, each P i First, generate keys for the circuit gates in the obfuscated circuit and a global key, where
number
[0081] One example of a decentralized obfuscation protocol is as follows: protocol
number
[0082] Obfuscation: 1, for i ∈ [n], each participant P i is one global key Δ i ←Π Tiny-OT Receive. 2. For any input or output line of the AND gate, each participant does the following: (a) Each P i randomly select λw and set Δ i ←Π Tiny-OT Get the. (b) Each P i is the key
number
number
number
number
number
number
number
number
[0083] However, subprotocol Π open To open it, follow these steps:
[0084] Open the secret share [λ] to all participants, 1, each participant P iis the secret share value λ i Broadcast the message authentication code
number
number
number
number
[0085] In the obfuscated circuit generation process, we generate secret shares using Tiny-OT with message authentication codes (MACs), and build unverified obfuscated circuits based on the optimized Tiny-OT protocol distributed obfuscation without requiring additional overhead to obtain verified information. In the preprocessing stage, we obtain unauthenticated AND triples using the optimized Tiny-OT protocol with MACs, and these AND triples are multiplied by the product λ of mask value shares. x λ y is used to calculate the j is λ x , λ y , λ x λ y , Δ jBy calculating the product of each of them and opening the circuit based on the checking mechanism to check the correctness of the obfuscated circuit, the corruptor is prevented from changing their secret shares to generate incorrect obfuscated gates. If the obfuscated circuit check is incorrect, the online phase is aborted.
[0086] In the online evaluation phase, each P j is the external value Λ at the input line w Calculate Λ w , external value Λ w The key corresponding to
number
number
number
[0087] The execution process of a specific MPC protocol is as follows: Protocol Π MPC
[0088] Input: Each participant P i All private inputs
number
[0089] Preprocessing: This subtask is performed as follows: 1. Boolean circuit C f With input, protocol
number
number
[0090] Broadcast the key, check the circuit, and each input line
number
number
number
number
[0091] Online Evaluation: Depending on the topology order of the obfuscated circuit, each participant performs a local evaluation for each circuit gate. 1. For a circuit gate type of XOR gate, the external value of each output line is
number
number
number
number
number
number
[0092] Output: Each output line W out Regarding the actual value,
number
[0093] However, we use the obfuscation protocol Π to reconstruct the obfuscation table in the obfuscated circuit and detect the obfuscated circuit. Open garbling To ensure the accuracy of the circuit, the protocol is carried out in the following process.
[0094] Set the pseudo-random generator (PRG),
number
[0095] Open Obfuscation,
number
number
number
number
number
number
number
number
[0096] In the preprocessing phase, each party generates a secret share of the obfuscated circuit that has not been authenticated, which means that a malicious participant may introduce errors into the obfuscated circuit. In this embodiment, we use a simple open obfuscation protocol Π Open garblingBy adding,,we ensure the accuracy of the detected circuits.,In contrast, authenticated obfuscated circuits are,more expensive than unauthenticated obfuscated circuits.
[0097] In order to reduce the amount of data transfer between circuit gates and the size of the obfuscation table in the process of constructing an obfuscated circuit, the AND gate obfuscation table of the obfuscated circuit includes an obfuscator half gate and an evaluator half gate, and the AND gate of the obfuscated circuit includes a first input line, a second input line, and an output line. The method further divides the mask value of the output line into a first submask and a second submask, and divides the key of the output line into a first subkey and a second subkey. The obfuscator half gate and the evaluator half gate are calculated based on the first submask, the second submask, the first subkey, and the second subkey, respectively. The obfuscator half gate and the evaluator half gate are exclusive-ored to obtain the external value of the output line.
[0098] In this embodiment, the Half-Gate technology is introduced into the multi-party distributed obfuscation protocol, and the Half-Gate technology is optimized and made compatible with the Free-XOR technology, so that the obfuscation table of each AND gate in the obfuscation circuit consumes only 2n bits of data transfer, reducing the size of the obfuscation table and improving the efficiency of the MPC protocol.
[0099] However, this application optimizes the Half-Gate technique so that the AND gate in the multi-party distributed obfuscation circuit needs to consume only two ciphertexts while being compatible with Free-XOR. The optimization of the Half-Gate technique is described in detail below.
[0100] In this embodiment, the two Half-Gates are referred to as the "obfuscator half-gate" and the "evaluator half-gate", respectively.
number
[0101] 1 AND gate v z =v x ∧v y where x, y are the input lines of the AND gate, z is the output line of the AND gate, and
number
[0102] In the Half-Gate technique based on both, the calculation involves two half-gates, the first of which is λ y ·v x is used to calculate the second half-gate
number
number
number
[0103] In this embodiment, the Half-Gate technique is introduced into the multi-party distributed obfuscation protocol process and adjusted as follows: First, the mask value of the output line is adjusted to the first submask
number
number
number
number
number
number
number
number
number
number
[0104] For the AND gate in the obfuscated circuit:
number
[0105] Next, the "obfuscator half-gate" and the "evaluator half-gate" will be described in detail.
[0106] Obfuscator Halfgate: Since the mask value is random and a shared secret, the obfuscator can exploit the fact that he knows his own mask value to compute the obfuscated half-gate in a multi-party secure computation scenario. During the online evaluation phase, the obfuscator knows the external value of line x.
number
number
[0107] In addition, the external value Λ x is what is computed in the online phase, and the obfuscator's half-gate is:
number
number
[0108]
number
number
[0109] Evaluator Halfgate: In the online evaluation phase, the evaluator evaluates the external value of the wire.
number
number
number
[0110] The point in the above equation is Λ x ·Λ y Calculate, i.e.,
number
number
number
[0111] Also Λ x ·Λ y In a two-participant secure computation protocol, the key of input line x needs to be transferred to the key of output line z,
number
number
number
number
[0112]
number
number
number
[0113] next,
number
number
number
[0114] After calculating the “obfuscator half-gate” and the “evaluator half-gate” in the above process, simply XORing them gives the external value Λ of the output line z. z can be obtained.
[0115] In the present application, all participants execute the optimized Tiny-OT protocol in parallel to generate multiple AND triples, which are used to generate related random information that constitutes an unauthenticated obfuscated circuit, and are used to perform multiplication calculations of random shares to decrypt the circuit in the online evaluation phase, and each participant P i The commitment values of multiple AND triples are linearly combined to obtain a commitment combination result, and each participant P iThe system opens the commitment combination result and checks the correctness of multiple AND triples. By batch processing the correctness check of AND triples in the optimized Tiny-OT protocol, it is possible to integrate AND triple generation and correctness check into a single protocol, reducing the number of communications required for checking the correctness of AND triples and the number of calls to hash functions, thereby optimizing communication efficiency.
[0116] In this embodiment, the MPC protocol is active and constant-round, and the protocol uses the structure of the SPDZ-BMR protocol and runs based on the optimized Tiny-OT protocol, and can tolerate any n-1 corrupters. In the obfuscated circuit generation process, we generate secret shares using Tiny-OT with message authentication codes MACs, and build an unverified obfuscated circuit based on the optimized Tiny-OT protocol distributed obfuscation without requiring additional overhead to obtain verified information.
[0117] In this embodiment, the Half-Gate technology is introduced into the multi-party distributed obfuscation protocol, and the Half-Gate technology is optimized and made compatible with the Free-XOR technology, so that the obfuscation table of each AND gate in the obfuscation circuit consumes only 2n bits of data transfer, reducing the size of the obfuscation table and improving the efficiency of the MPC protocol.
Claims
1. A method for optimizing a constant-round secure multi-party computation protocol, comprising the steps of: The secure multi-party computation protocol includes a pre-processing phase and an online evaluation phase, there are a plurality of participants in the secure multi-party computation protocol, and P i represents the i-th participant, i takes values of 1, 2, ..., n, and n represents the total number of participants. The optimization method for the constant-round secure multi-party computation protocol is as follows: All participants run the optimized Tiny-OT protocol in parallel to generate a number of AND triples, which are used to generate associated random information constituting an unauthenticated obfuscated circuit, and which are used to perform multiplication calculations of random shares to decrypt the circuit during an online evaluation phase; Each participant P i linearly combining the commitment values of the plurality of AND triples to obtain a commitment combination result; Each participant P i unpacking the commitment combination result and checking the correctness of the plurality of AND triples; Including, each of the plurality of AND triples includes a first secret share [x], a second secret share [y], and a third secret share [z]; The step of executing the optimized Tiny-OT protocol to generate the τ-th AND triple in the plurality of AND triples includes steps S201 to S207; In step S201, each participant P i is the global key Δ i and [0010] and However, Δ i is k-bit binary data, k is a pre-defined security parameter, and lsb(Δ i ) is Δ i represents taking the last bit of [0025] represents the exclusive OR operation, In step S202, each participant P i executes the associated oblivious transmission protocol COT to obtain a first secret share [x] and a second secret share [x]. [y] and a fourth secret share [r], and the first secret share [x] and the second secret share [r] are obtained. [y] and the fourth secret share [r] are the i The secret shared value x held by i , y i , r i and x i , y i , r i are the corresponding message authentication codes, and x i , y i , r i and a corresponding key for each of the In step S203, each participant P i is the first intermediate value ∂ i is calculated locally, [0030] however, [0045] Participant P i y held by l represents the key corresponding to y l is the lth participant P l represents the value of the second secret share [y] held by [0050] P i y held by i represents the message authentication code corresponding to y i P i represents the value of the second secret share [y] held by Δ i is the global key Δ i and In step S204, participant P i and P j The ordered pair (P i , P j ), j ≠ i, Each participant P i is the second intermediate value u i,j Calculate [006] where H represents a hash function and K i [x j ] is P i x held by j represents the key corresponding to x j Participant P j is the value of the first secret share [x] held by Participant P i is the third intermediate value v i,j Calculate [0070] However, ∂ i is the first intermediate value, and Δ j Participant P j is a global key held by Participant P i V i,j P j Send to Participant P j is the fourth intermediate value w i,j Calculate [0080] In step S205, each participant P i is the fifth intermediate value U i Calculate [0090] In step S206, each participant P i computes a commitment value for each AND triple, [0089] where d = {d i }, and d i =lsb(U i ), and lsb(U i ) is U i represents taking the last bit of In step S207, when i ≠ 1, [z i ] i =[r i ] i If not, ##EQU00011## to get [x], [y], and [z], In step S202, each participant P i Specifically, obtaining a first secret share [x] by executing a correlated oblivious transmission protocol COT includes steps S301 to S303; In step S301, a global key Δ i To ensure the integrity of i is a random bit sequence of length m as the first random bit sequence x. ##EQU00012## Generate a random bit sequence of length k as the additional random bit sequence o. ##EQU00013## Generate additional In step S302, participant P i and P j The ordered pair (P i ,P j ), j ≠ i, and participant P i execute a correlated oblivious transmission protocol COT with the sender to obtain a first secret share [x] and a fourth secret share [o] corresponding to the first random bit sequence x and the additional random bit sequence o, respectively, and a message authentication code and a key corresponding to [x] and [o], respectively; In step S303, a global key Δ is calculated based on the first secret share [x] and the fourth secret share [o]. i If the verification passes, output the first secret share [x]. In step S303, a global key Δ is calculated based on the first secret share [x] and the fourth secret share [o]. i To perform consistency verification on Participant P i and P j The ordered pair (P i ,P j ) about P i , P j are any two of the n participants, j ≠ i, and participant P i Based on the first secret share [x] and the fourth secret share [o], a first map value C i locally and C i The message authentication code M j [C i ] and key K i [C j ] and Each participant P i is random zero distribution ##EQU14## However, ##EQU00015## And, Each participant P i is the first map value C i and random zero variance ρ i Based on the second map value C ##EQU00016## and calculating the second map value ##EQU00016## to each participant, Each participant P i is the second map value ##EQU00016## reconstructing a third map value c based on Each participant P i is the first map value C i and the third map values c and C i The message authentication code M j [C i ] and key K i [C j ], the global key Δ i and verifying the integrity of the A method for optimizing a constant-round secure multi-party computation protocol, comprising:
2. After all participants run the optimized Tiny-OT protocol in parallel and generate multiple AND triples, packetizing a plurality of AND triples; for each packet, combining all the AND triples in the packet into one to obtain a number of combinations; Including, Match multiple combinations two by two, and the first combination in the match {[x 1 ],[y 1 ],[z 1 ]} and the second combination in the match {[x 2 ],[y 2 ],[z 2 ]}, take the following steps to eliminate the leak: Each participant P i but [0.66] Check the consistency of [0.67] [y]=[y] 1 ]、 [0068] And, Output the AND triple [x], [y], [z], where [z]=[x]*[y], 2. The method for optimizing a constant-round secure multi-party computation protocol according to claim 1 .
Citation Information
Patent Citations
Secure multi-party computing method, device and system based on auxiliary server
CN112865953A
High-precision privacy-preserving real-valued function evaluation
JP2020532771A
