A communication method and system applied to mobile device

By processing the acceleration data of mobile devices, extracting features and generating common secrets, it solves the problem of low accuracy of mobile device identity authentication in wireless networks, achieves high-success rate identity authentication and secure communication without clock synchronization, and improves communication security.

CN114867027BActive Publication Date: 2024-10-22INSTITUTE OF INFORMATION ENGINEERING CHINESE ACADEMY OF SCIENCES
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202110156382.7
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2021-02-04
Publication Date
2024-10-22
Estimated Expiration
2041-02-04

AI Technical Summary

Technical Problem

When existing mobile devices perform identity authentication and secure communication in wireless networks, there is a problem of low identity authentication accuracy caused by the sensitivity of relative motion and acceleration sensors, and the internal clock needs to be synchronized and user operations are limited.

Method used

By obtaining the raw acceleration data of the mobile device, calculating the effective acceleration data, extracting the original features, generating a common secret, negotiating the session key, and processing the data using moving average filtering, high-pass filtering and Pearson correlation coefficient, there is no need to synchronize the clock and reduce relative Movement-impacted authentication and encrypted communications.

Benefits of technology

It achieves high success rate identity authentication and secure communication for mobile devices in wireless networks, reduces the impact of relative motion, avoids man-in-the-middle attacks, and improves communication security.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN114867027B_ABST
    Figure CN114867027B_ABST
Patent Text Reader

Abstract

The present invention discloses a communication method and system for mobile devices, including obtaining original acceleration data S of mobile device A and mobile device B. a With S b And the corresponding timestamp T a With T b ; Based on the original acceleration data S a With S b And the corresponding timestamp T a With T b , respectively obtain the original features of mobile device A and mobile device B; obtain common features based on the original features and generate a common secret; mobile device A and mobile device B communicate after generating and confirming the session key based on the common secret negotiation. The present invention does not require any prior knowledge or the need to synchronize the internal clock of the device, and can achieve identity authentication and secure communication of mobile devices in a wireless network; by introducing sliding average filtering and high-pass filtering to process the original acceleration data, small fluctuations caused by the relative motion between mobile devices are removed, and a highly correlated common secret is obtained; the Pearson correlation coefficient is introduced for identity authentication to improve the success rate of identity authentication.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention belongs to the technical field of mobile equipment, and in particular, relates to a communication method and system applied to mobile equipment. Background Art

[0002] At present, mobile devices such as smartphones and tablets have been deeply integrated into people's work and life. With the popularity of mobile devices, the interaction between mobile devices has become more and more frequent. In common mobile device interactions, using wireless networks for communication is a relatively economical and practical method because it is low-cost and does not require additional hardware. However, the wireless characteristics of wireless networks will cause some security issues, such as man-in-the-middle attacks. First, because the connection is wireless, the mobile device cannot identify the identity of the target device connected to it, and cannot ensure that the communication data is sent to the correct recipient; second, the wireless channel can be easily controlled by attackers, and wireless network communications may be subject to man-in-the-middle attacks, and user data and privacy may be leaked.

[0003] In order to ensure the secure communication of mobile devices in wireless networks, it is necessary to authenticate the mobile devices involved in the communication and generate session keys to encrypt the communication content to prevent the leakage of user data and privacy during the communication process. Common ways to authenticate and generate session keys for mobile devices communicating in wireless channels can be divided into two types: one is to generate session keys with the help of a trusted third party for identity authentication and secure communication, and the other is to rely on the information input of the mobile device user. Due to the single point failure threat of the trusted third party and the dependence on the network, the first type is not suitable for widespread promotion. In the second type, due to the low entropy of the user's direct input (for example, PIN code, password, etc.), it is vulnerable to shoulder surfing attacks. In comparison, behavioral input (for example, impact, finger movement, shaking, gait, etc.) can generate high entropy session keys from rich behavioral input information.

[0004] However, there are many problems with existing behavioral input schemes. For example, impact requires prior knowledge, and it is difficult for users to control the strength of the impact; the way the finger moves has strict restrictions on the size and direction of the user interface of the mobile device, because the user interface of mobile devices is very different, which is not conducive to promotion to most mobile devices; gait cannot be used in crowded places (for example, buses). In contrast, shaking as behavioral input is more suitable for actual operations. It does not require any prior knowledge and is not limited to the user interface. As long as the mobile device is equipped with an acceleration sensor, it can obtain rich acceleration data to generate high-entropy session keys.

[0005] Existing shaking-based schemes also have many shortcomings: (1) The communicating mobile devices need to synchronize their internal clocks to obtain the same absolute time characteristics; (2) To identify the identity of the mobile device, existing shaking schemes require the user to hold the mobile device tightly when shaking it to avoid relative movement of the device as much as possible. However, due to the wide variety of mobile devices, differences in size and shape will inevitably lead to relative movement of the devices; (3) Due to the high sensitivity of the accelerometer, even the slightest movement of the mobile device will cause a dramatic change in the acceleration data. Therefore, in this case, due to the relative motion between the two mobile devices, the acceleration data may be very different, making it difficult to negotiate enough common features to generate a session key.

