A privacy protection method for wearable device data comparison

Through the encryption comparison method of bilinear cryptosystem and hash function, the problem of security risks in data transmission of wearable devices is solved, the confidentiality and authenticity protection of data are realized, and the privacy of user data and health analysis are ensured. reliability.

CN116155509BActive Publication Date: 2024-09-17HAINAN UNIV
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202310041022.1
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2023-01-13
Publication Date
2024-09-17
Estimated Expiration
2043-01-13

AI Technical Summary

Technical Problem

Wearable devices lack encryption during data transmission, which leads to the possibility of data interception, modification and forgery, affecting users' health status analysis and medical service security.

Method used

A bilinear cryptosystem and hash function are used to generate keys and tokens, and encryption comparison between the server and the wearable device client ensures the confidentiality and authenticity of data during transmission and storage.

Benefits of technology

It realizes the encrypted transmission and comparison of wearable device data, ensures the privacy protection of user data, prevents data leakage and tampering, and improves the security and reliability of data.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN116155509B
    Figure CN116155509B
Patent Text Reader

Abstract

The present invention discloses a privacy protection method for wearable device data comparison, the method comprising server parameter initialization, cloud server token and ciphertext generation steps, wearable device client token and ciphertext generation steps, and ciphertext comparison steps. The encryption scheme involved in the method supports a variety of wearable devices, and the data collected by the device will be encrypted when sent to the server, so that the confidentiality of user data can be guaranteed during the comparison process.
Need to check novelty before this filing date? Find Prior Art

Description

Technical field:

[0001] The present invention relates to the field of data transmission security of the Internet of Things, and in particular to a privacy protection method for wearable device data comparison. Background technology:

[0002] The core and foundation of the Internet of Things is the Internet, which is an extension and expansion of the Internet. The main communication process of the Internet of Things is as follows: determine the attributes of the device; obtain the device attributes; collect device information; send the device information to the information data center through the network; the data center completes the relevant calculations and responds.

[0003] At present, the application of IoT technology in the medical industry has also greatly increased, effectively maintaining people's health. People usually receive diagnosis and treatment in different medical institutions and keep records. However, these medical records are sometimes not clear enough, and medical institutions may not be able to integrate them in real time. However, by using the Internet of Things, these processes can be optimized. The Internet of Things can collect every treatment and medication record of the patient in detail, and these records will be used to help doctors improve medical standards. Using the Internet of Things medical system, personal electronic health records can be generated to provide patients with high-quality medical care. At the same time, the medical system can monitor and remind people of their physical condition.

[0004] On the other hand, with the rapid development of information technology, the form of communication electronic products is also evolving. At present, wearable devices have become a hot issue in the global ICT field. Traditional equipment manufacturers have conducted a lot of research on the development of wearable devices. Various products such as smart watches, smart bracelets, and smart glasses are also widely used. By using sensors, microcontrollers, and communication devices, these devices can quickly identify the environment and interact with other devices. However, the security issues of wearable devices also arise. With sensors, wearable device servers collect a large amount of user data, such as the user's walking distance, calorie consumption, heart rate, blood pressure, etc. Most of the user data will be uploaded to the server.

[0005] Due to the lack of user input channels, many wearable devices do not encrypt data or only use fixed default keys when connecting to the Internet or other smart terminals. Attackers can monitor, modify, or even forge data. Among them, the modification and forgery of data may interfere with the server-side analysis of the user's condition, bringing greater security risks. For example, an attacker may modify the user's physiological data such as blood pressure and pulse measured by the device. The modified data may be used for telemedicine services, which may pose a threat to the user.

[0006] Therefore, in order to improve the security and confidentiality of physical data, it is necessary to study the data security transmission and data calculation of wearable devices. Summary of the invention:

[0007] To solve the above problems, the present invention provides a privacy protection method for wearable device data comparison, which is used for ciphertext comparison of human health-related detection data and even other fields of data when it is required to be invisible.

[0008] The system used in the method includes a server and several wearable device clients, wherein the server stores a mapping table of each wearable device client and a corresponding random number and original standard data on human physiological indicators; the wearable device client can collect the user's physical data, and the server can receive the user's physical data and perform corresponding processing. The method includes the following steps:

[0009] Step 1: The server generates a bilinear cryptographic system and selects three conflict-free hash functions H1, H2, and H3. The server generates a polynomial y = a + a1xmodp. p Randomly select r0 and calculate y0=a+a1r0modp, where a, a1, r0 are randomly selected parameters;

[0010] Step 2: The server generates keys for each wearable device client, keys H1(r0) and Embedded in the corresponding wearable device client;

[0011] Step 3: The server generates a first token and converts the standard indicator data stored in the server into binary form;

[0012] Step 4: The server generates the first ciphertext;

[0013] Step 5: The wearable device client converts the collected data into binary form and generates a second token;

[0014] Step 6: The wearable device generates a second ciphertext including a second token, and sends the second ciphertext to the server;

[0015] Step 7: After receiving the second ciphertext, the server obtains the random number corresponding to the wearable device from the mapping table;

[0016] Step 8: The server converts the second token into a third token having a comparable form, and converts the second ciphertext to generate a third ciphertext;

[0017] Step 9: The server compares the third ciphertext with the first ciphertext. If the first pair of different ciphertexts appears, the server stops and executes step 10. If no different ciphertexts appear, the server also stops.

[0018] Step 10: The server analyzes and compares the results. If the subject data is not within the normal range, the server will send a corresponding feedback result.

[0019] Furthermore, the key corresponding to each wearable device client is n is the number of clients, where y j =a+a1r j mod p, g is a generator of a cyclic group of prime order p.

[0020] Furthermore, in step 3, the original standard indicator data num is converted into binary form, that is, (b n-1 , b n-2 , ..., b1, b0), the first token is generated as follows:

[0021] d m =H2(e(g,g) a )H3(H1(r0))

[0022] d i =H2(e(g,g) a )H3(H1(r0)||d i+1 ||b i ))

[0023] token=(d0,d1,...,d m )

[0024] i=m-1, ..., 0; m is the bit length occupied by the original standard data, and token is the first token.

[0025] Furthermore, in step 4, the method by which the server generates the first ciphertext is:

[0026] c i =H2(e(g,g) a )H3(H1(r0)||d i )

[0027]

[0028] v i =H3(H1(r0)||H1(r0)||d i+1 )+e i modp

[0029] ciph=(token,(c0,…,c m-1 ), (v0, …, v m-1 ))

[0030] ciph is the first ciphertext.

[0031] Furthermore, in step 5, the data num′ collected by the wearable device client is converted into binary form, that is, (b′ n-1 , b′ n-2, …, b′1, b′0);

[0032] The second token generation method is:

[0033] token′=(d′0,d′1,...,d′ m )

[0034] token' is the second token.

[0035] Furthermore, in step 6, the method for the wearable device client to generate the second ciphertext is:

[0036] c′ i =H3(H1(r0)||d′ l )

[0037]

[0038] v′ i =H3(H1(r0)||H1(r0)||d′ i+1 )+e′ i modp

[0039]

[0040] ciph′ is the second ciphertext.

[0041] Furthermore, in step eight, the server converts the second token into a third token having a comparable form, and converts the second ciphertext to generate a third ciphertext, specifically:

[0042] Server Computing That is Token″=

[0043] H2(e(g,g) a )Token′;

[0044] Token" is the third token;

[0045] d″ m =H2(e(g,g) a )H3(H1(r0))

[0046] d″ i =H2(e(g,g) a )H3(H1(r0)||d′ i+1 ||b′ i )

[0047] The server converts the second ciphertext to generate the third ciphertext, which is:

[0048]

[0049] Furthermore, in step nine, the specific calculation formula is:

[0050] Assume 0≤j≤m-1,

[0051] if

[0052] c k =c″ k Λc j ≠c″ j

[0053] If true, then j is the number of the first different number in the two sequences.

[0054] if

[0055] c k =c″ k

[0056] If true, the server outputs 0 and the algorithm stops.

[0057] Furthermore, in step 10, the specific calculation formula is:

[0058] Assumption c l is the first different number obtained in the comparison process in step 9, the server performs the following calculation

[0059] e′ l =v″ l -H3(H1(r0)||H1(r0)||d′ i+1 )mod p

