Casual quantum transmission method and device based on SARG04 protocol

By adopting the quantum inadvertent transmission method based on the SARG04 protocol in cryptography and using non-orthogonal quantum states and position sets for key negotiation, the problem of traditional protocols being unable to resist quantum computer attacks is solved, and secure and consistent information transmission is achieved.

CN118694522APending Publication Date: 2024-09-24CAS QUANTUM NETWORK CO LTD +1
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202410779831.7
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-06-17
Publication Date
2024-09-24

AI Technical Summary

Technical Problem

The traditional oblivious transmission protocol based on elliptic curve algorithm cannot resist the attacks of quantum computers, and it is difficult for existing technology to provide a secure information transmission method in cryptography.

Method used

Using the quantum oblivious transmission method based on the SARG04 protocol, multiple position sets are generated by using randomly selected non-orthogonal quantum states for modulation and measurement between the sender and the receiver, and key negotiation is performed based on these position sets to generate Encryption and decryption keys to ensure secure transmission of messages.

Benefits of technology

It achieves resistance to quantum computer attacks, ensures the security and confidentiality of information transmission, and ensures the consistency of encryption and decryption through the position set of the qubit sequence.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118694522A
    Figure CN118694522A
Patent Text Reader

Abstract

The embodiment of the invention relates to the field of cryptography, in particular to a quantum casual transmission method and device based on an SARG04 protocol. The method comprises the following steps: a sending end modulates a randomly selected first quantum bit sequence with a randomly selected non-orthogonal quantum state sequence, and sends the obtained first quantum state sequence to a receiving end, the receiving end deduces the first quantum bit sequence according to the randomly selected orthogonal quantum state sequence and the non-orthogonal quantum state sequence, generates a plurality of position sets and sends the position sets to the sending end, and the plurality of position sets respectively comprise a position where one quantum bit can be deduced and a plurality of remaining positions where the quantum bits cannot be deduced; and the sending end initiates a key negotiation process to the receiving end according to the plurality of position sets, respectively generates a plurality of encryption keys, and sends a message encrypted by the encryption keys to the receiving end. According to the scheme, careless transmission which is based on the SARG04 protocol and can resist quantum computer attacks is constructed.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The embodiments of the present invention relate to the field of cryptography, and in particular to a quantum oblivious transmission method and device based on the SARG04 protocol. Background Art

[0002] Oblivious Transfer (OT) is a protocol in cryptography used in the interaction process between the sender and the receiver. The sender has multiple messages to send, but the receiver can only get one of the messages and cannot know any of the other messages. At the same time, the sender cannot know which message the receiver has selected. Therefore, neither the sender nor the receiver will know the specific information the other party has learned.

[0003] Since traditional secure multi-party computing technologies mostly rely on oblivious transmission based on elliptic curve algorithms, they cannot resist attacks from quantum computers. There is an urgent need to provide a new information transmission method to solve the problem. Summary of the invention

[0004] The purpose of the embodiments of the present invention is to provide a quantum oblivious transmission method and device based on the SARG04 protocol, so as to realize the oblivious transmission based on the quantum of the SARG04 protocol that can resist the attack of quantum computers.

[0005] In order to solve the above technical problems, an embodiment of the present invention provides a quantum oblivious transmission method based on the SARG04 protocol, which is applied to a transmitting end. The method comprises:

[0006] Modulating a randomly selected first quantum bit sequence with a randomly selected non-orthogonal quantum state sequence, and sending the modulated first quantum state sequence to a receiving end, so that the receiving end measures the first quantum state sequence with a randomly selected orthogonal quantum state sequence to obtain a measured second quantum state sequence;

[0007] The non-orthogonal quantum state sequence is published, so that the receiving end can infer the first quantum bit sequence according to the second quantum state sequence and the non-orthogonal quantum state sequence, generate multiple position sets and send them to the sending end, wherein any one of the position sets represents the position of the quantum bit that can be inferred in the first quantum bit sequence, and any remaining one of the position sets represents the position of the quantum bit that cannot be inferred in the first quantum bit sequence, and any two remaining position sets are different;

[0008] A key negotiation process is initiated to the receiving end according to the received multiple position sets, a first encryption key and multiple second encryption keys are generated respectively, and a first message encrypted by the first encryption key and multiple second messages encrypted by the multiple second encryption keys are sent to the receiving end.

[0009] The embodiment of the present invention further provides a quantum oblivious transmission method based on the SARG04 protocol, which is applied to a receiving end, and the method comprises:

[0010] Measuring a first quantum state sequence received from a transmitting end with a randomly selected orthogonal quantum state sequence to obtain a measured second quantum state sequence, wherein the first quantum state sequence is generated by modulating a randomly selected first quantum bit sequence with a randomly selected non-orthogonal quantum state sequence;

[0011] After inferring the first quantum bit sequence according to the second quantum state sequence and the acquired non-orthogonal quantum state sequence published by the transmitter, a plurality of position sets are generated and sent to the transmitter, wherein any one of the position sets represents the position of the quantum bit that can be inferred in the first quantum bit sequence, and any remaining one of the position sets represents the position of the quantum bit that cannot be inferred in the first quantum bit sequence, and any two remaining position sets are different;

[0012] receiving the sending end initiating a key negotiation process according to the plurality of position sets, generating a decryption key, and causing the sending end to generate a first encryption key and a plurality of second encryption keys respectively; wherein the decryption key and one of the first encryption key and the plurality of second encryption keys are generated in a key negotiation process based on the position set from which the quantum bit can be inferred;

[0013] receiving a first message encrypted by the first encryption key and a plurality of second messages respectively encrypted by the plurality of second encryption keys and sent by the sending end;

[0014] Based on the decryption key, the first message and the plurality of second messages are decrypted respectively to parse out the first message or one of the second messages.

[0015] An embodiment of the present invention further provides an electronic device, comprising: at least one processor; and a memory communicatively connected to the at least one processor; wherein the memory stores instructions executable by the at least one processor, and the instructions are executed by the at least one processor so that the at least one processor can execute a quantum inadvertent transmission method based on the SARG04 protocol provided in an embodiment of the present invention.

[0016] An embodiment of the present invention further provides a computer-readable storage medium storing a computer program sequence, which, when executed by a processor, implements a quantum inadvertent transmission method based on the SARG04 protocol provided by an embodiment of the present invention.

[0017] In an embodiment of the present invention, the transmitting end modulates the randomly selected first quantum bit sequence with a randomly selected non-orthogonal quantum state sequence, sends the first quantum state sequence obtained after modulation to the receiving end, and publishes the non-orthogonal quantum state sequence at the same time, so that the receiving end can measure the first quantum state sequence with a randomly selected orthogonal quantum state sequence to obtain the measured second quantum state sequence, and after inferring the first quantum bit sequence according to the second quantum state sequence and the non-orthogonal quantum state sequence, generates multiple position sets and returns them to the transmitting end, wherein one position set contains the position of the quantum bit that can be inferred, and the remaining position sets are all different and respectively represent the position of the quantum bit that cannot be inferred; the transmitting end initiates a key negotiation process to the receiving end according to the multiple position sets, generates multiple encryption keys respectively, and sends a message encrypted by the encryption key to the receiving end. By using the quantum communication of the SARG042 protocol, the receiving end completes the inference of the first quantum bit sequence of the transmitting end, and the key negotiation process is executed based on the inference result, so as to realize the quantum construction based on the SARG04 protocol to achieve inadvertent transmission that can resist quantum computer attacks.

