A homomorphic encryption method for global hydrological environment monitoring system based on sensor data
By adopting the homomorphic encryption method of Horner's law in the global hydrological environment monitoring system, the problem of information security threats and data islands in the data transmission process is solved, the secure aggregation and fault-tolerant transmission of multi-dimensional data are realized, and the robustness of the system is improved. and privacy protection capabilities.
Patent Information
- Application Number
- CN202410711729.3
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2024-06-04
- Publication Date
- 2024-08-23
- Estimated Expiration
- 2044-06-04
AI Technical Summary
The global smart hydrological environment monitoring system has information security threats and data island problems during the data transmission process, and intelligent terminal sensor equipment cannot transmit important data on time when network communication is interrupted, affecting ciphertext data aggregation and statistical analysis.
The homomorphic encryption method based on Horner's law is used to generate public parameters and private keys through system initialization. The intelligent terminal sensor device performs compression and encryption of multi-dimensional sensitive hydrological data. The gateway aggregator performs aggregation calculations and decrypts the multi-dimensional data in the data management center. Average,designs a fault-tolerant ciphertext aggregation mechanism.
It ensures the security and reliability of data transmission without affecting the aggregation and statistical analysis of ciphertext data, reduces communication overhead, and improves the system's robustness and privacy protection capabilities.
Smart Images

