Key generation method and data processing method, device and system based on the method

By generating keys based on physical layer channel characteristics in the IoT system, the problems of key fixity and eavesdropping risks in the IoT system are solved, and high-security key generation and use are achieved, which is suitable for cost-sensitive application scenarios. .

CN114513779BActive Publication Date: 2024-10-29CHINA UNIONPAY
View PDF 1 Cites 0 Cited by

Patent Information

Application Number
CN202111240728.8
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2021-10-25
Publication Date
2024-10-29
Estimated Expiration
2041-10-25

AI Technical Summary

Technical Problem

In the Internet of Things system, the existing terminal encryption method is difficult to guarantee information security due to the fixed nature of the key, especially in cost-sensitive application scenarios, and asymmetric encryption requires a reliable third-party public key certification agency, and the negotiation process Vulnerable to illegal eavesdropping.

Method used

By generating a key based on the physical layer channel characteristics, a pilot training sequence is sent in wireless communication between devices, the channel characteristics are extracted to generate an initial key, and a common key is determined through a key agreement mechanism, which is further verified through hash value consistency. Ensure key consistency.

Benefits of technology

It improves the security and consistency of keys, reduces the risk of eavesdropping, saves storage security resources, and is suitable for IoT devices with limited resources.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN114513779B_ABST
    Figure CN114513779B_ABST
Patent Text Reader

Abstract

The present application relates to information security technology, and in particular to a key generation method based on physical layer channel characteristics, a data processing method using the method, and a client device, an Internet of Things system, and a computer-readable storage medium for implementing the above method. According to one aspect of the present application, the key generation method includes: A. determining a pilot training sequence sent between a first device and a second device based on the coherence time of wireless communication between the two devices; B. extracting channel characteristics from the pilot training sequence sent by the second device to generate a first initial key, and sending the determined pilot training sequence to the second device so that the second device can generate a second initial key in the same manner as the first key; and C. utilizing a key negotiation mechanism between the first device and the second device to determine a common key between the first device and the second device from the first initial key and the second initial key.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to data processing technology, and in particular to a key generation method based on physical layer channel characteristics, a data processing method using the method, and a client device, an Internet of Things system, and a computer-readable storage medium for implementing the method. Background Art

[0002] In application scenarios such as parking and charging, the current convenient payment solutions require the corresponding keys and payment account related information to be sent to the device side, and the device side initiates "end-to-end" verifiable payment, where terminal encryption methods usually include one type one password, one machine one password, and one-time one password. Due to the fixed nature of the keys, the above terminal encryption methods are difficult to ensure information security.

[0003] Although asymmetric encryption and other technologies can be used to negotiate session keys, this requires a reliable third-party public key certification agency. In addition, when symmetric keys are used, the negotiation process is vulnerable to illegal eavesdropping.

[0004] In addition, the IoT system has the characteristics of a large number of terminals, diverse and complex usage environments, which further aggravates the difficulty of solving the above-mentioned information security problems, especially in cost-sensitive application scenarios. Summary of the invention

[0005] A key generation method according to one aspect of the present application comprises the following steps:

[0006] A. determining a pilot training sequence sent between the first device and the second device based on a coherence time of wireless communication between the two devices;

[0007] B. extracting channel characteristics from the determined pilot training sequence sent by the second device to generate a first initial key based on the extracted channel characteristics, and sending the determined pilot training sequence to the second device so that the second device can generate a second initial key based on the channel characteristics extracted from the received pilot training sequence in the same manner as that of generating the first key; and

[0008] C. Using a key negotiation mechanism between the first device and the second device, a common key between the first device and the second device is determined based on the first initial key and the second initial key.

[0009] Optionally, the key generation method further comprises the following steps:

[0010] D. Generate a first hash value of the key and send the generated first hash value to the second device;

[0011] E. receiving a second hash value of the key generated by the second device;

[0012] F. Determine the consistency of the keys of the first device and the second device by comparing the first hash value with the second hash value.

[0013] Optionally, in the above key generation method, step A includes:

[0014] A1. receiving an initial pilot training sequence from the second device;

[0015] A2. determining, according to the length of the initial pilot training sequence, whether the two-way detection time between the first device and the second device is less than a threshold related to the coherence time; and

[0016] A3. If the two-way detection time is greater than or equal to the coherence time, instruct the second device to send an initial pilot training sequence with a reduced length and execute steps A1 and A2 again; otherwise, send the current initial pilot training sequence to the second device and determine the current initial pilot training sequence as the pilot training sequence.

[0017] Optionally, in the above key generation method, step A includes:

[0018] A1', sending an initial pilot training sequence to the second device;

[0019] A2': If a message instructing to send an initial pilot training sequence with a reduced length is received from the second device, the length of the current initial pilot training sequence is reduced and the initial pilot training sequence with a reduced length is sent to the second device; otherwise, the current initial pilot training sequence is determined as the pilot training sequence.

