Verifiable user privacy information retrieval method and system based on homomorphic encryption

By adopting a verifiable user privacy information retrieval method based on homomorphic encryption in the power service system, and using elliptic curve and Paillier encryption algorithms, the problem of security and efficiency balance in hidden query technology is solved, and efficient and efficient access to user data is achieved. Secure query, suitable for different data types and query needs of power service systems.

CN118586031APending Publication Date: 2024-09-03GUANGXI POWER GRID CORP
View PDF 0 Cites 1 Cited by

Patent Information

Application Number
CN202410674295.4
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-05-28
Publication Date
2024-09-03

AI Technical Summary

Technical Problem

Existing hidden query technology has security issues while protecting user privacy, difficulty in achieving a balance between privacy and efficiency, and insufficient adaptability, making it unable to be applied to different data types and query needs.

Method used

Adopt a verifiable user privacy information retrieval method based on homomorphic encryption, use elliptic curve encryption algorithm and Paillier encryption algorithm to generate public and private key pairs, ensure the authenticity and integrity of data through digital signatures, and perform calculations without decrypting the data Analysis to achieve secure query of user data.

Benefits of technology

It improves query efficiency while ensuring user privacy protection, is suitable for different data types and query needs in power service systems, and enhances data security and system reliability.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118586031A
    Figure CN118586031A
Patent Text Reader

Abstract

The invention belongs to the technical field of cryptography and data privacy protection, discloses a verifiable user privacy information retrieval method and system based on homomorphic encryption, and allows a user to obtain required data under the condition that the query intention of the user is not exposed. In the operation of a power grid, due to the fact that a user has the requirement for hidden query of historical power consumption data of the user, the invention provides a verifiable user privacy information retrieval method and system based on the homomorphic encryption technology. And the homomorphic encryption technology is used to guarantee the accuracy and confidentiality of user information retrieval content. The power service center is allowed to return historical power consumption data analysis required to be queried by the user after confirming the authenticity of the user request, and meanwhile, the specific query parameters of the user are invisible to the power service center, so that the data query privacy of the user is guaranteed.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention belongs to the technical field of cryptography and data privacy protection, and in particular relates to a verifiable user privacy information retrieval method and system based on homomorphic encryption. Background Art

[0002] Private Information Retrieval (PIR), also known as hidden query, is an important technical strategy that aims to protect the privacy of personal information query in public network space. It was originally proposed by Chor B et al. This technology ensures that the user's request content remains confidential during the information retrieval operation, while ensuring the accuracy of the returned results, allowing users to obtain the required data without exposing their query intentions. When a user initiates a query request to the database, the PIR technology can ensure that the user's query details are not obtained by the server. This technology effectively maintains the confidentiality of the user's query. In the present invention, the hidden query technology is applied to the operation of the power grid to better protect the privacy of users. First, it can protect the privacy of users' electricity consumption data queries and avoid the leakage of personal electricity consumption habits or behavior patterns. Secondly, this technology helps to strengthen data security and reduce the risk of data tampering or illegal access. Finally, PIR technology can enhance the intelligent response capability of the power grid. Users can safely query electricity consumption information without affecting the overall security of the system, promote trust between power supply companies and users, and promote the sustainable development of smart grids.

[0003] With the increasing awareness of privacy protection and the continuous advancement of technology, hidden query technology is also developing continuously. Mughees MH et al. proposed a single-server PIR scheme that combines lattice cryptography with homomorphic encryption technology, which has significant improvements in response size and computational cost. Xu W et al. proposed a new communication-efficient homomorphic encryption PIR protocol, which supports infinite calculations with a single variable in a single ciphertext, and does not even require access to the key, which can effectively protect the privacy of users and the data in the database. Lin WK proposed a PIR protocol based on full homomorphic encryption, which further improved security. Li Hui et al. proposed a secure and efficient PIR retrieval method based on private information retrieval and oblivious polynomial calculation, using Paillier homomorphic encryption and oblivious polynomial calculation to achieve the preference privacy of the query party and the database security of the power platform. Ge Yifei et al. proposed a PIR scheme with erasure and error correction properties. On the basis of the PIR scheme without erasure and error correction properties, an additional encoding method was introduced to appropriately redundancy the user query, and a PIR scheme suitable for the erasure and error correction model was obtained, which improved the anti-interference ability of the PIR scheme. Li R et al. used integer encoding instead of bit-by-bit encoding for the fully homomorphic encryption PIR scheme, further improving the efficiency of the PIR scheme. Shandong Inspur Science Research Institute Co., Ltd. proposed an efficient hidden query method and system, which reduces the query frequency and reuses query parameters to improve query efficiency. Users can query multiple rows and columns at the same time. In summary, the main problems and defects of existing hidden query technologies are:

[0004] (1) Security issues: Although hidden query technology is designed to protect the user's query privacy, security vulnerabilities may still exist if it is not implemented properly.

[0005] (2) Balance between privacy and efficiency: While improving the level of privacy protection, hidden query technology often needs to sacrifice a certain degree of query efficiency. How to find a suitable balance between privacy protection and query efficiency is a challenge faced by hidden query technology.

[0006] (3) Adaptability: Hidden query technology needs to adapt to different data types and query requirements. However, some existing technical solutions are only applicable to specific types of data or queries, which limits their scope of application.

