Key generation method and apparatus
By verifying the randomness and consistency of channel information, high-quality keys are generated, solving the problem of insufficient key quality in existing technologies, improving the randomness and consistency of keys, and reducing resource waste.
Patent Information
- Authority / Receiving Office
- WO · WO
- Patent Type
- Applications
- Current Assignee / Owner
- Filing Date
- 2025-09-17
- Publication Date
- 2026-03-26
AI Technical Summary
When using physical layer key generation technology, existing technologies still need to be studied to improve key quality, especially key randomness and consistency.
By acquiring and verifying the randomness and consistency of channel information, the first and second devices are used to generate keys that satisfy randomness and consistency, thereby reducing resource waste.
It improves the randomness and consistency of the key, reduces resource waste, and avoids unnecessary resource consumption, especially when channel conditions are not suitable for key generation.
Smart Images

Figure CN2025121871_26032026_PF_FP_ABST
Abstract
Description
Key generation method and device
[0001] The present application claims priority to the Chinese patent application No. 202411320042.3, filed on September 20, 2024, and entitled "Key generation method and device", the content of which is incorporated herein by reference in its entirety. TECHNICAL FIELD
[0002] The present application relates to the field of communication technology, and in particular to a key generation method and device. BACKGROUND
[0003] With the rapid development of communication technology, information transmission plays a huge role in many scenarios. In order to ensure the security of information in the transmission process and prevent information from being monitored, the sending end can encrypt the information by using a key before sending the information. One way is to generate a key by using a physical layer key generation technology. The main feature of the physical layer key generation technology is that the two communication parties generate a key based on channel information. In the scenario of generating a key by using the physical layer key generation technology, how to improve the quality of the key still needs to be studied. SUMMARY
[0004] Embodiments of the present application provide a key generation method and device, which can improve the quality of the key.
[0005] In a first aspect, the present application provides a key generation method, which can be applied to a first device. For example, the first device can be a network device, and can also be a component (such as a processor, a chip, a chip system, or a circuit or a functional module, etc.) in the network device, and can also be a logic node, a logic module or software capable of realizing all or part of the functions of the network device. For another example, the first device can be a terminal device, and can also be a component (such as a processor, a chip, a chip system, or a circuit or a functional module, etc.) in the terminal device, and can also be a logic node, a logic module or software capable of realizing all or part of the functions of the terminal device. The following will be described taking the first device as an example.
[0006] The method comprises: the first device acquires first channel information obtained by performing channel estimation on a first channel, the first channel information satisfying a randomness requirement, and the first channel being a channel for the second device to send information to the first device. The first device receives second channel information, the second channel information being obtained by performing channel estimation on a second channel, and the second channel information satisfying the randomness requirement, and the second channel being a channel for the first device to send information to the second device. The first device generates a first key based on the first channel information, under the condition that the first channel information and the second channel information satisfy a consistency requirement, and the first key being used for encrypting information transmitted by the second channel.
[0007] It can be seen that, in the case that the first channel information satisfying the randomness requirement can be obtained for the first channel, the second channel information satisfying the randomness requirement can be obtained for the second channel, and the first channel information and the second channel information satisfy the consistency requirement, it indicates that the randomness of the first channel and the randomness of the second channel can both satisfy the requirement, and the consistency of the first channel and the second channel also satisfies the requirement, which indicates that the channel conditions of the first channel and the second channel are suitable for generating a key, and the first device generates a first key based on the first channel information. The method is beneficial to improve the quality of the key, including improving the randomness of the first key, and improving the consistency between the first key and a second key, the second key being a key generated by a second device based on second channel information. Moreover, compared with the way of directly generating a key based on channel information and then detecting the quality of the key, the method provided in the embodiment of the application can not generate a key based on current channel information when the current channel condition is not suitable for generating a key, thereby reducing resource waste.
[0008] In an optional implementation, the first device obtains the first channel information by performing channel estimation on the first channel, including: the first device obtains N1 channel estimation results by performing channel estimation on the first channel, N1 being an integer greater than 1. The first device determines whether the N1 channel estimation results satisfy the randomness requirement. In the case that the N1 channel estimation results satisfy the randomness requirement, the first channel information includes the N1 channel estimation results.
[0009] In an optional implementation, N1 is greater than 2. The method further includes: in the case that the N1 channel estimation results do not satisfy the randomness requirement, the first device selects N2 channel estimation results from the N1 channel estimation results, and determines whether the N2 channel estimation results satisfy the randomness requirement; N2 is an integer greater than 1, and N2 is less than N1. In the case that the N2 channel estimation results satisfy the randomness requirement, the first channel information includes the N2 channel estimation results.
[0010] It can be seen that, in this way, the first device further determines whether the N2 channel estimation results satisfy the randomness requirement in the case that the N1 channel estimation results do not satisfy the randomness requirement. The first device can improve the accuracy of determining whether the channel estimation results satisfy the randomness requirement by determining whether the channel estimation results satisfy the randomness requirement for multiple times.
[0011] In an optional implementation, at least one of the first device and the second device corresponds to multiple antennas. The first device obtains the first channel information by performing channel estimation on the first channel, including: the first device obtains N1 channel matrices obtained by performing channel estimation on the first channel, N1 being an integer greater than 1; the first device determines whether a first scalar obtained based on the N1 channel matrices satisfies a randomness requirement; and in a case where the first scalar satisfies the randomness requirement, the first channel information includes the first scalar.
[0012] It can be seen that, in a case where at least one of the first device and the second device corresponds to multiple antennas, the first device can perform the verification of whether a scalar obtained based on a channel matrix satisfies a randomness requirement, so that the first channel information obtained by the first device includes the scalar obtained based on the channel matrix. Compared with the channel matrix, the scalar obtained based on the channel matrix requires less signaling overhead, which is beneficial to reducing the signaling overhead in a case where the first device also sends the first channel information to the first device.
[0013] In an optional implementation, the first scalar is a maximum singular value of the N1 channel matrices; or, the first scalar is a trace of the N1 channel matrices; or, the first scalar is a determinant of the N1 channel matrices.
[0014] In an optional implementation, the first channel information is obtained by performing channel estimation on the first channel at multiple time instants within a first time period; and the second channel information is obtained by performing channel estimation on the second channel at the multiple time instants within the first time period. It can be seen that the first channel information and the second channel information are obtained by performing channel estimation at multiple time instants within the same time period, which can improve the consistency between the first channel information and the second channel information, and thus is beneficial to improving the possibility that the first channel information and the second channel information satisfy the consistency requirement.
[0015] In an optional implementation, the method further includes: the first device receives first indication information, or the first device sends the first indication information; and the first indication information is used to indicate the first time period.
[0016] The first device receiving the first indication information can enable the first device to determine the first time period, so that the first device determines the first channel information from results of channel estimation of the first channel in the first time period. The first device sending the first indication information can help the second device to determine the first time period, so that the second device determines the second channel information from results of channel estimation of the second channel in the first time period. It can be seen that the embodiment can help the first device and the second device to obtain the channel information meeting the randomness requirement from results of channel estimation in the same time period, and can improve the consistency between the first channel information and the second channel information, and further improve the possibility that the first channel information and the second channel information meet the consistency requirement.
[0017] In an optional embodiment, the method further includes that the first device sends the first channel information. This can help the second device to obtain the first channel information, and further perform the operation of determining whether the second channel information and the first channel information meet the consistency requirement, so as to generate the second key based on the second channel information in the case that the second channel information and the first channel information meet the consistency requirement, and further improve the consistency between the second key and the first key.
[0018] In an optional embodiment, the method further includes that the first device sends the second indication information, and the second indication information is used to indicate that the first channel information meets the randomness requirement. This can help the second device to determine that the first channel information meets the randomness requirement, and further determine whether the second channel information and the first channel information meet the consistency requirement, so as to generate the second key based on the second channel information in the case that the second channel information and the first channel information meet the consistency requirement, and further improve the consistency between the second key and the first key.
[0019] In an optional embodiment, the method further includes that the first device sends the third indication information, and the third indication information is used to indicate time information of channel estimation corresponding to the first channel information. This can enable the second device to obtain the second channel information based on the third indication information, so that time information of channel estimation corresponding to the second channel information matches time information of channel estimation corresponding to the first channel information, can improve the consistency between the first channel information and the second channel information, and further help to improve the possibility that the first channel information and the second channel information meet the consistency requirement.
[0020] In an optional implementation, the method further includes: the first device sending fourth indication information in the case that the first channel information and the second channel information satisfy the consistency requirement, the fourth indication information being used to indicate that the first channel information and the second channel information satisfy the consistency requirement. This implementation is advantageous for the second device to determine, based on the fourth indication information, that the first channel information and the second channel information satisfy the consistency requirement, and then generate the second key based on the second channel information. In this way, the second device can not need to perform consistency checking on the first channel information and the second channel information, thereby reducing the calculation amount and power consumption of the second device.
[0021] In an optional implementation, the method further includes: receiving fifth indication information, the fifth indication information being used to indicate that the second channel information satisfies the randomness requirement. This way is helpful for the first device to determine that the second channel information satisfies the randomness requirement, and then further perform the operation of determining whether the first channel information and the second channel information satisfy the consistency requirement, so as to generate the first key based on the first channel information in the case that the first channel information and the second channel information satisfy the consistency requirement, thereby improving the consistency between the first key and the second key.
[0022] In an optional implementation, the method further includes: the first device receiving sixth indication information, the sixth indication information being used to indicate time information of channel estimation corresponding to the second channel information. The first device obtaining the first channel information by performing channel estimation on the first channel includes: the first device determining the first channel information based on the time information of channel estimation corresponding to the second channel information, the time information of channel estimation corresponding to the first channel information matching the time information of channel estimation corresponding to the second channel information. This can improve the consistency between the first channel information and the second channel information, and then be advantageous for improving the possibility that the first channel information and the second channel information satisfy the consistency requirement.
[0023] In an optional implementation, the first channel information satisfies the randomness requirement, including: an information entropy of the first channel information being greater than or equal to a first threshold. The second channel information satisfies the randomness requirement, including: an information entropy of the second channel information being greater than or equal to the first threshold.
[0024] In an optional implementation, the first channel information and the second channel information satisfy the consistency requirement, including: mutual information of the first channel information and the second channel information being greater than or equal to a second threshold.
[0025] In a second aspect, the present application provides a key generation method, which can be applied to a second device. For example, the second device can be a network device, or a component (e.g., a processor, a chip, a chip system, or a circuit or a functional module, etc.) in the network device, or a logic node, a logic module or software capable of realizing all or part of the functions of the network device. For another example, the second device can be a terminal device, or a component (e.g., a processor, a chip, a chip system, or a circuit or a functional module, etc.) in the terminal device, or a logic node, a logic module or software capable of realizing all or part of the functions of the terminal device. The following describes the second device as an example.
[0026] The method comprises: obtaining, by the second device, second channel information obtained by performing channel estimation on a second channel, the second channel information satisfying a randomness requirement, the second channel being a channel used by a first device to send information to the second device; sending, by the second device, the second channel information; and generating, by the second device, a second key based on the second channel information, in a case where the second channel information and first channel information satisfy a consistency requirement, the first channel information being obtained by performing channel estimation on a first channel, the first channel information satisfying the randomness requirement, the first channel being a channel used by the second device to send information to the first device, the second key being used to encrypt information transmitted on the first channel.
[0027] It can be seen that, in a case where the first channel information satisfying the randomness requirement and the second channel information satisfying the randomness requirement are obtained for the first channel and the second channel respectively, and the first channel information and the second channel information satisfy the consistency requirement, it indicates that the randomness of the first channel and the randomness of the second channel both satisfy the requirement, and the consistency of the first channel and the second channel also satisfies the requirement, which indicates that the channel conditions of the first channel and the second channel are suitable for generating a key, and the second device generates the second key based on the second channel information. The method is beneficial to improving the quality of the key, including improving the randomness of the second key, and improving the consistency between the second key and a first key generated by the first device based on the first channel information. Moreover, compared with a method of generating a key based on channel information and then detecting the quality of the key, the method provided in the present application embodiment can not generate a key based on current channel information when the current channel conditions are not suitable for generating a key, thereby reducing resource waste.
[0028] In an optional implementation, the method further comprises: receiving, by the second device, the first channel information; and determining, by the second device, whether the first channel information and the second channel information satisfy the consistency requirement.
[0029] In an optional implementation, the method further comprises: receiving, by the second device, second indication information, the second indication information being used to indicate that the first channel information satisfies the randomness requirement.
[0030] In an optional implementation, the method further includes: the second device receiving third indication information, the third indication information being used to indicate time information of channel estimation corresponding to the first channel information. The second device obtaining the second channel information obtained by performing channel estimation on the second channel includes: the second device determining the second channel information based on the time information of channel estimation corresponding to the first channel information, the time information of channel estimation corresponding to the second channel information matching the time information of channel estimation corresponding to the first channel information. The consistency between the first channel information and the second channel information can be improved, and thus the possibility of the first channel information and the second channel information meeting the consistency requirement can be improved.
[0031] In an optional implementation, the second device generates the second key based on the second channel information in a case where the second channel information and the first channel information meet the consistency requirement, including: the second device generating the second key based on the second channel information in a case where the fourth indication information is received, the fourth indication information being used to indicate that the first channel information and the second channel information meet the consistency requirement. In this implementation, the second device can not need to perform consistency checking on the first channel information and the second channel information, and thus the calculation amount and power consumption of the second device can be reduced.
[0032] In an optional implementation, the second device obtaining the second channel information obtained by performing channel estimation on the second channel includes: the second device obtaining M1 channel estimation results obtained by performing channel estimation on the second channel, M1 being an integer greater than 1; the second device determining whether the M1 channel estimation results meet a randomness requirement; and in a case where the M1 channel estimation results meet the randomness requirement, the second channel information including the M1 channel estimation results.
[0033] In an optional implementation, M1 is greater than 2, and the method further includes: in a case where the M1 channel estimation results do not meet the randomness requirement, the second device selecting M2 channel estimation results from the M1 channel estimation results, and determining whether the M2 channel estimation results meet the randomness requirement, M2 being an integer greater than 1 and smaller than M1; and in a case where the M2 channel estimation results meet the randomness requirement, the second channel information including the M2 channel estimation results.
[0034] It can be seen that in this manner, in a case where the M1 channel estimation results do not meet the randomness requirement, the second device further determines whether the M2 channel estimation results meet the randomness requirement. The second device can improve the accuracy of determining whether the channel estimation results meet the randomness requirement by determining whether the channel estimation results meet the randomness requirement multiple times.
[0035] In an optional implementation, at least one of the first device and the second device corresponds to multiple antennas; the second device acquires the second channel information obtained by performing channel estimation on the second channel, including: the second device acquires M1 channel matrices obtained by performing channel estimation on the second channel; the second device determines whether a second scalar obtained based on the M1 channel matrices satisfies the randomness requirement; and in the case where the second scalar satisfies the randomness requirement, the second channel information includes the second scalar.
[0036] It can be seen that, in the case where at least one of the first device and the second device corresponds to multiple antennas, the second device can perform the verification of whether a scalar obtained based on a channel matrix satisfies the randomness requirement, so that the second channel information obtained by the second device includes the scalar obtained based on the channel matrix. Compared with the channel matrix, the scalar obtained based on the channel matrix requires less signaling overhead, which is conducive to reducing the signaling overhead required by the second device for sending the second channel information.
[0037] In an optional implementation, the second scalar is a maximum singular value of the M1 channel matrices; or, the second scalar is a trace of the M1 channel matrices; or, the second scalar is a determinant of the M1 channel matrices.
[0038] In an optional implementation, the first channel information is obtained by performing channel estimation on the first channel at multiple time instants within a first time period; and the second channel information is obtained by performing channel estimation on the second channel at the multiple time instants within the first time period. It can be seen that, the first channel information and the second channel information are obtained by performing channel estimation at multiple time instants within the same time period, which can improve the consistency between the first channel information and the second channel information, and further improve the possibility that the first channel information and the second channel information satisfy the consistency requirement.
[0039] In an optional implementation, the method further includes: the second device receives the first indication information, or the second device sends the first indication information. The first indication information is used to indicate the first time period.
[0040] The second device receiving the first indication information can enable the second device to determine the first time period, so that the second device determines the second channel information from results obtained by performing channel estimation on the second channel within the first time period. The second device sending the first indication information can help the first device to determine the first time period, so that the first device determines the first channel information from results obtained by performing channel estimation on the first channel within the first time period. It can be seen that, this implementation can help the first device and the second device to obtain channel information satisfying the randomness requirement from results obtained by performing channel estimation within the same time period, which can improve the consistency between the first channel information and the second channel information, and further improve the possibility that the first channel information and the second channel information satisfy the consistency requirement.
[0041] In an optional implementation, the method further includes: the second device sending fifth indication information, the fifth indication information being used to indicate that the second channel information satisfies the randomness requirement. This manner helps the first device to determine that the second channel information satisfies the randomness requirement, and further judge whether the first channel information and the second channel information satisfy the consistency requirement, so as to generate the first key based on the first channel information in the case that the first channel information and the second channel information satisfy the consistency requirement, and is beneficial to improve the consistency between the first key and the second key.
[0042] In an optional implementation, the method further includes: the second device sending sixth indication information, the sixth indication information being used to indicate time information of channel estimation corresponding to the second channel information. This manner can enable the first device to acquire the first channel information based on the sixth indication information, so that the time information of channel estimation corresponding to the first channel information matches the time information of channel estimation corresponding to the second channel information, and can improve the consistency between the first channel information and the second channel information, and further is beneficial to improve the possibility that the first channel information and the second channel information satisfy the consistency requirement.
[0043] In an optional implementation, the first channel information satisfies the randomness requirement, including: information entropy of the first channel information is greater than or equal to a first threshold. The second channel information satisfies the randomness requirement, including: information entropy of the second channel information is greater than or equal to the first threshold.
[0044] In an optional implementation, the first channel information and the second channel information satisfy the consistency requirement, including: mutual information of the first channel information and the second channel information is greater than or equal to a second threshold.
[0045] In a third aspect, the present application further provides a communication device. The communication device can be the first device, or a chip or a logic module or software capable of realizing all or part of the functions of the first device. The communication device has the functions of realizing some or all of the embodiments of the first aspect described above. Alternatively, the communication device can be the second device, or a chip or a logic module or software capable of realizing all or part of the functions of the second device. The communication device has the functions of realizing some or all of the embodiments of the second aspect described above. The functions can be realized by hardware, or by hardware executing corresponding software. The hardware or software includes one or more units or modules corresponding to the above functions.
[0046] In one possible design, the communication apparatus can include a processing unit configured to support the communication apparatus to perform the corresponding functions of the above-described methods. Optionally, the communication apparatus can further include a communication unit configured to support the communication apparatus to communicate with other communication apparatuses. Optionally, the communication apparatus can further include a storage unit configured to be coupled to the processing unit and the communication unit, and to store program codes and data necessary for the communication apparatus. In addition, the processing unit can be configured to control the communication unit to perform data / signaling transceiving.
[0047] In one implementation, the processing unit is configured to obtain first channel information obtained by performing channel estimation on a first channel, the first channel information satisfying a randomness requirement, the first channel being a channel for the second apparatus to send information to the communication apparatus. The communication unit is configured to receive second channel information obtained by performing channel estimation on a second channel, the second channel information satisfying the randomness requirement, the second channel being a channel for the communication apparatus to send information to the second apparatus. The processing unit is further configured to generate a first key based on the first channel information, in a case that the first channel information and the second channel information satisfy a consistency requirement, the first key being used to encrypt information transmitted on the second channel.
[0048] In addition, in this aspect, other optional implementations of the communication apparatus can refer to the related content of the first aspect described above, and thus are not described in detail herein.
[0049] In another implementation, the processing unit is configured to obtain second channel information obtained by performing channel estimation on a second channel, the second channel information satisfying a randomness requirement, the second channel being a channel for the first apparatus to send information to the communication apparatus. The communication unit is configured to send the second channel information. The processing unit is further configured to generate a second key based on the second channel information, in a case that the second channel information and first channel information satisfy a consistency requirement, the first channel information being obtained by performing channel estimation on a first channel, the first channel information satisfying the randomness requirement, the first channel being a channel for the communication apparatus to send information to the first apparatus, the second key being used to encrypt information transmitted on the first channel.
[0050] In addition, in this aspect, other optional implementations of the communication apparatus can refer to the related content of the second aspect described above, and thus are not described in detail herein.
[0051] By way of example, the communication unit can be a transceiver or a communication interface, the storage unit can be a memory, and the processing unit can be a processor. The processor can be coupled to the memory. The memory can be configured to store computer programs or instructions. The processor can be configured to cause the communication apparatus to perform the methods described in the first aspect or the second aspect by executing the computer programs or instructions stored in the memory, and / or by logic circuits. The transceiver or the communication interface can be configured to transceive signals and / or data.
[0052] In one implementation, the processor is configured to obtain first channel information obtained by performing channel estimation on a first channel, the first channel information satisfying a randomness requirement, the first channel being a channel used by the second device to send information to the communication device. The transceiver is configured to receive second channel information obtained by performing channel estimation on a second channel, the second channel information satisfying the randomness requirement, the second channel being a channel used by the communication device to send information to the second device. The processor is further configured to generate a first key based on the first channel information, in a case where the first channel information and the second channel information satisfy a consistency requirement, the first key being used to encrypt information transmitted on the second channel.
[0053] In addition, in this aspect, other optional implementations of the communication device can refer to the related content of the first aspect described above, and will not be described here in detail.
[0054] In another implementation, the processor is configured to obtain second channel information obtained by performing channel estimation on a second channel, the second channel information satisfying a randomness requirement, the second channel being a channel used by the first device to send information to the communication device. The transceiver is configured to send the second channel information. The processor is further configured to generate a second key based on the second channel information, in a case where the second channel information and the first channel information satisfy a consistency requirement, the first channel information being obtained by performing channel estimation on a first channel, the first channel information satisfying the randomness requirement, the first channel being a channel used by the communication device to send information to the first device, the second key being used to encrypt information transmitted on the first channel.
[0055] In addition, in this aspect, other optional implementations of the communication device can refer to the related content of the second aspect described above, and will not be described here in detail.
[0056] In another implementation, the communication device is a chip or a chip system. The processing unit can also be implemented as a processing circuit or a logic circuit; the transceiving unit can be an input / output interface, an interface circuit, an output circuit, an input circuit, a pin, or related circuit on the chip or chip system.
[0057] In a possible implementation, the processor can be configured to perform, for example but not limited to, baseband related processing, and the transceiver or the communication interface can be configured to perform, for example but not limited to, radio frequency transceiving. The above described devices can be respectively arranged on independent chips from each other, or at least partially or entirely arranged on the same chip. For example, the processor can be further divided into an analog baseband processor and a digital baseband processor. The analog baseband processor can be integrated on the same chip as the transceiver (or the communication interface), and the digital baseband processor can be arranged on an independent chip. With the continuous development of integrated circuit technology, more and more devices can be integrated on the same chip. For example, the digital baseband processor can be integrated on the same chip as various application processors (such as, but not limited to, a graphics processor, a multimedia processor, etc.). Such a chip can be referred to as a system on a chip (SoC). Whether to arrange the devices independently on different chips or to integrate them on one or more chips often depends on the needs of product design. The embodiments of the present application do not limit the implementation forms of the above described devices.
[0058] In a fourth aspect, the present application further provides a processor configured to perform the above described various methods. In performing these methods, the processes of transmitting and receiving the above described information in the above described methods can be understood as the processes of outputting the above described information by the processor and the processes of inputting the above described information by the processor. When outputting the above described information, the processor outputs the above described information to the transceiver, so as to be transmitted by the transceiver (or the communication interface). After being output by the processor, the above described information can need to be further processed before reaching the transceiver (or the communication interface). Similarly, when receiving the inputted above described information by the processor, the transceiver (or the communication interface) receives the above described information and inputs it to the processor. Furthermore, after being received by the transceiver (or the communication interface), the above described information can need to be further processed before being input to the processor.
[0059] For the transmission and reception operations of the processor, if there is no special description, or if it does not contradict the actual role or inherent logic in the related description, it can be more generally understood as the output and reception, input operations of the processor, rather than the transmission and reception operations directly performed by the radio frequency circuit and the antenna.
[0060] In a possible implementation, the processor can be a processor specially configured to execute the methods, or can be a processor configured to execute computer instructions in a memory to execute the methods, such as a general-purpose processor. The memory can be a non-transitory memory, such as a read only memory (ROM), which can be integrated on the same chip as the processor, or can be separately arranged on different chips. The embodiments of the present application do not limit the type of the memory and the arrangement of the memory and the processor.
[0061] In a fifth aspect, the present application further provides a communication system, which includes an apparatus for executing the method in the first aspect and an apparatus for executing the method in the second aspect. In another possible design, the system can further include other devices interacting with the apparatus for executing the method in the first aspect, and / or other devices interacting with the apparatus for executing the method in the second aspect.
[0062] In a sixth aspect, the present application provides a computer-readable storage medium, which stores a computer program. When the computer program is executed, the method in the first aspect or the second aspect is executed.
[0063] In a seventh aspect, the present application further provides a computer program product including instructions, which includes computer program codes. When the computer program codes are executed, the method in the first aspect or the second aspect is executed.
[0064] In an eighth aspect, the present application provides a chip system, which includes a processor and an interface. The interface is configured to obtain a program or instructions. The processor is configured to invoke the program or instructions to implement the functions related to the first aspect or the second aspect. In a possible design, the chip system further includes a memory. The memory is configured to store necessary program instructions and data of the terminal. The chip system can be composed of a chip, or can include the chip and other discrete devices. BRIEF DESCRIPTION OF DRAWINGS
[0065] FIG. 1a is a schematic diagram of a communication system according to an embodiment of the present application;
[0066] FIG. 1b is a schematic diagram of another communication system according to an embodiment of the present application;
[0067] FIG. 1c is a schematic diagram of another communication system according to an embodiment of the present application;
[0068] FIG. 2 is a schematic diagram of an O-RAN architecture according to an embodiment of the present application;
[0069] FIG. 3 is a flow diagram of a key generation method according to an embodiment of the present application;
[0070] FIG. 4 is a schematic diagram of a first device and a second device corresponding to a single antenna according to an embodiment of the present application;
[0071] FIG. 5 is a schematic diagram of a first device and a second device corresponding to multiple antennas according to an embodiment of the present application;
[0072] FIG. 6 is a schematic diagram of a first device and a second device corresponding to multiple antennas according to another embodiment of the present application;
[0073] FIG. 7 is a schematic diagram of another key generation method according to an embodiment of the present application;
[0074] FIG. 8 is a schematic diagram of a communication device according to an embodiment of the present application;
[0075] FIG. 9 is a schematic diagram of another communication device according to an embodiment of the present application. DETAILED DESCRIPTION
[0076] The embodiments of the present application will be described below in conjunction with the accompanying drawings.
[0077] The technical solutions of the embodiments of the present application can be applied to various communication systems. For example, the global system for mobile communications, the long term evolution (LTE) system, the LTE frequency division duplex (FDD) system, the LTE time division duplex (TDD) system, the universal mobile telecommunications system (UMTS), the 4th generation (4G) mobile communication system, the 5th generation (5G) mobile communication system, the new radio (NR) system, and as the communication technology continues to develop, the technical solutions of the embodiments of the present application can also be applied to future communication systems.
[0078] For example, FIG. 1a is a schematic diagram of a communication system according to an embodiment of the present application, which includes a network device and a terminal device. The terminal device and the network device can communicate with each other. The number and form of devices shown in FIG. 1a are used for example and do not limit the embodiments of the present application. In actual applications, there can be two or more terminal devices, two or more network devices. The terminal device in FIG. 1a is exemplified as a mobile phone, and the network device is exemplified as a base station.
[0079] FIG. 1b is a schematic diagram of another communication system including different terminal devices, which can communicate with each other, according to an embodiment of the present application. The number and type of devices shown in FIG. 1b are provided for example only and are not limiting of the embodiments of the present application, as more than two terminal devices can be included in actual applications. The terminal devices in FIG. 1b are exemplified by mobile phones.
[0080] FIG. 1c is a schematic diagram of yet another communication system including different network devices, which can communicate with each other, according to an embodiment of the present application. The number and type of devices shown in FIG. 1c are provided for example only and are not limiting of the embodiments of the present application, as more than two network devices can be included in actual applications. The network devices in FIG. 1c are exemplified by base stations.
[0081] In the embodiments of the present application, the network device is an entity on the network side for transmitting or receiving signals, has a wireless transceiving function, and is used for communication with a terminal device. The network device includes but is not limited to: an access network device, a radio network controller (RNC), a base station controller (BSC), a network device transceiver station (BTS), a home network device (for example, a home evolved Node B, or a home Node B, HNB), a baseband unit (BBU), a relay device, a donor node, a wireless controller in a cloud radio access network (CRAN) scenario, a transceiving node, a wireless backhaul node, a transmission and reception point (TRP), a transmission point (TP), a wireless fidelity (WiFi) access point (AP) (that is, a WiFi AP), an integrated access and backhaul (IAB) node, a mobile switching center, a network device in a non-terrestrial network (NTN) communication system, that is, can be deployed on a high-altitude platform or a satellite, and the like. The network device can also be a device that plays a base station function in device to device (D2D) communication, vehicle networking communication, unmanned aerial vehicle communication, and machine communication. Optionally, the network device can also be a server, a wearable device, a vehicle or a vehicle-mounted device, and the like. For example, the access network device in vehicle to everything (V2X) technology can be a road side unit (RSU).
[0082] The network device can be a base station (BS), which is a device deployed in a wireless access network and can provide wireless communication functions. The base station can also be referred to as a base station device, such as an evolved Node B (eNB or e-NodeB) in an LTE system, a Node B (Node B) in a 5G system, a base station in a future communication system, and the like. The base station can include a BBU and a remote radio unit (RRU). The BBU and the RRU can be placed in different places, for example, the RRU is pulled away and placed in a high traffic area, and the BBU is placed in a central machine room. The BBU and the RRU can also be placed in the same machine room. The BBU and the RRU can also be different components under one rack. The base station can be a macro base station, a micro base station (also known as a small station), an indoor station, a pico base station, a relay station, an access point, a balloon station, and the like. For example, in a traditional UMTS or LTE system, the network device can be a traditional macro base station (eNB). In a heterogeneous network (HetNet) scenario, the network device can be a micro base station (such as an eNB). In a distributed base station scenario, the network device can include a BBU and an RRU. In a CRAN scenario, the network device can include a baseband pool (BBU pool) and an RRU. In a future wireless communication system, the network device can be a gNB.
[0083] Optionally, the network device can be a central unit (CU), a distributed unit (DU), a CU-control plane (CP), a CU-user plane (UP), or a radio unit (RU), and the like. The CU and the DU can be separately arranged or included in the same network element, such as a BBU. The RU can be included in a radio frequency device or a radio frequency unit, such as an RRU, an active antenna processing unit (AAU), or a remote radio head (RRH). It can be understood that the network device can be a CU node, or a DU node, or a device including a CU node and a DU node. In addition, the CU can be divided into a network device in a radio access network (RAN), or the CU can be divided into a network device in a core network (CN), which is not limited here.
[0084] The CU (or CU-CP and CU-UP), DU or RU can also have different names in different systems, but those skilled in the art can understand their meanings. For example, in an open-radio access network (O-RAN) system, the CU can also be referred to as an O-CU (open CU), the DU can also be referred to as an O-DU, the CU-CP can also be referred to as an O-CU-CP, the CU-UP can also be referred to as an O-CU-UP, and the RU can also be referred to as an O-RU. For the convenience of description, the CU, CU-CP, CU-UP, DU and RU are taken as examples for description in this application. Any one of the CU (or CU-CP, CU-UP), DU and RU in this application can be implemented by a software module, a hardware module, or a combination of a software module and a hardware module.
[0085] For example, as shown in FIG. 2, in the ORAN architecture, the transmission between the O-RU and the O-DU can be referred to as front haul, the transmission between the O-DU and the O-CU can be referred to as mid haul, and the transmission between the O-CU and the core network can be referred to as back haul. The above-mentioned deployment modes of the access network device are only examples, and with the evolution of standard technologies, there can be other deployment forms of the access network device, which are not limited by the embodiments of the present application.
[0086] A terminal device is an entity that receives or actively transmits signals. The terminal device can also be referred to as a user equipment (UE), a user communication device, a terminal, an access terminal, a subscriber unit, a subscriber station, a mobile station, a mobile station (MS), a remote station, a remote terminal, a mobile terminal (MT), a mobile device, a user terminal, a user agent, or a user apparatus. The terminal device in the embodiments of the present application can be a handheld device with wireless communication function, a vehicle-mounted device, a vehicle-mounted communication module or other embedded communication module, a wearable device, a computing device or other processing device connected to a wireless modem, or a device for providing voice or data connectivity to a user, and can also be an Internet of Things device. The terminal device can be a terminal with a function of connecting to a cellular base station. For example, the terminal device can be a cellular phone, a smart phone, a Pad, a notebook computer, a palm computer, a mobile internet device (MID), a wireless data card, a personal digital assistant (PDA) computer, a wireless modem, a handset, a laptop computer, a machine type communication (MTC) terminal, a wearable device (for example, a smart watch, a smart bracelet, a pedometer, smart glasses, etc.), a vehicle-mounted device (for example, a car, a bicycle, an electric vehicle, an airplane, a ship, a train, a high-speed rail, etc.), a satellite terminal, etc.The terminal device can also be a virtual reality (VR) terminal device, an augmented reality (AR) terminal device, a smart point of sale (POS) machine, a customer-premises equipment (CPE), a light UE, a reduced capability UE (REDCAP UE), a wireless terminal in industrial control, a wireless communication device in a smart factory, a smart home device (e.g., a refrigerator, a television, an air conditioner, an electricity meter, etc.), a smart robot, a mechanical arm, a plant device, a wireless terminal in self driving, a wireless terminal in remote medical, a wireless terminal in a smart grid, a wireless terminal in transportation safety, a wireless terminal in a smart city, a wireless terminal in a smart home, a flight device (e.g., a smart robot, a hot air balloon, a drone, an airplane), etc. The terminal device can also be a vehicle device, such as a whole vehicle device, a vehicle-mounted module, a vehicle-mounted chip, an on board unit (OBU), a telematics box (T-BOX), etc. The terminal device can also be other devices with terminal functions, e.g., the terminal device can also be a device with terminal functions in D2D communication.
[0087] Embodiments disclosed herein present various aspects, embodiments, or features of the present application with respect to systems including a plurality of devices, components, modules, etc. It should be understood and appreciated that each system can include additional devices, components, modules, etc., and / or can not include all of the devices, components, modules, etc., discussed in connection with the figures. Additionally, a combination of these approaches can be used.
[0088] The main feature of the physical layer key generation technology is that the legitimate communication parties generate a key based on channel measurement values. For example, the legitimate communication parties respectively perform channel estimation on a channel to obtain channel measurement values, and quantize the channel measurement values to obtain a bit sequence. Then, the legitimate communication parties correct the respective obtained bit sequences through negotiation. Then, the legitimate communication parties process the bit sequences according to possible features of a monitor to obtain a final bit sequence, and use the final bit sequence as the key. The monitor can be a device that monitors information exchanged by the legitimate communication parties, and the possible features of the monitor can include, for example, a location of the monitor, an information detection algorithm used by the monitor, an information demodulation algorithm used by the monitor, a number of antennas of the monitor, and the like.
[0089] To ensure the security performance of the legitimate link, the legitimate communication parties perform quality detection on the generated key. When the quality of the key generated by the legitimate communication parties is good, the legitimate communication parties determine to use the generated key to encrypt information. The quality detection on the key can include randomness detection of the key and consistency detection between the keys respectively generated by the legitimate communication parties. It can be seen that the legitimate communication parties perform the quality detection on the key after generating the key based on the channel measurement values. In this manner, in the case of poor channel conditions, the legitimate communication parties still generate a key, and the quality of the generated key can be poor, resulting in resource waste.
[0090] Embodiments of the present application provide a key generation method. The method first verifies randomness and consistency of a channel. In the case that the randomness and the consistency of the channel both meet requirements, it is indicated that the current channel condition is suitable for generating a key. Then, the method generates the key based on channel information, which is beneficial to improving the quality of the key. Compared with the manner of directly generating the key based on the channel information and then detecting the quality of the key, the method provided in the embodiments of the present application can not generate the key based on the current channel information when the current channel condition is not suitable for generating the key, thereby reducing resource waste.
[0091] The embodiments of the present application are described in detail below with reference to the accompanying drawings. The embodiments of the present application take a first device and a second device as an execution subject to illustrate corresponding methods. However, the present application does not limit the execution subject of the method. For example, the device in the method can also be a chip, a chip system, or a processor that supports the device to implement the corresponding method, and can also be a logic module or software that can implement all or part of the functions of the device.
[0092] For example, the first device and the second device are legitimate communication parties. For example, the first device is a network device and the second device is a terminal device. For another example, the first device is a terminal device and the second device is a network device. Wherein, a channel through which the network device sends information to the terminal device can be referred to as a downlink (DL) channel, and a channel through which the terminal device sends information to the network device can be referred to as an uplink (UL) channel. For another example, the first device and the second device are different terminal devices, wherein a channel through which a terminal device sends information to another terminal device can be referred to as a sidelink (SL) channel.
[0093] Please refer to FIG. 3, which is a flow diagram of a key generation method according to an embodiment of the present application. The key generation method comprises the following steps.
[0094] S101, the first device acquires first channel information obtained by performing channel estimation on a first channel, the first channel information satisfying a randomness requirement, and the first channel being a channel through which the second device sends information to the first device.
[0095] In the embodiments of the present application, the information can include data and / or signaling. Accordingly, the first channel being a channel through which the second device sends information to the first device can also be understood as the first channel being a channel through which the second device sends data and / or signaling to the first device. Similarly, the second channel being a channel through which the first device sends information to the second device mentioned hereinafter can also be understood as the second channel being a channel through which the first device sends data and / or signaling to the second device. Details are not described hereinafter.
[0096] In an optional implementation, the first channel information satisfying the randomness requirement comprises that the information entropy of the first channel information being greater than or equal to a first threshold, or comprises that the information entropy of the first channel information being greater than the first threshold. Wherein, the first threshold can be predefined, or can also be preconfigured, or can also be set on demand, and no limitation is made to this.
[0097] For example, the first device can determine that the information entropy of the first channel information is greater than or equal to the first threshold, or greater than the first threshold, by means of hypothesis testing. Wherein, the value of the first threshold will affect the value of the significance level used in hypothesis testing. Understandably, the value of the significance level used in hypothesis testing can be determined based on the first threshold. If the hypothesis testing on the first channel information passes, the first device can determine that the information entropy of the first channel information is greater than or equal to the first threshold, or greater than the first threshold, and thus can determine that the first channel information satisfies the randomness requirement. Examples of hypothesis testing can be found in Example 1.1a and Example 1.1b hereinafter, in which the passing of hypothesis testing can be understood as the original hypothesis being true.
[0098] The implementation of step S101 is exemplarily described as follows, as described in the following optional implementation 1.1 and implementation 1.2.
[0099] In implementation 1.1, the first device obtains the first channel information by performing channel estimation on the first channel, including: the first device obtains N1 channel estimation results by performing channel estimation on the first channel, N1 being an integer greater than 1; the first device determines whether the N1 channel estimation results meet the randomness requirement; in the case that the N1 channel estimation results meet the randomness requirement, the first channel information includes the N1 channel estimation results.
[0100] Optionally, N1 is greater than 2. In the case that the N1 channel estimation results do not meet the randomness requirement, the first device selects N2 channel estimation results from the N1 channel estimation results, and determines whether the N2 channel estimation results meet the randomness requirement; N2 is an integer greater than 1, and N2 is less than N1. In the case that the N2 channel estimation results meet the randomness requirement, the first channel information includes the N2 channel estimation results.
[0101] Optionally, N2 is greater than 2. In the case that the N2 channel estimation results do not meet the randomness requirement, the operation of the first device is similar to the operation of the first device in the case that the N1 channel estimation results do not meet the randomness requirement. Exemplarily, in the case that the N2 channel estimation results do not meet the randomness requirement, the first device selects N3 channel estimation results from the N2 channel estimation results, and determines whether the N3 channel estimation results meet the randomness requirement. In the case that the N3 channel estimation results meet the randomness requirement, the first channel information includes the N3 channel estimation results. In the case that the N3 channel estimation results do not meet the randomness requirement, the operation of the first device is similar to the operation of the first device in the case that the N2 channel estimation results do not meet the randomness requirement, and is not described herein again.
[0102] Optionally, in the case that the N1 channel estimation results do not satisfy the randomness requirement, before the first device selects N2 channel estimation results from the N1 channel estimation results, the first device also determines the selected number of channel estimation results, i.e., determines the value of N2, and determines whether N2 is less than a third threshold. If N2 is greater than or equal to the third threshold, the first device selects N2 channel estimation results from the N1 channel estimation results, and determines whether the N2 channel estimation results satisfy the randomness requirement. If N2 is less than the third threshold, the first device determines that the obtained channel estimation results are not suitable for being used to generate the key. The case that the N2 channel estimation results do not satisfy the randomness requirement, the case that the N3 channel estimation results do not satisfy the randomness requirement, and the like are similar and will not be described herein again. In addition, in the embodiments of the present application, the third threshold can be predefined, and can also be determined by negotiation between the first device and the second device, and the present application is not limited in this regard. In another optional manner, after the first device determines the value of N2, the first device determines whether N2 is less than or equal to the third threshold. If N2 is greater than the third threshold, the first device selects N2 channel estimation results from the N1 channel estimation results, and determines whether the N2 channel estimation results satisfy the randomness requirement. If N2 is less than or equal to the third threshold, the first device determines that the obtained channel estimation results are not suitable for being used to generate the key.
[0103] It can be seen that the first device can determine whether the obtained multiple channel estimation results satisfy the randomness requirement. When the obtained multiple channel estimation results satisfy the randomness requirement, the first device can determine the obtained multiple channel estimation results as the first channel information. When the obtained multiple channel estimation results do not satisfy the randomness requirement, the first device can select part of the channel estimation results from the obtained multiple channel estimation results, i.e., reduce the number of channel estimation results for next randomness inspection. Then, the first device performs the following operations on the selected channel estimation results: randomness inspection, determining the first channel information when the randomness inspection passes, and reducing the number of channel estimation results for next randomness inspection when the randomness inspection fails. Until the selected channel estimation results satisfy the randomness requirement, the first device determines the channel estimation results satisfying the randomness requirement as the first channel information; or until the selected number of channel estimation results is less than the third threshold, it is determined that the channel estimation results obtained by the first device are not suitable for being used to generate the key.
[0104] In the embodiments of the present application, the first device performs randomness inspection on the channel estimation results, which can be understood as: the first device performs randomness inspection on the channel estimation results to determine whether the channel estimation results satisfy the randomness requirement. If the channel estimation results satisfy the randomness requirement, the randomness inspection performed on the channel estimation results passes. If the channel estimation results do not satisfy the randomness requirement, the randomness inspection performed on the channel estimation results fails.
[0105] For example, assume that the third threshold is 40 and the number adjustment granularity of the channel estimation results is 5. The first device obtains 50 channel estimation results and determines whether the 50 channel estimation results satisfy the randomness requirement. If the 50 channel estimation results satisfy the randomness requirement, the first channel information includes the 50 channel estimation results.
[0106] If the 50 channel estimation results do not satisfy the randomness requirement, the first device adjusts the number of the channel estimation results to 45. 45 is greater than the third threshold, the first device selects 45 channel estimation results from the 50 channel estimation results, and determines whether the 45 channel estimation results satisfy the randomness requirement. If the 45 channel estimation results satisfy the randomness requirement, the first channel information includes the 45 channel estimation results.
[0107] If the 45 channel estimation results do not satisfy the randomness requirement, the first device adjusts the number of the channel estimation results to 40. 40 is equal to the third threshold, the first device selects 40 channel estimation results from the 45 channel estimation results, and determines whether the 40 channel estimation results satisfy the randomness requirement. If the 40 channel estimation results satisfy the randomness requirement, the first channel information includes the 40 channel estimation results.
[0108] If the 40 channel estimation results do not satisfy the randomness requirement, the first device adjusts the number of the channel estimation results to 35. 35 is less than the third threshold, the first device determines that the obtained channel estimation results are not suitable for being used to generate the key.
[0109] In addition, in the above manner, in the case that the plurality of channel estimation results do not satisfy the randomness requirement, the first device selects part of the channel estimation results from the plurality of channel estimation results for the next randomness inspection. However, the embodiments of the present application do not limit the manner in which the first device determines the channel estimation results for the next randomness inspection in the case that the plurality of channel estimation results do not satisfy the randomness requirement. For example, in the case that the plurality of channel estimation results do not satisfy the randomness requirement, the first device can not select part of the channel estimation results from the plurality of channel estimation results, but instead, re-obtain channel estimation results from the historical channel estimation results for the next randomness inspection.
[0110] The channel estimation results are described below by way of example, as described in the following optional manner A and manner B.
[0111] Manner A: the case that the first device corresponds to a single antenna and the second device corresponds to a single antenna. In this case, the signaling transmitted in the first channel is sent by the second device through a single antenna and received by the first device through a single antenna.
[0112] In this case, the channel estimation result is a channel measurement value, which is obtained by the first device based on a pilot signal received by the first device through the single antenna at the first channel. In addition, the type of the pilot signal is not limited in the embodiments of the present application. For example, the pilot signal can be a demodulation reference signal (DMRS), or can also be a sounding reference signal (SRS), or can also be a channel state information reference signal (CSI-RS).
[0113] For example, in combination with FIG. 4, the first device corresponds to antenna 1, and the second device corresponds to antenna 2. N1 is equal to 2, and the N1 channel estimation results include h1(t) and h2(t). h1(t) is a channel measurement value obtained by the first device based on a pilot signal received by antenna 1 from antenna 2 at time 1. h2(t) is a channel measurement value obtained by the first device based on a pilot signal received by antenna 1 from antenna 2 at time 2.
[0114] In the embodiments of the present application, the antenna corresponding to the first device can also be understood as an antenna equipped by the first device. In the case where the first device is a device, the antenna corresponding to the first device is an antenna of the device. In the case where the first device is a chip, the antenna corresponding to the first device is an antenna of a transceiver corresponding to the chip. The antenna corresponding to the second device is similar, and will not be described herein.
[0115] Mode B: In the case where at least one of the first device and the second device includes multiple antennas. For ease of description, the following describes the case where the first device includes L1 antennas, and the second device includes L2 antennas, L1 and L2 are positive integers, and L1 and L2 are not both equal to 1. In this case, the signaling transmitted in the first channel is sent by the second device through the L2 antennas and received by the first device through the L1 antennas.
[0116] In this case, the channel estimation result is a channel matrix. Alternatively, the channel estimation result includes part or all of the channel measurement values in the channel matrix. The channel matrix includes L1xL2 channel measurement values.
[0117] For example, in combination with FIG. 5, the first device corresponds to antenna 1 and antenna 2, and the second device corresponds to antenna 3 and antenna 4. The channel matrix 1 obtained by the first device performing channel estimation on the first channel at time 1 is shown in the following formula (1).
[0118] h 13(t1) is a channel measurement value obtained by the first device performing channel estimation based on the pilot signal from the antenna 3 received at the antenna 1 at time 1.h 14 (t1) is a channel measurement value obtained by the first device performing channel estimation based on the pilot signal from the antenna 4 received at the antenna 1 at time 1.h 23 (t1) is a channel measurement value obtained by the first device performing channel estimation based on the pilot signal from the antenna 3 received at the antenna 2 at time 1.h 24 (t1) is a channel measurement value obtained by the first device performing channel estimation based on the pilot signal from the antenna 4 received at the antenna 2 at time 1.
[0119] The channel matrix 2 obtained by the first device performing channel estimation on the first channel at time 2 is shown in the following formula (2).
[0120] wherein h 13 (t2) is a channel measurement value obtained by the first device performing channel estimation based on the pilot signal from the antenna 3 received at the antenna 1 at time 2.h 14 (t2) is a channel measurement value obtained by the first device performing channel estimation based on the pilot signal from the antenna 4 received at the antenna 1 at time 2.h 23 (t2) is a channel measurement value obtained by the first device performing channel estimation based on the pilot signal from the antenna 3 received at the antenna 2 at time 2.h 24 (t2) is a channel measurement value obtained by the first device performing channel estimation based on the pilot signal from the antenna 4 received at the antenna 2 at time 2.
[0121] N1 is equal to 2. The N1 channel estimation results include: the channel matrix 1, the channel matrix 2. Alternatively, the N1 channel estimation results include: part or all of the channel matrix 1, part or all of the channel matrix 2.
[0122] The above describes the channel estimation results, and the following describes the implementation of the first device determining whether the multiple channel estimation results meet the randomness requirement. However, the implementation of the first device determining whether the multiple channel estimation results meet the randomness requirement is not limited by the embodiments of the present application. For example, the first device determines whether the multiple channel estimation results meet the randomness requirement by means of hypothesis testing. For ease of description, the following describes N1 channel estimation results as an example, as described in the following example 1.1a and example 1.1b.
[0123] Example 1.1a: the first device corresponds to a single antenna, and the second device corresponds to a single antenna. The N1 channel estimation results are x1, x2, …, X is a sequence composed of N1 channel estimation results, The first device calculates the autocorrelation coefficient of X. As shown in formula (3) below.
[0124] in, for The average value.
[0125] When X is an independent and identically distributed white noise sequence, for all k≥1, It approximately follows a function with an expected value of 0 and a variance of . The normal distribution is shown in the following formula (4).
[0126] in, The expected value is 0 and the variance is The sequence X follows a normal distribution. If X is an independent and identically distributed white noise sequence, it indicates that X has a strong randomness. Since the results are uncorrelated, the first device can determine that the N1 channel estimation results meet the randomness requirement. Therefore, the process by which the first device determines whether the N1 channel estimation results meet the randomness requirement can be abstracted as a mathematical hypothesis testing problem:
[0127] Null hypothesis H0: X is a white noise sequence. Alternative hypothesis H1: X is not a white noise sequence.
[0128] The first device determines the statistic. If there exists at least one k such that If the condition is met, then the null hypothesis H0 is rejected; otherwise, the null hypothesis H0 is true. Here, Φ⁻¹(x) = 1 - Φ(x), and Φ(x) is the distribution function of the standard normal distribution. The significance level is defined as follows: If the null hypothesis H0 fails (i.e., the null hypothesis H0 is rejected), the first device selects N2 channel estimation results from the N1 channel estimation results and uses hypothesis testing to determine whether the N2 channel estimation results meet the randomness requirement. This is similar to determining whether the N1 channel estimation results meet the randomness requirement through hypothesis testing, and will not be described in detail here. If the selected channel estimation results still do not meet the randomness requirement even when the number of channel estimation results selected by the first device equals the third threshold, the first device can determine that the obtained channel estimation results are not suitable for key generation.
[0129] Example 1.1b: A case where at least one of the first and second devices corresponds to multiple antennas. The N1 channel estimation results are N1 channel matrices. The first device rearranges each of the N1 channel matrices into a vector, obtaining N1 vectors, which are as follows: X is a sequence of N1 vectors. The process that the first device determines whether the N1 channel estimation results satisfy the randomness requirement can be abstracted as a mathematical hypothesis testing problem:
[0130] The null hypothesis H0: X is a white noise sequence. The alternative hypothesis H1: X is not a white noise sequence.
[0131] The first device determines a statistic Wherein, is the trace of the matrix , that is, the sum of the diagonal elements in l As shown in the following formula (5), 0≤l≤N1-1. is the transpose of l . Γ0is Γ l when l=0. is the transpose of Γ0.
[0132] Wherein, is the average value of . is the transpose of .
[0133] When each element in the N1 channel matrices is independent in the time dimension and the space dimension, Q k (m) approximately obeys a chi-square distribution with degrees of freedom k 2 m, as shown in the following formula (6). Q k (m) ~ χ 2 (k 2 m) (6)
[0134] If Q k (m)≤F -1 (1-α,m) for all m=1~N1, the null hypothesis H0 is established; otherwise, the null hypothesis H0 is rejected. Wherein, F() is the cumulative distribution function (CDF) of the chi-square distribution. If the null hypothesis H0 is not passed (that is, the null hypothesis H0 is rejected), the first device selects N2 channel matrices from the N1 channel matrices, and determines whether the N2 channel matrices satisfy the randomness requirement in a hypothesis testing manner, which is similar to determining whether the N1 channel matrices satisfy the randomness requirement in a hypothesis testing manner, and will not be repeated. If the channel matrices selected by the first device still do not satisfy the randomness requirement when the number of channel matrices selected is equal to the third threshold value, the first device can determine that the obtained channel matrices are not suitable for generating a key.
[0135] Optionally, the first device re-arranges the elements in each of the N1 channel matrices into a vector in the same manner. For example, the N1 channel matrices include the channel matrix 1 shown in the above equation (1) and the channel matrix 2 shown in the above equation (2). The first device arranges the elements in the channel matrices in the following order: the channel measurement value obtained by the first device based on the channel estimation of the pilot signal from the antenna 3 received at the antenna 1, the channel measurement value obtained by the first device based on the channel estimation of the pilot signal from the antenna 4 received at the antenna 1, the channel measurement value obtained by the first device based on the channel estimation of the pilot signal from the antenna 3 received at the antenna 2, and the channel measurement value obtained by the first device based on the channel estimation of the pilot signal from the antenna 4 received at the antenna 2. Then, the vector X1 obtained by the first device re-arranging the channel matrix 1 shown in the equation (1) can be shown in the following equation (7). The vector X2 obtained by the first device re-arranging the channel matrix 2 shown in the equation (2) can be shown in the following equation (8).
[0136] In the embodiment 1.2, at least one of the first device and the second device corresponds to multiple antennas. The channel estimation result obtained by the first device performing the channel estimation on the first channel is a channel matrix. The first device obtains the first channel information obtained by performing the channel estimation on the first channel, including: the first device obtains N1 channel matrices obtained by performing the channel estimation on the first channel, N1 being an integer greater than 1; the first device determines whether a first scalar obtained based on the N1 channel matrices meets the randomness requirement; in the case that the first scalar meets the randomness requirement, the first channel information includes the first scalar. The channel matrix can refer to the related description in the embodiment 1.1, and will not be described here.
[0137] Optionally, in the case that the first scalar does not meet the randomness requirement, the first device selects N2 channel matrices from the N1 channel matrices, and determines whether a third scalar obtained based on the N2 channel matrices meets the randomness requirement; N2 is an integer greater than 1, and N2 is less than N1; in the case that the third scalar meets the randomness requirement, the first channel information includes the third scalar.
[0138] Optionally, N2 is greater than 2. The operation of the first device in the case that the third scalar quantity does not satisfy the randomness requirement is similar to the aforementioned operation of the first device in the case that the first scalar quantity does not satisfy the randomness requirement. For example, in the case that the third scalar quantity does not satisfy the randomness requirement, the first device selects N3 channel matrices from the N2 channel matrices, and determines whether a fourth scalar quantity obtained based on the N3 channel matrices satisfies the randomness requirement. In the case that the fourth scalar quantity satisfies the randomness requirement, the first channel information comprises the fourth scalar quantity. In the case that the fourth scalar quantity does not satisfy the randomness requirement, the operation of the first device is similar to the aforementioned operation of the first device in the case that the third scalar quantity does not satisfy the randomness requirement, and is not repeated here.
[0139] Optionally, in the case that the first scalar quantity does not satisfy the randomness requirement, the first device determines the number of selected channel matrices, i.e., determines the value of N2, before selecting N2 channel matrices from the N1 channel matrices, and determines whether N2 is less than a third threshold value. If N2 is greater than or equal to the third threshold value, the first device selects N2 channel matrices from the N1 channel matrices, and determines whether a third scalar quantity obtained based on the N2 channel matrices satisfies the randomness requirement. If N2 is less than the third threshold value, the first device determines that the obtained channel matrices are not suitable for generating a key. In addition, the case that the third scalar quantity does not satisfy the randomness requirement, the case that the fourth scalar quantity does not satisfy the randomness requirement, and the like are similar, and are not repeated here. For a specific description of the third threshold value, refer to the related description in Embodiment 1.1, which is not repeated here. In another optional manner, after the first device determines the value of N2, the first device determines whether N2 is less than or equal to the third threshold value. If N2 is greater than the third threshold value, the first device selects N2 channel matrices from the N1 channel matrices, and determines whether a third scalar quantity obtained based on the N2 channel matrices satisfies the randomness requirement. If N2 is less than or equal to the third threshold value, the first device determines that the obtained channel matrices are not suitable for generating a key.
[0140] It can be seen that the first device can determine whether the scalar obtained based on the plurality of channel matrices satisfies the randomness requirement. When the scalar obtained based on the plurality of channel matrices satisfies the randomness requirement, the first device can determine the scalar obtained based on the plurality of channel matrices as the first channel information. When the scalar obtained based on the plurality of channel matrices does not satisfy the randomness requirement, the first device can select part of the channel matrices from the plurality of channel matrices, that is, reduce the number of channel matrices for next randomness test. Then, the first device performs the following operations on the scalar obtained based on the selected channel matrices: randomness test, determining the first channel information when the randomness test passes, reducing the number of channel matrices for next randomness test when the randomness test fails. Until the scalar obtained based on the selected channel matrices satisfies the randomness requirement, the first device determines the scalar satisfying the randomness requirement as the first channel information; or until the number of selected channel matrices is less than the third threshold, it is indicated that the channel matrices obtained by the first device are not suitable for generating a key.
[0141] In addition, the first device determines a scalar based on the plurality of channel matrices, and then uses the scalar for randomness test and subsequent consistency test. The randomness of the scalar is higher than that of the channel matrix, and the consistency of the scalar is higher than that of the channel matrix. The operation of determining the scalar based on the plurality of channel matrices by the first device is beneficial to improve the randomness and consistency of the key generated based on the scalar subsequently.
[0142] The first device can be understood as performing randomness test on the scalar obtained based on the plurality of channel matrices to determine whether the scalar obtained based on the plurality of channel matrices satisfies the randomness requirement. If the scalar obtained based on the plurality of channel matrices satisfies the randomness requirement, the randomness test on the scalar obtained based on the plurality of channel matrices passes. If the scalar obtained based on the plurality of channel matrices does not satisfy the randomness requirement, the randomness test on the scalar obtained based on the plurality of channel matrices fails.
[0143] Optionally, the first scalar is the largest singular value of the N1 channel matrices. Similarly, the third scalar is the largest singular value of the N2 channel matrices. The fourth scalar is the largest singular value of the N3 channel matrices.
[0144] Alternatively, the first scalar is the trace of the N1 channel matrices. Similarly, the third scalar is the trace of the N2 channel matrices. The fourth scalar is the trace of the N3 channel matrices.
[0145] Alternatively, the first scalar is the determinant of the N1 channel matrices. Similarly, the third scalar is the determinant of the N2 channel matrices. The fourth scalar is the determinant of the N3 channel matrices.
[0146] In addition, the scalar based on the plurality of channel matrices can be determined in other manners than those mentioned above, without limitation.
[0147] In addition, the embodiment of the present application does not limit the manner in which the first device determines whether the scalar based on the plurality of channel matrices (such as the first scalar, the third scalar, and the fourth scalar) satisfies the randomness requirement. For example, the first device determines whether the scalar based on the plurality of channel matrices satisfies the randomness requirement by means of hypothesis testing.
[0148] It can be seen that the embodiment 1.2 is similar to the embodiment 1.1, except that in the embodiment 1.2, the first device performs randomness testing on the scalar based on the plurality of channel matrices, and the first channel information includes the scalar satisfying the randomness requirement. For specific descriptions of other aspects of the embodiment 1.2, reference can be made to the relevant descriptions of the embodiment 1.1, which will not be repeated here.
[0149] In another optional embodiment, in the case where the first device cannot obtain the first channel information satisfying the randomness requirement, the first device sends information to the second device, the information being used to indicate that the first channel information satisfying the randomness requirement cannot be obtained. Then, the second device determines, based on the information, that the current channel condition is not suitable for generating the key, and ends the flow.
[0150] S102, the second device obtains second channel information obtained by performing channel estimation on a second channel, the second channel information satisfying a randomness requirement, and the second channel being a channel through which the first device sends information to the second device.
[0151] In an optional embodiment, the second channel information satisfying the randomness requirement includes that the information entropy of the second channel information is greater than or equal to a first threshold, or includes that the information entropy of the second channel information is greater than the first threshold. For specific descriptions of the first threshold, reference can be made to the foregoing relevant descriptions of the first threshold, which will not be repeated here. In addition, the second channel information satisfying the randomness requirement is similar to the first channel information satisfying the randomness requirement, and reference can be made to the foregoing descriptions of the first channel information satisfying the randomness requirement, which will not be repeated here.
[0152] In addition, the second device obtains the second channel information obtained by performing channel estimation on the second channel, which is similar to the first device obtaining the first channel information obtained by performing channel estimation on the first channel as described in step S101, and reference can be made to the foregoing specific descriptions of step S101, which will be briefly described below. The implementation manner of step S102 can be as described in the following optional embodiments 2.1 and 2.2.
[0153] In the embodiment 2.1, the second device obtaining the second channel information obtained by performing channel estimation on the second channel comprises: the second device obtaining M1 channel estimation results obtained by performing channel estimation on the second channel, M1 being an integer greater than 1; the second device determining whether the M1 channel estimation results satisfy the randomness requirement; and in the case that the M1 channel estimation results satisfy the randomness requirement, the second channel information comprising the M1 channel estimation results.
[0154] Optionally, M1 is greater than 2; in the case that the M1 channel estimation results do not satisfy the randomness requirement, the second device selects M2 channel estimation results from the M1 channel estimation results, and determines whether the M2 channel estimation results satisfy the randomness requirement; M2 is an integer greater than 1 and smaller than M1; and in the case that the M2 channel estimation results satisfy the randomness requirement, the second channel information comprising the M2 channel estimation results.
[0155] Optionally, M2 is greater than 2. In the case that the M2 channel estimation results do not satisfy the randomness requirement, the operation of the second device is similar to the operation of the second device in the case that the M1 channel estimation results do not satisfy the randomness requirement. For example, in the case that the M2 channel estimation results do not satisfy the randomness requirement, the second device selects M3 channel estimation results from the M2 channel estimation results, and determines whether the M3 channel estimation results satisfy the randomness requirement. In the case that the M3 channel estimation results satisfy the randomness requirement, the first channel information comprising the M3 channel estimation results. In the case that the M3 channel estimation results do not satisfy the randomness requirement, the operation of the second device is similar to the operation of the second device in the case that the M2 channel estimation results do not satisfy the randomness requirement, which will not be described herein again.
[0156] Optionally, in the case that the M1 channel estimation results do not satisfy the randomness requirement, the second device determines the number of selected channel estimation results, i.e., determines the value of M2, before selecting M2 channel estimation results from the M1 channel estimation results, and judges whether M2 is less than a third threshold. If M2 is greater than or equal to the third threshold, the second device selects M2 channel estimation results from the M1 channel estimation results, and determines whether the M2 channel estimation results satisfy the randomness requirement. If M2 is less than the third threshold, the second device determines that the obtained channel estimation results are not suitable for generating a key. In addition, the case that the M2 channel estimation results do not satisfy the randomness requirement, the case that the M3 channel estimation results do not satisfy the randomness requirement, and the like are similar, and will not be described herein again. The specific description of the third threshold can be referred to the foregoing description, and will not be described herein again. In another optional manner, after the second device determines the value of M2, the second device judges whether M2 is less than or equal to the third threshold. If M2 is greater than the third threshold, the second device selects M2 channel estimation results from the M1 channel estimation results, and determines whether the M2 channel estimation results satisfy the randomness requirement. If M2 is less than or equal to the third threshold, the second device determines that the obtained channel estimation results are not suitable for generating a key.
[0157] In addition, the embodiment 2.1 is similar to the foregoing embodiment 1.1, and the specific description of the embodiment 1.1 (including the channel estimation result, the manner of determining whether the plurality of channel estimation results satisfy the randomness requirement, and the like) can be referred to, and will not be described herein again. In addition, M1 in the embodiment 2.1 can be the same as N1 in the embodiment 1.1, or can be different.
[0158] In the embodiment 2.2, at least one of the first device and the second device corresponds to a plurality of antennas. The channel estimation result obtained by the second device performing channel estimation on the second channel is a channel matrix. The second device obtains the second channel information obtained by performing channel estimation on the second channel, including: the second device obtains M1 channel matrices obtained by performing channel estimation on the second channel; the second device determines whether a second scalar obtained based on the M1 channel matrices satisfies a randomness requirement; and in the case that the second scalar satisfies the randomness requirement, the second channel information includes the second scalar.
[0159] Optionally, in the case that the second scalar does not satisfy the randomness requirement, the second device selects M2 channel matrices from the M1 channel matrices, and determines whether a fifth scalar obtained based on the M2 channel matrices satisfies the randomness requirement; M2 is an integer greater than 1, and M2 is less than M1; and in the case that the fifth scalar satisfies the randomness requirement, the second channel information includes the fifth scalar.
[0160] Optionally, M2 is greater than 2. The operation of the second device in the case that the fifth scalar does not satisfy the randomness requirement is similar to the aforementioned operation of the second device in the case that the second scalar does not satisfy the randomness requirement. For example, in the case that the fifth scalar does not satisfy the randomness requirement, the second device selects M3 channel matrices from the M2 channel matrices, and determines whether a sixth scalar obtained based on the M3 channel matrices satisfies the randomness requirement. In the case that the sixth scalar satisfies the randomness requirement, the second channel information comprises the sixth scalar. The operation of the second device in the case that the sixth scalar does not satisfy the randomness requirement is similar to the aforementioned operation of the second device in the case that the fifth scalar does not satisfy the randomness requirement, and is not described herein again.
[0161] Optionally, in the case that the second scalar does not satisfy the randomness requirement, the first device determines the number of selected channel matrices, i.e., determines the value of M2, before selecting M2 channel matrices from the M1 channel matrices, and determines whether M2 is less than a third threshold value. If M2 is greater than or equal to the third threshold value, the first device selects M2 channel matrices from the M1 channel matrices, and determines whether a fifth scalar obtained based on the M2 channel matrices satisfies the randomness requirement. If M2 is less than the third threshold value, the first device determines that the obtained channel matrices are not suitable for generating the key. In addition, the case that the fifth scalar does not satisfy the randomness requirement, the case that the sixth scalar does not satisfy the randomness requirement, and the like are similar, and are not described herein again. The third threshold value is described in the aforementioned description, and is not described herein again. In another optional manner, after the second device determines the value of M2, the second device determines whether M2 is less than or equal to the third threshold value. If M2 is greater than the third threshold value, the second device selects M2 channel matrices from the M1 channel matrices, and determines whether a fifth scalar obtained based on the M2 channel matrices satisfies the randomness requirement. If M2 is less than or equal to the third threshold value, the second device determines that the obtained channel matrices are not suitable for generating the key.
[0162] Optionally, the second scalar is a maximum singular value of the M1 channel matrices. Similarly, the fifth scalar is a maximum singular value of the M2 channel matrices. The sixth scalar is a maximum singular value of the M3 channel matrices.
[0163] Alternatively, the second scalar is a trace of the M1 channel matrices. Similarly, the fifth scalar is a trace of the M2 channel matrices. The sixth scalar is a trace of the M3 channel matrices.
[0164] Alternatively, the second scalar is a determinant of the M1 channel matrices. Similarly, the fifth scalar is a determinant of the M2 channel matrices. The sixth scalar is a determinant of the M3 channel matrices.
[0165] In addition, embodiment 2.2 is similar to the aforementioned embodiment 1.2, and reference can be made to the foregoing detailed description of embodiment 1.2 (including the channel matrix, the manner of determining whether the plurality of channel matrices satisfy the randomness requirement, the scalar, and the like), which will not be repeated here. In addition, M1 in embodiment 2.2 can be the same as N1 in embodiment 1.2, or can be different.
[0166] In an alternative embodiment, the first channel information is obtained by performing channel estimation on the first channel at a plurality of time instants within the first time period. The second channel information is obtained by performing channel estimation on the second channel at the plurality of time instants within the first time period.
[0167] For example, in embodiment 1.1, the N1 channel estimation results obtained by the first device are obtained by performing channel estimation on the first channel at N1 time instants within the first time period. In embodiment 2.1, the M1 channel estimation results obtained by the second device are obtained by performing channel estimation on the second channel at M1 time instants within the first time period.
[0168] For another example, in embodiment 1.2, the N1 channel matrices obtained by the first device are obtained by performing channel estimation on the first channel at N1 time instants within the first time period. In embodiment 2.2, the M1 channel matrices obtained by the second device are obtained by performing channel estimation on the second channel at M1 time instants within the first time period.
[0169] In addition, the present application does not limit the distribution of the plurality of time instants within the first time period. For example, the first channel information is obtained by performing channel estimation on the first channel at any plurality of time instants within the first time period. For another example, the first channel information is obtained by performing channel estimation on the first channel at a plurality of time instants uniformly distributed within the first time period. The second channel information is similar, which will not be repeated here. It can be understood that, for example, the N1 channel estimation results obtained by the first device and the M1 channel estimation results obtained by the second device can be historical channel estimation results, without increasing additional security overhead.
[0170] The present application also does not limit the position of the first time period. For example, the end time instant of the first time period is the time instant at which the first device and the second device determine to generate the key by using the physical layer key generation technology. For another example, the end time instant of the first time period is earlier than the time instant at which the first device and the second device determine to generate the key by using the physical layer key generation technology.
[0171] Optionally, the method further comprises: the first device sending first indication information; and correspondingly, the second device receiving the first indication information. Alternatively, the method further comprises: the second device sending first indication information; and correspondingly, the first device receiving the first indication information. Alternatively, the method further comprises: a third device sending first indication information; and correspondingly, the first device receiving the first indication information and the second device receiving the first indication information. The first indication information is used to indicate the first time period.
[0172] As can be seen, the first time period can be determined by the first device and indicated to the second device, or the first time period can also be determined by the second device and indicated to the first device, or the first time period can also be determined by a third device other than the first device and the second device and indicated to the first device and the second device. However, the embodiment of the present application does not limit the manner in which the first device and the second device determine the first time period, for example, the first device and the second device can also be preconfigured with the first time period.
[0173] Optionally, the first indication information comprises at least one of the following: a start time of the first time period, an end time of the first time period, a time length of the first time period, and a time domain resource in which the first time period is located. In addition to the manner of indicating the first time period by the first indication information mentioned herein, other manners of indicating the first time period can also be used, which are not limited herein.
[0174] In another optional embodiment, in a case where the second device fails to acquire the second channel information satisfying the randomness requirement, the second device sends information to the first device, the information being used to indicate that the second channel information satisfying the randomness requirement cannot be acquired. Then, the first device determines, based on the information, that the current channel condition is not suitable for generating the key, and ends the procedure.
[0175] S103, the second device sends the second channel information. Correspondingly, the first device receives the second channel information.
[0176] In an optional embodiment, the method further comprises: the second device sending fifth indication information; and correspondingly, the first device receiving the fifth indication information. The fifth indication information is used to indicate that the second channel information satisfies the randomness requirement. As can be seen, the first device can determine, based on the fifth indication information, that the second channel information satisfies the randomness requirement, so as to subsequently perform the operation of determining whether the first channel information and the second channel information satisfy the consistency requirement by the first device.
[0177] In an optional embodiment, the embodiment of the present application does not limit the sequence of "the first device performing channel estimation on the first channel to obtain the first channel information" and "the first device receiving the second channel information", for example, as described in the following optional embodiments 3.1 to 3.3.
[0178] In the embodiment 3.1, after the second device obtains the second channel information, the second device sends the second channel information to the first device. For the first device, the first device can receive the second channel information before the first device starts to obtain the first channel information. Alternatively, the first device can receive the second channel information during the process of obtaining the first channel information. Alternatively, the first device can receive the second channel information after the obtaining of the first channel information is completed.
[0179] In the embodiment 3.2, after the second device obtains the second channel information, the second device sends the second channel information to the first device, and further sends sixth indication information, where the sixth indication information is used to indicate time information of channel estimation corresponding to the second channel information. Correspondingly, the first device receives the second channel information and the sixth indication information. Then, the first device obtains the first channel information by performing channel estimation on the first channel, including: the first device determines the first channel information based on the time information of channel estimation corresponding to the second channel information, and the time information of channel estimation corresponding to the first channel information matches the time information of channel estimation corresponding to the second channel information.
[0180] Optionally, the time information of channel estimation corresponding to the first channel information matches the time information of channel estimation corresponding to the second channel information, for example, the time information of channel estimation corresponding to the first channel information is the same as the time information of channel estimation corresponding to the second channel information. Alternatively, the time information of channel estimation corresponding to the first channel information can belong to the same time period as the time information of channel estimation corresponding to the second channel information. Alternatively, the time information of channel estimation corresponding to the first channel information can be not much different from the time information of channel estimation corresponding to the second channel information. Alternatively, the time length of difference between the time information of channel estimation corresponding to the first channel information and the time information of channel estimation corresponding to the second channel information is less than or equal to a fourth threshold. The fourth threshold can be predefined, or determined by negotiation between the first device and the second device, without limitation.
[0181] Optionally, the time information of the channel estimation corresponding to the second channel information comprises a plurality of first time instants. The plurality of first time instants satisfy that the second device performs channel estimation on the second channel at the plurality of first time instants to obtain a plurality of channel estimation results, and the plurality of channel estimation results correspond to the second channel information. The plurality of channel estimation results correspond to the second channel information, for example, the plurality of channel estimation results can be channel estimation results included in the second channel information, or a scalar included in the second channel information is a scalar determined based on the plurality of channel estimation results. In addition, the first time instant can be, for example, a transmission time instant of a pilot signal used by the second device for channel estimation. For the channel estimation results or the scalar included in the second channel information, refer to the foregoing related description, and details are not repeated.
[0182] Embodiment 3.3, after the first device obtains the first channel information, the first device sends third indication information. Correspondingly, the second device receives the third indication information. Then, the second device obtains the second channel information obtained by performing channel estimation on the second channel, including: the second device determines the second channel information based on time information of channel estimation corresponding to the first channel information, and time information of channel estimation corresponding to the second channel information matches time information of channel estimation corresponding to the first channel information. Then, the second device sends the second channel information, and correspondingly, the first device receives the second channel information. For the time information of channel estimation corresponding to the second channel information matching the time information of channel estimation corresponding to the first channel information, refer to the related description in embodiment 3.2, and details are not repeated.
[0183] Optionally, the time information of the channel estimation corresponding to the first channel information comprises a plurality of second time instants. The plurality of second time instants satisfy that the first device performs channel estimation on the first channel at the plurality of second time instants to obtain a plurality of channel estimation results, and the plurality of channel estimation results are associated with the first channel information. The plurality of channel estimation results are associated with the first channel information, for example, the plurality of channel estimation results can be channel estimation results included in the first channel information, or a scalar included in the first channel information is a scalar determined based on the plurality of channel estimation results. In addition, the second time instant can be, for example, a transmission time instant of a pilot signal used by the first device for channel estimation. For the channel estimation results or the scalar included in the first channel information, refer to the foregoing related description, and details are not repeated.
[0184] S104, in a case where the first channel information and the second channel information satisfy the consistency requirement, the first device generates a first key based on the first channel information, and the first key is used to encrypt information transmitted on the second channel.
[0185] It can be understood that after the first device acquires the first channel information satisfying the randomness requirement and receives the second channel information satisfying the randomness requirement from the second device, the first device can determine whether the first channel information and the second channel information satisfy the consistency requirement. In the case that the first channel information and the second channel information satisfy the consistency requirement, the first device generates the first key based on the first channel information.
[0186] In an optional implementation, the first channel information and the second channel information satisfying the consistency requirement includes that mutual information of the first channel information and the second channel information is greater than or equal to a second threshold value, or includes that the mutual information of the first channel information and the second channel information is greater than a first threshold value. The second threshold value can be predefined, or can also be preconfigured, or can also be set on demand, which is not limited. In addition, the second threshold value can be the same as or different from the aforementioned first threshold value.
[0187] In addition, the embodiments of the present application do not limit the implementation manner of the consistency verification. The first device performing the consistency verification on the first channel information and the second channel information can be understood as that the first device performs the consistency verification on the first channel information and the second channel information to determine whether the first channel information and the second channel information satisfy the consistency requirement. Some exemplary implementation manners of the consistency verification are provided below, such as the following optional implementation 4.1 and implementation 4.2.
[0188] Implementation 4.1, the first device determines whether the first channel information and the second channel information satisfy the consistency requirement based on mutual information of the first channel information and the second channel information.
[0189] For example, the first channel information and the second channel information both include channel estimation results. X is an empirical CDF generated based on the channel estimation results in the first channel information, and Y is an empirical CDF generated based on the channel estimation results in the second channel information. The first device calculates mutual information I of X and Y. If I The first device determines that the first channel information and the second channel information do not satisfy the consistency requirement. If I The first device determines that the first channel information and the second channel information satisfy the consistency requirement. Wherein, I min For example, the first threshold value can be predefined, or can also be determined by negotiation between the first device and the second device, which is not limited.
[0190] Implementation 4.2, the first device determines whether the first channel information and the second channel information satisfy the consistency requirement in a hypothesis testing manner. The following exemplary implementation is exemplarily described by taking the first channel information and the second channel information both including channel estimation results as an example, as described in the following example 4.2a and example 4.2b.
[0191] Example 4.2a: the first device corresponds to a single antenna, and the second device corresponds to a single antenna. X is a sequence composed of channel estimation results in the first channel information, and Y is a sequence composed of channel estimation results in the second channel information.
[0192] The first device calculates a Kendall tau coefficient of elements in X and elements in Y, that is, as shown in the following formula (9).
[0193] wherein R is the minimum value of the following two: the number of channel estimation results included in the first channel information, and the number of channel estimation results included in the second channel information. i is the i-th element in X, x j is the j-th element in X. y i is the i-th element in Y, y j is the j-th element in Y. sgn(·) is a step function.
[0194] When X and Y are independent (indicating that the consistency of X and Y is poor), approximately obeys a normal distribution with an expectation of 0 and a variance of as shown in the following formula (10).
[0195] Then, whether the first channel information and the second channel information meet the consistency requirement can be abstracted as a hypothesis testing problem:
[0196] Null hypothesis H0: X and Y are independent. Alternative hypothesis H1: X and Y are not independent.
[0197] wherein if X and Y are independent, it indicates that the consistency of X and Y is poor, and the first device can determine that the first channel information and the second channel information do not meet the consistency requirement. If X and Y are not independent, it indicates that the consistency of X and Y is good, and the first device can determine that the first channel information and the second channel information meet the consistency requirement.
[0198] The first device determines a statistic If , the null hypothesis H0 is rejected; otherwise, the null hypothesis H0 is established. Wherein Φ -1 (x) = 1 - Φ(x), Φ(x) is a distribution function of a standard normal distribution, is a significance level, and the value of a can make
[0199] If the original hypothesis H0 is not passed (i.e., the original hypothesis H0 is rejected), the first device can reduce the value of a to increase the significance level. The first device performs the similar hypothesis test again with the reduced a. If the original hypothesis H0 is still rejected in the hypothesis test performed until a = a min , the first device determines that the first channel information and the second channel information satisfy the consistency requirement. a min may be predefined or determined by negotiation between the first device and the second device, without limitation.
[0200] If the original hypothesis H0 is passed (i.e., the original hypothesis H0 is established), the first device can increase the value of a to reduce the significance level. The first device performs the similar hypothesis test again with the increased a. If the original hypothesis H0 is still established in the hypothesis test performed again, the first device determines that the first channel information and the second channel information do not satisfy the consistency requirement.
[0201] Optionally, the significance level used in the hypothesis test can be determined based on a second threshold. The related description of the second threshold can be referred to the foregoing specific description, and will not be described herein again.
[0202] Example 4.2b: The case that at least one of the first device and the second device corresponds to multiple antennas. For the convenience of description, the case that the first device corresponds to L1 antennas and the second device corresponds to L2 antennas is described below, L1 and L2 are positive integers, and L1 and L2 are not both 1. Then, any one of the L1 antennas corresponding to the first device is combined with any one of the L2 antennas corresponding to the second device, and a total of L1 x L2 antenna combinations can be obtained.
[0203] The first device determines L1 x L2 first sequences based on the first channel information, the L1 x L2 first sequences correspond to the L1 x L2 antenna combinations one by one, and each first sequence is composed of elements corresponding to the same antenna combination in the plurality of channel matrices included in the first channel information.
[0204] The first device determines L1 x L2 second sequences based on the second channel information, the L1 x L2 second sequences correspond to the L1 x L2 antenna combinations one by one, and each second sequence is composed of elements corresponding to the same antenna combination in the plurality of channel matrices included in the second channel information.
[0205] The first device determines whether the first sequence and the second sequence corresponding to the same antenna combination satisfy the consistency requirement by using the hypothesis test. If the first sequence and the second sequence corresponding to each antenna combination in the L1 x L2 antenna combinations satisfy the consistency requirement, the first device can determine that the first channel information and the second channel information satisfy the consistency requirement; otherwise, the first device can determine that the first channel information and the second channel information do not satisfy the consistency requirement.
[0206] The first device determines whether the first sequence and the second sequence corresponding to the same antenna combination satisfy the consistency requirement by using the hypothesis testing method. The hypothesis testing method used by the first device in Example 4.2a is similar, and thus is not described herein.
[0207] For example, in combination with FIG. 6, the first device corresponds to antenna 1 and antenna 2, and the second device corresponds to antenna 3 and antenna 4. As can be seen, there are a total of four antenna combinations, antenna combination 1 includes antenna 1 and antenna 2, antenna combination 2 includes antenna 1 and antenna 3, antenna combination 3 includes antenna 2 and antenna 3, and antenna combination 4 includes antenna 2 and antenna 4.
[0208] The first channel information includes channel matrix 1 and channel matrix 2. The second channel information includes channel matrix 3 and channel matrix 4.
[0209] The channel matrix 1 is a channel matrix obtained by the first device performing channel estimation on the first channel at time 1, as shown in the following formula (11).
[0210] The channel matrix 1 is a channel matrix obtained by the first device performing channel estimation on the first channel at time 1, as shown in the following formula (11). 13 h (t1) is a channel measurement value obtained by the first device performing channel estimation based on the pilot signal received at antenna 1 from antenna 3 at time 1. 14 h (t1) is a channel measurement value obtained by the first device performing channel estimation based on the pilot signal received at antenna 1 from antenna 4 at time 1. 23 h (t1) is a channel measurement value obtained by the first device performing channel estimation based on the pilot signal received at antenna 2 from antenna 3 at time 1. 24 h (t1) is a channel measurement value obtained by the first device performing channel estimation based on the pilot signal received at antenna 2 from antenna 4 at time 1.
[0211] The channel matrix 2 is a channel matrix obtained by the first device performing channel estimation on the first channel at time 2, as shown in the following formula (12).
[0212] The channel matrix 2 is a channel matrix obtained by the first device performing channel estimation on the first channel at time 2, as shown in the following formula (12). 13 h (t2) is a channel measurement value obtained by the first device performing channel estimation based on the pilot signal received at antenna 1 from antenna 3 at time 2. 14 h (t2) is a channel measurement value obtained by the first device performing channel estimation based on the pilot signal received at antenna 1 from antenna 4 at time 2. 23 h (t2) is a channel measurement value obtained by the first device performing channel estimation based on the pilot signal received at antenna 2 from antenna 3 at time 2. 24(t2) is the channel measurement value of the second device at time 2 based on the channel estimation of the pilot signal from antenna 4 received at antenna 2.
[0213] Channel matrix 3 is the channel matrix of the second device at time 1 based on the channel estimation of the second channel, as shown in the following formula (13).
[0214] Wherein, h 31 (t1) is the channel measurement value of the second device at time 1 based on the channel estimation of the pilot signal from antenna 1 received at antenna 3. h 41 (t1) is the channel measurement value of the second device at time 1 based on the channel estimation of the pilot signal from antenna 1 received at antenna 4. h 32 (t1) is the channel measurement value of the second device at time 1 based on the channel estimation of the pilot signal from antenna 2 received at antenna 3. h 42 (t1) is the channel measurement value of the second device at time 1 based on the channel estimation of the pilot signal from antenna 2 received at antenna 4.
[0215] Channel matrix 4 is the channel matrix of the second device at time 2 based on the channel estimation of the second channel, as shown in the following formula (14).
[0216] Wherein, h 31 (t2) is the channel measurement value of the second device at time 2 based on the channel estimation of the pilot signal from antenna 1 received at antenna 3. h 41 (t2) is the channel measurement value of the second device at time 2 based on the channel estimation of the pilot signal from antenna 1 received at antenna 4. h 32 (t2) is the channel measurement value of the second device at time 2 based on the channel estimation of the pilot signal from antenna 2 received at antenna 3. h 42 (t2) is the channel measurement value of the second device at time 2 based on the channel estimation of the pilot signal from antenna 2 received at antenna 4.
[0217] The first device can determine 4 first sequences based on the first channel information, which are X1, X2, X3, X4.
[0218] Wherein, X1 corresponds to antenna combination 1, X1 = {h 13 (t1), h 13 (t2)}.
[0219] X2 corresponds to antenna combination 2, X2 = {h 14 (t1), h 14 (t2)}.
[0220] X3 corresponds to the antenna combination 3, X3={h 23 (t1), h 23 (t2)}.
[0221] X4 corresponds to the antenna combination 4, X4={h 24 (t1), h 24 (t2)}.
[0222] The first device can determine 4 second sequences based on the second channel information, the 4 second sequences being Y1, Y2, Y3, Y4.
[0223] Y1 corresponds to the antenna combination 1, Y1={h 31 (t1), h 31 (t2)}.
[0224] Y2 corresponds to the antenna combination 2, Y2={h 41 (t1), h 41 (t2)}.
[0225] Y3 corresponds to the antenna combination 3, Y3={h 32 (t1), h 32 (t2)}.
[0226] Y4 corresponds to the antenna combination 4, Y4={h 42 (t1), h 42 (t2)}.
[0227] The first device respectively determines whether X1 and Y1 satisfy the consistency requirement, whether X2 and Y2 satisfy the consistency requirement, whether X3 and Y3 satisfy the consistency requirement, and whether X4 and Y4 satisfy the consistency requirement. If X1 and Y1 satisfy the consistency requirement, X2 and Y2 satisfy the consistency requirement, X3 and Y3 satisfy the consistency requirement, and X4 and Y4 satisfy the consistency requirement, the first device determines that the first channel information and the second channel information satisfy the consistency requirement.
[0228] In an optional implementation, the first device generates the first key based on the first channel information, including: the first device determines a key generation algorithm based on a randomness inspection parameter and / or a consistency inspection parameter; and the first device processes the first channel information by using the key generation algorithm to obtain the first key.
[0229] The randomness inspection parameter may, for example, include: a number of channel estimation results satisfying the randomness requirement, or a number of channel estimation results used for determining a scalar satisfying the randomness requirement. Optionally, the first device can determine a quantization algorithm in the key generation algorithm based on the randomness inspection parameter and a length of the first key, the quantization algorithm being used for quantizing the first channel information.
[0230] For example, the first channel information includes N s Given the channel estimation results, the length of the first key is L, and the first device can determine the granularity of the quantization algorithm as follows: Bits. For example, the first channel information includes 10 channel estimation results, forming a 10-bit sequence. The first key is 20 bits long, and the first device can determine the granularity of the quantization algorithm to be 2 bits. In this case, each bit of the channel estimation result in the first channel information is used to determine the content of 2 bits in the first key. As another example, the first channel information includes 20 channel estimation results, forming a 20-bit sequence. The first key is 10 bits long, and the first device can determine the granularity of the quantization algorithm to be 0.5 bits. In this case, each 2 bits of the channel estimation result in the first channel information is used to determine the content of 1 bit in the first key.
[0231] Consistency testing parameters may include, for example, the significance level used in the consistency testing process using hypothesis testing. Optionally, the first device may determine the number of quantization thresholds used in the quantization algorithm based on the consistency testing parameters. For example, the significance level used by the first device in the consistency testing process using hypothesis testing is... The first device can determine the number of quantization thresholds used in the quantization algorithm based on this significance level.
[0232] Understandably, the first device can use randomness test parameters and / or consistency test parameters to determine the key generation algorithm, so as to make reasonable use of the first channel information to generate the first key. This helps to reduce the waste caused by some information in the first channel information not being used to generate the first key, and also helps to reduce the decrease in randomness caused by some information in the first channel information being reused to generate different bits in the first key.
[0233] In an optional implementation, the method further includes: if the first channel information and the second channel information do not meet the consistency requirement, the first device determines that the first channel information is not suitable for generating a key. This indicates that the current channel conditions are not suitable for generating a key, and the first device terminates the process.
[0234] In an optional implementation, the method further includes: if the second channel information and the first channel information meet the consistency requirement, the second device generates a second key based on the second channel information; the second key is used to encrypt information transmitted on the first channel. The optional methods by which the second device determines that the second channel information and the first channel information meet the consistency requirement are described below, as described in optional implementations 5.1 and 5.2.
[0235] In the embodiment 5.1, after the first device acquires the first channel information, the method further comprises: the first device sends the first channel information; and correspondingly, the second device receives the first channel information. Understandably, after the second device acquires the second channel information satisfying the randomness requirement and receives the first channel information satisfying the randomness requirement from the first device, the second device can determine whether the first channel information and the second channel information satisfy the consistency requirement. In this embodiment, the second device can perform consistency checking on the first channel information and the second channel information to determine whether the first channel information and the second channel information satisfy the consistency requirement. The consistency checking performed by the second device is similar to the consistency checking performed by the first device, and the related description is the same as the foregoing description, which will not be repeated here.
[0236] Optionally, in addition to sending the first channel information, the first device can send second indication information, which is used to indicate that the first channel information satisfies the randomness requirement. Optionally, in addition to sending the first channel information or sending the first channel information and the second indication information, the first device can send third indication information, which is used to indicate time information of channel estimation corresponding to the first channel information, so that the second device determines the second channel information. The specific description of the third indication information can be referred to the foregoing description, which will not be repeated here. In addition, any multiple of the first channel information, the second indication information and the third indication information can be carried in the same message.
[0237] In the embodiment 5.2, the method further comprises: the first device sends fourth indication information when the first channel information and the second channel information satisfy the consistency requirement, and the fourth indication information is used to indicate that the first channel information and the second channel information satisfy the consistency requirement; and correspondingly, the second device receives the fourth indication information. In this way, the second device can determine that the first channel information and the second channel information satisfy the consistency requirement based on the fourth indication information, and thus generate the second key based on the second channel information.
[0238] Optionally, when the first channel information and the second channel information do not satisfy the consistency requirement, the first device can send seventh indication information, which is used to indicate that the first channel information and the second channel information do not satisfy the consistency requirement. In this way, the second device can determine that the first channel information and the second channel information do not satisfy the consistency requirement based on the seventh indication information, and thus determine that the second channel information is not suitable for generating the key. It is indicated that the current channel condition is not suitable for generating the key, and the second device ends the process.
[0239] Alternatively, the first device can also not send the seventh indication information in the case that the first channel information and the second channel information do not satisfy the consistency requirement. The second device determines that the first channel information and the second channel information do not satisfy the consistency requirement in the case that the fourth indication information is not received by the second device within the second time period. The second time period can be predefined or preconfigured, for example, without limitation.
[0240] For example, the first device sends bit information after determining whether the first channel information and the second channel information satisfy the consistency requirement. The fourth indication information is bit information indicating that the first channel information and the second channel information satisfy the consistency requirement, and the seventh indication information is bit information indicating that the first channel information and the second channel information do not satisfy the consistency requirement. For example, the value of the bit information can be represented by "0" and "1" to indicate whether the first channel information and the second channel information satisfy the consistency requirement. For example, the value of the bit information is "1" to indicate that the first channel information and the second channel information satisfy the consistency requirement, and the value of the bit information is "0" to indicate that the first channel information and the second channel information do not satisfy the consistency requirement. Alternatively, the value of the bit information is "1" to indicate that the first channel information and the second channel information do not satisfy the consistency requirement, and the value of the bit information is "0" to indicate that the first channel information and the second channel information satisfy the consistency requirement. In addition, the value of the bit information can also be represented in other ways, for example, the value of the bit information is "true" to indicate that the first channel information and the second channel information satisfy the consistency requirement, and the value of the bit information is "false" to indicate that the first channel information and the second channel information do not satisfy the consistency requirement, without limitation.
[0241] In addition, the implementation manner 5.1 and the implementation manner 5.2 can be used separately. For example, in the implementation manner 5.1, the first device sends the first channel information after obtaining the first channel information, and the first device does not send the fourth indication information in the case that the first channel information and the second channel information satisfy the consistency requirement. For another example, in the implementation manner 5.2, the first channel information is not sent after obtaining the first channel information, and the first device sends the fourth indication information in the case that the first channel information and the second channel information satisfy the consistency requirement.
[0242] Alternatively, the implementation manner 5.1 and the implementation manner 5.2 can also be used in combination. For example, the first device sends the first channel information after obtaining the first channel information. And the first device sends the fourth indication information in the case that the first channel information and the second channel information satisfy the consistency requirement.
[0243] In an optional implementation, the second device generates the second key based on the second channel information, including: the second device determines a key generation algorithm based on the randomness checking parameter and / or the consistency checking parameter; and the second device processes the second channel information by using the key generation algorithm to obtain the second key. Similar to the first device generating the first key based on the first channel information, details are not repeated here.
[0244] In summary, in the method, the first device obtains first channel information obtained by performing channel estimation on a first channel, the first channel information satisfies a randomness requirement, and the first channel is a channel used by a second device to send information to the first device. The second device obtains second channel information obtained by performing channel estimation on a second channel, the second channel information satisfies a randomness requirement, and the second channel is a channel used by the first device to send information to the second device. The second device sends the second channel information to the first device. The first device generates a first key based on the first channel information when the first channel information and the second channel information satisfy a consistency requirement, and the first key is used to encrypt information transmitted by the second channel.
[0245] It can be seen that, in the case that the first channel information satisfying the randomness requirement can be obtained for the first channel, the second channel information satisfying the randomness requirement can be obtained for the second channel, and the first channel information and the second channel information satisfy the consistency requirement, it indicates that the randomness of the first channel and the randomness of the second channel can both satisfy the requirement, and the consistency of the first channel and the second channel also satisfies the requirement, which indicates that the channel conditions of the first channel and the second channel are suitable for generating a key, and the first device generates the first key based on the first channel information. The method is beneficial to improve the quality of the key, including improving the randomness of the first key, and improving the consistency between the first key and the second key, the second key being a key generated by the second device based on the second channel information.
[0246] In addition, the method provided by the embodiments of the present application first checks the randomness and consistency of the channel, and in the case that the randomness and consistency of the channel both satisfy the requirement, it indicates that the current channel condition is suitable for generating a key, and then a key is generated based on the channel information. Compared with the way of directly generating a key based on channel information and then detecting the quality of the key, the method provided by the embodiments of the present application can not generate a key based on the current channel information when the current channel condition is not suitable for generating a key, thereby reducing resource waste.
[0247] In addition, after the first device generates the first key based on the first channel information and the second device generates the second key based on the second channel information, the first key and the second key can be subjected to quality detection, for example, including randomness detection of the first key, randomness detection of the second key, and consistency detection of the first key and the second key. Alternatively, after the first device generates the first key based on the first channel information and the second device generates the second key based on the second channel information, the first key and the second key can be subjected to quality detection, thereby saving overhead.
[0248] Based on the key generation method described in FIG. 3, the embodiment of the present application further provides another exemplary key generation method, as shown in FIG. 7. The key generation method shown in FIG. 7 includes the following steps.
[0249] S201, the first device acquires a channel estimation result obtained by performing channel estimation on a first channel. The first channel is a channel through which the second device sends information to the first device.
[0250] S202, the first device performs randomness test on the channel estimation result to determine whether the channel estimation result meets randomness requirement. In the case where the channel estimation result does not meet the randomness requirement, steps S203 and S204 are performed. In the case where the channel estimation result meets the randomness requirement, step S206 is performed.
[0251] For example, the first device can perform randomness test on the channel estimation result in the manner of hypothesis test, and details can be referred to the related description in the key generation method described in FIG. 3, which will not be described herein.
[0252] S203, the first device modifies the related parameters of the randomness test.
[0253] S204, the first device determines whether the modified related parameters of the randomness test meet a first condition. If the modified related parameters of the randomness test meet the first condition, step S205 is performed. If the modified related parameters of the randomness test do not meet the first condition, the first device performs steps S201 and S202 again with the modified related parameters of the randomness test.
[0254] For example, the first device modifies the related parameters of the randomness test, including that the first device reduces the number of the channel estimation results subjected to the randomness test. The first condition is that the number of the channel estimation results after the reduction by the first device is less than a third threshold. Alternatively, the first condition is that the number of the channel estimation results after the reduction by the first device is less than or equal to the third threshold.
[0255] It can be understood that, in the case that the channel estimation result determined in step S202 does not satisfy the randomness requirement, steps S203 and S204 are also performed. The first device performs the randomness test again with the modified related parameters of the randomness test, so as to improve the accuracy of determining whether the channel estimation result satisfies the randomness requirement.
[0256] S205, the first device determines that the obtained channel estimation result is not suitable for generating the key.
[0257] It can be understood that, step S205 indicates that the current channel condition is not suitable for generating the key, and the first device ends the flow.
[0258] S206, the first device sends first channel information to the second device, the first channel information including the channel estimation result of the first device on the first channel and satisfying the randomness requirement.
[0259] The first device performs step S207 in the case that the first channel information is sent and the second channel information is received. The second channel information includes the channel estimation result of the second device on the second channel and satisfying the randomness requirement, and the second channel is the channel for the first device to send information to the second device.
[0260] S207, the first device performs consistency test on the first channel information and the second channel information to determine whether the first channel information and the second channel information satisfy a consistency requirement. In the case that the first channel information and the second channel information do not satisfy the consistency requirement, steps S208 and S209 are performed. In the case that the first channel information and the second channel information satisfy the consistency requirement, step S210 is performed.
[0261] S208, the first device modifies the related parameters of the consistency test.
[0262] S209, the first device determines whether the modified related parameters of the consistency test satisfy a second condition. If the modified related parameters of the consistency test satisfy the second condition, step S205 is performed. If the modified related parameters of the consistency test do not satisfy the second condition, the first device performs step S207 again with the modified related parameters of the consistency test.
[0263] For example, the first device performs the consistency test on the first channel information and the second channel information in the manner of hypothesis test. The significance level used in the consistency test process is The first device modifies the related parameters of the consistency test, including: the first device adjusts the value of α. The second condition is that α is greater than or equal to α minThe second condition is that a is greater than a min The second condition is that a is greater than a
[0264] Optionally, after the first device modifies the related parameters of the consistency check, the first device can send the modified related parameters of the consistency check to the second device, so that the second device performs the consistency check by using the modified related parameters of the consistency check. For example, after the first device adjusts the value of a used in the significance level in the consistency check process, the first device sends the adjusted value of a to the second device, so that the second device performs the consistency check by using the adjusted a.
[0265] It can be understood that in the case where it is determined in step S207 that the first channel information and the second channel information do not meet the consistency requirement, steps S208 and S209 are also performed. This is beneficial to the first device to perform the consistency check again by using the modified related parameters of the consistency check, and is beneficial to improving the accuracy of determining whether the first channel information and the second channel information meet the consistency requirement.
[0266] S210, the first device generates a first key based on the first channel information.
[0267] In addition, the second device can send the second channel information to the first device based on operations similar to steps S201 to S206, or determine that the channel estimation result obtained by the second device is not suitable for generating a key. In the case where the second device sends the second channel information and receives the first channel information, the second device can perform operations similar to steps S207 to S210 to determine whether the first channel information and the second channel information meet the consistency requirement, and in the case where the first channel information and the second channel information meet the consistency requirement, generate a second key based on the second channel information. Details are not repeated here.
[0268] In addition, for specific descriptions of each step in the method shown in FIG. 7, refer to the related descriptions in the method shown in FIG. 3, and details are not repeated here.
[0269] In an optional embodiment, the first device is a network device of an ORAN architecture, which includes an O-DU, an O-CU and an O-RU. The operations and / or algorithms etc. implemented internally by the first device can be implemented by the storage and calculation modules of the O-DU in the first device. The operations of the first device to interact with the second device can be implemented by the communication modules of the O-DU and the O-RU in the first device.
[0270] Exemplarily, in the case that the first device is a network device of an ORAN architecture, step S201 can be implemented based on the storage and computing module of the O-DU in the first device.
[0271] Steps S202, S203 and S204 can be implemented based on the storage and computing module of the O-DU in the first device. Alternatively, the communication module of the O-DU in the first device sends the channel estimation result obtained in step S201 to the core network device, and the core network device performs randomness checking on the channel estimation result to determine whether the channel estimation result meets the randomness requirement, and sends the conclusion of whether the channel estimation result meets the randomness requirement to the communication module of the O-DU in the first device; in the case that the communication module of the O-DU in the first device receives the conclusion that the channel estimation result does not meet the randomness requirement, steps S203 and S204 are implemented based on the storage and computing module of the O-DU in the first device; in the case that the communication module of the O-DU in the first device receives the conclusion that the channel estimation result meets the randomness requirement, step S206 is implemented based on the communication module of the O-DU and the communication module of the O-RU in the first device. In addition, in the embodiments of the present application, the core network device can be a core network element, or can also be a module with communication, computing and storage functions in the core network, without limitation.
[0272] Step S206 can be implemented based on the communication module of the O-DU and the communication module of the O-RU in the first device.
[0273] Steps S207 to S209 can be implemented based on the storage and computing module of the O-DU in the first device. Alternatively, the communication module of the O-DU in the first device sends the first channel information and the second channel information to the core network device, and the core network device performs consistency checking on the first channel information and the second channel information to determine whether the first channel information and the second channel information meet the consistency requirement, and sends the conclusion of whether the first channel information and the second channel information meet the consistency requirement to the communication module of the O-DU in the first device; in the case that the communication module of the O-DU in the first device receives the conclusion that the first channel information and the second channel information do not meet the consistency requirement, steps S208 and S209 are implemented based on the storage and computing module of the O-DU in the first device; in the case that the communication module of the O-DU in the first device receives the conclusion that the first channel information and the second channel information meet the consistency requirement, step S210 is implemented based on the storage and computing module of the O-DU in the first device.
[0274] In addition, in the case that the first device determines that the obtained channel estimation result is not suitable for generating a key, the O-CU module in the first device can control the flow to end.
[0275] In an optional implementation, the second device is a network device of the ORAN architecture, which includes an O-DU, an O-CU, and an O-RU. The operations and / or algorithms and the like implemented internally by the second device can be implemented by the storage and computing modules of the O-DU in the second device, and the operations of the second device interacting with the first device can be implemented by the communication modules of the O-DU and the O-RU in the second device. The case that the second device is a network device of the ORAN architecture is similar to the case that the first device is a network device of the ORAN architecture, and will not be described again.
[0276] In addition, optionally, any one of the first device and the second device is a network device of the ORAN architecture, or both the first device and the second device are network devices of the ORAN architecture.
[0277] To implement the functions in the methods provided in the embodiments of the present application, the network element / device can include hardware structures and / or software modules to implement the above functions in the form of hardware structure, software module, or hardware structure plus software module. Whether a certain function in the above functions is implemented in the form of hardware structure, software module, or hardware structure plus software module depends on the specific application and design constraints of the technical solution.
[0278] As shown in FIG. 8, the embodiments of the present application provide a communication device 800. The communication device 800 can be the first device, and can also be a component (for example, an integrated circuit, a chip, a chip system, and the like) of the first device. Alternatively, the communication device 800 can be the second device, and can also be a component (for example, an integrated circuit, a chip, a chip system, and the like) of the second device. The chip system can be composed of a chip, or can include a chip and other discrete devices. The communication device 800 can also be other communication units for implementing the methods in the method embodiments of the present application. The communication device 800 can include a processing unit 801. Optionally, the communication device 800 can also include a communication unit 802, and the processing unit 801 is configured to control the communication unit 802 to perform data and / or signaling transceiving, and the communication unit 802 can also be referred to as a transceiving unit. Optionally, the communication unit 802 can include a sending unit and a receiving unit, the sending unit can be used to send data and / or signaling, and the receiving unit can be used to receive data and / or signaling. Optionally, the communication device 800 can also include a storage unit 803, which can be used to store information and / or data and / or instructions and the like, and the storage unit 803 can interact with the processing unit 801, and can also interact with the communication unit 802.
[0279] In a possible design, for the case that the communication device 800 is used to implement the functions of the first device in the above method embodiments:
[0280] The processing unit 801 is configured to obtain first channel information obtained by performing channel estimation on a first channel, the first channel information satisfying a randomness requirement, and the first channel being a channel used by the second device to send information to the communication device 800. The communication unit 802 is configured to receive second channel information, the second channel information being obtained by performing channel estimation on a second channel, and the second channel information satisfying the randomness requirement, and the second channel being a channel used by the communication device 800 to send information to the second device. The processing unit 801 is further configured to, when the first channel information and the second channel information satisfy a consistency requirement, generate a first key based on the first channel information, and the first key being used to encrypt information transmitted on the second channel.
[0281] In another possible design, for the case where the communication device 800 is configured to implement the functions of the second device in the method embodiments described above, the communication device 800 includes the following components.
[0282] The processing unit 801 is configured to obtain second channel information obtained by performing channel estimation on a second channel, the second channel information satisfying a randomness requirement, and the second channel being a channel used by the first device to send information to the communication device 800. The communication unit 802 is configured to send the second channel information. The processing unit 801 is further configured to, when the second channel information and the first channel information satisfy a consistency requirement, generate a second key based on the second channel information, and the first channel information being obtained by performing channel estimation on a first channel, the first channel information satisfying the randomness requirement, the first channel being a channel used by the communication device 800 to send information to the first device, and the second key being used to encrypt information transmitted on the first channel.
[0283] The embodiments of the present application and the method embodiments described above are based on the same concept, and bring the same technical effects. For specific principles, refer to the descriptions of the embodiments described above, which will not be repeated here.
[0284] The embodiments of the present application also provide a communication device 900, as shown in FIG. 9. The communication device 900 can be the first device, or a chip, chip system, or processor supporting the first device to implement the above method. Alternatively, the communication device 900 can be the second device, or a chip, chip system, or processor supporting the second device to implement the above method. The device can be used to implement the methods described in the method embodiments described above, and specific implementation can be referred to the descriptions in the method embodiments described above.
[0285] The communication apparatus 900 can include one or more processors 901. The processor 901 can be configured to implement parts or all of the terminal-side apparatus or network-side apparatus by means of logical circuits or by running computer programs. The processor 901 can be a general processor or a special purpose processor, etc. For example, it can be one or a combination of a baseband processor, a digital signal processor, an application-specific integrated circuit, a field programmable gate array, other programmable logic device, discrete gate or transistor logic, discrete hardware components, a central processing unit (CPU), an application-specific integrated circuit (ASIC), a digital signal processor (DSP), a microprocessor unit (MPU), a microcontroller unit (MCU), a graphics processing unit (GPU), a field programmable gate array (FPGA), an artificial intelligence processor (AI processor), or a neural processing unit (NPU). The baseband processor can be configured to process communication protocols and communication data, and the central processing unit can be configured to control the communication apparatus, execute software programs, and process data of the software programs, where the communication apparatus is, for example, a base station, a baseband chip, a terminal, a terminal chip, a DU, or a CU, etc.
[0286] Optionally, the communication apparatus 900 can include one or more memories 902, which can store instructions 904 that can be run on the processor 901 to enable the communication apparatus 900 to perform the methods described in the above method embodiments. Optionally, the memory 902 can also store data. The processor 901 and the memory 902 can be separately arranged or integrated together.
[0287] The memory 902 can include, but is not limited to, a cache, a read-only memory (ROM), a random access memory (RAM), a synchronous dynamic random access memory (SDRAM), a hard disk drive (HDD), or a solid-state drive (SSD), and the like. The memory 902 can also include a random access memory (RAM), an erasable programmable ROM (EPROM), a ROM, or a compact disc read-only memory (CD-ROM), and the like. The memory is any medium capable of carrying or storing desired program code in the form of instructions or data structures and accessible by a computer, but is not limited thereto. The memory in the embodiments of the present application can also be a circuit or any other device capable of realizing a storage function, used for storing computer programs or instructions, and / or data.
[0288] Optionally, the communication apparatus 900 can also include a transceiver 905, an antenna 906. The transceiver 905 can also be referred to as a transceiving unit, a transceiving module, a transceiver, a transceiving circuit, an input / output interface, and the like, and is used to realize the transceiving function of the communication apparatus through the antenna. The transceiver 905 can include a receiver and a transmitter. The receiver can be referred to as a receiver or a receiving circuit, and is used to realize the receiving function; the transmitter can be referred to as a transmitter or a transmitting circuit, and is used to realize the transmitting function.
[0289] In a possible design, for the case that the communication apparatus 900 is used to realize the function of the first device in the above method embodiments:
[0290] The processor 901 is configured to obtain first channel information obtained by performing channel estimation on a first channel, the first channel information satisfying a randomness requirement, and the first channel being a channel used by a second device to send information to the communication apparatus 900. The transceiver 905 is configured to receive second channel information, the second channel information being obtained by performing channel estimation on a second channel, and the second channel information satisfying the randomness requirement, and the second channel being a channel used by the communication apparatus 900 to send information to the second device. The processor 901 is further configured to, in a case where the first channel information and the second channel information satisfy a consistency requirement, generate a first key based on the first channel information, and the first key being used to encrypt information transmitted on the second channel.
[0291] In another possible design, the communication device 900 can be configured to implement the functions of the second device in the above-described method embodiments, and the processor 901 can be configured to implement the functions of the second device in the above-described method embodiments.
[0292] The processor 901 is configured to obtain second channel information obtained by performing channel estimation on a second channel, the second channel information satisfying a randomness requirement, and the second channel being a channel used by the first device to send information to the communication device 900. The transceiver 905 is configured to send the second channel information. The processor 901 is further configured to, in a case where the second channel information and first channel information satisfy a consistency requirement, generate a second key based on the second channel information, wherein the first channel information is obtained by performing channel estimation on a first channel, and the first channel information satisfies the randomness requirement, the first channel being a channel used by the communication device 900 to send information to the first device, and the second key being used to encrypt information transmitted on the first channel.
[0293] In another possible design, the processor 901 can include a transceiver configured to implement the functions of receiving and sending. For example, the transceiver can be a transceiver circuit, or an interface, or an interface circuit. The transceiver circuit, the interface, or the interface circuit configured to implement the functions of receiving and sending can be separate, or can be integrated together. The transceiver circuit, the interface, or the interface circuit can be configured to read and write code / data, or the transceiver circuit, the interface, or the interface circuit can be configured to transmit or transfer signals.
[0294] In yet another possible design, the processor 901 can store instructions 903, and the instructions 903 can be executed on the processor 901 to cause the communication device 900 to perform the methods described in the above-described method embodiments. The instructions 903 can be fixed in the processor 901, and in this case, the processor 901 can be implemented by hardware.
[0295] In yet another possible design, the communication apparatus 900 can include circuitry that can implement the functions of transmitting or receiving or communicating in the foregoing method embodiments. The processor and the transceiver described in the embodiments of the present application can be implemented on an integrated circuit (IC), an analog IC, a radio frequency integrated circuit (RFIC), a mixed-signal IC, an application specific integrated circuit (ASIC), a printed circuit board (PCB), an electronic device, etc. The processor and the transceiver can also be manufactured using various IC technologies, such as complementary metal oxide semiconductor (CMOS), N-type metal oxide semiconductor (NMOS), positive channel metal oxide semiconductor (PMOS), bipolar junction transistor (BJT), bipolar CMOS (BiCMOS), silicon germanium (SiGe), gallium arsenide (GaAs), etc.
[0296] Those skilled in the art can also understand that the various illustrative logical blocks and steps listed in the embodiments of the present application can be implemented by electronic hardware, computer software, or a combination of both. Whether the functions are implemented by hardware or software depends on the specific application and the design requirements of the overall system. Those skilled in the art can implement the functions described in various ways for a specific application, but such implementation should not be understood as beyond the scope of the embodiments of the present application.
[0297] The embodiments of the present application and the above-described method embodiments are based on the same concept and have the same technical effects. For specific principles, please refer to the description in the above-described method embodiments, which will not be repeated here.
[0298] The present application also provides a computer readable storage medium for storing computer software instructions, which, when executed by a communication apparatus, implement the functions of any of the above-described method embodiments.
[0299] The present application also provides a computer program product for storing computer software instructions, which, when executed by a communication apparatus, implement the functions of any of the above-described method embodiments.
[0300] The application also provides a computer program which, when running on a computer, implements the functions of any of the method embodiments described above.
[0301] The application also provides a chip, which comprises a processor. The processor is configured to execute codes or instructions to implement the functions of any of the method embodiments described above. Optionally, the chip further comprises an interface, and the processor is coupled to the interface, and the interface is configured to receive or output signals.
[0302] In the above embodiments, all or part of the embodiments can be implemented by software, hardware, firmware or any combination thereof. When implemented by software, all or part of the embodiments can be implemented in the form of a computer program product. The computer program product comprises one or more computer instructions. When the computer instructions are loaded and executed on a computer, all or part of the processes or functions described in the embodiments of the application are generated. 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 computer-readable storage medium, for example, the computer instructions can be transmitted from one website, computer, server or data center to another website, computer, server or data center through wired (such as coaxial cable, optical fiber, digital subscriber line (DSL)) or wireless (such as infrared, wireless, microwave, etc.) mode. The computer-readable storage medium can be any available medium accessible by a computer or a data storage device such as a server, data center, etc. integrated with one or more available media. The available media can be magnetic media (such as floppy disk, hard disk, magnetic tape), optical media (such as high-density digital video disc (digital video disc, DVD)), or semiconductor media (such as SSD), etc.
[0303] The above is only a specific implementation of the application, but the protection scope of the application is not limited thereto. Any person skilled in the art can easily think of changes or replacements within the technical scope disclosed in the application, which should be covered within the protection scope of the application. Therefore, the protection scope of the application should be subject to the protection scope of the claims.
[0304] In addition, in the present application, the terms and / or descriptions of different embodiments are consistent and can be mutually referred to, and the technical features in different embodiments can be combined to form new embodiments according to their inherent logical relationship, unless otherwise specified and logically conflicted.
[0305] It can be understood that some optional features in some of the embodiments of the present application can be independent of other features in some scenarios, and can be combined with other features in some scenarios, without limitation.
[0306] It can be understood that the solutions in the embodiments of the present application can be used in combination, and the explanations or descriptions of various terms appearing in the embodiments, similar operations or steps can be mutually referenced or explained in various embodiments, which are not limited in the present application.
[0307] In the present application, "at least one" means one or more, and "multiple" means two or more. "And / or" describes the association relationship of the associated objects, which means that there can be three relationships, for example, A and / or B, which can represent the following cases: A exists alone, A and B exist together, B exists alone, where A and B can be singular or plural. In the textual description of the present application, the character " / " generally represents an "or" relationship between the front and rear associated objects. "At least one of the following" or similar expressions means any combination of these items, including any combination of single item or multiple items. For example, at least one of a, b and c can represent: a, or b, or c, or a and b, or a and c, or b and c, or a, b and c. Where a, b and c can be single or multiple.
[0308] In the present application, "first", "second", and various numerical designations indicate differentiation for the sake of description, and are not intended to limit the scope of the embodiments of the present application. For example, different messages are distinguished, rather than being used to describe a specific order or sequence. It should be understood that the objects thus described can be interchanged under appropriate circumstances in order to describe solutions other than the embodiments of the present application.
[0309] In the present application, the terms "include" and "have" and any variations thereof are intended to cover non-exclusive inclusion, for example, a process, method, system, product or device that includes a series of steps or units does not have to be limited to those steps or units clearly listed, but can include other steps or units that are not clearly listed or inherent to these processes, methods, products or devices.
[0310] In the present application, "for indicating" can include "for directly indicating" and "for indirectly indicating". When describing that certain indication information is used to indicate A, it can include that the indication information directly indicates A or indirectly indicates A, and it does not mean that A must be carried in the indication information.
[0311] In this application, "sending information to XX (device / network element)" can be understood as that the destination of the information is the device / network element. It can include directly or indirectly sending information to the device / network element. "Receiving information from XX (device / network element), or receiving information from XX (device / network element)" can be understood as that the source of the information is the device / network element, and it can include directly or indirectly receiving information from the device / network element. The information between the source and the destination of the information sending can be processed as necessary, for example, format change, etc., but the destination can understand the valid information from the source.
[0312] In this application, the words "exemplary" or "for example" are used to mean serving as an example, instance, or illustration. Any embodiment or design described herein as "exemplary" or "for example" should not be construed as being preferred or advantageous over other embodiments or designs. Rather, the exemplary or for example embodiments are presented so as to enable a clear and concise disclosure of the disclosure.
Claims
1. A method of key generation, characterized by, Applied to a first device, the method comprises: obtaining first channel information obtained by performing channel estimation on a first channel, the first channel information satisfying a randomness requirement, the first channel being a channel through which a second device transmits information to the first device; receiving second channel information obtained by performing channel estimation on a second channel, the second channel information satisfying the randomness requirement, the second channel being a channel through which the first device transmits information to the second device; in a case where the first channel information and the second channel information satisfy a consistency requirement, generating a first key based on the first channel information, the first key being used for encrypting information transmitted through the second channel.
2. The method of claim 1, wherein, The obtaining of the first channel information obtained by performing channel estimation on the first channel comprises: obtaining N1 channel estimation results obtained by performing channel estimation on the first channel, N1 being an integer greater than 1; determining whether the N1 channel estimation results satisfy the randomness requirement; in a case where the N1 channel estimation results satisfy the randomness requirement, the first channel information comprising the N1 channel estimation results.
3. The method of claim 2, wherein, N1 is greater than 2; the method further comprises: in a case where the N1 channel estimation results do not satisfy the randomness requirement, selecting N2 channel estimation results from the N1 channel estimation results, and determining whether the N2 channel estimation results satisfy the randomness requirement; N2 is an integer greater than 1, and N2 is less than N1; in a case where the N2 channel estimation results satisfy the randomness requirement, the first channel information comprising the N2 channel estimation results.
4. The method of claim 1, wherein, At least one of the first device and the second device corresponds to multiple antennas; The obtaining of the first channel information obtained by performing channel estimation on the first channel comprises: obtaining N1 channel matrices obtained by performing channel estimation on the first channel, N1 being an integer greater than 1; determining whether a first scalar obtained based on the N1 channel matrices satisfies the randomness requirement; in a case where the first scalar satisfies the randomness requirement, the first channel information comprising the first scalar.
5. The method of claim 4, wherein: the first scalar is a maximum singular value of the N1 channel matrices; or the first scalar is a trace of the N1 channel matrices; or the first scalar is a determinant of the N1 channel matrices.
6. The method of any one of claims 1 to 5, wherein: the first channel information is obtained by performing channel estimation on the first channel at multiple time points within a first time period; and the second channel information is obtained by performing channel estimation on the second channel at the multiple time points within the first time period.
7. The method of claim 6, wherein, The method further comprises: receiving first indication information; or transmitting first indication information; the first indication information is used to indicate the first time period.
8. The method according to any one of claims 1 to 7, characterized in that, The method further comprises: transmitting the first channel information.
9. The method of claim 8, wherein, The method further comprises: The second indication information is used to indicate that the first channel information meets the randomness requirement.
10. The method according to claim 8 or 9, characterized in that, The method further includes: The third indication information is used to indicate time information of channel estimation corresponding to the first channel information.
11. The method according to any one of claims 1 to 7, characterized in that, The method further includes: The fourth indication information is used to indicate that the first channel information and the second channel information meet the consistency requirement.
12. The method of any one of claims 1-11, wherein The first channel information meets the randomness requirement includes that an information entropy of the first channel information is greater than or equal to a first threshold. The second channel information meets the randomness requirement includes that an information entropy of the second channel information is greater than or equal to the first threshold.
13. The method of any one of claims 1-12, wherein The first channel information and the second channel information meet the consistency requirement includes that mutual information of the first channel information and the second channel information is greater than or equal to a second threshold.
14. A method of key generation, the method comprising: The method applied to a second device includes: Obtaining second channel information obtained by channel estimation on a second channel, the second channel information meeting a randomness requirement, the second channel being a channel used by a first device to send information to the second device; Sending the second channel information; In a case where the second channel information and first channel information meet a consistency requirement, generating a second key based on the second channel information, wherein the first channel information is obtained by channel estimation on a first channel, and the first channel information meets the randomness requirement, the first channel being a channel used by the second device to send information to the first device, and the second key is used to encrypt information transmitted on the first channel.
15. The method of claim 14, wherein, The method further includes: Receiving the first channel information; Determining whether the first channel information and the second channel information meet the consistency requirement.
16. The method of claim 15, wherein, The method further includes: Receiving second indication information, the second indication information being used to indicate that the first channel information meets the randomness requirement.
17. The method according to claim 15 or 16, characterized in that, The method further includes: Receiving third indication information, the third indication information being used to indicate time information of channel estimation corresponding to the first channel information; The obtaining of the second channel information obtained by channel estimation on a second channel includes: Determining the second channel information based on time information of channel estimation corresponding to the first channel information, the time information of channel estimation corresponding to the second channel information matching the time information of channel estimation corresponding to the first channel information.
18. The method of claim 14, wherein, The generating of the second key based on the second channel information in a case where the second channel information and first channel information meet a consistency requirement includes: In a case where fourth indication information is received, generating the second key based on the second channel information; The fourth indication information is used to indicate that the first channel information and the second channel information meet the consistency requirement.
19. The method according to any one of claims 14 to 18, characterized in that, The second channel information obtained by performing channel estimation on the second channel comprises: M1 channel estimation results obtained by performing channel estimation on the second channel, where M1 is an integer greater than 1; It is determined whether the M1 channel estimation results meet the randomness requirement; In a case where the M1 channel estimation results meet the randomness requirement, the second channel information comprises the M1 channel estimation results.
20. The method of claim 19, wherein, The M1 is greater than 2; the method further comprises: In a case where the M1 channel estimation results do not meet the randomness requirement, M2 channel estimation results are selected from the M1 channel estimation results, and it is determined whether the M2 channel estimation results meet the randomness requirement; M2 is an integer greater than 1, and M2 is less than M1; In a case where the M2 channel estimation results meet the randomness requirement, the second channel information comprises the M2 channel estimation results.
21. The method according to any one of claims 14 to 18, characterized in that, At least one of the first device and the second device corresponds to multiple antennas; The second channel information obtained by performing channel estimation on the second channel comprises: M1 channel matrices obtained by performing channel estimation on the second channel; It is determined whether a second scalar obtained based on the M1 channel matrices meets the randomness requirement; In a case where the second scalar meets the randomness requirement, the second channel information comprises the second scalar.
22. The method of claim 21, wherein The second scalar is a maximum singular value of the M1 channel matrices; or The second scalar is a trace of the M1 channel matrices; or The second scalar is a determinant of the M1 channel matrices.
23. The method of any one of claims 14 to 22, wherein The first channel information is obtained by performing channel estimation on the first channel at multiple time instants within a first time period; The second channel information is obtained by performing channel estimation on the second channel at the multiple time instants within the first time period.
24. The method of claim 23, wherein, The method further comprises: receiving first indication information; or transmitting first indication information; The first indication information is used to indicate the first time period.
25. The method of any one of claims 14 to 24, wherein The first channel information meets the randomness requirement comprises that an information entropy of the first channel information is greater than or equal to a first threshold value; The second channel information meets the randomness requirement comprises that an information entropy of the second channel information is greater than or equal to the first threshold value.
26. The method of any one of claims 14 to 25, wherein The first channel information and the second channel information meet a consistency requirement comprises that a mutual information of the first channel information and the second channel information is greater than or equal to a second threshold value.
27. A communications device, characterized by The apparatus comprises a module or unit for implementing the method of any one of claims 1 to 13, or a module or unit for implementing the method of any one of claims 14 to 26.
28. A communications device, characterized by comprises at least one processor; The processor is configured to cause the communication device to perform the method of any one of claims 1 to 13, or to cause the communication device to perform the method of any one of claims 14 to 26, by executing computer programs or instructions stored in the memory and / or by logic circuits.
29. A computer-readable storage medium, characterized in that, The computer readable storage medium stores a computer program which, when executed, causes the method of any one of claims 1 to 13 to be performed, or the method of any one of claims 14 to 26 to be performed.
30. A computer program product, the computer program product comprising: Computer program code which, when executed, causes the method of any one of claims 1 to 13 to be performed, or the method of any one of claims 14 to 26 to be performed.
Citation Information
Patent Citations
Method, device and system for distributing wireless secret key
CN103167490A
Physical layer key generation method based on channel state information
CN112788599A
Key generation method and device, electronic equipment and storage medium
CN114867013A
Security encryption method using 5G NR context information
CN116321137A
Wireless channel detection method, device and equipment
CN118590349A