[0020] Optionally, in the above-mentioned key generation method, the channel characteristics include one or more of the following items: received signal strength, channel phase, channel state information, channel impulse response and signal envelope.

[0021] Optionally, in the above key generation method, step B includes:

[0022] B1, generating a sequence of channel characteristic values; and

[0023] B2. Perform quantization processing on the channel characteristic value to obtain a key sequence as the first initial key.

[0024] Optionally, in the above key generation method, step C includes:

[0025] C1. receiving information about a candidate key from the second device, where the candidate key is a sequence fragment extracted from the second initial key, and the information indicates a position of the sequence fragment in the second initial key;

[0026] C2. Comparing the consistency of the sequence fragments at the positions indicated by the information in the first initial key and the second initial key;

[0027] C3. If they are consistent, the candidate key is determined as the key; otherwise, a sequence fragment is extracted from other positions of the first initial key as a replacement candidate key and information about the replacement candidate key is sent to the second device.

[0028] According to another aspect of the present application, a client device comprises:

[0029] Memory;

[0030] Processor; and

[0031] A computer program stored on said memory and executable on said processor, the execution of which causes:

[0032] A. determining a pilot training sequence sent between the client device and other client devices based on a coherence time of wireless communication between the client device and the other client devices;

[0033] B. extracting channel characteristics from the determined pilot training sequence sent by the client device to generate a first initial key based on the extracted channel characteristics, and sending the determined pilot training sequence to other client devices so that the other client devices can generate a second initial key based on the channel characteristics extracted from the received pilot training sequence in the same manner as the first key is generated; and

[0034] C. Using a key negotiation mechanism between the client device and other client devices, determine a common key between the client device and other client devices based on the first initial key and the second initial key.

[0035] A method for performing data processing in an Internet of Things system according to another aspect of the present application comprises the following steps:

[0036] A. Generate a common key between the local access device and the external device using the above-mentioned key generation method, wherein the local access device and the external device serve as the first device and the second device respectively;

[0037] B. The local device generates verification information related to the key and sends the verification information to the gateway;

[0038] C. The local device forwards the message from the external device to the gateway; and

[0039] D. The gateway uses the verification information to verify the legitimacy of the message and extract the business data in the message.

[0040] Optionally, in the above method, the local access device is an electronic license plate antenna or a charging pile, and the external device is a vehicle-mounted terminal.

[0041] Optionally, in the above method, the verification information includes a key and its hash value, the message contains business data encrypted using the key and the hash value of the key, and in step D, the legitimacy of the data processing request is verified by comparing the hash value of the key generated by the local access device with the hash value of the key generated by the external device, and the business data contained in the data processing request is decrypted using the key provided by the local access device.

[0042] According to another aspect of the present application, an Internet of Things system comprises:

[0043] at least one local access device;

[0044] a gateway coupled to the local access device;

[0045] and a remote server coupled to the gateway,

[0046] The local access device is configured to: 1) execute the above-mentioned key generation method to generate a key common to the local access device and the external device, wherein the local access device and the external device serve as the first device and the second device respectively; 2) generate verification information related to the key and send the verification information to the gateway; 3) forward a message from the external device to the gateway; and

[0047] The gateway is configured to use the verification information to verify the legitimacy of the message and extract the business data in the message, and upload the business data to the remote server.

[0048] According to another aspect of the present application, a computer-readable storage medium stores a computer program, wherein the program implements the method described above when executed by a processor.

[0049] In some embodiments of the present application, the consistency of the channel characteristics obtained by both parties is ensured by making the legitimate device or node complete channel detection and estimation within a time interval related to the coherence time, thereby realizing the one-time use of the key. On the other hand, the high locality of the channel characteristics can prevent the eavesdropping node from obtaining channel characteristics similar to those of the legitimate communication node, which greatly improves the security of the key. Furthermore, since there is no need to consider the storage security requirements related to the fixed key, software and hardware resources are saved, which is particularly beneficial for resource-constrained IoT device nodes. BRIEF DESCRIPTION OF THE DRAWINGS

[0050] The above and / or other aspects and advantages of the present application will become clearer and easier to understand through the following description of various aspects in conjunction with the accompanying drawings, in which the same or similar units are represented by the same reference numerals. The accompanying drawings include:

[0051] Figure 1 An exemplary process for dynamically adjusting a pilot training sequence according to some embodiments of the present application is shown.

[0052] Figure 2 An exemplary process for generating a key according to some embodiments of the present application is shown.

[0053] Figure 3 An example of a quantized decision rule is shown.

[0054] Figure 4 An exemplary process of key negotiation according to some embodiments of the present application is shown.

[0055] Figure 5 A schematic block diagram of a typical client device.