[0060] In the ciphertext of the original standard data

[0061] e l =v l -H3(H1(r0)||H1(r0)||d′ i+1 )mod p

[0062]

[0063] If the original standard data is greater than the data collected by the wearable device client, then

[0064] diff=g1modp

[0065] If the original standard data is smaller than the data collected by the wearable device client, then

[0066]

[0067] diff is the difference value.

[0068] The technical effects of the present invention are:

[0069] The encryption scheme involved in this method supports a variety of wearable devices. The data collected by the device will be encrypted when sent to the server, and the confidentiality of the physical data can be guaranteed during the comparison process. In addition, the collected data stored in the server is encrypted. Due to the one-way encryption scheme, it will not be disclosed. The token conversion method involved in this method can help compare and ensure the authenticity of the collected data. Description of the drawings:

[0070] Figure 1 This is a model example of the traditional method.

[0071] Figure 2 This is a model example of this method. Specific implementation method:

[0072] To provide better healthcare, wearable devices collect users’ physical data and send it to data centers for further analysis. The traditional model for this scenario is Figure 1 shown.

[0073] However, physical data is the privacy of each user, and no one wants it to be leaked. Therefore, in order to strengthen privacy protection, the data must be encrypted before being sent to the data center. In addition, the data stored in the data center should be in ciphertext form and should not be decrypted during the comparison process. Figure 2 As shown, the model includes a server and several wearable device clients. The server stores a mapping table of each wearable device client and the corresponding random number, and original standard data on human physiological indicators; the wearable device client can collect the user's physical data, and the server can receive the user's physical data and perform corresponding processing.

[0074] This method is described below.

[0075] Step 1: Initialize server parameters.

[0076] Let G1 and G2 be two cyclic groups of prime order p, g be the generator of G1, and g1 be a finite field Z p (Z p The server generates a bilinear cryptosystem, for example: e: G1×G1→G2, where G1 and G2 are two cyclic groups p of the same prime order, and the server selects three conflict-free hash functions H1:Z p →Z p , H2: G1→Z p , H3: G2→Z pThen, the server generates the polynomial y = a + a1xmodp, and p Randomly select r0 and calculate y0=a+a1r0modp. Where a, a1, r0 are random numbers, and the polynomial y is used for ciphertext comparison.

[0077] Step 2: The server generates keys for each wearable device client, keys H1(r0) and Embedded in the corresponding wearable device client.

[0078] The server stores a mapping table between wearable device clients and random numbers. Each device generates a different random number r j , and save it for subsequent use for each wearable device client j. For example, for wearable device client j, the server randomly selects r j ∈Z p , and maintain the list L = {(j, r j )) j=1,2,… The server generates a key for device j where y j =a+a1r j mod p. Key H1(r0) and Will be embedded in the wearable device client.

[0079] Step 3: The server generates a first token and converts the standard indicator data stored in the server into binary form.

[0080] To protect the privacy of the data collected from the user, it should be encrypted before sending it to the server. The server compares the user data in ciphertext form with the original standard data.

[0081] The server encrypts the original standard data items of each human physiological indicator.

[0082] First token generation: The server processes the original standard data (a kind of plain text data). Since the server needs to compare the data based on the health indicators to judge the health status of the device user, the server needs to process the original standard data first so as to compare it with the ciphertext data sent by the device: the original standard data num (the original standard data includes but is not limited to standard values ​​such as heart rate and blood pressure. If it exceeds the standard indicator data, it may be judged that the user has abnormal physical phenomena) stored in the server is converted into binary form, that is, (b n-1 , b n-2 , ..., b1, b0). The first token is generated as follows.

[0083] d m =H2(e(g,g) a)H3(H1(r0))

[0084] d i =H2(e(g,g) a )H3(H1(r0)||d i+1 ||b i ))

[0085] Here, i=m-1, ..., 0. (m is the bit length occupied by the original standard data num.)

[0086] e(g, g) a It is the conversion variable in the token conversion process.

[0087] The first token is token=(d0, d1, ..., d m ).

[0088] Step 4: The server generates the first ciphertext.

[0089] Server Generation

