Private information retrieval method and apparatus, storage medium, and electronic device

By using quantum state sequences and XOR logic operations, the problem of low efficiency in private information retrieval in existing technologies has been solved, achieving efficient and secure information acquisition and protecting the privacy of users and data providers.

CN116720216BActive Publication Date: 2026-11-24CHINA TELECOM CORP LTD
View PDF 1 Cites 0 Cited by

Patent Information

Application Number
CN202310666526.2
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2023-06-06
Publication Date
2026-11-24
Estimated Expiration
2043-06-06

AI Technical Summary

Technical Problem

In existing technologies, users need to repeatedly decrypt data in the database when retrieving private information, resulting in low retrieval efficiency and increased communication complexity and retrieval costs.

Method used

By obtaining the quantum state sequence from the database owner, dividing the quantum state into equal-length sequences according to the length of the data stored in the database, and using XOR logic operations to obtain the key, the encrypted data block can be decrypted. Combined with classical post-processing techniques, this ensures that users can obtain the target data without leaking the search content.

Benefits of technology

It improves the efficiency of private information retrieval, reduces repeated database decryption operations, lowers the retrieval cost for users, and protects the privacy of both users and data providers.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN116720216B_ABST
    Figure CN116720216B_ABST
Patent Text Reader

Abstract

This application discloses a method, apparatus, storage medium, and electronic device for retrieving private information. It includes: acquiring N sets of quantum state sequences from a database owner; for each set of quantum state sequences, based on the data length corresponding to the N data blocks stored in the database, dividing the quantum states containing the key sequence into sequences of equal length to the data length; acquiring a first target measurement basis corresponding to the N sets of quantum state sequences, determining a first key carried by the quantum state sequences based on the first target measurement basis, and performing an XOR operation on the first key and an undetermined second key to obtain a first target key; and decrypting the target data block of the encrypted database using the first target key to obtain the target private information, wherein the database is encrypted using the second target key. This application solves the technical problem of related technologies requiring repeated decryption of data within the database during private information retrieval, resulting in low efficiency for users retrieving private information.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This application relates to the field of symmetric private information retrieval technology, and more specifically, to a private information retrieval method, apparatus, storage medium, and electronic device. Background Technology

[0002] In today's environment where everyone can easily access massive amounts of information, users want to protect their privacy during each information search and hope that the content they search for will not be known by the data provider. Similarly, data providers also want users to be unable to access other data stored in their database during the search process. Therefore, symmetric private information retrieval can provide two-way protection for the privacy of both users and data providers in their communication.

[0003] However, for users, a valuable piece of information is usually a multi-bit data block composed of multiple 0s and 1s in the data provider's database. Most symmetric private information retrieval methods relying on unintentional key distribution and classic post-processing only provide the user with a 1-bit encryption key. In this case, the user must repeatedly implement the symmetric private information retrieval method to decrypt the multi-bit data to be retrieved from the database. For example, if the size of the data block to be retrieved is n1 bits (n1>1), then in n1 implementations of the symmetric private information retrieval method, the user can decrypt any 1 bit of data in the encrypted data block each time, thus obtaining a complete piece of information. However, the drawback of this method is that if the value of n1 is large, using this method not only increases the communication complexity between the data provider and the user, resulting in low efficiency in retrieving private information, but also incurs high retrieval costs because users need to pay a corresponding fee for each data retrieval.

[0004] There is currently no effective solution to the above problems. Summary of the Invention

[0005] This application provides a private information retrieval method, apparatus, storage medium, and electronic device to at least solve the technical problem that related technologies require repeated decryption of data in the database when performing private information retrieval, resulting in low efficiency for users in retrieving private information.

[0006] According to one aspect of the embodiments of this application, a private information retrieval method is provided, comprising: obtaining N sets of quantum state sequences from a database owner, wherein each set of quantum state sequences is obtained by dividing the quantum state containing the key sequence into a sequence of length equal to the data length according to the data length corresponding to the N data blocks stored in the database; obtaining a first target measurement basis corresponding to the N sets of quantum state sequences, determining a first key carried by the quantum state sequence based on the first target measurement basis, and performing an XOR operation on the first key and an undetermined second key to obtain a first target key, wherein the first target measurement basis is the same as the quantum state contained in the quantum state sequence; decrypting a target data block in the encrypted database according to the first target key to obtain target private information, wherein the database determines a third key corresponding to the key sequence based on the second target measurement basis corresponding to the key sequence, and performs an XOR operation on the third key and an undetermined fourth key to obtain a second target key for encryption.

[0007] Optionally, obtaining N sets of quantum state sequences from the database owner includes: obtaining quantum states from the database owner, including a first key sequence and a second key sequence, wherein the first key sequence is composed of |0> and |+>, and the second key sequence is composed of |1> and |->; dividing the quantum states according to the data length of N data blocks in the database to obtain N sets of quantum state sequences of the same length as the data length, wherein the quantum state sequences include: a first quantum state sequence composed of 0> and |1> or a second quantum state sequence composed of |+> and |->.

[0008] Optionally, after obtaining N sets of quantum state sequences from the database owner, the method further includes: determining whether the N sets of quantum state sequences sent by the database owner have been successfully received based on whether the value at each quantum state position in the received N sets of quantum state sequences corresponds to the quantum state; if the target quantum state sequence sent by the database owner is not successfully received, discarding the target quantum state sequence and simultaneously discarding the key in the database owner that corresponds to the target quantum state sequence; re-acquiring the discarded target quantum state sequence until the N sets of quantum state sequences from the database owner are successfully received; performing delayed measurement on the N sets of quantum state sequences to obtain the measurement result, and if the measurement result is greater than a preset error threshold, re-initiating a retrieval request for the target private information to the database owner.