[0056] Figure 6 The present invention is a flowchart of a key generation method according to some embodiments of the present application.

[0057] Figure 7 A schematic diagram of a typical IoT system.

[0058] Figure 8 The present invention is a flowchart of a method for performing data processing in an Internet of Things system according to some embodiments of the present application.

[0059] Fig. 9 The present invention is a flowchart of a method for performing data processing in an Internet of Things system according to some embodiments of the present application. DETAILED DESCRIPTION

[0060] The present application is described more fully below with reference to the accompanying drawings in which illustrative embodiments of the present application are illustrated. However, the present application may be implemented in different forms and should not be interpreted as being limited to the embodiments given herein. The above embodiments are given to make the disclosure herein comprehensive and complete, so as to more fully convey the scope of protection of the present application to those skilled in the art.

[0061] In this specification, terms such as "comprise" and "include" indicate that in addition to the units and steps directly and explicitly stated in the specification and claims, the technical solution of the present application does not exclude the situation where there are other units and steps that are not directly or explicitly stated.

[0062] Terms such as "first" and "second" do not indicate the order of the units in terms of time, space, size, etc., but are only used to distinguish the units.

[0063] In this specification, devices, client devices and nodes should be broadly understood as various end devices connected to the Internet of Things system, such as devices located in the perception and recognition layer of the Internet of Things system. In vehicle applications, they can be electronic license plate antennas, charging piles, vehicle terminals and payment terminals. In the following description, unless otherwise specified, devices, client devices and nodes can be used interchangeably.

[0064] In some embodiments of the present application, the generation of a common key between nodes or devices is based on the channel characteristics of the physical layer, that is, the key is generated by the characteristics of the physical channel when the devices communicate. Optionally, the key generation process may include steps such as channel estimation, candidate key generation, key negotiation and generation, and optional consistency verification. Exemplarily, the channel characteristics include, but are not limited to, one of the following items or various combinations of the following items: received signal strength, channel phase, channel state information, channel impulse response, and signal envelope.

[0065] In some embodiments of the present application, devices or nodes send pilot training sequences to each other for channel estimation. Optionally, the length of the training sequence can be dynamically adjusted based on the coherence time and the detection interval factor, so that the channel estimation of both parties remains highly consistent.

[0066] The following is with the help of Figure 1 An exemplary process for dynamically adjusting the pilot training sequence is described. Figure 1 As shown, in step 101, node Alice sends an initial pilot training sequence to node Bob. Then in step 103, node Bob receives the initial pilot training sequence SEQ from node Alice. 1 Determine the current coherence time T of the communication between the two c , the coherence time is inversely proportional to the frequency of communication between the two. Then in step 105, node Bob determines the threshold t for the two-way detection time. CE The two-way detection time here can be the sum of the time required for two nodes to complete channel detection and estimation. Exemplarily, the threshold t can be set in the following manner: CE :

[0067] t CE =α×T c (1)

[0068] Here, α is an empirical parameter, which can take values ​​in the interval (0, 1).

[0069] Thereafter, in step 107, node Bob sets the bidirectional detection time (can be estimated based on equipment performance or experience or determined based on experiments) and threshold t CEIf the two-way detection time is compared Less than the threshold t CE , then go to step 109, determine the current initial pilot training sequence as the pilot training sequence and send the current initial pilot training sequence to node Alice so that node Alice obtains a channel response; otherwise, go to step 111, shorten the length of the current initial pilot training sequence.

[0070] After step 111 , the process proceeds to step 113 , in which an initial pilot training sequence with a reduced length is sent to the node Alice so that the node Alice can obtain a channel response.

[0071] Accordingly, in step 115, node Alice determines whether the length of the received pilot training sequence is adjusted by node Bob. If it is an initial pilot training sequence whose length has not been adjusted, then the process proceeds to step 117 to confirm that the current initial pilot training sequence is a pilot training sequence. If the received initial pilot training sequence is a reduced length, then the reduced length initial pilot training sequence is processed in the same manner as node Bob processes the initial pilot training sequence received from node Alice.

[0072] Figure 1 The process shown can be iteratively executed until both devices determine that the two-way sounding time is less than a threshold, thereby improving the consistency of the physical layer channel characteristics obtained by both parties.

[0073] In some embodiments of the present application, a device or node generates a common key for both parties based on physical layer channel characteristics, and the key can be used to encrypt data transmitted between the devices. Optionally, a key negotiation mechanism can be introduced to ensure the consistency of the keys generated by the two devices.