[0090] c i =H2(e(g,g) a )H3(H1(r0)||d i )

[0091]

[0092] v i =H3(H1(r0)||H1(r0)||d i+1 )+e i modp

[0093] i=m-1,...,0.

[0094] The first ciphertext output is ciph = (token, (c0, ..., c m-1 ), (v0, …, v m-1 )).

[0095] Step 5: The wearable device client converts the collected data into binary form and generates a second token.

[0096] For wearable device j, embedding H1(r0) and The collected data should be composed of key H1(r0) and Encryption is as follows:

[0097] The second token generation of the wearable device client: The wearable device client converts the collected data num′ into binary form, that is, (b′ n-1 , b′ n-2, …, b′1, b′0). The token is generated as follows:

[0098] d′ m =H3(H1(r0))

[0099] d′ i =H3(H1(r0)||d i+1 ||b′ i ))

[0100] Here, i=m-1,...,0.

[0101] The second token is token′=(d′0, d′1, ..., d′ m ).

[0102] Step 6: The wearable device generates a second ciphertext including a second token, and sends the second ciphertext to the server.

[0103] Wearable device client generation

[0104] c′ i =H3(H1(r0)||d′ i )

[0105]

[0106] v′ i =H3(H1(r0)||H1(r0)||d′ i+1 )+e′ i modp

[0107] Here, i=m-1,...,0.

[0108] The output of the second ciphertext is

[0109]

[0110] The wearable device will send the ciph′ to the server.

[0111] Step 7: After receiving the second ciphertext, the server obtains the random number corresponding to the wearable device from the mapping table;

[0112] When receiving ciph′, the server obtains r from the list L j .

[0113] Step 8: The server converts the second token into a third token having a comparable form, and converts the second ciphertext to generate a third ciphertext;

[0114] Token conversion: If the server wants to compare ciph and ciph′, it should convert Token′ to a comparable form. The server first calculates Then Token′ is converted to Token″, that is, Token″=H2(e(g, g) a )Token′. Token″ is the third token.

[0115] d″ m =H2(e(g,g) a )H3(H1(r0))

[0116] d″ i =H2(e(g,g) a )H3(H1(r0)||d′ i+1 ||b′ i )

[0117] Ciphertext conversion:

[0118] c″ i =H2(e(g,g) a )c′ i =H2(e(g,g) a )H3(H1(r0)||d″ i )

[0119] v″ i =v′ i =H3(H1(r0)H1(r0)d′ i+1 )+e′ i mod p

[0120] Step 9: The server compares the third ciphertext with the first ciphertext. If the first pair of different ciphertexts appears, the server stops and executes step 10. If no different ciphertexts appear, the server also stops.

[0121] The server compares the encrypted data as follows: The server compares the sequences in the two ciphertexts until the first pair of different ciphertexts appears.

[0122] Assume 0≤j≤m-1,

[0123] if

[0124] c k =c″ k Λc j ≠c″ j

[0125] If true, then j is the index of the first different number in the two sequences.

[0126] if

[0127] c k =c″ k

[0128] If it holds, the server outputs 0 and the algorithm stops. This means num = num'.

[0129] Step 10: The server analyzes and compares the results. If the subject data is not within the normal range, the server will send a corresponding feedback result.

[0130] If num≠num′, assume c l is the first different number, the server calculates the difference between the two ciphertext variables as follows:

[0131] e′ l =v″ l -H3(H1(r0)||H1(r0)||d′ i+1 )mod p

[0132] In the ciphertext of the original standard number num

[0133] e l =v l -H3(H1(r0)||H1(r0)||d′ i+1 )mod p

[0134] therefore,

[0135]

[0136] diff refers to the difference between the ciphertext data and the ciphertext standard data, and is an intermediate variable used to compare two ciphertext data.

[0137] If num>num′, then

[0138] diff=g1modp

[0139] Otherwise, num<num′, then

[0140]

[0141] Users can perform relevant operations based on the reminder, such as taking medicine, taking a rest, etc. The server can also notify the user's designated personnel, such as their family or friends, of abnormal situations.

Claims

