Privacy data access method, device, equipment and system based on secret sharing
By secretly sharing and shuffling the data serial numbers in the privacy database, and using the oblivious transmission protocol, the data in the privacy database can be accessed safely and efficiently without leaking the data, solving the problem of data access security in the existing technology. issues of performance and efficiency.
Patent Information
- Application Number
- CN202010927160.6
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2020-09-07
- Publication Date
- 2024-10-18
- Estimated Expiration
- 2040-09-07
AI Technical Summary
It is difficult with existing technology to safely and efficiently access data in a privacy database and protect user privacy without leaking the privacy database data.
By secretly sharing and splitting the serial number of the private data to be accessed, and distributing it to the first party and the second party so that the serial number cannot be known, data access is achieved through order disruption and unintentional transmission protocols to ensure mutual confidentiality. Access elements in the database.
It improves the security of privacy database data access and avoids the problem of inferring the element sequence number of the final result through intermediate results. It also improves the efficiency of computing and communication, and improves the efficiency of data access.
Smart Images

Figure CN112148755B_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the field of computer technology, and in particular to a method, device, equipment and system for accessing private data based on secret sharing. Background Art
[0002] With the development of computer technology and Internet technology, there are more and more scenarios based on big data analysis to help business processing, which involves a large amount of data, and the security of data needs to be paid more and more attention. General data can be saved after encryption, such as using secret sharing technology to build an encrypted privacy database. How to query and access the data in the privacy database safely and efficiently without leaking the data in the privacy database to protect user privacy is an important task. Summary of the invention
[0003] The purpose of the embodiments of this specification is to provide a method, device, equipment and system for accessing private data based on secret sharing, thereby improving the security of data access to a private database.
[0004] In a first aspect, an embodiment of this specification provides a method for accessing private data based on secret sharing, the method comprising:
[0005] The first party scrambles the order of data in the first share of the database saved by the first party based on the first share of the sequence number to obtain the first share of the scrambled database;
[0006] The second party scrambles the order of the data in the second database share saved by the second party based on the second serial number share to obtain the scrambled second database share; wherein the first serial number share and the second serial number share are obtained by secret sharing of the serial number of the private data to be accessed, and the first database share and the second database share are obtained by secret sharing of the private database;
[0007] The first party and the second party perform two data transmissions using the oblivious transfer protocol according to the first share of the scrambled database, the second share of the scrambled database, the first share of the sequence number, and the second share of the sequence number, the first party obtains the second share of access data from the second party, and the second party obtains the first share of access data from the first party;
[0008] The to-be-accessed private data is obtained according to the first access data share and the second access data share.
[0009] In a second aspect, this specification provides a method for accessing private data based on secret sharing, the method comprising:
[0010] The data in the first share of the database saved by the first share with the serial number is shuffled to obtain the first share of the shuffled database;
[0011] According to the first share of the sequence number, the first share of the scrambled database, the second share of the sequence number provided by the second party, and the second share of the scrambled database, the oblivious transfer protocol is used to perform two data transmissions with the second party, and the second share of the access data is obtained from the second party, and the second share of the access data is obtained from the first share of the scrambled database; wherein the first share of the sequence number and the second share of the sequence number are obtained by secret sharing of the sequence number of the private data to be accessed, the second share of the scrambled database is obtained by the second party by sequentially scrambling the data in the second share of the database based on the second share of the sequence number, and the first share of the database and the second share of the database are obtained by secret sharing of the private database;
[0012] The to-be-accessed private data is obtained according to the first access data share and the second access data share.
[0013] In a third aspect, this specification provides a private data access device based on secret sharing, comprising:
[0014] A data scrambling module, used to scramble the data in the first share of the database saved by the first share with the serial number to obtain the first share of the scrambled database;
[0015] An access data share acquisition module is used to perform two data transmissions with the second party using an oblivious transfer protocol according to the first share of the sequence number, the first share of the scrambled database, the second share of the sequence number provided by the second party, and the second share of the scrambled database, to obtain the second share of the access data from the second party, and to enable the second party to obtain the first share of the access data from the first share of the scrambled database; wherein the first share of the sequence number and the second share of the sequence number are obtained by secret sharing of the sequence number of the private data to be accessed, the second share of the scrambled database is obtained by the second party by sequentially scrambling the data in the second share of the database based on the second share of the sequence number, and the first share of the database and the second share of the database are obtained by secret sharing of the private database;
[0016] The access data acquisition module is used to obtain the to-be-accessed private data according to the first access data share and the second access data share.
[0017] In a fourth aspect, an embodiment of the present specification provides a privacy data access device based on secret sharing, comprising at least one processor and a memory for storing processor executable instructions, wherein when the processor executes the instructions, the privacy database data access method described in the first or second aspect is implemented.
[0018] In a fifth aspect, an embodiment of the present specification provides a private data access system based on secret sharing, including: a client, a first terminal, and a second terminal, wherein:
[0019] The client is used to send data access requests to the first terminal and the second terminal, and send a first share of the sequence number obtained by secret sharing of the sequence number of the private data to be accessed to the first terminal, and send a second share of the sequence number to the second terminal. The first terminal and the second terminal respectively include at least one processor and a memory for storing processor executable instructions. When the processor in the first terminal executes the instructions, the method described in the second aspect is implemented, which is used to perform two data transmissions with the second terminal using the oblivious transfer protocol to obtain a first share of access data and a second share of access data respectively.
[0020] The method, device, equipment and system for accessing private data based on secret sharing provided in this specification, by secret sharing the serial number of the private data to be accessed, splitting it into the first share of the serial number and the second share of the serial number and distributing it to the first party and the second party who have stored the private database share, so that the first party and the second party cannot know the serial number of the private data to be accessed. The first party and the second party use the received first share of the serial number and the second share of the serial number to scramble the serial numbers of the data in the first share of the database and the second share of the database respectively. Then through two inadvertent transmissions, the first party and the second party obtain the first share of the access data and the second share of the access data from each other, and the private data to be accessed can be obtained based on the first share of the access data and the second share of the access data. The function of accessing a certain element in the private database can be realized by the first party and the second party under the premise of mutual confidentiality, and by secret sharing of the serial number of the private data to be accessed and the order of the data in the database being scrambled, the problem of inferring the final result element serial number from the intermediate result can be avoided, and the security of the data in the private database can be further ensured. At the same time, the use of inadvertent data transmission can improve the efficiency of calculation and communication, thereby improving the efficiency of data access. BRIEF DESCRIPTION OF THE DRAWINGS
[0021] In order to more clearly illustrate the embodiments of this specification or the technical solutions in the prior art, the drawings required for use in the embodiments or the description of the prior art will be briefly introduced below. Obviously, the drawings described below are only some embodiments recorded in this specification. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying creative labor.
[0022] Figure 1 It is a schematic diagram of the data transmission principle of the oblivious transfer protocol when the sender sends two data;
[0023] Figure 2 It is a schematic diagram of the data transmission principle of the oblivious transfer protocol when the sender sends multiple data;
[0024] Figure 3 It is a flowchart of an embodiment of a method for accessing private data based on secret sharing provided in an embodiment of this specification;
[0025] Figure 4 is a flowchart of a method for accessing private data based on secret sharing in other embodiments of this specification;
[0026] Figure 5 This is a schematic diagram of a process for a first party and a second party to access private data in one embodiment of this specification;
[0027] Figure 6 It is a schematic diagram of the module structure of an embodiment of a private data access device based on secret sharing provided in this specification;
[0028] Figure 7 It is a hardware structure block diagram of a privacy data access server based on secret sharing in one embodiment of this specification. DETAILED DESCRIPTION
[0029] In order to enable those skilled in the art to better understand the technical solutions in this specification, the technical solutions in the embodiments of this specification will be clearly and completely described below in conjunction with the drawings in the embodiments of this specification. Obviously, the described embodiments are only part of the embodiments of this specification, not all of the embodiments. Based on the embodiments in this specification, all other embodiments obtained by ordinary technicians in this field without creative work should fall within the scope of protection of this specification.
[0030] Secret sharing is a cryptographic primitive that can split and distribute original data. Each piece of distributed data is held by different managers. A single data holder or a number of data holders below the number specified in the agreement cannot recover the secret. It is a basic technology for protecting information security and performing secure computing. For example, secret sharing is performed on the original data x, x is split into x1 and x2, and x1 is distributed to manager 1, and x2 is distributed to manager 2. A privacy database can be constructed based on secret sharing technology. Each piece of data in the privacy database can be split into multiple pieces and distributed to different managers for storage.
[0031] In some embodiments of this specification, a privacy database may be provided, and the privacy database may include the user's private data. In order to ensure the security of the data in the privacy database, the privacy database may be constructed using secret sharing technology, and each data in the privacy database is split into two parts, one part is stored in the first party, and the other part is stored in the second party. When it is necessary to access the data in the privacy database, the first party and the second party need to cooperate with each other to access the specified elements in the privacy database. In an embodiment of this specification, a method for accessing private data is provided, and the first party and the second party can perform data transmission through an oblivious transfer protocol, so that the first party and the second party can inadvertently access the specified elements in the privacy database to ensure the security of the data.
[0032] Oblivious Transfer is a cryptographic primitive and a basic protocol for two-way secure computing. There are two parties involved in the Oblivious Transfer protocol: the sender and the receiver. Figure 1 It is a schematic diagram of the data transmission principle of the oblivious transfer protocol when the sender sends two data, such as Figure 1 As shown in the figure, the 1-out-of-2 oblivious transfer protocol means that the sender sends two data. Before the protocol starts, the sender holds two data m0 and m1, and the receiver holds a selection bit b = {0,1}. Both parties use their respective data as the input of the protocol, and at the output of the protocol, the receiver obtains data m b The oblivious transfer protocol ensures that after the protocol is executed, the sender cannot know b and the receiver cannot know m. 1-b . Figure 2 This is a schematic diagram of the data transmission principle of the oblivious transfer protocol when the sender sends multiple data, such as Figure 2 As shown, similar to the 1-out-of-2 oblivious transfer protocol, the 1-out-of-n oblivious transfer protocol allows the sender to send n pieces of data for the receiver to select one of the pieces of data.
[0033] Figure 3It is a flow chart of an embodiment of a privacy data access method based on secret sharing provided in an embodiment of this specification. Although this specification provides method operation steps or device structures as shown in the following embodiments or drawings, more or fewer operation steps or module units may be included in the method or device based on routine or no creative labor. In the steps or structures where there is no necessary causal relationship logically, the execution order of these steps or the module structure of the device is not limited to the execution order or module structure shown in the embodiments or drawings of this specification. When the method or module structure described is applied in an actual device, server or terminal product, it can be executed sequentially or in parallel according to the method or module structure shown in the embodiment or drawings (for example, a parallel processor or multi-threaded processing environment, or even a distributed processing, server cluster implementation environment).
[0034] A specific implementation example is Figure 3 As shown, in one embodiment of the private data access method based on secret sharing provided in this specification, the method can be applied to a first party and a second party, the first party and the second party can be understood as device terminals such as computers, tablet computers, servers, etc., and the method may include the following steps:
[0035] Step 302: The first party shuffles the order of data in the first share of the database saved by the first party based on the serial number first share to obtain the shuffled database first share.
[0036] In the specific implementation process, referring to the records of the above embodiments, the data in the privacy database are split into two parts using secret sharing technology, and the first party and the second party respectively save a part of each data in the privacy database, that is, the first party saves the first database share of the privacy database, and the second party saves the second database share of the privacy database. Among them, the first database share and the second database share are obtained after the privacy database is secretly shared, and the splitting method of the secret sharing of each data can be selected based on actual needs. For example, the data in the privacy database can be additively secret shared, and each data can be split into two parts, one saved in the first party and the other saved in the second party. For example: to perform secret sharing on data x in the privacy database, first, select the corresponding security level parameter and generate the corresponding finite field (for example, 2 25 6 ), then select random numbers uniformly distributed in the finite field and record them as Calculate x2=x-x1, distribute x1 to the first party, and distribute x2 to the second party. In the following embodiment description, if additive secret sharing is adopted, it can be recorded as <x>Secret Sharing <x> 0 , <x> 1 ,in <x> = <x> 0 + <x> 1 .
[0037] When data access is needed for an element in a private database, the first party and the second party need to cooperate with each other to access the true value of the element. <x <τ> >, <x <τ> > can represent the private data to be accessed. The client can use the secret sharing technology to split the serial number <τ> of the private data to be accessed into two parts, such as: split into <τ> 0 , <τ> 1 , where the secret sharing splitting method can be selected in different ways based on actual needs. The client can split the first share of the sequence number of the private data to be accessed <τ> 0 Send to the first party the second share of the sequence number of the private data to be accessed <τ> 1 After the first party receives the first share of the sequence number of the private data to be accessed, it can scramble the order of the data in the first share of the database stored by itself based on the first share of the sequence number, such as using the first share of the sequence number to change the sequence number of the data in the first share of the database stored by itself to obtain the scrambled first share of the database after the sequence is scrambled.
[0038] Of course, when the first party and / or the second party needs to access data that meets certain conditions in the privacy database, a third-party system can perform secret sharing and split the serial numbers of the data to be accessed based on the access request sent by the first party and / or the second party, and distribute it to the first party and the second party.
[0039] Step 304: The second party scrambles the order of the data in the second share of the database saved by the second party based on the serial number second share to obtain a scrambled database second share; wherein the serial number first share and the serial number second share are obtained by secret sharing of the serial number of the private data to be accessed, and the database first share and the database second share are obtained by secret sharing of the private database.
[0040] In the specific implementation process, when the second party receives the serial number second share of the serial number of the private data to be accessed, it can scramble the order of the data in the second share of the database stored by itself based on the serial number second share, similar to the first party. For example, the serial number second share can be used to change the serial number of the data in the second share of the database stored by itself to obtain the scrambled database second share after the order is scrambled.
[0041] Among them, the method for the first party and the second party to scramble the order of data in the database can be the same, and the method for scrambling the order of data in the database can be determined according to the secret sharing method of the serial number of the private data to be accessed. For details, please refer to the records of subsequent embodiments.
[0042] Step 306: The first party and the second party perform two data transmissions using the oblivious transfer protocol according to the first share of the scrambled database, the second share of the scrambled database, the first share of the sequence number, and the second share of the sequence number. The first party obtains the second share of access data from the second party, and the second party obtains the first share of access data from the first party.
[0043] In a specific implementation process, after the first party and the second party scramble the sequence of the data in the first share of the database and the second share of the database respectively stored, they can use the oblivious transfer protocol to perform two data transmissions. In one data transmission, the first party can be used as the sender of the oblivious transfer protocol and the second party as the receiver of the oblivious transfer protocol, so that the second party can obtain the first share of access data from the first share of the scrambled database, and the other data transmission can be used as the sender of the oblivious transfer protocol and the first party as the receiver of the oblivious transfer protocol, so that the first party can obtain the second share of access data from the second share of the scrambled database stored by the second party.
[0044] For example: during the first data transmission, the first party, as the sender, uses the data in the first share of the scrambled database as the input of the oblivious transfer protocol, and the second party, as the receiver, uses the second share of the sequence number as the input. By using the oblivious transfer protocol, the second party can obtain the data corresponding to the second share of the sequence number from the first share of the scrambled database of the first party, that is, access the first share of the data. Similarly, during the second data transmission, the second party, as the sender, uses the data in the second share of the scrambled database as the input of the oblivious transfer protocol, and the first party, as the receiver, uses the first share of the sequence number as the input. By using the oblivious transfer protocol, the first party can obtain the data corresponding to the first share of the sequence number from the second share of the scrambled database of the second party, that is, access the second share of the data.
[0045] Step 308: Obtain the to-be-accessed private data according to the first access data share and the second access data share.
[0046] In the specific implementation process, after obtaining the first access data share and the second access data share, the first party and the second party can return the second access data share and the first access data share respectively obtained to the client that sends the data access request, so that the client can obtain the corresponding private data to be accessed by using the second access data share, the first access data share and the secret sharing technology. Alternatively, the first party can also send the second access data share obtained by itself to the second party, so that the second party can obtain the corresponding private data to be accessed by using the second access data share, the first access data share and the secret sharing technology, and the second party can also return the obtained private data to be accessed to the client that sends the access data request. Similarly, the second party can also send the first access data share obtained by itself to the first party, so that the first party can obtain the corresponding private data to be accessed by using the second access data share, the first access data share and the secret sharing technology, and the first party can also return the obtained private data to be accessed to the client. Of course, the first party and the second party can also send their respective access data shares obtained to each other, so that both the first party and the second party can obtain the private data to be accessed, and the first party and the second party can also return their respective obtained private data to be accessed to the client that sends the access request.
[0047] Among them, the method of obtaining the private data to be accessed according to the first share of access data and the second share of access data can be determined according to the secret sharing algorithm of the data in the privacy database. For example, if the data in the privacy database is split by additive secret sharing, then the private data to be accessed can be obtained by accessing the first share of access data and the second share of access data.
[0048] The data access method of the privacy database provided in the embodiment of this specification is to share the secret of the sequence number of the private data to be accessed and split it into the first share of the sequence number and the second share of the sequence number and distribute it to the first party and the second party who have saved the private database share, so that the first party and the second party cannot know the sequence number of the private data to be accessed. The first party and the second party use the received first share of the sequence number and the second share of the sequence number to scramble the sequence numbers of the data in the first share of the database and the second share of the database respectively. Then through two inadvertent transmissions, the first party and the second party obtain the first share of the access data and the second share of the access data from each other, and the private data to be accessed can be obtained based on the first share of the access data and the second share of the access data. The function of the first party and the second party to access an element in the privacy database can be realized inadvertently, and by sharing the secret of the sequence number of the private data to be accessed and scrambling the order of the data in the database, the problem of inferring the sequence number of the final result element from the intermediate result can be avoided, which further ensures the security of the data in the privacy database and protects the privacy of the user. At the same time, the use of inadvertent data transmission can improve the efficiency of calculation and communication, thereby improving the efficiency of data access.
[0049] Figure 4 is a flowchart of a method for accessing private data based on secret sharing in other embodiments of this specification, such as Figure 4 As shown, the method can be applied to the first party, which can be a computer, tablet computer, smart phone or other terminal. It should be noted that the first party and the second party in the embodiment of this specification are just service parties that store different shares of the privacy database. There is no essential difference between the first party and the second party. The methods performed by the first party and the second party are the same. This embodiment of the specification takes the first party as an example to explain the process of accessing the privacy database. The data processing process of the second party can refer to the content of the first party, and this embodiment of the specification will not be elaborated in detail. Figure 4 As shown, the method includes:
[0050] Step 402: Use the serial number first share to shuffle the order of the data in the stored database first share to obtain the shuffled database first share.
[0051] In the specific implementation process, referring to the records of the above embodiments, the first party and the second party respectively save a part of the data in the privacy database, that is, the first party saves the first database share of the privacy database, and the second party saves the second database share of the privacy database. Among them, the first database share and the second database share are obtained after the privacy database is secretly shared. For example, the data in the privacy database can be added and secretly shared, and each data is split into two parts, one is saved in the first party, and the other is saved in the second party. When data access to a certain element in the privacy database is required, such as when a client wants to access the data in the privacy database, <x <τ> >, the client can use secret sharing technology to split the serial number <τ> of the private data to be accessed into two parts, such as: split into <τ> 0 , <τ> 1 The client can use the first share of the sequence number of the split private data to be accessed <τ> 0 Send to the first party the second share of the sequence number of the private data to be accessed <τ> 1 Send to the second party.
[0052] After the first party receives the first serial number share of the serial number of the private data to be accessed, it can scramble the order of the data in the first database share stored by itself based on the first serial number share, such as using the first serial number share to change the serial number of the data in the first database share stored by itself to obtain the scrambled first database share. Similarly, when the second party receives the second serial number share of the serial number of the private data to be accessed, it can scramble the order of the data in the second database share stored by itself based on the second serial number share similarly to the first party, such as using the second serial number share to change the serial number of the data in the second database share stored by itself to obtain the scrambled second database share.
[0053] Of course, the first party and / or the second party may need to access data that meets certain conditions in the privacy database (such as data of users aged 20). Based on the access request sent by the first party and / or the second party, a third party may perform secret sharing and split the serial numbers of the data that need to meet the access conditions, and distribute them to the first party and the second party.
[0054] The method of secret sharing of the data in the privacy database and the serial number of the private data to be accessed can be selected according to actual needs, and is not specifically limited in the embodiments of this specification.
[0055] In some embodiments of this specification, the secret sharing algorithm of the first serial number share and the second serial number share can be the same as the secret sharing algorithm of the data in the first database share and the second database share. For example, the serial number <τ> of the private data to be accessed and the data x in the private database can be secret shared by using additive secret sharing, and <τ> can be split into <τ> 0 , <τ> 1 ,Will <x>Split into <x> 0 , <x> 1 , where <τ> = <τ> 0 +<τ> 1 , <x> = <x> 0 + <x> 1 Using the same secret sharing algorithm to secretly share the serial number of the private data to be accessed and the data in the private database can simplify the data access process and improve data access efficiency.
[0056] Step 404: perform two data transmissions with the second party using the oblivious transfer protocol according to the first share of the serial number, the first share of the scrambled database, the second share of the serial number provided by the second party, and the second share of the scrambled database, to obtain the second share of the access data from the second party, and enable the second party to obtain the first share of the access data from the first share of the scrambled database; wherein the first share of the serial number and the second share of the serial number are obtained by secret sharing of the serial number of the private data to be accessed, the second share of the scrambled database is obtained by the second party by sequentially scrambling the data in the second share of the database based on the second share of the serial number, and the first share of the database and the second share of the database are obtained by secret sharing of the private database.
[0057] In a specific implementation process, after the first party and the second party scramble the sequence of the data in the first share of the database and the second share of the database respectively stored, they can use the oblivious transfer protocol to perform two data transmissions. In one data transmission, the first party can be used as the sender of the oblivious transfer protocol and the second party as the receiver of the oblivious transfer protocol, so that the second party can obtain the first share of access data from the first share of the scrambled database, and the other data transmission can be used as the sender of the oblivious transfer protocol and the first party as the receiver of the oblivious transfer protocol, so that the first party can obtain the second share of access data from the second share of the scrambled database stored by the second party.
[0058] In some embodiments of the present specification, the performing two data transmissions with the second party using an oblivious transfer protocol according to the first share of the sequence number, the first share of the scrambled database, and the second share of the sequence number and the scrambled database provided by the second party, includes:
[0059] When performing a data transmission using the oblivious transfer protocol, the data in the first share of the scrambled database and the second share of the sequence number provided by the second party are used as input, so that the second party obtains the first share of access data from the first share of the scrambled database;
[0060] When another data transmission is performed using the oblivious transfer protocol, the first share of the sequence number and the second share of the scrambled database provided by the second party are used as input to obtain the second share of the access data from the second party.
[0061] In the specific implementation process, it is assumed that the first party stores the first share of the private database as follows: The second share of the database in which the second party stores the private database is: Where i = {0, 1, 2, ..., n-1}. The private data to be accessed is <x <τ> >, split <τ> into <τ> using secret sharing technology 0 , <τ> 1 , and <τ> 0 Send to the first party, <τ> 1 Send to the second party. The first party uses <τ> 0 right Disrupt the order, such as: Similarly, the second party uses <τ> 1 right Disrupt the order, such as: In the first oblivious transfer, the first party is the sender of the data and can As the input of the oblivious transfer protocol, the second party sends <τ> 1 As input to the oblivious transfer protocol, the second party can get Get access to the first share of data: If <τ> is pre-shared based on secret sharing technology, <τ> 1 +<τ> 0 = <τ>, then the first share of access data can be <x <τ> > 0 Similarly, during the second data transmission, the second party is the data sender and can As the input of the oblivious transfer protocol, the first party sends <τ> 0 As input to the oblivious transfer protocol, the first party can get Get access to the second share of data <x <τ> > 1 .
[0062] The first party and the second party are respectively used as senders of two oblivious transfers, and two oblivious transfer protocol data transmissions are performed, so that the first party and the second party can inadvertently obtain two shares of the private data to be accessed.
[0063] It should be noted that there is no fixed order for the two oblivious transmissions. The first party can be the sender first, or the first party can be the receiver first. Alternatively, if conditions permit, the two oblivious transmissions can be performed simultaneously. This specification does not make any specific limitations on this.
[0064] Step 406: Obtain the to-be-accessed private data according to the first access data share and the second access data share.
[0065] In the specific implementation process, after obtaining the first share of access data and the second share of access data, the first share of access data and the second share of access data can be reconstructed based on the secret sharing algorithm of the privacy database, and the corresponding privacy data to be accessed can be obtained. Of course, the reconstruction process can be completed by the first party, the second party or the client that sends the data access request. For details, please refer to the records of the above embodiments.
[0066] For example, referring to the above embodiment, it can be seen that the first share of access data is <x τ > 0 and access data for the second share as <x <τ> > 1 In fact, they are the privacy data to be accessed <x <τ> > two shares. If the privacy database is shared by adding secrets, the first share of the access data can be <x <τ> > 0 Second share with access data <x <τ> > 1 Add <x <τ> > 0 + <x <τ> > 1 = <x <τ> >, you can get the private data to be accessed <x <τ> > the true value.
[0067] The data access method of the privacy database provided in the embodiment of this specification is to share the secret of the sequence number of the private data to be accessed and split it into the first share of the sequence number and the second share of the sequence number and distribute it to the first party and the second party who have saved the private database share, so that the first party and the second party cannot know the sequence number of the private data to be accessed. The first party and the second party use the received first share of the sequence number and the second share of the sequence number to scramble the sequence numbers of the data in the first share of the database and the second share of the database respectively. Then through two inadvertent transmissions, the first party and the second party obtain the first share of the access data and the second share of the access data from each other, and the private data to be accessed can be obtained based on the first share of the access data and the second share of the access data. The function of the first party and the second party to access an element in the privacy database can be realized inadvertently, and by sharing the secret of the sequence number of the private data to be accessed and scrambling the order of the data in the database, the problem of inferring the sequence number of the final result element from the intermediate result can be avoided, and the security of the data in the privacy database can be further ensured. At the same time, the use of inadvertent data transmission can improve the efficiency of calculation and communication, thereby improving the efficiency of data access.
[0068] Based on the above embodiments, in some embodiments of this specification, before performing two data transmissions using the oblivious transfer protocol, the method further includes:
[0069] Generate a first random number in a finite field;
[0070] Using the first random number, masking the data in the first share of the scrambled database to obtain the first share of the scrambled masked database;
[0071] Two data transmissions are performed using the oblivious transfer protocol based on the data in the first share of the scrambled mask database, the first share of the sequence number, the second share of the sequence number provided by the second party, and the second share of the scrambled mask database; wherein the second share of the scrambled mask database is obtained by the second party performing a mask operation on the data in the second share of the scrambled database using a second random number, and the method of performing a mask operation on the data in the first share of the scrambled database is the same as the method of performing a mask operation on the data in the second share of the scrambled database.
[0072] In the specific implementation process, before the data transmission of the oblivious transfer protocol is carried out, the first party and the second party can also use the secret sharing technology to perform mask operations on the data in the privacy database share they save. For example, the first party and the second party can generate a finite field of corresponding order (such as 2 25 6 ), and then generate a random number in a finite field, such as: the first random number r0 generated by the first party, and the second party can generate a second random number r1. The first party can use the first random number r0 to perform a mask operation on the data in the first share of the scrambled database, such as: the data in the first share of the scrambled database can be added or subtracted or multiplied or divided by the first random number. Similarly, the second party can use the second random number r1 to perform a mask operation on the data in the second share of the scrambled database. Of course, the two servers perform the mask operation in the same way, so that the privacy data to be accessed can be obtained when the access data share is subsequently reconstructed.
[0073] After the masking operation, the first share of the scrambled mask database and the second share of the scrambled mask database can be used for inadvertent transmission. Perform masking operations to obtain the first share of the scrambled mask database The second server second party uses the first random number r1 to scramble the second share of the database Perform mask operation to obtain the second share of the scrambled mask database In the first oblivious transfer, the first party is the sender of the data and can As the input of the oblivious transfer protocol, the second party sends <τ> 1 As input to the oblivious transfer protocol, the second party can get Get access to the first share of data: If <τ> 1 +<τ> 0 = <τ>, then the first share of access data can be <x <τ> > 0 +r0. Similarly, during the second data transmission, the second party is the data sender and can As the input of the oblivious transfer protocol, the first party sends <τ> 0 As input to the oblivious transfer protocol, the first party can get The second share of access data is obtained If <τ> 1 +<τ> 0 = <τ>, then the first share of access data can be <x <τ> > 1 +r1. Then, based on the first access data share and the second access data share, the corresponding private data to be accessed is obtained.
[0074] It should be noted that the order in which the first party and the second party perform the scrambling and masking operations on the first and second database shares stored in the embodiments of this specification is not fixed, and the masking operation may be performed first and then scrambling, or the masking and scrambling may be performed simultaneously, which is not specifically limited in the embodiments of this specification. In addition, the masking and scrambling of the data in the database may be performed offline to avoid occupying data processing resources.
[0075] This specification performs a masking operation on the scrambled database, making it more difficult for the first party and the second party to guess the true value of the private data to be accessed independently, thereby improving the security of data access to the private database.
[0076] Based on the above embodiments, in some embodiments of this specification, obtaining a second share of access data from the second party includes:
[0077] Obtaining a second share of masked access data from a second share of the scrambled mask database of the second party using an oblivious transfer protocol, unmasking the second share of masked access data, and obtaining the second share of access data;
[0078] The method of enabling the second party to obtain the first share of access data from the first share of the scrambled database includes:
[0079] The oblivious transfer protocol is used to enable the second party to obtain the first share of masked access data from the first share of the scrambled mask database. After the second party unmasks the first share of masked access data, it obtains the first share of access data.
[0080] In the specific implementation process, since the masking operation is performed on the scrambled database, after the inadvertent transmission, the corresponding unmasking operation can be used to facilitate the final data reconstruction. Among them, the unmasking method can correspond to the masking method, such as: if the masking is to add a random number to the data, then the unmasking is to subtract the random number originally added from the obtained data.
[0081] For example, in the above example, the first random number, the second random number and the data in the first share of the scrambled database and the second share of the scrambled database are added to obtain the corresponding first share of the scrambled mask database. and scramble the second share of the mask database The second party uses the oblivious transfer protocol to obtain the first share of masked access data <x <τ> > 0 +r0, the mask can be removed in a corresponding manner, that is, the first share of the masked access data is subtracted from the second random number added by the second party when masking the data, and the first share of the access data is obtained as follows: <x <τ> > 0 +r0-r1. Similarly, the second share of access data obtained by the first party after unmasking the second share of masked access data obtained by inadvertent transmission is: <x <τ> > 1 +r1-r0. If the privacy database is shared by adding secrets, the first share of the access data can be <x <τ> > 0 +r0-r1 and access data second share <x <τ> > 1 + Add r1-r0 to get the private data to be accessed <x <τ> >.
[0082] In the embodiment of this specification, the same masking operation is performed on the two database shares before the oblivious transmission, and then the corresponding unmasking operation is performed on the access data shares obtained by the oblivious transmission, and finally the two access data shares after unmasking are reconstructed, so that the true value of the private data to be accessed can be obtained. Through the masking and unmasking methods, the two parties in the data layer transmission process cannot obtain the data obtained by the other party, which further improves the security of data access.
[0083] On the basis of the above-mentioned embodiments, in some embodiments of the present specification, the method for performing a masking operation on the data in the first share of the scrambled database may include: performing a masking operation on the data in the first share of the scrambled database using the first random number according to the secret sharing algorithm corresponding to the first share of the database and the second share of the database. Similarly, the second database may also perform a masking operation on the data in the second share of the scrambled database using the second random number according to the secret sharing algorithm corresponding to the first share of the database and the second share of the database. That is, the method for performing the masking operation may be set with reference to the secret sharing algorithm used when the privacy database secret is shared as the first share of the database and the second share of the database.
[0084] In some embodiments of this specification, if the secret sharing algorithm for the data in the first share of the database and the second share of the database is additive secret sharing, the data in the first share of the scrambled database is added or subtracted from the first random number to perform a mask operation on the data in the first share of the scrambled database. Using the additive secret sharing method, it is split into Right now Then the first random number r0 can be added to the data in the first share of the scrambled database to implement a mask operation on the data in the first share of the scrambled database, and obtain the first share of the scrambled masked database: Similarly, the second party can also add the second random number to the data in the second share of the scrambled database to implement a mask operation on the data in the second share of the scrambled database. The data processing process after masking can refer to the records of the above embodiment, which will not be repeated here.
[0085] In some other embodiments of this specification, if the secret sharing algorithm for the data in the first share of the database and the second share of the database is multiplication secret sharing, the data in the first share of the scrambled database is multiplied or divided by the first random number to perform a mask operation on the data in the first share of the scrambled database. Using the additive secret sharing method, it is split into Right now Then, the first random number r0 can be multiplied by the data in the first share of the scrambled database to implement a mask operation on the data in the first share of the scrambled database and obtain the first share of the scrambled masked database: Similarly, the second party can also multiply the second random number with the data in the second share of the scrambled database to obtain Implement masking operation on the data in the second share of the disrupted database. Then perform an oblivious transfer to obtain the first share of masked access data <x <τ> > 0 ×r0, mask access data second share <x <τ> > 1 ×r1, and then remove the mask in the corresponding way to obtain the first share of access data: <x <τ> > 0 ×r0÷r1, access the second share of data: <x <τ> > 1 ×r1÷r0. Based on the secret sharing algorithm for the data in the privacy database, namely, multiplication secret sharing, the first share of access data and the second share of access data can be multiplied: <x <τ> > 0 ×r0÷r1× <x <τ> > 1 ×r1÷r0= <x <τ> > 0 × <x <τ> > 1 = <x <τ> > is the private data to be accessed.
[0086] Among them, the operation of subtracting or dividing the first random number from the data in the first share of the scrambled database can refer to the operations of addition and multiplication, and the embodiments of this specification will not be elaborated in detail.
[0087] The embodiments of this specification are based on a secret sharing algorithm for a privacy database, and mask operations are performed on the shares of the database stored by the first party and the second party. The method is simple and facilitates subsequent reconstruction of the access data shares to obtain the true value of the privacy data to be accessed.
[0088] Based on the above embodiments, in some embodiments of this specification, the method for shuffling the order of the data in the first share of the database is the same as the method for the second party to shuffle the order of the data in the second share of the database, wherein the method for shuffling the order includes:
[0089] The sequence of the serial numbered first share and the serial numbered second share is shuffled according to the secret sharing algorithm corresponding to the serial numbered first share and the serial numbered second share.
[0090] In a specific implementation process, the method used by the first party to scramble the order of the data in the first share of the database can be the same as the method used by the second party to scramble the order of the data in the second share of the database. At the same time, the order of the data in the first share of the database and the second share of the database can be scrambled according to the secret sharing algorithm that shares the secret of the sequence number of the private data to be accessed as the first share of the sequence number and the second share of the sequence number. That is, the first party and the second party can refer to the secret sharing algorithm that shares the secret of the sequence number of the private data to be accessed as the first share of the sequence number and the second share of the sequence number to scramble the data order of their respective databases.
[0091] In some embodiments of this specification, if the secret sharing algorithm for the data corresponding to the first share with the second share is additive secret sharing, the sequence number of the data in the first share of the database is added or subtracted from the first share with the sequence number, and the order of the data in the first share of the database is disrupted. <x <τ> >'s serial number <τ> is split into <τ> by adding secret sharing 0 , <τ> 1 That is, <τ> 1 +<τ> 0 = <τ>, then the sequence number of the data in the first share of the database can be added with <τ> 0 Right now The data in the first share of the database can be shuffled. Similarly, the second party can also add <τ> to the sequence number of the data in the second share of the database. 1 ,get According to the records of the above embodiment, the oblivious transfer protocol is adopted to finally obtain the private data to be accessed.
[0092] In some other embodiments of this specification, if the secret sharing algorithm for the data corresponding to the first share with the second share is multiplication secret sharing, the sequence number of the data in the first share of the database is multiplied or divided by the first share with the sequence number to shuffle the data in the first share of the database. Similarly, the second party also shuffles the data in the second share of the database in the same way as the first party. For example: In the above example, if the private data to be accessed is <x <τ> The serial number <τ> of > is split into <τ> using the secret sharing algorithm of multiplication secret sharing 0 , <τ> 1 That is, <τ> 1 ×<τ> 0 = <τ>, then the serial number of the data in the first share of the database can be multiplied by <τ> 0 Right now The data in the first share of the database are disrupted in order. Similarly, the second party can also multiply the sequence number of the data in the second share of the database by <τ> 1 ,get After another oblivious transfer, the first share of access data can be obtained: Access the second share of data: Based on the secret sharing algorithm of the data in the privacy database, the first share of access data and the second share of access data can be used to obtain the corresponding private data to be accessed.
[0093] By using a secret sharing algorithm for the serial number of the private data to be accessed to shuffle the order of the database, the share of the private data to be accessed can be accurately obtained after inadvertent transmission, laying a data foundation for the accurate acquisition of the private data to be accessed later.
[0094] Figure 5 This is a schematic diagram of the process of the first party and the second party accessing private data in an embodiment of this specification. Figure 5 , specifically introduces the data access process of the privacy database in the embodiment of this specification:
[0095] The first party P0 and the second party P1 share a share of the private database based on secret sharing technology, that is, P0 and P1 hold n pieces of database data respectively. as well as where i={0,1,2,…,n-1},<α i > 0 =i; <α i > 1 =0, α i It can represent the sequence number of element x in the privacy database.
[0096] Input: Input data held by two parties P0 and P1 <τ> 0 as well as <τ> 1 , where τ∈{0,n-1}, <τ> 0 +<τ> 1 = <τ>, <τ> is the private data to be accessed <x <τ> >The serial number in the privacy database.
[0097] Output: P0 and P1 can inadvertently access the private data to be accessed <x <τ> >.
[0098] (1) Protocol initialization: The two parties involved in the protocol generate a corresponding finite field of order q based on the public security level parameter λ; P0 independently generates a random number Similarly, P1 generates random numbers independently
[0099] (2) For each piece of data in both databases For example:
[0100] a) Offline phase: P0 uses <τ> 0 Disrupt the order of elements in the database, such as: moving the elements in the database down <τ> 0 bit, get Among them, <α i > 0 =i, so we get And use r0 to mask the elements, and get
[0101] b) Offline phase: P1 uses <τ> 1 Disrupt the order of elements in the database, such as: moving the elements in the database down <τ> 1 bit, get Among them, <α i > 1 = 0, so we get And use r1 to mask the elements, and get
[0102] (3) The first online stage: P0 acts as the sender of 1-out-of-n oblivious transmission and inputs data P1 is a 1-out-of-n oblivious transfer receiver, inputting data <τ> 1 After the inadvertent transmission, P1 gets the result <x <τ> > 0 +r0, and unmask to get <x <τ> > 0 +r0-r1.
[0103] (4) The second online phase: P1 acts as the sender of 1-out-of-n oblivious transmission and inputs data P0 is a 1-out-of-n oblivious transmission receiver, inputting data <τ> 0 After the inadvertent transmission, P0 gets the result <x <τ> > 1 +r1, and remove the mask to get <x <τ> > 1 +r1-r0.
[0104] (5) Execute the reconstruction. <x <τ> > 0 +r0-r1 and <x <τ> > 1 +r1-r0 added, we can get <x <τ> >, that is, P0 and P1 can access elements inadvertently <x <τ> >.
[0105] The embodiments of this specification allow both parties to inadvertently access an element in a secret sharing state, whose sequence number is also in a secret sharing state, and use two 1-out-of-n OT construction protocol methods to improve computing and communication efficiency.
[0106] In this specification, each embodiment of the above method is described in a progressive manner, and the same or similar parts between the embodiments can be referenced to each other, and each embodiment focuses on the differences from other embodiments. For relevant parts, refer to the partial description of the method embodiment.
[0107] Based on the above-mentioned method for accessing private data based on secret sharing, one or more embodiments of this specification also provide a device for accessing private data based on secret sharing. The device may include a device (including a distributed system), software (application), module, component, server, client, etc. using the method described in the embodiment of this specification and a device combined with necessary implementation hardware. Based on the same innovative concept, the device in one or more embodiments provided in the embodiment of this specification is as described in the following embodiments. Since the implementation scheme and method of the device to solve the problem are similar, the implementation of the specific device in the embodiment of this specification can refer to the implementation of the aforementioned method, and the repetitions will not be repeated. As used below, the term "unit" or "module" can implement a combination of software and / or hardware for predetermined functions. Although the device described in the following embodiments is preferably implemented in software, the implementation of hardware, or a combination of software and hardware, is also possible and conceived.
[0108] Specifically, Figure 6 is a schematic diagram of the module structure of an embodiment of a private data access device based on secret sharing provided in this specification. The device can be understood as the first party in the above embodiment. Of course, the structure of the second party and the first party can be the same, such as Figure 6 As shown, the data access device for the privacy database provided in this specification may include:
[0109] The data scrambling module 61 is used to scramble the order of the data in the first share of the database stored by the first share of the sequence number to obtain the first share of the scrambled database;
[0110] The access data share acquisition module 62 is used to perform two data transmissions with the second party using the oblivious transfer protocol according to the first share of the sequence number, the first share of the scrambled database, the second share of the sequence number provided by the second party, and the second share of the scrambled database, to obtain the second share of the access data from the second party, and to enable the second party to obtain the first share of the access data from the first share of the scrambled database; wherein the first share of the sequence number and the second share of the sequence number are obtained by secret sharing of the sequence number of the private data to be accessed, the second share of the scrambled database is obtained by the second party by sequentially scrambling the data in the second share of the database based on the second share of the sequence number, and the first share of the database and the second share of the database are obtained by secret sharing of the private database;
[0111] The access data acquisition module 63 is used to obtain the to-be-accessed private data according to the first access data share and the second access data share.
[0112] The data access device for the privacy database provided in the embodiment of the present specification, by secret sharing the serial number of the private data to be accessed, splits it into the first serial number share and the second serial number share and distributes it to the first party and the second party who store the private database share, so that the first party and the second party cannot know the serial number of the private data to be accessed. The first party and the second party use the received first serial number share and the second serial number share to scramble the serial numbers of the data in the first database share and the second database share respectively stored. Then, through two inadvertent transmissions, the first party and the second party obtain the first access data share and the second access data share from each other, and the private data to be accessed can be obtained based on the first access data share and the second access data share. The function of the first party and the second party to access an element in the privacy database can be realized inadvertently, and by secret sharing of the serial number of the private data to be accessed and the order of the data in the database being scrambled, the problem of inferring the final result element serial number from the intermediate result can be avoided, and the security of the data in the privacy database can be further ensured. At the same time, the use of inadvertent data transmission can improve the efficiency of calculation and communication, and thus improve the efficiency of data access.
[0113] It should be noted that the above-mentioned device may also include other implementations according to the description of the corresponding method embodiment. The specific implementation methods can refer to the description of the corresponding method embodiment above, and will not be described one by one here.
[0114] The embodiment of this specification also provides a privacy data access device based on secret sharing, including: at least one processor and a memory for storing processor executable instructions, and the processor implements the information recommendation data processing method of the above embodiment when executing the instructions, such as:
[0115] The data in the first share of the database saved by the first share with the serial number is shuffled to obtain the first share of the shuffled database;
[0116] According to the first share of the sequence number, the first share of the scrambled database, the second share of the sequence number provided by the second party, and the second share of the scrambled database, the oblivious transfer protocol is used to perform two data transmissions with the second party, and the second share of the access data is obtained from the second party, and the second share of the access data is obtained from the first share of the scrambled database; wherein the first share of the sequence number and the second share of the sequence number are obtained by secret sharing of the sequence number of the private data to be accessed, the second share of the scrambled database is obtained by the second party by sequentially scrambling the data in the second share of the database based on the second share of the sequence number, and the first share of the database and the second share of the database are obtained by secret sharing of the private database;
[0117] The to-be-accessed private data is obtained according to the first access data share and the second access data share.
[0118] The embodiments of this specification also provide a privacy data access system based on secret sharing, including: a client, a first terminal, and a second terminal, wherein: the first terminal and the second terminal can be terminals that store two shares in a privacy database, and specifically can be terminal devices such as computers, servers, tablet computers, and smart phones.
[0119] The client is used to send a data access request to the first terminal and the second terminal, and send a first share of the sequence number obtained by secret sharing of the sequence number of the private data to be accessed to the first terminal, and send a second share of the sequence number to the second terminal. The first terminal and the second terminal respectively include at least one processor and a memory for storing processor executable instructions. When the processor of the first terminal executes the instructions, it implements the data access method of the privacy database corresponding to the first terminal in the above embodiment, and is used to perform two data transmissions with the second terminal using an oblivious transfer protocol to obtain a first share of access data and a second share of access data respectively.
[0120] It should be noted that the above-mentioned device and system may also include other implementation modes according to the description of the method embodiment. The specific implementation modes may refer to the description of the relevant method embodiment, which will not be described one by one here.
[0121] The data access device for the privacy database provided in this specification can also be used in a variety of data analysis and processing systems. The system or server or terminal or device can be a separate server, or it can include a server cluster, system (including distributed system), software (application), actual operation device, logic gate circuit device, quantum computer, etc. that uses one or more of the methods or one or more embodiments of the system or server or terminal or device of this specification and a terminal device combined with necessary implementation hardware. The detection system for checking difference data may include at least one processor and a memory storing computer executable instructions, and the processor implements the steps of the method described in any one or more of the above embodiments when executing the instructions.
[0122] The method embodiments provided in the embodiments of this specification can be executed in a mobile terminal, a computer terminal, a server or a similar computing device. Taking running on a server as an example, Figure 7 1 is a hardware structure block diagram of a privacy data access server based on secret sharing in one embodiment of this specification. The computer terminal may be a privacy data access server based on secret sharing or a privacy data access device based on secret sharing in the above embodiment. Figure 7 The server 10 shown may include one or more (only one is shown in the figure) processors 100 (the processor 100 may include but is not limited to a processing device such as a microprocessor MCU or a programmable logic device FPGA), a non-volatile memory 200 for storing data, and a transmission module 300 for communication functions. Those skilled in the art will understand that Figure 7 The structure shown is only for illustration and does not limit the structure of the above electronic device. Figure 7 More or fewer components shown in the figure may also include other processing hardware, such as a database or multi-level cache, GPU, or other hardware with Figure 7 Different configurations are shown.
[0123] The non-volatile memory 200 can be used to store software programs and modules of application software, such as the program instructions / modules corresponding to the data access method of the privacy database in the embodiment of this specification. The processor 100 executes various functional applications and resource data updates by running the software programs and modules stored in the non-volatile memory 200. The non-volatile memory 200 may include a high-speed random access memory, and may also include a non-volatile memory, such as one or more magnetic storage devices, flash memory, or other non-volatile solid-state memory. In some instances, the non-volatile memory 200 may further include a memory remotely arranged relative to the processor 100, and these remote memories may be connected to the computer terminal via a network. Examples of the above-mentioned network include, but are not limited to, the Internet, an intranet, a bureau and a network, a mobile communication network, and combinations thereof.
[0124] The transmission module 300 is used to receive or send data via a network. The specific example of the above network may include a wireless network provided by a communication provider of a computer terminal. In one example, the transmission module 300 includes a network adapter (Network Interface Controller, NIC), which can be connected to other network devices through a base station so as to communicate with the Internet. In one example, the transmission module 300 can be a radio frequency (RF) module, which is used to communicate with the Internet wirelessly.
[0125] The above is a description of a specific embodiment of the specification. Other embodiments are within the scope of the appended claims. In some cases, the actions or steps recorded in the claims can be performed in an order different from that in the embodiments and still achieve the desired results. In addition, the processes depicted in the drawings do not necessarily require the specific order or continuous order shown to achieve the desired results. In some embodiments, multitasking and parallel processing are also possible or may be advantageous.
[0126] The methods or devices described in the above embodiments provided in this specification can implement business logic through computer programs and record them on storage media, and the storage media can be read and executed by computers to achieve the effects of the solutions described in the embodiments of this specification, such as:
[0127] The data in the first share of the database saved by the first share with the serial number is shuffled to obtain the first share of the shuffled database;
[0128] According to the first share of the sequence number, the first share of the scrambled database, the second share of the sequence number provided by the second party, and the second share of the scrambled database, the oblivious transfer protocol is used to perform two data transmissions with the second party, and the second share of the access data is obtained from the second party, and the second share of the access data is obtained from the first share of the scrambled database; wherein the first share of the sequence number and the second share of the sequence number are obtained by secret sharing of the sequence number of the private data to be accessed, the second share of the scrambled database is obtained by the second party by sequentially scrambling the data in the second share of the database based on the second share of the sequence number, and the first share of the database and the second share of the database are obtained by secret sharing of the private database;
[0129] The to-be-accessed private data is obtained according to the first access data share and the second access data share.
[0130] The storage medium may include a physical device for storing information, which is usually a medium that digitizes the information and then stores it in an electrical, magnetic or optical manner. The storage medium may include: a device that stores information in an electrical energy manner, such as various memories, such as RAM, ROM, etc.; a device that stores information in a magnetic energy manner, such as a hard disk, a floppy disk, a magnetic tape, a magnetic core memory, a magnetic bubble memory, a USB flash drive; a device that stores information in an optical manner, such as a CD or a DVD. Of course, there are other readable storage media, such as quantum memory, graphene memory, etc.
[0131] The data access method or device for the above-mentioned privacy database provided in the embodiments of this specification can be implemented by a processor in a computer executing corresponding program instructions, such as using the C++ language of the Windows operating system to implement it on a PC, on a Linux system, or other systems such as Android and iOS system programming languages to implement it on a smart terminal, as well as based on the processing logic of a quantum computer.
[0132] It should be noted that the device, computer storage medium, and system described in the specification may also include other implementation methods according to the description of the relevant method embodiments. The specific implementation methods can refer to the description of the corresponding method embodiments, which will not be described one by one here.
[0133] Each embodiment in this specification is described in a progressive manner, and the same or similar parts between the embodiments can be referenced to each other, and each embodiment focuses on the differences from other embodiments. In particular, for the hardware + program embodiment, since it is basically similar to the method embodiment, the description is relatively simple, and the relevant parts can be referred to the partial description of the method embodiment.
[0134] The embodiments of this specification are not limited to complying with industry communication standards, standard computer resource data update and data storage rules, or the situations described in one or more embodiments of this specification. Certain industry standards or slightly modified implementation plans based on the implementation described in the custom method or embodiment can also achieve the same, equivalent or similar, or predictable implementation effects after deformation of the above-mentioned embodiments. The embodiments obtained by using these modified or deformed data acquisition, storage, judgment, processing methods, etc. can still fall within the scope of the optional implementation plans of the embodiments of this specification.
[0135] In the 1990s, it was very clear whether the improvement of a technology was a hardware improvement (for example, improvements to the circuit structure of diodes, transistors, switches, etc.) or a software improvement (improvement of the method flow). However, with the development of technology, many improvements in the method flow today can be regarded as direct improvements in the hardware circuit structure. Designers almost always obtain the corresponding hardware circuit structure by programming the improved method flow into the hardware circuit. Therefore, it cannot be said that the improvement of a method flow cannot be implemented with a hardware entity module. For example, a programmable logic device (PLD) (such as a field programmable gate array (FPGA)) is such an integrated circuit whose logical function is determined by the user's programming of the device. Designers can "integrate" a digital system on a PLD by programming it themselves, without having to ask a chip manufacturer to design and produce a dedicated integrated circuit chip. Moreover, nowadays, instead of manually making integrated circuit chips, this kind of programming is mostly implemented by "logic compiler" software, which is similar to the software compiler used when developing and writing programs. The original code before compilation must also be written in a specific programming language, which is called hardware description language (HDL). There is not only one HDL, but many kinds, such as ABEL (Advanced Boolean Expression Language), AHDL (Altera Hardware Description Language), Confluence, CUPL (Cornell University Programming Language), HDCal, JHDL (Java Hardware Description Language), Lava, Lola, MyHDL, PALASM, RHDL (Ruby Hardware Description Language), etc. The most commonly used ones are VHDL (Very-High-Speed Integrated Circuit Hardware Description Language) and Verilog. Those skilled in the art should also know that it is only necessary to program the method flow slightly in the above-mentioned hardware description languages and program it into the integrated circuit, and then it is easy to obtain the hardware circuit that implements the logic method flow.
[0136] The controller can be implemented in any appropriate manner, for example, the controller can take the form of a microprocessor or processor and a computer-readable medium storing a computer-readable program code (such as software or firmware) that can be executed by the (micro)processor, a logic gate, a switch, an application-specific integrated circuit (ASIC), a programmable logic controller, and an embedded microcontroller. Examples of controllers include, but are not limited to, the following microcontrollers: ARC 625D, Atmel AT91SAM, Microchip PIC18F26K20, and Silicone Labs C8051F320. The memory controller can also be implemented as part of the control logic of the memory. Those skilled in the art also know that in addition to implementing the controller in a purely computer-readable program code manner, the controller can be implemented in the form of a logic gate, a switch, an application-specific integrated circuit, a programmable logic controller, and an embedded microcontroller by logically programming the method steps. Therefore, this controller can be considered as a hardware component, and the devices included therein for implementing various functions can also be regarded as structures within the hardware component. Or even, the devices for implementing various functions can be regarded as both software modules for implementing the method and structures within the hardware component.
[0137] The systems, devices, modules or units described in the above embodiments may be implemented by computer chips or entities, or by products with certain functions. A typical implementation device is a computer. Specifically, the computer may be, for example, a personal computer, a laptop computer, a vehicle-mounted human-computer interaction device, a cellular phone, a camera phone, a smart phone, a personal digital assistant, a media player, a navigation device, an email device, a game console, a tablet computer, a wearable device, or a combination of any of these devices.
[0138] Although one or more embodiments of the present specification provide method operation steps as described in the embodiments or flow charts, more or less operation steps may be included based on conventional or non-creative means. The order of steps listed in the embodiments is only one way of executing the order of many steps, and does not represent a unique execution order. When the device or terminal product in practice is executed, it can be executed in sequence or in parallel according to the method shown in the embodiments or the drawings (for example, an environment of a parallel processor or multi-threaded processing, or even a distributed resource data update environment). The term "include", "include" or any other variant thereof is intended to cover non-exclusive inclusion, so that the process, method, product or equipment including a series of elements includes not only those elements, but also includes other elements that are not explicitly listed, or also includes elements inherent to such process, method, product or equipment. In the absence of more restrictions, it is not excluded that there are other identical or equivalent elements in the process, method, product or equipment including the elements. The first, second, etc. words are used to represent the name, and do not represent any specific order.
[0139] For the convenience of description, the above devices are described in various modules according to their functions. Of course, when implementing one or more of the present specification, the functions of each module can be implemented in the same or more software and / or hardware, or the module implementing the same function can be implemented by a combination of multiple sub-modules or sub-units, etc. The device embodiments described above are only schematic. For example, the division of the units is only a logical function division. There may be other division methods in actual implementation. For example, multiple units or components can be combined or integrated into another system, or some features can be ignored or not executed. Another point is that the mutual coupling or direct coupling or communication connection shown or discussed can be through some interfaces, indirect coupling or communication connection of devices or units, which can be electrical, mechanical or other forms.
[0140] It should be understood by those skilled in the art that one or more embodiments of the present specification may be provided as a method, system or computer program product. Therefore, one or more embodiments of the present specification may take the form of a complete hardware embodiment, a complete software embodiment or an embodiment combining software and hardware. Moreover, one or more embodiments of the present specification may take the form of a computer program product implemented on one or more computer-usable storage media (including but not limited to disk storage, CD-ROM, optical storage, etc.) containing computer-usable program code.
[0141] One or more embodiments of the present specification may be described in the general context of computer-executable instructions executed by a computer, such as program modules. Generally, program modules include routines, programs, objects, components, data structures, etc. that perform specific tasks or implement specific abstract data types. One or more embodiments of the present specification may also be practiced in distributed computing environments where tasks are performed by remote devices connected through a communication network. In a distributed computing environment, program modules may be located in local and remote computer storage media, including storage devices.
[0142] Each embodiment in this specification is described in a progressive manner, and the same and similar parts between the embodiments can be referred to each other, and each embodiment focuses on the differences from other embodiments. In particular, for the system embodiment, since it is basically similar to the method embodiment, the description is relatively simple, and the relevant parts can refer to the partial description of the method embodiment. In the description of this specification, the description of the reference term "one embodiment", "some embodiments", "example", "specific example", or "some examples" means that the specific features, structures, materials or characteristics described in conjunction with the embodiment or example are included in at least one embodiment or example of this specification. In this specification, the schematic representation of the above terms does not necessarily target the same embodiment or example. Moreover, the specific features, structures, materials or characteristics described can be combined in any one or more embodiments or examples in a suitable manner. In addition, those skilled in the art can combine and combine the different embodiments or examples described in this specification and the features of different embodiments or examples without contradiction.
[0143] The above description is only an example of one or more embodiments of the present specification and is not intended to limit one or more embodiments of the present specification. For those skilled in the art, one or more embodiments of the present specification may have various changes and variations. Any modification, equivalent replacement, improvement, etc. made within the spirit and principle of the present specification shall be included in the scope of the claims.< / x> < / x> < / x> < / x> < / x> < / x> < / x> < / x> < / x> < / x> < / x> < / x>
Claims
1. A method for accessing private data based on secret sharing, the method comprising: The first party scrambles the order of data in the first share of the database saved by the first party based on the first share of the sequence number to obtain the first share of the scrambled database; The second party scrambles the order of the data in the second database share saved by the second party based on the second serial number share to obtain the scrambled second database share; wherein the first serial number share and the second serial number share are obtained by secret sharing of the serial number of the private data to be accessed, and the first database share and the second database share are obtained by secret sharing of the private database; The first party and the second party perform two data transmissions using the oblivious transfer protocol according to the first share of the scrambled database, the second share of the scrambled database, the first share of the sequence number, and the second share of the sequence number, the first party obtains the second share of access data from the second party, and the second party obtains the first share of access data from the first party; The to-be-accessed private data is obtained according to the first access data share and the second access data share.
2. A method for accessing private data based on secret sharing, the method comprising: Using the first share of the sequence number to shuffle the order of the data in the first share of the stored database, to obtain the first share of the shuffled database; According to the first share of the sequence number, the first share of the scrambled database, the second share of the sequence number provided by the second party, and the second share of the scrambled database, the oblivious transfer protocol is used to perform two data transmissions with the second party, and the second share of the access data is obtained from the second party, and the second share of the access data is obtained from the first share of the scrambled database; wherein the first share of the sequence number and the second share of the sequence number are obtained by secret sharing of the sequence number of the private data to be accessed, the second share of the scrambled database is obtained by the second party by sequentially scrambling the data in the second share of the database based on the second share of the sequence number, and the first share of the database and the second share of the database are obtained by secret sharing of the private database; The to-be-accessed private data is obtained according to the first access data share and the second access data share.
3. The method according to claim 2, wherein the data transmission is performed twice with the second party using an oblivious transfer protocol according to the first share of the sequence number, the first share of the scrambled database, and the second share of the sequence number and the scrambled database provided by the second party, comprising: When performing a data transmission using the oblivious transfer protocol, the data in the first share of the scrambled database and the second share of the sequence number provided by the second party are used as input, so that the second party obtains the first share of access data from the first share of the scrambled database; When another data transmission is performed using the oblivious transfer protocol, the first share of the sequence number and the second share of the scrambled database provided by the second party are used as input to obtain the second share of the access data from the second party.
4. The method according to claim 2, before performing two data transmissions using the oblivious transfer protocol, the method further comprises: Generate a first random number in a finite field; Using the first random number, masking the data in the first share of the scrambled database to obtain the first share of the scrambled masked database; Performing two data transmissions using an oblivious transfer protocol according to the data in the first share of the scrambled mask database, the first share of the sequence number, the second share of the sequence number provided by the second party, and the second share of the scrambled mask database; Among them, the second share of the scrambled mask database is obtained by the second party using a second random number to perform a mask operation on the data in the second share of the scrambled database, and the method of performing a mask operation on the data in the first share of the scrambled database is the same as the method of performing a mask operation on the data in the second share of the scrambled database.
5. The method of claim 4, wherein obtaining the second share of access data from the second party comprises: Obtaining a second share of masked access data from a second share of the scrambled mask database of the second party using an oblivious transfer protocol, unmasking the second share of masked access data, and obtaining the second share of access data; The method of enabling the second party to obtain the first share of access data from the first share of the scrambled database includes: The oblivious transfer protocol is used to enable the second party to obtain the first share of masked access data from the first share of the scrambled mask database. After the second party unmasks the first share of masked access data, it obtains the first share of access data.
6. The method of claim 2, wherein the secret sharing algorithm of the serial number first share and the serial number second share is the same as the secret sharing algorithm of the data in the database first share and the database second share.
7. The method of claim 2, wherein the method of shuffling the order of the data in the first share of the database is the same as the method of shuffling the order of the data in the second share of the database by the second party, wherein: Methods for shuffling the order include: The sequence of the serial numbered first share and the serial numbered second share is shuffled according to the secret sharing algorithm corresponding to the serial numbered first share and the serial numbered second share.
8. The method according to claim 7, wherein the step of shuffling the order of the data in the first share of the database comprises: If the secret sharing algorithm of the data corresponding to the serial number first share and the serial number second share is additive secret sharing, the serial number of the data in the first share of the database is added to or subtracted from the serial number first share to shuffle the order of the data in the first share of the database.
9. The method according to claim 7, wherein the step of shuffling the order of the data in the first share of the database comprises: If the secret sharing algorithm of the data corresponding to the serial number first share and the serial number second share is multiplication secret sharing, the serial number of the data in the first share of the database is multiplied or divided by the serial number first share to shuffle the order of the data in the first share of the database.
10. The method of claim 4, wherein the step of performing a mask operation on the data in the first share of the scrambled database comprises: According to the secret sharing algorithm corresponding to the first share of the database and the second share of the database, the first random number is used to perform a mask operation on the data in the scrambled first share of the database.
11. The method of claim 10, wherein the step of performing a mask operation on the data in the first share of the scrambled database comprises: If the secret sharing algorithm of the data in the first share of the database and the second share of the database is additive secret sharing, the data in the first share of the scrambled database is added to or subtracted from the first random number to perform a mask operation on the data in the first share of the scrambled database.
12. The method of claim 10, wherein the step of using the first random number to perform a mask operation on the data in the first share of the scrambled database comprises: If the secret sharing algorithm of the data in the first share of the database and the second share of the database is multiplication secret sharing, the data in the first share of the scrambled database is multiplied or divided by the first random number to perform a mask operation on the data in the first share of the scrambled database.
13. A private data access device based on secret sharing, comprising: A data scrambling module, used to scramble the order of data in the first share of the stored database using the first share of the sequence number to obtain the first share of the scrambled database; An access data share acquisition module is used to perform two data transmissions with the second party using an oblivious transfer protocol according to the first share of the sequence number, the first share of the scrambled database, the second share of the sequence number provided by the second party, and the second share of the scrambled database, to obtain the second share of the access data from the second party, and to enable the second party to obtain the first share of the access data from the first share of the scrambled database; wherein the first share of the sequence number and the second share of the sequence number are obtained by secret sharing of the sequence number of the private data to be accessed, the second share of the scrambled database is obtained by the second party by sequentially scrambling the data in the second share of the database based on the second share of the sequence number, and the first share of the database and the second share of the database are obtained by secret sharing of the private database; The access data acquisition module is used to obtain the to-be-accessed private data according to the first access data share and the second access data share.
14. A privacy data access device based on secret sharing, comprising: At least one processor and a memory for storing processor-executable instructions, wherein when the processor executes the instructions, the method according to any one of claims 1 or 2-12 is implemented.
15. A private data access system based on secret sharing, comprising: Client, first terminal, second terminal, wherein: The client is used to send data access requests to the first terminal and the second terminal, and send a first share of the sequence number obtained by secret sharing of the sequence number of the private data to be accessed to the first terminal, and send a second share of the sequence number to the second terminal. The first terminal and the second terminal respectively include at least one processor and a memory for storing processor executable instructions. When the processor in the first terminal executes the instructions, it implements the method described in any one of claims 2 to 12, and is used to perform two data transmissions with the second terminal using an oblivious transfer protocol to obtain a first share of access data and a second share of access data, respectively.
Citation Information
Patent Citations
Cooperative secret sharing method, device and system based on vacant transmission algorithm, and medium
CN111162906A
Data security sharing method, storage medium and computing equipment
CN111243698A
Privacy protection multi-party computing method and system based on trusted execution environment
CN111563261A
Method of reconstructing a secret, shared secret reconstruction apparatus, and secret reconstruction system
US20040179686A1
Privacy-preserving machine learning in the three-server model
WO2019231481A1