[0074] The following is with the help of Figure 2 An exemplary process for generating a key is described. In the description of the process, the received signal strength is used as an example of a channel characteristic. Figure 2 As shown, in step 201, devices Alice and Bob use their respective measurement modules to measure the received signal strength (RSS) amplitude of the pilot training sequence within the coherence time, thereby obtaining their respective RRS amplitude sequences SEQ(A) and SEQ(B). Subsequently, in step 203, devices Alice and Bob quantize the sample values ​​in the RRS amplitude sequences SEQ(A) and SEQ(B) according to a preset quantization decision rule, thereby generating corresponding initial key sequences Q(A) and Q(B).

[0075] Figure 3An illustrative example of the above quantization decision rule is given, where the vertical axis represents the received signal strength and the horizontal axis represents time. In this example, the sample values ​​whose RSS amplitude is greater than the upper limit of the quantization decision are quantized to 1, and the sample values ​​whose RSS amplitude is less than the lower limit of the quantization decision are quantized to 0, thereby forming the initial key sequences Q(A) and Q(B).

[0076] After step 203, the process proceeds to step 205, in which a common key is generated between devices Alice and Bob by means of a key agreement mechanism between the two. Figure 4 The continuous feature extraction algorithm shown is used to complete the key negotiation process.

[0077] Step 401: Device Alice searches for a sequence segment that meets the set value characteristics in the initial key sequence Q(A) as a candidate key and sends the position information of the searched sequence segment (e.g., an array L containing the center position of the sequence segment) to device Bob, for example, via a public channel. Exemplarily, m consecutive samples with values ​​above or below the decision threshold can be regarded as sequence segments or candidate keys that meet the set value characteristics.

[0078] Step 403: After receiving the location information sent by device Alice via the public channel, device Bob determines whether the sequence fragment at the corresponding position in the initial key sequence Q(B) also has the same value characteristics. If the condition is met, go to step 405, otherwise go to step 407.

[0079] Step 405: The device Bob determines the sequence segment as the common key between the devices Alice and Bob and returns a confirmation message to the device Alice indicating that the candidate key has been determined as the common key.

[0080] Step 407: Device Bob searches for sequence segments or candidate keys that meet the set value characteristics in the initial key sequence Q(B) and sends the updated position information (eg, array L' containing the center positions of the sequence segments searched separately) to device Alice via a public channel.

[0081] Step 409: After receiving the updated position information (array L') via the public channel, device Alice determines whether the sequence fragment at the corresponding position in the initial key sequence Q(A) also has the same value characteristics. If the condition is met, go to step 411, otherwise go to step 413.

[0082] Step 411: the device Alice determines the sequence segment searched by the device Bob in step 407 as the common key of the devices Bob and Alice and returns a confirmation message to the device Bob indicating that the candidate key has been determined as the common key.

[0083] Step 413: Device Alice further searches for sequence segments or candidate keys that meet the set value characteristics in the initial key sequence Q(A) and sends further updated position information (e.g., an array L” containing the center positions of the further searched sequence segments) to device Bob via a public channel.

[0084] After step 413 Figure 4 The key agreement process shown will return to step 403, whereby a common key can be generated in an iterative manner. A and K B Represent the keys generated at devices Alice and Bob respectively.

[0085] The key K generated through the above key negotiation process A and K B Occasionally, inconsistencies may occur due to differences in the two-way channel. To further improve the consistency level of the key, optionally but not necessarily, Figure 2 As shown in FIG. 2 , a further cryptographic consistency check process is performed after step 205. Specifically, in step 207, devices Alice and Bob generate keys K A and K B The hash value H(K A ) and H(K B ) and sends the generated hash value to the other party. Then, step 209 is entered, and devices Alice and Bob receive the hash value H(K B ) and H(K A ). Then in step 211, devices Alice and Bob determine whether the received hash value matches the locally generated hash value. If so, they confirm the key K A and K B The consistency check is passed, so the key K A (or K B ) will be used as a common key for subsequent data processing operations, otherwise return to step 205 to continue negotiating and generating a common key. Optionally, after step 211, it is also possible to return to step 201 and restart the key generation process.

[0086] Since the channel response within the coherence time is basically the same, the legitimate device or node only needs to complete the channel detection and estimation between each other within the time interval related to the coherence time to ensure the high consistency of the channel characteristics obtained by both parties, which can improve the consistency level of the generated key and reduce the complexity of key extraction. In addition, due to the spatiotemporal uniqueness and locality of the channel, when the distance between the eavesdropping node and the legitimate communication node exceeds half of the electromagnetic wavelength (taking the Zigbee protocol as an example, at a communication frequency of 2.4GHz, the distance threshold λ / 2 is only 6.25cm), it will not be able to obtain channel characteristics similar to those of the legitimate communication node, which greatly improves the security of the key. Furthermore, since the common key is generated and used once, there is no need to consider the storage security requirements associated with the fixed key, which is particularly beneficial for resource-constrained IoT device nodes.

[0087] Figure 5 A schematic block diagram of a typical client device. Figure 5 The client device 50 shown can be various terminal devices of the Internet of Things system, such as but not limited to electronic license plate antennas, charging piles, vehicle-mounted terminals, and payment terminals.

[0088] See also Figure 5 The client device 50 includes a communication unit 510, a memory 520 (e.g., a non-volatile memory such as a flash memory, a ROM, a hard disk drive, a magnetic disk, an optical disk, etc.), a processor 530, and a computer program 540 stored on the memory 520 and executable on the processor 530.

[0089] The communication unit 510 serves as a communication interface between the client device and an external device (eg, another client device or a remote server), and is configured to establish a communication connection between the client device and the external device.

[0090] The memory 520 stores a computer program 540 executable by the processor 530. The processor 530 is configured to execute the computer program 540 to implement various processing steps and processing logic described herein, such as but not limited to the determination of pilot training sequences, the extraction of channel characteristics, the generation of initial keys, the implementation of key negotiation mechanisms, and key consistency checks.

[0091] Figure 6 The present invention is a flowchart of a key generation method according to some embodiments of the present application.

[0092] In these embodiments, the steps in the method flow are exemplarily performed by Figure 5 In particular, Figure 6 The method flow shown includes the following steps performed by running the computer program 540:

[0093] Step 601: Determine a pilot training sequence sent between the client device 20 and other client devices based on the coherence time of wireless communication between the two. Figure 1 The described exemplary process determines a pilot training sequence, wherein client device 20 may participate in the process as either of two devices (devices Alice and Bob).

[0094] Step 603: extract channel characteristics from the pilot training sequence sent by other client devices and generate a first initial key based on the extracted channel characteristics, and send the pilot training sequence to other client devices to enable them to generate a second initial key in the same way. Figure 2 and 3 The first initial key and the second initial key (ie, the initial key sequences Q(A) and Q(B)) are generated in the described manner, wherein the client device 20 and the other client devices may be any one of the two devices (devices Alice and Bob).

[0095] Step 605: The client device 20 determines a common key between the first initial key and the second initial key through a key negotiation mechanism with other clients. Figure 4 The described cryptographic negotiation process consists of a first initial key and a second initial key (i.e., an initial key sequence Q(A) and Q(B)), wherein the client device 20 can participate in the process as either of the two devices (devices Alice and Bob), and similarly, other client devices can also participate in the process as either of the two devices (devices Alice and Bob).

[0096] Step 607: The client device 20 generates a common key (eg, K A or K B )’s hash value (H(K A ) or H(K B )) and sends the generated hash value to other client devices.

[0097] Step 609: The client device 20 receives the hash value (H(K)) sent by other client devices. B ) or H(K A )).