Figure CN118282784B
Abstract
Description
Technical Field
[0001] The present invention relates to the technical field of hydrological environment monitoring, and in particular to a homomorphic encryption method for a global hydrological environment monitoring system based on sensor data. Background Art
[0002] As part of the city's infrastructure, the global smart hydrological environment monitoring system plays a vital role in ensuring the city's safety, residents' drinking water health and the normal operation of economic activities. The global smart hydrological environment monitoring system uses various sensors and intelligent terminal devices to achieve real-time monitoring of the water level, flow rate, water quality and other parameters of the city's main rivers. In order to better protect and manage the water resources of a certain river basin, it is necessary to build a smart hydrological environment monitoring network covering the entire river basin. By setting up multiple monitoring stations in the river basin, real-time collection and transmission of water level, flow, water quality and other data in the river basin are achieved. At the same time, the global smart hydrological environment monitoring system can timely predict and warn of natural disasters such as floods and waterlogging through big data analysis and early warning models, and provide decision-making support for emergency management departments.
[0003] Although the global intelligent hydrological environment monitoring system has improved the system's big data processing and analysis capabilities, it has also created potential information security threats. The global hydrological environment monitoring system relies on technologies such as wireless sensors to aggregate multi-dimensional sensitive data collected by various intelligent terminal sensor devices to the data management center. In the construction of major water conservancy projects, key sensor data is very sensitive, and the data collected by various intelligent terminal sensor devices often need to use encryption technology to ensure the confidentiality of important data transmission. In order to solve the data island problem under the privacy protection state, the encrypted sensitive data transmitted by each intelligent terminal sensor device is not only stored independently in the global intelligent hydrological environment detection system, but also forms data association and aggregation, which can further generate data mining value and facilitate the upgrade and refined management of the intelligent hydrological system. In addition, during the data transmission process, the intelligent terminal sensor device often encounters unexpected situations, such as network communication interruption, resulting in important data not being transmitted to the data management center of the global intelligent hydrological environment detection system on time. Therefore, without affecting the aggregation and statistical analysis of ciphertext data, the realization of fault-tolerant ciphertext aggregation has practical engineering value in the actual global intelligent hydrological environment detection system. Therefore, for the global smart hydrological environment system, designing a homomorphic encryption method based on multi-dimensional sensor data and fault-tolerant aggregation has important engineering application prospects. Summary of the invention
[0004] The purpose of the present invention is to overcome the deficiencies of the prior art and to provide a homomorphic encryption method for a global hydrological environment monitoring system based on sensor data.
[0005] The object of the present invention is to achieve the following technical solution: a homomorphic encryption method for a global hydrological environment monitoring system based on sensor data, comprising the following steps:
[0006] S1: System initialization phase, the trusted center of the global hydrological environment monitoring system generates a set of system public parameters and configures a decryption private key based on aggregated ciphertext for the data management center of the global hydrological environment monitoring system p ;
[0007] S2: Smart terminal sensor device registration stage, assuming the identity of the smart terminal sensor device is id j , the intelligent terminal sensor device id j Register with the gateway aggregator to which it belongs, where j =1, 2, …, , is the total number of smart terminal sensor devices managed by the gateway aggregator; the gateway aggregator is for each smart terminal device id j Configure secret parameters;
[0008] S3: Multi-dimensional sensitive hydrological data homomorphic encryption stage, each smart terminal device id j Using Horner's law n The sensitive hydrological data is compressed and processed, and homomorphic encryption ciphertext is generated and sent to the gateway aggregator;
[0009] S4: In the homomorphic encryption aggregation calculation stage, the gateway aggregator performs aggregation calculation on the homomorphic encryption ciphertext to obtain the homomorphic encryption aggregation ciphertext and sends it to the data management center of the global hydrological environment monitoring system;
[0010] S5: In the homomorphic encryption aggregation and decryption stage, the data management center of the global hydrological environment monitoring system aggregates and decrypts the homomorphic encryption aggregation ciphertext to obtain the average value of the multi-dimensional data.
[0011] Preferably, the S1: system initialization phase further includes the following steps:
[0012] S11: The trusted center randomly selects two large prime numbers p , q , set the order to N = pq The multiplicative cyclic group of Q ;
[0013] S12: Trusted center randomly selects multiplication cycle group Q Two different generators of h , g ,set up , as a multiplicative cyclic group Q of p Generators of cyclic subgroups of order;
[0014] S13: The trusted center sets a Horner's law coefficient , a collision-resistant hash function f ;
[0015] S14: The trusted center generates a set of system public parameters ={ N , Q , h , g , , , f}, the large prime number p As the decryption private key p And through the secure channel to decrypt the private key p Sent to the data management center of the global hydrological environment monitoring system.
[0016] Preferably, the S2: smart terminal sensor device registration phase further includes the following steps:
[0017] S21: Gateway aggregator sets two secret values , ,satisfy ;
[0018] S22: Gateway aggregator sets d-1 degree polynomial , where each coefficient , All from finite fields Z q The non-zero elements selected from ;
[0019] S23: Gateway aggregator calculates secret parameters , and calculate the intelligent terminal sensor equipment id j Hash function ,Will and Sent to smart terminal sensor devices through a secure channel id j , and save ( , , ).
[0020] Preferably, the S3: multi-dimensional sensitive hydrological data homomorphic encryption stage further includes the following steps:
[0021] S31: Intelligent terminal sensor equipment id jCollect n-dimensional sensitive hydrological data to obtain hydrological data vector
[0022] , according to Horner's law using the Horner's law coefficients Compress n-dimensional sensitive hydrological data into a single data block ,set up v =1, 2, …, n , Represents smart terminal sensor equipment id j The collected v Dimensional sensitive hydrological data;
[0023] S32: Intelligent terminal sensor equipment id j In the model n Residual ring Z n Pick two non-zero random numbers from , generate M j The corresponding homomorphic encrypted ciphertext , where the first component of the ciphertext is , the second component of the ciphertext ;
[0024] S33: Intelligent terminal sensor equipment id j Homomorphically encrypt the ciphertext Sent to the gateway aggregator.
[0025] Preferably, the S4: homomorphic encryption aggregate computing phase further includes the following steps:
[0026] S41: When the gateway aggregator receives different smart terminal sensor devices within a preset time period id j Homomorphically encrypted ciphertext sent When the gateway aggregator sends the corresponding intelligent terminal sensor device id j The subscript of the identity identifier is recorded in the collection ;
[0027] S42: When ,in It is an intelligent terminal sensor device that can transmit data in the global hydrological environment monitoring system. id j The number of thresholds, for each subscript , the gateway aggregator calculates the corresponding Lagrange interpolation coefficients: ,in Is a collection Middle and subscripti Different other subscripts, let , the gateway aggregator calculates the homomorphically encrypted aggregate ciphertext:
[0028] ;
[0029] S43: Gateway aggregator homomorphically encrypts the aggregated ciphertext C Sent to the data management center of the global hydrological environment monitoring system.
[0030] Preferably, the S5: homomorphic encryption aggregation decryption stage further includes the following steps:
[0031] S51: When the data management center receives the homomorphically encrypted aggregate ciphertext C When using the decryption private key p Calculated ;
[0032] S52: Solving discrete logarithms Perform decryption calculation to obtain aggregate plaintext Then, according to Horner's law, the intelligent terminal sensor device that can transmit data is solved id j No. v The sum of sensitive hydrological data , v =1, 2, …, n , and then get the average value of multidimensional data.
[0033] The beneficial effects of the present invention are:
[0034] 1) Multi-dimensional sensitive hydrological data is collected through intelligent terminal sensor devices, and the multi-dimensional data is compressed into a single data according to Horner's law. By designing a homomorphic encryption algorithm, multi-source data encrypted transmission and secure aggregation for the global hydrological environment monitoring system are realized, which greatly reduces the communication overhead of system data transmission.
[0035] 2) A gateway aggregator was deployed to assist the data management center of the global hydrological environment monitoring system in performing homomorphic encrypted aggregation computing. A transmission fault-tolerant mechanism was designed, and the correctness of the gateway aggregator’s homomorphic encrypted aggregation computing was ensured based on the embedding of hash functions, avoiding the risk of malicious aggregation computing and improving the robustness of the global hydrological environment monitoring system. BRIEF DESCRIPTION OF THE DRAWINGS
[0036] Figure 1 This is a flow chart of the homomorphic encryption method for the global hydrological environment monitoring system based on sensor data. DETAILED DESCRIPTION
[0037] The technical solution of the present invention will be clearly and completely described below in conjunction with the embodiments. Obviously, the described embodiments are only part of the embodiments of the present invention, rather than all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by those skilled in the art without creative work are within the scope of protection of the present invention.
[0038] See also Figure 1 The present invention provides a technical solution: a homomorphic encryption method for a global hydrological environment monitoring system based on sensor data, comprising the following steps:
[0039] S1: System initialization phase, the trusted center of the global hydrological environment monitoring system generates a set of system public parameters and configures a decryption private key based on aggregated ciphertext for the data management center of the global hydrological environment monitoring system p ;
[0040] S2: Smart terminal sensor device registration stage, assuming the identity of the smart terminal sensor device is id j , the intelligent terminal sensor device id j Register with the gateway aggregator to which it belongs, where j =1, 2, …, , is the total number of smart terminal sensor devices managed by the gateway aggregator; the gateway aggregator is for each smart terminal device id j Configure secret parameters;
[0041] S3: Multi-dimensional sensitive hydrological data homomorphic encryption stage, each smart terminal device id j Using Horner's law n The sensitive hydrological data is compressed and processed, and homomorphic encryption ciphertext is generated and sent to the gateway aggregator;
[0042] S4: In the homomorphic encryption aggregation calculation stage, the gateway aggregator performs aggregation calculation on the homomorphic encryption ciphertext to obtain the homomorphic encryption aggregation ciphertext and sends it to the data management center of the global hydrological environment monitoring system;
[0043] S5: In the homomorphic encryption aggregation and decryption stage, the data management center of the global hydrological environment monitoring system aggregates and decrypts the homomorphic encryption aggregation ciphertext to obtain the average value of the multi-dimensional data.
[0044] In some embodiments, the S1: system initialization phase further includes the following steps:
[0045] S11: The trusted center randomly selects two large prime numbers p , q , set the order toN = pq The multiplicative cyclic group of Q ;
[0046] S12: Trusted center randomly selects multiplication cycle group Q Two different generators of h , g ,set up , as a multiplicative cyclic group Q of p Generators of cyclic subgroups of order;
[0047] S13: The trusted center sets a Horner's law coefficient , a collision-resistant hash function f ;
[0048] S14: The trusted center generates a set of system public parameters ={ N , Q , h , g , , , f}, the large prime number p As the decryption private key p And through the secure channel to decrypt the private key p Sent to the data management center of the global hydrological environment monitoring system.
[0049] In this embodiment, the trusted center for the global hydrological environment monitoring system generates a set of public parameters, including setting the composite factorial cyclic group and its generators, cyclic subgroups and their generators, Horner's rule coefficients, and anti-collision hash functions. In addition, the trusted center generates a decryption private key for the aggregated ciphertext for the data management center for the global hydrological environment system, and sends it to the data management center through a secure channel.
[0050] In some embodiments, the S2: smart terminal sensor device registration phase further includes the following steps:
[0051] S21: Gateway aggregator sets two secret values , ,satisfy ;
[0052] S22: Gateway aggregator sets d-1 degree polynomial , where each coefficient , All from finite fields Z q The non-zero elements selected from ;
[0053] S23: Gateway aggregator calculates secret parameters , and calculate the intelligent terminal sensor equipment id j Hash function ,Will and Sent to smart terminal sensor devices through a secure channel id j , and save ( , , ).
[0054] In this embodiment, each smart terminal sensor device will be registered in the gateway aggregator to which it belongs. The gateway aggregator sets the secret value and configures the corresponding secret parameters for each smart terminal sensor device based on the secret sharing technology and hash function. Each smart terminal sensor device compresses the multi-dimensional sensitive hydrological data using Horner's rule, generates the corresponding homomorphic encrypted ciphertext, and sends it to the corresponding gateway aggregator.
[0055] In some embodiments, the S3: multi-dimensional sensitive hydrological data homomorphic encryption stage further includes the following steps:
[0056] S31: Intelligent terminal sensor equipment id j Collect n-dimensional sensitive hydrological data to obtain hydrological data vector
[0057] , according to Horner's law using the Horner's law coefficients Compress n-dimensional sensitive hydrological data into a single data block ,set up v =1, 2, …, n , Represents smart terminal sensor equipment id j The collected v Dimensional sensitive hydrological data;
[0058] S32: Intelligent terminal sensor equipment id j In the model n Residual ring Z n Pick two non-zero random numbers from , generate M j The corresponding homomorphic encrypted ciphertext , where the first component of the ciphertext is , the second component of the ciphertext ;
[0059] S33: Intelligent terminal sensor equipment idj Homomorphically encrypt the ciphertext Sent to the gateway aggregator.
[0060] In this embodiment, each smart terminal sensor device compresses the multi-dimensional sensitive hydrological data using Horner's law, generates corresponding homomorphic encryption ciphertext, and sends it to the corresponding gateway aggregator.
[0061] In some embodiments, the S4: homomorphic encryption aggregate computing phase further includes the following steps:
[0062] S41: When the gateway aggregator receives different smart terminal sensor devices within a preset time period id j Homomorphically encrypted ciphertext sent When the gateway aggregator sends the corresponding intelligent terminal sensor device id j The subscript of the identity identifier is recorded in the collection ;
[0063] S42: When ,in It is an intelligent terminal sensor device that can transmit data in the global hydrological environment monitoring system. id j The number of thresholds, for each subscript , the gateway aggregator calculates the corresponding Lagrange interpolation coefficients: ,in Is a collection Middle and subscript i Different other subscripts, let , the gateway aggregator calculates the homomorphically encrypted aggregate ciphertext:
[0064] ;
[0065] S43: Gateway aggregator homomorphically encrypts the aggregated ciphertext C Sent to the data management center of the global hydrological environment monitoring system.
[0066] In this embodiment, when the gateway aggregator receives homomorphically encrypted ciphertexts sent by different smart terminal sensor devices within a preset time period, the gateway aggregator records the subscripts of the corresponding smart terminal sensor identities into a set. When the number of terminal sensor devices that can normally transmit data in the global hydrological environment monitoring system reaches the threshold value, the gateway aggregator calculates the Lagrange interpolation coefficients of the corresponding subscript set and further calculates the homomorphically encrypted aggregated ciphertext. Finally, the gateway aggregator sends it to the data management center of the global hydrological environment monitoring system.
[0067] In some embodiments, the S5: homomorphic encryption aggregation decryption phase further includes the following steps:
[0068] S51: When the data management center receives the homomorphically encrypted aggregate ciphertext C When using the decryption private key p Calculated ;
[0069] S52: Solving discrete logarithms Perform decryption calculation to obtain aggregate plaintext Then, according to Horner's law, the intelligent terminal sensor device that can transmit data is solved id j No. v The sum of sensitive hydrological data , v =1, 2, …, n , and then get the average value of multidimensional data.
[0070] In this embodiment, the data management center of the global hydrological environment monitoring system receives the homomorphically encrypted aggregated ciphertext sent from the gateway aggregator, and uses the decryption private key based on the aggregated ciphertext to restore the aggregated plaintext. Further using Horner's law, the sum of sensitive hydrological data of each dimension of the smart terminal sensor device that normally transmits data is solved, so that the average value of each dimensional data can be obtained under the privacy protection state.
[0071] The correctness of the present invention is verified by the following steps:
[0072] The data management center of the global hydrological environment monitoring system uses the decryption private key p , calculated
[0073] , and then the data management center solves the discrete logarithm ,get , further using Horner's law, according to Algorithm 1, the first v The sum of hydrological data in dimensions , v =1, 2, …, n . Algorithm 1 Input: The initial aggregate plaintext state value is X = M , the dimensions of sensitive hydrological data v =1, 2, …, n ; Algorithm 1 Description: For each dimension v from n To 1, v The aggregate value of dimension-sensitive hydrological data is calculated as , the algorithm further sets the new state value ;
[0074] Algorithm 1 output: Through the above recursive process, the algorithm outputs the aggregate value of sensitive hydrological data in each dimension .
[0075] The above is only a preferred embodiment of the present invention. It should be understood that the present invention is not limited to the form disclosed herein, and should not be regarded as excluding other embodiments, but can be used in various other combinations, modifications and environments, and can be modified within the scope of the concept described herein through the above teachings or the technology or knowledge of the relevant field. The changes and modifications made by those skilled in the art shall not deviate from the spirit and scope of the present invention, and shall be within the scope of protection of the claims attached to the present invention.
Claims
1. A homomorphic encryption method for a global hydrological environment monitoring system based on sensor data. Features: The following steps are involved: S1: System initialization phase, the trusted center of the global hydrological environment monitoring system generates a set of system public parameters and configures a decryption private key based on aggregated ciphertext for the data management center of the global hydrological environment monitoring system p ; S2: Smart terminal sensor device registration stage, assuming the identity of the smart terminal sensor device is id j , the intelligent terminal sensor device id j Register with the gateway aggregator to which it belongs, where j =1, 2, …, , is the total number of smart terminal sensor devices managed by the gateway aggregator; the gateway aggregator is for each smart terminal device id j Configure secret parameters; S3: Multi-dimensional sensitive hydrological data homomorphic encryption stage, each smart terminal device id j Using Horner's law n The sensitive hydrological data is compressed and processed, and homomorphic encryption ciphertext is generated and sent to the gateway aggregator; S4: In the homomorphic encryption aggregation calculation stage, the gateway aggregator performs aggregation calculation on the homomorphic encryption ciphertext to obtain the homomorphic encryption aggregation ciphertext and sends it to the data management center of the global hydrological environment monitoring system; S5: In the homomorphic encryption aggregation and decryption phase, the data management center of the global hydrological environment monitoring system aggregates and decrypts the homomorphic encryption aggregation ciphertext to obtain the average value of multi-dimensional data; The S1: system initialization phase also includes the following steps: S11: The trusted center randomly selects two large prime numbers p , q , set the order to N = pq The multiplicative cyclic group of Q ; S12: Trusted center randomly selects multiplication cycle group Q Two different generators of h , g ,set up , as a multiplicative cyclic group Q of p Generators of cyclic subgroups of order; S13: The trusted center sets a Horner's law coefficient , a collision-resistant hash function f ; S14: The trusted center generates a set of system public parameters ={ N , Q , h , g , , , f}, the large prime number p As the decryption private key p And through the secure channel to decrypt the private key p Send to the data management center of the global hydrological environment monitoring system; The S2: smart terminal sensor device registration phase also includes the following steps: S21: Gateway aggregator sets two secret values , ,satisfy ; S22: Gateway aggregator sets d-1 degree polynomial , where each coefficient , All from finite fields Z q The non-zero elements selected from ; S23: Gateway aggregator calculates secret parameters , and calculate the intelligent terminal sensor equipment id j Hash function ,Will and Sent to smart terminal sensor devices through a secure channel id j , and save ( , , ); The S3: multi-dimensional sensitive hydrological data homomorphic encryption stage also includes the following steps: S31: Intelligent terminal sensor equipment id j Collect n-dimensional sensitive hydrological data to obtain hydrological data vector , according to Horner's law using the Horner's law coefficients Compress n-dimensional sensitive hydrological data into a single data block ,set up v =1, 2, …, n , Represents smart terminal sensor equipment id j The collected v Dimensional sensitive hydrological data; S32: Intelligent terminal sensor equipment id j In the model n Residual ring Z n Pick two non-zero random numbers from , generate M j The corresponding homomorphic encrypted ciphertext , where the first component of the ciphertext is , the second component of the ciphertext ; S33: Intelligent terminal sensor equipment id j Homomorphically encrypt the ciphertext Send to the gateway aggregator; The S4: homomorphic encryption aggregate computing phase also includes the following steps: S41: When the gateway aggregator receives different smart terminal sensor devices within a preset time period id j Homomorphically encrypted ciphertext sent When the gateway aggregator sends the corresponding intelligent terminal sensor device id j The subscript of the identity identifier is recorded in the collection ; S42: When ,in It is an intelligent terminal sensor device that can transmit data in the global hydrological environment monitoring system. id j The number of thresholds, for each subscript , the gateway aggregator calculates the corresponding Lagrange interpolation coefficients: ,in Is a collection Middle and subscript i Different other subscripts, let , the gateway aggregator calculates the homomorphically encrypted aggregate ciphertext: ; S43: Gateway aggregator homomorphically encrypts the aggregated ciphertext C Send to the data management center of the global hydrological environment monitoring system; The S5: homomorphic encryption aggregation decryption phase also includes the following steps: S51: When the data management center receives the homomorphically encrypted aggregate ciphertext C When using the decryption private key p Calculated ; S52: Solving discrete logarithms Perform decryption calculation to obtain aggregate plaintext Then, according to Horner's law, the intelligent terminal sensor device that can transmit data is solved id j No. v The sum of sensitive hydrological data , v =1, 2, …, n , and then get the average value of multidimensional data.