[0018] In addition, the key negotiation process is initiated to the receiving end according to the received multiple position sets to generate a first encryption key and multiple second encryption keys respectively, including: dividing a first subsequence and multiple second subsequences from the first quantum bit sequence according to the multiple position sets; wherein the position of each quantum bit in the first subsequence in the first quantum bit sequence matches the position in one of the position sets; the position of each quantum bit in the multiple second subsequences in the first quantum bit sequence matches the position in the remaining multiple position sets respectively; based on the one first subsequence and the multiple second subsequences, the key negotiation process is initiated to the receiving end to generate a first encryption key and multiple second encryption keys respectively. The receiving end initiates a key negotiation process to generate a first key sequence and multiple second key sequences, wherein when the sending end performs key negotiation based on the first subsequence and multiple second subsequences respectively, the receiving end enables the sending end to obtain a key sequence consistent with the receiving end after key negotiation for the subsequence corresponding to the position set from which the quantum bit can be inferred, and enables the sending end to obtain a key sequence unrelated to the receiving end after key negotiation for the subsequence corresponding to the position set from which the quantum bit cannot be inferred; the first key sequence is intercepted to generate the first encryption key, and the multiple second key sequences are respectively intercepted to generate the multiple second encryption keys. The present application extracts a subsequence of the key data to be negotiated at the sending end through a position set, initiates a key negotiation process to the receiving end, and intercepts the obtained key data, thereby achieving the effect that the sending end generates a first and multiple second encryption keys according to the multiple position sets. Such a key generation mechanism can be used for subsequent message encryption to ensure the security of communication.

[0019] In addition, sending the first message encrypted by the first encryption key and the multiple second messages encrypted by the multiple second encryption keys to the receiving end includes: performing an XOR operation on the first message to be sent and the first encryption key to obtain the encrypted first message; performing an XOR operation on the multiple second messages to be sent and the multiple second encryption keys to obtain the encrypted multiple second messages; and sending the encrypted first message and the encrypted multiple second messages. Through the above process, the present application allows the sending end to safely transmit multiple encrypted messages to the receiving end, and the receiving end uses a decryption key generated by the target location set to simultaneously decrypt the first message and multiple second messages, and parse to obtain the first message or one second message, which helps to protect the confidentiality of the communication content.

[0020] In addition, after publishing the non-orthogonal quantum state sequence, it also includes: receiving a key instruction sent by the receiving end to indicate whether to generate a key; wherein the key instruction is generated by the receiving end based on the processing result after comparing, correcting errors and amplifying privacy of part of the quantum states in the acquired non-orthogonal quantum state sequence and the orthogonal quantum state sequence; when confirming that the key instruction indicates to generate a key, executing the step of initiating a key negotiation process to the receiving end according to the received multiple position sets; when confirming that the key instruction indicates not to generate a key, restarting the step of modulating the randomly selected first quantum bit sequence with the randomly selected non-orthogonal quantum state sequence, sending the modulated first quantum state sequence to the receiving end, and subsequent steps.

[0021] In addition, each orthogonal quantum state includes any one of {|0>,|1>} and {|+>,|->}, and each non-orthogonal quantum state includes any one of {|0>,|+>}, {|0>,|->}, {1>,|+>} and {|1>,|->}.

[0022] In addition, the receiving end initiates a key negotiation process according to the multiple position sets to generate a decryption key, and enables the sending end to generate a first encryption key and multiple second encryption keys respectively, including: dividing a third subsequence and multiple fourth subsequences from the second quantum bit sequence formed after inferring the first quantum bit sequence according to the multiple position sets; wherein the position of each quantum bit in the third subsequence in the second quantum bit sequence matches the position in one of the position sets; the position of each quantum bit in the multiple fourth subsequences in the second quantum bit sequence matches the position in the remaining multiple position sets respectively; based on the one third subsequence and the multiple fourth subsequences and The sending end executes the key negotiation process, so that the sending end generates a first key sequence and multiple second key sequences respectively, wherein when performing key negotiation based on the one third subsequence and the multiple fourth subsequences respectively, for the subsequence corresponding to the position set from which the quantum bit can be inferred, the sending end obtains a key sequence consistent with the receiving end after key negotiation, and for the subsequence corresponding to the position set from which the quantum bit cannot be inferred, the sending end obtains a key sequence unrelated to the receiving end after key negotiation, so that the sending end can generate the first encryption key based on the first key sequence, and generate the multiple second encryption keys based on the multiple second key sequences; the consistent key sequence is intercepted to generate the decryption key. The present application extracts a subsequence of the key data to be negotiated by the receiving end through the position set, and executes the key negotiation process with the receiving end and intercepts the obtained key data, so as to achieve the effect that the receiving end generates a decryption key according to the two position sets, and the decryption key is consistent with one of the first and multiple second encryption keys generated by the receiving end. Such a key generation mechanism can be used for subsequent message decryption to ensure the security of communication.

[0023] In addition, after obtaining the non-orthogonal quantum state sequence published by the transmitting end, after inferring the first quantum bit sequence according to the second quantum state sequence and the obtained non-orthogonal quantum state sequence published by the receiving end, before generating multiple position sets and sending them to the transmitting end, the method also includes: comparing, error correcting and privacy amplifying some quantum states in the non-orthogonal quantum state sequence and the orthogonal quantum state sequence, and generating a key instruction based on the processing result and sending it to the transmitting end, the key instruction is used to instruct the transmitting end whether to execute the step of initiating a key negotiation process to the receiving end according to the received multiple position sets; in the key When the key instruction instructs the sending end to initiate a key negotiation process to the receiving end according to the multiple position sets received, the step of inferring the first quantum bit sequence according to the second quantum state sequence and the non-orthogonal quantum state sequence obtained and published by the receiving end, generating multiple position sets and sending them to the sending end is performed; when the key instruction instructs the sending end not to initiate a key negotiation process to the receiving end according to the multiple position sets received, the step of measuring the first quantum state sequence received from the sending end with a randomly selected orthogonal quantum state sequence to obtain the measured second quantum state sequence, and subsequent steps is performed. BRIEF DESCRIPTION OF THE DRAWINGS

[0024] One or more embodiments are exemplarily described by the pictures in the corresponding drawings, and these exemplary descriptions do not constitute limitations on the embodiments.

[0025] Figure 1 is a flowchart illustrating a quantum oblivious transmission method based on the SARG04 protocol applied at a transmitting end according to an embodiment of the present application;

[0026] Figure 2 is a flowchart illustrating key generation and message encryption according to an embodiment of the present application;

[0027] Figure 3 is another flow chart illustrating a quantum oblivious transmission method based on the SARG04 protocol applied at a receiving end according to an embodiment of the present application;

[0028] Figure 4 is a flowchart illustrating key generation according to an embodiment of the present application;

[0029] Figure 5 It is an example interaction diagram of the quantum oblivious transmission method based on the SARG04 protocol provided by the present invention;

[0030] Figure 6 for Figure 5 Schematic diagram of the structure of the sender (Alice) and the sender (Bob);

[0031] Figure 7 It is a hardware block diagram of an electronic device according to an embodiment of the present application. DETAILED DESCRIPTION

[0032] To make the purpose, technical scheme and advantages of the embodiments of the present invention clearer, the embodiments of the present invention will be described in detail below in conjunction with the accompanying drawings. However, it will be appreciated by those skilled in the art that in the embodiments of the present invention, many technical details are proposed in order to enable the reader to better understand the present application. However, even without these technical details and various changes and modifications based on the following embodiments, the technical scheme claimed in the present application can be implemented. The division of the following embodiments is for the convenience of description, and should not constitute any limitation on the specific implementation of the present invention. The various embodiments can be combined and referenced with each other without contradiction.

[0033] To make the purpose, technical scheme and advantages of the embodiments of the present invention clearer, the embodiments of the present invention will be described in detail below in conjunction with the accompanying drawings. However, it will be appreciated by those skilled in the art that in the embodiments of the present invention, many technical details are proposed in order to enable the reader to better understand the present application. However, even without these technical details and various changes and modifications based on the following embodiments, the technical scheme claimed in the present application can be implemented. The division of the following embodiments is for the convenience of description, and should not constitute any limitation on the specific implementation of the present invention. The various embodiments can be combined and referenced with each other without contradiction.

