0 sharing generation method applied to privacy protection
By creating and allocating 0 secret shares in the pre-preparation stage, and utilizing ZTEE dynamic management, the problem of low 0 secret sharing efficiency in the existing technology is solved, achieving sufficient supply of 0 secret shares in multi-task parallelism, and improving Ciphertext calculation efficiency.
Patent Information
- Application Number
- CN202410654332.5
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-05-24
- Publication Date
- 2024-09-06
AI Technical Summary
In the existing technology, generating and using "0 secret sharing" is inefficient in ciphertext calculation of large data volumes, resulting in reduced ciphertext calculation performance and inability to dynamically meet multi-task parallel requirements.
By creating 30 isolation partitions in the pre-preparation stage, a number of 0 secret shares are generated and evenly distributed, and a separate ZTEE is used to dynamically generate and manage 0 secret shares, ensuring that sufficient supply is always maintained during multi-task parallelization and avoiding temporary generation.
It improves the efficiency of the task process, ensures that 0 secret sharing is always sufficient, avoids the reduction of ciphertext calculation performance, and is suitable for privacy protection data analysis in finance, medical and other fields.
Smart Images

Figure CN118611863A
Abstract
Description
Technical Field
[0001] The present disclosure relates to the field of quantum computing, and more specifically, to a sharing generation method of 0 for privacy protection. Background Art
[0002] In secure multi-party computation, "secret sharing of zero" is a specific secret sharing scheme used to share a secret with a value of 0 between multiple parties. When a computational task involving zero needs to be performed, such as addition, multiplication, or other arithmetic operations, secret sharing of zero can be used as an initial value or a confusion value. For example, in ciphertext multiplication calculations, after local calculation, in order to make the slice value more random, the calculated value needs to be blinded with "secret sharing of zero".
[0003] "Secret sharing of 0" needs to be used in the obfuscation of slice values in ciphertext calculations. When calculating large amounts of data, more "secret sharing" needs to be generated, which takes up a larger time ratio in the total task process. Therefore, how to efficiently generate "secret sharing of 0" is the key to the problem. In the prior art, there are two solutions to generate "secret sharing of 0": the first is to generate a fixed number of "secret sharing of 0" in the pre-preparation stage. When the "secret sharing of 0" generated in the pre-preparation process is consumed, it is necessary to temporarily call the interface to generate a fixed number of "secret sharing" again. The second is not to generate "secret sharing of 0" in the pre-preparation stage, but to bind "secret sharing of 0" to the job. After knowing the task and the amount of data, all the "secret sharing of 0" are generated at one time.
[0004] For the first scheme of pre-preparing and generating a fixed number of "secret shares of 0", during the calculation of large amounts of ciphertext, after the pre-generated "secret shares of 0" are consumed, it is necessary to temporarily generate "secret shares of 0" again, which affects the performance of ciphertext calculation and reduces the efficiency of the entire task process.
[0005] For the second method, all "secret shares of 0" are generated at one time after knowing the task and the amount of data. Although it can ensure that the number of "secret shares of 0" is sufficient, the process of generating "secret shares of 0" is not in the pre-preparation stage, which will still reduce the efficiency of the entire task process.
[0006] The present invention aims to solve the problem that dynamically generated "secret sharing of 0" affects task efficiency. Summary of the invention
[0007] The purpose of the embodiments of the present disclosure is to provide a sharing generation method of 0 for privacy protection.
[0008] In a general aspect, a sharing generation method of 0 applied to privacy protection is provided, wherein the solution of the present invention constructs a computing method based on a network architecture of multiple data sources and computing parties, and a connection is established between the data source and the computing party through an RPC service;
[0009] There are four computing parties, each of which consists of a TEE and a CPU, where the TEE performs ciphertext calculations and the CPU is responsible for calculation scheduling; among the four computing parties, the TEEs of three computing parties are responsible for calculations, and the TEE of the other computing party is used alone to generate a secret share of 0, which is called ZTEE;
[0010] Based on this architecture, it is achieved in two steps:
[0011] Step 1: In the pre-preparation phase, ZTEE creates 30 isolated partitions, each with 10 partitions, for a total of three groups; generates several secret shares of 0, evenly distributes them to the 30 isolated partitions, and fills each isolated partition. In the above process, the secret share of 0 is to randomly generate x, y, z so that the sum of x+y+z in the ring is 0, for example, x+y+z mod 2^64=0, x+y+zmod 2^128=0. The sharing of 0 is mainly used to construct the secret sharing of raw data in scenarios such as finance and medical care. That is, assuming that the sharing of 0 is x, y, z, and the relationship between x, y, z meets the above requirements, then the secret sharing of a confidential data h is h+x, y, z;
[0012] Step 2: Five data sources simultaneously initiate task requests, with jobids of job1, job2, job3, job4, and job5. Three computing TEEs execute multiple tasks according to the requests of the data sources. These tasks can be the calculations required for privacy-preserving data analysis between hospitals or medical institutions, anti-fraud in banks and financial institutions, and joint machine learning of data between multiple companies and institutions. The results of privacy-preserving data analysis are generally the calculation results output after the secret calculations required in the fields of medicine and finance are converted into secret sharing corresponding calculations. This calculation result is still secret sharing, that is, secret sharing of plaintext results. The final result can be restored using the secret sharing generated after the calculation. Next, the secret sharing needs to be restored to the plaintext calculation result and sent to a certain participant.
[0013] The task includes job initialization, obtaining public keys and uploading RSS sharing segments, executing ciphertext calculation phase, and job destruction phase. The specific implementation method is as follows:
[0014] Step 2.1: In the job initialization phase, the computing TEE sends the jobid to ZTEE, and ZTEE binds the jobid to the isolation partition. Each jobid needs to be bound to three groups of isolation partitions, that is, one jobid corresponds to three isolation partitions, and the jobid is hashed and assigned to the three bound isolation partitions. Five of the 10 isolation partitions in each group are bound to the jobid, and the remaining isolation partitions are not used for the time being;
[0015] Step 2.2: Obtaining the public key and uploading RSS sharing shards. The three computing TEEs continue to obtain the public key and upload the RSS sharing shards. (1) Obtaining the public key is to establish a secure communication channel between the TEE and the data source. (2) Uploading the RSS sharing shards means that the data provider constructs the RSS shards of its private data locally and transmits different parts of the shards to different TEEs through encrypted communication channels. The encrypted communication channel can use an asymmetric encryption algorithm, and the encryption key comes from the "obtaining the public key" step. Each task is provided in the form of a gRPC interface;
[0016] Step 2.3: During the ciphertext calculation phase, when the three computing TEEs execute the ciphertext calculation task, they need 0 secret sharing to randomize the slices and request 0 secret sharing from ZTEE;
[0017] Calculate the number of jobid and secret shares of 0 that TEE needs to send to ZTEE. ZTEE finds the bound isolation zone based on the hash value of jobid. Taking job1 as an example, first take out several secret shares of 0 from isolation zone 1 of the first group. If the pre-generated secret shares of 0 in isolation zone 1 of the first group are used up, switch to isolation zone 1 of the second group. At the same time, isolation zone 1 of the first group starts to regenerate secret shares of 0 until it is full. If isolation zone 1 of the second group is also used up, switch to the next group of isolation zone 1 to ensure sufficient supply of secret shares of 0 in ZTEE.
[0018] Step 2.4: In the job destruction phase, the three computing TEEs execute job destruction, that is, clearing the intermediate result cache and other contents in the TEE calculation process.
[0019] The present invention uses a separate ZTEE to dynamically generate a secret share of 0, which can ensure that when three computing TEEs perform multi-task parallel ciphertext calculations, the secret share of 0 is always sufficient, and no temporary generation is required. id Requesting secret sharing of 0 at the same time can also ensure that the secret sharing of 0 of each job will not be confused, improving the completion efficiency of the overall task process. BRIEF DESCRIPTION OF THE DRAWINGS
[0020] The above and other objects and features of the present disclosure will become more apparent from the following description in conjunction with the accompanying drawings.
[0021] Figure 1 is a flowchart schematic diagram showing an efficient 0 sharing generation method according to an embodiment of the present disclosure;
[0022] Figure 2 It is a specific flow chart showing efficient 0 sharing generation according to an embodiment of the present disclosure. DETAILED DESCRIPTION
[0023] The following specific embodiments are provided to help the reader obtain a comprehensive understanding of the methods, devices and / or systems described herein. However, after understanding the disclosure of the present application, various changes, modifications and equivalents of the methods, devices and / or systems described herein will be clear. For example, the order of operations described herein is only an example and is not limited to those orders set forth herein, but can be changed as will be clear after understanding the disclosure of the present application, except for operations that must occur in a specific order. In addition, for greater clarity and simplicity, the description of features known in the art may be omitted.
[0024] The features described herein can be implemented in different forms and should not be construed as being limited to the examples described herein. Rather, the examples described herein have been provided to illustrate only some of the many possible ways to implement the methods, devices, and / or systems described herein, which will be clear after understanding the disclosure of the present application.
[0025] As used herein, the term "and / or" includes any one of the associated listed items and any combination of any two or more.
[0026] Although terms such as "first", "second", and "third" may be used herein to describe various members, components, regions, layers, or portions, these members, components, regions, layers, or portions should not be limited by these terms. Instead, these terms are only used to distinguish one member, component, region, layer, or portion from another member, component, region, layer, or portion. Therefore, without departing from the teachings of the examples described herein, the first member, first component, first region, first layer, or first portion referred to in the examples may also be referred to as the second member, second component, second region, second layer, or second portion.
[0027] In the specification, when an element (such as a layer, a region or a substrate) is described as being “on”, “connected to” or “coupled to” another element, the element may be directly “on”, “connected to” or “coupled to” another element, or one or more other elements may be present therebetween. Conversely, when an element is described as being “directly on”, “directly connected to” or “directly coupled to” another element, there may be no other elements present therebetween.
[0028] The terms used herein are only used to describe various examples and are not intended to limit the disclosure. Unless the context clearly indicates otherwise, the singular form is also intended to include the plural form. The terms "comprise", "include" and "have" indicate the presence of the described features, quantities, operations, components, elements and / or combinations thereof, but do not exclude the presence or addition of one or more other features, quantities, operations, components, elements and / or combinations thereof.
[0029] Unless otherwise defined, all terms (including technical and scientific terms) used herein have the same meaning as those generally understood by a person of ordinary skill in the art to which the present disclosure belongs after understanding the present disclosure. Unless explicitly defined as such herein, terms (such as those defined in a general dictionary) should be interpreted as having a meaning consistent with their meaning in the context of the relevant art and the present disclosure, and should not be interpreted in an idealized or overly formal manner.
[0030] Furthermore, in the description of examples, when it is considered that a detailed description of a well-known related structure or function would cause vague interpretation of the present disclosure, such a detailed description will be omitted.
[0031] Figure 1 is a schematic diagram showing an efficient 0 sharing generation system according to an embodiment of the present disclosure.
[0032] The solution of the present invention constructs a computing method based on a network architecture of multiple data sources and multiple computing parties, and a connection is established between the data source and the computing party through an RPC service;
[0033] There are four computing parties, each of which consists of a TEE and a CPU, where the TEE performs ciphertext calculations and the CPU is responsible for calculation scheduling; three of the TEEs are responsible for calculations, and the other TEE is used solely to generate a secret share of 0, which is called ZTEE.
[0034] A job is defined as a cryptographic processing of the data from the data source, that is, the cryptographic calculation based on the RSS sharing of each data source. These calculations can be required in scenarios such as privacy protection data analysis between hospitals or medical institutions, anti-fraud in banks and financial institutions, and joint machine learning of data between multiple companies and institutions. The execution process of a job is divided into several stages, each stage is called a task, so a job contains multiple tasks. A job has a jobid corresponding to it. The multiple tasks contained in the job are job initialization, obtaining public keys, uploading RSS sharing shards, executing cryptographic calculations, and job destruction. Each task is provided in the form of a gRPC interface. The cryptographic calculation based on the RSS sharing shard occurs inside three TEEs.
[0035] There are four TEEs, three of which are responsible for calculations, and the other TEE is used solely to generate a secret share of 0, called ZTEE.
[0036] 1 Pre-preparation phase: ZTEE creates 30 isolated partitions, each with 10 partitions, for a total of three groups. Generate several secret shares of 0, evenly distribute them to 30 isolated partitions, and fill each isolated partition; in the above process, the secret share of 0 is to randomly generate x, y, z so that the sum of x+y+z in the ring is 0, for example, x+y+zmod2^64=0, x+y+zmod2^128=0. The share of 0 is mainly used to construct the secret share of original data in scenarios such as finance and medical care, that is, assuming that the share of 0 is x, y, z, and the relationship between x, y, z meets the above requirements, then the secret share of a confidential data h is h+x, y, z.
[0037] Taking public debt statistics as an example, when someone wants to apply for a loan from an institution, the institution must consider the loan amount of this person in other institutions. However, the amount of a person in each institution belongs to the private data of this person, and institutions cannot directly share data for calculation. At this time, secret sharing is needed for calculation. Suppose this person has loans in five institutions and the loan amount of this person in each institution is x_i. First, each microfinance company secretly shares the loan amount of this person, that is, x_i = m_i + n_i + h_i% 2^64; where i is the serial number of the institution, which is an integer between 1-5.
[0038] Then calculate m=∑m_i, n=∑n_i, h=∑h_i, at this time m, n, h are still the secret sharing of a value, and m, n, h are the secret sharing of ∑x_i;
[0039] Finally, we calculate m+n+h%2^64 to get the total amount of loans this person has received from the five institutions, but we do not know the loan amount in any specific institution.
[0040] This completes the calculation of a person's total loan amount in five institutions, simply by converting the plaintext calculation process into the corresponding calculation process in secret sharing.
[0041] 2 Five data sources simultaneously initiate task requests for jobs, with jobids of job1, job2, job3, job4, and job5 respectively. The three computing TEEs execute multiple tasks according to the requests of the data sources, including job initialization, obtaining public keys, uploading RSS sharing segments, executing ciphertext calculations, and job destruction;
[0042] 2.1 In the job initialization phase, the computing TEE sends the jobid to ZTEE, and ZTEE binds the jobid to the isolation partition. Each jobid needs to be bound to three groups of isolation partitions, that is, one jobid corresponds to three isolation partitions, and the jobid is hashed and assigned to the three bound isolation partitions. Five of the 10 isolation partitions in each group are bound to the jobid, and the remaining isolation partitions are not used for the time being;
[0043] 2.2 The three computing TEEs continue to obtain public keys and upload RSS sharing segments;
[0044] 2.3 When the three computing TEEs execute the ciphertext computing task, they need a secret share of 0 to randomize the slices and request a secret share of 0 from ZTEE. The computing TEE sends the jobid and the required number of secret shares of 0 to ZTEE. ZTEE finds the bound isolation area based on the hash value of the jobid. Taking job1 as an example, it first takes out several secret shares of 0 from the isolation area 1 of the first group. If the pre-generated secret shares of 0 in the isolation area 1 of the first group are taken out, switch to the isolation area 1 of the second group. At the same time, the isolation area 1 of the first group starts to regenerate the secret share of 0 until it is filled. If the isolation area 1 of the second group is also taken out, and so on, it ensures that there is a sufficient supply of secret shares of 0 in ZTEE;
[0045] 2.4 Three computing TEEs execute job destruction.
[0046] Although some embodiments of the present disclosure have been shown and described, it will be appreciated by those skilled in the art that modifications may be made to the embodiments without departing from the principles and spirit of the present disclosure, the scope of which is defined by the claims and their equivalents.
Claims
1. A sharing generation method for 0 applied to privacy protection, characterized in that: The computing method is built based on the network architecture of multiple data sources and computing parties, and the data sources and computing parties are connected through the RPC service. There are four computing parties, each of which consists of a TEE and a CPU, where the TEE performs ciphertext calculations and the CPU is responsible for calculation scheduling; Among the four computing parties, the TEEs of three computing parties are responsible for the calculation, and the TEE of the other computing party is used alone to generate a secret share of 0, which is called ZTEE; Based on this architecture, it is achieved in two steps: Step 1: In the pre-preparation phase, ZTEE creates 30 isolated partitions, each with 10 partitions in a group, for a total of three groups; generates a number of secret shares of 0, evenly distributes them to the 30 isolated partitions, and fills each isolated partition; Step 2: Five data sources simultaneously initiate task requests, with jobids of job1, job2, job3, job4, and job5 respectively. The TEEs of the three computing parties responsible for the calculation execute multiple tasks to perform privacy-protected data analysis according to the requests of the data sources, and convert the secret calculation into the calculation result output after the corresponding calculation is executed. This calculation result is still secret sharing, that is, secret sharing of plaintext results. Finally, the secret sharing is restored to the plaintext calculation result and sent to a certain participant.
2. A method for generating sharing data of 0 for privacy protection as claimed in claim 1, characterized in that: The task includes job initialization, obtaining public keys and uploading RSS sharing segments, executing ciphertext calculation phase, and job destruction phase. The specific implementation method is as follows: Step 2.1: In the job initialization phase, the computing TEE sends the jobid to ZTEE, and ZTEE binds the jobid to the isolation partition. Each jobid needs to be bound to three groups of isolation partitions, that is, one jobid corresponds to three isolation partitions, and the jobid is hashed and assigned to the three bound isolation partitions. Five of the 10 isolation partitions in each group are bound to the jobid, and the remaining isolation partitions are not used for the time being; Step 2.2: Obtaining the public key and uploading RSS sharing shards. The three computing TEEs continue to execute obtaining the public key and uploading the RSS sharing shards. (1) Obtaining the public key is to establish a secure communication channel between the TEE and the data source. (2) Uploading the RSS sharing shards means that the data provider constructs the RSS shards of its private data locally and transmits different parts of the shards to different TEEs through encrypted communication channels. The encrypted communication channel can use an asymmetric encryption algorithm, and the encryption key comes from the "obtaining the public key" step. Each task is provided in the form of a gRPC interface; Step 2.3: During the ciphertext calculation phase, when the three computing TEEs execute the ciphertext calculation task, they need 0 secret sharing to randomize the slices and request 0 secret sharing from ZTEE; Calculate the number of jobid and secret shares of 0 that TEE needs to send to ZTEE. ZTEE finds the bound isolation zone based on the hash value of jobid. Taking job1 as an example, first take out several secret shares of 0 from isolation zone 1 of the first group. If the pre-generated secret shares of 0 in isolation zone 1 of the first group are used up, switch to isolation zone 1 of the second group. At the same time, isolation zone 1 of the first group starts to regenerate secret shares of 0 until it is full. If isolation zone 1 of the second group is also used up, switch to the next group of isolation zone 1 to ensure sufficient supply of secret shares of 0 in ZTEE. Step 2.4: In the job destruction phase, the three computing TEEs execute job destruction, that is, clearing the intermediate result cache and other contents in the TEE calculation process.
