A verifiable oblivious transfer method based on elliptic curves
By using elliptic curves and public and private key verification in the oblivious transmission protocol, the problem of being unable to verify the identity of the recipient and the source of the message in the existing technology is solved, the authenticity verification of the sender and the receiver is realized, and resource waste and false message reception are avoided. .
Patent Information
- Application Number
- CN202210067698.3
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2022-01-20
- Publication Date
- 2024-09-27
- Estimated Expiration
- 2042-01-20
AI Technical Summary
Existing oblivious transmission methods based on elliptic curves cannot effectively verify the identity of the receiver and the authenticity of the message source, resulting in a waste of resources for the sender and the possibility of the receiver receiving false messages.
Through the oblivious transmission protocol, the sender and receiver share the elliptic curve in advance, the receiver calculates the encryption share and authentication parameters, the sender verifies the identity of the receiver, the receiver decrypts the message identifier, and verifies the message source through the public and private key pair.
It realizes the authenticity verification of the identity of the sender and the receiver and the authenticity verification of the message source by the receiver, avoiding waste of resources and the reception of false messages.
Smart Images

Figure CN114422135B
Abstract
Description
Technical Field
[0001] The present invention relates to the field of information security technology, and more particularly to a verifiable oblivious transmission method based on elliptic curves. Background Art
[0002] As the amount of data grows, privacy protection faces increasingly severe challenges. As an effective method for data privacy protection, oblivious transmission has become an important research topic in the field of information security. Oblivious transmission allows the receiver to select a message from two or more messages sent by the sender, while the sender cannot obtain any information about the message selected by the receiver, and the receiver cannot obtain any information about other messages except the selected message. It has been applied to Internet communications such as e-commerce and electronic voting.
[0003] However, due to the openness of the Internet, verifiability becomes an issue worth considering when designing an oblivious transmission method based on elliptic curves. That is, the sender can verify whether the identity of the receiver communicating with him is real and not impersonated, and the receiver can also verify whether the message received comes from the real sender.
[0004] However, in the existing oblivious transmission method based on elliptic curves, if an attacker pretends to be a receiver to communicate with a sender, although the attacker cannot obtain any information about the message selected by the real receiver from the sender, the sender cannot detect that the identity of the receiver communicating with itself is impersonated, and the sender needs to complete the calculation of the entire protocol, thereby wasting its own computing resources. In addition, if an attacker pretends to be a sender to send an erroneous message to the receiver, the receiver cannot detect whether the received message comes from the real sender, which can lead to the attacker using the erroneous message to achieve the purpose of the attack, causing certain losses to both parties in communication.
[0005] Therefore, how to provide a verifiable oblivious transmission method based on elliptic curves that can verify the identity of the recipient and the authenticity of the message source is an urgent problem that those skilled in the art need to solve. Summary of the invention
[0006] In view of this, the present invention provides a verifiable oblivious transfer method based on elliptic curves. During the execution of the oblivious transfer protocol, the sender can verify the authenticity of the receiver's identity, and the receiver can also verify the authenticity of the source of the decrypted message.
[0007] In order to achieve the above object, the present invention adopts the following technical solution:
[0008] A verifiable oblivious transmission method based on elliptic curves, wherein a sender and a receiver pre-share an elliptic curve over a finite field, comprising the following steps:
[0009] The receiving end calculates the encryption share T of the αth message identifier to be obtained α and the receiving end authentication parameter h, and the encryption share T α and the receiving end identity authentication parameter h are sent to the sending end; where α∈[1,k] represents the message identifier sequence number to be selected, and k represents the number of message identifiers owned by the sending end;
[0010] The sender calculates the receiver's identity judgment parameter h′ and compares it with the receiver's identity verification parameter h; if the two are equal, it means that the receiver's identity is authentic, and calculates k sender identity verification parameters {z1, z2, …, z k}, decryption share V and k message identification ciphertexts {E1,E2,…,E k}, send to the receiving end; otherwise, exit the protocol execution;
[0011] The receiving end identifies the ciphertexts {E1, E2, …, E k} to find the αth message identification ciphertext E α , and perform decryption operation to obtain the αth message identifier m α ;
[0012] The receiving end calculates the identity judgment parameter z′ of the αth sending end α , and the received k sender authentication parameters {z1,z2,…,z k}; if they are equal, it means the message source is authentic, and the decrypted message identifier m is received. α Otherwise, refuse to receive the decrypted message identifier m α .
[0013] Furthermore, in the above-mentioned verifiable oblivious transmission method based on elliptic curve, the receiving end has a pair of public and private keys on the elliptic curve (d B ,Q B ), where d B Indicates the private key of the receiving end based on the elliptic curve, Q B =d B G represents the public key of the receiving end based on the elliptic curve; the sending end has a pair of public and private keys on the elliptic curve (d A ,Q A ) and k message identifiers (m1,m2,…m k ), where d A Indicates the private key of the sender based on the elliptic curve, Q A =d AG represents the sender's public key based on the elliptic curve, m i Represents a 256-bit binary string of 0s and 1s based on an elliptic curve.
[0014] Furthermore, in the above-mentioned verifiable oblivious transmission method based on elliptic curve, the receiving end calculates the encryption share T of the αth message identifier to be obtained α and the receiving end authentication parameter h, including:
[0015] Randomly select an integer s∈[1,n-1] and calculate the receiving end encryption verification parameter P, P=(P x ,P y ) = d B Q A , where P x The horizontal axis represents the encryption verification parameter P at the receiving end, P y The ordinate represents the encryption verification parameter P of the receiving end;
[0016] Calculate the encryption share T for the αth message identifier to be obtained α , where T α =αP+sG;
[0017] Calculate the receiving end identity authentication parameter h, h = H (P x ||P y ), where H represents the hash mapped to a number, with a length of 256 bits, and || represents a binary 0 and 1 string concatenation operation.
[0018] Furthermore, in the above-mentioned verifiable oblivious transmission method based on elliptic curve, the calculation formula of the receiving end identity judgment parameter h′ is: h′=(P′ x ||P′ y ), P′=d A Q B .
[0019] Furthermore, in the above-mentioned verifiable oblivious transmission method based on elliptic curve, k sender authentication parameters z i The calculation formula is: i =H(m i ||P′ x ||P′ y );
[0020] The calculation formula of the decryption share V is: V = vG;
[0021] k messages identify the ciphertext E i The calculation formula is:
[0022] Where i = 1, 2, ..., k, Represents a binary bitwise exclusive OR operation.
[0023] Furthermore, in the above-mentioned verifiable oblivious transmission method based on elliptic curve, the αth message identifier m obtained by decryption at the receiving end is α The calculation formula is:
[0024] Furthermore, in the above-mentioned verifiable oblivious transmission method based on elliptic curve, the αth sender identity judgment parameter z′ α The calculation formula is: α =H(m α ||P x ||P y ).
[0025] It can be seen from the above technical solution that, compared with the prior art, the present invention discloses a verifiable oblivious transmission method based on elliptic curves. After receiving the information sent by the receiving end, the sending end will first verify the authenticity of the receiving end's identity to avoid wasting computing resources due to the inauthentic identity of the receiving end; at the same time, the receiving end can verify the authenticity of the source of the message identifier to resist the impersonation attack of the sending end. BRIEF DESCRIPTION OF THE DRAWINGS
[0026] In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings required for use in the embodiments or the description of the prior art will be briefly introduced below. Obviously, the drawings described below are only embodiments of the present invention. For ordinary technicians in this field, other drawings can be obtained based on the provided drawings without paying creative work.
[0027] Figure 1 The accompanying drawing is a flow chart of a verifiable oblivious transmission method based on elliptic curve provided by the present invention. DETAILED DESCRIPTION
[0028] The following will be combined with the drawings in the embodiments of the present invention to clearly and completely describe the technical solutions in the embodiments of the present invention. Obviously, the described embodiments are only part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of the present invention.
[0029] like Figure 1 As shown, the embodiment of the present invention discloses a verifiable oblivious transmission method based on an elliptic curve, wherein a sending end and a receiving end pre-share an elliptic curve on a finite field, and the method includes the following steps:
[0030] The receiving end calculates the encryption share T of the αth message identifier to be obtained α and the receiving end authentication parameter h, and the encryption share T α and the receiving end identity authentication parameter h are sent to the sending end; wherein α∈[1,k] represents the message identifier sequence number to be selected, and k represents the number of message identifiers to be sent by the sending end;
[0031] The sender calculates the receiver's identity judgment parameter h′ and compares it with the receiver's identity verification parameter h; if the two are equal, it means that the receiver's identity is authentic, and calculates k sender identity verification parameters {z1, z2, …, z k}、Decryption share V and k message identification ciphertexts E i , sent to the receiving end; otherwise, exit the protocol execution;
[0032] The receiving end identifies the ciphertext E from k messages i Find the αth message identification ciphertext E in α , and perform decryption operation to obtain the αth message identifier m α ;
[0033] The receiving end calculates the identity judgment parameter z′ of the αth sending end α , and the received k sender authentication parameters {z1,z2,…,z k}; if they are equal, it means the message source is authentic, and the decrypted message identifier m is received. α Otherwise, refuse to receive the decrypted message identifier m α .
[0034] The above steps are described in detail below with reference to a specific embodiment.
[0035] The receiver and the sender share a finite field F in advance p The elliptic curve T on the elliptic curve is T = (p, a, b, G, n, h), where p is a large prime number of 256 bits, a and b are the coefficients of the elliptic curve, G is the base point of the elliptic curve, n is the order of the elliptic curve, and h is the cofactor. The receiving end has a pair of public and private keys on the elliptic curve (d B ,Q B ), where d B Indicates the private key of the receiving end based on the elliptic curve, Q B =d B G represents the public key of the receiving end based on the elliptic curve. The sending end has a pair of public and private keys on the elliptic curve (d A ,Q A ) and k message identifiers (m1,m2,…m k ), where d AIndicates the private key of the sender based on the elliptic curve, Q A =d A G represents the sender's public key based on the elliptic curve, m i Represents a 256-bit binary string of 0s and 1s based on an elliptic curve. The specific steps are as follows:
[0036] S1. The receiving end calculates the encryption share T α and the receiving end authentication parameter h; and the encryption share T α The receiving end authentication parameter h is sent to the sending end. The specific calculation process is:
[0037] S11, randomly select an integer s∈[1,n-1], and calculate the receiving end encryption verification parameter P=(P x ,P y ) = d B Q A , where P x The horizontal axis represents the encryption verification parameter P at the receiving end, P y The ordinate represents the encryption verification parameter P of the receiving end;
[0038] S12. Calculate the encryption share T for the α∈[1,k]th message identifier to be obtained α =αP+sG, where k represents the number of message identifiers at the sender;
[0039] S13, calculate the receiving end identity authentication parameter h = H (P x ||P y ), where H represents the hash mapped to a number, with a length of 256 bits, such as the SM3 hash algorithm, and || represents a binary 0 and 1 string linking operation.
[0040] S2: The sender receives the encrypted share T sent by the receiver. α After receiving the authentication parameter h, perform the following operations:
[0041] S21, calculate the encryption verification parameter P′=d A Q B , and calculate h′=(P′ x ||P′ y ), where h′ represents the receiving end identity determination parameter calculated by the sending end;
[0042] S22, judging whether the received receiving end identity authentication parameter h is equal to the receiving end identity judgment parameter h′ calculated by itself, if they are equal, it means that the identity of the receiving end communicating with the sending end is authentic, and continue to execute S23, otherwise, exit the execution process of the protocol;
[0043] S23, calculate k sender identity authentication parameters zi =H(m i ||P′ x ||P′ y ), i=1,2,…,k;
[0044] S24. Randomly select an integer v∈[1,n-1], calculate the decryption share V=vG and k message identification ciphertexts Where i = 1, 2, ..., k, Represents a binary bitwise XOR operation;
[0045] S25, the sender will decrypt the share V, k sender authentication parameters {z1,z2,…,z k} and k message-identified ciphertexts {E1,E2,…,E k}Sent to the receiving end.
[0046] S3. After receiving the information sent by the sender, the receiver performs the following operations:
[0047] S31, find the αth message identification ciphertext E α , perform decryption operation to obtain the αth message identifier
[0048] S32, calculate the αth sender identity judgment parameter z′ α =H(m α ||P x ||P y ), and compared with the received sender authentication parameter set {z1,z2,…,z k} to determine whether the two parameters are equal. If they are equal, it means that the decrypted message identifier comes from the real sender. At this time, the decrypted message identifier is received. Otherwise, the decrypted message identifier is rejected.
[0049] In this specification, each embodiment is described in a progressive manner, and each embodiment focuses on the differences from other embodiments. The same or similar parts between the embodiments can be referred to each other. For the device disclosed in the embodiment, since it corresponds to the method disclosed in the embodiment, the description is relatively simple, and the relevant parts can be referred to the method part.
[0050] The above description of the disclosed embodiments enables one skilled in the art to implement or use the present invention. Various modifications to these embodiments will be apparent to one skilled in the art, and the general principles defined herein may be implemented in other embodiments without departing from the spirit or scope of the present invention. Therefore, the present invention will not be limited to the embodiments shown herein, but rather to the widest scope consistent with the principles and novel features disclosed herein.
Claims
1. A verifiable oblivious transmission method based on elliptic curves, wherein a sender and a receiver pre-share an elliptic curve over a finite field, characterized in that: The following steps are involved: The receiving end calculates the encryption share T of the αth message identifier to be obtained α and the receiving end authentication parameter h, and the encryption share T α and the receiving end authentication parameter h are sent to the sender; where α∈[1,k] represents the message identifier sequence number to be selected, and k represents the number of message identifiers owned by the sender; the receiver has a pair of public and private keys on the elliptic curve (d B ,Q B ), where d B Indicates the private key of the receiving end based on the elliptic curve, Q B =d B G represents the public key of the receiving end based on the elliptic curve; the sending end has a pair of public and private keys on the elliptic curve (d A ,Q A ) and k message identifiers (m1,m2,…m k ), where d A Indicates the private key of the sender based on the elliptic curve, Q A =d A G represents the sender's public key based on the elliptic curve, m i Represents a 256-bit binary string of 0s and 1s based on the elliptic curve, and G represents the base point of the elliptic curve; The receiving end calculates the encryption share T of the αth message identifier to be obtained α and the receiving end authentication parameter h, including: Randomly select an integer s∈[1,n-1] and calculate the receiving end encryption verification parameter P, P=(P x ,P y ) = d B Q A , where P x The horizontal axis represents the encryption verification parameter P at the receiving end, P y represents the ordinate of the receiving end encryption verification parameter P, and n represents the order of the elliptic curve; Calculate the encryption share T for the αth message identifier to be obtained α , where T α =αP+sG; Calculate the receiving end identity authentication parameter h, h = H (P x ||P y ); where H represents the hash mapped to a number, with a length of 256 bits, and || represents a binary 0 and 1 string concatenation operation; The sender calculates the receiver's identity judgment parameter h′ and compares it with the receiver's identity verification parameter h; if the two are equal, it means that the receiver's identity is authentic, and calculates k sender identity verification parameters {z1, z2, …, z k }, decryption share V and k message identification ciphertexts {E1,E2,…,E k }, send to the receiving end; otherwise, exit the protocol execution; The receiving end identifies the ciphertexts {E1, E2, …, E k } to find the αth message identification ciphertext E α , and perform decryption operation to obtain the αth message identifier m α ; The receiving end calculates the identity judgment parameter z′ of the αth sending end α , and the received k sender authentication parameters {z1,z2,…,z k }; if they are equal, it means the message source is authentic, and the decrypted message identifier m is received. α Otherwise, refuse to receive the decrypted message identifier m α ; k sender authentication parameters z i The calculation formula is: i =H(m i ||P x ′||P y ′); The calculation formula of the decryption share V is: V = vG, where v is a randomly selected integer v∈[1,n-1]; k messages identify the ciphertext E i The calculation formula is: E i =m i ⊕H((v(T α -iP′)) x ||(v(T α -iP′)) y ); Where P′=d A Q B , i=1,2,…,k, ⊕ represents the binary bit-by-bit XOR operation.
2. The method of verifiable oblivious transmission based on elliptic curve according to claim 1, characterized in that: The calculation formula of the receiving end identity judgment parameter h' is: h'=(P x ′||P y ′).
3. The method of verifiable oblivious transmission based on elliptic curve according to claim 1, characterized in that: The αth message identifier m obtained by decryption at the receiving end α The calculation formula is: α =E α ⊕H(sV).
4. The method of verifiable oblivious transmission based on elliptic curve according to claim 1, characterized in that: The αth sender identity judgment parameter z′ α The calculation formula is: α =H(m α ||P x ||P y ).