[0098] Step 611: The client device 20 determines whether the received hash value matches the locally generated hash value. If so, the client device 20 confirms the key K. A and K B The consistency check is passed, so the key K A (or K B) will be used as the common key, otherwise return to step 605 to continue negotiating to generate the common key. Optionally, after step 611, it can also return to step 601 to restart the key generation process.

[0099] According to another aspect of the present application, a computer-readable storage medium is provided, on which a computer program is stored, and when the program is executed by a processor, the above-mentioned Figure 6 The key generation method comprises the steps.

[0100] Figure 7 A schematic diagram of a typical IoT system.

[0101] Figure 7 The IoT system 710 shown includes a plurality of local access devices 711 , a gateway 712 coupled to the local access devices, and a remote server or IoT platform 713 coupled to the gateway 712 .

[0102] For example, in a parking or charging management application scenario, the local access device 711 may be, for example, an electronic license plate antenna or a charging pile, which can communicate with an external device 720 such as a vehicle terminal. In particular, each local access device 711 may be configured to perform the following operations: Figure 6 The key generation method shown is used to generate a key shared by the local access device 711 and the adjacent external device. In addition, each local access device 711 can also be configured to generate verification information related to the key and send the verification information to the gateway 712, and forward a message from the external device 720 to the gateway 712.

[0103] The gateway 712 may be configured to use the verification information from the local access device 711 to verify the legitimacy of the message sent by the external device 720 , extract business data from the message, and upload the extracted business data to the remote server 713 .

[0104] For example, in the parking or charging management application scenario, the gateway 712 is configured to calculate the bill amount, cache temporary keys, verify bills, and manage electronic license plate antennas or charging piles. The remote server 713 is configured to manage the payment gateway and convert payment tokens. In addition, see Figure 7 , the gateway 712 is also connected to the payment platform 730 to upload transaction data to the latter.

[0105] Figure 8 1 is a flow chart of a method for performing data processing in an Internet of Things system according to some embodiments of the present application. In this embodiment, for example, the application scenario of the method shown is parking lot vehicle entry management, and the method uses Figure 7 The IoT system shown is implemented.