[0009] Optionally, delayed measurements are performed on N sets of quantum state sequences to obtain measurement results. When the measurement results exceed a preset threshold, a request to retrieve private information is initiated again to the database owner. This includes: obtaining a third target measurement basis, wherein the third target measurement basis includes: a first measurement basis composed of |0> and |1>, and a second measurement basis composed of |+> and |->; performing delayed measurements on the first quantum state sequence based on the first measurement basis to obtain a first delayed measurement result, or performing delayed measurements on the second quantum state sequence based on the second measurement basis to obtain a second delayed measurement result; and re-initiating a request to retrieve target private information to the database owner when the first delayed measurement result exceeds a preset first error threshold or the second delayed measurement result exceeds a preset second error threshold.

[0010] Optionally, the first target measurement basis includes a third measurement basis and a fourth measurement basis. The process of obtaining the first target measurement basis corresponding to N sets of quantum state sequences, determining the first key corresponding to the quantum state sequence based on the first target measurement basis, and performing an XOR operation on the first key and an undetermined second key to obtain the first target key includes: obtaining the third measurement basis corresponding to the first quantum state sequence and the fourth measurement basis corresponding to the second quantum state sequence; measuring the first quantum state sequence based on the third measurement basis or measuring the second quantum state sequence based on the fourth measurement basis to obtain a measurement result; obtaining the first key corresponding to the N sets of quantum state sequences based on the measurement result, and obtaining the second key based on the quantum state corresponding to the quantum state sequence and the first key; performing an XOR operation on the first key and the second key to obtain the first target key. The first target key includes N sets of key sequences, and the sequence length of each key sequence is equal to the data length.

[0011] Optionally, obtaining the encrypted database includes: determining the first key sequence or the first position where the first key sequence that is not the second key first appears in the first target key, and determining the second position of the first privacy data in the target data block; determining the shift length of the second target key based on the first position and the second position; and encrypting N data blocks in the database according to the shifted second target key to obtain the encrypted database.

[0012] Optionally, the N data blocks in the database are encrypted based on the shifted second target key, including: when the shift length is greater than zero, determining the bit value by which the second target key is shifted to the left by the shift length, and encrypting the N data blocks in the database based on the shifted second target key; when the shift length is less than zero, determining the bit value by which the second target key is shifted to the right by the shift length, and encrypting the N data blocks in the database based on the shifted second target key.

[0013] According to another aspect of the embodiments of this application, a private information retrieval device is also provided, comprising: an acquisition module, configured to acquire N sets of quantum state sequences from a database owner, wherein each set of quantum state sequences is obtained by dividing the quantum state containing the key sequence into a sequence of length equal to the data length according to the data length corresponding to the N data blocks stored in the database; a determination module, configured to acquire a first target measurement basis corresponding to the N sets of quantum state sequences, determine a first key corresponding to the quantum state sequence based on the first target measurement basis, and perform an XOR operation on the first key and an undetermined second key to obtain a first target key, wherein the first target measurement basis is the same as the quantum state contained in the quantum state sequence; and a decryption module, configured to decrypt a target data block in the encrypted database according to the first target key to obtain target private information, wherein the database determines a third key corresponding to the key sequence based on the second target measurement basis corresponding to the key sequence, and performs an XOR operation on the third key and an undetermined fourth key to obtain a second target key for encryption.

[0014] According to another aspect of the embodiments of this application, a non-volatile storage medium is also provided, the non-volatile storage medium including a stored program, wherein the device where the non-volatile storage medium is located executes the above-described private information retrieval method by running the program.

[0015] According to another aspect of the embodiments of this application, an electronic device is also provided, the electronic device including: a memory and a processor, wherein the memory stores a computer program, and the processor is configured to execute the above-described private information retrieval method through the computer program.

[0016] In this embodiment, N sets of quantum state sequences from the database owner are obtained. Each set of quantum state sequences is formed by dividing the quantum state containing the key sequence into a sequence of the same length as the data length, based on the data length corresponding to the N data blocks stored in the database. A first target measurement basis corresponding to the N sets of quantum state sequences is obtained, and a first key corresponding to the quantum state sequence is determined based on the first target measurement basis. The first key and an undetermined second key are XORed to obtain a first target key, wherein the first target measurement basis is the same as the quantum state contained in the quantum state sequence. The target data block in the encrypted database is decrypted according to the first target key to obtain the target private information. The database determines a third key corresponding to the key sequence based on the second target measurement basis corresponding to the key sequence, and the third key and an undetermined fourth key are XORed to obtain a second target key for encryption.

[0017] In the above steps, by dividing the quantum state with key information into multiple sets of sequences of equal length to each data block in the database, and then combining this with classic post-processing, the data provider can enable the user to accurately obtain the data information corresponding to the target data block they want to retrieve without exposing other data in its database. At the same time, the user's search content is not leaked to the data provider. This solves the technical problem that related technologies require repeated decryption of data in the database when performing private information retrieval, resulting in low efficiency for users to retrieve private information. Attached Figure Description

[0018] The accompanying drawings, which are included to provide a further understanding of this application and form part of this application, illustrate exemplary embodiments and are used to explain this application, but do not constitute an undue limitation of this application. In the drawings:

[0019] Figure 1 This is a hardware structure block diagram of an optional computer terminal for implementing a private information retrieval method according to an embodiment of this application;

[0020] Figure 2 This is a flowchart of an optional private information retrieval method according to an embodiment of this application;

[0021] Figure 3 This is a probability distribution diagram showing the probability that an optional delay measurement, according to an embodiment of this application, is discovered by the data provider as the number of unintentional key distributions increases;

[0022] Figure 4 This is a schematic diagram illustrating the result of an optional determination delay measurement according to an embodiment of this application;

[0023] Figure 5 This is an optional flowchart of generating a key with the same length as the database capacity using XOR logic operation according to an embodiment of this application;