[0007] In the operation of the power grid, since users have the need to secretly query their historical electricity consumption data, in response to the problems existing in the prior art, the present invention proposes a verifiable user privacy information retrieval method and system based on homomorphic encryption. This technology allows legal data access and processing, and uses homomorphic encryption and digital signature technology to ensure the privacy and authenticity of the query. After confirming the authenticity of the user's request, the power service center is allowed to return the historical electricity consumption data analysis that the user needs to query, while the user's specific query parameters are invisible to the power service center. Specifically, in order to ensure that the server runs functions or calculations without knowing the content of the original data, the present invention uses a PIR scheme based on homomorphic encryption. The privacy information retrieval (PIR) scheme based on homomorphic encryption technology has undergone a lot of research and development, with the aim of improving efficiency, security and feasibility of practical applications. Summary of the invention

[0008] In response to the problems existing in the prior art, the present invention provides a verifiable user privacy information retrieval method and system based on homomorphic encryption.

[0009] The present invention is generally implemented by the following steps, a method for retrieving verifiable user privacy information based on homomorphic encryption, including:

[0010] Step 1: During the system initialization phase, the power service center uses the elliptic curve encryption algorithm to generate a public-private key pair and makes the public key public to all users in the system;

[0011] When a new user joins the electricity system, the administrator uses the elliptic curve digital signature algorithm to generate a public-private key pair for each user that is bound to their identity. At the same time, the administrator uses the Paillier encryption algorithm to generate a homomorphic key pair. The user keeps the private key and the public key is public.

[0012] Step 2: During the data upload phase, the user encrypts the power data for the current time period to be uploaded, signs it, and sends it to the power service center;

[0013] Step 3: In the data verification stage, the power service center verifies the signature, decrypts it after verification to obtain the power data of the user in this time period, stores the data and performs calculation and analysis;

[0014] Step 4: In the query phase, the user generates a t-dimensional query vector according to the index to be queried, where the value of the index position to be queried is 1 and the values ​​of the other positions are 0; the query vector is encrypted using the homomorphic public key and then signed, and the ciphertext vector and the signature are sent to the power service center together;

[0015] Step 5: In the query verification stage, the power service center first verifies the signature. After the verification is passed, the ciphertext vector is multiplied with the user's data plaintext vector in the local database, and the calculation result is returned to the user;

[0016] Step 6: In the decryption phase, the user uses his own homomorphic private key to decrypt the received ciphertext, and obtains the data he wants to query.

[0017] Further, the process of step 1 is specifically as follows:

[0018] The power service center selects an elliptic curve and a base point G1 with an order of q1; randomly selects an integer d1 as a private key and saves it, and calculates Q1=d1G1 as the public key to be published; the administrator selects an elliptic curve and a base point G2 with an order of q2; when a new user joins the power system, the administrator randomly selects an integer d2 as the private key and sends it to the user through a secure channel, and calculates Q2=d2G2 as the public key to be published; in addition, the administrator randomly selects two large prime numbers p and q that satisfy gcd(pq,(p-1)(q-1))=1; calculates n=pq and λ=lcm(p-1,q-1); randomly selects an integer Defining functions Calculate u = (L (g λ mod n 2 )) -1 mod n; generate a private key (λ,u) and send it to the user through a secure channel, and publish (n,g) as the public key.

[0019] Further, the process of step 2 is specifically as follows:

[0020] Each user first encrypts the power data m to be uploaded, selects a random number k1 and calculates the point C1=k1G1 on the elliptic curve, and maps m to a point P on the elliptic curve. m , calculate C2 = P m +k1Q1, output ciphertext (C1, C2); then sign the ciphertext, select a random number k2, calculate the point on the elliptic curve (x, y) = k2G2, and r = xmod q2; calculate e = H(C1, C2), Output signature (r, s); the user sends the ciphertext (C1, C2) and signature (r, s) to the power service center.

[0021] Further, the process of step 3 is specifically as follows:

[0022] The power service center receives the ciphertext (C1, C2) and signature (r, s), verifies the signature first, and calculates u1 = H (C1, C2) * s -1 mod q2 and u2 = r*s -1 mod q2, calculate the point (x', y') = u1*G2+u2*Q2, and verify whether x'(mod q2) = r. If they are equal, proceed to the next step of decryption; otherwise, the power service center does not store and analyze the data; then the power service center decrypts it with its own private key d1 and calculates P m =C2-d1C1, and then point P m Mapped to the plaintext message m, the user's electricity consumption data is stored and calculated and analyzed.

[0023] Further, the process of step 4 is specifically as follows:

[0024] Each user generates a t-dimensional query vector (0,0,…,1,…,0,0) according to the index to be queried, where the index position value of the query is set to 1 and the remaining values ​​are 0; then the query vector is encrypted using the homomorphic encryption public key (n,g), and t random numbers r1,r2,…,r t , calculate the ciphertext Then the ciphertext vector (c1,c2,…,c t ) to sign, select a random number k3, calculate the point (x1, y1) = k3G2 on the elliptic curve, and r' = x1mod q2; calculate e1 = H(c1, c2, ..., c t ), Output signature (r', s'); the user converts the ciphertext vector (c1, c2, ..., c t ) and signature (r',s') are sent to the power service center.

[0025] Further, the process of step 5 is specifically as follows:

[0026] In the query verification phase, the power service center receives the ciphertext vector (c1, c2, …, c t ) and signature (r', s'), first verify the signature, calculate u'1 = H (c1, c2, ..., c t )*s' -1 mod q2 and u'2 = r'*s' -1 mod q2, calculate the point (x”, y”) = u'1*G2+u'2*Q2, verify whether x”(modq2) = r', if they are equal, proceed to the next step; otherwise, the power service center rejects the user's query; then the power service center converts the ciphertext vector (c1, c2, …, c t) and the plaintext vector of the user's data in the local database (DB1, DB2, ..., DB t ) to perform calculations Return the ciphertext c to the user;

[0027] The process of step 6 is specifically as follows:

[0028] The user uses his own homomorphic private key (λ,u) to decrypt the received ciphertext c and calculate L(c λ mod n 2 )·u modn=DB i , that is, you get the data you want to query.

[0029] A verifiable user privacy information retrieval system based on homomorphic encryption includes:

[0030] Initialization module, used for generating a public-private key pair by the power service center using elliptic curve encryption algorithm during the system initialization phase, and making the public key public to all users in the system;

[0031] When a new user joins the electricity system, the administrator uses the elliptic curve digital signature algorithm to generate a public-private key pair for each user that is bound to their identity. At the same time, the administrator uses the Paillier encryption algorithm to generate a homomorphic key pair. The user keeps the private key and the public key is public.

[0032] The encryption module is used to encrypt the power data of the current time period that the user wants to upload during the data upload stage, and then sign and send it to the power service center;

[0033] The verification module is used for the power service center to verify the signature during the data verification phase, decrypt the signature after verification to obtain the power data of the user in this time period, store the data and perform calculation and analysis;

[0034] The query module is used to generate a dimensional query vector according to the index to be queried by the user in the query stage, in which the value of the index position to be queried is 1, and the values ​​of the other positions are 0; encrypt the query vector using the homomorphic public key and then sign it, and send the ciphertext vector and the signature together to the power service center;

[0035] The return module is used to verify the signature in the query verification stage. After the verification is passed, the ciphertext vector is multiplied with the user's data plaintext vector in the local database, and the result is returned to the user.

[0036] The decryption module is used to decrypt the received ciphertext with the user's own homomorphic private key during the decryption phase, thus obtaining the data he wants to query.

[0037] A computer device comprises a memory and a processor, wherein the memory stores a computer program, and when the computer program is executed by the processor, the processor executes the steps of the method for retrieving verifiable user privacy information based on homomorphic encryption.

[0038] A computer-readable storage medium stores a computer program. When the computer program is executed by a processor, the processor executes the steps of the method for retrieving verifiable user privacy information based on homomorphic encryption.

[0039] An information data processing terminal is used to implement the verifiable user privacy information retrieval system based on homomorphic encryption.

[0040] In view of the above technical solutions and the technical problems solved, the advantages and positive effects of the technical solutions to be protected by the present invention are specifically described as follows:

[0041] First, the present invention proposes a verifiable user privacy information retrieval method and system based on homomorphic encryption technology. This technology ensures the accuracy and confidentiality of the user information retrieval content while ensuring the authenticity of the user's identity. It allows the power service center to return the historical electricity consumption data analysis that the user needs to query after confirming the authenticity of the user's request. At the same time, the user's specific query parameters are invisible to the power service center.

[0042] Compared with the problems and defects of previous hidden query technologies, the verifiable user privacy information retrieval method and system based on homomorphic encryption technology proposed in the present invention not only improves the level of privacy protection but also takes into account the query efficiency, and effectively balances privacy protection and query efficiency, which has practical application significance.

[0043] Second, the verifiable user privacy information retrieval method and system based on homomorphic encryption technology proposed in the present invention are adaptable to different data types and query requirements of the power grid system, and have a relatively wide range of applications. In addition, the scheme proposed in the present invention uses cryptographic primitives based on mathematically difficult problems, which protects the privacy of user queries while ensuring the security of scheme design and implementation.

[0044] Third, the present invention proposes a verifiable user privacy information retrieval method based on homomorphic encryption, which is particularly suitable for power service systems. It aims to protect user privacy while achieving secure storage and efficient retrieval of power data.

[0045] 1. Technical problems solved:

[0046] 1) User privacy protection: In the power service system, the user's power data contains important privacy information. Traditional data storage and retrieval methods cannot effectively protect user privacy and there is a risk of data leakage. The present invention uses elliptic curve encryption algorithm and homomorphic encryption technology to ensure the security of user data during transmission and storage, and effectively protect user privacy.

[0047] 2) Data verification and integrity: During the data transmission process, the data is tampered or forged. The present invention introduces digital signature technology to ensure the integrity and authenticity of the data and prevent the data from being maliciously tampered or forged.

[0048] 3) Efficient retrieval: In the power service system, users need to quickly retrieve the required power data. Traditional retrieval methods are inefficient when processing large-scale data. The present invention uses the characteristics of homomorphic encryption to achieve calculations without decrypting data, greatly improving retrieval efficiency.

[0049] 2. Significant technological progress achieved:

[0050] 1) Improved security: By adopting elliptic curve encryption algorithm and homomorphic encryption technology, the present invention realizes end-to-end encryption of user data, ensuring the security of data during transmission and storage. At the same time, the application of digital signature technology further enhances the integrity and authenticity of data.

[0051] 2) Enhanced privacy protection: The present invention binds the user's private key to the identity, ensuring that only the user can decrypt his or her own data. At the same time, the power service center can only obtain the encrypted data and cannot directly access the user's original data, thereby achieving strong protection of user privacy.