[0006] Therefore, there is an urgent need for a method for identity authentication and secure communication of mobile devices in a wireless network with a high success rate, which does not require synchronization of the internal clocks of the mobile devices and can minimize the impact of relative motion between the mobile devices.

[0007] For the convenience of describing the present invention, some background knowledge related to the present invention is introduced below.

[0008] 1. Sliding Average Filter

[0009] The moving average filter (MAF) is generally used with time series data to smooth out short-term small fluctuations and highlight long-term trends or cycles. Given a series of numbers and a fixed subset size, the average of the initial sliding subset of the original sequence data is taken as the first element after the sliding average, and then the sliding subset is moved forward, the first data of the original sequence data is removed, and the next data of the initial fixed subset is included in the subset, and the average of the sliding subset is recalculated as the second element after the sliding average. Repeat this process on the entire original sequence data to generate a new set of sliding average data series.

[0010] 2. High-pass filtering

[0011] A high-pass filter (HPF) is a filter that retains signals with frequencies higher than a fixed frequency and attenuates signals with frequencies lower than a fixed frequency. The amount of attenuation depends on the design of the filter itself. High-pass filters are usually modeled as linear time-invariant systems. Therefore, if a high-pass filter is used to process time series data, the raw data needs to be converted from the time domain to the frequency domain with the help of a fast Fourier transform (FFT). In the frequency domain, the higher the frequency, the greater the energy of a point, and the more likely it is to be an extreme point.

[0012] 3. Pearson correlation coefficient

[0013] The correlation coefficient is used to measure the correlation between two data sets. Among them, the Pearson correlation coefficient is the most widely used correlation coefficient. The Pearson correlation coefficient r of two random variables X and Y is defined as equation (1). The expectations of X and Y are μ X and μ Y , and the standard deviations are σ X and σ Y .

[0014]

[0015] The absolute value of the Pearson correlation coefficient |r| does not exceed 1. The larger the |r|, the greater the correlation between the two variables. For example, if the |r| value of two variables is between 0.4 and 0.59, the two variables are moderately correlated. Summary of the invention

[0016] The present invention proposes a communication method and system for mobile devices, which can identify the identities of devices participating in communication in a wireless network and encrypt the communication content by using a generated session key to achieve secure communication. The present invention breaks through the bottleneck of low accuracy of identity authentication in existing mobile device identity authentication schemes based on shaking behavior due to the relative motion between mobile devices and the high sensitivity of acceleration sensors.

[0017] The technical solution of the present invention is as follows:

[0018] A communication method applied to a mobile device, wherein the mobile device is provided with an acceleration sensor, comprising the steps of:

[0019] 1) Under the same conditions, obtain the original acceleration data S of mobile device A and mobile device B a With S b and the corresponding timestamp T a With T b ;

[0020] 2) Based on the original acceleration data S a With S b and the corresponding timestamp T a With T b , calculate the starting points of mobile device A and mobile device B respectively, obtain the original acceleration data and corresponding timestamp after the starting point, and obtain the effective acceleration data S′ of mobile device A and mobile device B a With S′ b and the corresponding timestamp T′ a and T′ b ;

[0021] 3) Through the effective acceleration data S' a With S′ band the corresponding timestamp T′ a and T′ b , respectively obtain the original features of mobile device A and mobile device B;

[0022] 4) Calculate the common features of mobile device A and mobile device B based on the original features of mobile device A and mobile device B, and generate a common secret;

[0023] 5) Mobile device A and mobile device B generate a session key based on a common secret negotiation; if the session key is confirmed by mobile device A and mobile device B respectively, mobile device A and mobile device B communicate.

[0024] Further, the starting point of mobile device A is obtained by the following steps:

[0025] 1) The original acceleration data S a Normalized to the interval [0, 1];

[0026] 2) Calculate the difference between adjacent acceleration data in the normalized acceleration data;

[0027] 3) When two adjacent normalized acceleration data x ak With x a(k-1) When the difference between is greater than the set threshold τ1, where k is the number of the normalized acceleration data, the acceleration data x ak is considered as the starting point.

[0028] Furthermore, the original features of mobile device A are obtained by the following steps:

[0029] 1) Calculate the effective acceleration data M′ respectively a A set of valid extreme point timestamps on the M axis, including valid acceleration data S′ a It is composed of several effective acceleration data M′ on the M axis a The M axis includes: X axis, Y axis or Z axis;

[0030] 2) The effective acceleration data M′ of each M axis is a Convert to frequency domain and save as set F a , and for the set F a Sort the absolute value of each data in and record the largest value of δ, the filtering threshold τ0;

[0031] 3) Set F a All values ​​less than τ0 become 0, and we get the set F′ a , and the set F′ a Convert to the time domain;

[0032] 4) In the result of conversion to the time domain, extract the values ​​that are not 0 and obtain the set F″ a ;

[0033] 5) Calculate the timestamp set of the effective extreme points of the M axis and the set F″ a The intersection of n ;

