Key generation method and device
By sending a channel-based signal between the zero-power device and the reader and writer, and generating a key for communication, the problem of complexity and security of group key generation in multiple zero-power device scenarios is solved, and the problem of group key generation is realized. The key dynamically updates when the channel changes.
Patent Information
- Application Number
- PCT/CN2023/096686
- Authority / Receiving Office
- WO · WO
- Patent Type
- Applications
- Current Assignee / Owner
- Filing Date
- 2023-05-26
- Publication Date
- 2024-12-05
AI Technical Summary
In multiple zero-power device scenarios, how to generate group keys in a low complexity manner and ensure their security, especially when the communication channel between the zero-power device and the reader and writer is unsafe, especially when the communication channel between the zero-power device and the reader and writer is not safe. .
By sending multiple signals, their radio frequency coefficients are calculated based on the channel characteristics between each device and the device. The first device and the second device respectively generate keys for communication, use the channel characteristics to offset channel loss or interference, and pass the signal The relevant information generates a group key.
It reduces the complexity of group key generation, while ensuring the security of group keys, is suitable for multiple zero-power device scenarios, and can dynamically update the key when the channel environment changes.
Smart Images

Figure CN2023096686_05122024_PF_FP_ABST
Abstract
Description
Key generation method and device Technical Field
[0001] The present application relates to the field of communications, and more specifically, to a key generation method, device, computer-readable storage medium, computer program product, and computer program. Background Art
[0002] With the development of communication technology, contactless automatic identification technology has emerged. This technology usually uses wireless radio frequency to perform contactless data transmission between zero-power devices and other devices (such as readers). Since the communication channel between zero-power devices and readers is an unsecured channel, in order to ensure the data transmission security of zero-power devices, a scheme is further proposed in which a key can be used between zero-power devices and readers to encrypt the data or information transmitted between the two. The above scheme can only enable a single zero-power device and a reader to use the same key (also called a unicast key or a shared key) to ensure the security of data transmission by a single zero-power device. In scenarios where there are multiple zero-power devices, how to enable the zero-power device to generate a group key in a less complex manner and ensure the security of the group key becomes a problem that needs to be solved.
[0003] Summary of the Invention
[0004] Embodiments of the present application provide a key generation method, device, computer-readable storage medium, computer program product, and computer program.
[0005] This embodiment of the present application provides a key generation method, including:
[0006] The first device sends a plurality of signals to each of a plurality of second devices, wherein radio frequency coefficients of the plurality of signals are calculated based on channel characteristics between each of the second devices and the first device;
[0007] The first device generates a first set of keys based on relevant information of the multiple signals, where the first set of keys is used for communication between the first device and the multiple second devices.
[0008] This embodiment of the present application provides a key generation method, including:
[0009] The target second device receives a plurality of signals from the first device, wherein radio frequency coefficients of the plurality of signals are calculated based on channel characteristics between the target second device and the first device;
[0010] The target second device generates a second set of keys based on the relevant information of the multiple signals, wherein the second set of keys is used for communication between the target second device and the first device, the second set of keys is the same key for multiple second devices, and the target second device is one of the multiple second devices.
[0011] An embodiment of the present application provides a first device, including:
[0012] a first communication unit, configured to send a plurality of signals to each second device among a plurality of second devices, wherein radio frequency coefficients of the plurality of signals are calculated based on channel characteristics between each second device and the first device;
[0013] The first processing unit is configured to generate a first set of keys based on relevant information of the multiple signals, where the first set of keys is used for communication between the first device and the multiple second devices.
[0014] The embodiment of the present application provides a target second device, including:
[0015] a second communication unit, configured to receive a plurality of signals from the first device, wherein radio frequency coefficients of the plurality of signals are calculated based on channel characteristics between the target second device and the first device;
[0016] A second processing unit is configured to generate a second set of keys based on relevant information of the multiple signals, wherein the second set of keys is used for communication between the target second device and the first device, the second set of keys is the same key for multiple second devices, and the target second device is one of the multiple second devices.
[0017] An embodiment of the present application provides a first device, comprising: a processor, and a memory communicating with the processor, the memory being used to store instructions, wherein when the instructions are executed by the processor, the instructions cause the first device to execute: sending multiple signals to each of a plurality of second devices, wherein radio frequency coefficients of the multiple signals are calculated based on channel characteristics between each of the second devices and the first device; and generating a first set of keys based on relevant information of the multiple signals, wherein the first set of keys is used for communication between the first device and the plurality of second devices.
[0018] An embodiment of the present application provides a target second device, including: a processor, and a memory communicating with the processor, the memory being used to store instructions, and when the instructions are executed by the processor, the instructions cause the target second device to execute: receiving multiple signals from a first device, wherein the radio frequency coefficients of the multiple signals are calculated based on the channel characteristics between the target second device and the first device; generating a second group of keys based on relevant information of the multiple signals, wherein the second group of keys is used for communication between the target second device and the first device, the second group of keys are the same keys for multiple second devices, and the target second device is one of the multiple second devices.
[0019] The embodiment of the present application provides a chip for implementing the above method.
[0020] Specifically, the chip includes: a processor, which is used to call and run a computer program from a memory, so that a device equipped with the chip executes the above method.
[0021] An embodiment of the present application provides a computer-readable storage medium for storing a computer program, which enables a device to perform the above method when the computer program is executed by the device.
[0022] An embodiment of the present application provides a computer program product, including computer program instructions, which enable a computer to execute the above method.
[0023] An embodiment of the present application provides a computer program, which, when executed on a computer, enables the computer to execute the above method.
[0024] By adopting the solution provided in this embodiment, a first device sends multiple signals to each second device, and the radio frequency coefficients of the multiple signals are calculated based on the channel characteristics between the second device and the first device. Then, the first device itself will also generate a group key for communicating with each second device based on the relevant information of each signal. In this way, by configuring the radio frequency coefficients corresponding to different second devices for the signals sent to different second devices, the channel characteristics between the second device and the first device can be accurately offset, that is, the loss or interference of the channel between the second device and the first device can be offset, and the group key can be generated only based on the relevant information of the signal, thereby ensuring the security of the group key while reducing the complexity of generating the group key. BRIEF DESCRIPTION OF THE DRAWINGS
[0025] FIG1 is a schematic diagram of an application scenario according to an embodiment of the present application.
[0026] FIG2 is a schematic flowchart of a key generation method according to an embodiment of the present application.
[0027] FIG3 is a schematic flowchart of a key generation method according to another embodiment of the present application.
[0028] FIG4 is a schematic diagram of a scenario of a key generation method according to an embodiment of the present application.
[0029] FIG5 is a schematic flowchart of a key generation method according to an embodiment of the present application.
[0030] FIG6 is a schematic diagram of simulation results of a key generation method according to an embodiment of the present application.
[0031] 7 and 8 are two other schematic flow charts of a key generation method according to an embodiment of the present application.
[0032] FIG9 is a schematic block diagram of a first device according to an embodiment of the present application.
[0033] FIG10 is a schematic block diagram of a target second device according to an embodiment of the present application.
[0034] FIG11 is a schematic block diagram of a communication device according to an embodiment of the present application.
[0035] FIG12 is a schematic block diagram of a chip according to an embodiment of the present application.
[0036] FIG13 is a schematic block diagram of a communication system according to an embodiment of the present application. DETAILED DESCRIPTION
[0037] The technical solutions of the embodiments of the present application can be applied to various communication systems, such as LTE, LTE-A, NR, NR evolution, WLAN, WiFi, or other communication systems.
[0038] The embodiments of the present application describe various embodiments in conjunction with network devices and terminals. The terminals can be mobile or fixed, and can also be referred to as mobile stations, user units, etc. The terminal can be a site in a WLAN, and can be a smart terminal, wireless modem, laptop computer, tablet computer, or other terminal. In the embodiments of the present application, the terminal can be a VR terminal / AR terminal, an industrial control terminal, an unmanned driving terminal, a telemedicine terminal, a smart grid terminal, a transportation safety terminal, a smart city terminal, or a wireless terminal for a smart home, etc. As an example and not a limitation, in the embodiments of the present application, the terminal can also be a wearable device.
[0039] In the embodiment of the present application, the network device may be a device for communicating with a terminal, and the network device may be an access point in a WLAN, an evolved base station in an LTE, or a relay station, or a network device (gNB) in an in-vehicle device, a wearable device, and an NR network, or a network device in a future evolved PLMN network or a network device in a non-terrestrial network. As an example and not a limitation, in the embodiment of the present application, the network device may have a mobile feature, for example, the network device may be a mobile device.
[0040] It should be understood that the terms "system" and "network" are often used interchangeably in this article. The term "and / or" in this article is merely a description of the association relationship of associated objects, indicating that three relationships may exist. For example, A and / or B can represent: A exists alone, A and B exist at the same time, and B exists alone. In addition, the character " / " in this article generally indicates that the objects associated before and after are in an "or" relationship. It should be understood that the "indication" mentioned in the embodiments of this application can be a direct indication, an indirect indication, or an indication of an association relationship. For example, A indicates B, which can mean that A directly indicates B, for example, B can be obtained through A; it can also mean that A indirectly indicates B, for example, A indicates C, and B can be obtained through C; it can also mean that there is an association relationship between A and B. In the description of the embodiments of this application, the term "corresponding" can mean that there is a direct or indirect correspondence between the two, or it can mean that there is an association relationship between the two, or it can mean a relationship between indication and indication, configuration and configuration, etc.
[0041] To facilitate understanding of the technical solutions of the embodiments of the present application, the relevant technologies of the embodiments of the present application are described below. The following relevant technologies can be arbitrarily combined with the technical solutions of the embodiments of the present application as optional solutions, and they all fall within the protection scope of the embodiments of the present application.
[0042] Figure 1 exemplarily illustrates a communication system 100. The communication system includes a network device 110 and two terminals 120. In one possible implementation, the communication system 100 may include multiple network devices 110, and each network device 110 may include a different number of terminals 120 within its coverage area, although this embodiment of the present application does not limit this. In one possible implementation, the communication system 100 may also include a mobility management entity, access and mobility management functions, and other network entities, although this embodiment of the present application does not limit this. The network devices may include access network devices and core network devices. That is, the communication system may also include multiple core networks for communicating with the access network devices. The access network devices may be base stations of LTE, LTE-A, or NR systems. Taking the communication system shown in Figure 1 as an example, the communication devices may include network devices and terminals with communication functions. The communication devices may also include other devices in the communication system, such as network controllers, mobility management entities, and other network entities, although this embodiment of the present application does not limit this.
[0043] To facilitate understanding of the embodiments of the present application, the following briefly describes the basic processes and basic concepts involved in the embodiments of the present application. It should be understood that the basic processes and basic concepts introduced below do not limit the embodiments of the present application.
[0044] Figure 2 is a schematic flow chart of a key generation method according to an embodiment of the present application. The method includes at least part of the following contents.
[0045] S210. The first device sends multiple signals to each of the multiple second devices, where radio frequency coefficients of the multiple signals are calculated based on channel characteristics between each second device and the first device.
[0046] S220: The first device generates a first set of keys based on the relevant information of the multiple signals, where the first set of keys is used for communication between the first device and the multiple second devices.
[0047] Figure 3 is a schematic flow chart of a key generation method according to another embodiment of the present application. The method includes at least part of the following contents.
[0048] S310: The target second device receives multiple signals from the first device, wherein radio frequency coefficients of the multiple signals are calculated based on channel characteristics between the target second device and the first device;
[0049] S320. The target second device generates a second set of keys based on the relevant information of the multiple signals, wherein the second set of keys is used for communication between the target second device and the first device, the second set of keys is the same key for multiple second devices, and the target second device is one of the multiple second devices.
[0050] The first device is one of the following: a terminal device or a network device. The first device may have one or more antennas. In a preferred embodiment, the first device may have multiple antennas. It should be understood that the solution provided in this embodiment can also be applied to a first device having only one antenna, and this is not limited here.
[0051] In some embodiments, the first device is a terminal device. In this embodiment, the first device and the second device (any second device) can communicate with each other through sidelink messages.
[0052] In some embodiments, the first device may be a network device. For example, the network device may be an access network device (such as a base station, gNB, eNB, etc.). In this embodiment, the first device and the second device may communicate through AS (Access Stratum) messages.
[0053] In some embodiments, the first device may be a network device, for example, the network device may be a core network device. In this embodiment, the first device and the second device may communicate via NAS (Non-Access Stratum) messages; or, in this embodiment, the first device and the second device may forward messages via an access network device. This embodiment does not exhaustively enumerate all possible message transmission methods. In addition, the core network side device includes at least one of the following: an authentication server function (AUSF), a unified data management function (UDM), and an ambient power-enabled IoT (AIoT) network element. In some other examples, in addition to the above-mentioned AUSF, UDM, and AIoT network elements, the one or more core network devices may also include at least one of the following: ARPF (Authentication credential Repository and Processing Function), AMF (Access and Mobility Management Function), UPF (User Plane Function), SEAF (Security Anchor Function), and the like. It should be understood that this is only an example. In actual processing, the core network side device may also include other core network devices, but this is not an exhaustive list. For example, the above-mentioned AIOT network element may refer to a network element with AIOT functions, or a network element with zero-power-related functions; the network element with AIoT functions (or a network element with zero-power-related functions) may be a core network network element with AIOT functions (or with zero-power-related service energy supply), or a core network network element serving AIOT functions (or serving zero-power-related devices), or a core network network element with at least AIoT functions (such as at least AIOT (or zero-power-related devices) group key generation energy supply), etc. It should be understood that the AIOT network element may be a separately set network element specifically for serving AIOT (or a network element specifically serving zero-power-related devices), or it may be an existing core network element with AIOT-related functions (or related functions serving zero-power-related devices) added. This embodiment does not exhaustively list all possible situations.
[0054] In some embodiments, the first device may be called a reader, or a reader, or a tag reader, or a tag reader, etc. All possible names or possible devices of the first device are not exhaustively listed here.
[0055] The second device is a zero-power device. In some embodiments, the zero-power device may be an Ambient Power-enabled IoT (AIoT) device. In some embodiments, the zero-power device may be an active zero-power device, a passive zero-power device, a semi-passive zero-power device, or the like. In some embodiments, the second device may also be a terminal with lower computing power. In some possible embodiments, the second device may be referred to as a tag. All possible names or possible devices of the second device are not exhaustively listed here.
[0056] The aforementioned multiple second devices may form a device group. The target second device is also a zero-power device, and the target second device may be any one of the multiple second devices, that is, the target second device may be any second device in the device group formed by the multiple second devices.
[0057] In some possible implementations, the channel characteristics between each second device and the first device may be calculated before the first device sends multiple signals to each second device.
[0058] During processing on the first device, the channel characteristics between each second device and the first device are first calculated. The method further includes: the first device sending group key generation signaling to each second device; the first device receiving a pilot signal from each second device, wherein the pilot signal is a reflected signal corresponding to the group key generation signaling; and the first device calculating the channel characteristics between each second device and the first device based on the pilot signal from each second device. The channel characteristics between each second device and the first device can form a channel characteristic matrix.
[0059] Taking any one of the multiple second devices as the target second device, in the processing of the target second device, the method further includes: the target second device receiving group key generation signaling from the first device; the target second device sending a pilot signal to the first device, wherein the pilot signal is a reflected signal corresponding to the group key generation signaling, and the pilot signal is used by the first device to calculate the channel characteristics between the target second device and the first device. It should be noted that this description is based only on the target second device. In actual processing, each of the multiple second devices performs the same processing as the target second device. For the sake of brevity, this embodiment does not elaborate on the processing of each second device.
[0060] The above-mentioned channel characteristics can be used to represent the transmission loss of the signal in the channel and / or the transmission attenuation of the signal in the channel, etc. For example, the channel characteristics can include relevant parameters such as channel noise. All possible parameters that may be included in the channel characteristics are not exhaustively listed here. The channel characteristics can also be referred to as channel estimates, channel estimates, etc., and all possible names are not exhaustively listed here.
[0061] The function of the key generation signaling group may be to trigger the second device to transmit a pilot signal. It should be understood that the key generation signaling group may also have other functions, but this embodiment does not exhaustively list or limit these other functions. Furthermore, this embodiment does not limit the information content that the key generation signaling group may carry.
[0062] In some embodiments, the aforementioned first device may have only one antenna. In this case, the group of key generation signaling is directly transmitted by the antenna.
[0063] In some embodiments, the aforementioned first device may have multiple antennas, and the group key generation signaling may be sent through a designated antenna of the first device. The designated antenna may be pre-configured or pre-set according to actual conditions. For example, the multiple antennas of the first device may be arranged as the first antenna to the Mth antenna (M is an integer greater than or equal to 2) according to position, processing order, logical order, or other order. The designated antenna may be designated as the first antenna according to actual conditions, that is, the group key generation signaling may be transmitted by the first antenna of the first device. This is only an exemplary explanation. In actual processing, as long as any one of the M antennas is designated to send the group key generation signaling, it is within the protection scope of this embodiment. All possible situations are not enumerated here.
[0064] In some embodiments, the group key generation signaling may be broadcast or multicast, that is, the first device broadcasts or multicasts the group key generation signaling to multiple second devices so that each second device can receive the group key generation signaling. In some embodiments, the group key generation signaling may be unicast, that is, the first device sends the group key generation signaling to each second device separately.
[0065] Taking any one of the multiple second devices as the target second device, the target second device sending the pilot signal to the first device may include: the target second device modulating the pilot signal onto a continuous carrier corresponding to the group key generation signaling and reflecting the signal to the first device. The continuous carrier corresponding to the group key generation signaling may mean: the group key generation signaling is a continuous carrier, the group key generation signaling is sent in the form of a continuous carrier, or the group key generation signaling is carried by a continuous carrier.
[0066] In some embodiments, each of the aforementioned multiple second devices may send a pilot signal to the first device according to an anti-collision mechanism. The anti-collision mechanism may be pre-configured in each second device. The anti-collision mechanism may be a time slot anti-collision mechanism, a time unit anti-collision mechanism, a frequency domain anti-collision mechanism, and the like. For example, the anti-collision mechanism may enable each second device to determine a delay time unit after receiving the group key generation signaling. The delay time unit is used by each second device to determine the transmission time unit for sending the pilot signal, and the delay time units corresponding to different second devices may be the same or different. The time unit may be any time unit such as a time slot, a symbol, a millisecond, a microsecond, and the list is not exhaustive. It should also be pointed out that the above is only an exemplary description. In actual processing, the anti-collision mechanism can also enable each second device to determine the transmission frequency range of the pilot signal, and the transmission frequency ranges corresponding to different second devices may be the same or different; in addition, the anti-collision mechanism can also enable each second device to determine the corresponding delay time unit and / or the transmission frequency range of the pilot signal. As long as the pilot signals sent by different second devices can avoid mutual interference in the time domain and / or frequency domain, it is within the protection scope of this embodiment, and all possible contents of the anti-collision mechanism are not enumerated here.
[0067] In some embodiments, the first device has multiple antennas.
[0068] The first device receiving the pilot signal from each second device may refer to the first device receiving the pilot signal from each second device via each antenna of the plurality of antennas. The first device calculating the channel characteristics between each second device and the first device based on the pilot signal from each second device may refer to the first device calculating the channel characteristics between each second device and each antenna of the first device based on the pilot signal from each second device.
[0069] Taking any second device as the target second device as an example, the first device receives a pilot signal from each second device through each of the multiple antennas, which means that the first device receives the pilot signal from the target second device through each of the multiple antennas. The first device calculates the channel characteristics between each second device and each antenna of the first device based on the pilot signal of each second device, which means that the first device calculates the channel characteristics between the target second device and each antenna of the first device based on the pilot signal from the target second device received by each of the multiple antennas.
[0070] For example, the multiple second devices are multiple tags, the target second device is tag1 among the multiple tags, the first device is a reader, and the reader has M antennas. Each of the M antennas of the reader receives the pilot signal reflected by tag1, which can be expressed as: Where ref is the tag reflection coefficient, and the specific value of ref is known at the reader end; s represents the pilot signal sent by the tag (for example, it can be a pilot signal whose content and / or format is known to both the reader and the tag). Indicates the pilot signal reflected by the nth tag received by the mth antenna (or mth antenna) of the reader; Indicates the channel characteristics between the mth (or mth) antenna of the reader and the nth tag; 1≤m≤M, 1≤n≤N, N is the number of all tags in the device group, N is an integer greater than or equal to 2, M is the number of antennas of the aforementioned reader, M is an integer greater than or equal to 2. In the above formula, n is equal to 1, that is, s represents the pilot signal sent by tag1, Indicates the pilot signal reflected by the first tag received by the reader's mth antenna; Represents the channel characteristics between the mth (or mth) antenna of the reader and the first tag. In this example, the reader can first send the aforementioned group key generation signaling through the first antenna (that is, the first antenna is the aforementioned designated antenna), and the pilot signal is modulated and reflected on the continuous carrier corresponding to the group key generation signaling. Therefore, the channel characteristics between the first antenna and the first tag will affect the pilot signal reflected by the first tag received by each antenna of the reader. Based on this, in the above formula, (i.e. the channel characteristics between the first antenna of the reader and the first tag) need to be consistent with each Multiply.
[0071] Furthermore, since the ref in the above formula on the reader side is known, s can be a pilot signal with known content and / or format by both the reader and the tag. Therefore, the reader can calculate the channel characteristics between tag1 and each antenna of the reader using the above formula, for example, it can be expressed as
[0072] The above is just an exemplary explanation using tag1 as an example. The reader can perform the above processing on each tag. Finally, the reader can obtain the channel features between each tag and the reader. Then, the reader can form a channel feature matrix based on the channel features between each tag and the reader. For example, it can be expressed in the following matrix form: Among them, H represents the channel characteristic matrix between each tag in all tags obtained by the reader and multiple antennas of the reader. The description is the same as that of the above embodiment and will not be repeated.
[0073] It should be understood that the above is an exemplary description based on the example of the first device having multiple antennas. In some possible embodiments, the aforementioned first device has only one antenna. In this case, the first device receiving the pilot signal from each of the second devices may refer to the first device receiving the pilot signal from each second device through the antenna. For example, taking the second device as a tag, the target second device as tag1 among multiple tags, the first device as a reader, and the first device having one antenna as an example, the pilot signal reflected by tag1 is received by the reader's one antenna, which can be expressed as: The descriptions of ref and s are the same as those in the above embodiment and are not repeated here. Indicates the pilot signal reflected by the nth tag received by one antenna of the reader; Represents the channel characteristics between one antenna of the reader and the nth tag; 1≤n≤N, N is an integer greater than or equal to 2, and in the above formula, n is equal to 1, that is, s represents the pilot signal sent by tag1. The meaning of each content in the formula is similar to the above example and will not be repeated. In this embodiment, the first device calculates the channel characteristics between each second device and the first device based on the pilot signal of each second device, which may mean that the first device calculates the channel characteristics between each second device and an antenna of the first device based on the pilot signal of each second device; and then the first device can form a channel characteristic matrix of the channel characteristics between each second device and an antenna of the first device. For example, the channel characteristic matrix can be expressed as: Among them, H represents the channel feature matrix between each tag and the reader in all tags obtained by the reader. The description is the same as that of the above embodiment and will not be repeated.
[0074] After obtaining the channel characteristics, the first device may calculate a radio frequency coefficient. The method further includes: the first device calculating one or more radio frequency coefficients based on the channel characteristics between each second device and the first device, wherein different radio frequency coefficients in the one or more radio frequency coefficients correspond to different second devices.
[0075] The role of any RF coefficient may be to offset the corresponding channel characteristics (such as to offset the transmission attenuation or transmission loss of the signal in the channel, etc.), so that the signal transmitted to the corresponding second device on the channel is the same or substantially the same as the signal sent by the first device. All possible roles or functions of the RF coefficient are not exhaustively listed here. For example, the RF coefficient can also be called the antenna weight coefficient, or the antenna coefficient, or the antenna RF transmission coefficient, or the RF transmission coefficient, or the gain coefficient, or the transmission weight coefficient, etc., and all possible names are not exhaustively listed here.
[0076] In some embodiments, the plurality of second devices in the device group may be divided into one or more groups. Different radio frequency coefficients in the one or more radio frequency coefficients correspond to different groups of the plurality of second devices, and different groups of the plurality of second devices include different second devices.
[0077] In this embodiment, the first device calculates the radio frequency coefficient corresponding to each group (i.e., each group of second devices). This embodiment does not limit whether the radio frequency coefficients corresponding to different groups are the same. In the following, any group, any group of second devices, any group of second devices, and any second device in a group all have the same meaning and will not be repeated. It should be noted that any group of second devices has a different meaning from a device group. A device group (or multiple second devices in a device group) means all second devices in the device group, while any group of second devices is any group in the device group, or each second device in any group in the device group. That is, when the concept of group is involved below, as long as it is not emphasized as a device group, it means a group (i.e., a group of second devices in a device group), and will not be explained again below.
[0078] Taking any group as the kth group of second devices (k is a positive integer) as an example, the first device calculates one or more RF coefficients based on the channel characteristics between each second device and the first device. It can be: the first device forms a kth group of channel matrices based on the channel characteristics between each second device in the kth group of second devices and the first device, calculates the right inverse matrix of the kth group of channel matrix, and calculates the kth RF coefficient among the one or more RF coefficients based on the right inverse matrix of the kth group of channel matrix, and the kth RF coefficient corresponds to the kth group of second devices.
[0079] The number of groups that can be obtained by all second devices in the aforementioned device group can be equal to the number of second devices in the device group divided by the number of antennas of the first device, rounded up; for example, it can be expressed as K=ceil(N / M), or, Among them, ceil() means rounding up. It also represents rounding up, and the two are used only in different calculation tools. The meanings of N and M in the formula are the same as in the previous embodiment and are not repeated here. K represents the number of groups, and K is an integer greater than or equal to 1. The number of the one or more RF coefficients mentioned above can be K, which is the same as the number of the aforementioned groups. In other words, the kth RF coefficient can have a corresponding relationship with the kth group of second devices, and k is greater than or equal to 1 and less than or equal to K.
[0080] The first device forms the kth group of channel matrices based on the channel characteristics between each second device in the kth group of second devices and the first device. This can be achieved by extracting the channel characteristics corresponding to each second device in the kth group of second devices from the channel characteristic matrix between each second device and the first device to form the kth group of channel matrices.
[0081] The kth group of channel matrices may include: channel characteristics of the (k-1)M+1th second device to the (k-1)M+Mth second device.
[0082] For example, the k-th channel matrix can be expressed as (1≤k≤K): Among them, H(x) represents the x-th row in H (channel feature matrix), when x is equal to (k-1)M+1, it is the (k-1)M+1-th row in H, that is, the channel feature corresponding to the (k-1)M+1-th second device, and when x is equal to (k-1)M+M, it is the (k-1)M+M-th row in H, that is, the channel feature corresponding to the (k-1)M+M-th second device.
[0083] For another example, suppose N is equal to 4 and M is equal to 2, then And K is equal to 2, when k is equal to 1, the first group of channel matrix in, By analogy, we can get the second channel matrix when k is equal to 2: The description thereof will not be repeated.
[0084] The right inverse matrix of the k-th group of channel matrices can be calculated using the following formula: in, represents the right inverse matrix of the kth channel matrix, H k represents the kth channel matrix, H k H Then it represents the transposed matrix of the kth group of channel matrices.
[0085] Calculating the kth RF coefficient among the one or more RF coefficients based on the right inverse matrix of the kth group of channel matrices may include adding all columns of the right inverse matrix of the kth group of channel matrices to obtain the kth RF coefficient among the one or more RF coefficients. For example, obtaining the kth RF coefficient may be expressed using the following formula: Among them, w k Represents the kth RF coefficient, sum_column() represents the matrix Sum all columns of .
[0086] In some embodiments, the first device sending multiple signals to each second device in a plurality of second devices may refer to: the first device sending the multiple signals to each second device in the kth group of second devices based on the kth RF coefficient in the one or more RF coefficients, wherein different RF coefficients in the one or more RF coefficients correspond to different groups of the plurality of second devices, and different groups of the plurality of second devices include different second devices, and the kth group of second devices is one of the one or more groups of the plurality of second devices, and k is a positive integer. That is, the first device sequentially uses the RF coefficient corresponding to each group of second devices in the K groups of second devices for the i-th signal in the multiple signals, and sends the i-th signal to each group of second devices in sequence, where i is a positive integer. For example, if there are N second devices, and the N second devices are divided into K groups, then when the first device generates the i-th signal among the multiple signals, it sequentially uses the RF coefficients corresponding to each group of second devices in the K groups of second devices to send the i-th signal to each group of second devices; then, when the first device generates the i+1-th signal among the multiple signals, it similarly sequentially uses the RF coefficients corresponding to each group of second devices in the K groups of second devices to send the i+1-th signal to each group of second devices. That is, the i-th signal will be sent K times on the first device side, and different times will be sent to each second device in different groups, so that each second device can receive the same i-th signal; accordingly, the i-th signal is received once on any second device side.
[0087] For example, if any second device is the target second device and the target second device is tagn, the i-th signal received by tagn can be expressed as r i H k w k , where r i is the i-th signal, and the meanings of other contents are the same as those in the above embodiment; due to the radio frequency coefficient w k Can offset H k , so the signal received at tagn should be r i , which is 6, among which I k_n×1 Represents the unit vector of k_n rows and 1 column, k_n represents H k The number of rows, that is, the number of tags in the k-th group of tags, that is, all tags (each tag) in the k-th group of tags will receive r i .
[0088] In some embodiments, if the coherence time is very long, that is, the channel environment is in a static environment, the first device does not need to repeatedly perform the aforementioned process of the first device sending group key generation signaling to each second device, calculating the channel characteristics between each second device and the first device, and calculating the corresponding radio frequency coefficient for each group of second devices. In other words, after the first device calculates each radio frequency coefficient, it can perform the process of sending multiple signals to the second devices in each group of second devices, and use the same radio frequency coefficient to send different signals among the multiple signals to the second devices in the same group.
[0089] If the coherence time is short, that is, the channel environment is time-varying, the first device can repeat the above process. For example, if the process of sending the i-th signal is to be executed, the first device needs to execute the process of sending group key generation signaling to each second device to calculate the channel characteristics between each second device and the first device, and calculate the RF coefficient corresponding to each group of second devices (that is, each RF coefficient), and then send the i-th signal to each group of second devices based on the RF coefficient corresponding to each group of second devices; if the process of sending the i+1-th signal is to be executed, the first device again executes the process of sending group key generation signaling to each second device to calculate the channel characteristics between each second device and the first device, and calculate the RF coefficient corresponding to each group of second devices, and then send the i+1-th signal to each group of second devices based on the RF coefficient corresponding to each group of second devices.
[0090] If the coherence time is short, that is, the channel environment is time-varying, the first device can also determine when to repeat the process of sending group key generation signaling to each second device to calculate the channel characteristics between each second device and the first device, and calculate the RF coefficient corresponding to each group of second devices based on the specific coherence time. For example, A signals (A can be an integer greater than or equal to 1) can be sent to each group of second devices within the coherence time. After completing the sending of the 1st to Ath signals and before sending the A+1th signal to each group of second devices, the process of sending group key generation signaling to each group of second devices to calculate the channel characteristics between each second device and the first device and calculate the RF coefficient corresponding to each group of second devices is performed again. Then, based on the RF coefficient corresponding to each group of second devices, the A+1th signal is sent to each group of second devices. The next cycle is repeated and so on. Before sending the 2A+1th signal to each group of second devices, the aforementioned process of calculating each RF coefficient is performed again. This process is repeated and so on.
[0091] Whether the coherence time is longer or shorter can be determined based on a preset duration threshold. For example, if the coherence time is greater than the duration threshold, the coherence time is longer, i.e., the channel environment is in a static environment. If the coherence time is less than or equal to the duration threshold, the coherence time is shorter, i.e., the channel environment is time-varying. The duration threshold can be configured based on actual conditions. For example, it can be related to the number of second devices actually included in the device group and / or the duration required to transmit a signal, etc. All possible parameters for determining the duration threshold and the method for determining the same are not limited herein.
[0092] In addition, the aforementioned coherence time can also be called coherence duration. The coherence time can be determined according to actual conditions. This embodiment does not limit the method of obtaining or determining the coherence time. As long as the coherence time can be obtained in advance on the first device side before executing all the solutions provided by this embodiment, it is within the protection scope of this embodiment.
[0093] In some embodiments, the first device calculates a radio frequency coefficient corresponding to each second device. This embodiment does not limit whether the radio frequency coefficients corresponding to different second devices are the same.
[0094] Taking any second device as the target second device as an example, the first device may calculate a right inverse matrix for the channel characteristics between the target second device and the first device, and calculate the RF coefficients corresponding to the target second device based on the right inverse matrix. Calculating the RF coefficients corresponding to the target second device based on the right inverse matrix may mean adding all columns of the right inverse matrix to obtain the RF coefficients corresponding to the target second device.
[0095] For example, taking the target second device as tagn (or the nth tag) and the first device as reader, the right inverse matrix of the channel characteristics between tagn and the first device can be calculated using the following formula: Where n represents the tag number or sequence number. In this example, n can be equal to 1. represents the right inverse matrix, H n represents the channel feature matrix between the nth tag and the reader, H n H It represents the transposed matrix of the channel feature matrix between the nth tag and the reader. Taking the aforementioned specific value of n as 1 as an example, the channel feature between tag1 and reader can be expressed as H1. or, The meanings of the various contents contained in the above formula are the same as those in the above embodiment and are not elaborated on herein.
[0096] Furthermore, all columns of the right inverse matrix are added together to obtain the RF coefficient corresponding to the tagn, which can be expressed as: Among them, w n Indicates the RF coefficient corresponding to tagn, sum_column() means that the matrix Sum all columns of .
[0097] In some embodiments, the first device sends multiple signals to each second device in a plurality of second devices, which may refer to: the first device sequentially uses the RF coefficients corresponding to each second device for the i-th signal in the multiple signals, and sequentially sends the i-th signal to each second device, where i is a positive integer. For example, if there are N second devices (N is an integer greater than or equal to 2), then when the first device generates the i-th signal in the multiple signals, it sequentially uses the RF coefficients corresponding to each second device in the N second devices, and sends the i-th signal to each second device; then, when the first device generates the i+1-th signal in the multiple signals, it also sequentially uses the RF coefficients corresponding to each second device in the N second devices, and sends the i+1-th signal to each second device. That is, the i-th signal will be sent N times on the first device side, and different times will be sent to different second devices, so that each second device can receive the same i-th signal; accordingly, the i-th signal is received once on any second device side.
[0098] For example, if any second device is the target second device and the target second device is tagn, the i-th signal received by tagn can be expressed as r i H n w n , where r i is the i-th signal, and the meanings of other contents are the same as those in the above embodiment; due to the radio frequency coefficient w n Can offset H n , so the signal received at tagn should be r i , that is, r i H n w n =r i I n_n×1 , where I n_n×1 Represents the unit vector of n_n rows and 1 column, n_n represents H n The number of rows, that is, the number of tags, in this embodiment n_n is 1, because in this embodiment one tag corresponds to one H n .
[0099] In some embodiments, if the coherence time is very long, that is, the channel environment is in a static environment, the first device does not need to repeatedly perform the aforementioned process of the first device sending group key generation signaling to each second device, calculating the channel characteristics between each second device and the first device, and calculating the corresponding RF coefficient for each second device. In other words, after the first device calculates the corresponding RF coefficient for each second device, it can perform the process of sending multiple signals to each of the multiple second devices, using the same RF coefficient to send different signals among the multiple signals to the same second device.
[0100] If the coherence time is short, that is, the channel environment is time-varying, the first device can repeat the above process. For example, if the process of sending the i-th signal is to be executed, the first device needs to execute the process of sending group key generation signaling to each second device to calculate the channel characteristics between each second device and the first device, calculate the RF coefficient corresponding to each second device, and then send the i-th signal to each second device based on the RF coefficient corresponding to each second device; if the process of sending the i+1-th signal is to be executed, the first device again executes the process of sending group key generation signaling to each second device to calculate the channel characteristics between each second device and the first device, and calculate the RF coefficient corresponding to each second device, and then send the i+1-th signal to each second device based on the RF coefficient corresponding to each second device.
[0101] If the coherence time is short, that is, the channel environment is time-varying, the first device can also determine when to repeat the process of sending group key generation signaling to each second device to calculate the channel characteristics between each second device and the first device, and calculate the RF coefficient corresponding to each second device based on the specific coherence time. For example, B signals (B can be an integer greater than or equal to 1) can be sent to each second device within the coherence time. After completing the sending of the 1st to Bth signals and before sending the B+1th signal to each second device, the process of sending group key generation signaling to each second device to calculate the channel characteristics between each second device and the first device, and calculate the RF coefficient corresponding to each second device is performed again. Then, based on the RF coefficient corresponding to each second device, the A+1th signal is sent to each second device. The next cycle is repeated and so on. No further details will be given.
[0102] The description of the coherence time is the same as that in the above embodiment and will not be repeated.
[0103] In some possible implementations, the first device generates a first set of keys based on the relevant information of the multiple signals, including: the first device obtains multiple first quantization results based on the relevant information of the multiple signals; and the first device generates the first set of keys based on the multiple first quantization results.
[0104] In the process of the first device sending multiple signals to each second device described in the above embodiment, taking any one signal as the i-th signal as an example, the first device can send the i-th signal to different second devices based on the radio frequency coefficients of different second devices, or it can send the i-th signal to each second device in different groups based on the radio frequency coefficients corresponding to different groups. The number of times the i-th signal is sent depends on the number of second devices or the number of groups, but no matter which method is used, the first device itself can obtain relevant information about the i-th signal, that is, the first device itself can obtain relevant information about each signal.
[0105] Still taking any one signal as the i-th signal as an example, the first device obtains multiple first quantization results based on the relevant information of the multiple signals, including: the first device determines the first quantization range corresponding to the i-th signal based on the relevant information of the i-th signal among the multiple signals, and uses the first quantization value corresponding to the first quantization range as the i-th first quantization result among the multiple first quantization results, wherein the first quantization range is one of multiple first candidate quantization ranges, each first candidate quantization range in the multiple first candidate quantization ranges has a corresponding first candidate quantization value, and i is a positive integer.
[0106] It should be noted that the first device performs the same processing as the i-th signal on each signal, and can eventually obtain multiple quantization results. This embodiment is described in detail with the i-th signal, and each signal is not described one by one.
[0107] In some embodiments, the processing of the first device may also include: the first device may determine the maximum and minimum values of the relevant information value range based on the relevant information of multiple signals; based on the quantization order Q, divide the relevant information value range into Q first candidate quantization ranges, and determine the first candidate quantization value corresponding to each first candidate quantization range in the Q first candidate quantization ranges, where Q is an integer greater than or equal to 2.
[0108] Here, the quantization order Q can be set according to actual conditions, for example, it can be 16, 32, 8, 4, 5, 21 or larger or smaller, and all possible values of Q are not exhaustively enumerated here. The first candidate quantization value corresponding to each of the aforementioned first candidate quantization ranges can be set according to actual conditions, and any first candidate quantization value can be binary, and the length of the first candidate quantization value can be related to the quantization order, for example, the length of the first candidate quantization value can be equal to log2Q bits. Exemplarily, the first candidate quantization value can be a Gray code with a length of log2Q.
[0109] The first device determines the first quantization range corresponding to the i-th signal based on the relevant information of the i-th signal among the multiple signals, and uses the first quantization value corresponding to the first quantization range as the i-th first quantization result among the multiple first quantization results. This may mean that the first device determines the relevant information of the i-th signal among the multiple signals, the first quantization range corresponding to the Q first candidate quantization ranges, and uses the first quantization value corresponding to the first quantization range as the i-th first quantization result among the multiple first quantization results. It should be understood that the aforementioned determination of the Q first candidate quantization ranges and the first candidate quantization value corresponding to each first candidate quantization range can be performed only once, and then the quantization result corresponding to the relevant information of each signal can be determined separately based on the aforementioned Q first candidate quantization ranges and the first candidate quantization value corresponding to each first candidate quantization range. A detailed description thereof will not be given here.
[0110] In some embodiments, in order to reduce the differences in quantization results caused by slight errors on the left and right sides of the quantization boundary, the first device can also round the relevant information of all acquired signals to the nearest integer, and then determine the aforementioned Q first candidate quantization ranges, and the first candidate quantization value corresponding to each first candidate quantization range; and / or, when quantizing each signal, the relevant information of each signal can also be rounded to the nearest integer and then quantized.
[0111] It should be pointed out that the aforementioned embodiment is only an exemplary description of quantizing the relevant information of multiple signals. In actual processing, the quantization method that can be used in this embodiment may not be limited to the method described here. For example, the singular value decomposition method or other quantization methods may also be used. This embodiment does not limit or exhaustively list them.
[0112] In some embodiments, the related information of the multiple signals includes at least one of the following: the strength of each signal in the multiple signals, and the phase of each signal.
[0113] It should be noted that the strength of each signal may alternatively be described as the amplitude of each signal.
[0114] For example, the relevant information of the aforementioned multiple signals includes the strength of each signal. Then the processing of the first device may also include: the first device determines the maximum value (P) of the strength value range of all signals (i.e., the value range of P) based on the strength P of each signal. max ) and minimum value (P min ), that is, P min ≤P≤P max ; Then, based on the quantization order Q, the value range of P is divided into Q first candidate quantization ranges, and a Gray code of length log2Q corresponding to each first candidate quantization range in the Q first candidate quantization ranges is determined. In order to reduce the difference in quantization results caused by small errors on the left and right sides of the quantization boundary, the first device can also round the strengths P of all acquired signals to the nearest integer, and then determine the aforementioned Q first candidate quantization ranges and the first candidate quantization values corresponding to each first candidate quantization range; and / or, when quantizing each signal, the strength P of each signal can also be rounded to the nearest integer and then quantized. In this example, the Q first candidate quantization ranges can also be referred to as Q first candidate intensity quantization ranges. In some possible examples, when the first device sends each signal, it can send a related value of the intensity of each signal, such as the square root of the signal intensity, the original value of the signal intensity, or the power root of the signal intensity, etc., and all possible situations are not exhaustively listed here.
[0115] For example, the relevant information of the aforementioned multiple signals includes the phase of each signal. Then the processing of the first device may further include: the first device based on the phase of each signal Determine the phase value range of all signals (i.e. The maximum value of the range of and minimum value That is Then based on the quantization order Q, The value range of is divided into Q first candidate quantization ranges, and the Gray code of length log2Q corresponding to each of the Q first candidate quantization ranges is determined. In order to reduce the difference in quantization results caused by small errors around the quantization boundary, the first device can also perform phase Rounding to the nearest integer, and then determining the aforementioned Q first candidate quantization ranges and the first candidate quantization value corresponding to each first candidate quantization range; and / or, when quantizing each signal, the phase of each signal may also be quantized. Round to the nearest integer and then perform quantization. In this example, the Q first candidate quantization ranges may also be referred to as Q first candidate phase quantization ranges.
[0116] It should be understood that the above is merely an exemplary description. In actual processing, the intensity and phase of each signal can be used in combination. For example, both Q first candidate intensity quantization ranges and Q first candidate phase quantization ranges can be obtained, and then the qth first candidate intensity quantization range and the qth first candidate phase quantization range correspond to the same quantization value, where q is an integer greater than or equal to 1 and less than or equal to Q, or q is an integer greater than or equal to 0 and less than or equal to Q-1. When quantizing the i-th signal, the corresponding first quantization range can be determined based on either the intensity or phase of the i-th signal, and the quantization result can be determined. Alternatively, the first intensity quantization range and the first phase quantization range corresponding to both the intensity and phase of the i-th signal can be used. If the two are consistent, the first quantization value corresponding to any one of the first quantization ranges can be determined as the quantization result. If the two are inconsistent, either one can be specified as the criterion, such as uniformly specifying the signal intensity as the criterion. All possible examples are not exhaustive here.
[0117] In some embodiments, the first device generates the first set of keys based on the multiple first quantization results. This may be: the first device combines the multiple first quantization results based on a specified order to obtain the first set of keys.
[0118] The designated order can be set according to actual conditions. In some embodiments, the designated order can be a positive order, that is, the first group of keys can be arranged and merged as "the first first quantization result, the second first quantization result... the last first quantization result". In some embodiments, the designated order can be a reverse order, that is, the first group of keys can be arranged and merged as "the last first quantization result, the second to last first quantization result... the first first quantization result". In some embodiments, the designated order can be random, for example, if there are 4 first quantization results in total, the designated order can be 2, 4, 3, 1, that is, the first group of keys can be arranged and merged as "the second first quantization result, the fourth first quantization result, the third first quantization result, the first first quantization result". In this embodiment, the designated order can be set according to actual conditions, and this is not exhaustive. It should be understood that the above is only an exemplary description. As long as each second device and the first device adopt the same designated order, it is within the scope of protection of this embodiment.
[0119] In some embodiments, the first device generates the first set of keys based on the multiple first quantization results. This may be: the first device calculates the first set of keys based on a preset calculation method on the multiple first quantization results.
[0120] In this embodiment, the preset calculation method can be set according to actual conditions, for example, it can be any one or more combinations of XOR calculation, direct calculation, function, etc. For example, XOR calculation can be used, that is, all the first quantization results are XORed to obtain the first group of keys. For another example, function calculation can be used, for example, if the function is a key derivation function (KDF), then multiple first quantization results can be used as inputs of KDF, and the first group of keys can be obtained by KDF calculation. It should be pointed out that the above is only an exemplary description. As long as each second device and the first device adopt the same preset calculation method, it is within the protection scope of this embodiment.
[0121] In some possible implementations, the target second device generates a second set of keys based on the relevant information of the multiple signals, including: the target second device obtains multiple second quantization results based on the relevant information of the multiple signals; the target second device generates the second set of keys based on the multiple second quantization results.
[0122] In the above embodiment, it has been described that the target second device is any one of all the second devices in the device group. The processing of each second device in the device group is the same as that of the target second device, so they are not described one by one here.
[0123] The group key generated by the target second device is referred to herein as the second group key. This is because the target second device generates the second group key based on multiple received signals, which is different from the execution subject of the first device. This may cause the group keys obtained by the target second device to be the same as or different from those obtained by the first device. Further verification is required to determine whether the second group key generated by the target second device is the same as the first group key generated by the first device. Therefore, this embodiment distinguishes between the group key generated by the target second device (that is, any second device) and the group key generated by the first device. It should be understood that, ideally, the group key generated by the target second device (that is, any second device) should be the same as the group key generated by the first device. That is, ideally, the first group key can be equal to the second group key.
[0124] In some embodiments, the target second device obtains multiple second quantization results based on the relevant information of the multiple signals, including: the target second device determines the second quantization range corresponding to the i-th signal based on the relevant information of the i-th signal among the multiple signals, and uses the second quantization value corresponding to the second quantization range as the i-th second quantization result among the multiple second quantization results, wherein the second quantization range is one of multiple second candidate quantization ranges, each second candidate quantization range in the multiple second candidate quantization ranges has a corresponding second candidate quantization value, and i is a positive integer. It should be noted that the target second device performs the same processing as the i-th signal on each signal, and ultimately obtains multiple quantization results. This embodiment is described using the i-th signal, and each signal is not described one by one.
[0125] In some embodiments, the processing of the target second device may also include: the target second device may determine the maximum and minimum values of the relevant information value range based on the relevant information of multiple signals; based on the quantization order Q, divide the relevant information value range into Q second candidate quantization ranges, and determine the second candidate quantization value corresponding to each second candidate quantization range in the Q second candidate quantization ranges, where Q is an integer greater than or equal to 2.
[0126] The specific processing method for the target second device to determine Q second candidate quantization ranges and determine the second candidate quantization value corresponding to each second candidate quantization range in the Q second candidate quantization ranges is the same as the specific processing method for the aforementioned first device to determine Q first candidate quantization ranges and determine the first candidate quantization value corresponding to each first candidate quantization range in the Q first candidate quantization ranges, so it will not be repeated.
[0127] The target second device determines the second quantization range corresponding to the i-th signal based on the relevant information of the i-th signal among the multiple signals, and uses the second quantization value corresponding to the second quantization range as the i-th second quantization result among the multiple second quantization results. This may mean that the target second device determines the relevant information of the i-th signal among the multiple signals, and uses the second quantization value corresponding to the second quantization range in Q second quantization ranges as the i-th second quantization result among the multiple second quantization results. The processing of the target second device obtaining the i-th second quantization result is the same as the method for the aforementioned first device to obtain the i-th first quantization result, and will not be repeated here.
[0128] In some embodiments, the relevant information of the multiple signals also includes at least one of the following: the strength of each signal in the multiple signals, and the phase of each signal. Regarding different cases where the relevant information of the signal is strength and / or phase, the specific instructions for the target second device to determine Q second candidate quantization ranges and the second candidate quantization value corresponding to each second candidate quantization range are similar to the specific instructions for the first device to determine Q first candidate quantization ranges and the first candidate quantization value corresponding to each first candidate quantization range, and are not repeated here.
[0129] In some possible examples, when the relevant information of the signal is the strength of the signal, when the target second device receives each signal, it may be the relevant value of the strength of each signal received, for example, it may be the square root of the strength of the signal, or the original value of the strength of the signal, or the multiple power values of the strength of the signal, etc., and all possible situations are not enumerated here; accordingly, the target second device may be the square, or the original value, or the multiple power values of the relevant value of the strength of each signal, and then determine the Q second candidate quantization ranges and the second candidate quantization value corresponding to each second candidate quantization range. The specific processing of determining the Q second candidate quantization ranges and the second candidate quantization value corresponding to each second candidate quantization range will not be elaborated on.
[0130] In some embodiments, the target second device generates the second set of keys based on the multiple second quantization results. This may be accomplished by combining the multiple second quantization results in a specified order to obtain the second set of keys. The description of the specified order and the specific combining process are the same as those described above for combining the multiple first quantization results in the specified order by the first device to obtain the first set of keys, and are not further described.
[0131] In some embodiments, the target second device generates the second set of keys based on the multiple second quantization results. This may be accomplished by the target second device calculating the second set of keys based on the multiple second quantization results using a preset calculation method. The specific description of the preset calculation method is the same as that of the first device described above and is not repeated here.
[0132] It should be noted that, regardless of whether the aforementioned specified order or the preset calculation method is adopted, the first device and each second device need to respectively generate their respective group keys in the same manner, which will not be repeated here.
[0133] In some possible implementations, the relevant information of the multiple signals includes a key sequence carried by each of the multiple signals; the first device generates a first group of keys based on the relevant information of the multiple signals, including: the first device generates the first group of keys based on the key sequence carried by each of the multiple signals.
[0134] Here, the key sequences carried by different signals may be randomly generated by the first device. This embodiment does not limit the manner in which the first device generates each key sequence.
[0135] The j-th signal among the multiple signals carries one or more data segments, and different data segments among the one or more data segments are calculated based on identifications of different second devices and the j-th key sequence, where j is a positive integer.
[0136] In some embodiments, the plurality of signals refers to a plurality of signals sent to each second device.
[0137] In one case, the first device may send a signal to each second device based on the radio frequency coefficient corresponding to each second device. That is, the same signal content will be sent to each second device separately in this case, and eventually sent multiple times.
[0138] In this case, if the first device wants to send a signal containing the jth key sequence, it needs to send it to N second devices separately. The value of N is defined in the same way as in the previous embodiment and is not repeated here. The jth signal sent to the nth second device can carry a data segment calculated based on the identifier of the nth second device and the jth key sequence. Similarly, the jth signal sent to the n+1th second device can carry a data segment calculated based on the identifier of the n+1th second device and the jth key sequence. This is not an exhaustive list.
[0139] The calculation method can be set according to the actual situation, such as direct calculation, XOR calculation, function calculation or one or more methods. For example, the calculation method is XOR calculation, and the jth signal sent to the nth second device is represented by r jn , r jn The frame structure (that is, r jn The data segment is designed as follows: in, represents the exclusive OR operation, Indicates the ID number of the nth tag, k j The jth key sequence randomly generated by the reader.
[0140] In one case, the first device may send a signal to each second device in each group of second devices based on the radio frequency coefficient corresponding to each group of second devices, that is, the same signal content will be sent multiple times in groups in this case.
[0141] In this case, if the first device wants to send a signal with the content of the j-th key sequence, it needs to be sent to K groups of second devices respectively, that is, sent K times. The value definition of K is the same as that in the previous embodiment and will not be elaborated on. The j-th signal sent to the k-th group of second devices can carry one or more data segments, where the number of data segments depends on the number of second devices included in the k-th group of second devices; the one or more data segments are calculated based on the identifier of each second device in the k-th group of second devices and the j-th key sequence. Similarly, the j-th signal sent to the k+1-th group of second devices can also carry one or more data segments, where the number of data segments depends on the number of second devices included in the k+1-th group of second devices; the one or more data segments are calculated based on the identifier of each second device in the k+1-th group of second devices and the j-th key sequence, and so on, and will not be elaborated on one by one.
[0142] The calculation method is the same as that of the above example and will not be described in detail. For example, the calculation method is XOR calculation, and different data segments are calculated based on the identifiers of different second devices and the jth key sequence. This means that the data segment corresponding to each second device in the kth group of second devices is obtained by XOR calculation using the identifier of each second device and the jth key sequence. For example, when the jth key sequence is sent for the kth time, the jth signal corresponding to the kth group of second devices can be expressed as r jk , r jk The frame structure (that is, r jk One or more data segments) are designed to: in, represents the exclusive OR operation, Indicates the ID number (i.e., identification) of the nth tag in the kth group of tags, k j The jth key sequence randomly generated by the reader.
[0143] In some embodiments, the first device generating the first set of keys based on the key sequence carried by each of the multiple signals may mean that the first device combines the key sequences carried by each of the signals in a specified order to obtain the first set of keys. The specified order may be the same as in the previous embodiment and is not further described.
[0144] In some embodiments, the first device generates the first set of keys based on the key sequence carried by each of the multiple signals, which may mean that the first device calculates the first set of keys based on the key sequence carried by each signal based on a preset calculation method. The preset calculation method may be the same as in the previous embodiment and is not further described.
[0145] In some embodiments, the relevant information of the multiple signals includes a key sequence carried by each signal in the multiple signals; the target second device generates a second set of keys based on the relevant information of the multiple signals, including: the target second device generates the second set of keys based on the key sequence carried by each signal in the multiple signals.
[0146] The jth signal among the multiple signals carries one or more data segments, and different data segments among the one or more data segments are calculated based on different second device identifiers and the jth key sequence. The method further includes: the target second device extracting a target data segment corresponding to the target second device from the jth signal, where j is a positive integer; and the target second device calculating the jth key sequence carried by the jth signal based on the target second device identifier and the target data segment. The calculation method should be the same as the calculation method of the first device and is not repeated here.
[0147] In one case, the first device may send a signal to each second device based on the radio frequency coefficient corresponding to each second device. In this case, the j-th signal sent by the first device to the target second device may carry a data segment, and the data segment is calculated based on the identifier of the target second device and the j-th key sequence. The target second device can directly extract the data segment from the j-th signal as the target data segment, and then calculate based on its own identifier and the target data segment to obtain the j-th key sequence. For example, the calculation method is XOR calculation, and the target second device is the n-th tag, then the extracted data segment can be Then the nth tag still uses its own ID to XOR with the above data segment again to get k j (jth key sequence), the meaning of each content in the above expression is the same as that in the previous example and will not be repeated.
[0148] In one case, the first device may send a signal to each second device in each group of second devices based on the radio frequency coefficient corresponding to each group of second devices. In this case, if the target second device is one of the second devices in the kth group, the target second device will only receive the jth signal sent by the first device for the kth time (i.e., the signal carrying the jth key sequence). The jth signal sent for the kth time may carry one or more data segments. The target second device may directly extract its own corresponding data segment from the jth signal as the target data segment, and then perform calculations based on its own identification and the target data segment to obtain the jth key sequence.
[0149] In this case, the position of the data segment corresponding to the target second device can be set according to actual conditions. For example, if the target second device is the nth second device in the kth group of second devices, the position of its corresponding data segment can be the nth position, or it can be other specified positions. This embodiment does not limit it. As long as the positions of the data segments corresponding to different second devices in the kth group of second devices are different, it is within the protection scope of this embodiment.
[0150] For example, the calculation method is XOR calculation. When the first device sends the jth key sequence for the kth time, the jth signal corresponding to the kth group of second devices can be expressed as r jk , r jk The frame structure (that is, r jk One or more data segments) are: Assuming that the target second device is the nth tag and the position of its corresponding data segment is the nth position, it can be obtained from r jk Extract the nth data segment, that is, As the target data segment, then based on its own identification and Perform XOR calculation again to get k j (jth key sequence), the meaning of each content in the above expression is the same as that in the previous example and will not be repeated.
[0151] In some possible implementations, the multiple signals are used to generate a second group of keys for each second device, and the method further includes: the first device calculates group key verification information based on the first group of keys, wherein the group key verification information is used by each second device to verify the consistency of the second group of keys with the first group of keys; and the first device sends a first message to each second device, wherein the first message carries the group key verification information.
[0152] Taking any second device in the device group as the target second device as an example, in the processing of the target second device, the method also includes: the target second device receives a first message from the first device, wherein the first message carries group key verification information, the group key verification information is calculated by the first device based on the first group key, and the first group key is generated by the first device based on the multiple information; the target second device calculates verification information based on the second group key; the target second device verifies the consistency of the second group key with the first group key based on the group key verification information and the verification information.
[0153] The manner in which each second device generates the second set of keys has been described in detail in the aforementioned embodiments and will not be repeated here.
[0154] In this embodiment, after obtaining its own group key, ie, the first group key, the first device may also initiate a verification process to determine whether the second group key generated by each second device is the same as its own first group key.
[0155] In some embodiments, the first device calculates the group key verification information based on the first group key. This may be as follows: the first device maps the first group key through a first preset function to obtain a first value, and uses the first value as the group key verification information. The first preset function may be a hash function. The specific algorithm used by the hash function can be set according to actual circumstances and is not limited in this embodiment. In addition, the first preset function may also be other types of functions. As long as the corresponding mapped value can be obtained through the function, it is within the scope of protection of this embodiment.
[0156] In some embodiments, the first device calculates the group key verification information based on the first group key. This may include: the first device calculates a cyclic redundancy check (CRC) code of the first group key, and uses the CRC as the group key verification information. The specific algorithm used for the CRC calculation can be set according to actual circumstances and is not limited in this embodiment.
[0157] The first device may send the first message to each of the second devices by multicast, broadcast or unicast, all of which are within the protection scope of this embodiment. In a preferred example, the first device may broadcast the first message to all second devices.
[0158] In some embodiments, the target second device calculates the verification information based on the second set of keys. This may be accomplished by: the target second device maps the second set of keys through a first preset function to obtain a second value, and uses the second value as the verification information. The first preset function is the same as in the previous embodiment and is not further described.
[0159] In some embodiments, the target second device calculates verification information based on the second group of keys, which can be: the target second device calculates a cyclic redundancy check (CRC) code of the second group of keys, and uses the CRC (code) of the second group of keys as verification information.
[0160] It should be noted that the specific processing method for the target second device (ie, any second device) to calculate the verification information should be the same as the method for the first device to verify the information based on the group key.
[0161] In some embodiments, the method also includes at least one of the following: when the second group of keys is consistent with the first group of keys, the target second device sends a second message to the first device, wherein the second message is used to indicate that the target second device has successfully verified the consistency of the second group of keys with the first group of keys; when the second group of keys is inconsistent with the first group of keys, the target second device sends a third message to the first device, wherein the third message is used to indicate that the target second device has failed to verify the consistency of the second group of keys with the first group of keys.
[0162] Correspondingly, in the processing of the first device, the method also includes one of the following: the first device receives a second message from the target second device, wherein the second message is used to indicate that the target second device has successfully verified the consistency of the second group of keys with the first group of keys, and the target second device is one of the multiple second devices; the first device receives a third message from the target second device, wherein the third message is used to indicate that the target second device has failed to verify the consistency of the second group of keys with the first group of keys.
[0163] If the first device receives a second message from a target second device, the first device can record the target second device as the second device that successfully generated the group key, and then communicate with the target second device using the first group key. Here, communication can refer to decrypting received data based on the first group key and / or encrypting sent data based on the first group key. In other words, if the first device receives a second message from any second device, it can determine that the second device successfully generated the group key, record the second device, and communicate with the second device.
[0164] Similarly, if the target second device sends a second message, the target second device can communicate with the first device using the second set of keys; here, communication can refer to decrypting received data based on the second set of keys and / or encrypting sent data based on the second set of keys.
[0165] If the first device receives the third message from the target second device, the first device can continue to perform the aforementioned process on the target second device next time, so that the target second device generates a second group of keys that is the same as the first group of keys. Similarly, if the target second device sends the third message, the target second device can wait for the next generation of the group key.
[0166] In some possible implementations, the multiple signals are used to generate a second group of keys for each second device, and the method further includes: the first device calculates group key error correction information based on the first group of keys, wherein the group key error correction information is used by each second device to correct the second group of keys to obtain a group key consistent with the first group of keys; the first device sends a fourth message to each second device, wherein the fourth message carries the group key error correction information.
[0167] Taking any second device in the device group as the target second device as an example, in the processing of the target second device, the method also includes: the target second device receives a fourth message from the first device, wherein the fourth message carries group key error correction information, and the group key error correction information is calculated by the first device based on the first group key, and the first group key is generated by the first device based on the multiple information; the target second device corrects the second group key based on the group key error correction information to obtain a group key consistent with the first group key.
[0168] The first device calculates the group key error correction information based on the first group key, which may be the case where the first device calculates a check code based on the first group key based on a second preset calculation method, and uses the check code as the group key error correction information. The target second device corrects the second group key based on the group key error correction information to obtain a group key consistent with the first group key, which may be the case where the target second device decodes and corrects the second group key using the group key error correction information based on an error correction method corresponding to the second preset method, to obtain a group key consistent with the first group key.
[0169] Among them, the calculation function (or calculation method) used in the second preset calculation method can be set according to actual conditions. For example, any one or more functions such as LDPC (Low Density Parity-check Codes), Turbo decoding, etc. can be used. All possible methods are not enumerated here. As long as the sequence can be encoded to obtain a check code, so that the other end can perform decoding and error correction, it is within the protection scope of this embodiment.
[0170] In some possible implementations, the first device may trigger an update of the group key.
[0171] In some embodiments, the first device may periodically trigger the updating of the group key. The periodic duration may be set according to actual conditions, such as 7 days, 1 day, or longer or shorter, which are not exhaustively listed here.
[0172] In some embodiments, the first device may trigger an update of the group key when a second device is added to or removed from the device group. The first device may determine the addition or removal of the second device from the device group by receiving indication information from a network device, the indication information being used to instruct the addition or removal of the second device from the device group. The network device may be an access network device, a core network device, an application function (AF), etc., which are not exhaustive here.
[0173] The first device updates the group key by executing the method provided in the above embodiment again, so that the first device and each current second device in the device group all update the group key.
[0174] In conjunction with the following multiple examples, all of which take the first device as a reader (reader / writer) and a total of N tags (labels) in the device group as an example, the key generation method provided in this application is exemplified. The system consisting of the reader and N tags is shown in Figure 4: with the reader as the center and d1 as the radius, there are N tags communicating with the reader. The purpose of the group key scheme is to generate a common group key Gk between the reader and the N tags. At the same time, there are eavesdroppers who try to obtain k by eavesdropping on certain information in the group key generation process. To be closer to the actual scenario, it is assumed that the eavesdropper will not exist in the area with the reader as the center and d2 as the radius, which is called the security area.
[0175] An example is provided in conjunction with FIG5 . In the solution involved in FIG5 , N tags are all single-antenna devices, and the reader is configured with M antennas. The specific steps are as follows:
[0176] Step 501: the reader broadcasts a group key generation signaling, for example, the group key generation signaling can be expressed as message1.
[0177] Step 502: After receiving the group key generation signaling, all tags in the N tags reflect the pilot signal s to the reader in turn according to the time slot anti-collision mechanism.
[0178] Step 503: The reader sequentially receives the reflected pilot signal sent by each tag in step 502 and estimates the channel characteristics between the reader and each tag.
[0179] Take tag 1 among N tags as an example. The details are as follows: a continuous carrier (amplitude is 1) is transmitted by the first antenna of the reader. The reflected pilot signal of tag 1 received by the reader is: By receiving the pilot signal, the reader can decode the channel between tag1 and the reader. Finally, the reader obtains the channels between all tags and the reader: The meanings of the contents contained in each formula in this step are the same as those in the previous embodiment and will not be repeated.
[0180] Step 504: The reader calculates antenna weight coefficients, which are the radio frequency coefficients in the aforementioned embodiment.
[0181] The specific process of this step is as follows: the reader divides H into K groups by row, K = ceil(N / M), ceil(*) means rounding up; the channel matrix of the kth group is obtained (1≤k≤K): Find the right inverse matrix of the k-th channel matrix: Calculate the antenna weight coefficient corresponding to the kth group (i.e. the kth group of tags): The meanings of the contents contained in each formula in this step are the same as those in the previous embodiment and are not described in detail.
[0182] Step 505: The reader transmits a signal r, so that the signals received by N tags are all r.
[0183] Specifically, the reader sends signal r K times, that is, the reader sends the signal r to each group of tags in the K groups of tags divided by N tags. It has been explained in the previous embodiment that multiple signals can be sent to each group of tags. The signal r in this step can be any one of the multiple signals sent to each group of tags.
[0184] Taking the kth signal sent by the reader in the process of sending K signals as an example, that is, the i-th signal sent by the reader to the k-th group of tags can be expressed as r i , the kth antenna weight coefficient is w k , then the signal received by the nth tag involved in the kth group of tags is: r i H k w k =r i I k_n×1 The meaning of each content in this formula is the same as that in the above embodiment and will not be repeated here.
[0185] After the reader transmits K times, all tags in the network will receive the signal r i , the reader also knows r i , so r i The information or features in (i.e., the relevant information of the signal, that is, the relevant information of the i-th signal) can be quantized as a key source.
[0186] If the coherence time is very long, that is, the channel environment is in a static environment, the reader does not need to repeat steps 501 to 504. The reader only needs to repeat step 505 multiple times, and can change signal r (that is, change the relevant information of the signal) each time and re-transmit signal r. In other words, the r in step 505 can be changed to make the key source time-varying and re-transmit the signal. It should be understood that when sending signals at different times, the reader can determine whether to change the relevant information of the signal based on actual needs. In some possible examples, the same signal may be sent twice at any time. This embodiment does not exhaustively enumerate all possible situations.
[0187] If the channel environment is time-varying, steps 501 to 505 may be performed in different coherence times. However, each time step 505 is performed, r may be changed so that the key source is time-varying.
[0188] Step 506: After executing step 505 multiple times, the reader and all tags have accumulated information or features of multiple different r, and can then determine their respective group keys. At this point, the reader obtains the first group key in the above embodiment, and each tag obtains its own second group key in the above embodiment.
[0189] Step 507: The reader and the N tags determine a consistent group key.
[0190] This step can provide different methods for determining the final group key based on the tag computing capability.
[0191] Method 1: The reader maps the initial key sequence (i.e., the reader's first group key) to a certain value through a hash function, or calculates the cyclic redundancy check (CRC) of the sequence. The hash mapping value or CRC is broadcast and transmitted. After receiving it, N tags each calculate their own hash mapping value or CRC based on their own initial key sequence (i.e., the tag's own second group key) and compare it with the data received from the reader. If they are consistent, the success command is returned. If they are inconsistent, the fail command is returned and the next group key generation is awaited. The reader records the tag for which the group key was successfully generated and can use this group key to communicate with these tags.
[0192] Method 2: If the N tags have certain decoding and error correction capabilities (such as LDPC and Turbo decoding), the reader uses a certain encoding method to generate a check code from the initial key sequence (i.e., the reader's first set of keys) and sends the check code to the N tags. All tags use the check code for decoding and error correction (i.e., each tag decodes and corrects its own second set of keys), so that the reader and each tag obtain the same key.
[0193] Of the two methods mentioned above, Method 1 is not suitable for tags with weak computing power and cannot correct errors. If the key is inconsistent, it is necessary to wait for the next group key generation. Method 2 is a commonly used key error correction method, but it requires support for a relatively complex decoding algorithm for the tag.
[0194] Further explanation is given in conjunction with the simulation experiment of the example provided in Figure 5 above: the channel model between the reader and the tag is as follows: in, represents the path loss constant, λ cIndicates the carrier wavelength. The carrier frequency is 900Mhz. Satisfies Rayleigh distribution, d rt Refers to the distance between the reader and the tag. rt Refers to the path loss exponent, which is set to 2. rt is the Rice factor, which is 3. in, c=[c1 … c M ], 1≤m≤M, 1≤n tag ≤N tag , where d r and d t Indicates the distance between the antenna in the reader and the tag, Take 0.5, Take 0, N tag =1. M=8, θ t =π-θ r ,(x r ,y r ) is the coordinate of the reader, which is taken as the origin here. (x t ,y t ) are the coordinates of the tag, N tags are randomly and uniformly distributed, N = 32. The communication range radius d1 = 50m, d2 = 5m. The quantization order Q is 8, and the minimum power P of the signal r is min =-20dBm, the maximum power P of signal r max =20dBm,ref=0.9.
[0195] Based on the above modeling, the key inconsistency rate between N tags and readers, and the key inconsistency rate between Eve and the reader are simulated. The results are shown in Figure 6. The key inconsistency rate between the tag and the reader represented by "tag" in Figure 6 specifically refers to the average value of the key inconsistency rate between the N tags (the second group of keys) and the reader (the first group of keys). It can be seen from Figure 6 that with the increase of the signal-to-noise ratio, the key inconsistency rate between the tag and the reader becomes smaller and smaller. For example, when the signal-to-noise ratio is 10dB, the key inconsistency rate between the tag and the reader is about 0.3. When the signal-to-noise ratio is 30dB, the key inconsistency rate between the tag and the reader is close to 0.05, while the key inconsistency rate between the eavesdropper and the reader is stable around 0.45 to 0.5, indicating that the above example can enable the reader and tag to securely generate their respective group keys.
[0196] Another example is provided in conjunction with FIG7 . In the scheme involved in FIG7 , the strength of signal r is used as the key source. That is, while the signal-related information in the previous embodiment is specifically the signal strength, this example selects the strength of signal r as the key source. That is, the specific content of signal r is not considered, and only its signal strength is used. The specific steps are as follows:
[0197] The specific description of steps 701 to 704 is the same as that of steps 501 to 504 in the above example, and thus will not be repeated.
[0198] Step 705: The reader transmits a signal r so that the signal strengths received by the N tags are the same.
[0199] The specific process is as follows: the strength of the reader's transmitted signal r is recorded as P, and it is transmitted K times. Taking the kth time as an example: the antenna weight coefficient of the kth time is w k , then the signal amplitude received by the tags involved in the kth group is: In the formula, except that P represents the signal strength (or amplitude), the rest of the content is the same as the previous embodiment and will not be repeated here. After K transmissions, all tags will record the signal strength P, and the reader also knows P, so P will be used as the key source for quantization.
[0200] If the coherence time is very long, meaning the channel environment is static, the reader does not need to repeat steps 701 through 704. Instead, the reader only needs to change the value of P in step 705 to make the key source time-varying. If the channel environment is time-varying, steps 701 through 705 can be performed at different coherence times.
[0201] Step 706: After multiple executions of step 705, assuming that all tags have obtained L strength values and the reader also knows these L strength values, both parties begin quantization, and the reader and N tags obtain the initial key sequence, that is, the reader obtains the first set of keys, and each tag obtains its own second set of keys. The specific process is as follows: Assume that the reader takes the range of P as: P min ≤P≤P max When the quantization order is Q, the range of P is evenly divided into Q parts, each of which corresponds to a Gray code of length log2Q. In this case, each intensity value corresponds to log2Q bits. To reduce the differences in quantization results caused by small errors around the quantization boundary, the reader and tag can perform rounding on all acquired intensity values and then quantize them. At this point, the reader and N tags obtain the initial key sequence. Quantization methods include, but are not limited to, the methods described herein.
[0202] Step 707: The reader and the N tags determine a consistent group key. Specifically, using the given method 1 or method 2, the reader and the N tags determine a final consistent key.
[0203] An example is provided in conjunction with FIG8 . In the scheme involved in FIG8 , the data information of signal r is used as the key source. This example design uses the data information carried in signal r as the key source to resist the adverse eavesdropping scenario where Eve is close to the tag or the difference between the legitimate channel and the illegitimate channel is small. The specific implementation includes the following steps:
[0204] Steps 801 to 804 are the same as steps 501 to 504 in the above example and are not described again.
[0205] Step 805: The reader transmits a signal r, so that N tags receive the same group key.
[0206] The specific process is as follows: the reader sends K signals r. When the kth signal r jk When r jk The frame structure is designed as follows: When any tag in group k receives r jk After that, take out the data segment corresponding to itself (i.e. target data segment), and then use its own ID to XOR the data segment to obtain k j . In this way, after K transmissions, all tags will get the same k j The meaning of the formula in this step is the same as that in the previous embodiment and will not be repeated here.
[0207] Within the same coherence time, the key source can be time-varied by simply changing k in step 805. Steps 801 to 805 can be performed within different coherence times.
[0208] Step 806: Concatenate the accumulated different k (i.e., key sequences) into a group key sequence. At this point, the reader obtains the first group key (i.e., the group key sequence obtained by the reader), and each tag obtains its own second group key (i.e., the group key sequence obtained by each tag).
[0209] Step 807: The reader and the N tags determine a consistent group key. That is, using the given method 1 or method 2, the reader and the N tags determine the final consistent key.
[0210] The examples above demonstrate a physical-layer group key generation scheme for a zero-power communication network with a reader as the central node and multiple tags as child nodes. This scheme assigns weights to the reader's multiple antennas, enabling multiple tags to simultaneously receive the same key source and thereby obtain the group key. This effectively reduces the time overhead of group key generation. Furthermore, because the weights are calculated using legitimate channel values, eavesdroppers cannot receive the same key source as the tags due to the difference between legitimate and eavesdropped channels, thus ensuring the security of the group key. Furthermore, the key source is designed to resist eavesdropping at varying levels of severity, adapting to diverse application scenarios.
[0211] In the solution provided by this embodiment, a first device sends multiple signals to each second device. The radio frequency coefficients of these multiple signals are calculated based on the channel characteristics between the second device and the first device. Furthermore, the first device itself generates a group key for communicating with each second device based on the relevant information of each signal. In this way, by configuring the radio frequency coefficients corresponding to different second devices for the signals sent to different second devices, the channel characteristics between the second device and the first device can be accurately offset, that is, the loss or interference in the channel between the second device and the first device can be offset. This ensures that the time overhead of generating the group key is reduced while also ensuring the security of the group key.
[0212] Finally, the beneficial effects of this embodiment are further explained in combination with relevant technologies.
[0213] Research on group key generation technology falls into two main categories: cryptography-based group key generation and physical-layer-based group key generation. For example, cryptography-based group key generation involves generating group keys between an access point (AP) and multiple stations (STAs). The AP first performs a four-way handshake with each STA to generate a corresponding pairwise key, which varies for different STAs. When a group key needs to be generated, the AP generates a group key (GTK), encrypts the GTK with the pairwise key, and sends the encrypted data to the STA. The STA then decrypts the data using the pairwise key to obtain the GTK. This means that if there are N STAs, the GTK needs to be sent N times. The processing methods of group keys based on physical layer characteristics may include: in the first method, the central node and the child nodes exchange pilot signals with each other within a coherent time, and each records the signal strength. Then the central node calculates multiple strength differences and sends them to the child nodes respectively. The child nodes use their own recorded signal strength and the received strength differences to recover the group key; in the second method, all child nodes are required to be configured with multiple antennas. The child nodes record the antennas that receive signals as 1 and the antennas that do not receive signals as 0, and finally obtain a sequence of multi-antenna receiving signal states; in the third method, through a specified method, it can be guaranteed that the state sequence of multiple child nodes is the same, so this state sequence can be used as the group key.
[0214] However, the group key generation schemes in the above related technologies have the following problems:
[0215] First, they place high demands on sub-node devices. Cryptography-based group key generation requires devices to support key generators and complex encryption and decryption algorithms. Group key solutions based on physical layer characteristics also require sub-node devices to possess certain hardware or algorithm capabilities. These solutions, which place special demands on sub-nodes, are not universally applicable in zero-power networks. In most scenarios, zero-power devices have minimalist circuit designs, low computing power, and low storage capacity, and are unable to support the requirements of these solutions.
[0216] Second, the time overhead of generating the group key is high. Here, we assume that the time for a one-way node-to-node communication is T, and there are N child nodes. Taking the generation of a group key between an AP (Access Point) and multiple STAs (Stations) as an example, each child node requires a four-way handshake to generate a pair of keys. The final group key must then be sent to each STA in turn, so the time required to generate the group key is greater than 2NT. For group keys based on physical layer characteristics, using the first method as an example, the time required to generate a group key is 2NT. Within a coherence time, if the channel remains unchanged, group key generation can only be performed once. In scenarios with longer coherence times, the group key will not change.
[0217] The key generation method provided by the embodiment of the present application can first reduce the time overhead of group key generation. Specifically, the time required for all tags (i.e., each second device) to obtain the quantization result or key sequence of the group key (i.e., obtain the relevant information of a signal once, or obtain the quantization result or key sequence based on the relevant information of a signal) provided by the key generation method provided by the present application is Less than 2NT, that is, lower than the time overhead of the group key generation scheme in the existing standard (802.11i). Again, the key generation method provided by this application does not require the tag (that is, the second device) to add any additional overhead. For the zero-power device tag, no redundant process is added. The tag only needs to perform simple reflection and reception of signals to achieve the generation of the group key. There is no need to change the technology supported by the zero-power device and the simple circuit design. Finally, even in an environment with a long coherence time, the group key can still be updated to avoid the problem of a single key being used for too long. At the same time, not only can the endogenous channel be used to protect the key source, but the signal r can also be designed to strengthen the protection of the key source to resist eavesdroppers with different degrees of eavesdropping.
[0218] FIG9 is a schematic diagram of the composition structure of a first device according to an embodiment of the present application, including:
[0219] The first communication unit 901 is configured to send multiple signals to each of the multiple second devices, where radio frequency coefficients of the multiple signals are calculated based on channel characteristics between each second device and the first device;
[0220] The first processing unit 902 is configured to generate a first set of keys based on relevant information of the multiple signals, where the first set of keys is used for communication between the first device and the multiple second devices.
[0221] The first communication unit is configured to send a group key generation signaling to each of the second devices; and receive a pilot signal from each of the second devices, wherein the pilot signal is a reflected signal corresponding to the group key generation signaling;
[0222] The first processing unit is configured to calculate a channel characteristic between each second device and the first device based on a pilot signal of each second device.
[0223] The first processing unit is used to calculate one or more radio frequency coefficients based on the channel characteristics between each second device and the first device, wherein different radio frequency coefficients among the one or more radio frequency coefficients correspond to different second devices.
[0224] The first communication unit is used to send the multiple signals to each second device in the kth group of second devices based on the kth RF coefficient among the one or more RF coefficients, wherein different RF coefficients among the one or more RF coefficients correspond to different groups of the multiple second devices, and different groups of the multiple second devices include different second devices, the kth group of second devices is one of the one or more groups of the multiple second devices, and k is a positive integer.
[0225] The first processing unit is configured to obtain a plurality of first quantization results based on relevant information of the plurality of signals; and generate the first group of keys based on the plurality of first quantization results.
[0226] The first processing unit is used to determine a first quantization range corresponding to the i-th signal based on relevant information of the i-th signal among the multiple signals, and use the first quantization value corresponding to the first quantization range as the i-th first quantization result among the multiple first quantization results, wherein the first quantization range is one of multiple first candidate quantization ranges, each first candidate quantization range in the multiple first candidate quantization ranges has a corresponding first candidate quantization value, and i is a positive integer.
[0227] The relevant information of the multiple signals includes at least one of the following: the strength of each signal in the multiple signals and the phase of each signal.
[0228] The relevant information of the multiple signals includes a key sequence carried by each signal in the multiple signals; the first processing unit is used to generate the first group of keys based on the key sequence carried by each signal in the multiple signals.
[0229] The j-th signal among the multiple signals carries one or more data segments, and different data segments among the one or more data segments are calculated based on identifications of different second devices and the j-th key sequence, where j is a positive integer.
[0230] The multiple signals are used by each second device to generate a second group of keys; the first processing unit is used to calculate group key verification information based on the first group of keys, wherein the group key verification information is used by each second device to verify the consistency of the second group of keys with the first group of keys;
[0231] The first communication unit is configured to send a first message to each of the second devices, wherein the first message carries the group key verification information.
[0232] The first communication unit is used to perform one of the following: receiving a second message from a target second device, wherein the second message is used to indicate that the target second device has successfully performed a consistency check on the second group of keys and the first group of keys, and the target second device is one of the multiple second devices; receiving a third message from the target second device, wherein the third message is used to indicate that the target second device has failed a consistency check on the second group of keys and the first group of keys.
[0233] The multiple signals are used by each second device to generate a second group key; the first processing unit is used to calculate group key error correction information based on the first group key, wherein the group key error correction information is used by each second device to correct the error of the second group key to obtain a group key consistent with the first group key;
[0234] The first communication unit is configured to send a fourth message to each of the second devices, wherein the fourth message carries the group key error correction information.
[0235] The first device is one of the following: a terminal device, a network device; the second device is a zero-power consumption device.
[0236] FIG10 is a schematic diagram of the structure of a target second device according to an embodiment of the present application, including:
[0237] The second communication unit 1001 is configured to receive multiple signals from a first device, wherein radio frequency coefficients of the multiple signals are calculated based on channel characteristics between the target second device and the first device;
[0238] The second processing unit 1002 is used to generate a second set of keys based on the relevant information of the multiple signals, wherein the second set of keys is used for communication between the target second device and the first device, the second set of keys is the same key for multiple second devices, and the target second device is one of the multiple second devices.
[0239] The second communication unit is used to receive the group key generation signaling from the first device; and send a pilot signal to the first device, wherein the pilot signal is a reflected signal corresponding to the group key generation signaling, and the pilot signal is used by the first device to calculate the channel characteristics between the target second device and the first device.
[0240] The second processing unit is configured to obtain a plurality of second quantization results based on the relevant information of the plurality of signals; and generate the second set of keys based on the plurality of second quantization results.
[0241] The second processing unit is used to determine the second quantization range corresponding to the i-th signal based on the relevant information of the i-th signal among the multiple signals, and use the second quantization value corresponding to the second quantization range as the i-th second quantization result among the multiple second quantization results, wherein the second quantization range is one of multiple second candidate quantization ranges, each second candidate quantization range in the multiple second candidate quantization ranges has a corresponding second candidate quantization value, and i is a positive integer.
[0242] The relevant information of the multiple signals includes one of the following: the strength of each signal in the multiple signals and the phase of each signal.
[0243] The relevant information of the multiple signals includes a key sequence carried by each signal in the multiple signals; the second processing unit is used to generate the second group of keys based on the key sequence carried by each signal in the multiple signals.
[0244] The j-th signal among the multiple signals carries one or more data segments, and different data segments among the one or more data segments are calculated based on the identification of different second devices and the j-th key sequence; the second processing unit is used to extract the target data segment corresponding to the target second device from the j-th signal, where j is a positive integer; and calculate the j-th key sequence carried by the j-th signal based on the identification of the target second device and the target data segment.
[0245] The second communication unit is configured to receive a first message from the first device, wherein the first message carries group key verification information, the group key verification information is calculated by the first device based on a first group key, and the first group key is generated by the first device based on the multiple information;
[0246] The second processing unit is configured to calculate verification information based on the second group of keys; and verify consistency between the second group of keys and the first group of keys based on the group key verification information and the verification information.
[0247] The second communication unit is used to perform at least one of the following: when the second group of keys is consistent with the first group of keys, sending a second message to the first device, wherein the second message is used to indicate that the target second device has successfully verified the consistency of the second group of keys with the first group of keys; when the second group of keys is inconsistent with the first group of keys, sending a third message to the first device, wherein the third message is used to indicate that the target second device has failed to verify the consistency of the second group of keys with the first group of keys.
[0248] the second communication unit being configured to receive a fourth message from the first device, wherein the fourth message carries group key error correction information, the group key error correction information being calculated by the first device based on a first group key, the first group key being generated by the first device based on the multiple information;
[0249] The second processing unit is configured to perform error correction on the second group key based on the group key error correction information to obtain a group key consistent with the first group key.
[0250] The first device is one of the following: a terminal device, a network device; the target second device is a zero-power consumption device.
[0251] The device of the embodiment of the present application can realize the corresponding functions of each device in the aforementioned key generation method embodiment. The process, function, implementation and beneficial effect corresponding to each module (submodule, unit or component, etc.) in the first device or the target second device can be found in the corresponding description in the above method embodiment, which will not be repeated here. It should be noted that the functions described in the first device of the application embodiment or each module (submodule, unit or component, etc.) in the target second device can be implemented by different modules (submodule, unit or component, etc.), or by the same module (submodule, unit or component, etc.).
[0252] Figure 11 is a schematic structural diagram of a communication device 1100 according to an embodiment of the present application. The communication device 1100 includes a processor 1110, which can call and execute a computer program from a memory to enable the communication device 1100 to implement the method in the embodiment of the present application.
[0253] In a possible implementation, the communication device 1100 may further include a memory 1120. The processor 1110 may call and execute a computer program from the memory 1120 to enable the communication device 1100 to implement the method in the embodiment of the present application.
[0254] The memory 1120 may be a separate device independent of the processor 1110 , or may be integrated into the processor 1110 .
[0255] In one possible implementation, the communication device 1100 may further include a transceiver 1130 , and the processor 1110 may control the transceiver 1130 to communicate with other devices. Specifically, the transceiver 1130 may send information or data to other devices, or receive information or data sent by other devices.
[0256] The transceiver 1130 may include a transmitter and a receiver. The transceiver 1130 may further include an antenna, and the number of antennas may be one or more.
[0257] In one possible implementation, the communication device 1100 may be the first device or the target second device of an embodiment of the present application, and the communication device 1100 may implement the corresponding processes implemented by the first device or the target second device in each method of the embodiment of the present application. For the sake of brevity, they will not be repeated here.
[0258] In an embodiment of the present application, a first device is provided, comprising: a processor, and a memory communicating with the processor, the memory being used to store instructions, wherein when the instructions are executed by the processor, the instructions cause the first device to execute: sending multiple signals to each of a plurality of second devices, wherein radio frequency coefficients of the multiple signals are calculated based on channel characteristics between each of the second devices and the first device; and generating a first set of keys based on relevant information of the multiple signals, wherein the first set of keys is used for communication between the first device and the plurality of second devices.
[0259] The instruction also causes the first device to execute: sending a group key generation signaling to each of the second devices; receiving a pilot signal from each of the second devices, wherein the pilot signal is a reflected signal corresponding to the group key generation signaling; and calculating the channel characteristics between each of the second devices and the first device based on the pilot signal of each of the second devices.
[0260] The instruction further causes the first device to execute: calculating one or more radio frequency coefficients based on channel characteristics between each second device and the first device, wherein different radio frequency coefficients among the one or more radio frequency coefficients correspond to different second devices.
[0261] The instruction also causes the first device to execute: based on the kth RF coefficient among the one or more RF coefficients, sending the multiple signals to each second device in the kth group of second devices, wherein different RF coefficients among the one or more RF coefficients correspond to different groups of the multiple second devices, and different groups of the multiple second devices include different second devices, the kth group of second devices is one of the one or more groups of the multiple second devices, and k is a positive integer.
[0262] The instructions further cause the first device to execute: obtaining a plurality of first quantization results based on relevant information of the plurality of signals; and generating the first set of keys based on the plurality of first quantization results.
[0263] The instruction also causes the first device to execute: based on the relevant information of the i-th signal among the multiple signals, determine the first quantization range corresponding to the i-th signal, and use the first quantization value corresponding to the first quantization range as the i-th first quantization result among the multiple first quantization results, wherein the first quantization range is one of multiple first candidate quantization ranges, each first candidate quantization range in the multiple first candidate quantization ranges has a corresponding first candidate quantization value, and i is a positive integer.
[0264] The relevant information of the multiple signals includes at least one of the following: the strength of each signal in the multiple signals and the phase of each signal.
[0265] The relevant information of the multiple signals includes a key sequence carried by each signal in the multiple signals; the instructions further cause the first device to execute: generating the first group of keys based on the key sequence carried by each signal in the multiple signals.
[0266] The j-th signal among the multiple signals carries one or more data segments, and different data segments among the one or more data segments are calculated based on identifications of different second devices and the j-th key sequence, where j is a positive integer.
[0267] The multiple signals are used to generate a second group of keys for each second device; the instruction also causes the first device to execute: calculating group key verification information based on the first group of keys, wherein the group key verification information is used by each second device to verify the consistency of the second group of keys with the first group of keys; and sending a first message to each second device, wherein the first message carries the group key verification information.
[0268] The instruction also causes the first device to perform one of the following: receiving a second message from a target second device, wherein the second message is used to indicate that the target second device has successfully performed a consistency check on the second group of keys and the first group of keys, and the target second device is one of the multiple second devices; receiving a third message from the target second device, wherein the third message is used to indicate that the target second device has failed a consistency check on the second group of keys and the first group of keys.
[0269] The multiple signals are used to generate a second group of keys for each second device; the instruction also causes the first device to execute: calculating group key error correction information based on the first group of keys, wherein the group key error correction information is used by each second device to correct the second group of keys to obtain a group key consistent with the first group of keys; and sending a fourth message to each second device, wherein the fourth message carries the group key error correction information.
[0270] The first device is one of the following: a terminal device, a network device; the second device is a zero-power consumption device.
[0271] In an embodiment of the present application, a target second device is provided, including: a processor, a memory communicating with the processor, the memory being used to store instructions, and when the instructions are executed by the processor, the instructions cause the target second device to execute: receiving multiple signals from a first device, wherein the radio frequency coefficients of the multiple signals are calculated based on the channel characteristics between the target second device and the first device; generating a second group of keys based on relevant information of the multiple signals, wherein the second group of keys is used for communication between the target second device and the first device, the second group of keys are the same keys for multiple second devices, and the target second device is one of the multiple second devices.
[0272] The instruction also causes the target second device to execute: receive group key generation signaling from the first device; send a pilot signal to the first device, wherein the pilot signal is a reflected signal corresponding to the group key generation signaling, and the pilot signal is used by the first device to calculate the channel characteristics between the target second device and the first device.
[0273] The instructions further cause the target second device to: obtain a plurality of second quantization results based on relevant information of the plurality of signals; and generate the second set of keys based on the plurality of second quantization results.
[0274] The instruction also causes the target second device to execute: based on the relevant information of the i-th signal among the multiple signals, determine the second quantization range corresponding to the i-th signal, and use the second quantization value corresponding to the second quantization range as the i-th second quantization result among the multiple second quantization results, wherein the second quantization range is one of multiple second candidate quantization ranges, each second candidate quantization range in the multiple second candidate quantization ranges has a corresponding second candidate quantization value, and i is a positive integer.
[0275] The relevant information of the multiple signals includes one of the following: the strength of each signal in the multiple signals and the phase of each signal.
[0276] The relevant information of the multiple signals includes a key sequence carried by each signal in the multiple signals; the instructions further cause the target second device to execute: generating the second set of keys based on the key sequence carried by each signal in the multiple signals.
[0277] The j-th signal among the multiple signals carries one or more data segments, and different data segments among the one or more data segments are calculated based on the identification of different second devices and the j-th key sequence; the instruction also causes the target second device to execute: extract the target data segment corresponding to the target second device from the j-th signal, where j is a positive integer; and calculate the j-th key sequence carried by the j-th signal based on the identification of the target second device and the target data segment.
[0278] The instruction also causes the target second device to execute: receiving a first message from the first device, wherein the first message carries group key verification information, the group key verification information is calculated by the first device based on the first group key, and the first group key is generated by the first device based on the multiple information; calculating verification information based on the second group key; and verifying the consistency of the second group key with the first group key based on the group key verification information and the verification information.
[0279] The instruction also causes the target second device to perform at least one of the following: when the second group of keys is consistent with the first group of keys, sending a second message to the first device, wherein the second message is used to indicate that the target second device has successfully verified the consistency of the second group of keys with the first group of keys; when the second group of keys is inconsistent with the first group of keys, sending a third message to the first device, wherein the third message is used to indicate that the target second device has failed to verify the consistency of the second group of keys with the first group of keys.
[0280] The instruction also causes the target second device to execute: receiving a fourth message from the first device, wherein the fourth message carries group key error correction information, the group key error correction information is calculated by the first device based on the first group key, and the first group key is generated by the first device based on the multiple information; correcting the second group key based on the group key error correction information to obtain a group key consistent with the first group key.
[0281] The first device is one of the following: a terminal device, a network device; the target second device is a zero-power consumption device.
[0282] 12 is a schematic structural diagram of a chip 1200 according to an embodiment of the present application. The chip 1200 includes a processor 1210, which can call and execute a computer program from a memory to implement the method according to the embodiment of the present application.
[0283] In one possible implementation, the chip 1200 may further include a memory 1220. The processor 1210 may call and execute a computer program from the memory 1220 to implement the method performed by the access network device or the first core network device in the embodiment of the present application. The memory 1220 may be a separate device independent of the processor 1210 or integrated into the processor 1210.
[0284] In one possible implementation, the chip 1200 may further include an input interface 1230. The processor 1210 may control the input interface 1230 to communicate with other devices or chips, specifically, to obtain information or data sent by other devices or chips. In one possible implementation, the chip 1200 may further include an output interface 1240. The processor 1210 may control the output interface 1240 to communicate with other devices or chips, specifically, to output information or data to other devices or chips.
[0285] In one possible implementation, the chip can be applied to the first device or the target second device in the embodiments of the present application, and the chip can implement the corresponding processes implemented by the first device or the target second device in the various methods of the embodiments of the present application. For the sake of brevity, they will not be repeated here.
[0286] It should be understood that the chip mentioned in the embodiments of the present application can also be called a system-level chip, a system chip, a chip system or a system-on-chip chip, etc.
[0287] The processor mentioned above can be a general-purpose processor, a digital signal processor (DSP), a field programmable gate array (FPGA), an application specific integrated circuit (ASIC) or other programmable logic devices, transistor logic devices, discrete hardware components, etc.
[0288] The above-mentioned memory may be a volatile memory or a nonvolatile memory, or may include both volatile and nonvolatile memories.
[0289] The memories in the embodiments of the present application are intended to include, but are not limited to, these and any other suitable types of memories.
[0290] Figure 13 is a schematic block diagram of a communication system 1300 according to an embodiment of the present application. The communication system 1300 includes a first device 1310 and a target second device 1320. In the above embodiments, all or part of the embodiments can be implemented using software, hardware, firmware, or any combination thereof. When implemented using software, all or part of the embodiments can be implemented in the form of a computer program product. The computer program product includes one or more computer instructions. When the computer program instructions are loaded and executed on a computer, the processes or functions according to the embodiments of the present application are generated in whole or in part. The computer can be a general-purpose computer, a special-purpose computer, a computer network, or other programmable device. The computer instructions can be stored in a computer-readable storage medium or transmitted from one computer-readable storage medium to another.
[0291] It should be understood that in the various embodiments of the present application, the size of the serial numbers of the above-mentioned processes does not mean the order of execution. The execution order of each process should be determined by its function and internal logic, and should not constitute any limitation on the implementation process of the embodiments of the present application.
[0292] Those skilled in the art will clearly understand that, for the convenience and brevity of description, the specific working processes of the systems, devices and units described above can refer to the corresponding processes in the aforementioned method embodiments and will not be repeated here.
[0293] The above description is merely a specific embodiment of the present application, but the scope of protection of the present application is not limited thereto. Any modifications or substitutions that can be easily conceived by a person skilled in the art within the technical scope disclosed in the present application should be included within the scope of protection of the present application. Therefore, the scope of protection of the present application should be based on the scope of protection of the claims.
Claims
1. A key generation method, comprising: The first device sends a plurality of signals to each second device among a plurality of second devices, wherein radio frequency coefficients of the plurality of signals are calculated based on channel characteristics between each second device and the first device; The first device generates a first set of keys based on relevant information of the multiple signals, where the first set of keys is used for communication between the first device and the multiple second devices.
2. The method according to claim 1, wherein: The method further comprises: The first device sends a group key generation signaling to each of the second devices; The first device receives a pilot signal from each of the second devices, wherein the pilot signal is a reflected signal corresponding to the group key generation signaling; The first device calculates channel characteristics between each second device and the first device based on the pilot signal of each second device.
3. The method according to claim 2, wherein: The method further comprises: The first device calculates one or more radio frequency coefficients based on the channel characteristics between each second device and the first device, wherein different radio frequency coefficients among the one or more radio frequency coefficients correspond to different second devices.
4. The method according to claim 3, wherein: The first device sends a plurality of signals to each of the plurality of second devices, including: The first device sends the multiple signals to each second device in the kth group of second devices based on the kth RF coefficient among the one or more RF coefficients, wherein different RF coefficients among the one or more RF coefficients correspond to different groups of the multiple second devices, and different groups of the multiple second devices include different second devices, and the kth group of second devices is one of the one or more groups of the multiple second devices, and k is a positive integer.
5. The method according to any one of claims 1 to 4, wherein: The first device generates a first set of keys based on the relevant information of the multiple signals, including: The first device obtains a plurality of first quantization results based on the relevant information of the plurality of signals; The first device generates the first set of keys based on the plurality of first quantization results.
6. The method according to claim 5, wherein: The first device obtains a plurality of first quantization results based on the relevant information of the plurality of signals, including: The first device determines a first quantization range corresponding to the i-th signal based on relevant information of the i-th signal among the multiple signals, and uses a first quantization value corresponding to the first quantization range as the i-th first quantization result among the multiple first quantization results, wherein the first quantization range is one of multiple first candidate quantization ranges, each first candidate quantization range in the multiple first candidate quantization ranges has a corresponding first candidate quantization value, and i is a positive integer.
7. The method according to claim 5 or 6, wherein: The relevant information of the multiple signals includes at least one of the following: the strength of each signal in the multiple signals and the phase of each signal.
8. The method according to any one of claims 1 to 4, wherein: The relevant information of the plurality of signals includes a key sequence carried by each of the plurality of signals; The first device generates a first set of keys based on the relevant information of the multiple signals, including: The first device generates the first set of keys based on a key sequence carried by each signal in the plurality of signals.
9. The method according to claim 8, wherein: The j-th signal among the multiple signals carries one or more data segments, and different data segments among the one or more data segments are calculated based on identifications of different second devices and the j-th key sequence, where j is a positive integer.
10. The method according to any one of claims 1 to 9, wherein: The plurality of signals are used for each second device to generate a second set of keys, and the method further comprises: The first device calculates group key verification information based on the first group key, wherein the group key verification information is used by each second device to verify consistency between the second group key and the first group key; The first device sends a first message to each of the second devices, wherein the first message carries the group key verification information.
11. The method according to claim 10, wherein: The method further comprises one of the following: The first device receives a second message from a target second device, wherein the second message is used to indicate that the target second device has successfully verified the consistency of the second group of keys with the first group of keys, and the target second device is one of the multiple second devices; The first device receives a third message from the target second device, wherein the third message is used to indicate that the target second device has failed to perform consistency verification on the second group of keys and the first group of keys.
12. The method according to any one of claims 1 to 9, wherein: The plurality of signals are used for each second device to generate a second set of keys, and the method further comprises: The first device calculates group key error correction information based on the first group key, wherein the group key error correction information is used by each second device to correct the error of the second group key to obtain a group key consistent with the first group key; The first device sends a fourth message to each of the second devices, wherein the fourth message carries the group key error correction information.
13. The method according to any one of claims 1 to 12, wherein: The first device is one of the following: a terminal device, a network device; the second device is a zero-power consumption device.
14. A key generation method, comprising: The target second device receives a plurality of signals from the first device, wherein radio frequency coefficients of the plurality of signals are calculated based on channel characteristics between the target second device and the first device; The target second device generates a second set of keys based on relevant information of the multiple signals, wherein the second set of keys is used for communication between the target second device and the first device, the second set of keys are the same keys for multiple second devices, and the target second device is one of the multiple second devices.
15. The method according to claim 14, wherein: The method further comprises: The target second device receives a group key generation signaling from the first device; The target second device sends a pilot signal to the first device, wherein the pilot signal is a reflected signal corresponding to the group key generation signaling, and the pilot signal is used by the first device to calculate channel characteristics between the target second device and the first device.
16. The method according to claim 14 or 15, wherein: The target second device generates a second set of keys based on the relevant information of the multiple signals, including: The target second device obtains a plurality of second quantization results based on the relevant information of the plurality of signals; The target second device generates the second set of keys based on the plurality of second quantization results.
17. The method according to claim 16, wherein: The target second device obtains a plurality of second quantization results based on the relevant information of the plurality of signals, including: The target second device determines a second quantization range corresponding to the i-th signal based on relevant information of the i-th signal among the multiple signals, and uses a second quantization value corresponding to the second quantization range as the i-th second quantization result among the multiple second quantization results, wherein the second quantization range is one of multiple second candidate quantization ranges, each second candidate quantization range in the multiple second candidate quantization ranges has a corresponding second candidate quantization value, and i is a positive integer.
18. The method according to claim 16 or 17, wherein: The relevant information of the multiple signals includes one of the following: the strength of each signal in the multiple signals and the phase of each signal.
19. The method according to claim 14 or 15, wherein: The relevant information of the plurality of signals includes a key sequence carried by each of the plurality of signals; The target second device generates a second set of keys based on the relevant information of the multiple signals, including: The target second device generates the second set of keys based on a key sequence carried by each signal in the plurality of signals.
20. The method according to claim 19, wherein: The jth signal of the multiple signals carries one or more data segments, and different data segments of the one or more data segments are calculated based on the identification of different second devices and the jth key sequence; the method further includes: The target second device extracts the target data segment corresponding to the target second device from the j-th signal, where j is a positive integer; The target second device calculates the jth key sequence carried by the jth signal based on the identifier of the target second device and the target data segment.
21. The method according to any one of claims 14 to 20, wherein: The method further comprises: The target second device receives a first message from the first device, wherein the first message carries group key verification information, the group key verification information is calculated by the first device based on a first group key, and the first group key is generated by the first device based on the multiple information; The target second device calculates verification information based on the second group of keys; The target second device verifies consistency between the second group of keys and the first group of keys based on the group key verification information and the verification information.
22. The method according to claim 21, wherein: The method further comprises at least one of the following: When the second group of keys is consistent with the first group of keys, the target second device sends a second message to the first device, wherein the second message is used to indicate that the target second device has successfully verified the consistency of the second group of keys with the first group of keys; When the second group of keys is inconsistent with the first group of keys, the target second device sends a third message to the first device, wherein the third message is used to indicate that the target second device has failed to verify the consistency of the second group of keys with the first group of keys.
23. The method according to any one of claims 14 to 20, wherein: The method further comprises: The target second device receives a fourth message from the first device, wherein the fourth message carries group key error correction information, the group key error correction information is calculated by the first device based on a first group key, and the first group key is generated by the first device based on the multiple information; The target second device performs error correction on the second group key based on the group key error correction information to obtain a group key consistent with the first group key.
24. The method according to any one of claims 14 to 23, wherein: The first device is one of the following: a terminal device, a network device; the target second device is a zero-power consumption device.
25. A first device, comprising: A first communication unit, configured to send a plurality of signals to each second device among a plurality of second devices, wherein radio frequency coefficients of the plurality of signals are calculated based on channel characteristics between each second device and the first device; The first processing unit is configured to generate a first group of keys based on relevant information of the multiple signals, where the first group of keys is used for communication between the first device and the multiple second devices.
26. The first device according to claim 25, wherein: The first communication unit is configured to send a group key generation signaling to each of the second devices; and receive a pilot signal from each of the second devices, wherein the pilot signal is a reflected signal corresponding to the group key generation signaling; The first processing unit is configured to calculate a channel characteristic between each second device and the first device based on a pilot signal of each second device.
27. The first device according to claim 26, wherein: The first processing unit is used to calculate one or more radio frequency coefficients based on the channel characteristics between each second device and the first device, wherein different radio frequency coefficients among the one or more radio frequency coefficients correspond to different second devices.
28. The first device according to claim 27, wherein: The first communication unit is used to send the multiple signals to each second device in the kth group of second devices based on the kth RF coefficient among the one or more RF coefficients, wherein different RF coefficients among the one or more RF coefficients correspond to different groups of the multiple second devices, and different groups of the multiple second devices include different second devices, and the kth group of second devices is one of the one or more groups of the multiple second devices, and k is a positive integer.
29. According to the first device according to any one of claims 25-28, the first processing unit is used to obtain multiple first quantization results based on the relevant information of the multiple signals; and generate the first group of keys based on the multiple first quantization results.
30. The first device according to claim 29, wherein: The first processing unit is used to determine a first quantization range corresponding to the i-th signal based on relevant information of the i-th signal among the multiple signals, and use a first quantization value corresponding to the first quantization range as the i-th first quantization result among the multiple first quantization results, wherein the first quantization range is one of multiple first candidate quantization ranges, each first candidate quantization range in the multiple first candidate quantization ranges has a corresponding first candidate quantization value, and i is a positive integer.
31. The first device according to claim 29 or 30, wherein: The relevant information of the multiple signals includes at least one of the following: the strength of each signal in the multiple signals and the phase of each signal.
32. The first device according to any one of claims 25 to 28, wherein: The relevant information of the multiple signals includes a key sequence carried by each of the multiple signals; and the first processing unit is used to generate the first group of keys based on the key sequence carried by each of the multiple signals.
33. The first device according to claim 32, wherein: The j-th signal among the multiple signals carries one or more data segments, and different data segments among the one or more data segments are calculated based on identifications of different second devices and the j-th key sequence, where j is a positive integer.
34. The first device according to any one of claims 25 to 33, wherein: The multiple signals are used for each second device to generate a second group of keys; the first processing unit is used to calculate group key verification information based on the first group of keys, wherein the group key verification information is used for each second device to verify the consistency of the second group of keys with the first group of keys; The first communication unit is used to send a first message to each of the second devices, wherein the first message carries the group key verification information.
35. The first device according to claim 34, wherein: The first communication unit is used to perform one of the following: receiving a second message from a target second device, wherein the second message is used to indicate that the target second device has successfully performed a consistency check on the second group of keys and the first group of keys, and the target second device is one of the multiple second devices; receiving a third message from the target second device, wherein the third message is used to indicate that the target second device has failed a consistency check on the second group of keys and the first group of keys.
36. The first device according to any one of claims 25 to 33, wherein: The multiple signals are used for each second device to generate a second group key; the first processing unit is used to calculate group key error correction information based on the first group key, wherein the group key error correction information is used for each second device to correct the error of the second group key to obtain a group key consistent with the first group key; The first communication unit is used to send a fourth message to each of the second devices, wherein the fourth message carries the group key error correction information.
37. The first device according to any one of claims 25 to 36, wherein: The first device is one of the following: a terminal device, a network device; the second device is a zero-power consumption device.
38. A target second device, comprising: A second communication unit, configured to receive a plurality of signals from a first device, wherein radio frequency coefficients of the plurality of signals are calculated based on channel characteristics between the target second device and the first device; A second processing unit is used to generate a second group of keys based on the relevant information of the multiple signals, wherein the second group of keys is used for communication between the target second device and the first device, the second group of keys are the same keys for multiple second devices, and the target second device is one of the multiple second devices.
39. The target second device according to claim 38, wherein: The second communication unit is used to receive the group key generation signaling from the first device; and send a pilot signal to the first device, wherein the pilot signal is a reflected signal corresponding to the group key generation signaling, and the pilot signal is used by the first device to calculate the channel characteristics between the target second device and the first device.
40. The target second device according to claim 38 or 39, wherein: The second processing unit is configured to obtain a plurality of second quantization results based on the relevant information of the plurality of signals; and generate the second group of keys based on the plurality of second quantization results.
41. The target second device according to claim 40, wherein: The second processing unit is used to determine a second quantization range corresponding to the i-th signal based on relevant information of the i-th signal among the multiple signals, and use the second quantization value corresponding to the second quantization range as the i-th second quantization result among the multiple second quantization results, wherein the second quantization range is one of multiple second candidate quantization ranges, each second candidate quantization range in the multiple second candidate quantization ranges has a corresponding second candidate quantization value, and i is a positive integer.
42. The target second device according to claim 40 or 41, wherein: The relevant information of the multiple signals includes one of the following: the strength of each signal in the multiple signals and the phase of each signal.
43. The target second device according to claim 38 or 39, wherein: The relevant information of the multiple signals includes a key sequence carried by each of the multiple signals; and the second processing unit is used to generate the second group of keys based on the key sequence carried by each of the multiple signals.
44. The target second device according to claim 43, wherein: The j-th signal among the multiple signals carries one or more data segments, and different data segments among the one or more data segments are calculated based on the identification of different second devices and the j-th key sequence; the second processing unit is used to extract the target data segment corresponding to the target second device from the j-th signal, where j is a positive integer; and calculate the j-th key sequence carried by the j-th signal based on the identification of the target second device and the target data segment.
45. The target second device according to any one of claims 38 to 44, wherein: The second communication unit is configured to receive a first message from the first device, wherein the first message carries group key verification information, the group key verification information is calculated by the first device based on a first group key, and the first group key is generated by the first device based on the multiple information; The second processing unit is configured to calculate verification information based on the second group of keys; and verify consistency between the second group of keys and the first group of keys based on the group key verification information and the verification information.
46. The target second device according to claim 45, wherein: The second communication unit is used to perform at least one of the following: when the second group of keys is consistent with the first group of keys, sending a second message to the first device, wherein the second message is used to indicate that the target second device has successfully verified the consistency of the second group of keys with the first group of keys; when the second group of keys is inconsistent with the first group of keys, sending a third message to the first device, wherein the third message is used to indicate that the target second device has failed to verify the consistency of the second group of keys with the first group of keys.
47. The target second device according to any one of claims 38 to 44, wherein: The second communication unit is configured to receive a fourth message from the first device, wherein the fourth message carries group key error correction information, the group key error correction information is calculated by the first device based on a first group key, and the first group key is generated by the first device based on the multiple information; The second processing unit is configured to perform error correction on the second group key based on the group key error correction information to obtain a group key consistent with the first group key.
48. The target second device according to any one of claims 38 to 47, wherein: The first device is one of the following: a terminal device, a network device; the target second device is a zero-power consumption device.
49. A first device, comprising: A processor, and a memory communicating with the processor, the memory being used to store instructions, wherein when the instructions are executed by the processor, the instructions cause the first device to execute: sending multiple signals to each second device among multiple second devices, wherein the radio frequency coefficients of the multiple signals are calculated based on the channel characteristics between each second device and the first device; and generating a first group of keys based on relevant information of the multiple signals, wherein the first group of keys is used for communication between the first device and the multiple second devices.
50. The first device according to claim 49, wherein The instruction also causes the first device to execute: sending a group key generation signaling to each of the second devices; receiving a pilot signal from each of the second devices, wherein the pilot signal is a reflected signal corresponding to the group key generation signaling; and calculating the channel characteristics between each of the second devices and the first device based on the pilot signal of each of the second devices.
51. The first device according to claim 50, wherein The instruction also causes the first device to execute: calculating one or more radio frequency coefficients based on channel characteristics between each of the second devices and the first device, wherein different radio frequency coefficients among the one or more radio frequency coefficients correspond to different second devices.
52. The first device according to claim 51, wherein The instruction also causes the first device to execute: based on the kth RF coefficient among the one or more RF coefficients, sending the multiple signals to each second device in the kth group of second devices, wherein different RF coefficients among the one or more RF coefficients correspond to different groups of the multiple second devices, and different groups of the multiple second devices include different second devices, the kth group of second devices is one of the one or more groups of the multiple second devices, and k is a positive integer.
53. According to the first device according to any one of claims 49-52, the instruction further causes the first device to execute: obtaining multiple first quantization results based on the relevant information of the multiple signals; and generating the first group of keys based on the multiple first quantization results.
54. The first device according to claim 53, wherein The instruction also causes the first device to execute: based on relevant information of the i-th signal among the multiple signals, determine a first quantization range corresponding to the i-th signal, and use a first quantization value corresponding to the first quantization range as the i-th first quantization result among the multiple first quantization results, wherein the first quantization range is one of multiple first candidate quantization ranges, each first candidate quantization range in the multiple first candidate quantization ranges has a corresponding first candidate quantization value, and i is a positive integer.
55. The first device according to claim 53 or 54, wherein The relevant information of the multiple signals includes at least one of the following: the strength of each signal in the multiple signals and the phase of each signal.
56. The first device according to any one of claims 49 to 52, wherein: The relevant information of the multiple signals includes a key sequence carried by each of the multiple signals; the instructions further cause the first device to execute: generating the first group of keys based on the key sequence carried by each of the multiple signals.
57. The first device according to claim 56, wherein The j-th signal among the multiple signals carries one or more data segments, and different data segments among the one or more data segments are calculated based on identifications of different second devices and the j-th key sequence, where j is a positive integer.
58. The first device according to any one of claims 49 to 57, wherein: The multiple signals are used to generate a second group of keys for each second device; the instruction also causes the first device to execute: based on the first group of keys, calculate group key verification information, wherein the group key verification information is used by each second device to verify the consistency of the second group of keys with the first group of keys; send a first message to each second device, wherein the first message carries the group key verification information.
59. The first device according to claim 58, wherein The instruction also causes the first device to perform one of the following: receiving a second message from a target second device, wherein the second message is used to indicate that the target second device has successfully verified the consistency of the second group of keys with the first group of keys, and the target second device is one of the multiple second devices; receiving a third message from the target second device, wherein the third message is used to indicate that the target second device has failed to verify the consistency of the second group of keys with the first group of keys.
60. The first device according to any one of claims 49 to 57, wherein: The multiple signals are used to generate a second group of keys for each second device; the instruction also causes the first device to execute: based on the first group of keys, calculate group key error correction information, wherein the group key error correction information is used by each second device to correct the second group of keys to obtain a group key consistent with the first group of keys; send a fourth message to each second device, wherein the fourth message carries the group key error correction information.
61. The first device according to any one of claims 49-60, wherein: The first device is one of the following: a terminal device, a network device; the second device is a zero-power consumption device.
62. A target second device, comprising: A processor, and a memory communicating with the processor, the memory being used to store instructions, wherein when the instructions are executed by the processor, the instructions cause the target second device to execute: receiving multiple signals from a first device, wherein radio frequency coefficients of the multiple signals are calculated based on channel characteristics between the target second device and the first device; generating a second group of keys based on relevant information of the multiple signals, wherein the second group of keys is used for communication between the target second device and the first device, the second group of keys are the same keys for multiple second devices, and the target second device is one of the multiple second devices.
63. The target second device according to claim 62, wherein: The instruction also causes the target second device to execute: receiving a group key generation signaling from the first device; sending a pilot signal to the first device, wherein the pilot signal is a reflected signal corresponding to the group key generation signaling, and the pilot signal is used by the first device to calculate the channel characteristics between the target second device and the first device.
64. The target second device according to claim 62 or 63, wherein: The instructions further cause the target second device to execute: obtaining a plurality of second quantization results based on the relevant information of the plurality of signals; Based on the plurality of second quantization results, the second set of keys is generated.
65. The target second device according to claim 64, wherein: The instruction also causes the target second device to execute: based on relevant information of the i-th signal among the multiple signals, determine a second quantization range corresponding to the i-th signal, and use a second quantization value corresponding to the second quantization range as the i-th second quantization result among the multiple second quantization results, wherein the second quantization range is one of multiple second candidate quantization ranges, each second candidate quantization range in the multiple second candidate quantization ranges has a corresponding second candidate quantization value, and i is a positive integer.
66. The target second device according to claim 64 or 65, wherein: The relevant information of the multiple signals includes one of the following: the strength of each signal in the multiple signals and the phase of each signal.
67. The target second device according to claim 62 or 63, wherein: The relevant information of the multiple signals includes a key sequence carried by each of the multiple signals; the instructions further cause the target second device to execute: generating the second set of keys based on the key sequence carried by each of the multiple signals.
68. The target second device according to claim 67, wherein: The j-th signal among the multiple signals carries one or more data segments, and different data segments among the one or more data segments are calculated based on the identification of different second devices and the j-th key sequence; the instruction also enables the target second device to execute: extracting the target data segment corresponding to the target second device from the j-th signal, where j is a positive integer; and calculating the j-th key sequence carried by the j-th signal based on the identification of the target second device and the target data segment.
69. The target second device according to any one of claims 62 to 68, wherein: The instruction also causes the target second device to execute: receiving a first message from the first device, wherein the first message carries group key verification information, the group key verification information is calculated by the first device based on a first group key, and the first group key is generated by the first device based on the multiple information; calculating verification information based on the second group key; and verifying the consistency of the second group key with the first group key based on the group key verification information and the verification information.
70. The target second device according to claim 69, wherein: The instruction also causes the target second device to perform at least one of the following: when the second group of keys is consistent with the first group of keys, sending a second message to the first device, wherein the second message is used to indicate that the target second device has successfully verified the consistency of the second group of keys with the first group of keys; when the second group of keys is inconsistent with the first group of keys, sending a third message to the first device, wherein the third message is used to indicate that the target second device has failed to verify the consistency of the second group of keys with the first group of keys.
71. The target second device according to any one of claims 62 to 68, wherein: The instruction also causes the target second device to execute: receiving a fourth message from the first device, wherein the fourth message carries group key error correction information, the group key error correction information is calculated by the first device based on the first group key, and the first group key is generated by the first device based on the multiple information; correcting the second group key based on the group key error correction information to obtain a group key consistent with the first group key.
72. The target second device according to any one of claims 62 to 71, wherein: The first device is one of the following: a terminal device, a network device; the target second device is a zero-power consumption device.
73. A chip, comprising: A processor, configured to call and run a computer program from a memory, so that a device equipped with the chip executes a method as claimed in any one of claims 1 to 13 or claims 14 to 24.
74. A computer-readable storage medium for storing a computer program, which, when executed by a device, causes the device to perform the method according to any one of claims 1 to 13 or claims 14 to 24.
75. A computer program product comprising computer program instructions for causing a computer to perform the method of any one of claims 1 to 13 or claims 14 to 24.
76. A computer program causing a computer to perform the method of any one of claims 1 to 13 or claims 14 to 24.
Citation Information
Patent Citations
Secret communication method and antenna equipment
CN103067042A
RFID system secret key generation method and devices based on tag ID
CN105721142A
RFID key wireless generation method based on Rabin encryption
CN106603228A
Wireless key generation method and device, equipment and storage medium
CN116095677A
Method for key establishment using Anti-collision algorithm
US20140307871A1
Cited By
Symmetric key generation method and device, equipment, medium and product
CN119545338A
