Method, device and system for converting private data fragments
Through the multi-party security calculation of the two parties, the n-i power space conversion from the mod 2 space to the mod 2 is solved, and the problem of large traffic volume during the conversion of private data shards is achieved, which significantly reduces traffic volume and converts efficiency. promote.
Patent Information
- Application Number
- CN202111075602.X
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2021-09-14
- Publication Date
- 2024-11-01
- Estimated Expiration
- 2041-09-14
AI Technical Summary
In the prior art, the traffic volume is relatively large when converting the form of private data shards, and improvements are needed to reduce the traffic volume.
The two parties jointly perform multi-party security calculations. Through the analog conversion operation of the n-i power space from mod 2 to mod 2, the Boolean form shard of private data is converted into algebraic form shards. The specific steps include receiving random shards for difference. Value operations and power operations combine target bit values to form algebraic form sharding, reducing the conversion of mod 2 space to n-power space for each binary bit.
Effectively reduces traffic, especially in the offline stage, and reduces traffic by about half, improving the efficiency of form conversion.
Smart Images

Figure CN113688426B_ABST
Abstract
Description
Technical Field
[0001] One or more embodiments of the present specification relate to the computer field, and in particular, to a method, device, and system for converting the format of privacy data slices. Background Art
[0002] Secure multi-party computation is also called multi-party secure computation, which means that multiple parties jointly calculate the result of a function without disclosing the input data of each party of the function, and the result of the calculation is made public to one or more of the parties. Among them, the input data of each party is often private data. In multi-party secure computation, the algebraic form of sharding of private data and the Boolean form of sharding of private data are often mixed, and conversion between these two forms is required.
[0003] Among them, the algebraic form of slicing: transform a 0 to 2 n-1 The integer x is x=x_L+x_R mod 2 n The sliced form is stored in A and B respectively. A does not know x_R and B does not know x_L. Boolean slice: any binary bit xi of an n-bit binary number is stored in A and B in the sliced form of xi = x_L + x_R mod 2. A does not know x_R and B does not know x_L.
[0004] In the prior art, when the format of privacy data shards is converted, the communication volume is large.
[0005] Therefore, it is hoped that there will be an improved solution that can reduce the amount of communication when performing format conversion on private data shards. Summary of the invention
[0006] One or more embodiments of this specification describe a method, device, and system for converting the format of privacy data fragments, which can reduce the amount of communication.
[0007] In a first aspect, a method for two parties to jointly perform format conversion on private data slices is provided, wherein a first party of the two parties holds a first slice of private data in Boolean form, including a slice of each binary bit of an n-bit binary representation of the private data in a modulo-2 space and a shared slice, and a second party of the two parties holds a corresponding second slice; the method is performed by the first party, and includes:
[0008] For a first initial bit value of any binary bit in the first slice, perform multi-party secure computation according to a position interval i between the binary bit and the lowest bit and a second initial bit value of the binary bit in the second slice provided by the second party, so as to convert the first initial bit value into a first target bit value in a modulo 2 ni-th power space; and enable the second party to obtain the second target bit value;
[0009] The first target bit values are combined in sequence to obtain a first algebraic value as a first slice of the algebraic form of the private data in the n-th power space modulo 2 and under sharing; the corresponding second slice of the algebraic form is obtained by the second party based on the second target bit value.
[0010] In a possible implementation, the multi-party secure computation is a modular conversion operation from a modular 2 space to a modular 2 ni-power space.
[0011] Furthermore, the analog conversion operation includes:
[0012] receiving a first random shard in the modulo 2 space and a second random shard in the modulo 2 power ni space from a third party; a third random shard in the modulo 2 space and a fourth random shard in the modulo 2 power ni space are held by the second party; a sum of the first random shard and the third random shard is a first random number in the modulo 2 space, and a sum of the second random shard and the fourth random shard is the first random number in the modulo 2 power ni space;
[0013] receiving an intermediate result from the second party, the intermediate result being a local operation result of the second initial bit value and the third random shard;
[0014] Obtaining a difference between a bit value of a corresponding binary bit of an n-bit binary number and the first random number according to the first initial bit value, the first random slice and the intermediate result;
[0015] A local operation is performed based on the difference and the second random slice to obtain the first target bit value.
[0016] Furthermore, the intermediate result is a local operation result of subtracting the second initial bit value from the third random slice.
[0017] Further, the performing local operation according to the difference and the second random shard includes:
[0018] Taking -1 as the base and the difference as the power, perform a power operation to obtain a first result;
[0019] The first result and the second random slice are multiplied to obtain the first target bit value.
[0020] In a second aspect, a method for two parties to jointly perform format conversion on private data slices is provided, wherein a first party of the two parties holds a first slice of the private data in Boolean form, including a slice of each binary bit of an n-bit binary representation of the private data in a modulo-2 space and a shared slice, and a second party of the two parties holds a corresponding second slice; the method comprises:
[0021] The first party jointly performs multi-party secure computation on a first initial bit value of any binary bit in the first slice and the second party on a second initial bit value of the binary bit in the second slice, according to a position interval i between the binary bit and the lowest bit, so that the first party obtains a first target bit value converted from the first initial bit value in a modulo 2 ni-power space; and the second party obtains a second target bit value converted from the second initial bit value in a modulo 2 ni-power space;
[0022] The first party sequentially combines the first target bit values to obtain a first algebraic value as a first slice of the algebraic form of the private data in the n-th power space modulo 2 and under sharing;
[0023] The second party sequentially combines the second target bit values to obtain a second algebraic value as a second fragmentation of the algebraic form of the private data in the n-th power space modulo 2 and under sharing.
[0024] In a possible implementation, the multi-party secure computation is a modular conversion operation from a modular 2 space to a modular 2 ni-power space.
[0025] Furthermore, the analog conversion operation includes:
[0026] The first party receives a first random slice of the modulo 2 space and a second random slice of the modulo 2 power ni space from a third party;
[0027] The second party receives a third random shard in the modulo 2 space and a fourth random shard in the modulo 2 power ni space from the third party; the sum of the first random shard and the third random shard is a first random number in the modulo 2 space, and the sum of the second random shard and the fourth random shard is the first random number in the modulo 2 power ni space;
[0028] The first party receives a first intermediate result from the second party, where the first intermediate result is a local operation result of the second initial bit value and the third random slice;
[0029] The first party obtains a difference between a bit value of a corresponding binary bit of an n-bit binary number and the first random number according to the first initial bit value, the first random slice, and the first intermediate result;
[0030] The second party receives a second intermediate result from the first party, where the second intermediate result is a local operation result of the first initial bit value and the first random slice;
[0031] The second party obtains a difference between a bit value of a corresponding binary bit of an n-bit binary number and the first random number according to the second initial bit value, the third random sharding and the second intermediate result;
[0032] The first party performs a local operation based on the difference and the second random slice to obtain the first target bit value;
[0033] The second party performs a local operation based on the difference and the fourth random slice to obtain the second target bit value.
[0034] Further, the first intermediate result is a local operation result of subtracting the second initial bit value from the third random slice;
[0035] The second intermediate result is a local operation result of subtracting the first initial bit value from the first random slice.
[0036] Further, the first party performs a local operation based on the difference and the second random shard, including:
[0037] Taking -1 as the base and the difference as the power, perform a power operation to obtain a first result;
[0038] Performing a multiplication operation on the first result and the second random slice to obtain the first target bit value;
[0039] The second party performs a local operation based on the difference and the fourth random shard, including:
[0040] Taking -1 as the base and the difference as the power, perform a power operation to obtain a first result;
[0041] Performing a multiplication operation on the first result and the fourth random slice to obtain a second result;
[0042] The second result and the difference are summed to obtain the second target bit value.
[0043] In a third aspect, a device for two parties to jointly perform format conversion on private data slices is provided, wherein a first party of the two parties holds a first slice of private data in Boolean form, including slices of each binary bit of an n-bit binary representation of the private data in a modulo-2 space and a shared slice, and a second party of the two parties holds a corresponding second slice; the device is arranged on the first party, and comprises:
[0044] a secure computing unit, configured to perform multi-party secure computing on a first initial bit value of any binary bit in the first slice according to a position interval i between the binary bit and the lowest bit and a second initial bit value of the binary bit in the second slice provided by the second party, thereby converting the first initial bit value into a first target bit value in a modulo 2 ni-th power space; and enabling the second party to obtain a second target bit value;
[0045] A combining unit is used to sequentially combine the first target bit values obtained by the security computing unit to obtain a first algebraic value as a first slice of the algebraic form of the privacy data in the n-th power space modulo 2 and under sharing; the corresponding second slice of the algebraic form is obtained by the second party based on the second target bit value.
[0046] In a fourth aspect, a system is provided in which two parties jointly perform format conversion on private data slices, wherein a first party of the two parties holds a first slice of private data in Boolean form, including a slice of each binary bit of an n-bit binary representation of the private data in a modulo-2 space and a shared slice, and a second party of the two parties holds a corresponding second slice; the system comprises:
[0047] The first party is used to jointly perform multi-party secure computation on a first initial bit value of any binary bit in the first slice, and the second party is used to jointly perform multi-party secure computation on a second initial bit value of the binary bit in the second slice according to a position interval i between the binary bit and the lowest bit, so that the first party obtains a first target bit value converted from the first initial bit value to a ni-power space modulo 2; and the second party obtains a second target bit value converted from the second initial bit value to a ni-power space modulo 2;
[0048] The first party is further used to sequentially combine the first target bit values to obtain a first algebraic value as a first slice of the algebraic form of the private data in the n-th power space modulo 2 and under sharing;
[0049] The second party is also used to sequentially combine the second target bit values to obtain a second algebraic value as a second fragment of the algebraic form of the private data in the n-th power space modulo 2 and under sharing.
[0050] In a fifth aspect, a computer-readable storage medium is provided, on which a computer program is stored. When the computer program is executed in a computer, the computer is caused to execute the method of the first aspect or the second aspect.
[0051] In a sixth aspect, a computing device is provided, comprising a memory and a processor, wherein the memory stores executable code, and when the processor executes the executable code, the method of the first aspect or the second aspect is implemented.
[0052] Through the method, device and system provided by the embodiments of this specification, the first party of the two parties holds a first slice of private data in Boolean form, which includes slices of each binary bit of the n-bit binary representation of the private data in the modulo 2 space and shared, and the second party of the two parties holds the corresponding second slice; first, the first party performs multi-party security calculation on the first initial bit value of any binary bit in the first slice, according to the position interval i between the binary bit and the lowest bit, and the second initial bit value of the binary bit in the second slice provided by the second party, so as to convert the first initial bit value into a first target bit value in the ni-th power space of modulo 2; and enables the second party to obtain the second target bit value; then the first party combines the first target bit values in sequence to obtain a first algebraic value as the first slice of the algebraic form of the private data in the n-th power space of modulo 2 and shared; the corresponding second slice of the algebraic form is obtained by the second party based on the second target bit value. As can be seen from the above, in the embodiments of the present specification, when converting Boolean slices into algebraic slices, instead of converting the modulo 2 space to the modulo 2 n-power space for each binary bit, the modulo 2 space is converted to the modulo 2 ni-power space based on the position interval i between the binary bit and the lowest bit, which can reduce the amount of communication. BRIEF DESCRIPTION OF THE DRAWINGS
[0053] In order to more clearly illustrate the technical solutions of the embodiments of the present invention, the accompanying drawings required for use in the description of the embodiments will be briefly introduced below. Obviously, the accompanying drawings described below are only some embodiments of the present invention. For ordinary technicians in this field, other accompanying drawings can be obtained based on these accompanying drawings without paying creative work.
[0054] Figure 1 A schematic diagram of an implementation scenario of an embodiment disclosed in this specification;
[0055] Figure 2 A schematic diagram showing an interaction method of two parties jointly performing format conversion on private data slices according to an embodiment;
[0056] Figure 3 A schematic block diagram showing an apparatus for two parties to jointly perform format conversion on private data slices according to an embodiment;
[0057] Figure 4 A schematic block diagram of a system for two parties to jointly perform format conversion on private data slices according to an embodiment is shown. DETAILED DESCRIPTION
[0058] The solution provided in this specification is described below in conjunction with the accompanying drawings.
[0059] Figure 1 The following is a schematic diagram of an implementation scenario of an embodiment disclosed in this specification. The implementation scenario involves performing a form conversion on a private data slice, specifically, converting a Boolean form slice into an algebraic form slice. n-1 The integer x is x=x_L+x_R mod 2 n The sliced form is stored in A and B respectively. A does not know x_R and B does not know x_L. Boolean slice: any binary bit xi of an n-bit binary number is stored in A and B in the sliced form of xi = x_L + x_R mod 2. A does not know x_R and B does not know x_L.
[0060] In an example, A and B are two parties involved in a bilateral secure computation. Let G be a finite Abelian group. The sum-sharing form in G means storing an element x in G in the form of a+b in both parties A and B. Among them, a in G is stored in party A and is invisible to party B; b in G is stored in party B and is invisible to party A; the addition in a+b refers to the addition in the Abelian group G. The secure computation in the sum-sharing form requires that A and B calculate the value of x in f: G1→G2 through some secure interactions, and store it in the form of sum-sharing in both parties A and B.
[0061] The first party and the second party may be used to distinguish the two parties. The first party may also be referred to as party P1 and the second party as party P2, or the first party may be referred to as party A and the second party may be referred to as party B, etc.
[0062] Reference Figure 1 , the n-bit binary representation of the private data x is recorded as x(n-1)…x1 x0, that is, x=x0+x1*2+…+x(n-1)*2 n-1 , it can be understood that the value of x ranges from 0 to 2 n-1 The interval range can be expressed as Z / 2 nZ, where any binary bit xi is stored in the form of a sum in Z / 2Z in both parties. This form of sharding is called a Boolean sharding. Party A holds the first Boolean shard of the private data x, and the n-bit binary representation of the first shard is recorded as x(n-1)1…x11 x01. Party B holds the second Boolean shard of the private data x, and the n-bit binary representation of the second shard is recorded as x(n-1)2…x12 x02. It can be understood that x(n-1)1+x(n-1)2mod 2=x(n-1), x11+x12mod 2=x1,…, x01+x02 mod 2=x0. For example, if x(n-1) is 1, its two Boolean shards can be 1, 0, or 0, 1 respectively; if x(n-1) is 0, its two Boolean shards can be 1, 1, or 0, 0 respectively. According to the Boolean form of the slice, after the form conversion, the algebraic form of the slice is obtained. Party A obtains the first algebraic form of the private data x. The n-bit binary representation of the first slice is y(n-1)1…y11 y01. Party B obtains the second algebraic form of the private data x. The n-bit binary representation of the second slice is y(n-1)2…y12 y02. It can be understood that y01+y11*2+…+y(n-1)1*2 n-1 +y02+y12*2+…+y(n-1)2*2 n-1 mod 2 n =x.
[0063] Boolean sharding is performed on any binary bit of the private data, and the binary bits do not affect each other. This is different from algebraic sharding. That is to say, for two Boolean shards of private data, the sum of the two modulo 2 to the power of n is not necessarily equal to the private data; for two algebraic shards of private data, the sum of the two modulo 2 to the power of n must be equal to the private data.
[0064] It is understandable that private data may be any data that is not convenient to be disclosed, including but not limited to data representing the user's personal information, or business secrets, etc.
[0065] In the embodiment of this specification, when converting the slices in Boolean form into slices in algebraic form, the conversion of the i-th bit, that is, in Z / 2 n In Z, a is mapped to a*2 i , the effect on the final result is only as large as the value of a at Z / 2 n-i Since the conversion from modulo 2 space to modulo 2 n-power space is not performed for each binary bit, the conversion from modulo 2 space to modulo 2 ni-power space is performed based on the position interval i between the binary bit and the lowest bit, which can reduce the amount of communication.
[0066] Figure 2 A schematic diagram of an interaction method for two parties to jointly transform the form of private data fragments according to an embodiment is shown. The method can be based on Figure 1 In the implementation scenario shown, the first of the two parties holds a first slice of the private data in Boolean form, which includes the shared slices of each binary bit of the n-bit binary representation of the private data in the modulo 2 space, and the second of the two parties holds the corresponding second slice. Figure 2 As shown, in this embodiment, the method for two parties to jointly convert the form of the private data slices includes the following steps: Step 21, the first party performs a multi-party secure calculation for the first initial bit value of any binary bit in the first slice, and the second party performs a multi-party secure calculation for the second initial bit value of the binary bit in the second slice, according to the position interval i between the binary bit and the lowest bit, so that the first party obtains the first target bit value converted from the first initial bit value in the ni-power space of modulo 2; and the second party obtains the second target bit value converted from the second initial bit value in the ni-power space of modulo 2; Step 22, the first party sequentially combines the first target bit values to obtain a first algebraic value as the first slice of the algebraic form of the private data in the n-power space of modulo 2 and under sharing; Step 23, the second party sequentially combines the second target bit values to obtain a second algebraic value as the second slice of the algebraic form of the private data in the n-power space of modulo 2 and under sharing. The specific execution method of each of the above steps is described below.
[0067] First, in step 21, the first party performs a multi-party secure computation on the first initial bit value of any binary bit in the first slice, and the second party performs a multi-party secure computation on the second initial bit value of the binary bit in the second slice, according to the position interval i between the binary bit and the lowest bit, so that the first party obtains the first target bit value converted from the first initial bit value in the ni-power space of modulo 2; and the second party obtains the second target bit value converted from the second initial bit value in the ni-power space of modulo 2. It can be understood that in the n-bit binary representation of the first slice, the lowest bit can be recorded as the 0th bit, and the binary bits from the low bit to the high bit can be recorded as the 1st bit, the 2nd bit, ..., the n-1th bit in sequence, the first initial bit value of the 0th bit is converted to the first target bit value in the n-power space of modulo 2, the first initial bit value of the 1st bit is converted to the first target bit value in the n-1-power space of modulo 2, ..., and the first initial bit value of the n-1th bit is converted to the first target bit value in the modulo 2 space.
[0068] In one example, the multi-party secure computation is a modular conversion operation from a modulo-2 space to a modulo-2 ni-power space.
[0069] Furthermore, the analog conversion operation includes:
[0070] The first party receives a first random slice of the modulo 2 space and a second random slice of the modulo 2 power ni space from a third party;
[0071] The second party receives a third random shard in the modulo 2 space and a fourth random shard in the modulo 2 power ni space from the third party; the sum of the first random shard and the third random shard is a first random number in the modulo 2 space, and the sum of the second random shard and the fourth random shard is the first random number in the modulo 2 power ni space;
[0072] The first party receives a first intermediate result from the second party, where the first intermediate result is a local operation result of the second initial bit value and the third random slice;
[0073] The first party obtains a difference between a bit value of a corresponding binary bit of an n-bit binary number and the first random number according to the first initial bit value, the first random slice, and the first intermediate result;
[0074] The second party receives a second intermediate result from the first party, where the second intermediate result is a local operation result of the first initial bit value and the first random slice;
[0075] The second party obtains a difference between a bit value of a corresponding binary bit of an n-bit binary number and the first random number according to the second initial bit value, the third random sharding and the second intermediate result;
[0076] The first party performs a local operation based on the difference and the second random slice to obtain the first target bit value;
[0077] The second party performs a local operation based on the difference and the fourth random slice to obtain the second target bit value.
[0078] Further, the first intermediate result is a local operation result of subtracting the second initial bit value from the third random slice;
[0079] The second intermediate result is a local operation result of subtracting the first initial bit value from the first random slice.
[0080] Further, the first party performs a local operation based on the difference and the second random shard, including:
[0081] Taking -1 as the base and the difference as the power, perform a power operation to obtain a first result;
[0082] Performing a multiplication operation on the first result and the second random slice to obtain the first target bit value;
[0083] The second party performs a local operation based on the difference and the fourth random shard, including:
[0084] Taking -1 as the base and the difference as the power, perform a power operation to obtain a first result;
[0085] Performing a multiplication operation on the first result and the fourth random slice to obtain a second result;
[0086] The second result and the difference are summed to obtain the second target bit value.
[0087] For example, the first party has a first initial bit value a1, and the second party has a second initial bit value a2, a=a1+a2. Offline stage: The third party generates a first random number u in the modulo 2 space, splits u into a first random shard u1 in the modulo 2 space and a third random shard u2 in the modulo 2 space, converts u to I(u) in the ni-power space of modulo 2, splits I(u) into a second random shard b1 in the ni-power space of modulo 2 and a fourth random shard b2 in the ni-power space of modulo 2, sends u1 and b1 to the first party, and sends u2 and b2 to the second party. Online stage: The first party locally calculates z1=a1-u1, the second party locally calculates z2=a2-u2, the first party and the second party exchange z1 and z2 to obtain z=au, and the first party locally calculates y1=(-1) z b1, the second party locally calculates y2 = (-1) z b2+z, where y1 is the first target bit value in the ni-power space modulo 2, and y2 is the second target bit value in the ni-power space modulo 2.
[0088] The embodiments of this specification can reduce the communication volume in the offline stage by about half.
[0089] Then in step 22, the first party sequentially combines the first target bit values to obtain a first algebraic value as the first slice of the algebraic form of the private data in the n-th power space modulo 2 and under sharing. It can be understood that each binary bit of the private data has a first target bit value corresponding to each of them. For example, the first target bit value corresponding to the 0th bit of the private data is 1, the first target bit value corresponding to the 1st bit of the private data is 0, the first target bit value corresponding to the 2nd bit of the private data is 0, ..., the first target bit value corresponding to the n-1th bit of the private data is 1, and the first slice of the algebraic form obtained by sequential combination is 1...001.
[0090] For example, the i-th bit of the private data is denoted as xi, and the first target bit value corresponding to the i-th bit is denoted as t(xi). Then the first slice of the above algebraic form can be calculated by get.
[0091] Finally, in step 23, the second party sequentially combines the second target bit values to obtain a second algebraic value as the second slice of the algebraic form of the private data in the n-th power space modulo 2 and under sharing. It can be understood that each binary bit of the private data has a second target bit value corresponding to each of them. For example, the second target bit value corresponding to the 0th bit of the private data is 0, the second target bit value corresponding to the 1st bit of the private data is 0, the second target bit value corresponding to the 2nd bit of the private data is 1, ..., the second target bit value corresponding to the n-1th bit of the private data is 0, and the second slice of the algebraic form obtained by sequential combination is 0...100.
[0092] For example, the i-th bit of the private data is denoted as xi, and the second target bit value corresponding to the i-th bit is denoted as d(xi). Then the second slice of the above algebraic form can be calculated by get.
[0093] Through the method provided in the embodiments of this specification, the first party of the two parties holds a first slice of private data in Boolean form, which includes slices of each binary bit of the n-bit binary representation of the private data in the modulo 2 space and shared, and the second party of the two parties holds the corresponding second slice; first, the first party performs multi-party security calculation on the first initial bit value of any binary bit in the first slice, according to the position interval i between the binary bit and the lowest bit, and the second initial bit value of the binary bit in the second slice provided by the second party, so as to convert the first initial bit value into a first target bit value in the ni-th power space of modulo 2; and enables the second party to obtain the second target bit value; then the first party combines the first target bit values in sequence to obtain a first algebraic value as the first slice of the algebraic form of the private data in the n-th power space of modulo 2 and shared; the corresponding second slice of the algebraic form is obtained by the second party based on the second target bit value. As can be seen from the above, in the embodiments of the present specification, when converting Boolean slices into algebraic slices, instead of converting the modulo 2 space to the modulo 2 n-power space for each binary bit, the modulo 2 space is converted to the modulo 2 ni-power space based on the position interval i between the binary bit and the lowest bit, which can reduce the amount of communication.
[0094] According to another aspect of the embodiment, there is also provided a device for two parties to jointly perform format conversion on private data slices, wherein the first party of the two parties holds a first slice of the private data in Boolean form, which includes each binary bit of the n-bit binary representation of the private data in the modulo 2 space and a shared slice, and the second party of the two parties holds the corresponding second slice; the device is set on the first party, and the device is used to execute the action performed by the first party in the method provided in the embodiment of this specification. Figure 3 FIG. 1 is a schematic block diagram showing an apparatus for jointly converting a private data slice according to an embodiment of the present invention. Figure 3 As shown, the device 300 includes:
[0095] The security calculation unit 31 is used to perform multi-party security calculation on a first initial bit value of any binary bit in the first slice according to a position interval i between the binary bit and the lowest bit and a second initial bit value of the binary bit in the second slice provided by the second party, so as to convert the first initial bit value into a first target bit value in the ni-th power space of modulo 2; and enable the second party to obtain the second target bit value;
[0096] The combining unit 32 is used to sequentially combine the first target bit values obtained by the security calculation unit 31 to obtain a first algebraic value as a first slice of the algebraic form of the privacy data in the n-th power space modulo 2 and under sharing; the corresponding second slice of the algebraic form is obtained by the second party based on the second target bit value.
[0097] Optionally, as an embodiment, the multi-party secure computation is a modular conversion operation from a modular 2 space to a modular 2 ni-power space.
[0098] Furthermore, the security computing unit 31 includes:
[0099] a first receiving subunit, configured to receive a first random shard in a modulo 2 space and a second random shard in a modulo 2 power ni space from a third party; a third random shard in a modulo 2 space and a fourth random shard in a modulo 2 power ni space are held by the second party; a sum of the first random shard and the third random shard is a first random number in a modulo 2 space, and a sum of the second random shard and the fourth random shard is the first random number in a modulo 2 power ni space;
[0100] A second receiving subunit is used to receive an intermediate result from the second party, where the intermediate result is a local operation result of the second initial bit value and the third random slice;
[0101] a first operation subunit, configured to obtain a difference between a bit value of a corresponding binary bit of an n-bit binary number and the first random number according to the first initial bit value, the first random slice received by the first receiving subunit, and the intermediate result received by the second receiving subunit;
[0102] The second operation subunit is used to perform local operation according to the difference obtained by the first operation subunit and the second random slice received by the first receiving subunit to obtain the first target bit value.
[0103] Furthermore, the intermediate result is a local operation result of subtracting the second initial bit value from the third random slice.
[0104] Furthermore, the second operator unit includes:
[0105] An exponentiation module, used for performing an exponentiation operation with -1 as the base and the difference as the power to obtain a first result;
[0106] A multiplication operation module is used to perform a multiplication operation on the first result obtained by the power operation module and the second random slice to obtain the first target bit value.
[0107] According to another embodiment, a system is provided in which two parties jointly perform form conversion on private data slices, wherein the first party 41 of the two parties holds a first slice of the private data in Boolean form, which includes each binary bit of the n-bit binary representation of the private data in the modulo 2 space and a shared slice, and the second party 42 of the two parties holds the corresponding second slice. Figure 4 A schematic block diagram of a system for converting private data slices by two parties according to an embodiment is shown. Figure 4 As shown, the system 400 includes:
[0108] The first party 41 is used for jointly performing multi-party secure computation on a first initial bit value of any binary bit in the first slice, and the second party 42 is used for jointly performing multi-party secure computation on a second initial bit value of the binary bit in the second slice according to a position interval i between the binary bit and the lowest bit, so that the first party 41 obtains a first target bit value converted from the first initial bit value to the ni-power space of modulo 2; and the second party 42 obtains a second target bit value converted from the second initial bit value to the ni-power space of modulo 2;
[0109] The first party 41 is further used to sequentially combine the first target bit values to obtain a first algebraic value as a first slice of the algebraic form of the private data in the n-th power space modulo 2 and under sharing;
[0110] The second party 42 is further used to sequentially combine the second target bit values to obtain a second algebraic value as a second fragmentation of the algebraic form of the private data in the n-th power space modulo 2 and under sharing.
[0111] Optionally, as an embodiment, the multi-party secure computation is a modular conversion operation from a modular 2 space to a modular 2 ni-power space.
[0112] Furthermore, the analog conversion operation includes:
[0113] The first party 41 receives a first random slice of the modulo 2 space and a second random slice of the ni-power modulo 2 space from a third party;
[0114] The second party 42 receives a third random shard in the modulo 2 space and a fourth random shard in the modulo 2 power ni space from the third party; the sum of the first random shard and the third random shard is a first random number in the modulo 2 space, and the sum of the second random shard and the fourth random shard is the first random number in the modulo 2 power ni space;
[0115] The first party 41 receives a first intermediate result from the second party 42, where the first intermediate result is a local operation result of the second initial bit value and the third random slice;
[0116] The first party 41 obtains a difference between a bit value of a corresponding binary bit of an n-bit binary number and the first random number according to the first initial bit value, the first random slice and the first intermediate result;
[0117] The second party 42 receives a second intermediate result from the first party 41, where the second intermediate result is a local operation result of the first initial bit value and the first random slice;
[0118] The second party 42 obtains a difference between a bit value of a corresponding binary bit of an n-bit binary number and the first random number according to the second initial bit value, the third random slicing and the second intermediate result;
[0119] The first party 41 performs a local operation based on the difference and the second random slice to obtain the first target bit value;
[0120] The second party 42 performs a local operation based on the difference and the fourth random slice to obtain the second target bit value.
[0121] Further, the first intermediate result is a local operation result of subtracting the second initial bit value from the third random slice;
[0122] The second intermediate result is a local operation result of subtracting the first initial bit value from the first random slice.
[0123] Further, the first party 41 is specifically configured to:
[0124] Taking -1 as the base and the difference as the power, perform a power operation to obtain a first result;
[0125] Performing a multiplication operation on the first result and the second random slice to obtain the first target bit value;
[0126] The second party 42 is specifically used for:
[0127] Taking -1 as the base and the difference as the power, perform a power operation to obtain a first result;
[0128] Performing a multiplication operation on the first result and the fourth random slice to obtain a second result;
[0129] The second result and the difference are summed to obtain the second target bit value.
[0130] According to another embodiment, there is also provided a computer-readable storage medium having a computer program stored thereon, which, when executed in a computer, causes the computer to execute a combination of Figure 2 The method described.
[0131] According to another embodiment of the present invention, a computing device is provided, including a memory and a processor, wherein the memory stores executable code, and when the processor executes the executable code, the Figure 2 The method described.
[0132] Those skilled in the art should be aware that in one or more of the above examples, the functions described in the present invention can be implemented by hardware, software, firmware or any combination thereof. When implemented by software, these functions can be stored in a computer-readable medium or transmitted as one or more instructions or codes on a computer-readable medium.
[0133] The specific implementation methods described above further illustrate the objectives, technical solutions and beneficial effects of the present invention in detail. It should be understood that the above description is only a specific implementation method of the present invention and is not intended to limit the scope of protection of the present invention. Any modifications, equivalent substitutions, improvements, etc. made on the basis of the technical solution of the present invention should be included in the scope of protection of the present invention.
Claims
1. A method for two parties to jointly perform format conversion on private data slices, wherein the first party of the two parties holds a first slice of private data in Boolean form, which includes a slice of each binary bit of an n-bit binary representation of the private data in a modulo-2 space and a shared slice, and the second party of the two parties holds a corresponding second slice; the method is performed by the first party, and comprises: For a first initial bit value of any binary bit in the first slice, perform multi-party secure computation according to a position interval i between the binary bit and the lowest bit and a second initial bit value of the binary bit in the second slice provided by the second party, so as to convert the first initial bit value into a first target bit value in a modulo 2 ni-th power space; and enable the second party to obtain the second target bit value; Combining the first target bit values in sequence to obtain a first algebraic value as a first slice of the algebraic form of the private data in the n-th power space modulo 2 and under sharing; a corresponding second slice of the algebraic form is obtained by the second party based on the second target bit value; The multi-party secure computation is a modular conversion operation from a modular 2 space to a modular 2 ni-power space; Wherein, the analog conversion operation includes: receiving a first random shard in the modulo 2 space and a second random shard in the modulo 2 power ni space from a third party; a third random shard in the modulo 2 space and a fourth random shard in the modulo 2 power ni space are held by the second party; a sum of the first random shard and the third random shard is a first random number in the modulo 2 space, and a sum of the second random shard and the fourth random shard is the first random number in the modulo 2 power ni space; receiving an intermediate result from the second party, the intermediate result being a local operation result of the second initial bit value and the third random shard; Obtaining a difference between a bit value of a corresponding binary bit of an n-bit binary number and the first random number according to the first initial bit value, the first random slice and the intermediate result; A local operation is performed based on the difference and the second random slice to obtain the first target bit value.
2. The method of claim 1, wherein: The intermediate result is a local operation result of subtracting the second initial bit value from the third random slice.
3. The method of claim 2, wherein: The performing local operation according to the difference and the second random sharding includes: Taking -1 as the base and the difference as the power, perform a power operation to obtain a first result; The first result and the second random slice are multiplied to obtain the first target bit value.
4. A method for two parties to jointly perform format conversion on private data slices, wherein the first party of the two parties holds a first slice of private data in Boolean form, which includes a slice of each binary bit of an n-bit binary representation of the private data in a modulo-2 space and a shared slice, and the second party of the two parties holds a corresponding second slice; the method comprising: The first party jointly performs multi-party secure computation on a first initial bit value of any binary bit in the first slice and the second party on a second initial bit value of the binary bit in the second slice, according to a position interval i between the binary bit and the least significant bit, so that the first party obtains a first target bit value converted from the first initial bit value to the ni-th power space modulo 2; and enabling the second party to obtain a second target bit value obtained by converting the second initial bit value into the ni-th power space modulo 2; The first party sequentially combines the first target bit values to obtain a first algebraic value as a first slice of the algebraic form of the private data in the n-th power space modulo 2 and under sharing; The second party sequentially combines the second target bit values to obtain a second algebraic value as a second fragment of the algebraic form of the private data in the n-th power space modulo 2 and under sharing; The multi-party secure computation is a modular conversion operation from a modular 2 space to a modular 2 ni-power space; Wherein, the analog conversion operation includes: The first party receives a first random slice of the modulo 2 space and a second random slice of the modulo 2 power ni space from a third party; The second party receives a third random shard in the modulo 2 space and a fourth random shard in the modulo 2 power ni space from the third party; the sum of the first random shard and the third random shard is a first random number in the modulo 2 space, and the sum of the second random shard and the fourth random shard is the first random number in the modulo 2 power ni space; The first party receives a first intermediate result from the second party, where the first intermediate result is a local operation result of the second initial bit value and the third random slice; The first party obtains a difference between a bit value of a corresponding binary bit of an n-bit binary number and the first random number according to the first initial bit value, the first random slice, and the first intermediate result; The second party receives a second intermediate result from the first party, where the second intermediate result is a local operation result of the first initial bit value and the first random slice; The second party obtains a difference between a bit value of a corresponding binary bit of an n-bit binary number and the first random number according to the second initial bit value, the third random sharding and the second intermediate result; The first party performs a local operation based on the difference and the second random slice to obtain the first target bit value; The second party performs a local operation based on the difference and the fourth random slice to obtain the second target bit value.
5. The method of claim 4, wherein: The first intermediate result is a local operation result of subtracting the second initial bit value from the third random slice; The second intermediate result is a local operation result of subtracting the first initial bit value from the first random slice.
6. The method of claim 5, wherein: The first party performs a local operation based on the difference and the second random shard, including: Taking -1 as the base and the difference as the power, perform a power operation to obtain a first result; Performing a multiplication operation on the first result and the second random slice to obtain the first target bit value; The second party performs a local operation based on the difference and the fourth random shard, including: Taking -1 as the base and the difference as the power, perform a power operation to obtain a first result; Performing a multiplication operation on the first result and the fourth random slice to obtain a second result; The second result and the difference are summed to obtain the second target bit value.
7. A device for jointly converting a private data slice by two parties, wherein the first party of the two parties holds a first slice of the private data in Boolean form, including a slice of each binary bit of an n-bit binary representation of the private data in a modulo-2 space and a shared slice, and the second party of the two parties holds a corresponding second slice; the device is arranged on the first party, and comprises: a security calculation unit, configured to perform multi-party security calculation on a first initial bit value of any binary bit in the first slice according to a position interval i between the binary bit and the lowest bit and a second initial bit value of the binary bit in the second slice provided by the second party, so as to convert the first initial bit value into a first target bit value in a modulo 2 power space of ni; and enabling the second party to obtain a second target bit value; a combining unit, configured to sequentially combine the first target bit values obtained by the secure computing unit to obtain a first algebraic value as a first slice of the algebraic form of the private data in the n-th power space modulo 2 and under sharing; a corresponding second slice of the algebraic form is obtained by the second party based on the second target bit value; The multi-party secure computation is a modular conversion operation from a modular 2 space to a modular 2 ni-power space; Wherein, the secure computing unit comprises: a first receiving subunit, configured to receive a first random shard in a modulo 2 space and a second random shard in a modulo 2 power ni space from a third party; a third random shard in a modulo 2 space and a fourth random shard in a modulo 2 power ni space are held by the second party; a sum of the first random shard and the third random shard is a first random number in a modulo 2 space, and a sum of the second random shard and the fourth random shard is the first random number in a modulo 2 power ni space; A second receiving subunit is used to receive an intermediate result from the second party, where the intermediate result is a local operation result of the second initial bit value and the third random slice; a first operation subunit, configured to obtain a difference between a bit value of a corresponding binary bit of an n-bit binary number and the first random number according to the first initial bit value, the first random slice received by the first receiving subunit, and the intermediate result received by the second receiving subunit; The second operation subunit is used to perform local operation according to the difference obtained by the first operation subunit and the second random slice received by the first receiving subunit to obtain the first target bit value.
8. The device according to claim 7, wherein: The intermediate result is a local operation result of subtracting the second initial bit value from the third random slice.
9. The device of claim 8, wherein: The second operator unit comprises: An exponentiation module, used for performing an exponentiation operation with -1 as the base and the difference as the power to obtain a first result; A multiplication operation module is used to perform a multiplication operation on the first result obtained by the power operation module and the second random slice to obtain the first target bit value.
10. A system for two parties to jointly perform format conversion on private data slices, wherein the first party of the two parties holds a first slice of private data in Boolean form, including a slice of each binary bit of an n-bit binary representation of the private data in a modulo-2 space and a shared slice, and the second party of the two parties holds a corresponding second slice; the system comprising: The first party is used to jointly perform multi-party secure computation on a first initial bit value of any binary bit in the first slice, and the second party is used to jointly perform multi-party secure computation on a second initial bit value of the binary bit in the second slice according to a position interval i between the binary bit and the lowest bit, so that the first party obtains a first target bit value converted from the first initial bit value to a ni-power space modulo 2; and the second party obtains a second target bit value converted from the second initial bit value to a ni-power space modulo 2; The first party is further used to sequentially combine the first target bit values to obtain a first algebraic value as a first slice of the algebraic form of the private data in the n-th power space modulo 2 and under sharing; The second party is further used to sequentially combine the second target bit values to obtain a second algebraic value as a second fragment of the algebraic form of the private data in the n-th power space modulo 2 and under sharing; The multi-party secure computation is a modular conversion operation from a modular 2 space to a modular 2 ni-power space; Wherein, the analog conversion operation includes: The first party receives a first random slice of the modulo 2 space and a second random slice of the modulo 2 power ni space from a third party; The second party receives a third random shard in the modulo 2 space and a fourth random shard in the modulo 2 power ni space from the third party; the sum of the first random shard and the third random shard is a first random number in the modulo 2 space, and the sum of the second random shard and the fourth random shard is the first random number in the modulo 2 power ni space; The first party receives a first intermediate result from the second party, where the first intermediate result is a local operation result of the second initial bit value and the third random slice; The first party obtains a difference between a bit value of a corresponding binary bit of an n-bit binary number and the first random number according to the first initial bit value, the first random slice, and the first intermediate result; The second party receives a second intermediate result from the first party, where the second intermediate result is a local operation result of the first initial bit value and the first random slice; The second party obtains a difference between a bit value of a corresponding binary bit of an n-bit binary number and the first random number according to the second initial bit value, the third random sharding and the second intermediate result; The first party performs a local operation based on the difference and the second random slice to obtain the first target bit value; The second party performs a local operation based on the difference and the fourth random slice to obtain the second target bit value.
11. The system of claim 10, wherein: The first intermediate result is a local operation result of subtracting the second initial bit value from the third random slice; The second intermediate result is a local operation result of subtracting the first initial bit value from the first random slice.
12. The system of claim 11, wherein: The first party is specifically used to: Taking -1 as the base and the difference as the power, perform a power operation to obtain a first result; Performing a multiplication operation on the first result and the second random slice to obtain the first target bit value; The second party is specifically used for: Taking -1 as the base and the difference as the power, perform a power operation to obtain a first result; Performing a multiplication operation on the first result and the fourth random slice to obtain a second result; The second result and the difference are summed to obtain the second target bit value.
13. A computer-readable storage medium having a computer program stored thereon, which, when executed in a computer, causes the computer to execute the method according to any one of claims 1 to 6.
14. A computing device comprising a memory and a processor, wherein the memory stores executable codes, and when the processor executes the executable codes, the method according to any one of claims 1 to 6 is implemented.
Citation Information
Patent Citations
Adaptive sub-patches system, apparatus and method
CN108734638A
Method and device for carrying out security operation on multi-party private data
CN111523144A
Power operation residue computing device
JP1991166586A
Information secure proactive multiparty computation (PMPC) protocol with linear bandwidth complexity
US9450938B1