[0034] 6) According to set E n The difference between adjacent elements in is used to obtain the original features of the mobile device A on the M axis;

[0035] 7) According to the original features of the mobile device A in each M axis, the original features of the mobile device A are obtained.

[0036] Further, the effective acceleration data M′ is calculated by the following steps: a The valid extreme point timestamp set E″′ on the M axis a :

[0037] 1) The effective acceleration data M′ of each M axis is obtained respectively a and the corresponding timestamp T′ a , calculate the smooth acceleration data M″ of the M axis a And the corresponding timestamp T″ a ;

[0038] 2) The effective acceleration data M′ a The timestamp corresponding to the extreme point is stored in the set E′ a ;

[0039] 3) Smooth acceleration data M″ a The timestamp corresponding to the extreme point is stored in the set E″ a ;

[0040] 4) For the set E″ a For each timestamp in the set E′ a Find the timestamp with the smallest difference from it, and store the timestamp with the smallest difference from it into the initial valid extreme point timestamp set;

[0041] 5) Process the effective acceleration data corresponding to the initial effective extreme point timestamp set by high-pass filtering to obtain the effective extreme point timestamp set E″′ a .

[0042] Further, the smooth acceleration data M″ of the M axis is calculated a The methods include: sliding average filtering method.

[0043] Furthermore, the effective acceleration data M′ a Methods for converting into the frequency domain include: Fast Fourier Transform method.

[0044] Furthermore, the set F′ a Methods for converting into the time domain include: Inverse Fast Fourier Transform method.

[0045] Furthermore, the common features of mobile device A and mobile device B are calculated by the following steps:

[0046] 1) Mobile device A selects the original feature set V of mobile device A a Center front Elementsω ai , get the original feature set V′ a ,in And randomly select a random value α i ←Z q , calculate the hash value h i =H1(ω ai ) and parameters Will save the parameter u i The set U is sent to the mobile device B;

[0047] 2) Mobile device B selects the original feature set V of mobile device B based on the set U b Center front Elementsω bi , get the original feature set V′ b , and randomly select a random number t←Z q , calculate the parameter z i =(u i ) t ;

[0048] 3) According to a set threshold τ2, the original feature set V′ b Expand to Collection Where τ2 is a natural number;

[0049] 4) For each original feature ω′ in the set W′ j , calculate the parameter p j =H2(H1(ω′ j ), (H1(ω′ j )) t ) and parameters And the parameter z i , including parameter L i The set L and the smoothed acceleration data S″ b Sent to mobile device A, where the smoothed acceleration data S″ b Through the effective acceleration data S' b get;

[0050] 5) Mobile device A uses smooth acceleration data S″ a With S″ b Authentication of the identity of mobile device B: If the identity authentication is successful, and when the number of common features V′ calculated |V′|≥τ3, the common features gather parameter τ3 is the set threshold, τ3≥1, and the calculation set V″={n i |ω ai ∈V′}, and combine the set V″ with the smoothed acceleration data S″ a Send to mobile device B;

[0051] 6) Mobile device B uses the smoothed acceleration data S″ a With S″ b Authenticate the identity of mobile device A: If the identity authentication is successful, and when the number of common features V″′ calculated is |V″′|≥τ3, calculate the common features V″′={ω bi |p i ∈V″∩L}.

[0052] Furthermore, the method for mobile device A to authenticate the identity of mobile device B includes: using the Pearson correlation coefficient.

[0053] Further, a common secret is generated by the following steps:

[0054] 1) Convert the elements in the common feature V′ and the common feature V″′ into binary respectively;

[0055] 2) Concatenate the binary values ​​of each element into a binary string, which is represented as a common secret.

[0056] Furthermore, the session key is confirmed by the following steps:

[0057] 1) Mobile device A randomly selects a generator g, selects random numbers Ra and Na from G, and uses the common secret ε and symmetric encryption algorithm E to encrypt g. Ra Encrypt and obtain the ciphertext E ε (g Ra ) and generator g are sent to mobile mobile device B;

[0058] 2) Mobile device B uses the common secret ε to encrypt the ciphertext E ε (g Ra ) is decrypted to get g Ra , select random numbers Rb and Nb from G, and calculate g Rb With session key ξ = g RaRb, and use the common secret ε and the session key ξ to Rb Encrypt with Nb and get the ciphertext E ε (g Rb ) and E ξ (Nb) is sent to mobile device A;

[0059] 3) Mobile device A uses the common secret ε to encrypt the ciphertext E ε (g Rb ) is decrypted to get g Rb , through the session key ξ = g RaRb Decrypt ciphertext E ξ (Nb), get the random number Nb′, and calculate the ciphertext E ξ (Na, Nb′) is sent to mobile device B;

[0060] 4) Mobile device B uses ξ to decrypt E ξ (Na, Nb′), obtain random numbers Na′ and Nb′; if the random number Nb′=Nb, then confirm that the session key ξ is the correct session key, and convert the calculated ciphertext E ξ (Na′) is sent to mobile device A;

