Method and device for encrypting and transmitting private information
Through the privacy information encryption transmission method of packet encoding and secret sharding, random number sequences are used to generate auxiliary factors, solving the time-consuming and complex problems in homomorphic encryption, and quickly filtering out feature values with high correlation with label values, improving screening efficiency and security.
Patent Information
- Application Number
- CN202411326210.X
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2024-09-23
- Publication Date
- 2025-08-26
- Estimated Expiration
- 2044-09-23
AI Technical Summary
In the prior art, it is time-consuming and complex to screen out eigenvalues with high correlation with label values, especially in the homomorphic encryption process, which leads to low eigenvalue screening efficiency.
Through packet encoding and secret sharding, the private information encryption transmission method between the first device and the second device is used to generate auxiliary factors by random number sequence splitting to realize the calculation of intermediate ciphertext and result sharding, avoid directly exposing feature data and improve screening efficiency.
Without leaking feature data, the feature values with high correlation with label values are quickly filtered out, which improves the efficiency and security of feature value screening.
Smart Images

Figure CN119382870B_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the technical field of data privacy, and in particular to a method and device for encrypting and transmitting private information. Background Art
[0002] When building a joint model, the tag device provides the tag value, and the feature device provides the feature value to jointly train the joint model. Before joint training, since the feature device has many feature values, it is necessary to filter out the feature values that are highly correlated with the tag value from these many feature values to train the joint model.
[0003] Generally speaking, feature devices and tag devices need to use homomorphic encryption to determine feature values that are highly correlated with tag values. During the homomorphic encryption process, multiple public key encryption and public key decryption operations are required. Public key encryption and public key decryption are very complex and time-consuming operations, which will make the process of screening feature values very time-consuming and complex.
[0004] In summary, how to quickly screen out feature values that are highly correlated with label values is a technical problem that needs to be solved urgently. Summary of the Invention
[0005] The embodiments of the present invention provide a method and apparatus for encrypting and transmitting private information, so as to solve the problem in the prior art that it is time-consuming and complicated to screen out feature values that are highly correlated with tag values.
[0006] In a first aspect, an embodiment of the present invention provides a method for encrypting and transmitting private information, which is applicable to a first device having user information; the user information includes feature information of at least one feature dimension; the method includes: for any feature dimension, the first device groups and encodes the feature information of each user information under the feature dimension to obtain the encoding information of each group; any group is used to characterize the category of the corresponding feature information; for the encoding information of any group, the first device splits each encoding value in the encoding information of the group according to a set principle to obtain a first feature secret fragment and a second feature secret fragment, and sends the second feature secret fragment to a second device; the second device has label information corresponding to the each user information; the first device determines the first label secret fragment, the first feature secret fragment and the first auxiliary factor sent by the second device The first fragment of the intermediate ciphertext; the first device determines the intermediate ciphertext based on the first fragment of the intermediate ciphertext and the second fragment of the intermediate ciphertext sent by the second device; the second fragment of the intermediate ciphertext is determined by the second device based on the second label secret fragment, the second feature secret fragment and the second auxiliary factor; the first device determines the first result fragment based on the intermediate ciphertext and the first auxiliary factor and sends the first result fragment to the second device; the first result fragment is used to determine the label result corresponding to the feature information of the group together with the second result fragment generated by the second device; wherein, the first label secret fragment and the second label secret fragment are obtained by the second device splitting the label information corresponding to the group according to the set principle; the first auxiliary factor and the second auxiliary factor are obtained by splitting the random number sequence according to the set principle.
[0007] Optionally, the random number sequence is generated by a third device; the first auxiliary factor and the second auxiliary factor are generated by the third device splitting the random number sequence according to the set principle and then sending them to the first device and the second device respectively.
[0008] Optionally, the random number sequence includes a first random number a, a second random number b and a third random number c; the first auxiliary factor includes a1 value, b1 value and c1 value; the second auxiliary factor includes a2 value, b2 value and c2 value; the setting principle is that the value of the i-th bit in the split object is equal to the sum of the value of the i-th bit in the first split result and the value of the i-th bit in the second split result.
[0009] Optionally, the first device determines the intermediate ciphertext first fragment based on the first label secret fragment, the first characteristic secret fragment and the first auxiliary factor sent by the second device, including: the first device determines the first part of the intermediate ciphertext first fragment based on the first characteristic secret fragment and the a1 value; the first device determines the second part of the intermediate ciphertext first fragment based on the first label secret fragment and the b1 value sent by the second device; the first device determines the intermediate ciphertext based on the intermediate ciphertext first fragment and the intermediate ciphertext second fragment sent by the second device, including: the first device sums the first part of the intermediate ciphertext first fragment with the first part of the intermediate ciphertext second fragment sent by the second device to obtain the first part of the intermediate ciphertext; the first device sums the second part of the intermediate ciphertext first fragment with the second part of the intermediate ciphertext second fragment to obtain the second part of the intermediate ciphertext.
[0010] Optionally, the third random number c is the product of the first random number a and the second random number b; the first part of the intermediate ciphertext includes a first intermediate ciphertext element corresponding to each user information; the second part of the intermediate ciphertext includes a second intermediate ciphertext element corresponding to each user information; the first device determines a first result shard based on the intermediate ciphertext and the first auxiliary factor, including: the first device performs a multiplication gate calculation based on the first auxiliary factor and the first intermediate ciphertext element and the second intermediate ciphertext element corresponding to the same user information in the intermediate ciphertext to determine the first multiplication shard corresponding to the user information; the first device accumulates the first multiplication shards corresponding to each user information to obtain the first result shard.
[0011] Optionally, the first device groups and encodes each feature information of each user information under the feature dimension to obtain encoding information of each group, including: the first device groups each feature information of each user information under the feature dimension to obtain multiple groups of feature information; for any group of feature information, the first device one-hot encodes the group feature information to obtain encoding information of the group corresponding to the group feature information, and the number of encoding values in the encoding information of the group is the same as the number of the group feature information; the encoding value corresponding to the feature information of the group in the encoding information of the group is a first value, and the encoding value corresponding to the feature information of the group that does not belong to the group in the encoding information of the group is a second value.
[0012] In a second aspect, an embodiment of the present invention provides a method for encrypting and transmitting private information, which is applicable to a second device having tag information corresponding to user information; the method comprises: the second device splitting the tag information according to a set principle to obtain a first tag secret fragment and a second tag secret fragment, and sending the first tag secret fragment to the first device; the first device has user information corresponding to the tag information; the user information includes feature information of at least one feature dimension; each feature information under any feature dimension is grouped and encoded to obtain encoding information of each group under any feature dimension; any group is used to characterize the category of the corresponding feature information; the second device divides the tag information into two parts according to the second feature secret fragment, the second tag secret fragment and the second auxiliary factor sent by the first device. , determine the second fragment of the intermediate ciphertext and send it to the first device; the second device determines the intermediate ciphertext based on the second fragment of the intermediate ciphertext and the first fragment of the intermediate ciphertext sent by the first device; the first fragment of the intermediate ciphertext is determined by the first device based on the first label information, the first feature secret fragment, and the first auxiliary factor; the first feature secret fragment and the second feature secret fragment are obtained by the first device by splitting each encoding value in the encoding information of any group according to the set principle; the second device determines the second result fragment based on the intermediate ciphertext and the second auxiliary factor and receives the first result fragment sent by the first device; the second device determines the label result corresponding to the feature information of the group based on the second result fragment and the first result fragment.
[0013] Optionally, the random number sequence is generated by a third device; the first auxiliary factor and the second auxiliary factor are generated by the third device splitting the random number sequence according to the set principle and then sending them to the first device and the second device respectively.
[0014] Optionally, the random number sequence includes a first random number a, a second random number b and a third random number c; the first auxiliary factor includes a1 value, b1 value and c1 value; the second auxiliary factor includes a2 value, b2 value and c2 value; the setting principle is that the value of the i-th bit in the split object is equal to the sum of the value of the i-th bit in the first split result and the value of the i-th bit in the second split result.
[0015] Optionally, the second device determines the intermediate ciphertext second fragment based on the second characteristic secret fragment, the second label secret fragment and the second auxiliary factor sent by the first device, including: the second device determines the first part of the intermediate ciphertext second fragment based on the second label secret fragment and the b2 value; the second device determines the second part of the intermediate ciphertext second fragment based on the second characteristic secret fragment and the a2 value sent by the first device; the second device determines the intermediate ciphertext based on the intermediate ciphertext second fragment and the intermediate ciphertext first fragment sent by the first device, including: the second device sums the first part of the intermediate ciphertext second fragment with the first part of the intermediate ciphertext first fragment sent by the first device to obtain the first part of the intermediate ciphertext; the second device sums the second part of the intermediate ciphertext second fragment with the second part of the intermediate ciphertext second fragment to obtain the second part of the intermediate ciphertext.
[0016] Optionally, the third random number c is the product of the first random number a and the second random number b; the first part of the intermediate ciphertext includes a first intermediate ciphertext element corresponding to each user information; the second part of the intermediate ciphertext includes a second intermediate ciphertext element corresponding to each user information; the second device determines a second result shard based on the intermediate ciphertext and the second auxiliary factor, including: the second device performs a multiplication gate calculation based on the second auxiliary factor and the first intermediate ciphertext element and the second intermediate ciphertext element corresponding to the same user information in the intermediate ciphertext to determine the second multiplication shard corresponding to the user information; the second device accumulates the second multiplication shards corresponding to each user information to obtain the second result shard.
[0017] Optionally, the second device receives the number of each feature information under the feature dimension sent by the first device; the second device determines the label result corresponding to the feature information of the group based on the second result slice and the first result slice, including: the second device sums the first result slice and the second result slice to obtain the number of positive samples of the feature information corresponding to the group; the second device determines the number of negative samples of the feature information corresponding to the group based on the number of each feature information under the feature dimension corresponding to the group and the number of positive samples of the feature information corresponding to the group; determines the label result corresponding to the feature information of the group based on the number of positive samples of the feature information in the group and the number of negative samples of the feature information in the group.
[0018] In a third aspect, an embodiment of the present invention provides a privacy information encryption and transmission device, which is applicable to a first device having user information; the user information includes feature information of at least one feature dimension; the device includes: a first acquisition unit for: for any feature dimension, the first device groups and encodes the feature information of each user information under the feature dimension to obtain the encoding information of each group; any group is used to characterize the category of the corresponding feature information; a first processing unit is used for: for the encoding information of any group, the first device splits each encoding value in the encoding information of the group according to a set principle to obtain a first feature secret fragment and a second feature secret fragment, and sends the second feature secret fragment to a second device; the second device has label information corresponding to the user information; the first device processes the first label secret fragment, the first feature secret fragment and the second feature secret fragment according to the first label secret fragment, the first feature secret fragment and the second feature secret fragment sent by the second device. The first auxiliary factor determines the first fragment of the intermediate ciphertext; the first device determines the intermediate ciphertext based on the first fragment of the intermediate ciphertext and the second fragment of the intermediate ciphertext sent by the second device; the second fragment of the intermediate ciphertext is determined by the second device based on the second label secret fragment, the second feature secret fragment and the second auxiliary factor; the first device determines the first result fragment based on the intermediate ciphertext and the first auxiliary factor and sends the first result fragment to the second device; the first result fragment is used to determine the label result corresponding to the feature information of the group together with the second result fragment generated by the second device; wherein, the first label secret fragment and the second label secret fragment are obtained by the second device splitting the label information corresponding to the group according to the set principle; the first auxiliary factor and the second auxiliary factor are obtained by splitting the random number sequence according to the set principle.
[0019] Optionally, the random number sequence is generated by a third device; the first auxiliary factor and the second auxiliary factor are generated by the third device splitting the random number sequence according to the set principle and then sending them to the first device and the second device respectively.
[0020] Optionally, the random number sequence includes a first random number a, a second random number b and a third random number c; the first auxiliary factor includes a1 value, b1 value and c1 value; the second auxiliary factor includes a2 value, b2 value and c2 value; the setting principle is that the value of the i-th bit in the split object is equal to the sum of the value of the i-th bit in the first split result and the value of the i-th bit in the second split result.
[0021] Optionally, the first processing unit is specifically used to: the first device determines the first part of the intermediate ciphertext first fragment based on the first feature secret fragment and the a1 value; the first device determines the second part of the intermediate ciphertext first fragment based on the first label secret fragment and the b1 value sent by the second device; the first device determines the intermediate ciphertext based on the intermediate ciphertext first fragment and the intermediate ciphertext second fragment sent by the second device, including: the first device sums the first part of the intermediate ciphertext first fragment with the first part of the intermediate ciphertext second fragment sent by the second device to obtain the first part of the intermediate ciphertext; the first device sums the second part of the intermediate ciphertext first fragment with the second part of the intermediate ciphertext second fragment to obtain the second part of the intermediate ciphertext.
[0022] Optionally, the third random number c is the product of the first random number a and the second random number b; the first part of the intermediate ciphertext includes a first intermediate ciphertext element corresponding to each user information; the second part of the intermediate ciphertext includes a second intermediate ciphertext element corresponding to each user information; the first processing unit is specifically used to: the first device performs a multiplication gate calculation based on the first auxiliary factor and the first intermediate ciphertext element and the second intermediate ciphertext element corresponding to the same user information in the intermediate ciphertext to determine the first multiplication shard corresponding to the user information; the first device accumulates the first multiplication shards corresponding to each user information to obtain the first result shard.
[0023] Optionally, the first acquisition unit is specifically used to: the first device groups the feature information of each user information under the feature dimension to obtain multiple groups of feature information; for any group of feature information, the first device one-hot encodes the group feature information to obtain the coding information of the group corresponding to the group feature information, and the number of coding values in the coding information of the group is the same as the number of the group feature information; the coding value corresponding to the feature information of the group in the coding information of the group is a first value, and the coding value corresponding to the feature information of the group that does not belong to the feature information of the group in the coding information of the group is a second value.
[0024] In a fourth aspect, an embodiment of the present invention provides a device for encrypting and transmitting private information, which is applicable to a second device having tag information corresponding to user information;
[0025] The second acquisition unit is configured to: the second device split the tag information according to a set principle to obtain a first tag secret fragment and a second tag secret fragment, and send the first tag secret fragment to the first device; the first device has user information corresponding to the tag information; the user information includes feature information of at least one feature dimension; each feature information under any feature dimension is grouped and encoded to obtain encoding information of each group under any feature dimension; each group is used to represent the category of the corresponding feature information;
[0026] The second processing unit is used for: the second device determines the second fragment of the intermediate ciphertext according to the second characteristic secret fragment, the second label secret fragment and the second auxiliary factor sent by the first device and sends it to the first device; the second device determines the intermediate ciphertext according to the second fragment of the intermediate ciphertext and the first fragment of the intermediate ciphertext sent by the first device; the intermediate ciphertext first fragment is determined by the first device according to the first label information, the first characteristic secret fragment and the first auxiliary factor; the first characteristic secret fragment and the second characteristic secret fragment are obtained by the first device by splitting each coding value in the coding information of any group according to the set principle; the second device determines the second result fragment according to the intermediate ciphertext and the second auxiliary factor and receives the first result fragment sent by the first device; the second device determines the label result corresponding to the characteristic information of the group according to the second result fragment and the first result fragment.
[0027] Optionally, the random number sequence is generated by a third device; the first auxiliary factor and the second auxiliary factor are generated by the third device splitting the random number sequence according to the set principle and then sending them to the first device and the second device respectively.
[0028] Optionally, the random number sequence includes a first random number a, a second random number b and a third random number c; the first auxiliary factor includes a1 value, b1 value and c1 value; the second auxiliary factor includes a2 value, b2 value and c2 value; the setting principle is that the value of the i-th bit in the split object is equal to the sum of the value of the i-th bit in the first split result and the value of the i-th bit in the second split result.
[0029] Optionally, the second processing unit is specifically used for: the second device determines the first part of the intermediate ciphertext second fragment based on the second label secret fragment and the b2 value; the second device determines the second part of the intermediate ciphertext second fragment based on the second feature secret fragment and the a2 value sent by the first device; the second processing unit is specifically used for: the second device sums the first part of the intermediate ciphertext second fragment with the first part of the intermediate ciphertext first fragment sent by the first device to obtain the first part of the intermediate ciphertext; the second device sums the second part of the intermediate ciphertext second fragment with the second part of the intermediate ciphertext second fragment to obtain the second part of the intermediate ciphertext.
[0030] Optionally, the third random number c is the product of the first random number a and the second random number b; the first part of the intermediate ciphertext includes a first intermediate ciphertext element corresponding to each user information; the second part of the intermediate ciphertext includes a second intermediate ciphertext element corresponding to each user information; the second processing unit is specifically used to: the second device performs a multiplication gate calculation based on the second auxiliary factor and the first intermediate ciphertext element and the second intermediate ciphertext element corresponding to the same user information in the intermediate ciphertext to determine the second multiplication shard corresponding to the user information; the second device accumulates the second multiplication shards corresponding to each user information to obtain the second result shard.
[0031] Optionally, the second processing unit is also used for: the second device receives the number of each feature information under the feature dimension sent by the first device; the second processing unit is specifically used for: the second device sums the first result slice and the second result slice to obtain the number of positive samples of the feature information corresponding to the group; the second device determines the number of negative samples of the feature information corresponding to the group based on the number of each feature information under the feature dimension corresponding to the group and the number of positive samples of the feature information corresponding to the group; determines the label result corresponding to the feature information of the group based on the number of positive samples of the feature information in the group and the number of negative samples of the feature information in the group.
[0032] In a fifth aspect, an embodiment of the present application further provides a computing device, comprising: a memory for storing programs; a processor for calling the programs stored in the memory and executing a method for encrypting and transmitting private information as in the first aspect according to the obtained programs.
[0033] In a sixth aspect, an embodiment of the present application further provides a computer-readable non-volatile storage medium, comprising a computer-readable program. When a computer reads and executes the computer-readable program, the computer executes a method for encrypting and transmitting private information as described in the first aspect.
[0034] In the seventh aspect, an embodiment of the present application provides a computer program product, which includes a computer program stored on a computer-readable storage medium, and the computer program includes program instructions. When the program instructions are executed by a computer device, the computer device executes the steps of a method for encrypting and transmitting private information in the first aspect above. BRIEF DESCRIPTION OF THE DRAWINGS
[0035] In order to more clearly illustrate the technical solutions in the embodiments of the present invention, the following briefly introduces the drawings required for use in the description of the embodiments. Obviously, the drawings described below are only some embodiments of the present invention. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying any creative work.
[0036] Figure 1 A data comparison chart of Enterprise A and Enterprise B provided in an embodiment of the present invention;
[0037] Figure 2 A flowchart of a method for encrypting and transmitting private information provided by an embodiment of the present invention;
[0038] Figure 3 A flow chart of a method for generating a first cofactor and a second cofactor provided in an embodiment of the present invention;
[0039] Figure 4 A flow chart of a method for obtaining coding information of each group provided by an embodiment of the present invention;
[0040] Figure 5 A flow chart of a method for determining the first fragment of an intermediate ciphertext provided by an embodiment of the present invention;
[0041] Figure 6 A flow chart of a method for determining the second fragment of an intermediate ciphertext provided by an embodiment of the present invention;
[0042] Figure 7 A flow chart of a method for determining intermediate ciphertext provided by an embodiment of the present invention;
[0043] Figure 8 A flow chart of a method for determining a first result fragment provided by an embodiment of the present invention;
[0044] Figure 9 A flow chart of a method for determining a second result fragment provided by an embodiment of the present invention;
[0045] Figure 10 A flow chart of a method for determining label results corresponding to each feature information of a group provided by an embodiment of the present invention;
[0046] Figure 11An interactive diagram for encrypted transmission of private information provided by an embodiment of the present invention;
[0047] Figure 12 A schematic diagram of the structure of a device for encrypting and transmitting private information provided by an embodiment of the present invention;
[0048] Figure 13 A schematic diagram of the structure of a device for encrypting and transmitting private information provided by an embodiment of the present invention;
[0049] Figure 14 A schematic diagram of the structure of a computing device provided in an embodiment of the present invention. DETAILED DESCRIPTION
[0050] To make the objectives, technical solutions, and advantages of the present invention more apparent, the present invention will be further described in detail below with reference to the accompanying drawings. It should be understood that the embodiments described herein are merely some, rather than all, of the present invention. All other embodiments derived by persons of ordinary skill in the art based on the embodiments of the present invention without inventive effort are intended to fall within the scope of protection of the present invention.
[0051] In one possible scenario, both Enterprise A and Enterprise B need to build an evaluation model to assess the user's creditworthiness. Enterprise A's corresponding feature device has features X1, X2, X3, X4, and X5, but lacks label values, making it impossible to directly build an evaluation model. Enterprise B's corresponding label device has feature X6 and label value Y, where Y represents the user's credit rating. Although independent evaluation models can be built, due to the lack of features, the model's effectiveness may not be very good. See [1] for more information. Figure 1 Therefore, if companies A and B work together to build an evaluation model, the effect will obviously be better than if company B builds the model independently.
[0052] Before companies A and B jointly build an evaluation model, they need to filter out those with high correlation to the tag value from the numerous features in company A's feature device, as company A's feature device has many features, but not all of them are correlated with the tag value Y. However, company A's feature device cannot directly send all of its features to company B's tag device, which could lead to data leakage in company A.
[0053] In one possible scenario, the party with the tag value is identified as the tag device, and the party with only the feature is identified as the feature device. Then, through homomorphic encryption, the tag device encrypts its own tag and sends it to the feature device. The feature device then bins the plaintext and homomorphically calculates the sum of the ciphertext tags based on the binning results. It then sends the total number of each group and the aggregated ciphertext tag sum to the tag device. Based on the data sent by the feature device, the tag device can then determine which features are relevant to the tag value, thereby filtering out features with high correlation from the numerous features. For example, if there are 1 million samples, the tag device first needs to perform 1 million public key encryption operations and then send these 1 million ciphertexts to the feature device. The feature device then performs 1 million homomorphic addition operations and sends the results back to the tag device. Finally, the tag device decrypts the data, with the number of operations being related to the number of bins the feature device has binned. Public key encryption is a time-consuming operation, resulting in low feature selection efficiency.
[0054] In summary, the embodiments of the present invention provide a method for encrypting and transmitting private information, so as to solve the problem of low efficiency in feature screening.
[0055] like Figure 2 FIG. 1 is a flow chart of a method for encrypting and transmitting private information provided by an embodiment of the present invention, which includes the following steps:
[0056] In step 201 , for any characteristic dimension, the first device performs group encoding on characteristic information of each user information under the characteristic dimension to obtain encoding information of each group.
[0057] In this embodiment of the present invention, a device with user information is a first device, and a device with tag information corresponding to each piece of user information is a second device. For any feature dimension, the first device groups and encodes the feature information of each user information under that feature dimension to obtain encoded information for each group. This obscures the original feature information and enables the feature device to transmit the encoded information to the second device through private information encryption without exposing the actual feature data. Each group represents the category of the corresponding feature information.
[0058] Step 202: For any group of coded information, the first device splits each coded value in the group of coded information according to a set principle to obtain a first characteristic secret fragment and a second characteristic secret fragment, and sends the second characteristic secret fragment to the second device.
[0059] In this embodiment of the present invention, for any group of encoded information, the first device splits each encoded value in the group's encoded information according to a set principle to obtain a first characteristic secret fragment and a second characteristic secret fragment. In this way, if only the second characteristic secret fragment is sent to the second device, the first and second devices both possess each other's secret fragments, facilitating the subsequent determination of the label result corresponding to the group's characteristic information based on the corresponding auxiliary factors and secret fragments. Similarly, the second device also splits the label value according to the set principle to obtain a first label secret fragment and a second label secret fragment, and sends the first label secret fragment to the first device.
[0060] Step 203: The first device determines a first intermediate ciphertext fragment based on the first tag secret fragment, the first feature secret fragment, and the first auxiliary factor sent by the second device.
[0061] In this embodiment of the present invention, the first device determines the first intermediate ciphertext fragment based on the first tag secret fragment, the first characteristic secret fragment, and the first auxiliary factor sent by the second device. Similarly, the second device determines the second intermediate ciphertext fragment based on the second characteristic secret fragment, the second tag secret fragment, and the second auxiliary factor sent by the first device. The first and second auxiliary factors are obtained by splitting the random number sequence according to a predetermined principle.
[0062] In step 204, the first device determines the intermediate ciphertext based on the first fragment of the intermediate ciphertext and the second fragment of the intermediate ciphertext sent by the second device.
[0063] In this embodiment of the present invention, the first device adds the intermediate ciphertext first fragment to the intermediate ciphertext second fragment sent by the second device to obtain the intermediate ciphertext. Similarly, the second device also receives the intermediate ciphertext first fragment sent by the first device and then adds the intermediate ciphertext first fragment to the intermediate ciphertext second fragment to obtain the intermediate ciphertext.
[0064] Step 205: The first device determines a first result fragment based on the intermediate ciphertext and the first auxiliary factor and sends the first result fragment to the second device.
[0065] In an embodiment of the present invention, the first device determines a first result slice based on the intermediate ciphertext and the first auxiliary factor and sends the first result slice to the second device. The second device determines a second result slice based on the intermediate ciphertext and the second auxiliary factor. Then, the second device determines a label result corresponding to the characteristic information of the group based on the first result slice and the second result slice.
[0066] It can be seen from the above steps 201 to 205 that the first device is based on the first auxiliary factor, and the second device is based on the second auxiliary factor. By encrypting the privacy information, the first device sends the encrypted data, that is, the first result shard to the second device without exposing its own data, so that the second device can subsequently determine the label result corresponding to the characteristic information of the group according to the first result shard.
[0067] In an embodiment of the present invention, it is first necessary to determine how the first auxiliary factor and the second auxiliary factor are generated. In one possible scenario, the first auxiliary factor and the second auxiliary factor are generated by mutual agreement between the first device and the second device in a manner that encrypts private information, but this method is relatively complex. In another possible scenario, the first auxiliary factor and the second auxiliary factor are generated by a neutral device. In this way, the neutral device can directly set the association relationship between the first auxiliary factor and the second auxiliary factor, so that the first device and the second device can subsequently determine the label result corresponding to the characteristic information of the group based on the first auxiliary factor and the second auxiliary factor.
[0068] like Figure 3 FIG. 1 is a flow chart of a method for generating a first auxiliary factor and a second auxiliary factor provided by an embodiment of the present invention, the method comprising the following steps:
[0069] In step 301 , a third device performs splitting according to the set principle based on the random number sequence to obtain a first auxiliary factor and a second auxiliary factor.
[0070] In an embodiment of the present invention, the third device is a neutral device that generates a random number sequence, wherein the random number sequence includes a first random number a, a second random number b, and a third random number c. The random number sequence is then split according to a set principle to obtain a first auxiliary factor and a second auxiliary factor, wherein the first auxiliary factor includes a1 value, b1 value, and c1 value. The second auxiliary factor includes a2 value, b2 value, and c2 value. The set principle is that the value of the i-th bit in the split object is equal to the sum of the value of the i-th bit in the first split result and the value of the i-th bit in the second split result. For example, the third device generates a random number sequence including a first random number a, a second random number b, and a third random number c, wherein a=10, b=20, c=a*b=200, and then splits the random number sequence according to the set principle to obtain a first auxiliary factor and a second auxiliary factor, wherein a1=15, b1=12, and c1=90 for the first auxiliary factor. The second auxiliary factor has a2=-5, b2=8, c2=110, where a=a1+a2, b=b1+b2, and c=c1+c2.
[0071] In step 302 , the third device sends the first auxiliary factor to the first device and sends the second auxiliary factor to the second device.
[0072] In this embodiment of the present invention, the third device sends the first auxiliary factor to the first device and the second auxiliary factor to the second device. If there are N characteristic dimensions, the third device needs to generate N random number sequences, and N sets of first and second auxiliary factors need to be generated based on the N random number sequences.
[0073] It can be seen from the above steps 301 to 302 that the generation efficiency of the auxiliary factors is improved by introducing the third device to construct the random number sequence and splitting it according to the set principle to obtain the first auxiliary factor and the second auxiliary factor.
[0074] The following describes how the first device performs group encoding on each feature information under the feature dimension to obtain encoding information of each group.
[0075] like Figure 4 FIG. 1 is a flow chart of a method for obtaining coding information of each group provided by an embodiment of the present invention, the method comprising the following steps:
[0076] In step 401 , the first device groups each feature information of each user information under a feature dimension to obtain multiple groups of feature information.
[0077] In the embodiment of the present invention, for any feature dimension, the first device bins the feature information of each user information under the feature dimension, wherein the binning can be equal-width binning, equal-frequency binning, chi-square binning, optimal binning, or other binning methods, which are not limited here. The feature information of the feature device is shown in Table 1:
[0078] Table 1 Feature information table
[0079]
[0080]
[0081] For example, if feature dimension 1 is educational background, then the feature information under feature dimension 1 is (Bachelor, Master, Bachelor, Master). After binning, group 1 is (0, 2) and group 2 is (1, 3).
[0082] In step 402 , for any set of feature information, the first device performs one-hot encoding on the group feature information to obtain encoding information of the group corresponding to the group feature information.
[0083] In an embodiment of the present invention, for any set of feature information, the first device performs one-hot encoding on the grouped feature information to obtain encoding information for the group corresponding to the grouped feature information. Specifically, the number of feature information within a feature dimension is the same as the number of encoding information. The encoding value corresponding to the feature information in the grouped encoding information is a first value, and the encoding value corresponding to the feature information not belonging to the group in the grouped encoding information is a second value. For example, for feature dimension 1, the feature information within feature dimension 1 is (Bachelor, Master, Bachelor, Master). After binning, group 1 is (0, 2) and group 2 is (1, 3). The number of feature information is 4. Group 1 is one-hot encoded. Specifically, the encoding value corresponding to the feature information belonging to the group is the first value, and the encoding value corresponding to the feature information not belonging to the group is the second value, where the first value is 1 and the second value is 0. The resulting encoding information for group 1 is (1, 0, 1, 0). Similarly, group 2 is one-hot encoded, resulting in the encoding information for group 2 being (0, 1, 0, 1).
[0084] It can be seen from the above steps 401 to 402 that by performing one-hot encoding on the feature bins, it is convenient to obtain the label result corresponding to the feature information of the group based on the inner product sum of the encoding information and the label value.
[0085] In an embodiment of the present invention, the first device performs group encoding on each feature information under the feature dimension. After obtaining the encoding information of each group, the first device splits each encoding value of the encoding information according to a set principle for the encoding information of any group to obtain a first feature secret fragment and a second feature secret fragment. For example, if the encoding information of group 1 is (1, 0, 1, 0), the encoding information of group 1 is split to obtain a first feature secret fragment (3, -2, 9, 6) and a second feature secret fragment (-2, 2, -8, -6). The first device then sends the second feature secret fragment to the second device. Each encoding value in the first feature secret fragment is added to the encoding value of the second feature secret fragment at the corresponding position to obtain the encoding information of the instantaneous group 1. Similarly, the second device splits each label value in the label information according to a set principle to obtain a first label secret fragment and a second label secret fragment. For example, if the tag information is (0, 1, 1, 1), the tag information is split to obtain the first tag secret fragment (-4, -7, 7, 2) and the second tag secret fragment (4, 8, -6, -1). The second device then sends the first tag secret fragment to the first device. In this way, the first and second devices each obtain the other's secret fragment. After that, based on the corresponding auxiliary factors and secret fragments, the first and second devices perform multiple encrypted exchanges of private information to obtain the tag result corresponding to the characteristic information of the group based on the inner product of the encoded information and the tag value.
[0086] like Figure 5 FIG. 1 is a flow chart of a method for determining a first fragment of an intermediate ciphertext according to an embodiment of the present invention. The method includes the following steps:
[0087] Step 501: The first device determines the first part of the first fragment of the intermediate ciphertext according to the first characteristic secret fragment and the a1 value.
[0088] In this embodiment of the present invention, the first device determines the first portion of the first intermediate ciphertext fragment by subtracting the value a1 from the first signature secret fragment. For example, if the first signature secret fragment is (h1_1, ...hn_1), then the first portion of the first intermediate ciphertext fragment is (h1_1-a1, ...hn_1-a1).
[0089] Step 502: The first device determines the second part of the first fragment of the intermediate ciphertext according to the first tag secret fragment and the b1 value sent by the second device.
[0090] In this embodiment of the present invention, the first device determines the second portion of the first fragment of the intermediate ciphertext by subtracting the value of b1 from the first tag secret fragment sent by the second device. For example, if the first tag secret fragment is (y1_1,…yn_1), then the second portion of the first fragment of the intermediate ciphertext is (y1_1-b1,…yn_1-b1). The first device determines the first fragment of the intermediate ciphertext based on the first portion of the first fragment of the intermediate ciphertext and the second portion of the first fragment of the intermediate ciphertext. The first device then sends the first fragment of the intermediate ciphertext to the second device. For example, if the value of a1 is 15 and the value of b1 is 12, the first feature secret fragment is (3, -2, 9, 6), the first tag secret fragment is (-4, -7, 7, 2), the first portion of the first fragment of the intermediate ciphertext is (-12, -17, -6, -9), and the second portion of the first fragment of the intermediate ciphertext is (-16, -19, -5, -10). Therefore, the first fragment of the intermediate ciphertext is [(-12, -17, -6, -9), (-16, -19, -5, -10)].
[0091] It can be seen from the above steps 501 to 502 that the first device can determine the first fragment of the intermediate ciphertext based on the first characteristic secret fragment, the first label secret fragment and the a1 value and the b1 value in the first auxiliary factor. This facilitates the subsequent determination of the label result corresponding to the characteristic information of the group based on the first fragment of the intermediate ciphertext.
[0092] The above describes how the first device determines the first fragment of the intermediate ciphertext. The following describes how the second device determines the second fragment of the intermediate ciphertext.
[0093] like Figure 6 FIG. 1 is a flow chart of a method for determining a second fragment of an intermediate ciphertext according to an embodiment of the present invention. The method includes the following steps:
[0094] Step 601: The second device determines the first part of the second fragment of the intermediate ciphertext based on the second characteristic secret fragment and the a2 value sent by the first device.
[0095] In this embodiment of the present invention, the second device determines the first portion of the second intermediate ciphertext fragment by subtracting the value a2 from the second characteristic secret fragment. For example, if the second characteristic secret fragment is (h1_2, ...hn_2), then the first portion of the second intermediate ciphertext fragment is (h1_2-a2, ...hn_2-a2).
[0096] Step 602: The second device determines the second part of the second fragment of the intermediate ciphertext according to the second tag secret fragment and the b2 value.
[0097] In this embodiment of the present invention, the second device determines the second portion of the intermediate ciphertext second fragment by subtracting the value b2 from the second tag secret fragment. For example, if the second tag secret fragment is (y1_2, ...yn_2), then the second portion of the intermediate ciphertext second fragment is (y1_2-b2, ...yn_2-b2). The second device then generates the intermediate ciphertext second fragment based on the first portion of the intermediate ciphertext second fragment and the second portion of the intermediate ciphertext second fragment. For example, if the second feature secret fragment is (-2, 2, -8, -6), the second tag secret fragment is (4, 8, -6, -1), the value of a2 is -5, and the value of b2 is 8, then the first part of the intermediate ciphertext second fragment is (3, 7, -3, -1), the second part of the intermediate ciphertext second fragment is (-4, 0, -14, -9), and the intermediate ciphertext second fragment is [(3, 7, -3, -1), (-4, 0, -14, -9)].
[0098] It can be seen from the above steps 601 to 602 that the second device can determine the second fragment of the intermediate ciphertext based on the a2 value and the b2 value in the second feature secret fragment, the second label secret fragment and the second auxiliary factor, so as to facilitate the subsequent determination of the label result corresponding to the feature information of the group based on the second fragment of the intermediate ciphertext.
[0099] Optionally, the first device sends the first fragment of the intermediate ciphertext to the second device, and the second device sends the second fragment of the intermediate ciphertext to the first device, so that both the first device and the second device can subsequently determine the intermediate ciphertext based on the first fragment of the intermediate ciphertext and the second fragment of the intermediate ciphertext.
[0100] The following describes how the first device obtains the intermediate ciphertext based on the intermediate ciphertext first fragment and the intermediate ciphertext second fragment.
[0101] like Figure 7 FIG. 1 is a flow chart of a method for determining an intermediate ciphertext according to an embodiment of the present invention, the method comprising the following steps:
[0102] In step 701, the first device sums the first part of the intermediate ciphertext first fragment with the first part of the intermediate ciphertext second fragment sent by the second device to obtain the first part of the intermediate ciphertext.
[0103] In this embodiment of the present invention, the first device sums the first portion of the intermediate ciphertext first fragment with the first portion of the intermediate ciphertext second fragment sent by the second device to obtain the first portion of the intermediate ciphertext. For example, if the first portion of the intermediate ciphertext first fragment is (h1_1-a1, ...hn_1-a1) and the first portion of the intermediate ciphertext second fragment is (h1_2-a2, ...hn_2-a2), then since h1_1+h1_2=h1, ...hn_1+hn_2=hn; and a1+a2=a, the first portion of the intermediate ciphertext is (h1-a, ...hn-a). For another example, if the first portion of the intermediate ciphertext first fragment is (-12, -17, -6, -9) and the first portion of the intermediate ciphertext second fragment is (3, 7, -3, -1), then the first portion of the intermediate ciphertext is (-9, -10, -9, -10).
[0104] In step 702, the first device sums the second part of the first fragment of the intermediate ciphertext with the second part of the second fragment of the intermediate ciphertext to obtain the second part of the intermediate ciphertext.
[0105] In this embodiment of the present invention, the first device sums the second portion of the first intermediate ciphertext fragment with the second portion of the second intermediate ciphertext fragment to obtain the second portion of the intermediate ciphertext. For example, the second portion of the first intermediate ciphertext fragment is (y1_1-b1, ...yn_1-b1), and the second portion of the second intermediate ciphertext fragment is (y1_2-b2, ...yn_2-b2). Since y1_1+y1_2=y1, ...,yn_1+yn_2=yn; and b1+b2=b, the second portion of the intermediate ciphertext is (y1-b, ...yn-b). Therefore, the intermediate ciphertext is [(h1-a, ...hn-a), (y1-b, ...yn-b)]. For example, if the second part of the first fragment of the intermediate ciphertext is (-16, -19, -5, -10), and the second part of the second fragment of the intermediate ciphertext is (-4, 0, -14, -9), then the second part of the intermediate ciphertext is (-20, -19, -19, -19).
[0106] It can be seen from the above steps 701 to 702 that the first device obtains (h1-a, ...hn-a) and (y1-b, ...yn-b) based on the intermediate ciphertext first fragment and the intermediate ciphertext second fragment, which facilitates the subsequent calculation of the inner product sum of the coding value and the label value to determine the label result corresponding to each feature information in the group.
[0107] Optionally, the second device receives the first intermediate ciphertext fragment sent by the first device, and then determines the intermediate ciphertext based on the first intermediate ciphertext fragment and the second intermediate ciphertext fragment. The second device determines the intermediate ciphertext in the same manner as the first device and is not further described here.
[0108] like Figure 8 FIG. 1 is a flow chart of a method for determining a first result fragment according to an embodiment of the present invention. The method includes the following steps:
[0109] In step 801, the first device performs a multiplication gate calculation based on a first auxiliary factor and a first intermediate ciphertext element and a second intermediate ciphertext element corresponding to the same user information in the intermediate ciphertext to determine a first multiplication slice corresponding to the user information.
[0110] In this embodiment of the present invention, the intermediate ciphertext is [(h1-a, ...hn-a), (y1-b, ...yn-b)], where the first portion of the intermediate ciphertext includes a first intermediate ciphertext element corresponding to each piece of user information, and the second portion of the intermediate ciphertext includes a second intermediate ciphertext element corresponding to each piece of user information. For example, the first intermediate ciphertext element is hi-a, and the second intermediate ciphertext element is yi-b.
[0111] The first device performs a multiplication gate calculation based on a1, b1, and c1 in the first auxiliary factor and the first and second intermediate ciphertext elements corresponding to the same user information in the intermediate ciphertext to determine the first multiplication shard corresponding to the user information. For example, if the first intermediate ciphertext element is hi-a and the second intermediate ciphertext element is yi-b, then the first multiplication shard can be determined according to Formula 1, as shown in Formula 1:
[0112] zi_1=c1+(hi-a)*b1+(yi-b)*a1+(hi-a)(yi-b) / 2 Formula 1
[0113] Where zi_1 is the first multiplication slice.
[0114] In step 802 , the first device accumulates the first multiplication slices corresponding to each user information to obtain a first result slice.
[0115] In the embodiment of the present invention, for example, if the first result fragment is r_1, zi_1, ..., zn_1 can be determined by formula 1, and r_1 can be determined according to formula 2, as shown in formula 2:
[0116] r_1=zi_1+..+zn_1 Formula 2
[0117] It can be seen from the above steps 801 to 802 that the first device can determine the first result fragment based on the third random number c and the intermediate ciphertext. In this way, the first device subsequently sends the first result fragment to the second device, and the second device determines the label result corresponding to each feature information of the group based on the first result fragment.
[0118] Similarly, the following describes how the second device determines the second result fragment.
[0119] like Figure 9 FIG. 1 is a flow chart of a method for determining a second result fragment according to an embodiment of the present invention, the method comprising the following steps:
[0120] In step 901 , the second device performs a multiplication gate calculation based on a second auxiliary factor and a first intermediate ciphertext element and a second intermediate ciphertext element corresponding to the same user information in the intermediate ciphertext to determine a second multiplication slice corresponding to the user information.
[0121] In this embodiment of the present invention, the first portion of the intermediate ciphertext includes a first intermediate ciphertext element corresponding to each piece of user information; the second portion of the intermediate ciphertext includes a second intermediate ciphertext element corresponding to each piece of user information. The second device performs a multiplication gate calculation based on a2, b2, and c2 in the second auxiliary factors and the first and second intermediate ciphertext elements corresponding to the same piece of user information in the intermediate ciphertext to determine the second multiplication slice corresponding to the user information.
[0122] For example, if the first intermediate ciphertext element is hi-a and the second intermediate ciphertext element is yi-b, then the second multiplication fragment can be determined according to Formula 3, as shown in Formula 3:
[0123] zi_2=c2+(hi-a)*b2+(yi-b)*a2+(hi-a)(yi-b) / 2 Formula 3
[0124] where zi_2 is the second multiplication slice.
[0125] In step 902 , the second device accumulates the second multiplication slices corresponding to each user information to obtain a second result slice.
[0126] In the embodiment of the present invention, for example, if the second result fragment is r_2, zi_2, ..., zn_2 can be determined by Formula 4. Then, r_2 can be determined according to Formula 4, as shown in Formula 4:
[0127] r_2=zi_2+..+zn_2 Formula 4
[0128] It can be seen from the above steps 901 to 902 that the second device can determine the second result fragment based on the third random number c and the intermediate ciphertext. In this way, the subsequent second device can more accurately determine the label results corresponding to each feature information of the group based on the first result fragment and the second result fragment.
[0129] Optionally, after receiving the first result fragment sent by the first device, the second device can determine the label result corresponding to each feature information of the group based on the first result fragment and the second result fragment. The following describes in detail how to determine the label result corresponding to each feature information of the group.
[0130] like Figure 10 FIG. 1 is a flow chart of a method for determining a label result corresponding to each feature information of a group provided by an embodiment of the present invention. The method includes the following steps:
[0131] Step 1001: The second device sums the first result slice and the second result slice to obtain the number of positive samples of feature information corresponding to the group.
[0132] In this embodiment of the present invention, the second device sums the first result slice and the second result slice to obtain the inner product sum of the encoding information and the label information for the group. Since the encoding values belonging to the group in the encoding information are the first value, and the encoding values not belonging to the group are the second value, the inner product sum of the encoding information and the label information is the number of positive samples of the feature information corresponding to the group. For example, for the first result slice r_1, where r_1 = zi_1 + ... + zn_1; and for the second result slice r_2, where r_2 = zi_2 + ... + zn_2; if r_1 + r_2 is calculated, that is, r_1 + r_2 = (z1_1 + z1_2) + (z2_1 + z2_2) + (zi_1 + zi_2) ... + (zn_1 + zn_2).
[0133] The following uses Formula 5 to introduce how to calculate zi_1+zi_2.
[0134] zi_1+zi_2=(c1+c2)+(hi-a)*(b1+b2)+(yi-bi)*(a1+a2)+(hi-ai)(yi-bi)=c+hi*ba*b+yi*a–b*a+hi*yi-hi*b-yi*a+a*b=hi*yi Formula 5
[0135] Where c = a*b.
[0136] According to Formula 5, since the sum of the first result slice and the second result slice results in the number of positive samples of the characteristic information corresponding to the group, the second device cannot restore the characteristic information corresponding to the group based on the number of positive samples. Moreover, since this solution first obtains the first multiplication slice and the second multiplication slice, and then the first device accumulates the first multiplication slice to obtain the first result slice, and the second device accumulates the second multiplication slice to obtain the second result slice, then, when the first result slice and the second result slice are calculated, only an inner product sum is obtained. It is impossible to deduce the encoding information in each corresponding multiplication slice based on the inner product sum, thereby protecting the binning of the group in the first device and determining the number of positive samples of the characteristic information corresponding to the group without exposing the characteristic information of the first device and the binning of the group.
[0137] In step 1002 , the second device determines the number of negative samples of the feature information corresponding to the group according to the number of each feature information in the feature dimension corresponding to the group and the number of positive samples of the feature information corresponding to the group.
[0138] In an embodiment of the present invention, the second device also receives the number of each feature information under the feature dimension sent by the first device, and then the second device determines the number of negative samples of the feature information corresponding to the group by subtracting the number of positive samples of the feature information corresponding to the group from the number of each feature information under the feature dimension corresponding to the group.
[0139] Step 1003 : determining a label result corresponding to the feature information of the group according to the number of positive samples of the feature information in the group and the number of negative samples of the feature information in the group.
[0140] In this embodiment of the present invention, we first introduce the Weight of Evidence (WOE). It is often used in the statistics of credit scoring modeling and risk modeling to measure the predictive ability of a variable for a target variable. To calculate WOE, it is necessary to first group the feature information into bins, which is the specific content of step 401 in this solution and is not limited here. However, the number of positive and negative samples in each group is calculated, and then the WOE is calculated using Formula 6. As shown in Formula 6:
[0141]
[0142] Among them, P event is the probability of occurrence of positive samples in the group, that is, the number of each feature information under the positive sample / feature dimension; P non-event is the probability of negative samples, that is, the number of feature information under the negative sample / feature dimension.
[0143] Then, according to the second device and the multiple groups of WOE values under the feature dimension, the feature value with a high correlation with the label value can be accurately screened out from each feature information under the feature dimension.
[0144] It can be seen from the above steps 1001 to 1003 that the second device calculates the sum of the first result slice and the second result slice to obtain the inner product sum between the encoding information and the label information corresponding to the group, thereby determining the number of positive samples of the feature information corresponding to the group without exposing the feature information of the first device and the binning of the group, and then determining the number of negative samples of the feature information corresponding to the group according to the number of each feature information under the feature dimension, and thus the woe value of the group can be determined more accurately.
[0145] like Figure 11As shown in FIG, an interaction diagram for encrypted transmission of private information provided by an embodiment of the present invention includes the following steps:
[0146] Step 1101: A third device generates a first auxiliary factor and a second auxiliary factor according to a random number sequence.
[0147] In this embodiment of the present invention, step 1101 is optional. The first auxiliary factor and the second auxiliary factor may be generated by a third device according to a random number sequence. For details, see step 301. Alternatively, they may be obtained by agreement between the first device and the second device according to set conditions, which is not limited hereto.
[0148] In step 1102 , the third device sends the first auxiliary factor to the first device and sends the second auxiliary factor to the second device.
[0149] In the embodiment of the present invention, the specific content can be found in step 302.
[0150] Step 1103: For any characteristic dimension, the first device performs group encoding on characteristic information of each user information under the characteristic dimension to obtain encoding information of each group.
[0151] In the embodiment of the present invention, the specific content can be found in step 401 to step 402.
[0152] Step 1104: For any group of coded information, the first device splits each coded value in the group of coded information according to a set principle to obtain a first characteristic secret fragment and a second characteristic secret fragment, and sends the second characteristic secret fragment to the second device.
[0153] In the embodiment of the present invention, the order of step 1104 and step 1105 is not limited. Step 1104 may precede step 1105, or they may be performed simultaneously, or step 1105 may precede step 1104. No limitation is made here.
[0154] In step 1105 , the second device splits the tag information according to a set principle to obtain a first tag secret fragment and a second tag secret fragment, and sends the first tag secret fragment to the first device.
[0155] In step 1106 , the first device determines an intermediate ciphertext first fragment based on the first tag secret fragment, the first feature secret fragment, and the first auxiliary factor sent by the second device, and sends the intermediate ciphertext first fragment to the second device.
[0156] In the embodiment of the present invention, the specific contents can be found in step 501 to step 502. Step 1106 and step 1107 are not limited in order, and can be performed simultaneously, or step 1106 can precede step 1107, or step 1107 can precede step 1106.
[0157] Step 1107: The second device determines a second intermediate ciphertext fragment based on the second characteristic secret fragment, the second tag secret fragment, and the second auxiliary factor sent by the first device, and sends the second fragment to the first device.
[0158] In the embodiment of the present invention, the specific content can be found in step 601 to step 602.
[0159] In step 1108, the first device determines the intermediate ciphertext based on the first fragment of the intermediate ciphertext and the second fragment of the intermediate ciphertext sent by the second device.
[0160] In the embodiment of the present invention, the specific contents can be found in step 701 to step 702. Step 1108 and step 1109 are not limited in order, and can be performed simultaneously, or step 1108 can precede step 1109, or step 1109 can precede step 1108.
[0161] Step 1109: The second device determines the intermediate ciphertext based on the second fragment of the intermediate ciphertext and the first fragment of the intermediate ciphertext sent by the first device.
[0162] In the embodiment of the present invention, the specific content can be found in step 701 to step 702.
[0163] In step 1110 , the first device determines a first result fragment based on the intermediate ciphertext and the first auxiliary factor and sends the first result fragment to the second device.
[0164] In the embodiment of the present invention, the specific contents can be found in step 801 to step 802. Step 1110 and step 1111 are not limited in order, and can be performed simultaneously, or step 1110 can precede step 1111, or step 1111 can precede step 1110.
[0165] Step 1111: The second device determines a second result fragment based on the intermediate ciphertext and the second auxiliary factor.
[0166] In the embodiment of the present invention, the specific content can be found in step 901 to step 902.
[0167] Step 1112: The second device determines a label result corresponding to the feature information of the group according to the second result fragment and the first result fragment.
[0168] In the embodiment of the present invention, the specific contents may refer to steps 1001 to 1003.
[0169] It can be seen from the above steps 1100 to 1112 that based on the first auxiliary factor and the second auxiliary factor, the first device and the second device simplify the original complex steps into some simple calculations of addition and multiplication by encrypting the privacy information, so that the inner product sum of the encoding information and label information corresponding to each feature information under the feature dimension is finally determined to be the number of positive samples, so that the label results corresponding to each feature information under the feature dimension can be determined more accurately based on the number of positive samples.
[0170] Based on the same technical concept, the embodiment of the present application provides a device for encrypting and transmitting private information, such as Figure 12 As shown, it is applicable to a first device with user information; the user information includes feature information of at least one feature dimension; the apparatus 1200 includes: a first acquisition unit 1201 for: for any feature dimension, the first device groups and encodes each feature information of each user information under the feature dimension to obtain encoding information of each group; any group is used to characterize the category of the corresponding feature information; a first processing unit 1202 is used for: for any group of encoding information, the first device splits each encoding value in the grouped encoding information according to a set principle to obtain a first feature secret fragment and a second feature secret fragment, and sends the second feature secret fragment to the second device; the second device has label information corresponding to each user information; the first device divides the first label secret fragment and the first feature secret fragment sent by the second device into two pieces according to the first label secret fragment and the first feature secret fragment. The first device determines the intermediate ciphertext based on the first intermediate ciphertext and the second intermediate ciphertext sent by the second device according to the secret fragment and the first auxiliary factor; the first device determines the intermediate ciphertext according to the first intermediate ciphertext and the second intermediate ciphertext sent by the second device; the intermediate ciphertext second fragment is determined by the second device according to the second label secret fragment, the second characteristic secret fragment and the second auxiliary factor; the first device determines the first result fragment based on the intermediate ciphertext and the first auxiliary factor and sends the first result fragment to the second device; the first result fragment is used to determine the label result corresponding to the characteristic information of the group with the second result fragment generated by the second device; wherein, the first label secret fragment and the second label secret fragment are obtained by the second device splitting the label information corresponding to the group according to the set principle; the first auxiliary factor and the second auxiliary factor are obtained by splitting the random number sequence according to the set principle.
[0171] Optionally, the random number sequence is generated by a third device; the first auxiliary factor and the second auxiliary factor are generated by the third device splitting the random number sequence according to a set principle and then sending them to the first device and the second device respectively.
[0172] Optionally, the random number sequence includes a first random number a, a second random number b, and a third random number c; the first auxiliary factor includes a1 value, b1 value, and c1 value; the second auxiliary factor includes a2 value, b2 value, and c2 value; the setting principle is that the value of the i-th bit in the split object is equal to the sum of the value of the i-th bit in the first split result and the value of the i-th bit in the second split result.
[0173] Optionally, the first processing unit 1202 is specifically used for: the first device determines the first part of the intermediate ciphertext first fragment based on the first characteristic secret fragment and the a1 value; the first device determines the second part of the intermediate ciphertext first fragment based on the first label secret fragment and the b1 value sent by the second device; the first device determines the intermediate ciphertext based on the intermediate ciphertext first fragment and the intermediate ciphertext second fragment sent by the second device, including: the first device sums the first part of the intermediate ciphertext first fragment with the first part of the intermediate ciphertext second fragment sent by the second device to obtain the first part of the intermediate ciphertext; the first device sums the second part of the intermediate ciphertext first fragment with the second part of the intermediate ciphertext second fragment to obtain the second part of the intermediate ciphertext.
[0174] Optionally, the third random number c is the product of the first random number a and the second random number b; the first part of the intermediate ciphertext includes the first intermediate ciphertext element corresponding to each user information; the second part of the intermediate ciphertext includes the second intermediate ciphertext element corresponding to each user information; the first processing unit 1202 is specifically used to: the first device performs a multiplication gate calculation based on the first auxiliary factor and the first intermediate ciphertext element and the second intermediate ciphertext element corresponding to the same user information in the intermediate ciphertext to determine the first multiplication shard corresponding to the user information; the first device accumulates the first multiplication shards corresponding to each user information to obtain a first result shard.
[0175] Optionally, the first acquisition unit 1201 is specifically used to: the first device groups the feature information of each user information under the feature dimension to obtain multiple groups of feature information; for any group of feature information, the first device one-hot encodes the grouped feature information to obtain the grouped coding information corresponding to the grouped feature information, and the number of coding values in the grouped coding information is the same as the number of grouped feature information; the coding value corresponding to the feature information in the grouped coding information belonging to the group is the first value, and the coding value corresponding to the feature information not belonging to the group in the grouped coding information is the second value.
[0176] Based on the same technical concept, the embodiment of the present application provides a device for encrypting and transmitting private information, such as Figure 13As shown, it is applicable to a second device having tag information corresponding to user information; the device 1300 includes: a second acquisition unit 1301 for: the second device splits the tag information according to the set principle to obtain a first tag secret fragment and a second tag secret fragment, and sends the first tag secret fragment to the first device; the first device has user information corresponding to the tag information; the user information includes feature information of at least one feature dimension; each feature information under any feature dimension is grouped and coded to obtain coding information of each group under any feature dimension; any group is used to represent the category of the corresponding feature information; the second processing unit 1302 is used: the second device divides the tag information according to the second feature secret fragment and the second tag secret fragment sent by the first device The secret slice and the second auxiliary factor determine the second slice of the intermediate ciphertext and send it to the first device; the second device determines the intermediate ciphertext based on the second slice of the intermediate ciphertext and the first slice of the intermediate ciphertext sent by the first device; the first slice of the intermediate ciphertext is determined by the first device based on the first label information, the first characteristic secret slice, and the first auxiliary factor; the first characteristic secret slice and the second characteristic secret slice are obtained by the first device by splitting each coding value in the coding information of any group according to the set principle; the second device determines the second result slice based on the intermediate ciphertext and the second auxiliary factor and receives the first result slice sent by the first device; the second device determines the label result corresponding to the characteristic information of the group based on the second result slice and the first result slice.
[0177] Optionally, the random number sequence is generated by a third device; the first auxiliary factor and the second auxiliary factor are generated by the third device splitting the random number sequence according to a set principle and then sending them to the first device and the second device respectively.
[0178] Optionally, the random number sequence includes a first random number a, a second random number b, and a third random number c; the first auxiliary factor includes a1 value, b1 value, and c1 value; the second auxiliary factor includes a2 value, b2 value, and c2 value; the setting principle is that the value of the i-th bit in the split object is equal to the sum of the value of the i-th bit in the first split result and the value of the i-th bit in the second split result.
[0179] Optionally, the second processing unit 1302 is specifically used for: the second device determines the first part of the intermediate ciphertext second fragment based on the second label secret fragment and the b2 value; the second device determines the second part of the intermediate ciphertext second fragment based on the second characteristic secret fragment and the a2 value sent by the first device; the second processing unit 1302 is specifically used for: the second device sums the first part of the intermediate ciphertext second fragment with the first part of the intermediate ciphertext first fragment sent by the first device to obtain the first part of the intermediate ciphertext; the second device sums the second part of the intermediate ciphertext second fragment with the second part of the intermediate ciphertext second fragment to obtain the second part of the intermediate ciphertext.
[0180] Optionally, the third random number c is the product of the first random number a and the second random number b; the first part of the intermediate ciphertext includes the first intermediate ciphertext element corresponding to each user information; the second part of the intermediate ciphertext includes the second intermediate ciphertext element corresponding to each user information; the second processing unit 1302 is specifically used to: the second device performs a multiplication gate calculation based on the second auxiliary factor and the first intermediate ciphertext element and the second intermediate ciphertext element corresponding to the same user information in the intermediate ciphertext to determine the second multiplication shard corresponding to the user information; the second device accumulates the second multiplication shards corresponding to each user information to obtain a second result shard.
[0181] Optionally, the second processing unit 1302 is also used for: the second device receives the number of each feature information under the feature dimension sent by the first device; the second processing unit 1302 is specifically used for: the second device sums the first result slice and the second result slice to obtain the number of positive samples of the feature information corresponding to the group; the second device determines the number of negative samples of the feature information corresponding to the group based on the number of each feature information under the feature dimension corresponding to the group and the number of positive samples of the feature information corresponding to the group; and determines the label result corresponding to the feature information of the group based on the number of positive samples of the feature information in the group and the number of negative samples of the feature information in the group.
[0182] Based on the same technical concept, the embodiment of the present application provides a computing device, such as Figure 14 As shown, it includes at least one processor 1401 and a memory 1402 connected to the at least one processor. The specific connection medium between the processor 1401 and the memory 1402 is not limited in the embodiment of the present application. Figure 14 For example, the processor 1401 and the memory 1402 are connected via a bus. The bus can be divided into an address bus, a data bus, a control bus, and the like.
[0183] In an embodiment of the present application, the memory 1402 stores instructions that can be executed by at least one processor 1401. The at least one processor 1401 can execute the steps of the above-mentioned method for encrypting and transmitting private information by executing the instructions stored in the memory 1402.
[0184] Among them, the processor 1401 is the control center of the computing device. It can use various interfaces and lines to connect various parts of the computing device. By running or executing instructions stored in the memory 1402 and calling data stored in the memory 1402, it can implement the method of generating code. Optionally, the processor 1401 may include one or more processing units. The processor 1401 may integrate an application processor and a modem processor. The application processor mainly processes the operating system, user interface, and application programs, and the modem processor mainly processes wireless communications. It is understood that the above-mentioned modem processor can also be integrated into the processor 1401. In some embodiments, the processor 1401 and the memory 1402 can be implemented on the same chip. In some embodiments, they can also be implemented on separate chips.
[0185] Processor 1401 can be a general-purpose processor, such as a central processing unit (CPU), a digital signal processor, an application-specific integrated circuit (ASIC), a field-programmable gate array or other programmable logic device, a discrete gate or transistor logic device, or a discrete hardware component, and can implement or execute the various methods, steps, and logic block diagrams disclosed in the embodiments of this application. A general-purpose processor can be a microprocessor or any conventional processor. The steps of the method for encrypted transmission of private information disclosed in the embodiments of this application can be directly implemented as being executed by a hardware processor, or can be executed by a combination of hardware and software modules in the processor.
[0186] Memory 1402 is a non-volatile computer-readable storage medium that can be used to store non-volatile software programs, non-volatile computer executable programs and modules. Memory 1402 may include at least one type of storage medium, such as a flash memory, a hard disk, a multimedia card, a card-type memory, a random access memory (RandomAccess Memory, RAM), a static random access memory (Static RandomAccess Memory, SRAM), a programmable read-only memory (Programmable Read Only Memory, PROM), a read-only memory (Read Only Memory, ROM), an electrically erasable programmable read-only memory (Electrically Erasable Programmable Read-Only Memory, EEPROM), a magnetic memory, a disk, an optical disk, etc. Memory 1402 is any other medium that can be used to carry or store a desired program code in the form of an instruction or data structure and can be accessed by a computer device, but is not limited thereto. The memory 1402 in the embodiment of the present application can also be a circuit or any other device that can realize a storage function, for storing program instructions and / or data.
[0187] Based on the same inventive concept, an embodiment of the present application provides a computer-readable storage medium, which stores a computer program that can be executed by a computer device. When the program runs on the computer device, the computer device executes the steps of the above-mentioned private information encryption transmission method.
[0188] Those skilled in the art will appreciate that the embodiments of the present application can be provided as methods, systems, or computer program products. Therefore, the present application can adopt the form of a complete hardware embodiment, a complete software embodiment, or an embodiment in combination with software and hardware. Moreover, the present application can adopt the form of a computer program product implemented on one or more computer-usable storage media (including but not limited to magnetic disk storage, CD-ROM, optical storage, etc.) that contain computer-usable program code.
[0189] The present application is described with reference to the flowcharts and / or block diagrams of the methods, devices (systems), and computer program products according to the present application. It should be understood that each process and / or block in the flowchart and / or block diagram, as well as the combination of processes and / or blocks in the flowchart and / or block diagram, can be implemented by computer program instructions. These computer program instructions can be provided to a processor of a general-purpose computer, a special-purpose computer, an embedded processor, or other programmable data processing device to produce a machine, so that the instructions executed by the processor of the computer or other programmable data processing device generate instructions for implementing the processes in the flowchart and / or block diagram. Figure 1a process or multiple processes and / or boxes Figure 1 A device that provides the functions specified in a block or multiple blocks.
[0190] These computer program instructions may also be stored in a computer readable memory that can direct a computer or other programmable data processing device to work in a specific manner, so that the instructions stored in the computer readable memory produce an article of manufacture comprising an instruction device, which implements the process Figure 1 a process or multiple processes and / or boxes Figure 1 The function specified in one or more boxes.
[0191] These computer program instructions can also be loaded onto a computer or other programmable data processing device so that a series of operational steps are executed on the computer or other programmable device to produce a computer-implemented process, thereby providing the instructions executed on the computer or other programmable device for implementing the process. Figure 1 a process or multiple processes and / or boxes Figure 1 A step that specifies a function in one or more boxes.
[0192] Obviously, those skilled in the art may make various changes and modifications to this application without departing from the spirit and scope of this application. Thus, if these modifications and variations of this application fall within the scope of the claims of this application and their equivalents, this application is intended to include these modifications and variations.
Claims
1. A method for encrypting and transmitting private information, characterized in that: Applicable to a first device having user information; the user information includes feature information of at least one feature dimension; the method includes: For any characteristic dimension, the first device groups and encodes characteristic information of each user information under the characteristic dimension to obtain encoding information of each group; each group is used to represent a category of corresponding characteristic information; For any group of coded information, the first device splits each coded value in the group of coded information according to a set principle to obtain a first characteristic secret fragment and a second characteristic secret fragment, and sends the second characteristic secret fragment to the second device; the second device has label information corresponding to the respective user information; The first device determines a first intermediate ciphertext fragment based on the first tag secret fragment, the first feature secret fragment, and the first auxiliary factor sent by the second device; The first device determines the intermediate ciphertext based on the intermediate ciphertext first fragment and the intermediate ciphertext second fragment sent by the second device; the intermediate ciphertext second fragment is determined by the second device based on the second tag secret fragment, the second feature secret fragment, and the second auxiliary factor; The first device determines a first result slice based on the intermediate ciphertext and the first auxiliary factor and sends the first result slice to the second device; the first result slice is used to determine a label result corresponding to the characteristic information of the group with the second result slice generated by the second device; wherein, The first label secret fragment and the second label secret fragment are obtained by the second device splitting the label information corresponding to the group according to the set principle; the first auxiliary factor and the second auxiliary factor are obtained by splitting the random number sequence according to the set principle.
2. The method according to claim 1, wherein The random number sequence is generated by a third device; The first auxiliary factor and the second auxiliary factor are generated by the third device splitting the random number sequence according to the set principle and then sending them to the first device and the second device respectively.
3. The method according to claim 1, wherein The random number sequence includes a first random number a, a second random number b, and a third random number c; The first auxiliary factor includes a1 value, b1 value and c1 value; The second auxiliary factor includes a2 value, b2 value and c2 value; The setting principle is that the value of the i-th position in the split object is equal to the sum of the value of the i-th position in the first split result and the value of the i-th position in the second split result.
4. The method according to claim 3, wherein The first device determines a first intermediate ciphertext fragment according to the first tag secret fragment, the first feature secret fragment, and the first auxiliary factor sent by the second device, including: The first device determines, based on the first characteristic secret fragment and the a1 value, a first portion of the first fragment of the intermediate ciphertext; The first device determines the second part of the first fragment of the intermediate ciphertext based on the first tag secret fragment and the b1 value sent by the second device; The first device determines the intermediate ciphertext according to the intermediate ciphertext first fragment and the intermediate ciphertext second fragment sent by the second device, including: The first device sums the first part of the intermediate ciphertext first fragment and the first part of the intermediate ciphertext second fragment sent by the second device to obtain the first part of the intermediate ciphertext; The first device sums the second part of the first fragment of the intermediate ciphertext and the second part of the second fragment of the intermediate ciphertext to obtain the second part of the intermediate ciphertext.
5. The method according to claim 4, wherein The third random number c is the product of the first random number a and the second random number b; The first part of the intermediate ciphertext includes a first intermediate ciphertext element corresponding to each user information; The second part of the intermediate ciphertext includes a second intermediate ciphertext element corresponding to each user information; The first device determines a first result shard according to the intermediate ciphertext and the first auxiliary factor, including: The first device performs a multiplication gate calculation based on the first auxiliary factor and a first intermediate ciphertext element and a second intermediate ciphertext element corresponding to the same user information in the intermediate ciphertext to determine a first multiplication shard corresponding to the user information; The first device accumulates the first multiplication slices corresponding to each user information to obtain the first result slices.
6. The method according to any one of claims 1 to 5, characterized in that The first device encodes each feature information of each user information under the feature dimension in groups to obtain encoding information of each group, including: The first device groups the feature information of each user information under the feature dimension to obtain multiple groups of feature information; For any group of feature information, the first device one-hot encodes the group feature information to obtain the coding information of the group corresponding to the group feature information, and the number of coding values in the coding information of the group is the same as the number of the group feature information; the coding value corresponding to the feature information of the group in the coding information of the group is the first value, and the coding value corresponding to the feature information of the group that does not belong to the feature information of the group in the coding information of the group is the second value.
7. A method for encrypting and transmitting private information, characterized in that: Applicable to a second device having tag information corresponding to user information; the method includes: The second device splits the tag information according to a set principle to obtain a first tag secret fragment and a second tag secret fragment, and sends the first tag secret fragment to the first device; the first device has user information corresponding to the tag information; the user information includes feature information of at least one feature dimension; each feature information under any feature dimension is grouped and encoded to obtain encoding information of each group under any feature dimension; each group is used to represent the category of the corresponding feature information; The second device determines, based on the second characteristic secret fragment, the second tag secret fragment, and the second auxiliary factor sent by the first device, a second intermediate ciphertext fragment and sends the fragment to the first device; The second device determines the intermediate ciphertext based on the intermediate ciphertext second fragment and the intermediate ciphertext first fragment sent by the first device; the intermediate ciphertext first fragment is determined by the first device based on the first tag information, the first characteristic secret fragment, and the first auxiliary factor; the first characteristic secret fragment and the second characteristic secret fragment are obtained by the first device by splitting each code value in the code information of any group according to a set principle; The second device determines a second result fragment based on the intermediate ciphertext and the second auxiliary factor and receives the first result fragment sent by the first device; The second device determines a label result corresponding to the feature information of the group according to the second result slice and the first result slice.
8. The method according to claim 7, wherein The random number sequence is generated by a third device; The first auxiliary factor and the second auxiliary factor are generated by the third device splitting the random number sequence according to the set principle and then sending them to the first device and the second device respectively.
9. The method according to claim 7, wherein The random number sequence includes a first random number a, a second random number b, and a third random number c; The first auxiliary factor includes a1 value, b1 value and c1 value; The second auxiliary factor includes a2 value, b2 value and c2 value; The setting principle is that the value of the i-th position in the split object is equal to the sum of the value of the i-th position in the first split result and the value of the i-th position in the second split result.
10. The method according to claim 9, wherein The second device determines, according to the second characteristic secret fragment, the second tag secret fragment, and the second auxiliary factor sent by the first device, a second intermediate ciphertext fragment, including: The second device determines, based on the second tag secret fragment and the b2 value, a first portion of the second fragment of the intermediate ciphertext; The second device determines, based on the second characteristic secret fragment and the a2 value sent by the first device, a second part of the second fragment of the intermediate ciphertext; The second device determines the intermediate ciphertext according to the second intermediate ciphertext fragment and the first intermediate ciphertext fragment sent by the first device, including: The second device sums the first part of the second fragment of the intermediate ciphertext with the first part of the first fragment of the intermediate ciphertext sent by the first device to obtain the first part of the intermediate ciphertext; The second device sums the second part of the second fragment of the intermediate ciphertext with the second part of the second fragment of the intermediate ciphertext to obtain the second part of the intermediate ciphertext.
11. The method according to claim 10, wherein The third random number c is the product of the first random number a and the second random number b; The first part of the intermediate ciphertext includes a first intermediate ciphertext element corresponding to each user information; The second part of the intermediate ciphertext includes a second intermediate ciphertext element corresponding to each user information; The second device determines a second result shard based on the intermediate ciphertext and the second auxiliary factor, including: The second device performs a multiplication gate calculation based on the second auxiliary factor and a first intermediate ciphertext element and a second intermediate ciphertext element corresponding to the same user information in the intermediate ciphertext to determine a second multiplication shard corresponding to the user information; The second device accumulates the second multiplication slices corresponding to each user information to obtain the second result slices.
12. The method according to claim 11, wherein Also includes: The second device receives the quantity of each piece of feature information under the feature dimension sent by the first device; The second device determines, according to the second result fragment and the first result fragment, a label result corresponding to the feature information of the group, including: The second device sums the first result slice and the second result slice to obtain the number of positive samples of the feature information corresponding to the group; The second device determines, based on the quantity of each piece of feature information under the feature dimension corresponding to the group and the quantity of positive samples of the feature information corresponding to the group, the number of negative samples of the feature information corresponding to the group; Determine a label result corresponding to the feature information of the group according to the number of positive samples of the feature information in the group and the number of negative samples of the feature information in the group.
13. A device for encrypting and transmitting private information, characterized in that: Applicable to a first device having user information; the user information includes feature information of at least one feature dimension; the apparatus comprises: The first acquisition unit is configured to: for any feature dimension, the first device performs group encoding on each feature information of each user information under the feature dimension to obtain encoding information of each group; each group is used to represent a category of the corresponding feature information; The first processing unit is used for: for the coded information of any group, the first device splits each coded value in the coded information of the group according to the set principle to obtain the first characteristic secret fragment and the second characteristic secret fragment, and sends the second characteristic secret fragment to the second device; the second device has the label information corresponding to the user information; the first device determines the intermediate ciphertext first fragment according to the first label secret fragment, the first characteristic secret fragment and the first auxiliary factor sent by the second device; the first device determines the intermediate ciphertext according to the intermediate ciphertext first fragment and the intermediate ciphertext second fragment sent by the second device; the intermediate ciphertext second fragment is the The second device determines the first result slice based on the second label secret slice, the second feature secret slice and the second auxiliary factor; the first device determines the first result slice based on the intermediate ciphertext and the first auxiliary factor and sends the first result slice to the second device; the first result slice is used to determine the label result corresponding to the feature information of the group with the second result slice generated by the second device; wherein, the first label secret slice and the second label secret slice are obtained by the second device splitting the label information corresponding to the group according to the set principle; the first auxiliary factor and the second auxiliary factor are obtained by splitting the random number sequence according to the set principle.
14. A device for encrypting and transmitting private information, characterized in that: A second device having tag information corresponding to the user information; The second acquisition unit is configured to: the second device split the tag information according to a set principle to obtain a first tag secret fragment and a second tag secret fragment, and send the first tag secret fragment to the first device; the first device has user information corresponding to the tag information; the user information includes feature information of at least one feature dimension; Each feature information under any feature dimension is grouped and coded to obtain coding information of each group under any feature dimension; any group is used to represent the category of the corresponding feature information; The second processing unit is configured to: determine, by the second device, a second fragment of the intermediate ciphertext based on the second feature secret fragment, the second tag secret fragment, and the second auxiliary factor sent by the first device, and send the fragment to the first device; The second device determines the intermediate ciphertext based on the intermediate ciphertext second fragment and the intermediate ciphertext first fragment sent by the first device; the intermediate ciphertext first fragment is determined by the first device based on the first tag information, the first characteristic secret fragment, and the first auxiliary factor; the first characteristic secret fragment and the second characteristic secret fragment are obtained by the first device by splitting each code value in the code information of any group according to a set principle; The second device determines a second result fragment based on the intermediate ciphertext and the second auxiliary factor and receives the first result fragment sent by the first device; The second device determines a label result corresponding to the feature information of the group according to the second result slice and the first result slice.
15. A computer-readable storage medium, characterized in that The computer-readable storage medium stores a program, and when the program is run on a computer, the computer is enabled to implement the method according to any one of claims 1 to 6.
16. A computing device, characterized in that include: memory for storing computer programs; A processor is configured to call a computer program stored in the memory and execute the steps of the method according to any one of claims 1 to 6 according to the obtained program.
17. A computer program product comprising a computer program / instructions, characterized in that When the computer program / instructions are executed by a processor, the steps of the method according to claim 1 are implemented.
Citation Information
Patent Citations
Data processing method, related device and storage medium
CN115081004A
Security processing method and apparatus for privacy vector
WO2023240934A1