[0052] 3. Improved retrieval efficiency: The present invention uses the characteristics of homomorphic encryption to achieve calculations without decrypting data. This allows the power service center to perform calculations and analysis directly on encrypted data, greatly improving retrieval efficiency. At the same time, since there is no need to decrypt data, the calculation burden of the power service center is also reduced.

[0053] 4) Verifiability: By introducing digital signature technology, the present invention realizes the verification of data integrity and authenticity, which ensures that the data received by the power service center is complete and has not been tampered with, thus improving the reliability and security of the system.

[0054] In summary, the present invention effectively solves the problems of user privacy protection, data verification and integrity, and efficient retrieval in the power service system by adopting elliptic curve encryption algorithm, homomorphic encryption technology and digital signature technology, and has achieved significant technological progress. BRIEF DESCRIPTION OF THE DRAWINGS

[0055] Figure 1 It is a flow chart of a method for retrieval of verifiable user privacy information based on homomorphic encryption provided in an embodiment of the present invention.

[0056] Figure 2 It is a structural block diagram of a verifiable user privacy information retrieval system based on homomorphic encryption provided in an embodiment of the present invention.

[0057] Figure 3 It is a schematic diagram of the process of users uploading power data provided by an embodiment of the present invention.

[0058] Figure 4 It is a schematic diagram of a user data anonymity query process provided by an embodiment of the present invention. DETAILED DESCRIPTION

[0059] In order to make the purpose, technical solution and advantages of the present invention more clearly understood, the present invention is further described in detail below in conjunction with the embodiments. It should be understood that the specific embodiments described herein are only used to explain the present invention and are not used to limit the present invention.

[0060] Example 1: Personal electricity consumption data query

[0061] Individual users need to regularly check their electricity usage data to monitor electricity consumption, ensure the accuracy of bills, and analyze electricity usage patterns to find ways to save energy.

[0062] 1) Data upload: Users automatically collect electricity consumption data through smart meters, and use elliptic curve encryption technology to encrypt and sign the data to ensure data security and integrity.

[0063] 2) Data storage: After receiving the encrypted power data, the power service center verifies the validity of the data signature. After successful verification, it decrypts and stores the power consumption data.

[0064] 3) Data query: When users need to check the electricity consumption in a specific period, they generate a query vector and encrypt and sign it using homomorphic encryption, and send the query request to the power service center.

[0065] 4) Data extraction: The power service center verifies the signature of the query request. If the verification is successful, the query is processed using homomorphic encryption technology and only the data requested by the user is returned.

[0066] 5) Data decryption: The user uses his own homomorphic private key to decrypt the returned ciphertext data and obtain his own electricity consumption information.

[0067] Users can safely query their electricity consumption data without worrying about privacy leakage. At the same time, the power service center can ensure the security and accuracy of data, improve user satisfaction and service quality.

[0068] Example 2: Power data anomaly detection

[0069] The power service center needs to regularly analyze users' electricity usage data in order to promptly detect abnormal electricity usage behaviors, such as electricity theft or equipment failure, so as to ensure the stable operation of the power grid.

[0070] 1) Data collection: The power service center automatically collects encrypted user electricity usage data from the connected smart meter system.

[0071] 2) Data Analysis: The service center decrypts and stores the collected data and analyzes the data to detect abnormal patterns.

[0072] 3) Abnormal query: When a potential abnormality is detected, the service center uses homomorphic encryption technology to conduct detailed queries on the data of a specific time period or user without leaking other user data.

[0073] 4) Result feedback: The service center will encrypt and return the query results to the corresponding user or internal review department for further investigation and processing.

[0074] 5) Handling measures: Based on the query results, take appropriate measures to handle abnormal situations, such as contacting the user to verify the situation or dispatching a technician to inspect the equipment.

[0075] This method can effectively identify and handle abnormal electricity consumption without leaking detailed user data, enhancing the security and reliability of the power grid while maintaining user privacy and data security.

[0076] like Figure 1 As shown, a method for retrieving verifiable user privacy information based on homomorphic encryption provided by an embodiment of the present invention includes the following steps:

[0077] S101. During the system initialization phase, the power service center generates a public-private key pair using an elliptic curve encryption algorithm and makes the public key public to all users in the system;

[0078] When a new user joins the electricity system, the administrator uses the elliptic curve digital signature algorithm to generate a public-private key pair for each user that is bound to their identity. At the same time, the administrator uses the Paillier encryption algorithm to generate a homomorphic key pair. The user keeps the private key and the public key is public.

[0079] S102, in the data uploading stage, the user encrypts the power data of the current time period to be uploaded, signs it, and sends it to the power service center;

[0080] S103, in the data verification stage, the power service center verifies the signature, decrypts it after verification to obtain the power data of the user in this time period, stores the data and performs calculation and analysis;

[0081] S104. In the query phase, the user generates a t-dimensional query vector according to the index to be queried, where the value of the index position to be queried is 1, and the values ​​of the other positions are 0; the query vector is encrypted using the homomorphic public key and then signed, and the ciphertext vector and the signature are sent to the power service center together;

[0082] S105. In the query verification stage, the power service center first verifies the signature. After the verification is passed, the ciphertext vector is multiplied with the user's data plaintext vector in the local database, and the calculation result is returned to the user;