[0061] 5) Mobile device A uses session key ξ to decrypt E ξ (Na′), obtain a random number Na′; if the random number Na′=Na, it is confirmed that the session key ξ is the correct session key.

[0062] A communication system applied to a mobile device, wherein the mobile device is provided with an acceleration sensor, comprising:

[0063] Mobile device A, used to obtain the original acceleration data S of mobile device A a and the corresponding timestamp T a ; Based on the original acceleration data S a and the corresponding timestamp T a , calculate the starting point of mobile device A, obtain the original acceleration data and corresponding timestamp after the starting point, and obtain the effective acceleration data S′ of mobile device A a Corresponding timestamp T′ a ; Through the effective acceleration data S ′ a and the corresponding timestamp T′ a , obtaining the original features of mobile device A; calculating the common features of mobile device A based on the original features of mobile device A and generating a common secret; negotiating with mobile device B to generate a session key based on the common secret; if the session key is confirmed by mobile device A and mobile device B respectively, communicating with mobile device B;

[0064] Mobile device B, used to obtain the original acceleration data S of mobile device B b and the corresponding timestamp T b , where the original acceleration data S b and the corresponding timestamp T b With the original acceleration data S a and the corresponding timestamp T a It is obtained under the same conditions; based on the original acceleration data S b and the corresponding timestamp T b , calculate the starting point of mobile device B, obtain the original acceleration data and corresponding timestamp after the starting point, and obtain the effective acceleration data S′ of mobile device B b and the corresponding timestamp T′ b ; Through the effective acceleration data S ′ b and the corresponding timestamp T′ b , obtain the original features of mobile device B; calculate the common features of mobile device B based on the original features of mobile device B to generate a common secret; negotiate with mobile device A to generate a session key based on the common secret; if the session key is confirmed by mobile device A and mobile device B respectively, communicate with mobile device A.

[0065] Compared with the prior art, the present invention has the following positive effects:

[0066] 1) Identity authentication and secure communication of mobile devices in wireless networks can be achieved without any prior knowledge or synchronization of the device's internal clock.

[0067] 2) By introducing sliding average filtering and high-pass filtering to process the original acceleration data, small fluctuations caused by the relative motion between mobile devices are removed to obtain highly correlated common secrets.

[0068] 3) Introduce the Pearson correlation coefficient for identity authentication to improve the success rate of identity authentication. BRIEF DESCRIPTION OF THE DRAWINGS

[0069] Figure 1 This is the system model diagram.

[0070] Figure 2 It is a scheme framework diagram.

[0071] Figure 3 It is a feature negotiation protocol diagram.

[0072] Figure 4 It is a diagram of the key generation and confirmation protocol. DETAILED DESCRIPTION

[0073] In order to make the objectives, technical solutions and advantages of the present invention more clearly understood, the present invention is further described in detail below with reference to the accompanying drawings.

[0074] Figure 1 This is a system model diagram of the present invention. The system model of the present invention is mainly composed of a user, a mobile device A and a mobile device B.

[0075] 1) User: One of the mobile device owners shakes the two mobile devices to initiate identity authentication and secure communication requests.

[0076] 2) Mobile device A: Provides an accelerometer to collect acceleration data during shaking, and provides computing resources and communication resources. It needs to cooperate with the user to send the data stored in the device to mobile device B through a wireless channel. However, the wireless channel is insecure and may be subject to attacks such as man-in-the-middle attacks, and the communication data may be stolen. It is also impossible to determine whether the recipient is mobile device B.

[0077] 3) Mobile device B: Provides an accelerometer to collect acceleration data during shaking, and provides computing resources and communication resources. It needs to receive data sent by mobile device A through a wireless channel, but cannot determine whether the data source is credible (i.e., whether it comes from mobile device A).

[0078] Specifically, the technical solution adopted by the present invention is as follows:

[0079] The present invention can be divided into three stages, namely, system setup and data pre-processing stage, feature extraction and negotiation stage, and key generation and confirmation stage. Figure 2 As shown, each stage contains multiple polynomial time algorithms.

[0080] First, we assume that: 1) The raw acceleration data obtained from mobile devices A and B is represented by S n , n = a, b, contains acceleration data in three directions, namely S n ={X n , Y n , Z n}. At the same time, the timestamp corresponding to the original acceleration data is represented by T n ={t n1 , t n2 ,…,t nm}, the entry of acceleration data is the same as the entry of timestamp, that is, the raw acceleration data in each direction can be represented as X n ={x n1 , x n2 , …, x nm},Y n ={y n1 ,y n2 , …, y nm}, Z n ={z n1 , z n2 , …, z nm}; 2) H1: {0, 1} * →G, which means that the input 01 string is output to G, and the output length is not fixed; 3) H2=G 2 →{0, 1} l , the size of l depends on the security level, which means that two elements in G are taken as input and a fixed-length 01 string is output; 4) q is the prime order of G; the specific algorithm designed by the present invention is as follows:

[0081] 1. Data preprocessing algorithm PreData(X n , T n )→(X′ n , T′ n ), mobile device A and mobile device B respectively execute the data preprocessing algorithm, and the input parameters are the original acceleration data X in each direction n and the corresponding timestamp set T n , output effective acceleration data X′ n And the corresponding valid acceleration data timestamp set T′ n , where the effective acceleration threshold τ1 needs to be set in advance. This algorithm can remove invalid acceleration data before shaking and improve the success rate of feature extraction.

[0082] 2. Extreme Filter (X′ n , T′ n )→(E″′ n , X″), mobile device A and mobile device B respectively execute extreme point filtering algorithm, and the input parameter is the effective acceleration data X′ in each direction n And the corresponding valid acceleration data timestamp set T′ n , the output is the timestamp set E″′ corresponding to the extreme point n As well as smoothing the acceleration data X″, the algorithm uses MAF to preliminarily remove false extreme points (extreme points that cannot be one-to-one matched) generated by the relative motion between mobile devices.

[0083] 3. Feature Extraction Algorithm FeatureExtract(X′ n , T′ n , E″′ n )→V n, mobile device A and mobile device B respectively execute feature extraction algorithms, and the input parameters are the effective acceleration data X′ in each direction n , the corresponding valid acceleration data timestamp set T′ n The timestamp set E″′ corresponding to the extreme points generated by the extreme point filtering algorithm n , the output is the original feature set V n , where the HPF threshold δ needs to be set in advance. The algorithm uses HPF to further remove false extreme points and calculates the difference between the corresponding timestamps of adjacent extreme points as the original feature.

[0084] 4. Feature Reconcil (V a , V b )→(V′, V″′), mobile device A and mobile device B jointly execute the feature negotiation algorithm, and the input parameters are the original features V obtained by each of the two devices a , V b , the output parameter is the common feature set V′, V″′, where is the original feature threshold, which is used to set the required number of original features. τ2 is the common feature threshold, which needs to be set in advance. The algorithm obtains the same two common feature sets for two mobile devices and improves the success rate of obtaining common features by expanding the original features.

[0085] 5. Pearson correlation coefficient calculation algorithm PearsonAuthen(S″) a , S″ b )→{true, false}, mobile device A and mobile device B are calculated separately, and the input is the set S″ of smoothed acceleration data in all directions of the two devices after the extreme point filtering algorithm. a and S″ b , if the two sets of data come from two mobile devices moving at the same time (i.e., identity authentication is passed), the output is true, otherwise the output is false.

[0086] 6. Key generation algorithm KeyGen(ε)→ξ, which is jointly completed by mobile device A and mobile device B. The input is the common secret ε converted from the common feature set V′, V″′ obtained by the feature negotiation algorithm. The output is the high-entropy common session key ξ generated for the two mobile devices.

[0087] In the present invention, the main tasks of each stage are as follows:

[0088] 1. In the system setup and data pre-processing stage, mobile device A and mobile device B pre-process the collected data through PreData(·). Specifically, 1) collect the raw acceleration data S generated by shaking simultaneously n 2) Normalize the original acceleration data to the interval [0, 1]. 3) Calculate the difference between adjacent acceleration data in the normalized acceleration data. 4) Introduce a valid data threshold τ1. When the difference between two adjacent acceleration data (for example, x nk -x n(k-1) ) is greater than τ1, then x nk is regarded as the shaking starting point, and only remains at x nk 5) Obtain the effective acceleration data of the two mobile devices (i.e., X′ n , Y′ n , Z′ n , n=a, b) and the corresponding timestamp.

[0089] 2. In the feature extraction and reconciliation stage, the preprocessed acceleration data (i.e., X′ n , Y′ n , Z′ n , n = a, b) is the same, so X′ n Take this as an example for detailed explanation.

[0090] Mobile device A and mobile device B first execute the ExtremeFilter(·) algorithm to complete extreme point filtering. Specifically, 1) MAF is used to filter X′ n Processing is performed to obtain the smooth acceleration data X″ of the two devices n 2) Find X′ n The extreme points in the set E′ are recorded with the corresponding timestamps. n 3) Find X″ n The extreme points in the set E″ are recorded with the corresponding timestamps. n . 4) For E″ n Each timestamp t″ nj , find E′ n Middle and t″ nj The timestamp t′ with the smallest difference ni (i.e. |t″ nj -t′ ni | minimum), save to set E″′ n middle.

[0091] Then, the two devices use the FeatureExtract(·) algorithm to complete the final feature extraction. Specifically, 1) use FFT to transform X′ n Convert to frequency domain and save as F n 2) F n Sort the absolute value of each data in the filter, and record the largest value of the δth (HPF threshold) as the filtering threshold τ0. n All values ​​less than τ0 in F become 0, and other values ​​remain unchanged. Use iFFT (Inverse Fast Fourier Transform) to transform F n to the time domain. 4) Convert F n The values ​​that are not 0 are saved in F' n , calculate E″′ n and F′ n The intersection of two sets is denoted by E n 5) Calculate E n The difference between adjacent elements in is used as the original feature (i.e. ω ni ), save to collection V n .