[0034] An embodiment of the present invention relates to a quantum oblivious transfer method based on the SARG04 protocol, which can be applied to a transmitting end, and the transmitting end can be a hardware device with a quantum oblivious transfer (QOT) function. QOT is a technology that uses quantum as an information transmission carrier and the microscopic state of quantum as the basis for information encoding to complete oblivious transmission at both ends of the transmission.

[0035] It should be noted that the embodiments of the present application do not specifically limit the specific structure of the execution entity of the quantum inadvertent transmission method based on the SARG04 protocol, as long as it can be processed by running a computer program sequence or instruction recording the method provided by the embodiments of the present application, and according to the method provided by the embodiments of the present application.

[0036] In this embodiment, a quantum oblivious transmission method based on the SARG04 protocol is provided, which is applied to a transmitting end, and the method includes: modulating a randomly selected first quantum bit sequence with a randomly selected non-orthogonal quantum state sequence, and sending the first quantum state sequence obtained after modulation to a receiving end, so that the receiving end measures the first quantum state sequence with a randomly selected orthogonal quantum state sequence to obtain a measured second quantum state sequence; publishing the non-orthogonal quantum state sequence, so that the receiving end infers the first quantum bit sequence according to the second quantum state sequence and the non-orthogonal quantum state sequence, and then generating multiple position sets and sending them to the transmitting end, wherein any one of the position sets represents the position of the quantum bit that can be inferred in the first quantum bit sequence, and the remaining any one of the position sets represents the position of the quantum bit that cannot be inferred in the first quantum bit sequence, and the remaining any two position sets are different; initiating a key negotiation process to the receiving end according to the received multiple position sets, generating a first encryption key and multiple second encryption keys respectively, and sending a first message encrypted by the first encryption key and multiple second messages encrypted by the multiple second encryption keys respectively to the receiving end.

[0037] In this embodiment, the transmitting end randomly selects a non-orthogonal quantum state sequence to modulate the first quantum bit sequence, and sends the first quantum state sequence generated after modulation to the receiving end and publishes the non-orthogonal quantum state sequence; the receiving end further measures the first quantum bit sequence by using a randomly selected orthogonal quantum state sequence, and infers the first quantum bit sequence by combining the second quantum state sequence generated by the measurement with the above-mentioned non-orthogonal quantum state sequence to generate multiple position sets, one of which indicates that the position of the quantum bit can be inferred, and the remaining ones are different from each other and respectively indicate that the position of the quantum bit cannot be inferred; the transmitting end initiates a key negotiation process to the receiving end according to the position set, generates an encryption key, and uses it to encrypt the message. This embodiment generates a quantum state sequence by modulating the quantum bit sequence with non-orthogonal quantum states at the transmitting end, measures the quantum state sequence with orthogonal quantum states at the receiving end, and infers the quantum bit sequence based on the measurement results and the non-orthogonal quantum states published by the transmitting end to generate a position set of the quantum bit sequence, thereby realizing secure key generation and message transmission of a quantum communication protocol based on the SARG04 protocol, and ensuring the consistency of encryption and decryption through the position set of the quantum bit sequence; and solving the problem that information transmission may be attacked by quantum computers.

[0038] The implementation details of the quantum oblivious transmission method based on the SARG04 protocol of this embodiment are specifically described below. The following content is only the implementation details provided for the convenience of understanding and is not necessary for the implementation of this solution.

[0039] See also Figure 1 , Figure 1This embodiment provides a flowchart of a quantum oblivious transmission method based on the SARG04 protocol, which is applied to a transmitting end. The method includes:

[0040] Step S110: modulate the first quantum bit sequence and send the modulation result to the test end.

[0041] Specifically, the first quantum bit sequence y randomly selected by the sender A ←{0, 1} n (later abbreviated as y A ), with a randomly selected non-orthogonal quantum state sequence x A ←{{|0>,|+>},{|0>,|->},{|1>,|+>},{|1>,|->}} n (later abbreviated as x A ) is modulated, and the first quantum state sequence obtained after modulation| Sent to the receiving end for the first quantum state sequence With a randomly selected orthogonal quantum state sequence x B ←{{|0>,|1>},{|+>,|->}} n (later abbreviated as x B ) to measure and obtain the second quantum state sequence after measurement

[0042] For example, assuming that the sender is user Alice and the receiver is user Bob, Alice and Bob agree to prepare four quantum states: |0>, |1>, |+>=|0>+|1>, |->=|0>-|1>, where {|0>, |1>} is a set of basis vectors and {|+>, |->} is another set of basis vectors. Alice and Bob agree that the correspondence between quantum bits and quantum states can be as shown in Table 1, that is, {|0>, |1>} corresponds to 0, and {|+>, |->} corresponds to 1):

[0043] Table 1

[0044] 0 |0> |1> 1 |+> |->

[0045] Alice and Bob also agreed to prepare four non-orthogonal quantum states:

[0046] {|0>,|+>}, {|0>,|->}, {1>,|+>}, and {|1>,|->}.

[0047] It should be noted that the correspondence between quantum bits and quantum states agreed upon by Alice and Bob can be flexibly replaced by other equivalent methods. The above assumptions are merely exemplary and are used to illustrate the principles of the embodiments of the present application. They do not limit the scope of the present application. Those skilled in the art can make various combinations, modifications and equivalent substitutions to the above embodiments without departing from the spirit and scope of the present invention.

[0048] For example, assuming n = 16, Alice randomly generates the first qubit sequence y A for:

[0049] y A ={0,1,0,1,0,1,0,1,0,0,1,1,0,0,1,1}

[0050] Assume that Alice randomly selects a non-orthogonal quantum state sequence x A for:

[0051] x A ={{|0>,|+>},{|0>,|+>},{|0>,|->},{|0>,|->},{|1>,|+>},{|1>,|+>},{|1>,|->},{|1>,|+>},{|1>,|->},{|1>,|+>},{|1>,|->},{|0>,|+>},{|0>,|->}}

[0052] Alice obtains the first quantum state sequence according to the basis vector set agreed in Table 1 as follows:

[0053]

[0054] Alice prepares the first quantum state sequence Send to Bob.

[0055] Assume that Bob randomly selects an orthogonal quantum state sequence x B for:

[0056] x B ={{|0>,|1>},{|0>,|1>},{|0>,|1>},{|0>,|1>},{|0>,|1>},{|0>,|1>},{|0>,|1>},{|0>,|1>},{|0>,|1>},{|+>,|->},{|+>,|->},{|+>,|->},{|+>,|->},{|+>,|->},{|+>,|->}}

[0057] According to quantum mechanics, Bob uses an orthogonal quantum state sequence x B For the first quantum state sequence After measurement, a possible second quantum state sequence is obtained for:

[0058]

[0059] Step S120: Publish a non-orthogonal quantum state sequence.