[0083] S106. In the decryption stage, the user uses his own homomorphic private key to decrypt the received ciphertext, and obtains the data he wants to query.

[0084] The process of S101 provided in the embodiment of the present invention is specifically as follows:

[0085] The power service center selects an elliptic curve and a base point G1 with an order of q1; randomly selects an integer d1 as a private key and saves it, and calculates Q1=d1G1 as the public key to be published; the administrator selects an elliptic curve and a base point G2 with an order of q2; when a new user joins the power system, the administrator randomly selects an integer d2 as the private key and sends it to the user through a secure channel, and calculates Q2=d2G2 as the public key to be published; in addition, the administrator randomly selects two large prime numbers p and q that satisfy gcd(pq,(p-1)(q-1))=1; calculates n=pq and λ=lcm(p-1,q-1); randomly selects an integer Defining functions Calculate u = (L (g λ mod n 2 )) -1 mod n; generate a private key (λ,u) and send it to the user through a secure channel, and publish (n,g) as the public key.

[0086] The process of S102 provided in the embodiment of the present invention is specifically as follows:

[0087] Each user first encrypts the power data m to be uploaded, selects a random number k1 and calculates the point C1=k1G1 on the elliptic curve, and maps m to a point P on the elliptic curve. m , calculate C2 = P m +k1Q1, output ciphertext (C1, C2); then sign the ciphertext, select a random number k2, calculate the point on the elliptic curve (x, y) = k2G2, and r = xmod q2; calculate e = H(C1, C2), Output signature (r, s); the user sends the ciphertext (C1, C2) and signature (r, s) to the power service center.

[0088] The process of S103 provided in the embodiment of the present invention is specifically as follows:

[0089] The power service center receives the ciphertext (C1, C2) and signature (r, s), verifies the signature first, and calculates u1 = H (C1, C2) * s -1 mod q2 and u2 = r*s -1 mod q2, calculate the point (x', y') = u1*G2+u2*Q2, and verify whether x'(mod q2) = r. If they are equal, proceed to the next step of decryption; otherwise, the power service center does not store and analyze the data; then the power service center decrypts it with its own private key d1 and calculates P m =C2-d1C1, and then point P m Mapped to the plaintext message m, the user's electricity consumption data is stored and calculated and analyzed.

[0090] The process of S104 provided in the embodiment of the present invention is specifically as follows:

[0091] Each user generates a t-dimensional query vector (0,0,…,1,…,0,0) according to the index to be queried, where the index position value of the query is set to 1 and the remaining values ​​are 0; then the query vector is encrypted using the homomorphic encryption public key (n,g), and t random numbers r1,r2,…,r t , calculate the ciphertext Then the ciphertext vector (c1,c2,…,c t ) to sign, select a random number k3, calculate the point (x1, y1) = k3G2 on the elliptic curve, and r' = x1mod q2; calculate e1 = H(c1, c2, ..., c t ), Output signature (r', s'); the user converts the ciphertext vector (c1, c2, ..., c t ) and signature (r',s') are sent to the power service center.

[0092] The process of S105 provided in the embodiment of the present invention is specifically as follows:

[0093] In the query verification phase, the power service center receives the ciphertext vector (c1, c2, …, c t ) and signature (r', s'), first verify the signature, calculate u'1 = H (c1, c2, ..., c t )*s' -1 mod q2 and u'2 = r'*s' -1mod q2, calculate the point (x”, y”) = u'1*G2+u'2*Q2, verify whether x”(modq2) = r', if they are equal, proceed to the next step; otherwise, the power service center rejects the user's query; then the power service center converts the ciphertext vector (c1, c2, …, c t ) and the plaintext vector of the user's data in the local database (DB1, DB2, ..., DB t ) to perform calculations Return the ciphertext c to the user;

[0094] The process of S106 is specifically as follows:

[0095] The user uses his own homomorphic private key (λ,u) to decrypt the received ciphertext c and calculate L(c λ mod n 2 )·u modn=DB i , that is, you get the data you want to query.

[0096] like Figure 2 As shown, a verifiable user privacy information retrieval system based on homomorphic encryption provided by an embodiment of the present invention includes:

[0097] Initialization module, used for generating a public-private key pair by the power service center using elliptic curve encryption algorithm during the system initialization phase, and making the public key public to all users in the system;

[0098] When a new user joins the electricity system, the administrator uses the elliptic curve digital signature algorithm to generate a public-private key pair for each user that is bound to their identity. At the same time, the administrator uses the Paillier encryption algorithm to generate a homomorphic key pair. The user keeps the private key and the public key is public.

[0099] The encryption module is used to encrypt the power data of the current time period that the user wants to upload during the data upload stage, and then sign and send it to the power service center;

[0100] The verification module is used for the power service center to verify the signature during the data verification phase, decrypt the signature after verification to obtain the power data of the user in this time period, store the data and perform calculation and analysis;

[0101] The query module is used to generate a dimensional query vector according to the index to be queried by the user in the query stage, in which the value of the index position to be queried is 1, and the values ​​of the other positions are 0; encrypt the query vector using the homomorphic public key and then sign it, and send the ciphertext vector and the signature together to the power service center;

[0102] The return module is used to verify the signature in the query verification stage. After the verification is passed, the ciphertext vector is multiplied with the user's data plaintext vector in the local database, and the result is returned to the user.