[0092] Finally, mobile device A and mobile device B collaborate to complete feature negotiation through the FeatureReconcil(·) algorithm. Specifically, 1) mobile device A selects V a Center front elements, denoted as For ω ai ∈V′ a , Randomly select α i ←Z q , calculate h i =H1(ω ai ), will u i Save to U and send U to mobile device B. 2) After receiving U, mobile device B selects V b Center front elements, denoted as Randomly select t←Z q , for the received u i , Calculate z i =(u i ) t If τ2=2, then ω bi ∈V′ b , Expand to Collection For ω′ in the W′ set j , calculate p j =H2(H1(ω′ j ), (H1(ω′ j)) t ), L i ={p i1 ,…,p i5}, L i Deposit L, and z i .L, S″ b Sent to mobile device A. 3) Receive z i .L, S″ b After that, mobile device A uses the PearsonAuthen(·) algorithm to authenticate its identity. If the identity authentication is successful, the calculation Order Collection calculate and V″={n i |ω ai ∈V′}. If the identity authentication fails or |V′|<4, the protocol needs to be re-executed, otherwise V″, S″ a To mobile device B. 4) Receive V″, S″ a After that, mobile device B uses PearsonAuthen(·) algorithm to authenticate the identity. If the identity authentication is successful, calculate V″′={ω bi |p i ∈V″∩L}. If the identity authentication fails or |V″′|<4, the protocol needs to be re-executed.

[0093] Theoretically, the elements in V′ and V″′ are the same, which are called the common features of mobile device A and mobile device B. The elements in the two sets are converted into binary in turn and connected into the form of binary strings, which are represented as the common secret ε.

[0094] 3. In the key generation and confirmation phase, mobile device A and mobile device B use the common secret ε obtained in the feature extraction and negotiation phase as the input of the KeyGen(·) algorithm to generate a session key. Specifically, 1) mobile device A randomly selects a generator g, and selects random numbers Ra and Na from G, and uses ε and the symmetric encryption algorithm E to encrypt g. Ra Encryption (E ε (g Ra )), the ciphertext E ε (g Ra ) and the generator g are sent to mobile device B. 2) Use ε to ε (g Ra ) to decrypt and get g Ra . Select random numbers Rb, Nb from G and calculate g in sequence Rb ξ=g RaRb . Use ε and ξ to calculate gRb and Nb to encrypt (i.e. E ε (g Rb ) and E ξ (Nb)), send the ciphertext E ε (g Rb ) and E ξ (Nb) to mobile device A. 3) Mobile device A uses key ε to ε (g Rb ) to decrypt and get g Rb . Calculate ξ=g RaRb , and use ξ to decrypt E ξ (Nb), obtain Nb. Calculate E ξ (Na, Nb) and sends it to mobile device B. 4) Mobile device B uses ξ to decrypt E ξ (Na, Nb), obtain Na, Nb, if Nb is correct, set ξ as the session key and calculate E ξ (Na) is sent to mobile device A. Otherwise, key confirmation fails and the protocol needs to be re-executed. 5) Mobile device A uses key ξ to decrypt E ξ (Na) Obtain Na. If Na is correct, set ξ as the session key. Otherwise, the key confirmation fails and the protocol needs to be re-executed, returning to shake again.

[0095] The above description is only a preferred embodiment of the present invention and is not intended to limit the present invention. Those skilled in the art should understand that any modifications, equivalent substitutions or improvements made within the spirit and principles of the present invention should be included in the protection scope of the present invention, and the protection scope shall be based on that defined in the claims.

Claims