[0024] Figure 6 This is a schematic diagram of an optional private information retrieval device according to an embodiment of this application. Detailed Implementation

[0025] To enable those skilled in the art to better understand the present application, the technical solutions in the embodiments of the present application will be clearly and completely described below with reference to the accompanying drawings. Obviously, the described embodiments are only some embodiments of the present application, and not all embodiments. Based on the embodiments in the present application, all other embodiments obtained by those of ordinary skill in the art without creative effort should fall within the scope of protection of the present application.

[0026] It should be noted that the terms "first," "second," etc., used in the specification, claims, and drawings of this application are used to distinguish similar objects and are not necessarily used to describe a specific order or sequence. It should be understood that such data can be interchanged where appropriate so that the embodiments of this application described herein can be implemented in orders other than those illustrated or described herein. Furthermore, the terms "comprising" and "having," and any variations thereof, are intended to cover non-exclusive inclusion; for example, a process, method, system, product, or apparatus that comprises a series of steps or units is not necessarily limited to those steps or units explicitly listed, but may include other steps or units not explicitly listed or inherent to such processes, methods, products, or apparatus.

[0027] Furthermore, all information and data (including but not limited to user device information, user personal information, etc.) involved in this application are information and data authorized by the user or fully authorized by all parties. For example, this system has an interface with the relevant user or organization. Before obtaining relevant information, it needs to send an acquisition request to the aforementioned user or organization through the interface, and obtain the relevant information after receiving consent from the aforementioned user or organization.

[0028] Example 1

[0029] The methods and embodiments provided in this application can be executed on mobile terminals, computer terminals, or similar computing devices. Figure 1 A hardware block diagram of a computer terminal for implementing a private information retrieval method is shown. Figure 1 As shown, the computer terminal 10 may include one or more processors 102 (shown as 102a, 102b, ..., 102n in the figure) 102 (processor 102 may include, but is not limited to, a microprocessor MCU or a programmable logic device FPGA, etc.), a memory 104 for storing data, and a transmission module device 106 for communication functions. In addition, it may also include: a display, an input / output interface (I / O interface), a universal serial bus (USB) port (which may be included as one of the ports of a BUS bus), a network interface, a power supply, or a camera. Those skilled in the art will understand that... Figure 1 The structure shown is for illustrative purposes only and does not limit the structure of the aforementioned electronic device. For example, computer terminal 10 may also include... Figure 1 The more or fewer components shown, or having the same Figure 1 The different configurations shown.

[0030] It should be noted that the aforementioned one or more processors 102 or other data processing circuits are generally referred to herein as "data processing circuits". These data processing circuits can be implemented wholly or partially as software, hardware, firmware, or any other combination. Furthermore, the data processing circuits can be a single, independent processing module, or wholly or partially integrated into any other element within the computer terminal 10 (or mobile device). As involved in the embodiments of this application, the data processing circuit serves as a processor control mechanism (e.g., selection of a variable resistor termination path connected to an interface).

[0031] The memory 104 can be used to store software programs and modules of application software, such as the program instructions / data storage device corresponding to the private information retrieval method in this embodiment. The processor 102 executes various functional applications and data processing by running the software programs and modules stored in the memory 104, thereby realizing the aforementioned private information retrieval method of the application. The memory 104 may include high-speed random access memory, and may also include non-volatile memory, such as one or more magnetic storage devices, flash memory, or other non-volatile solid-state memory. In some instances, the memory 104 may further include memory remotely located relative to the processor 102, and these remote memories can be connected to the computer terminal 10 via a network. Examples of such networks include, but are not limited to, the Internet, corporate intranets, local area networks, mobile communication networks, and combinations thereof.

[0032] The transmission device 106 is used to receive or send data via a network. Specific examples of the network described above may include a wireless network provided by the communication provider of the computer terminal 10. In one example, the transmission device 106 includes a Network Interface Controller (NIC), which can connect to other network devices via a base station to communicate with the Internet. In another example, the transmission device 106 may be a Radio Frequency (RF) module, used for wireless communication with the Internet.

[0033] The display can be, for example, a touchscreen liquid crystal display (LCD) that allows the user to interact with the user interface of the computer terminal 10 (or mobile device).

[0034] It should be noted that the steps shown in the flowchart in the accompanying drawings can be executed in a computer system such as a set of computer-executable instructions, and although a logical order is shown in the flowchart, in some cases the steps shown or described may be executed in a different order than that shown here.

[0035] Figure 2This is a flowchart illustrating an optional private information retrieval method according to an embodiment of this application, such as... Figure 2 As shown, the method includes at least steps S202-S206, wherein:

[0036] Step S202: Obtain N sets of quantum state sequences from the database owner. Each set of quantum state sequences is obtained by dividing the quantum state containing the key sequence into a sequence of the same length as the data length according to the data length corresponding to the N data blocks stored in the database.

[0037] In the technical solution provided in step S202, the database owner Eve uses a string of four single-photon quantum states carrying a 0 key sequence and a 1 key sequence, according to N data blocks U1, U2, U3, ..., U... in the database. N The data lengths n1, n2, n3, ..., nN divide the quantum state into N groups with lengths corresponding to n. i A sequence of quantum states of equal length, where 1≤i≤T, and T is the data capacity of the database, is used to divide the N sets of quantum state sequences and transmit them between the database owner Eve and the user Amy.

[0038] Step S204: Obtain the first target measurement basis corresponding to the N sets of quantum state sequences, determine the first key corresponding to the quantum state sequence based on the first target measurement basis, and perform an XOR logic operation on the first key and the undetermined second key to obtain the first target key, wherein the first target measurement basis is the same as the quantum state contained in the quantum state sequence.