[0103] The decryption module is used to decrypt the received ciphertext with the user's own homomorphic private key during the decryption phase, thus obtaining the data he wants to query.

[0104] A computer device provided by an embodiment of the present invention includes a memory and a processor, wherein the memory stores a computer program, and when the computer program is executed by the processor, the processor executes the steps of the method for verifiable user privacy information retrieval based on homomorphic encryption.

[0105] A computer-readable storage medium provided by an embodiment of the present invention stores a computer program. When the computer program is executed by a processor, the processor executes the steps of the method for retrieving verifiable user privacy information based on homomorphic encryption.

[0106] An embodiment of the present invention provides an information data processing terminal, which is used to implement the verifiable user privacy information retrieval system based on homomorphic encryption.

[0107] Figure 3 , 4 A schematic diagram of a process flow for users to upload power data provided by an embodiment of the present invention, wherein the steps include:

[0108] System entities: multiple users, a trusted user administrator, and a power service center.

[0109] Step 1: During the system initialization phase, the power service center selects an elliptic curve and a base point G1 with an order of q1; randomly selects an integer d1 as a private key and saves it, and calculates Q1=d1G1 as a public key.

[0110] The administrator selects an elliptic curve and a base point G2 with an order of q2. When a new user joins the electricity system, the administrator randomly selects an integer d2 as a private key and sends it to the user through a secure channel, and calculates Q2=d2G2 as the public key.

[0111] In addition, the administrator randomly selects two large prime numbers p and q that satisfy gcd(pq,(p-1)(q-1))=1; calculates n=pq and λ=lcm(p-1,q-1); randomly selects integers Defining functions Calculate u = (L (g λ mod n 2 ))-1 mod n; generate a private key (λ,u) and send it to the user through a secure channel, and publish (n,g) as the public key.

[0112] Step 2: In the data upload stage, each user first encrypts the power data m to be uploaded, selects a random number k1 and calculates the point C1=k1G1 on the elliptic curve, and maps m to a point P on the elliptic curve. m , calculate C2 = P m +k1Q1, output ciphertext (C1, C2).

[0113] Then sign the ciphertext, select a random number k2, calculate the point (x, y) = k2G2 on the elliptic curve, and r = x mod q2; calculate e = H(C1, C2), Output signature (r, s).

[0114] The user sends the ciphertext (C1, C2) and signature (r, s) to the power service center.

[0115] Step 3: In the data verification phase, the power service center receives the ciphertext (C1, C2) and signature (r, s), verifies the signature first, and calculates u1 = H (C1, C2) * s -1 mod q2 and u2 = r*s -1 mod q2, calculate the point (x', y') = u1*G2+u2*Q2, and verify whether x'(mod q2) = r. If they are equal, proceed to the next step of decryption; otherwise, the power service center will not store and analyze the data.

[0116] The power service center then decrypts it with its own private key d1 and calculates P m =C2-d1C1, and then point P m Mapped to the plaintext message m, the user's electricity consumption data is stored and calculated and analyzed.

[0117] Step 4: In the query phase, each user generates a t-dimensional query vector (0,0,…,1,…,0,0) according to the index to be queried, where the index position value of the query is set to 1 and the remaining values ​​are 0; then the query vector is encrypted using the homomorphic encryption public key (n,g), and t random numbers r1,r2,…,r t , calculate the ciphertext

[0118]

[0119] Then the ciphertext vector (c1,c2,…,c t) to sign, select a random number k3, calculate the point (x1, y1) = k3G2 on the elliptic curve, and r' = x1mod q2; calculate e1 = H(c1, c2, ..., c t ), Output signature (r',s').

[0120] The user sends the ciphertext vector (c1, c2, …, c t ) and signature (r',s') are sent to the power service center.

[0121] Step 5: In the query verification phase, the power service center receives the ciphertext vector (c1, c2, …, c t ) and signature (r', s'), first verify the signature, calculate u'1 = H (c1, c2, ..., c t )*s' -1 modq2 and u'2=r'*s' -1 mod q2, calculate the point (x”, y”) = u'1*G2+u'2*Q2, verify whether x”(modq2) = r', if they are equal, proceed to the next step; otherwise, the power service center rejects the user's query.

[0122] The power service center then converts the ciphertext vector (c1, c2, ..., c t ) and the plaintext vector of the user's data in the local database (DB1, DB2, ..., DB t ) to perform calculations Return the ciphertext c to the user.

[0123] Step 6: In the decryption phase, the user uses his own homomorphic private key (λ,u) to decrypt the received ciphertext c and calculate L(c λ mod n 2 )·u mod n=DB i , that is, you get the data you want to query.

[0124] As described above, the verifiable user privacy information retrieval method and system based on homomorphic encryption proposed in the present invention enable users to initiate queries to the database data of the power service center without disclosing the specific query content, while ensuring the authenticity of the user's identity, thereby protecting the user's data query privacy.

[0125] It should be noted that the embodiments of the present invention can be implemented by hardware, software, or a combination of software and hardware. The hardware part can be implemented using dedicated logic; the software part can be stored in a memory and executed by an appropriate instruction execution system, such as a microprocessor or dedicated design hardware. It can be understood by a person of ordinary skill in the art that the above-mentioned devices and methods can be implemented using computer executable instructions and / or contained in a processor control code, such as a carrier medium such as a disk, CD or DVD-ROM, a programmable memory such as a read-only memory (firmware), or a data carrier such as an optical or electronic signal carrier. Such code is provided on the carrier medium. The device and its modules of the present invention can be implemented by hardware circuits such as very large-scale integrated circuits or gate arrays, semiconductors such as logic chips, transistors, etc., or programmable hardware devices such as field programmable gate arrays, programmable logic devices, etc., can also be implemented by software executed by various types of processors, and can also be implemented by a combination of the above-mentioned hardware circuits and software, such as firmware.