1. A communication method applied to a mobile device, wherein the mobile device is provided with an acceleration sensor, comprising the steps of: 1) Under the same conditions, obtain the original acceleration data S of mobile device A and mobile device B a With S b And the corresponding timestamp T a With T b ; 2) Based on the original acceleration data S a With S b And the corresponding timestamp T a With T b , calculate the starting points of mobile device A and mobile device B respectively, obtain the original acceleration data and corresponding timestamp after the starting point, and obtain the effective acceleration data S′ of mobile device A and mobile device B a With S′ b and the corresponding timestamp T′ a and T′ b ; 3) Through the effective acceleration data S' a With S′ b and the corresponding timestamp T′ a and T′ b , respectively obtaining original features of mobile device A and mobile device B; wherein obtaining the original features of mobile device A includes: Calculate the effective acceleration data M′ respectively a A set of valid extreme point timestamps on the M axis, including valid acceleration data S′ a It is composed of several effective acceleration data M′ on the M axis a The M axis includes: X axis, Y axis or Z axis; The effective acceleration data M′ of each M axis is a Convert to frequency domain and save as set F a , and for the set F a Sort the absolute value of each data in and record the largest value of δ, the filtering threshold τ0; The set F a All values ​​less than τ0 become 0, and we get the set F′ a , and the set F′ a Convert to the time domain; In the result of conversion to the time domain, extract the values ​​that are not 0 and obtain the set F″ a ; Calculate the timestamp set of the effective extreme points of the M axis and the set F″ a The intersection of n ; According to the set E n The difference between adjacent elements in is used to obtain the original features of the mobile device A on the M axis; According to the original features of the mobile device A in each M axis, the original features of the mobile device A are obtained; 4) Based on the original features of mobile device A and mobile device B, the common features of mobile device A and mobile device B are calculated to generate a common secret; wherein, The common features of the computing mobile device A and the mobile device B include: Mobile device A selects the original feature set V of mobile device A a Center front Elementsω ai , get the original feature set V′ a ,in And randomly select a random value α i ←Z q , calculate the hash value h i =H1(ω ai ) and parameters Will save the parameter u i The set U is sent to the mobile device B; Mobile device B selects the original feature set V of mobile device B based on the set U b Center front Elementsω bi , get the original feature set V′ b , and randomly select a random number t←Z q , calculate the parameter z i =(u i ) t ; According to a set threshold τ2, the original feature set V′ b Expand to Collection Where τ2 is a natural number; For each original feature ω′ in the set W′ j , calculate the parameter p j =H2(H1(ω′ j ), (H1(ω′ j )) t ) and parameters And the parameter z i , including parameter L i The set L and the smoothed acceleration data S″ b Sent to mobile device A, where the smoothed acceleration data S″ b Through the effective acceleration data S' b get; Mobile device A uses smooth acceleration data S″ a With S″ b Authentication of the identity of mobile device B: If the identity authentication is successful, and when the number of common features V′ calculated |V′|≥τ3, the common features gather parameter τ3 is the set threshold, τ3≥1, and the calculation set V″={n i |ω ai ∈V′}, and combine the set V″ with the smoothed acceleration data S″ a Send to mobile device B; Mobile device B uses smoothed acceleration data S″ a With S″ b Authenticate the identity of mobile device A: If the identity authentication is successful, and when the number of common features V″′ calculated is |V″′|≥τ3, calculate the common features V″′={ω bi |p i ∈V″∩L}; The generating of the common secret comprises: Convert the elements in the common feature V′ and the common feature V″′ into binary respectively; Concatenate the binary values ​​of each element into a binary string, which is represented as a common secret; 5) Mobile device A and mobile device B generate a session key based on a common secret negotiation; if the session key is confirmed by mobile device A and mobile device B respectively, mobile device A and mobile device B communicate.

2. The method according to claim 1, characterized in that Get the starting point of mobile device A by following the steps below: 1) The original acceleration data S a Normalized to the interval [0, 1]; 2) Calculate the difference between adjacent acceleration data in the normalized acceleration data; 3) When two adjacent normalized acceleration data x ak With x a(k-1) When the difference between is greater than the set threshold τ1, where k is the number of the normalized acceleration data, the acceleration data x ak is considered as the starting point.

3. The method according to claim 1, characterized in that The effective acceleration data M' is calculated by the following steps: a The valid extreme point timestamp set E″′ on the M axis a : 1) The effective acceleration data M′ of each M axis is obtained respectively a and the corresponding timestamp T′ a , calculate the smooth acceleration data M″ of the M axis a And the corresponding timestamp T″ a ; 2) The effective acceleration data M′ a The timestamp corresponding to the extreme point is stored in the set E′ a ; 3) Smooth acceleration data M″ a The timestamp corresponding to the extreme point is stored in the set E″ a ; 4) For the set E″ a For each timestamp in the set E′ a Find the timestamp with the smallest difference from it, and store the timestamp with the smallest difference from it into the initial valid extreme point timestamp set; 5) Process the effective acceleration data corresponding to the initial effective extreme point timestamp set by high-pass filtering to obtain the effective extreme point timestamp set E″′ a .

4. The method according to claim 1, characterized in that Calculate the smooth acceleration data M″ of the M axis a The method includes: sliding average filtering method; converting the effective acceleration data M′ a Methods for converting to the frequency domain include: fast Fourier transform method; converting the set F′ a Methods for converting into the time domain include: Inverse Fast Fourier Transform method.

5. The method according to claim 1, characterized in that The method for mobile device A to authenticate the identity of mobile device B includes: using the Pearson correlation coefficient.

6. The method according to claim 1, characterized in that Confirm the session key by following these steps: 1) Mobile device A randomly selects a generator g, selects random numbers Ra and Na from G, and uses the common secret ε and symmetric encryption algorithm E to encrypt g. Ra Encrypt and obtain the ciphertext E ε (g Ra ) and generator g are sent to mobile device B; 2) Mobile device B uses the common secret ε to encrypt the ciphertext E ε (g Ra ) is decrypted to get g Ra , select random numbers Rb and Nb from G, and calculate g Rb With session key ξ=g RaRb , and use the common secret ε and the session key ξ to Rb Encrypt with Nb and get the ciphertext E ε (g Rb ) and E ξ (Nb) is sent to mobile device A; 3) Mobile device A uses the common secret ε to encrypt the ciphertext E ε (g Rb ) is decrypted to get g Rb , through the session key ξ = g RaRb Decrypt ciphertext E ξ (Nb), get the random number Nb′, and calculate the ciphertext E ξ (Na, Nb′) is sent to mobile device B; 4) Mobile device B uses ξ to decrypt E ξ (Na, Nb′), obtain random numbers Na′ and Nb′; if the random number Nb′=Nb, then confirm that the session key ξ is the correct session key, and convert the calculated ciphertext E ξ (Na′) is sent to mobile device A; 5) Mobile device A uses session key ξ to decrypt E ξ (Na′), obtain a random number Na′; if the random number Na′=Na, it is confirmed that the session key ξ is the correct session key.