[0039] In the technical solution provided in step S204, the database owner Eve first publishes a first target measurement basis corresponding to N sets of quantum state sequences to the user Amy. To correctly measure the state of the quantum state sequence, it is necessary to ensure that the quantum states contained in the selected measurement basis are consistent with the quantum states contained in the quantum state sequence. For example, if the measurement basis Z{|0>,|1>} is used to measure the quantum state |0> or |1>, the result is either |0> or |1>, indicating a successful measurement. If the measurement basis Z{|0>,|1>} is used to measure the quantum state |+> or |->, the result is either |0> or |1> with a 1 / 2 probability. Next, the user Amy infers the first key corresponding to the quantum state sequence using the first target measurement basis. Then, the user Amy performs a bitwise XOR operation on the inferred first key and the user Amy's uninferred second key to synthesize a single row containing N groups, each group having a length of n1, n2, n3, ..., n. N The first target key in bits can be denoted as Y. Z1The first key can be understood as the key carried by the quantum state sequence, which can be directly inferred from the quantum state sequence, while the second key can be understood as the key not carried by the quantum state sequence, which cannot be inferred from the quantum state sequence.

[0040] Step S206: Decrypt the target data block in the encrypted database according to the first target key to obtain the target private information. The database determines the third key corresponding to the key sequence based on the second target measurement basis corresponding to the key sequence, and performs an XOR logic operation on the third key and the undetermined fourth key to obtain the second target key for encryption.

[0041] In the technical solution provided in step S206, user Amy can use the first target key Y Z1 The target data block (i.e. the data block to be retrieved) within the encrypted data block is decrypted to obtain the desired target private information. The key used to encrypt the data block is the second target key YZ2, and the acquisition and distribution of the second target key YZ2 is similar to the acquisition method of the first target key mentioned above. The third key can be understood as the key carried in the key sequence, which can be directly obtained from the key sequence, while the fourth key can be understood as the key not carried in the key sequence and cannot be obtained from the key sequence.

[0042] Based on the scheme defined in steps S202 to S206 above, it can be understood that, in the embodiment, N sets of quantum state sequences from the database owner are obtained. Each set of quantum state sequences is obtained by dividing the quantum state containing the key sequence into a sequence of the same length as the data length according to the data length corresponding to the N data blocks stored in the database. A first target measurement basis corresponding to the N sets of quantum state sequences is obtained, and a first key corresponding to the quantum state sequence is determined based on the first target measurement basis. The first key and an undetermined second key are XORed to obtain a first target key, wherein the first target measurement basis is the same as the quantum state contained in the quantum state sequence. The target data block in the encrypted database is decrypted according to the first target key to obtain the target private information. The database determines a third key corresponding to the key sequence based on the second target measurement basis corresponding to the key sequence, and the third key and an undetermined fourth key are XORed to obtain a second target key for encryption.

[0043] Therefore, the technical solution of this application embodiment achieves the goal of improving the efficiency of retrieving private information. At the same time, it satisfies the requirement for database owners to freely store data blocks of arbitrary length, thereby solving the technical problem that related technologies require repeated decryption of data in the database when retrieving private information, resulting in low efficiency for users to retrieve private information.

[0044] The method described in this embodiment will be further described below.

[0045] As an optional implementation, in the technical solution provided in step S202 above, the method includes steps S2021-S2023, wherein:

[0046] Step S2021: Obtain the quantum state from the database owner, including a first key sequence and a second key sequence, wherein the first key sequence is composed of |0> and |+>, and the second key sequence is composed of |1> and |->.

[0047] In the technical solution provided in step S2021, user Amy obtains quantum states from database owner Eve, including a first key sequence (i.e., a 0 key sequence) and a second key sequence (i.e., a 1 key sequence). The 0 key sequence is carried by |0> and |+>, and the 1 key sequence is carried by |1> and |->. Furthermore, each of the above quantum states can be represented as:

[0048]

[0049] Step S2023: Divide the quantum states according to the data length of N data blocks in the database to obtain N sets of quantum state sequences with the same length as the data. The quantum state sequences include: a first quantum state sequence composed of |0> and |1> or a second quantum state sequence composed of |+> and |->.