[0126] Consider a smart grid system that contains a large amount of electricity usage information of users. This information is essential for the grid company to carry out activities such as power dispatching, fault prevention, and user behavior analysis. However, user electricity usage information also contains a lot of personal privacy, so it is necessary to ensure that this information is protected during the query processing. The system design is as follows:

[0127] 1. System initialization: The power service center uses the elliptic curve encryption algorithm to generate a public-private key pair and publishes the public key to all users in the system. When a new user joins the power system, the administrator uses the elliptic curve digital signature algorithm to generate a public-private key pair for each user that is bound to their identity. At the same time, the administrator uses the Paillier encryption algorithm to generate a homomorphic key pair. The user keeps the private key and the public key is public.

[0128] 2. Data encryption upload: The user encrypts the power data of the current time period to be uploaded, signs it, and sends it to the power service center.

[0129] 3. Data verification and storage: The power service center first verifies the signature, and then decrypts it to obtain the user's power data for this time period after verification, stores the data and performs calculations and analysis.

[0130] 4. Secure query request: The user generates a dimensional query vector based on the index to be queried, where the value of the index position to be queried is 1 and the values ​​of the remaining positions are 0. The query vector is encrypted using the homomorphic public key and then signed, and the ciphertext vector and signature are sent to the power service center together.

[0131] 5. Query verification: The power service center first verifies the signature. After the verification is passed, the ciphertext vector is multiplied with the user's data plaintext vector in the local database, and the calculation result is returned to the user;

[0132] 6. Result decryption and analysis: The user uses his own homomorphic private key to decrypt the received ciphertext and obtains the data he wants to query.

[0133] Compared with the problems and defects of previous hidden query technologies, the verifiable user privacy information retrieval method and system based on homomorphic encryption technology proposed in the present invention not only improves the level of privacy protection but also takes into account the query efficiency, and effectively balances privacy protection and query efficiency, which has practical application significance. Secondly, the scheme proposed in the present invention uses cryptographic primitives based on mathematically difficult problems, which protects the privacy of user queries while ensuring the security of scheme design and implementation. Finally, the scheme proposed in the present invention is adaptable to different data types and query requirements of power grid systems, and has a relatively wide range of applications.

[0134] The above description is only a specific implementation mode of the present invention, but the protection scope of the present invention is not limited thereto. Any modifications, equivalent substitutions and improvements made by any technician familiar with the technical field within the technical scope disclosed by the present invention and within the spirit and principle of the present invention should be covered by the protection scope of the present invention.

Claims

1. A verifiable user privacy information retrieval method based on homomorphic encryption, characterized in that: The following steps are involved: Step 1: During the system initialization phase, the power service center uses the elliptic curve encryption algorithm to generate a public-private key pair and makes the public key public to all users in the system; When a new user joins the electricity system, the administrator uses the elliptic curve digital signature algorithm to generate a public-private key pair for each user that is bound to their identity. At the same time, the administrator uses the Paillier encryption algorithm to generate a homomorphic key pair. The user keeps the private key and the public key is public. Step 2: During the data upload phase, the user encrypts the power data for the current time period to be uploaded, signs it, and sends it to the power service center; Step 3: In the data verification stage, the power service center verifies the signature, decrypts it after verification to obtain the power data of the user in this time period, stores the data and performs calculation and analysis; Step 4: In the query phase, the user generates a t-dimensional query vector according to the index to be queried, where the value of the index position to be queried is 1 and the values ​​of the other positions are 0; the query vector is encrypted using the homomorphic public key and then signed, and the ciphertext vector and the signature are sent to the power service center together; Step 5: In the query verification stage, the power service center first verifies the signature. After the verification is passed, the ciphertext vector is multiplied with the user's data plaintext vector in the local database, and the calculation result is returned to the user; Step 6: In the decryption phase, the user uses his own homomorphic private key to decrypt the received ciphertext, and obtains the data he wants to query.

2. According to claim 1, the method for retrieving verifiable user privacy information based on homomorphic encryption is characterized in that: The process of step 1 is specifically as follows: The power service center selects an elliptic curve and a base point G1, whose order is q1; randomly selects an integer d1 as a private key and saves it, and calculates Q1=d1G1 as a public key. The administrator selects an elliptic curve and a base point G2, whose order is q2; when a new user joins the electricity system, the administrator randomly selects an integer d2 as the private key and sends it to the user through a secure channel, and calculates Q2=d2G2 as the public key. In addition, the administrator randomly selects two large prime numbers p and q that satisfy gcd(pq,(p-1)(q-1))=1; calculates n=pq and λ=lcm(p-1,q-1); randomly selects an integer Defining functions Calculate u = (L (g λ mod n 2 ))- 1 mod n; generate a private key (λ, u) and send it to the user through a secure channel, and publish (n, g) as the public key.