7. A communication system applied to a mobile device, the mobile device having an acceleration sensor, comprising: Mobile device A, used to obtain the original acceleration data S of mobile device A a And the corresponding timestamp T a ; Based on the original acceleration data S a And the corresponding timestamp T a , calculate the starting point of mobile device A, obtain the original acceleration data and corresponding timestamp after the starting point, and obtain the effective acceleration data S′ of mobile device A a Corresponding timestamp T′ a ; Through the effective acceleration data S ′ a and the corresponding timestamp T′ a , obtaining the original features of mobile device A; calculating the common features of mobile device A based on the original features of mobile device A to generate a common secret; negotiating with mobile device B to generate a session key based on the common secret; if the session key is confirmed by mobile device A and mobile device B respectively, communicating with mobile device B; Mobile device B, used to obtain the original acceleration data S of mobile device B b And the corresponding timestamp T b , where the original acceleration data S b And the corresponding timestamp T b With the original acceleration data S a And the corresponding timestamp T a It is obtained under the same conditions; based on the original acceleration data S b And the corresponding timestamp T b , calculate the starting point of mobile device B, obtain the original acceleration data and corresponding timestamp after the starting point, and obtain the effective acceleration data S′ of mobile device B b and the corresponding timestamp T′ b ; Through the effective acceleration data S ′ b and the corresponding timestamp T′ b , obtain the original features of mobile device B; Calculate the common features of mobile device B based on the original features of mobile device B to generate a common secret; negotiate with mobile device A to generate a session key based on the common secret; if the session key is confirmed by mobile device A and mobile device B respectively, communicate with mobile device A; The obtaining of the original features of the mobile device A includes: Calculate the effective acceleration data M′ respectively a A set of valid extreme point timestamps on the M axis, including valid acceleration data S′ a It is composed of several effective acceleration data M′ on the M axis a The M axis includes: X axis, Y axis or Z axis; The effective acceleration data M′ of each M axis is a Convert to frequency domain and save as set F a , and for the set F a Sort the absolute value of each data in and record the largest value of δ, the filtering threshold τ0; The set F a All values ​​less than τ0 become 0, and we get the set F′ a , and the set F′ a Convert to the time domain; In the result of conversion to the time domain, extract the values ​​that are not 0 and obtain the set F″ a ; Calculate the timestamp set of the effective extreme points of the M axis and the set F″ a The intersection of n ; According to the set E n The difference between adjacent elements in is used to obtain the original features of the mobile device A on the M axis; According to the original features of the mobile device A in each M axis, the original features of the mobile device A are obtained; The common features of the computing mobile device A and the mobile device B include: Mobile device A selects the original feature set V of mobile device A a Center front Elementsω ai , get the original feature set V′ a ,in And randomly select a random value α i ←Z q , calculate the hash value h i =H1(ω ai ) and parameters Will save the parameter u i The set U is sent to the mobile device B; Mobile device B selects the original feature set V of mobile device B based on the set U b Center front Elementsω bi , get the original feature set V′ b , and randomly select a random number t←Z q , calculate the parameter z i =(u i ) t ; According to a set threshold τ2, the original feature set V′ b Expand to Collection Where τ2 is a natural number; For each original feature ω′ in the set W′ j , calculate the parameter p j =H2(H1(ω′ j ), (H1(ω′ j )) t ) and parameters And the parameter z i , including parameter L i The set L and the smoothed acceleration data S″ b Sent to mobile device A, where the smoothed acceleration data S″ b Through the effective acceleration data S' b get; Mobile device A uses smooth acceleration data S″ a With S″ b Authentication of the identity of mobile device B: If the identity authentication is successful, and when the number of common features V′ calculated |V′|≥τ3, the common features gather parameter τ3 is the set threshold, τ3≥1, and the calculation set V″={n i |ω ai ∈V′}, and combine the set V″ with the smoothed acceleration data S″ a Send to mobile device B; Mobile device B uses smoothed acceleration data S″ a With S″ b Authenticate the identity of mobile device A: If the identity authentication is successful, and when the number of common features V″′ calculated is |V″′|≥τ3, calculate the common features V″′={ω bi |p i ∈V″∩L}; The generating of a common secret comprises: Convert the elements in the common feature V′ and the common feature V″′ into binary respectively; The binary values ​​of each element are concatenated into a binary string, which is represented as a common secret.