[0106] Step 801: When a vehicle arrives at a parking lot gate, the intelligent vehicle terminal 720 as an external device will receive a key negotiation request (eg, in the form of a broadcast signal) sent by a local access device or an electronic license plate antenna 711 .

[0107] Step 803: The electronic license plate antenna 711 and the intelligent vehicle terminal 720 work together to generate a common key for both parties. Figure 6 The key generation method shown is used to collaborate with the smart vehicle terminal 720 to generate common keys K(A) and K(B) (where "A" represents the smart vehicle terminal 720 and "B" represents the electronic license plate antenna 711).

[0108] Step 805: The electronic license plate antenna 711 forwards the message about the vehicle identification received from the intelligent vehicle terminal 720 to the gateway 712. Optionally, the message about the vehicle identification includes the following data items encrypted using the key generated in step 803: the electronic license plate identification ID, the timestamp T1, and the hash value H(K(A)) of the key K(A) generated at the intelligent vehicle terminal 720.

[0109] Step 807 : The electronic license plate antenna 711 sends the key K(B) and its hash value H(K(B)) generated therein to the gateway 712 .

[0110] Step 809: The gateway 712 uses K(B) to extract the hash value K(A) from the message about the vehicle identification and verifies the consistency of the keys K(A) and K(B) by comparing it with K(B). Optionally, when the verification is passed, the gateway 712 extracts and stores the electronic license plate identification ID and timestamp T1, and instructs the gate to open. Alternatively, the gateway 712 uses K(B) to extract the electronic license plate identification ID and determines whether the corresponding vehicle has any outstanding fees, etc., and only stores the electronic license plate identification ID and timestamp T1 and instructs the gate to open when there is no outstanding fees.

[0111] Fig. 9 1 is a flow chart of a method for performing data processing in an Internet of Things system according to some embodiments of the present application. In this embodiment, for example, the application scenario of the method shown is parking lot vehicle exit payment, and the method uses Figure 7 The IoT system shown is implemented.

[0112] Step 901: When a vehicle arrives at a parking lot gate, the intelligent vehicle terminal 720 as an external device will receive a key negotiation request (eg, in the form of a broadcast signal) sent by a local access device or an electronic license plate antenna 711 .

[0113] Step 903: The electronic license plate antenna 711 and the intelligent vehicle terminal 720 work together to generate a common key for both parties. Figure 6 The key generation method shown is used to generate common keys K'(A) and K'(B) in collaboration with the smart vehicle terminal 720 (where "A" represents the smart vehicle terminal 720 and "B" represents the electronic license plate antenna 711).