1. A privacy protection method for wearable device data comparison, the system used by the method includes a server and several wearable device clients, the server stores a mapping table of each wearable device client and a corresponding random number, and original standard data on human physiological indicators; the wearable device client can collect the user's physical data, and the server can receive the user's physical data and perform corresponding processing, characterized in that: The method comprises the following steps: Step 1: The server generates a bilinear cryptographic system and selects three conflict-free hash functions H1, H2, and H3. The server generates the polynomial y = a + a1xmodp. p Randomly select r0 from Z and calculate y0=a+a1r0modp, where a, a1, r0 are randomly selected parameters; p represents a Galois field modulo p, where p is a prime number; Step 2: The server generates keys for each wearable device client, keys H1(r0) and Embedded in the corresponding wearable device client; is the key generated by the server for the wearable device client device j; where y j =a+a1r j mod p,r j Represents the random number r generated by wearable device j j ; Step 3: The server generates a first token and converts the standard indicator data stored in the server into binary form; Step 4: The server generates the first ciphertext; Step 5: The wearable device client converts the collected data into binary form and generates a second token; Step 6: The wearable device generates a second ciphertext including a second token, and sends the second ciphertext to the server; Step 7: After receiving the second ciphertext, the server obtains the random number corresponding to the wearable device from the mapping table; Step 8: The server converts the second token into a third token having a comparable form, and converts the second ciphertext to generate a third ciphertext; Step 9: The server compares the third ciphertext with the first ciphertext. If the first pair of different ciphertexts appears, the server stops and executes step 10. If no different ciphertexts appear, the server also stops. Step 10: The server analyzes and compares the results. If the subject data is not within the normal range, the server will send a corresponding feedback result; The key corresponding to each wearable device client is j=1,2,...,n is the number of clients, where y j =a+a1r j mod p, g is a generator of a cyclic group of prime order p; The original standard indicator data num is converted into binary form, that is, (b n-1 , b n-2 , ..., b1, b0), the first token is generated as follows: d m =H2(e(g,g) a )H3(H1(r0)) d i =H2(e(g,g) a )H3(H1(r0)||d i+1 ||b i )) token=(d0,d1,...,d m ) i=m-1, ..., 0; m is the bit length occupied by the original standard data, and token is the first token; In step 4, the method by which the server generates the first ciphertext is: c i =H2(e(g,g) a )H3(H1(r0)||d i ) in i =H3(H1(r0)||H1(r0)||d i+1 )+e i modp ciph=(token,(c0,…,c m-1 ),(v0,…,v m-1 )) ciph is the first ciphertext; In step 5, the data num' collected by the wearable device client is converted into binary form, that is, (b' n-1 , b′ n-2 , …, b′1, b′0); The second token generation method is: token′=(d′0,d′1,…,d′ m ) token′ is the second token; In step 6, the method for the wearable device client to generate the second ciphertext is: c′ i =H3(H1(r0)||d′ i ) v′ i =H3(H1(r0)||H1(r0)||d′ i+1 )+e′ i modp ciph′ is the second ciphertext; In step eight, the server converts the second token into a third token having a comparable form, and converts the second ciphertext to generate a third ciphertext, specifically: Server Computing That is Token″= H2(e(g,g)a)Token′; Token" is the third token; d″ m =H2(e(g,g) a )H3(H1(r0)) d″ l =H2(e(g,g) a )H3(H1(r0)||d′ l+1 ||b′ l ) The server converts the second ciphertext to generate the third ciphertext, which is:

2. The method according to claim 1, characterized in that In step nine, the specific calculation formula is: Assume 0≤j≤m-1, if c k =c″ k Λc j ≠c″j If true, then j is the number of the first different number in the two sequences. if c k =c k If true, the server outputs 0 and the algorithm stops.

3. The method according to claim 2, characterized in that In step 10, the specific calculation formula is: Assumption c l is the first different number obtained in the comparison process in step 9, the server performs the following calculation e′ l =v′ l -H3(H1(r0)||H1(r0)||d′i +1 )modp In the ciphertext of the original standard data and l =v l -H3(H1(r0)||H1(r0)||d′ i+1 )modp If the original standard data is greater than the data collected by the wearable device client, then diff=g1modp If the original standard data is smaller than the data collected by the wearable device client, then diff is the difference value.