[0060] Specifically, the sender publishes a non-orthogonal quantum state sequence x A , for the receiving end to use according to the second quantum state sequence and a non-orthogonal quantum state sequence x A For the first quantum bit sequence y A After inference, multiple location sets are generated and sent to the sender. b = {i|infer y Ai '} represents the quantum bit y that can be inferred Ai 'In the first quantum bit sequence y A The remaining positions in any position set I b’ = {i|y is not inferred Ai '} represents the quantum bit y that cannot be inferred Ai 'In the first quantum bit sequence y A The positions in the remaining two position sets are different. It can be understood by those skilled in the art that since b∈{0,1,…,l-1}, b'∈{0,1,…,l-1}, b≠b', (there is only one b, but there are multiple b'), l is the number of position sets, so when b=0, the above multiple position sets can be expressed as I0={i| Ai '}, I1 = {i|y is not inferred Ai '},I2={i|y is not inferred Ai '},…,I l-1 = {i|y is not inferred Ai '}, and I1≠I2≠…≠I l-1 .

[0061] Continuing the above example, Bob uses the non-orthogonal quantum state sequence x published by Alice A And the measured second quantum state sequence The first quantum state sequence sent by the transmitter is inferred through the inference relationship in Table 2 and the first qubit sequence y A .

[0062] Table 2

[0063]

[0064] In summary, Bob can infer the quantum state sent by Alice on the sequence of bits {4,8,9,13}. The first quantum state sequence inferred by Bob is for:

[0065]

[0066] The first qubit sequence y deduced by Bob A 'for:

[0067] y A '={×,×,×,1,×,×,×,1,0,×,×,×,0,×,×,×};

[0068] Among them, “×” represents that it cannot be judged. According to probability, Bob can successfully judge about 25% of the sequence bits in the quantum state he received.

[0069] Bob retains the sequence bits that can be judged, and at the same time, he randomly generates binary random numbers to complete the sequence bits that cannot be judged, forming a possible second quantum bit sequence y B for:

[0070] y B ={1,1,1,1,1,1,1,1,0,0,0,0,0,0,0,0}.

[0071] Assuming Bob chooses b = 0, it can be inferred that the set of quantum bit positions can be:

[0072] I0={4,8,9,13};

[0073] For other sequence bits, Bob cannot infer the quantum state sent by Alice. Bob can randomly divide these sequence bits into 3 groups, forming 3 possible position sets:

[0074] I1={1,3,7,10};

[0075] I2 = {2, 6, 12, 14};

[0076] I3={5,10,11,15};

[0077] Bob sends the location set I0, I1, I2, and I3 to Alice. I0 can be regarded as I b ; I1, I2, I3 can be regarded as three I b’ .

[0078] Step S130: Generate an encryption key according to the received location set, and send the encrypted message to the receiving end.

[0079] Specifically, the transmitting end receives the plurality of position sets sent by the receiving end. Among them, any position set I b = {i|infer y Ai '} represents the quantum bit y that can be inferred Ai 'In the first quantum bit sequence y Ai ', any remaining position set I b’ = {i|y is not inferred Ai '} represents the quantum bit y that cannot be inferred Ai 'The position in the first qubit sequence, the remaining two positions are not the same. Among them, b∈{0,1,…,l-1}, b'∈{0,1,…,l-1}, b≠b' (there is only one b, and there are multiple b'). That is, for the sender, it is unknown which of the multiple position sets is the position set of the qubit in the sequence that can be inferred, and which is the position set of the qubit in the sequence that cannot be inferred.

[0080] Then the sender based on the location set I b and I b’ Initiate a key negotiation process to the receiving end, generate a first encryption key f(k0) and multiple second encryption keys f(k1), f(k2), ..., f(k l-1 ), and sends to the receiving end a first message y0 encrypted by the first encryption key, and a plurality of second messages y1, y2, ..., y1 encrypted by the plurality of second encryption keys respectively. l-1 .

[0081] In one example, the sender generates an encryption key based on the received multiple location sets and uses the key to encrypt the message. The specific process of the above step S130 is as follows: Figure 2 As shown, including:

[0082] Step S131: according to the received multiple position sets, a first subsequence and multiple second subsequences are divided from the first quantum bit sequence.

[0083] Specifically, the sending end receives multiple position sets I sent by the receiving end. b and I b’ , and according to these multiple position sets, from the first quantum bit sequence y A Divide a first subsequence y from A0 and multiple second subsequences y A1 ,y A2 ,…,y A(l-1) ; Among them, the first subsequence y A0 Each qubit in the first qubit sequence yA The position in the plurality of second subsequences y matches the position in one of the position sets; A1 ,y A2 ,…,y A(l-1) Each qubit in the first qubit sequence y A The positions in the set are matched with the positions in the remaining plurality of position sets respectively.

[0084] Continuing with the above example, after receiving the four position sets fed back by Bob, Alice selects the first quantum bit sequence y according to the sequence bits contained in each position set. A Extract the quantum bits on the corresponding sequence positions and form 4 subsequences, among which I0 or I b The corresponding subsequence is recorded as the first subsequence, and I1, I2, and I3, i.e., the three I b’ The corresponding three subsequences are respectively recorded as second subsequences.

[0085] It should be noted that when the sender Alice forms a subsequence, she does not know which subsequence corresponds to I b , which subsequence corresponds to I b’ Of course, it is unknown which of the subsequences formed by the division is the first subsequence and which is the second subsequence. In this embodiment, only for the convenience of explanation, the default is I b The corresponding subsequence is recorded as the first subsequence, and I b’ The corresponding subsequence is recorded as the second subsequence.

[0086] For example, Alice receives four positions from the first quantum bit sequence y. A The four subsequences extracted are as follows:

[0087] y A0 ={1,1,0,0}

[0088] y A1 ={0,0,0,0}

[0089] y A2 ={1,1,1,0}

[0090] y A3 ={0,0,1,1}

[0091] Step S132: Generate multiple key sequences according to the sequence division results.

[0092] Specifically, the transmitter is based on a first subsequence y A0 and multiple second subsequences y A1 ,y A2 ,…,y A(l-1)Initiate a key negotiation process to the receiving end to generate a first key sequence k0 and multiple second key sequences k1, k2, ..., k l-1 , where the sending end is based on the first subsequence y A0 and multiple second subsequences y A1 ,y A2 ,…,y A(l-1) During key negotiation, for the subsequence corresponding to the set of quantum bit positions that can be inferred, the receiving end enables the sending end to obtain a key sequence consistent with that of the receiving end after key negotiation. For the subsequence corresponding to the set of quantum bit positions that cannot be inferred, the sending end enables the sending end to obtain a key sequence that is independent of the receiving end after key negotiation.

[0093] The key negotiation process mainly includes the sender sending the negotiation data to the receiver, and the two parties negotiate to perform data post-processing (data post-processing includes operations such as error correction and privacy amplification. The subsequent processing steps belong to existing technologies and the process is complicated. The specific process is not within the scope of protection of this application and is not described in detail in this solution).

[0094] It is worth mentioning that, during the key negotiation process with the receiving end based on the first subsequence and each second subsequence, the sending end does not know which of the position sets corresponding to these subsequences can infer quantum bits, or which ones cannot infer quantum bits, but the receiving end can distinguish whether the position set corresponding to the subsequence (first subsequence or second subsequence) currently being negotiated by the sending end corresponds to quantum bits that can be inferred or cannot be inferred. Therefore, during the key negotiation process, the subsequence y corresponding to the position set that can infer quantum bits that the sending end wants to negotiate is Ab , the receiving end will negotiate with the sending end normally, so that after the key negotiation, the sending end will obtain the key sequence k that is consistent with the receiving end. b ; For the subsequence y corresponding to the set of quantum bit positions that the sender cannot infer for negotiation Ab’ , the receiving end will pretend to negotiate with the sending end without being discovered by the sending end, so that after the key negotiation, the sending end will obtain a key sequence k that has nothing to do with the receiving end b’ Since b∈{0,1,…,l-1}, b'∈{0,1,…,l-1}, b≠b' (there is only one b, but there are multiple b'). Therefore, the above multiple key sequences can be expressed as k0, k1,…,k l-1 ; Among them, the key sequence formed by negotiation for the first subsequence can be recorded as the first key sequence k0, and the key sequence formed by negotiation for multiple second subsequences can be recorded as the second key sequence k1, k2, ..., k l-1 .

[0095] Continuing with the above example, for the first subsequence corresponding to I0, Bob and Alice conduct key negotiation (data post-processing) normally, and Alice can obtain the key sequence k0 (first key sequence) that is consistent with Bob. For the three second subsequences corresponding to I1, I2, and I3, Bob and Alice pretend to conduct key negotiation (data post-processing), and Alice obtains the key sequences k1, k2, and k3 (three second key sequences) that are not related to Bob.

[0096] Step S133: Generate multiple keys according to multiple key sequences respectively.

[0097] Specifically, the sending end intercepts the first key sequence based on the interception function f(·) to generate the first encryption key f(k0), and intercepts the multiple second key sequences to generate the multiple second encryption keys f(k1), f(k2), ..., f(k l-1 ). It is worth mentioning that the significance of interception here is to unify the key and the corresponding message length, ensuring the consistency and execution efficiency of the encrypted message.

[0098] Step S134: Use the first key to encrypt the first message to obtain a first encrypted message.

[0099] Specifically, an XOR operation is performed on the first message m0 to be sent and the first encryption key f(k0), that is, y0=m0⊕f(k0), where y0 is the encrypted first message.

[0100] Step S135: Use the second key to encrypt the second message to obtain a second encrypted message.

[0101] Specifically, multiple second messages m1, m2, ..., m l-1 and the plurality of second encryption keys f(k1), f(k2), ..., f(k l-1 ) performs an XOR operation, namely:

[0102] y1=m1⊕f(k1), where y1 is the encrypted second message;

[0103] y2=m2⊕f(k2), where y2 is the encrypted second message;

[0104] …

[0105] y l-1 =m l-1 ⊕f(k l-1 ), where y l-1 To obtain the encrypted second message.

[0106] It is worth mentioning that, in one example, the quantum oblivious transmission method based on the SARG04 protocol of this embodiment also includes the key instruction execution process sent by the message sending end to the receiving end. Figure 1 , Figure 1 Step S140 is the process of executing the key instruction sent by the message sending end to the receiving end of this method.

[0107] Step S140: receiving a key instruction.

[0108] Specifically, after publishing the non-orthogonal quantum state sequence, the sender will wait for the receiver to perform a security check on the current quantum communication environment. The sender will execute the key negotiation process only after the receiver explicitly issues a key instruction to proceed to the next step. A After that, the receiving end will receive a key instruction indicating whether to generate a key; wherein the key instruction is the receiving end according to the non-orthogonal quantum state sequence x obtained. A and orthogonal quantum state sequence x B After comparing, correcting errors and amplifying privacy of some quantum states in the network, a new data set is generated based on the processing results.

[0109] Among them, the part of quantum states selected by the receiving end is the orthogonal quantum states corresponding to other sequence positions in the received orthogonal quantum state sequence except for the above-mentioned multiple position sets. The receiving end randomly selects a part of the data to be made public, and performs data post-processing processes such as quantum state comparison, error correction and privacy amplification with the sending end to ensure that this quantum communication is not attacked by a third party. If both parties confirm that a secure key can be generated, the next key negotiation process will continue, and the data that has been made public will be discarded; if it is confirmed that a secure key cannot be generated, the quantum communication will be abandoned, and step 110 and subsequent steps will be executed again. (Data post-processing includes basis vector comparison, error correction and privacy amplification. This step belongs to the existing technology and the process is complicated. The specific process is not within the scope of protection of this application, and the scheme will not be described in detail here.)

[0110] In case of instruction to generate a key, step 130 is executed.

[0111] Specifically, when confirming that the key instruction indicates to generate a key, the sending end executes the step of initiating a key negotiation process to the receiving end according to the received multiple position sets, that is, executes step 130.

[0112] In the case where it is indicated not to generate a key, step 110 is executed.

[0113] Specifically, when confirming that the key instruction indicates not to generate a key, the sending end restarts to modulate the first quantum bit sequence and sends the modulation result to the test end, that is, executes step 110 and subsequent steps.

[0114] In an embodiment of the present invention, the transmitter randomly selects a non-orthogonal quantum state sequence to modulate the first quantum bit sequence, and sends the first quantum state sequence generated after modulation to the receiver and publishes the non-orthogonal quantum state sequence; the receiver further measures the first quantum bit sequence with a randomly selected orthogonal quantum state sequence, and infers the first quantum bit sequence by combining the second quantum state sequence generated by the measurement with the non-orthogonal quantum state sequence to generate multiple position sets, one of which indicates that the position of the quantum bit can be inferred, and the remaining ones are different from each other, and each indicates that the position of the quantum bit cannot be inferred; the transmitter initiates a key negotiation process to the receiver according to the position set, generates multiple encryption keys, and sends a message encrypted by the encryption key to the receiver. By using quantum communication of the SARG042 protocol, the receiver completes the inference of the first quantum bit sequence of the transmitter, and executes the key negotiation process based on the inference result, so as to realize the quantum construction based on the SARG04 protocol to resist the inadvertent transmission of quantum computer attacks.

[0115] Another embodiment of the present invention also relates to a quantum oblivious transmission method based on the SARG04 protocol, which can be applied to a receiving end, and the receiving end can be a hardware device with a QOT function.

[0116] It should be noted that the embodiments of the present application do not specifically limit the specific structure of the execution entity of the quantum inadvertent transmission method based on the SARG04 protocol, as long as it can be processed by running a computer program sequence or instruction recording the method provided by the embodiments of the present application, and according to the method provided by the embodiments of the present application.

[0117] In this embodiment, a first quantum state sequence received from a transmitting end is measured with a randomly selected orthogonal quantum state sequence to obtain a measured second quantum state sequence, wherein the first quantum state sequence is generated by modulating a randomly selected first quantum bit sequence with a randomly selected non-orthogonal quantum state sequence at the receiving end; after inferring the first quantum bit sequence according to the second quantum state sequence and the obtained non-orthogonal quantum state sequence published by the receiving end, a plurality of position sets are generated and sent to the transmitting end, wherein any one of the position sets represents the position of the quantum bit that can be inferred in the first quantum bit sequence, and any one of the remaining position sets represents the position of the quantum bit that cannot be inferred in the first quantum bit sequence. And any two remaining position sets are not the same; the receiving and sending end initiates a key negotiation process according to the multiple position sets, generates a decryption key, and enables the sending end to generate a first encryption key and multiple second encryption keys respectively; wherein the decryption key and the first encryption key and one of the multiple second encryption keys are generated in a key negotiation process based on a position set from which the quantum bit can be inferred; the receiving and sending end sends a first message encrypted by the first encryption key, and multiple second messages encrypted by the multiple second encryption keys respectively; based on the decryption key, the first message and the multiple second messages are respectively decrypted to parse out the first message or one of the second messages.

[0118] See also Figure 3 , Figure 3 Another flow chart of a quantum oblivious transmission method based on the SARG04 protocol. Another embodiment of the present application provides a quantum oblivious transmission method based on the SARG04 protocol, which is applied to a receiving end. The method includes:

[0119] Step S210: measuring the first quantum state sequence to obtain a second quantum state sequence.

[0120] Specifically, the receiving end receives the first quantum state sequence from the sending end With a randomly selected orthogonal quantum state sequence x B Perform measurement and obtain the second quantum state sequence after measurement The first quantum state sequence is the first qubit sequence y randomly selected by the sender A With a randomly selected non-orthogonal quantum state sequence x A Generated after modulation.

[0121] For the specific process and application examples of this step, please refer to the content of step 110 in the above embodiment, which will not be repeated here.

[0122] Step S220: Acquire the non-orthogonal quantum state sequence published by the transmitting end.

[0123] Step S230: inferring the first quantum bit sequence according to the second quantum state sequence and the non-orthogonal quantum state sequence, generating multiple position sets, and sending the position sets to the transmitting end.

[0124] Specifically, the receiving end uses the second quantum state sequence and the obtained non-orthogonal quantum state sequence x published by the sender A For the first quantum bit sequence y A After inference, multiple location sets are generated and sent to the sending end, wherein any location set I b = {i|infer y Ai '} represents the quantum bit y that can be inferred Ai 'In the first quantum bit sequence y A The remaining positions in any position set I b’ = {i|y is not inferred Ai '} represents the quantum bit y that cannot be inferred Ai 'The position in the first qubit sequence, the remaining two positions are not the same. It can be understood by those skilled in the art that, since b∈{0,1,…,l-1}, b'∈{0,1,…,l-1}, b≠b', (there is only one b, and there are multiple b'), l is the number of position sets, so when b=0, the above multiple position sets can be expressed as I0={i| Ai '}, I1 = {i|y is not inferred Ai '},I2={i|y is not inferred Ai '},…,I l-1 = {i|y is not inferred Ai '}, and I1≠I2≠…≠I l-1 For the sender, which of these positions is the quantum bit y that can be inferred? Ai 'The set of positions in the sequence, which quantum bits y cannot be inferred Ai 'The position of the set in the sequence is not known.

[0125] Step S240: Generate a decryption key based on the location set, and decrypt the encrypted message.

[0126] Specifically, the sending end receives a plurality of position sets I sent by the receiving end. b and I b’ After that, the key negotiation process is initiated to the receiving end to generate a first encryption key f(k0) and multiple second encryption keys f(k1), f(k2),…,f(k l-1), and then sends to the receiving end a first message y0 encrypted by the first encryption key, and a plurality of second messages y1, y2, ..., y1 encrypted by the plurality of second encryption keys, respectively. l-1 Similarly, the receiving end receives the key negotiation process initiated by the sending end according to the multiple position sets, generates a decryption key, and enables the sending end to generate a first encryption key f(k0) and multiple second encryption keys f(k1), f(k2),…,f(k l-1 ); wherein the decryption key is associated with the first encryption key f(k0) and a plurality of second encryption keys f(k1), f(k2),…, f(k l-1 ), wherein an encryption key is generated in a key negotiation process based on a set of quantum bit positions that can be inferred; a first message y0 encrypted by the first encryption key and a plurality of second messages y1, y2, ..., y1 encrypted by the plurality of second encryption keys are received from a transmitting end; l-1 Based on the decryption key, the first message y0 and multiple second messages y1, y2, ..., y l-1 Decrypt and parse the first message m b or a second message m b’ , b∈{0,1,…,l-1}, b'∈{0,1,…,l-1}, b≠b' (there is only one b, but there are multiple b'). The position set based on which the decryption key is generated is the set I representing the positions of the quantum bits in the sequence that can be inferred after the first quantum bit sequence is inferred. b = {i|infer y Ai '}, b∈{0,1,…,l-1},; the receiving end can solve m b =y b ⊕f(k b ).

[0127] In one example, the receiving end receives the key negotiation process initiated by the sending end according to multiple location sets, generates a decryption key, and enables the sending end to generate a first encryption key and multiple second encryption keys respectively. Figure 4 As shown, including:

[0128] Step 241: According to multiple position sets, a third subsequence and multiple fourth subsequences are divided from the second quantum bit sequence formed after inferring the first quantum bit sequence.

[0129] Specifically, according to a plurality of position sets I b and I b’ The second qubit sequence y formed by inferring the first qubit sequence B A third subsequence y is divided from B0 and multiple fourth subsequences yB1 ,y B2 ,…,y B(l-1) ; Among them, the third subsequence y B0 Each qubit in the second qubit sequence y B The position in the set of positions matches the position in one of the sets of positions; multiple fourth subsequences y B1 ,y B2 ,…,y B(l-1) Each qubit in the second qubit sequence y B The positions in are matched with the positions in the remaining multiple position sets respectively.

[0130] Continuing with the above example, after Bob feeds back the aforementioned four position sets to Alice, he will select the second quantum bit sequence y according to the sequence bits contained in each position set. B Extract the quantum bits on the corresponding sequence positions and form 4 subsequences, among which I0 or I b The corresponding subsequence is recorded as the third subsequence, and I1, I2, and I3, i.e., the three I b’ The corresponding three subsequences are recorded as the fourth subsequence. For example, according to the four position sets formed, Bob starts from the second quantum bit sequence y B The subsequences extracted are as follows:

[0131] y B0 ={1,1,0,0}

[0132] y B1 ={1,1,1,0}

[0133] y B2 ={1,1,0,0}

[0134] y B3 ={1,0,0,0}

[0135] Step 242: Generate multiple key sequences according to the sequence division results.

[0136] Specifically, the receiving end is based on a third subsequence y B0 and multiple fourth subsequences y B1 ,y B2 ,…,y B(l-1) The key negotiation process is performed with the sending end, so that the sending end generates a first key sequence k0 and multiple second key sequences k1, k2, ..., k l-1 , where each is based on a third subsequence y B0 and multiple fourth subsequences y B1 ,y B2 ,…,y B(l-1)When negotiating a key, the subsequence y corresponding to the set of quantum bit positions can be inferred Bb After key negotiation, the sender obtains the key sequence k that is consistent with the receiver. b , for the subsequence y corresponding to the set of quantum bit positions that cannot be inferred Bb’ After key negotiation, the sender obtains a key sequence k that is independent of the receiver. b’ , so that the sender can generate a first encryption key f(k0) based on the first key sequence k0, and a plurality of second key sequences k1, k2, ..., k l-1 Generate multiple second encryption keys f(k1), f(k2), ..., f(k l-1 ).

[0137] Step 243: For a consistent key sequence k b Intercept and generate decryption keys.

[0138] Specifically, the receiving end intercepts the above consistent key sequence based on the interception function f(·) to generate the decryption key. It is worth mentioning that the significance of interception here is to unify the key and the corresponding message length, thereby ensuring the consistency and execution efficiency of the encrypted message. The intercepted decryption key is combined with the first encryption key f(k0) and multiple second encryption keys f(k1), f(k2),…,f(k l-1 ), and are the same as the encryption key in the , and are the keys obtained after the sender and the receiver negotiate the keys for their respective subsequences corresponding to the set of positions of the quantum bits that can be inferred.

[0139] It is worth mentioning that, in one example, the quantum oblivious transmission method based on the SARG04 protocol of this embodiment also includes the process of the message receiving end sending a key instruction to the sending end. Figure 3 , Figure 3 Step S250 is the process of the message receiving end sending a key instruction to the sending end in this method.

[0140] Step S250: Generate and issue key instructions.

[0141] Specifically, after the receiving end obtains the non-orthogonal quantum state sequence published by the sending end, the receiving end will perform a security check on the current quantum communication environment based on the non-orthogonal quantum state sequence and the orthogonal quantum state sequence. After the key instruction for continuing the subsequent steps is clearly issued to the sending end based on the inspection results, the receiving end will issue multiple position sets and execute the key negotiation process. That is, the receiving end checks the non-orthogonal quantum state sequence x A and orthogonal quantum state sequence x BThe partial quantum states in the data are compared, corrected and privacy amplified, and a key instruction is generated based on the processing result and sent to the sender. The key instruction is used to instruct the sender whether to execute the step of initiating a key negotiation process to the receiver based on the received multiple position sets.

[0142] Among them, the part of quantum states selected by the receiving end is the orthogonal quantum states corresponding to other sequence positions in the received orthogonal quantum state sequence except for the above-mentioned multiple position sets. The receiving end randomly selects a part of the data to be made public, and performs data post-processing processes such as quantum state comparison, error correction and privacy amplification with the sending end to ensure that this quantum communication is not attacked by a third party. If both parties confirm that a secure key can be generated, the next key negotiation process will continue, and the data that has been made public will be discarded; if it is confirmed that a secure key cannot be generated, the quantum communication will be abandoned, and step 210 and subsequent steps will be executed again. (Data post-processing includes basis vector comparison, error correction and privacy amplification. This step belongs to the existing technology and the process is complicated. The specific process is not within the scope of protection of this application, and the scheme will not be described in detail here.)

[0143] When the key instruction instructs the sending end to initiate a key negotiation process to the receiving end according to the received multiple position sets, step 230 is executed.

[0144] Specifically, when the receiving end determines and sends a key instruction for instructing the generation of a key to the sending end, it executes the step of inferring the first quantum bit sequence according to the second quantum state sequence and the non-orthogonal quantum state sequence, generating multiple position sets, and sending the position sets to the sending end, that is, executing step 230.

[0145] When the key instruction instructs the sending end not to initiate a key negotiation process to the receiving end according to the received multiple position sets, step 210 is executed.

[0146] Specifically, when the receiving end determines and sends a key instruction to the sending end for indicating not to generate a key, the receiving end performs the step of measuring the first quantum state sequence to obtain the second quantum state sequence, that is, performs step 210 and subsequent steps.

[0147] This implementation mode is applied to the receiving end. The receiving end measures the first quantum state sequence of the sending end based on a randomly selected orthogonal quantum state sequence to obtain a second quantum state sequence. After obtaining the non-orthogonal quantum state sequence published by the sending end, the receiving end infers the first quantum bit sequence used to form the first quantum state sequence by combining it with the second quantum state sequence to generate a position set and sends it to the sending end. The receiving end negotiates with the sending end to generate a decryption key based on the position set. Finally, the encrypted message sent by the sending end is received and the encrypted message is decrypted.

[0148] It is not difficult to find that this embodiment can be implemented in conjunction with the above method embodiment. The relevant technical details mentioned in the above method embodiment are still valid in this embodiment, and in order to reduce repetition, they are not repeated here. Accordingly, the relevant technical details mentioned in this embodiment can also be applied in the above method embodiment.

[0149] See also Figure 5 , Figure 5 An example of the quantum oblivious transmission method based on the SARG04 protocol provided by the present invention, the specific implementation process includes:

[0150] Step 1: Alice randomly generates the first quantum bit sequence y A , and adopt a randomly selected non-orthogonal quantum state sequence x A After modulation, the first quantum state sequence generated after modulation Send to the receiving end:

[0151] x A ←{{|0>,|+>},{|0>,|->},{|1>,|+>},{|1>,|->}} n ,y A ←{0, 1} n ;

[0152] x determines the selected quantum state, and y determines the quantum state of the modulated quantum bit.

[0153] Step 2: Bob randomly selects an orthogonal quantum state sequence x B For the first quantum state sequence After the measurement is performed, a second quantum state sequence is generated

[0154] x B ←{{|0>,|1>},{|+>,|->}} n ; x determines the selected quantum state.

[0155] Step 3: Alice publishes the non-orthogonal quantum state sequence x A .

[0156] Step 4: Based on the information published by Alice, Bob infers the first quantum state sequence sent by Alice And the corresponding first quantum bit sequence y A , and form the second quantum bit sequence y B .

[0157] Step 5: Bob randomly selects a portion of the data to be made public, and performs data post-processing such as quantum state comparison, error correction, and privacy amplification with Alice to confirm whether a secure key can be generated.

[0158] Step 6: After confirming that the security key can be generated in step 5, Bob A Infer and generate multiple location sets: I b = {i|infer y Ai '}、I b’ = {i|y is not inferred Ai '}, and according to I b and I b’ From the second quantum bit sequence y B Divide multiple subsequences y B0 ,y B1 ,…,y B(l-1) .

[0159] Step 7: Bob generates multiple position sets I b and I b’ Send to Alice.

[0160] Step 8: Alice uses I b and I b’ From the first quantum bit sequence y A Divide multiple subsequences y A0 ,y A1 ,…,y A(l-1) , and initiates a key negotiation process with Bob. After the key negotiation, Alice obtains multiple key sequences k0, k1, …, k l-1 , and one of the key sequences is the key sequence used by Bob to generate the decryption key.

[0161] Step 9: Alice sends y0=m0⊕f(k0), y1=m1⊕f(k1),…,y to Bob. l-1 =m l-1 ⊕f(k l-1 ), where f is the intercept function, f(k0), f(k1),…, f(k l-1 ) are multiple encryption keys.

[0162] Step 10: Bob solves m b =y b ⊕f(k b ), f(k b ) is the decryption key.

[0163] See also Figure 6 , Figure 6 For the corresponding Figure 5The schematic diagram of the structure of the sending end (Alice) and the receiving end (Bob), where the sending end includes a classical communication module, a quantum state preparation module, a processor and a storage; the receiving end includes a classical communication module, a quantum state detection module, a processor and a storage. Among them, the classical communication module is responsible for the classical communication between Alice and Bob; the quantum state preparation module is responsible for preparing and sending quantum states; the quantum state detection module is responsible for receiving and detecting quantum states; the processor performs data post-processing, encryption and decryption and other classical data processing required by the QOT protocol; the storage performs QOT protocol-related data storage.

[0164] All the steps in this application are divided only for clear description. When implemented, they can be combined into one step or some steps can be split and decomposed into multiple steps. As long as they include the same logical relationship, they are all within the scope of protection of this patent; adding insignificant modifications to the algorithm or process or introducing insignificant designs without changing the core design of the algorithm and process are all within the scope of protection of this patent.

[0165] See also Figure 7 Another embodiment of the present invention relates to a terminal / electronic device / server, such as Figure 7 As shown, it includes at least one processor; and a memory connected to the at least one processor in communication; wherein the memory stores a computer program sequence or instruction that can be executed by the at least one processor, and the computer program sequence or instruction is executed by the at least one processor so that the at least one processor can execute the quantum inadvertent transmission method based on the SARG04 protocol as described above.

[0166] Among them, the memory and the processor are connected in a bus manner, and the bus may include any number of interconnected buses and bridges, and the bus connects various circuits of one or more processors and memories together. The bus can also connect various other circuits such as peripherals, voltage regulators, and power management circuits, which are well known in the art and are therefore not further described herein. The bus interface provides an interface between the bus and the transceiver. The transceiver can be one element or multiple elements, such as multiple receivers and transmitters, providing a unit for communicating with various other devices on a transmission medium. The data processed by the processor is transmitted on a wireless medium via an antenna, and further, the antenna also receives data and transmits the data to the processor.

[0167] The processor is responsible for managing the bus and general processing, and can also provide various functions, including timing, peripheral interfaces, voltage regulation, power management, and other control functions. Memory can be used to store data used by the processor when performing operations.

[0168] Another embodiment of the present invention relates to a computer-readable storage medium storing a computer program sequence. When the computer program sequence is executed by a processor, the above method embodiment is implemented.

[0169] That is, those skilled in the art can understand that all or part of the steps in the above-mentioned embodiment method can be completed by instructing the relevant hardware through a program sequence, and the program sequence is stored in a storage medium, including a number of instructions to enable a device (which can be a single-chip microcomputer, chip, etc.) or a processor to execute all or part of the steps of the method described in each embodiment of the present application. The aforementioned storage medium includes: U disk, mobile hard disk, read-only memory (ROM, Read-Only Memory), random access memory (RAM, Random Access Memory), disk or optical disk and other media that can store program sequence codes.

[0170] It should be understood that when used in the present specification and the appended claims, the term "comprising" indicates the presence of described features, wholes, steps, operations, elements and / or components, but does not exclude the presence or addition of one or more other features, wholes, steps, operations, elements, components and / or combinations thereof.

[0171] In addition, in the description of the present application specification and the appended claims, the terms "first", "second", "third", etc. are only used to distinguish the descriptions and cannot be understood as indicating or implying relative importance.

[0172] Those skilled in the art will appreciate that the above-mentioned embodiments are specific examples for implementing the present invention, and in actual applications, various changes may be made thereto in form and detail without departing from the spirit and scope of the present invention.

Claims

1. A quantum oblivious transmission method based on the SARG04 protocol, characterized in that: Applied to the sending end, the method includes: Modulating a randomly selected first quantum bit sequence with a randomly selected non-orthogonal quantum state sequence, and sending the modulated first quantum state sequence to a receiving end, so that the receiving end measures the first quantum state sequence with a randomly selected orthogonal quantum state sequence to obtain a measured second quantum state sequence; The non-orthogonal quantum state sequence is published, so that the receiving end can infer the first quantum bit sequence according to the second quantum state sequence and the non-orthogonal quantum state sequence, generate multiple position sets and send them to the sending end, wherein any one of the position sets represents the position of the quantum bit that can be inferred in the first quantum bit sequence, and any remaining one of the position sets represents the position of the quantum bit that cannot be inferred in the first quantum bit sequence, and any two remaining position sets are different; A key negotiation process is initiated to the receiving end according to the received multiple position sets, a first encryption key and multiple second encryption keys are generated respectively, and a first message encrypted by the first encryption key and multiple second messages encrypted by the multiple second encryption keys are sent to the receiving end.

2. The quantum oblivious transmission method based on the SARG04 protocol according to claim 1 is characterized in that: The initiating a key negotiation process to the receiving end according to the received multiple position sets, and generating a first encryption key and multiple second encryption keys respectively, comprises: A first subsequence and a plurality of second subsequences are divided from the first quantum bit sequence according to the plurality of position sets; wherein the position of each quantum bit in the first subsequence in the first quantum bit sequence matches the position in one of the position sets; and the position of each quantum bit in the plurality of second subsequences in the first quantum bit sequence matches the position in the remaining plurality of position sets respectively; Initiating a key negotiation process to the receiving end based on the one first subsequence and the multiple second subsequences to generate a first key sequence and multiple second key sequences, wherein when the sending end performs key negotiation based on the first subsequence and the multiple second subsequences respectively, the receiving end enables the sending end to obtain a key sequence consistent with the receiving end after the key negotiation for the subsequence corresponding to the position set of the quantum bit that can be inferred, and enables the sending end to obtain a key sequence unrelated to the receiving end after the key negotiation for the subsequence corresponding to the position set of the quantum bit that cannot be inferred; The first key sequence is intercepted to generate the first encryption key, and the multiple second key sequences are respectively intercepted to generate the multiple second encryption keys.

3. The quantum oblivious transmission method based on the SARG04 protocol according to claim 2 is characterized in that: Sending to the receiving end a first message encrypted by the first encryption key and a plurality of second messages respectively encrypted by the plurality of second encryption keys, comprising: Performing an XOR operation on the first message to be sent and the first encryption key to obtain the encrypted first message; Performing an exclusive OR operation on the multiple second messages to be sent and the multiple second encryption keys respectively to obtain the multiple encrypted second messages; The encrypted first message and the encrypted plurality of second messages are sent.

4. The quantum oblivious transmission method based on the SARG04 protocol according to any one of claims 1 to 3, characterized in that: After publishing the non-orthogonal quantum state sequence, the method further comprises: Receiving a key instruction sent by the receiving end indicating whether to generate a key; wherein the key instruction is generated by the receiving end based on a processing result after comparing, correcting errors, and amplifying privacy of some quantum states in the obtained non-orthogonal quantum state sequence and the orthogonal quantum state sequence; In the case of confirming that the key instruction indicates to generate a key, executing the step of initiating a key negotiation process to the receiving end according to the received multiple position sets; When it is confirmed that the key instruction indicates not to generate a key, the method of modulating the randomly selected first quantum bit sequence with a randomly selected non-orthogonal quantum state sequence is restarted, and the first quantum state sequence obtained after modulation is sent to the receiving end, as well as subsequent steps.

5. The quantum oblivious transmission method based on the SARG04 protocol according to any one of claims 1 to 3, characterized in that: Each orthogonal quantum state includes any one of {|0>,|1>} and {|+>,|->}, and each non-orthogonal quantum state includes any one of {|0>,|+>}, {|0>,|->}, {1>,|+>} and {|1>,|->}.

6. A quantum oblivious transmission method based on the SARG04 protocol, characterized in that: Applied to the receiving end, the method comprises: Measuring a first quantum state sequence received from a transmitting end with a randomly selected orthogonal quantum state sequence to obtain a measured second quantum state sequence, wherein the first quantum state sequence is generated by modulating a randomly selected first quantum bit sequence with a randomly selected non-orthogonal quantum state sequence; After inferring the first quantum bit sequence according to the second quantum state sequence and the acquired non-orthogonal quantum state sequence published by the transmitter, a plurality of position sets are generated and sent to the transmitter, wherein any one of the position sets represents the position of the quantum bit that can be inferred in the first quantum bit sequence, and any remaining one of the position sets represents the position of the quantum bit that cannot be inferred in the first quantum bit sequence, and any two remaining position sets are different; receiving the sending end initiating a key negotiation process according to the plurality of position sets, generating a decryption key, and causing the sending end to generate a first encryption key and a plurality of second encryption keys respectively; wherein the decryption key and one of the first encryption key and the plurality of second encryption keys are generated in a key negotiation process based on the position set from which the quantum bit can be inferred; receiving a first message encrypted by the first encryption key and a plurality of second messages respectively encrypted by the plurality of second encryption keys, sent by the sending end; Based on the decryption key, the first message and the plurality of second messages are decrypted respectively to parse out the first message or one of the second messages.

7. The quantum oblivious transmission method based on the SARG04 protocol according to claim 6 is characterized in that: Receiving the sending end initiating a key negotiation process according to the multiple position sets, generating a decryption key, and causing the sending end to generate a first encryption key and multiple second encryption keys respectively, including: A third subsequence and a plurality of fourth subsequences are divided from a second quantum bit sequence formed after inferring the first quantum bit sequence according to the plurality of position sets; wherein the position of each quantum bit in the third subsequence in the second quantum bit sequence matches the position in one of the position sets; and the position of each quantum bit in the plurality of fourth subsequences in the second quantum bit sequence matches the position in the remaining plurality of the position sets respectively; performing the key negotiation process with the transmitting end based on the one third subsequence and the multiple fourth subsequences, so that the transmitting end generates a first key sequence and multiple second key sequences respectively, wherein when performing key negotiation based on the one third subsequence and the multiple fourth subsequences respectively, for the subsequence corresponding to the position set of the quantum bit that can be inferred, the transmitting end obtains a key sequence consistent with the receiving end after the key negotiation, and for the subsequence corresponding to the position set of the quantum bit that cannot be inferred, the transmitting end obtains a key sequence that is unrelated to the receiving end after the key negotiation, so that the transmitting end generates the first encryption key based on the first key sequence, and generates the multiple second encryption keys based on the multiple second key sequences; The consistent key sequence is intercepted to generate the decryption key.

8. The quantum oblivious transmission method based on the SARG04 protocol according to claim 6, characterized in that: After acquiring the non-orthogonal quantum state sequence published by the transmitting end, after inferring the first quantum bit sequence according to the second quantum state sequence and the acquired non-orthogonal quantum state sequence published by the receiving end, and before generating multiple position sets and sending them to the transmitting end, the method further includes: Performing comparison, error correction and privacy amplification processing on the non-orthogonal quantum state sequence and some quantum states in the orthogonal quantum state sequence, and generating a key instruction based on the processing result and sending it to the sending end, wherein the key instruction is used to instruct the sending end whether to execute the step of initiating a key negotiation process to the receiving end according to the received multiple position sets; In the case where the key instruction instructs the transmitting end to execute a key negotiation process to the receiving end according to the received multiple position sets, the step of generating multiple position sets and sending them to the transmitting end after inferring the first quantum bit sequence according to the second quantum state sequence and the obtained non-orthogonal quantum state sequence published by the receiving end; When the key instruction instructs the sending end not to initiate a key negotiation process to the receiving end based on the received multiple position sets, the first quantum state sequence received from the sending end is measured with a randomly selected orthogonal quantum state sequence to obtain a measured second quantum state sequence, as well as subsequent steps.

9. An electronic device, characterized in that: include: at least one processor; as well as, a memory communicatively connected to the at least one processor; wherein, The memory stores instructions that can be executed by the at least one processor, and the instructions are executed by the at least one processor to enable the at least one processor to perform the quantum oblivious transmission method based on the SARG04 protocol as described in any one of claims 1 to 8.

10. A computer-readable storage medium storing a computer program sequence, characterized in that: When the computer program sequence is executed by a processor, the quantum oblivious transmission method based on the SARG04 protocol according to any one of claims 1 to 8 is implemented.