[0114] Step 905: The electronic license plate antenna 711 forwards the message about the vehicle identification received from the intelligent vehicle terminal 720 to the gateway 712. Optionally, the message about the vehicle identification includes the following data items encrypted using the key generated in step 903: the electronic license plate identification ID, the timestamp T2, and the hash value H(K'(A)) of the key K'(A) generated at the intelligent vehicle terminal 720.

[0115] Step 907 : the electronic license plate antenna 711 sends the key K′(B) and its hash value H(K′(B)) generated therein and the antenna ID to the gateway 712 .

[0116] Step 909: The gateway 712 extracts the hash value K'(A) from the message about the vehicle identification using K'(B) and verifies the consistency of the keys K'(A) and K'(B) by comparing it with K'(B).

[0117] Step 911: When the verification is passed, the gateway 712 uses the key K'(B) to extract the electronic license plate ID and the timestamp T2, and calculates the corresponding parking fee according to the timestamps T1 and T2.

[0118] Step 913: The gateway 712 applies for a payment token for the payment message from the remote server 713. For example, the payment message may include payment information such as the electronic license plate ID, timestamp 1, timestamp 2, and the deduction amount.

[0119] Step 915: Gateway 712 initiates a deduction request to the payment platform.

[0120] The embodiments and examples set forth herein are provided to best illustrate embodiments according to the present technology and its specific applications, and thereby enable those skilled in the art to implement and use the present application. However, those skilled in the art will appreciate that the above description and examples are provided only for ease of illustration and example. The description set forth is not intended to cover all aspects of the present application or to limit the present application to the precise form disclosed.

[0121] In view of the foregoing, the scope of the present disclosure is determined by the following claims.

Claims

1. A key generation method, It is characterized in that The method comprises the following steps performed at a first device: A. determining a pilot training sequence sent between the first device and the second device based on a coherence time of wireless communication between the two devices; B. extracting a channel feature from the determined pilot training sequence sent by the second device to generate a first initial key based on the extracted channel feature, and sending the determined pilot training sequence to the second device so that the second device can generate a second initial key based on the channel feature extracted from the received pilot training sequence in the same manner as that of generating the first initial key; as well as C. using a key agreement mechanism between the first device and the second device to determine a common key between the first device and the second device from the first initial key and the second initial key; Wherein, step A comprises: A1. receiving an initial pilot training sequence from the second device; A2. determining, according to the length of the initial pilot training sequence, whether the two-way detection time between the first device and the second device is less than a threshold related to the coherence time; and A3. If the two-way detection time is greater than or equal to the coherence time, instruct the second device to send an initial pilot training sequence with a reduced length and perform steps A1 and A2 again; otherwise, send the current initial pilot training sequence to the second device and determine the current initial pilot training sequence as the pilot training sequence. Wherein, step C comprises: C1. receiving information about a candidate key from the second device, where the candidate key is a sequence fragment extracted from the second initial key, and the information indicates a position of the sequence fragment in the second initial key; C2. Comparing the consistency of the sequence fragments at the positions indicated by the information in the first initial key and the second initial key; C3. If they are consistent, the candidate key is determined as the key; otherwise, a sequence fragment is extracted from other positions of the first initial key as a replacement candidate key and information about the replacement candidate key is sent to the second device.

2. A key generation method, It is characterized in that The method comprises the following steps performed at a first device: A. determining a pilot training sequence sent between the first device and the second device based on a coherence time of wireless communication between the two devices; B. extracting a channel feature from the determined pilot training sequence sent by the second device to generate a first initial key based on the extracted channel feature, and sending the determined pilot training sequence to the second device so that the second device can generate a second initial key based on the channel feature extracted from the received pilot training sequence in the same manner as that of generating the first initial key; as well as C. using a key agreement mechanism between the first device and the second device to determine a common key between the first device and the second device from the first initial key and the second initial key; Wherein, step A comprises: A1', sending an initial pilot training sequence to the second device; A2', if a message indicating to send an initial pilot training sequence with a reduced length is received from the second device, then reducing the length of the current initial pilot training sequence and sending the initial pilot training sequence with a reduced length to the second device; otherwise, determining the current initial pilot training sequence as the pilot training sequence, Wherein, step C comprises: C1. receiving information about a candidate key from the second device, where the candidate key is a sequence fragment extracted from the second initial key, and the information indicates a position of the sequence fragment in the second initial key; C2. Comparing the consistency of the sequence fragments at the positions indicated by the information in the first initial key and the second initial key; C3. If they are consistent, the candidate key is determined as the key; otherwise, a sequence fragment is extracted from other positions of the first initial key as a replacement candidate key and information about the replacement candidate key is sent to the second device.

3. The key generation method according to claim 1 or 2, in, Further comprising the steps of: D. Generate a first hash value of the key and send the generated first hash value to the second device; E. receiving a second hash value of the key generated by the second device; F. Determine the consistency of the keys of the first device and the second device by comparing the first hash value with the second hash value.

4. The key generation method according to claim 1 or 2, in, The channel characteristics include one or more of the following items: received signal strength, channel phase, channel state information, channel impulse response and signal envelope.

5. The key generation method according to claim 1 or 2, in, Step B includes: B1, generating a sequence of channel characteristic values; and B2. Perform quantization processing on the channel characteristic value to obtain a key sequence as the first initial key.

6. A client device comprising: Memory; processor ; as well as A computer program stored on said memory and executable on said processor, the execution of which causes: A. determining a pilot training sequence sent between the client device and other client devices based on a coherence time of wireless communication between the client device and the other client devices; B. extracting a channel feature from the determined pilot training sequence sent by the client device to generate a first initial key based on the extracted channel feature, and sending the determined pilot training sequence to other client devices so that the other client devices can generate a second initial key based on the channel feature extracted from the received pilot training sequence in the same manner as that of generating the first initial key; as well as C. utilizing a key negotiation mechanism between the client device and other client devices to determine a common key between the client device and other client devices from the first initial key and the second initial key; The operation of the computer program enables step A to be implemented in the following manner: A1. Receive an initial pilot training sequence from other client devices; A2. determining, based on the length of the initial pilot training sequence, whether the two-way detection time between the client device and other client devices is less than a threshold value related to the coherence time; and A3. If the two-way detection time is greater than or equal to the coherence time, instruct the other client devices to send an initial pilot training sequence with a reduced length and perform steps A1 and A2 again; otherwise, send the current initial pilot training sequence to the other client devices and determine the current initial pilot training sequence as the pilot training sequence. The execution of the computer program generates a common key in the following manner: C1. receiving information about a candidate key from the other client device, the candidate key being a sequence fragment extracted from the second initial key, the information indicating a position of the sequence fragment in the second initial key; C2. Comparing the consistency of the sequence fragments at the positions indicated by the information in the first initial key and the second initial key; C3. If they are consistent, the candidate key is determined as the key; otherwise, a sequence fragment is extracted from another position of the first initial key as a replacement candidate key and information about the replacement candidate key is sent to the other client device.

7. A client device comprising: Memory; processor ; as well as A computer program stored on said memory and executable on said processor, the execution of which causes: A. determining a pilot training sequence sent between the client device and other client devices based on a coherence time of wireless communication between the client device and the other client devices; B. extracting a channel feature from the determined pilot training sequence sent by the client device to generate a first initial key based on the extracted channel feature, and sending the determined pilot training sequence to other client devices so that the other client devices can generate a second initial key based on the channel feature extracted from the received pilot training sequence in the same manner as that of generating the first initial key; as well as C. utilizing a key negotiation mechanism between the client device and other client devices to determine a common key between the client device and other client devices from the first initial key and the second initial key; The operation of the computer program enables step A to be implemented in the following manner: A1', sending an initial pilot training sequence to other client devices; A2', if a message indicating to send an initial pilot training sequence with a reduced length is received from other client devices, then the length of the current initial pilot training sequence is reduced and the initial pilot training sequence with a reduced length is sent to other client devices; otherwise, the current initial pilot training sequence is determined as the pilot training sequence, The execution of the computer program generates a common key in the following manner: C1. receiving information about a candidate key from the other client device, the candidate key being a sequence fragment extracted from the second initial key, the information indicating a position of the sequence fragment in the second initial key; C2. Comparing the consistency of the sequence fragments at the positions indicated by the information in the first initial key and the second initial key; C3. If they are consistent, the candidate key is determined as the key; otherwise, a sequence fragment is extracted from another position of the first initial key as a replacement candidate key and information about the replacement candidate key is sent to the other client device.

8. The client device according to claim 6 or 7, in, The execution of the computer program also causes: D. Generate a first hash value of the key and send the generated first hash value to other client devices; E. receiving a second hash value of the key generated by the other client device; F. Determine the consistency of the keys of the client device and other client devices by comparing the first hash value with the second hash value.

9. The client device according to claim 6 or 7, in, The client device is one of the following items: an electronic license plate antenna, a charging pile, a vehicle-mounted terminal, and a payment terminal.

10. The client device according to claim 6 or 7, in, The channel characteristics include one or more of the following items: received signal strength, channel phase, channel state information, channel impulse response and signal envelope.

11. The client device according to claim 6 or 7, in, The execution of the computer program generates the first initial key in the following manner: B1, generating a sequence of channel characteristic values; and B2. Perform quantization processing on the channel characteristic value to obtain a key sequence as the first initial key.

12. A computer-readable storage medium having computer programs / instructions stored thereon, It is characterized in that When the computer program / instructions are executed by a processor, the steps of the method according to any one of claims 1 to 5 are implemented.

13. A computer program product comprising a computer program / instructions, It is characterized in that When the computer program / instructions are executed by a processor, the steps of the method according to any one of claims 1 to 5 are implemented.

14. A method for performing data processing in an Internet of Things system, the Internet of Things system comprising at least one local access device and a gateway coupled to the local access device, It is characterized in that It includes the following steps: A. Generate a common key between the local access device and the external device using the key generation method according to any one of claims 1 to 5, wherein the local access device and the external device serve as the first device and the second device respectively; B. The local access device generates verification information related to the key and sends the verification information to the gateway; C. The local access device forwards the message from the external device to the gateway; and D. The gateway uses the verification information to verify the legitimacy of the message and extract the business data in the message.

15. The method of claim 14, in, The verification information includes a key and a hash value thereof, and the message contains business data encrypted using the key and a hash value of the key. In step D, the legitimacy of the data processing request is verified by comparing the hash value of the key generated by the local access device with the hash value of the key generated by the external device, and the business data contained in the data processing request is decrypted using the key provided by the local access device.

16. An Internet of Things system, comprising: at least one local access device; a gateway coupled to the local access device; and a remote server coupled to the gateway, in, The local access device is configured to: 1) execute the key generation method according to any one of claims 1 to 5 to generate a key common to the local access device and an external device, wherein the local access device and the external device serve as the first device and the second device, respectively; 2) generate verification information related to the key and send the verification information to the gateway; 3) forward a message from the external device to the gateway; and The gateway is configured to use the verification information to verify the legitimacy of the message and extract the business data in the message, and upload the business data to the remote server.

17. The Internet of Things system according to claim 16, in, The local access device is an electronic license plate antenna or a charging pile, and the external device is a vehicle-mounted terminal.

18. The Internet of Things system according to claim 16 or 17, in, The verification information includes a key and its hash value, the message contains business data encrypted using the key and the hash value of the key, the gateway verifies the legitimacy of the message by comparing the hash value of the key generated by the local access device with the hash value of the key generated by the external device, and uses the key provided by the local access device to decrypt the business data contained in the message.

Citation Information

Patent Citations

  • OFDM channel physical key generation method and device based on USRP and computer equipment

    CN112533199A