3. According to claim 1, the method for retrieving verifiable user privacy information based on homomorphic encryption is characterized in that: The process of step 2 is specifically as follows: Each user first encrypts the power data m to be uploaded, selects a random number k1 and calculates the point C1=k1G1 on the elliptic curve, and maps m to a point P on the elliptic curve. m , calculate C2 = P m +k1Q1, output ciphertext (C1, C2); then sign the ciphertext, select a random number k2, calculate the point (x, y) = k2G2 on the elliptic curve, and r = x mod q2; calculate e = H(C1, C2), Output signature (r, s); the user sends the ciphertext (C1, C2) and signature (r, s) to the power service center.

4. According to claim 1, the method for retrieving verifiable user privacy information based on homomorphic encryption is characterized in that: The process of step 3 is specifically as follows: The power service center receives the ciphertext (C1, C2) and signature (r, s), verifies the signature first, and calculates u1 = H (C1, C2) * s - 1 mod q2 and u2 = r*s -1 mod q2, calculate the point (x′, y′) = u1*G2+u2*Q2, verify whether x′(mod q2) = r, if they are equal, proceed to the next step of decryption; otherwise, the power service center does not store and analyze the data; then the power service center decrypts with its own private key d1 and calculates P m =C2-d1C1, and then point P m Mapped to the plaintext message m, the user's electricity consumption data is stored and calculated and analyzed.

5. According to claim 1, the method for retrieving verifiable user privacy information based on homomorphic encryption is characterized in that: The process of step 4 is specifically as follows: Each user generates a t-dimensional query vector (0, 0, ..., 1, ..., 0, 0) according to the index to be queried, where the index position value of the query is set to 1 and the remaining values ​​are 0; then the query vector is encrypted using the homomorphic encryption public key (n, g), and t random numbers r1, r2, ..., r are selected. t , calculate the ciphertext Then the ciphertext vector (c1, c2, ..., c t ) to sign, select a random number k3, calculate the point (x1, y1) = k3G2 on the elliptic curve, and r′ = x1 mod q2; calculate e1 = H(c1, c2, …, c t ), Output signature (r′, s′); the user converts the ciphertext vector (c1, c2, …, c t ) and signature (r′, s′) are sent to the power service center.

6. According to claim 1, the method for retrieving verifiable user privacy information based on homomorphic encryption is characterized in that: The process of step 5 is specifically as follows: In the query verification phase, the power service center receives the ciphertext vector (c1, c2, ..., c t ) and signature (r′, s′), first verify the signature, calculate u′1=H(c1,c2,…,c t )*s′ -1 mod q2 and u′2 = r′*s′ -1 mod q2, calculate the point (x″, y″) = u′1*G2+u′2*Q2, verify whether x″(mod q2) = r′, if they are equal, proceed to the next step; otherwise, the power service center rejects the user’s query; then the power service center converts the ciphertext vector (c1, c2, …, c t ) and the plaintext vector of the user's data in the local database (DB1, DB2, ..., DB t ) to perform calculations Return the ciphertext c to the user; The process of step 6 is specifically as follows: The user uses his own homomorphic private key (λ, u) to decrypt the received ciphertext c and calculate L(c λ mod n 2 )·u mod n=DB i , that is, you get the data you want to query.

7. A homomorphic encryption-based verifiable user privacy information retrieval system implementing the homomorphic encryption-based verifiable user privacy information retrieval method as described in any one of claims 1 to 6, characterized in that: The verifiable user privacy information retrieval system based on homomorphic encryption includes: Initialization module, used for generating a public-private key pair by the power service center using elliptic curve encryption algorithm during the system initialization phase, and making the public key public to all users in the system; When a new user joins the electricity system, the administrator uses the elliptic curve digital signature algorithm to generate a public-private key pair for each user that is bound to their identity. At the same time, the administrator uses the Paillier encryption algorithm to generate a homomorphic key pair. The user keeps the private key and the public key is public. The encryption module is used to encrypt the power data of the current time period that the user wants to upload during the data upload stage, and then sign and send it to the power service center; The verification module is used for the power service center to verify the signature during the data verification phase, decrypt the signature after verification to obtain the power data of the user in this time period, store the data and perform calculation and analysis; The query module is used to generate a dimensional query vector according to the index to be queried by the user in the query stage, in which the value of the index position to be queried is 1, and the values ​​of the other positions are 0; encrypt the query vector using the homomorphic public key and then sign it, and send the ciphertext vector and the signature together to the power service center; The return module is used to verify the signature in the query verification stage. After the verification is passed, the ciphertext vector is multiplied with the user's data plaintext vector in the local database, and the result is returned to the user. The decryption module is used to decrypt the received ciphertext with the user's own homomorphic private key during the decryption phase, thus obtaining the data he wants to query.

8. A computer device, characterized in that: The computer device includes a memory and a processor, the memory stores a computer program, and when the computer program is executed by the processor, the processor executes the steps of the verifiable user privacy information retrieval method based on homomorphic encryption as described in any one of claims 1-6.

9. A computer-readable storage medium storing a computer program, wherein when the computer program is executed by a processor, the processor executes the steps of the method for verifiable user privacy information retrieval based on homomorphic encryption as described in any one of claims 1 to 6.

10. An information data processing terminal, characterized in that: The information data processing terminal is used to implement the verifiable user privacy information retrieval system based on homomorphic encryption as described in claim 7.

Citation Information

Cited By

  • Threshold unlocking query method and system, electronic equipment and medium

    CN122661004A