[0050] In the technical solution provided in step S2023, based on N data blocks U1, U2, U3, ..., U... in the database... N Data lengths n1, n2, n3, ..., n N The quantum state is divided into N groups, each with a length corresponding to n. i Equal-length quantum state sequences {|p>,|p>,|p>,…} n Or {|p'>,|p'>,|p'>,…} n , where |p>∈{|0>,|1>}, and |p'>∈{|+>,|->}.

[0051] Furthermore, the following steps S1-S4 can be used to detect whether the quantum state sequence sent by database owner Eve to user Amy is a pseudo-state sequence, including:

[0052] Step S1: Determine whether the N sets of quantum state sequences sent by the database owner have been successfully received based on whether the value at each quantum state position in the received N sets of quantum state sequences is the corresponding quantum state.

[0053] Step S2: If the target quantum state sequence is not successfully received from the database owner, the target quantum state sequence is discarded, and the key with the target numerical length corresponding to the target quantum state sequence in the database owner is also discarded.

[0054] Step S3: Reacquire the discarded target quantum state sequence until N sets of quantum state sequences are successfully received from the database owner;

[0055] Step S4: Perform delayed measurement on N sets of quantum state sequences to obtain measurement results, and if the measurement results exceed a preset error threshold, re-initiate a retrieval request for the target private information to the database owner.

[0056] Optionally, in the technical solution provided in step S4 above, the method includes: obtaining a third target measurement basis, wherein the third target measurement basis includes: a first measurement basis composed of |0> and |1>, and a second measurement basis composed of |+> and |->; performing a delayed measurement on a first quantum state sequence based on the first measurement basis to obtain a first delayed measurement result, or performing a delayed measurement on a second quantum state sequence based on the second measurement basis to obtain a second delayed measurement result; and when the first delayed measurement result is greater than a preset first error threshold, or the second delayed measurement result is greater than a preset second error threshold, re-initiating a retrieval request for target private information to the database owner.

[0057] Specifically, step S1 can be understood as follows: if a quantum state position in the quantum state sequence received by user Amy does not have a corresponding quantum state or is not corresponding, it means that the quantum state sequence corresponding to the data block was not successfully received. For example, if the quantum state sequence of length n1 corresponding to data block U1 is not successfully received, the quantum state sequence... or Each has The permutations and combinations of |0>, |1> and |+>, |->, if when If the second quantum state in the sequence, which is either |0> or |1>, is not successfully received by user Amy, then... The first, third, ... n1th quantum states will all be discarded by user Amy. At the same time, the database owner Eve will also discard the 0 and 1 keys of length n1 bits corresponding to those discarded by user Amy.

[0058] Then, database owner Eve will continue to send the unreceived messages to user Amy. and Until there are N data blocks U1, U2, U3, ..., U in the database N The corresponding data lengths are n1, n2, n3, ..., n NThe quantum state sequence will be successfully received by user Amy until all of them are received.

[0059] Repeat the above steps c+k times (where c and k are both positive integers greater than 0) to achieve multiple distributions of the unintentional key, where k must satisfy (1 / 2 n ) kN →1, where n∈{n1,n2,n3,...,n i For example, when n=1, data block U1 is 1, then at this time (1 / 2 n ) kN Will be in accordance with Figure 3 The curve shown gradually increases from 0.5 when k=1 until it approaches 1. At this point, user Amy's latency measurement attacks will be detected by database owner Eve, thus ensuring the security of Eve's database. It is important to note that when determining the appropriate number of unintentional key distributions k, the focus should be on maintaining database security to ensure that user latency measurement attacks are 100% detectable. This should be combined with the total number of data blocks U to complete the transmission using the minimum number of |0>, |1>, |+>, and |->.

[0060] Finally, by obtaining the first measurement basis X composed of |0> and |1> and the second measurement basis Z composed of |+> and |-> (i.e., the third target measurement basis), and randomly assigning the first measurement basis X and the second measurement basis Z to user Amy in the (c+k)*N group {|p>,|p>,|p>,…} n With {|p'>,|p'>,|p'>,…} n Afterwards, the database owner Eve randomly selects k quantum state sequences from c+k transmissions and sends them to user Amy, requesting Amy to publish the selected N*k groups {|p>,|p>,|p>,…} n Based on the first delayed measurement result of the first measurement basis X, and {|p'>,|p'>,|p'>,…} n Based on the second delay measurement result of the second measurement basis Z, when the first delay measurement result published by user Amy is greater than the preset first error threshold, or the second delay measurement result is greater than the preset second error threshold, the database owner Eve will terminate the current distribution process. At the same time, user Amy can re-initiate a retrieval request for the target private information to the database owner Eve.

[0061] Specifically, with {|p'>,|p'>,|p'>,…} n ={|+>,|+>,|->,…,|+>} n Taking the measurement results as an example, we can determine whether there is a situation like this based on the measurement results. Figure 4The attack, such as delayed measurement, is shown. When the measurement basis published by user Amy matches the quantum state sequence (i.e., the state of the quantum state sequence can be correctly measured), the error rate caused by the delayed measurement is (2). n -1) / 2 n Furthermore, the aforementioned preset first error threshold and preset second error threshold are preferably 10. -3 No specific restrictions are placed on the setting of the error threshold here.

[0062] Furthermore, in the above process, the quantum state sequence used for testing in the unintentional key distribution, i.e., the N*k groups, is {|p>,|p>,|p>,…} after being measured by the first measurement basis X and the second measurement basis Z. n With {|p'>,|p'>,|p'>,…} n User Amy will be responsible for discarding N*k sets of data, and database owner Eve will also discard the corresponding sets {|p>,|p>,|p>,…}. n and {|p'>,|p'>,|p'>,…} n A key of equal length. The remaining c rows of quantum state sequences each contain N groups of lengths n1, n2, n3, ..., n. N The quantum state sequence {|p>,|p>,|p>,…} n With {|p'>,|p'>,|p'>,…} n Similarly, the remaining keys belonging to the database owner Eve will also be divided into c rows, each row containing N groups of lengths n1, n2, n3, ..., n. N The 0 and 1 key sequence.

[0063] Among them, the number of rows c mentioned above needs to satisfy U(1 / 2). c ≈1, for example, the database capacity T = 5 * 10 12 When the data length n1 of data block U1 takes values ​​of 2000, 6000, and 4*10, respectively... 4 5*10 5 8*10 9 In post-processing, the specific values ​​of the number of rows c into which the quantum state sequence and the key are divided are shown in Table 1 below.

[0064] Table 1

[0065]

[0066]

[0067] As an optional implementation, in the technical solution provided in step S204 above, the first target measurement basis includes a third measurement basis and a fourth measurement basis. The method includes: obtaining a third measurement basis corresponding to the first quantum state sequence and a fourth measurement basis corresponding to the second quantum state sequence; measuring the first quantum state sequence based on the third measurement basis or measuring the second quantum state sequence based on the fourth measurement basis to obtain a measurement result; obtaining a first key corresponding to N sets of quantum state sequences based on the measurement result, and obtaining a second key based on the quantum state corresponding to the quantum state sequence and the first key; performing an XOR logic operation on the first key and the second key to obtain a first target key, wherein the first target key includes N sets of key sequences, and the sequence length of each key sequence is equal to the length of the data.

[0068] In the above embodiment, a third measurement basis corresponding to the first quantum state sequence and a fourth measurement basis corresponding to the second quantum state sequence are obtained. The third measurement basis containing the same quantum states as the first quantum state sequence contains the same quantum states, and the fourth measurement basis containing the same quantum states as the second quantum state sequence contains the same quantum states. This is because user Amy inadvertently manipulated the (c+k)*N quantum state sequence during the key distribution process. With {|p'>,|p'>,|p'>,…} n The probability of selecting the correct measurement basis (both the third and fourth measurement basis) is 50%. Therefore, for each row of quantum state sequences, user Amy has only a 50% probability of deduce the first key corresponding to that quantum state sequence. The second key that user Amy cannot deduce can be marked as ×, and the first and second keys are then combined according to... Figure 5 The operation logic shown is performed using a bitwise XOR operation, resulting in a row containing U groups, each with lengths n1, n2, n3, ..., n. i The first target key Y of bits Z1 .

[0069] It should be noted that an appropriate number of rows c can make the second target key Y Z2 Only one set of data with a length of n bits is used by user Amy in the first target key Y. Z1 It was definitively deduced that it was 2. n One of the combinations of 0 and 1, namely U(1 / 2). c ≈1, while the second target key Y Z2 Other keys in the first target key Y Z1 The data block will be marked as × by user Amy, meaning it has not been inferred, thus ensuring the user's safety during the process of retrieving the target data block.

[0070] When performing the above post-processing operations, the security criterion is that user Amy can only infer a key with the same length as the data block to be retrieved. Based on the matching probability of the measurement basis and quantum state sequence used by user Amy, the appropriate parameter c is calculated and the key is diluted.

[0071] As an optional implementation, in the technical solution provided in step S206 above, to obtain an encrypted database, the method further includes: determining the first position of the first key sequence that is not the second key or the first position of the second key sequence within the first target key, and determining the first private data in the target data block to be stored in the second position within the database; determining the shift length of the second target key based on the first position and the second position; and encrypting N data blocks within the database according to the shifted second target key to obtain an encrypted database.

[0072] In this embodiment, user Amy denotes S as the first position within the first target key where the first key sequence that is not the second key is located, or the first position where the second key sequence is located. c That is, in the first target key Y Z1 The location of the first occurrence of a 0 or 1 key that is not the × key, and the location of the first private data in the target data block to be retrieved, stored in the second location in the database, denoted as i, determine the second target key Y. Z2 The shift length L is given by the expression for L: L = S c -I, where S c ∈[1,T], based on the second target key Y after the move. Z2 Encrypt N data blocks within the database to obtain an encrypted database.

[0073] Optionally, when the shift length L is greater than zero, the database owner Eve determines the number of bits to shift the second target key to the left and encrypts N data blocks in the database based on the shifted second target key; when the shift length L is less than zero, the database owner Eve determines the number of bits to shift the second target key to the right and encrypts N data blocks in the database based on the shifted second target key.

[0074] Finally, after user Amy receives the encrypted database, she can use the first target key Y. Z1 The desired multi-bit target data block is decrypted. For example, the target data block U1 has a data length of n1 = 3, and the fourth, fifth, and sixth bits T4, T5, and T6 in the database contain the target privacy data that user Amy is searching for, with the first bit S... cIf the value has been determined to be 5, then shifting the fourth, fifth, and sixth data bits T4, T5, and T6 to the left by 1 (L = 5 - 4) bits yields the second target key Y. Z2 Among them, Y corresponds to the fourth encrypted data T4. Z2 The fifth key in the code, which encrypts the fifth bit of data T5, is Y. Z2 The sixth key in the code, which encrypts the sixth bit of data T6, is Y. Z2 The seventh key in the key, therefore, user Amy can use the first target key Y Z1 By deducing the fifth, sixth, and seventh keys and decrypting them, we can obtain the fourth, fifth, and sixth data bits T4, T5, and T6, which are 3 bits long and stored in a database with a capacity of T bits.

[0075] Example 2

[0076] According to an embodiment of this application, a private information retrieval device for implementing the above-described private information retrieval method is also provided. Figure 6 This is a schematic diagram of an optional private information retrieval device according to an embodiment of this application, such as... Figure 6 As shown, the private information retrieval device includes at least an acquisition module 61, a determination module 63, and a decryption module 65, wherein:

[0077] The acquisition module 61 is used to acquire N sets of quantum state sequences from the database owner. Each set of quantum state sequences is obtained by dividing the quantum state, including the key sequence, into a sequence of the same length as the data length according to the data length corresponding to the N data blocks stored in the database.

[0078] The determination module 63 is used to obtain the first target measurement basis corresponding to the N sets of quantum state sequences, determine the first key corresponding to the quantum state sequence based on the first target measurement basis, and perform an XOR operation on the first key and the undetermined second key to obtain the first target key, wherein the first target measurement basis is the same as the quantum state contained in the quantum state sequence;

[0079] The decryption module 65 is used to decrypt the target data block in the encrypted database according to the first target key to obtain the target private information. The database is determined by the second target measurement basis corresponding to the key sequence to determine the third key carried by the quantum state, and the third key and the undetermined fourth key are XORed to obtain the second target key for encryption.

[0080] It should be noted that each module in the private information retrieval device in this application embodiment corresponds one-to-one with each implementation step of the private information retrieval method in embodiment 1. Since embodiment 1 has been described in detail, some details not shown in this embodiment can be referred to embodiment 1, and will not be elaborated further here.

[0081] Example 3

[0082] According to an embodiment of this application, a non-volatile storage medium is also provided, which includes a stored program, wherein the device where the non-volatile storage medium is located executes the private information retrieval method in Embodiment 1 by running the program.

[0083] Specifically, the device containing the non-volatile storage medium executes the following steps by running this program:

[0084] Step S202: Obtain N sets of quantum state sequences from the database owner. Each set of quantum state sequences is obtained by dividing the quantum state containing the key sequence into a sequence of the same length as the data length according to the data length corresponding to the N data blocks stored in the database.

[0085] Step S204: Obtain the first target measurement basis corresponding to the N sets of quantum state sequences, determine the first key corresponding to the quantum state sequence based on the first target measurement basis, and perform an XOR logic operation on the first key and the undetermined second key to obtain the first target key, wherein the first target measurement basis is the same as the quantum state contained in the quantum state sequence;

[0086] Step S206: Decrypt the target data block in the encrypted database according to the first target key to obtain the target private information. The database determines the third key corresponding to the key sequence based on the second target measurement basis corresponding to the key sequence, and performs an XOR logic operation on the third key and the undetermined fourth key to obtain the second target key for encryption.

[0087] According to an embodiment of this application, a processor is also provided for running a program, wherein the program executes the private information retrieval method in embodiment 1 during runtime.

[0088] Specifically, the program executes the following steps during runtime:

[0089] Step S202: Obtain N sets of quantum state sequences from the database owner. Each set of quantum state sequences is obtained by dividing the quantum state containing the key sequence into a sequence of the same length as the data length according to the data length corresponding to the N data blocks stored in the database.

[0090] Step S204: Obtain the first target measurement basis corresponding to the N sets of quantum state sequences, determine the first key corresponding to the quantum state sequence based on the first target measurement basis, and perform an XOR logic operation on the first key and the undetermined second key to obtain the first target key, wherein the first target measurement basis is the same as the quantum state contained in the quantum state sequence;

[0091] Step S206: Decrypt the target data block in the encrypted database according to the first target key to obtain the target private information. The database determines the third key corresponding to the key sequence based on the second target measurement basis corresponding to the key sequence, and performs an XOR logic operation on the third key and the undetermined fourth key to obtain the second target key for encryption.

[0092] According to an embodiment of this application, an electronic device is also provided, comprising: a memory and a processor, wherein the memory stores a computer program, and the processor is configured to execute the private information retrieval method of Embodiment 1 through the computer program.

[0093] Specifically, the processor is configured to execute the following steps via a computer program:

[0094] Step S202: Obtain N sets of quantum state sequences from the database owner. Each set of quantum state sequences is obtained by dividing the quantum state containing the key sequence into a sequence of the same length as the data length according to the data length corresponding to the N data blocks stored in the database.

[0095] Step S204: Obtain the first target measurement basis corresponding to the N sets of quantum state sequences, determine the first key corresponding to the quantum state sequence based on the first target measurement basis, and perform an XOR logic operation on the first key and the undetermined second key to obtain the first target key, wherein the first target measurement basis is the same as the quantum state contained in the quantum state sequence;

[0096] Step S206: Decrypt the target data block in the encrypted database according to the first target key to obtain the target private information. The database determines the third key corresponding to the key sequence based on the second target measurement basis corresponding to the key sequence, and performs an XOR logic operation on the third key and the undetermined fourth key to obtain the second target key for encryption.

[0097] The sequence numbers of the embodiments in this application are for descriptive purposes only and do not represent the superiority or inferiority of the embodiments.

[0098] In the above embodiments of this application, the descriptions of each embodiment have different focuses. For parts not described in detail in a certain embodiment, please refer to the relevant descriptions of other embodiments.

[0099] In the several embodiments provided in this application, it should be understood that the disclosed technical content can be implemented in other ways. The device embodiments described above are merely illustrative; for example, the division of units can be a logical functional division, and in actual implementation, there may be other division methods. For example, multiple units or components may be combined or integrated into another system, or some features may be ignored or not executed. Furthermore, the displayed or discussed mutual couplings, direct couplings, or communication connections may be through some interfaces; indirect couplings or communication connections between units or modules may be electrical or other forms.

[0100] The units described as separate components may or may not be physically separate. The components shown as units may or may not be physical units; that is, they may be located in one place or distributed across multiple units. Some or all of the units can be selected to achieve the purpose of this embodiment according to actual needs.

[0101] Furthermore, the functional units in the various embodiments of this application can be integrated into one processing unit, or each unit can exist physically separately, or two or more units can be integrated into one unit. The integrated unit can be implemented in hardware or as a software functional unit.

[0102] If the integrated unit is implemented as a software functional unit and sold or used as an independent product, it can be stored in a computer-readable storage medium. Based on this understanding, the technical solution of this application, in essence, or the part that contributes to the prior art, or all or part of the technical solution, can be embodied in the form of a software product. This computer software product is stored in a storage medium and includes several instructions to cause a computer device (which may be a personal computer, server, or network device, etc.) to execute all or part of the steps of the methods of the various embodiments of this application. The aforementioned storage medium includes various media capable of storing program code, such as a USB flash drive, read-only memory (ROM), random access memory (RAM), portable hard drive, magnetic disk, or optical disk.

[0103] The above are merely preferred embodiments of this application. It should be noted that those skilled in the art can make various improvements and modifications without departing from the principles of this application, and these improvements and modifications should also be considered within the scope of protection of this application.

Claims

1. A method of private information retrieval, characterized by, include: Obtain N sets of quantum state sequences from the database owner. Each set of quantum state sequences is obtained by dividing the quantum state containing the key sequence into a sequence of the same length as the data length corresponding to the N data blocks stored in the database. Obtain a first target measurement basis corresponding to the N sets of quantum state sequences, determine a first key carried by the quantum state sequence based on the first target measurement basis, and perform an XOR operation on the first key and an undetermined second key to obtain a first target key, wherein the first target measurement basis is the same as the quantum state contained in the quantum state sequence; The target data block within the encrypted database is decrypted using the first target key to obtain target private information. The database determines a third key corresponding to the key sequence based on a second target measurement basis, and then performs an XOR operation between the third key and an undetermined fourth key to obtain a second target key for encryption. Wherein, the quantum state sequence comprises: a first quantum state sequence composed of and or a second quantum state sequence composed of and ; and The first target measurement basis includes a third measurement basis and a fourth measurement basis. The process involves acquiring the first target measurement basis corresponding to the N sets of quantum state sequences, determining the first key corresponding to the quantum state sequence based on the first target measurement basis, and performing an XOR operation on the first key and an undetermined second key to obtain the first target key. Obtain the third measurement basis corresponding to the first quantum state sequence and the fourth measurement basis corresponding to the second quantum state sequence; The measurement result is obtained by measuring the first quantum state sequence based on the third measurement basis or by measuring the second quantum state sequence based on the fourth measurement basis; Based on the measurement results, the first key carried by the N sets of quantum state sequences is obtained, and the second key is obtained based on the quantum state corresponding to the quantum state sequence and the first key; Perform an XOR operation on the first key and the second key to obtain the first target key, wherein the first target key includes N key sequences, and the sequence length of each key sequence is equal to the length of the data.

2. The method according to claim 1, characterized in that, Obtain N sets of quantum state sequences from the database owner, including: Obtain the quantum state from the database owner, comprising a first key sequence and a second key sequence, wherein the first key sequence is composed of... and The second key sequence is composed of... and Composed of; The quantum state is divided according to the data length of the N data blocks in the database to obtain N sets of quantum state sequences with the same length as the data blocks.

3. The method according to claim 2, characterized in that, After obtaining N sets of quantum state sequences from the database owner, the method further includes: Based on whether the value at each quantum state position within the received N sets of quantum state sequences corresponds to the quantum state, it is determined whether the N sets of quantum state sequences sent from the database owner have been successfully received; If the target quantum state sequence is not successfully received from the database owner, the target quantum state sequence is discarded, and the key of the target numerical length corresponding to the target quantum state sequence in the database owner is also discarded. Reacquire the discarded target quantum state sequence until N sets of the quantum state sequence are successfully received from the database owner; Delayed measurements are performed on the N sets of quantum state sequences to obtain measurement results. If the measurement results exceed a preset error threshold, a new retrieval request for the target private information is initiated to the database owner.

4. The method according to claim 3, characterized in that, Perform delayed measurements on the N sets of quantum state sequences to obtain measurement results, and when the measurement results exceed a preset threshold, initiate another private information retrieval request to the database owner, including: Obtain a third target measurement basis, wherein the third target measurement basis includes: [the following is a list of components / methods / etc.] and The first measurement basis composed of and The second measurement basis; A first delayed measurement result is obtained by performing a delayed measurement on the first quantum state sequence based on the first measurement basis, or a second delayed measurement result is obtained by performing a delayed measurement on the second quantum state sequence based on the second measurement basis. If the first delay measurement result is greater than a preset first error threshold, or the second delay measurement result is greater than a preset second error threshold, a new retrieval request for the target private information is initiated to the database owner.

5. The method according to claim 1, characterized in that, The encrypted database includes: Determine the first position of the first key sequence that is not the second key within the first target key, or the first position of the second key sequence, and determine the second position of the first privacy data in the target data block to be stored in the database. The shift length of the second target key is determined based on the first position and the second position; The N data blocks in the database are encrypted using the moved second target key to obtain the encrypted database.

6. The method according to claim 5, characterized in that, The N data blocks in the database are incremented based on the moved second target key, including: When the shift length is greater than zero, determine the bit value by which the second target key is shifted to the left by the shift length, and encrypt the N data blocks in the database according to the shifted second target key; When the shift length is less than zero, determine the bit value by which the second target key is shifted to the right by the shift length, and encrypt the N data blocks in the database according to the shifted second target key.

7. A private information retrieval device, characterized in that, include: The acquisition module is used to acquire N sets of quantum state sequences from the database owner. Each set of quantum state sequences is obtained by dividing the quantum state containing the key sequence into a sequence of the same length as the data length corresponding to the N data blocks stored in the database. The determination module is used to obtain a first target measurement basis corresponding to the N sets of quantum state sequences, determine a first key corresponding to the quantum state sequence based on the first target measurement basis, and perform an XOR logic operation on the first key and an undetermined second key to obtain a first target key, wherein the first target measurement basis is the same as the quantum state contained in the quantum state sequence; The decryption module is used to decrypt the encrypted target data block in the database based on the first target key to obtain target private information. The database determines a third key corresponding to the key sequence based on a second target measurement basis corresponding to the key sequence, and performs an XOR operation on the third key and an undetermined fourth key to obtain a second target key for encryption. The quantum state sequence includes: and The first quantum state sequence composed of or made up of and The second quantum state sequence; and The first target measurement base includes a third measurement base and a fourth measurement base, wherein the determining module is used for: Obtain the third measurement basis corresponding to the first quantum state sequence and the fourth measurement basis corresponding to the second quantum state sequence; The measurement result is obtained by measuring the first quantum state sequence based on the third measurement basis or by measuring the second quantum state sequence based on the fourth measurement basis; Based on the measurement results, the first key carried by the N sets of quantum state sequences is obtained, and the second key is obtained based on the quantum state corresponding to the quantum state sequence and the first key; Perform an XOR operation on the first key and the second key to obtain the first target key, wherein the first target key includes N key sequences, and the sequence length of each key sequence is equal to the length of the data.

8. A non-volatile storage medium, characterized in that, The non-volatile storage medium includes a stored program, wherein the device containing the non-volatile storage medium executes the private information retrieval method according to any one of claims 1 to 6 by running the program.

9. An electronic device, characterized in that, include: A memory and a processor, wherein the memory stores a computer program, and the processor is configured to execute the private information retrieval method according to any one of claims 1 to 6 through the computer program.

Citation Information

Patent Citations

  • Quantum neighbor query method capable of protecting location privacy

    CN106533680A