Communication method and apparatus

By utilizing phase difference and sliding window processing in physical layer key generation technology, the key consistency problem is solved, and the security and consistency of the key are improved.

WO2026067149A1PCT designated stage Publication Date: 2026-04-02HUAWEI TECH CO LTD
View PDF 5 Cites 0 Cited by

Patent Information

Authority / Receiving Office
WO · WO
Patent Type
Applications
Current Assignee / Owner
Filing Date
2025-09-17
Publication Date
2026-04-02

AI Technical Summary

Technical Problem

How to improve key consistency in physical layer key generation technology based on channel entropy.

Method used

By determining the phase difference between the first and second devices as the key generation parameter, and using a sliding window to process the intersection of the bit string and the index to generate the key, it is ensured that the two communicating parties use similar phases for key generation.

Benefits of technology

It improves key consistency and randomness, reduces the risk of key leakage, and enhances communication security.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN2025121837_02042026_PF_FP_ABST
    Figure CN2025121837_02042026_PF_FP_ABST
Patent Text Reader

Abstract

A communication method and an apparatus, relating to the technical field of communications. The method comprises: receiving a first reference signal, wherein the first reference signal is used for determining a first phase; sending a second reference signal, wherein the second reference signal is used for determining a second phase; receiving first information, wherein the first information is used for indicating the second phase; and determining a first parameter, wherein the first parameter is a difference between the first phase and the second phase, and the first parameter is used for generating a first key. In this way, in a key generation stage, a first apparatus can estimate, on the basis of the first parameter, a phase obtained by channel estimation at a second apparatus. Compared with a solution in which both communication parties respectively generate keys on the basis of phases obtained by channel estimation, the present solution enables both communication parties to use similar phases for key generation, thereby improving key consistency.
Need to check novelty before this filing date? Find Prior Art

Description

Communication method and apparatus

[0001] This application claims priority to the Chinese Patent Application No. 202411338136.3, filed on September 24, 2024, and entitled "Communication method and apparatus", 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 more particularly, to a communication method and apparatus. BACKGROUND

[0003] The physical layer key generation technology based on channel entropy can be a technology that both communication parties generate a random key from a channel based on measurement of the physical communication channel and utilize channel reciprocity. The main steps of the physical layer key generation technology include channel measurement, randomness extraction, channel quantization, information reconciliation, and amplification. Compared with the key generation method based on pseudo-random number generator, the physical layer key generation technology can generate a highly random key stream and support dynamic update, thereby guaranteeing the freshness of the key. In addition, the physical layer key generation does not need to rely on a high-level root key, but only needs the communication parties to perform lightweight channel measurement and negotiation to generate a key, thereby greatly reducing the risk of key leakage.

[0004] However, how to improve the consistency of the key is a problem to be solved. SUMMARY

[0005] The present application provides a communication method and apparatus, which can improve the consistency of the key.

[0006] In a first aspect, a communication method is provided. The execution subject of the method provided in the first aspect can be a first apparatus. In the absence of special description, the first apparatus in the present application can be a terminal device or a network device, can be a component (for example, a processor, a chip, or a chip system, etc.) in the terminal device or the network device, or can be a logic module or software that can realize all or part of the functions of the terminal device or the network device. For ease of description, the first apparatus is taken as an example for description hereinafter.

[0007] The method comprises: receiving a first reference signal, the first reference signal being used to determine a first phase; transmitting a second reference signal, the second reference signal being used to determine a second phase; receiving first information, the first information being used to indicate the second phase; and determining a first parameter, wherein the first parameter is a difference between the first phase and the second phase, and the first parameter is used to generate a first key.

[0008] Based on the above scheme, the first device can determine the first parameter through information interaction with the second device. The first parameter can be a difference between a phase estimated by the first device (i.e., the first phase) and a phase estimated by the second device (i.e., the second phase). In this way, in the key generation stage, the first device can estimate the phase estimated by the second device according to the first parameter. Compared with the scheme in which the two communication parties generate a key according to the phases estimated by the two parties respectively, the above scheme can enable the two communication parties to generate a key by using similar phases, thereby improving the consistency of the key.

[0009] In some implementations, the method further includes receiving a third reference signal, the third reference signal being used to determine a third phase; and generating the first key according to the first parameter and the third phase.

[0010] Based on the above scheme, the first device can generate the first key according to the first parameter and the third phase. Compared with the scheme in which a key is generated only by the third phase, the above scheme enables the phase on which the first key is based to be close to the phase estimated by the opposite side (i.e., the second device), thereby improving the consistency of the key.

[0011] In some implementations, generating the first key according to the first parameter and the third phase includes: determining a second parameter, the second parameter being a sum of the third phase and the first parameter, or the second parameter being a difference between the third phase and the first parameter; and generating the first key according to the second parameter.

[0012] Based on the above scheme, the first device can determine the second parameter, and then generate the first key by using the second parameter as key generation material. The second parameter can be a sum of the third phase and the first parameter, or a difference between the third phase and the first parameter. Therefore, the above scheme enables the key generation material on which the first key is based to be close to the phase estimated by the opposite side, thereby improving the consistency of the key.

[0013] In some implementations, generating the first key according to the second parameter includes: quantizing the second parameter to obtain a first bit string, the first bit string including K bits, K being a positive integer; processing the first bit string according to a sliding window with a length of P to determine a second bit string, P being an integer greater than 1, the second bit string including L bits, L being a positive integer, an m th bit in the L bits being the same as a value of a continuous P bits in the K bits, m being a positive integer less than or equal to L; and determining the first key according to the second bit string.

[0014] Based on the above scheme, compared with the first bit string, the number of consecutive 0s and the number of consecutive 1s in the second bit string are significantly reduced. According to the second bit string to generate the first key, the randomness of the first key can be improved.

[0015] In some implementations, the method further includes: receiving second information, the second information being used to indicate Y indexes, Y being a positive integer; and wherein the determining the second bit string according to the sliding window with the length of P processing the first bit string includes: obtaining X bits and X indexes according to the sliding window processing the first bit string, X being a positive integer, wherein an xth bit in the X bits is the same as the value of the consecutive P bits in the K bits, and an xth index in the X indexes corresponds to the xth bit; and determining the second bit string according to L indexes, wherein the L bits correspond to the L indexes, and the L indexes are the intersection of the Y indexes and the X indexes.

[0016] Based on the above scheme, the Y indexes indicated by the second information can be used to filter the X bits obtained by the first device using the sliding window, so as to obtain the same bit string as the opposite side (for example, the second device) of the first device. The above scheme enables the communication parties to generate a key according to the same bit string through the interaction of the indexes, thereby further improving the consistency of the key.

[0017] In some implementations, the first phase is a difference between a receiving initial phase of the first antenna and a receiving initial phase of the second antenna, the second phase is a difference between a sending initial phase of the first antenna and a sending initial phase of the second antenna, the first key is used to encrypt information sent through the first antenna, and the first key is used to encrypt information sent through the second antenna.

[0018] Based on the above scheme, the first antenna and the second antenna can be two antennas corresponding to the same device, and therefore, the first phase can be a difference between receiving initial phases of the two antennas corresponding to the same device, and the second phase can be a difference between sending initial phases of the two antennas corresponding to the same device. Those skilled in the art can understand that the antennas corresponding to the same device often use the same clock. Even if the initial phase of one antenna sending or receiving signals drifts, the initial phase of the other antenna will also drift accordingly, and the difference between the initial phases of the two antennas corresponding to the same device is relatively stable. Therefore, the first parameter based on which the first device generates the key can be determined by the two relatively stable phase differences (i.e., the first phase and the second phase). Compared with the scheme of generating a key directly based on the initial phase, the above scheme is less affected by the phase drift of the communication parties. Therefore, the above scheme can further improve the consistency of the key.

[0019] In some implementations, the first parameter Δθ 12satisfies: Δθ 12 = (θ T1 - θ T2 ) - (θ R1 - θ R2 ).

[0020] wherein θ T1 is a transmission initial phase of the first antenna, θ T2 is a transmission initial phase of the second antenna, θ R1 is a reception initial phase of the first antenna, θ R2 is a reception initial phase of the second antenna, the first key is used to encrypt information transmitted through the first antenna, and the first key is used to encrypt information transmitted through the second antenna.

[0021] In a second aspect, a communication method is provided. An execution subject of the method provided in the second aspect can be a second device. In the absence of special description, the second device in the present application can be a terminal device or a network device, can also be a component (for example, a processor, a chip, or a chip system, etc.) in the terminal device or the network device, or can also be a logic module or software, etc. capable of realizing all or part of the functions of the terminal device or the network device. For the convenience of description, the second device is taken as an example for description hereinafter.

[0022] The method comprises: transmitting a first reference signal, the first reference signal being used to determine a first phase; receiving a second reference signal, the second reference signal being used to determine a second phase; and transmitting first information, the first information being used to indicate the second phase; wherein the first phase and the second phase are used to determine a first parameter, the first parameter being a difference between the first phase and the second phase, and the first parameter is used to generate a first key.

[0023] In some implementations, the method further comprises: transmitting a third reference signal, the third reference signal being used to determine a third phase, and the third phase and the first parameter are used to generate the first key.

[0024] In some implementations, the first parameter and the third phase are used to determine a second parameter, the second parameter being a sum of the third phase and the first parameter, or the second parameter being a difference between the third phase and the first parameter; and the second parameter is used to generate the first key.

[0025] In some embodiments, the method further includes: receiving a fourth reference signal, the fourth reference signal being used to determine a fourth phase; quantizing the fourth phase to obtain a third bit string, wherein the third bit string includes K' bits, K' being a positive integer; processing the third bit string according to a sliding window with a length of P to determine a fourth bit string, P being an integer greater than 1, wherein the fourth bit string includes L' bits, L' being a positive integer, an m'th bit in the L' bits being the same as a value of a continuous P bits in the K' bits, m' being a positive integer less than or equal to L'; and determining the second key according to the fourth bit string.

[0026] In some embodiments, the method further includes: receiving third information, the third information being used to indicate X indexes, X being a positive integer; and wherein processing the third bit string according to the sliding window with the length of P to determine the fourth bit string includes: processing the third bit string according to the sliding window to obtain Y bits and Y indexes, Y being a positive integer, wherein an y'th bit in the Y bits is the same as a value of a continuous P bits in the K' bits, an y'th index in the Y indexes corresponding to the y'th bit; and determining the fourth bit string according to L' indexes, wherein the L' bits correspond to the L' indexes, the L' indexes being an intersection of the Y indexes and the X indexes.

[0027] In some embodiments, the first phase is a difference between a receiving initial phase of a first antenna and a receiving initial phase of a second antenna, the second phase is a difference between a transmitting initial phase of the first antenna and a transmitting initial phase of the second antenna, the first key is used to encrypt information transmitted through the first antenna, and the first key is used to encrypt information transmitted through the second antenna.

[0028] In some embodiments, the first parameter Δθ 12 satisfies: Δθ 12 = (θ T1 - θ T2 ) - (θ R1 - θ R2 ).

[0029] wherein θ T1 is the transmitting initial phase of the first antenna, θ T2 is the transmitting initial phase of the second antenna, θ R1 is the receiving initial phase of the first antenna, and θ R2 is the receiving initial phase of the second antenna, the first key being used to encrypt information transmitted through the first antenna, and the first key being used to encrypt information transmitted through the second antenna.

[0030] In a third aspect, a communication apparatus is provided, which comprises a processing circuitry (or processor) and an input / output interface (also referred to as interface circuitry) for inputting and / or outputting signals, the processing circuitry being configured to perform the method of any of the first aspect and the possible implementation manners of the first aspect, or the processing circuitry being configured to perform the method of any of the second aspect and the possible implementation manners of the second aspect.

[0031] In some embodiments, the processing circuitry is configured to communicate with other apparatuses via the interface circuitry, and perform the method of the first aspect and any of the possible implementation manners of the first aspect, or perform the method of the second aspect and any of the possible implementation manners of the second aspect.

[0032] In a fourth aspect, a communication apparatus is provided. The communication apparatus can comprise units or modules for performing functions of the communication apparatus.

[0033] In some embodiments, the communication apparatus can comprise modules or units or means corresponding to each of the methods / operations / steps / actions described in the first aspect and any of the possible implementation manners of the first aspect, which can be hardware circuits, software, or a combination of hardware circuits and software.

[0034] The apparatus comprises a processing unit and a transceiver unit. The transceiver unit is configured to receive a first reference signal, the first reference signal being used to determine a first phase; the transceiver unit is further configured to send a second reference signal, the second reference signal being used to determine a second phase; the transceiver unit is further configured to receive first information, the first information being used to indicate the second phase; the processing unit is configured to determine a first parameter, the first parameter being a difference between the first phase and the second phase, the first parameter being used to generate a first key.

[0035] In some embodiments, the transceiver unit is further configured to receive a third reference signal, the third reference signal being used to determine a third phase; the processing unit is further configured to generate the first key according to the first parameter and the third phase.

[0036] In some embodiments, the processing unit is specifically configured to determine a second parameter, the second parameter being a sum of the third phase and the first parameter, or the second parameter being a difference between the third phase and the first parameter; generate the first key according to the second parameter.

[0037] In some embodiments, the processing unit is specifically configured to: quantize the second parameter to obtain a first bit string, wherein the first bit string comprises K bits, K being a positive integer; process the first bit string according to a sliding window with a length of P to determine a second bit string, P being an integer greater than 1, wherein the second bit string comprises L bits, L being a positive integer, and an mth bit in the L bits is the same as a value of a continuous P bits in the K bits, m being a positive integer less than or equal to L; and determine the first key according to the second bit string.

[0038] In some embodiments, the transceiving unit is further configured to receive second information, the second information being used to indicate Y indexes, Y being a positive integer; and the processing unit is specifically configured to: process the first bit string according to the sliding window to obtain X bits and X indexes, X being a positive integer, wherein an xth bit in the X bits is the same as a value of a continuous P bits in the K bits, and an xth index in the X indexes corresponds to the xth bit; and determine the second bit string according to L indexes, wherein the L bits correspond to the L indexes, and the L indexes are an intersection of the Y indexes and the X indexes.

[0039] In some embodiments, the first phase is a difference between a receiving initial phase of a first antenna and a receiving initial phase of a second antenna, the second phase is a difference between a sending initial phase of the first antenna and a sending initial phase of the second antenna, the first key is used to encrypt information sent through the first antenna, and the first key is used to encrypt information sent through the second antenna.

[0040] In some embodiments, the first parameter Δθ 12 satisfies: Δθ 12 = (θ T1 - θ T2 ) - (θ R1 - θ R2 ).

[0041] wherein θ T1 is a sending initial phase of a first antenna, θ T2 is a sending initial phase of a second antenna, θ R1 is a receiving initial phase of the first antenna, and θ R2 is a receiving initial phase of the second antenna, the first key is used to encrypt information sent through the first antenna, and the first key is used to encrypt information sent through the second antenna.

[0042] In some implementations, the communication apparatus can include a module or unit or means for performing the method / operations / steps / actions described in the second aspect and any possible implementation of the second aspect, which can be hardware circuit, software, or a combination of hardware circuit and software.

[0043] The apparatus includes a transceiver. The transceiver is configured to transmit a first reference signal, the first reference signal being used to determine a first phase; receive a second reference signal, the second reference signal being used to determine a second phase; and transmit first information, the first information being used to indicate the second phase. The first phase and the second phase are used to determine a first parameter, the first parameter being a difference between the first phase and the second phase, and the first parameter is used to generate a first key.

[0044] In some implementations, the transceiver is further configured to transmit a third reference signal, the third reference signal being used to determine a third phase, and the third phase and the first parameter are used to generate the first key.

[0045] In some implementations, the first parameter and the third phase are used to determine a second parameter, the second parameter being a sum of the third phase and the first parameter, or the second parameter being a difference between the third phase and the first parameter, and the second parameter is used to generate the first key.

[0046] In some implementations, the transceiver is further configured to receive a fourth reference signal, the fourth reference signal being used to determine a fourth phase. The apparatus further includes a processing unit configured to quantize the fourth phase to obtain a third bit string, the third bit string including K' bits, K' being a positive integer; process the third bit string according to a sliding window with a length of P to determine a fourth bit string, P being an integer greater than 1, the fourth bit string including L' bits, L' being a positive integer, an m'th bit in the L' bits being the same as a value of a consecutive P bits in the K' bits, m' being a positive integer less than or equal to L', and determine a second key according to the fourth bit string.

[0047] In some implementations, the transceiver is further configured to receive third information, the third information being used to indicate X indexes, X being a positive integer. The processing unit is specifically configured to process the third bit string according to the sliding window to obtain Y bits and Y indexes, Y being a positive integer, an y'th bit in the Y bits being the same as a value of a consecutive P bits in the K' bits, an y'th index in the Y indexes corresponding to the y'th bit, and determine the fourth bit string according to L' indexes, the L' bits corresponding to the L' indexes, and the L' indexes being an intersection of the Y indexes and the X indexes.

[0048] In some implementations, the first phase is a difference between a receive initial phase of the first antenna and a receive initial phase of the second antenna, the second phase is a difference between a transmit initial phase of the first antenna and a transmit initial phase of the second antenna, the first key is used to encrypt information transmitted through the first antenna, and the first key is used to encrypt information transmitted through the second antenna.

[0049] In some implementations, the first parameter Δθ 12 satisfies: Δθ 12 = (θ T1 - θ T2 ) - (θ R1 - θ R2 ).

[0050] where θ T1 is a transmit initial phase of the first antenna, θ T2 is a transmit initial phase of the second antenna, θ R1 is a receive initial phase of the first antenna, and θ R2 is a receive initial phase of the second antenna, the first key is used to encrypt information transmitted through the first antenna, and the first key is used to encrypt information transmitted through the second antenna.

[0051] In a fifth aspect, a computer readable storage medium is provided, and the computer readable storage medium has stored thereon a computer program or instructions, which, when executed by a processor, cause the first aspect and any possible method of the first aspect to be performed (or implemented), or cause the second aspect and any possible method of the second aspect to be performed (or implemented).

[0052] In a sixth aspect, a computer program product is provided, and the computer program product contains a computer program or instructions, which, when executed by a processor, cause the first aspect and any possible method of the first aspect to be performed (or implemented), or cause the second aspect and any possible method of the second aspect to be performed (or implemented).

[0053] In a seventh aspect, a communication apparatus is provided, and the communication apparatus includes a processor configured to cause the first aspect and any possible method of the first aspect to be performed (or implemented), or cause the second aspect and any possible method of the second aspect to be performed (or implemented) by executing a computer program (or computer executable instructions) stored in a memory and / or by a logic circuit.

[0054] In a possible implementation, the apparatus further includes a memory. In a possible implementation, the processor and the memory are integrated together. In another possible implementation, the memory is located outside the communication apparatus. The processor can include one or more.

[0055] In a possible implementation, the communication apparatus further includes a communication interface for the communication apparatus to communicate with other devices, such as transmitting or receiving data and / or signals. For example, the communication interface can be a transceiver, a circuit, a bus, a module or other types of communication interfaces.

[0056] In an implementation, the communication apparatus of the third aspect, the fourth aspect or the seventh aspect can be a chip or a chip system.

[0057] An eighth aspect provides a chip including a processor configured to invoke a computer program or computer instructions in a memory, so that any implementation of the first aspect is executed (or implemented), or so that any implementation of the second aspect is executed (or implemented).

[0058] In some implementations, the processor is coupled with the memory through an interface.

[0059] A ninth aspect provides a communication system including a first apparatus configured to execute the first aspect and any possible implementation of the first aspect, and a second apparatus configured to execute the second aspect and any possible implementation of the second aspect.

[0060] The description of the advantages of any of the second aspect to the ninth aspect can refer to the description of the advantages of the first aspect. BRIEF DESCRIPTION OF DRAWINGS

[0061] FIG. 1 is a schematic diagram of a communication system.

[0062] FIG. 2 is a schematic diagram of another communication system.

[0063] FIG. 3 is a schematic flowchart of a communication method 300 according to an embodiment of the present application.

[0064] FIG. 4 is a schematic flowchart of another communication method according to an embodiment of the present application.

[0065] FIG. 5 is a schematic diagram of channel estimation in a single-antenna system according to an embodiment of the present application.

[0066] FIG. 6 is a schematic diagram of channel estimation in a multi-antenna system according to an embodiment of the present application.

[0067] FIG. 7 is a schematic diagram of a key generation method according to an embodiment of the present application.

[0068] FIG. 8 is a schematic diagram of a frequency quantization method according to an embodiment of the present application.

[0069] FIG. 9 is a schematic block diagram of a communication device according to an embodiment of the present application.

[0070] FIG. 10 is a schematic block diagram of another communication device according to an embodiment of the present application.

[0071] FIG. 11 is a schematic block diagram of still another communication device according to an embodiment of the present application.

[0072] FIG. 12 is a schematic block diagram of still another communication device according to an embodiment of the present application. DETAILED DESCRIPTION

[0073] In the present application, the terms and / or descriptions in different embodiments are consistent and can be referred to each other if there is no special description and logical conflict, and the technical features in different embodiments can be combined to form new embodiments according to their inherent logical relationship.

[0074] 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 kinds of relationships, for example, A and / or B, which can represent the following cases: A exists alone, A and B exist together, and B exists alone, where A and B can be singular or plural. In the literal 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.

[0075] In the present application, "first", "second", and various numerical numbers (for example, #1, #2, etc.) indicate the differentiation for the convenience of description, and are not used to limit the scope of the embodiments of the present application. For example, different messages are distinguished, rather than used to describe a specific order or sequence. It should be understood that the objects thus described can be interchanged under appropriate circumstances, so as to be able to describe schemes other than the embodiments of the present application.

[0076] In the present application, "when", "in the case of", "if" and other descriptions all mean that the device will make corresponding processing under certain objective circumstances, not limited to time, and also does not require the device to have a judgment action when implemented, nor does it mean that there are other limitations.

[0077] In this application, “indication” or “for indicating” can include direct indication and indirect indication. 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.

[0078] The indication manner involved in the embodiments of this application should be understood as covering various methods that can enable the to-be-indicated party to know the to-be-indicated information. The to-be-indicated information can be sent together as a whole, or can be sent separately into multiple sub-information, and the sending period and / or sending occasion of these sub-information can be the same or different, and the application does not limit the sending method.

[0079] The “indication information” in the embodiments of this application can be explicit indication, that is, directly indicated through signaling, or obtained according to the parameters indicated by the signaling, in combination with other rules or in combination with other parameters or through derivation. It can also be implicit indication, that is, obtained according to rules or relationships, or according to other parameters, or through derivation. The application does not make specific limitations on this.

[0080] In this application, “protocol” can refer to a standard protocol in the communication field, which can include 5G protocol, new radio (NR) protocol, and related protocols applied in future communication systems, and the application does not limit this. “Predefined” can include predefinition. For example, protocol definition. “Preconfigured” can be implemented by pre-storing corresponding codes, tables or other methods that can be used to indicate related information in the device, and the application does not limit the implementation method.

[0081] In this application, “communication” can also be described as “data transmission”, “information transmission”, “data processing” and the like. “Transmission” includes “sending” and “receiving”. Exemplarily, the transmission can be uplink transmission, for example, the terminal device can send a signal to the network device; the transmission can also be downlink transmission, for example, the network device can send a signal to the terminal device; the transmission can also be sidelink transmission, for example, the terminal device can send a signal to another terminal device. Exemplarily, “transmission” can be air interface level transmission, or can be signal sending at chip input (I) / output (O) port, rather than air interface level transmission.

[0082] In this application, “message”, “information”, “signal” or “information element (IE)” and the like can be used interchangeably, and the name of the message or information is not limited in any way, as long as the corresponding function can be implemented.

[0083] "Sending information to XX (device)" can be understood as that the destination of the information is the device. It can include sending information to the device directly or indirectly. "Receiving information from XX (device)" or "receiving information from XX (device)" can be understood as that the source of the information is the device, and it can include receiving information from the device directly or indirectly. The information can be processed between the source and the destination of the information transmission, for example, format change, etc., but the destination can understand the effective information from the source. Similar expressions in this application can be similarly understood, and will not be repeated here. In addition, "sending" can also be understood as the "output" of the chip interface, and "receiving" can also be understood as the "input" of the chip interface. In other words, "sending" or "receiving" can be carried out between devices, for example, sending or receiving between network devices and terminal devices through the air interface, and "sending" or "receiving" can also be carried out within the device, for example, sending or receiving between components, modules, chips, software modules or hardware modules within the device through the bus, wire or interface.

[0084] In this application, the words "exemplarily", "such as" and the like are used to represent examples, illustrations or descriptions, and to present concepts in a specific way. Any embodiment or design scheme described as "example" in this application should not be interpreted as more preferred or more advantageous than other embodiments or design schemes. In the embodiments of this application, "of", "corresponding", "corresponding" and "associated" can be used interchangeably at times. It should be pointed out that when the distinction is not emphasized, the meanings expressed are consistent.

[0085] In this application, the configuration can be signaling configuration, which can also be described as configuration signaling. For example, the signaling configuration includes configuration by signaling sent by a network device, and the signaling can be a radio resource control (RRC) message, a downlink control information (DCI), or a system information block (SIB). For another example, the signaling configuration includes configuration between network devices. The network device can include an access network device, a core network device, or a management plane device, etc. Optionally, the signaling configuration can also be configuration to a terminal device or a network device by preconfigured signaling, or configuration to a terminal device or a network device by preconfiguration. Here, the preconfiguration is to define or configure the value of the corresponding parameter in advance in the protocol, and store it in the terminal device or the network device when communicating with the terminal device or the network device. The preconfigured message can be modified or updated under the condition that the terminal device or the network device is connected to the network.

[0086] The present application will present various aspects, embodiments or features around systems that can include a plurality of devices, components, modules, etc. Various systems can include devices, components, modules etc. other than those illustrated and / or can not include all of the devices, components, modules, etc. discussed in connection with the figures.

[0087] The business scenarios described in the embodiments of the present application are used to more clearly illustrate the technical solutions of the embodiments of the present application, and do not constitute a limitation on the technical solutions provided by the embodiments of the present application. Those skilled in the art can know that, as new business scenarios appear, the technical solutions provided by the embodiments of the present application are also applicable to similar technical problems.

[0088] In various embodiments of the present application, the size of the serial number of each process does not mean the order of execution, and the execution order of each process should be determined according to its function and inherent logic, and should not constitute any limitation on the implementation process of the embodiments of the present application. The terms "include", "contain", "have" and their variants mean "include but not limited to", unless otherwise specifically emphasized.

[0089] The technical solutions of the embodiments of the present application can be applied to various communication systems, including but not limited to: long term evolution (long term evolution, LTE) system, NR system and other fifth generation (5 th generation, 5G) mobile communication system, narrow band internet of things (narrow band internet of things, NB-IoT) system, enhanced machine type communication (enhanced machine-type communication, eMTC) system, enhanced mobile broadband (enhanced mobile broadband, eMBB) system, ultra reliable low latency communication (ultra reliable low latency communications, URLLC) system, satellite communication system, LTE-machine-to-machine (LTE-machine-to-machine, LTE-M) system, or system evolved after 5G such as future mobile communication system, etc.

[0090] FIG. 1 is a schematic diagram of a communication system 100. As shown in FIG. 1, the communication system 100 includes a radio access network 110 and a core network 120, and optionally, the communication system 100 can further include an Internet 130. The radio access network 110 can include at least one network device (e.g., 111a and 111b in FIG. 1) and at least one terminal device (e.g., 112a-112j in FIG. 1). The terminal device is connected to the network device in a wireless manner. The network device is connected to the core network 120 in a wireless or wired manner. The core network 120 can include one or more core network devices. The core network device and the network device can be independent and different physical devices, or the functions of the core network device and the logical functions of the network device can be integrated on the same physical device, or a physical device can integrate part of the functions of the core network device and part of the functions of the network device. The terminal device and the terminal device, and the network device and the network device can be connected to each other in a wired or wireless manner. The terminal device and the terminal device, the network device and the network device, and the terminal device and the network device can communicate with each other in a wireless manner through air interface resources. Exemplarily, the air interface resources can include at least one of time domain resources, frequency domain resources, code resources and space resources. It should be noted that FIG. 1 is only a schematic diagram, and the communication system 100 can further include other network devices, such as wireless relay devices and wireless backhaul devices, which are not shown in FIG. 1.

[0091] The network device can be any device with wireless transceiver function, for example, the network device can be a base station for accessing terminal devices to a radio access network (RAN). The network device can also be referred to as an access network device or an access network node. It can be understood that in systems using different wireless access technologies, the names of devices with network device functions can be different. For convenience of description, the apparatuses providing wireless communication access functions for terminal devices in the embodiments of the present application are collectively referred to as base stations. In the embodiments of the present application, the network device includes but is not limited to various forms of macro base stations (such as 111a in FIG. 1), micro base stations or indoor stations (such as 111b in FIG. 1), pico base stations, small stations, balloon stations, relay stations, access points, etc. The network device can include evolved node B (eNB or eNodeB) in LTE, access point (AP) in wireless fidelity (WiFi) system, wireless relay node, wireless backhaul node, transmission point (TP) or transmission reception point (TRP), etc., and can also include next generation NodeB (gNB) or transmission point (TRP or TP) in 5G system, one or a group of (including multiple antenna panels) antenna panels of a base station in 5G system, network nodes constituting a gNB or a transmission point, such as a baseband unit (BBU) or a distributed unit (DU), and can also include network devices, servers or vehicle-mounted devices, etc. in networks evolved after 5G. The network device can also be a module or unit that completes part of the function of the base station, for example, it can be a central unit (CU) or a DU.

[0092] In the embodiments of the present application, the apparatus for implementing the function of the network device can be a network device, or an apparatus capable of supporting the network device to implement the function, such as a chip system, which can be installed in the network device. The chip system can be composed of a chip, or can include a chip and other discrete devices.

[0093] In another possible scenario, a plurality of network devices cooperates to assist a terminal to implement wireless access, and different network devices respectively implement part of functions of a base station. For example, a network device can be a CU, a DU, a CU-control plane (CP), a CU-user plane (UP), or a radio unit (RU), etc. The CU and the DU can be separately arranged, or can be included in the same network element, for example, in a BBU. The RU can be included in a radio frequency device or a radio frequency unit, for example, in a remote radio unit (RRU), an active antenna unit (AAU), or a remote radio head (RRH).

[0094] In different systems, the CU (or CU-CP and CU-UP), the DU, or the RU can also have different names, 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, the CU-CP, the CU-UP, the DU, and the RU are taken as examples for description in this application. Any one of the CU (or the CU-CP, the CU-UP), the DU, and the RU in this application can be implemented by means of a software module, a hardware module, or a combination of a software module and a hardware module. The embodiments of this application do not limit the specific technology and the specific device form adopted by the network device.

[0095] The terminal device can be a device providing voice and / or data connectivity to users; the terminal device can also be a device having wireless connection function. The terminal device can be deployed on land, including indoor or outdoor, handheld or vehicle-mounted; can also be deployed on water surface (such as ships, etc.); can also be deployed in the air (such as airplanes, balloons and satellites, etc.). The terminal device can also be referred to as user equipment (UE), access terminal, terminal, subscriber unit, subscriber station, mobile station, mobile station (MS), mobile terminal (MT), remote station, remote terminal, mobile device, user terminal, wireless network device, user agent or user apparatus. In the embodiments of the present application, the terminal device includes but is not limited to: cellular phone, mobile phone, wireless data card, wireless modem, pad, laptop computer, notebook computer, palm computer, mobile internet device (MID), computer with wireless transceiver function, cordless phone, session initiation protocol (SIP) phone, smart phone, wireless local loop (WLL) station, personal digital assistant (PDA), handset with wireless communication function, computing device or other device connected to wireless modem, vehicle-mounted device (such as automobile, bicycle, electric vehicle, airplane, ship, train, high-speed rail, etc.), wearable device (such as smart watch, smart bracelet, pedometer, smart glasses, etc.), satellite terminal, terminal device in Internet of Things or Internet of Vehicles, and any form of terminal in future network, relay user equipment or terminal in future evolved public land mobile network (PLMN), etc.The terminal device can also be a virtual reality (VR) device, an augmented reality (AR) device, a smart point of sale (POS) machine, a customer-premises equipment (CPE), a light UE, a reduced capability UE (REDCAP UE), a machine type communication (MTC) terminal, a terminal device in industrial control, a terminal device in self driving, a terminal device in telemedicine, a terminal device in smart grid, a wireless terminal in transportation safety, a terminal device in smart city, a terminal device in smart home, a haptic terminal device, 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, or a flight device (e.g., a smart robot, a hot air balloon, a drone, an airplane), and the like. 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), and the like. The terminal device can also be other devices with terminal functions, for example, the terminal device can also be a device in device to device (D2D) communication. The embodiments of the present application are not limited in this regard.

[0096] In the embodiments of the present application, the device for implementing the function of the terminal device can be a terminal device, or a device capable of supporting the terminal device to implement the function, such as a chip or a chip system, which can be installed in the terminal device. The chip system can be composed of a chip, or can include a chip and other discrete devices. In the technical solutions of the embodiments of the present application, the device for implementing the function of the terminal device is a terminal device, which can also be referred to as a terminal. In the following description, the terminal device can be taken as an example of a UE.

[0097] The roles of the base station and the terminal can be relative, for example, the helicopter or the unmanned aerial vehicle 112i in FIG. 1 can be configured as a mobile base station, and for those terminals 112j accessing the wireless access network 110 through 112i, the terminal 112i is a base station; but for the base station 111a, 112i is a terminal, that is, 111a and 112i communicate through a wireless air interface protocol. Of course, 111a and 112i can also communicate through a base station-to-base station interface protocol, in which case 112i is also a base station relative to 111a. Therefore, the base station and the terminal can be collectively referred to as a communication device, and 111a and 111b in FIG. 1 can be referred to as a communication device with a base station function, and 112a-112j in FIG. 1 can be referred to as a communication device with a terminal function.

[0098] The network device and the terminal device can communicate through a wireless link. The transmission link from the network device to the terminal device can be referred to as a downlink (DL) or a downlink channel, used to transmit a downlink signal. The transmission link from the terminal device to the network device can be referred to as an uplink (UL) or an uplink channel, used to transmit an uplink signal. The transmission link from one terminal device to another terminal device can be referred to as a sidelink (SL) or a sidelink channel, used to transmit a sidelink signal.

[0099] FIG. 2 is a schematic diagram of another communication system. Referring to FIG. 2, the network device can communicate with one or more terminal devices.

[0100] An exemplary application scenario is that a third-party user can send a request message to the network device, which can be used to request data interaction with the terminal device. The network device and the terminal device can respectively generate a physical layer key. The generated physical layer key can be used to protect the transmission of the data of the third-party user between the network device and the terminal device. The generated physical layer key can also be used to protect the transmission of signaling information between the network device and the terminal device.

[0101] The mainstream physical layer key generation technology can generate a key according to the amplitude of the channel. The amplitude of the channel can be the channel strength when the electromagnetic signal reaches the receiver, which has strong reciprocity. However, in a static scenario, the amplitude of the channel is relatively stable, and the key generated based on the amplitude often has the characteristic of poor randomness. Compared with the stable amplitude, the phase of the channel changes more randomly. Therefore, according to the phase of the channel, it is more likely to generate a key with high randomness, but there are also problems such as poor key consistency in technology.

[0102] A related scheme is introduced below. The scheme includes S1 to S5.

[0103] S1, the communication node 1 sends a signal where ω c may be the center frequency of the signal x1(t), t1may be the starting time of the signal x1(t) sent by the communication node 1, t∈[t1, t1+T1], T1may be the duration of the signal, and φ1may be the initial phase decided by the communication node 1.

[0104] S2, the received signal received by the communication node 2 is The communication node 2 can estimate ω c and the phase θ 12 may be the phase change caused by the channel from the communication node 1 to the communication node 2.a 12 may be the modulus of the transmitted signal.a 12 The value of η 12 (t)may be the additive white Gaussian noise of the channel from the communication node 1 to the communication node 2.

[0105] S3, the communication node 2 sends a signal where t∈[t2, t2+T2]. T2may be the duration of the signal, and φ2may be the initial phase decided by the communication node 2.

[0106] S4, the received signal received by the communication node 1 is The communication node 2 estimates ω c and the phase θ 21 is the phase change caused by the channel from the communication node 2 to the communication node 1.a 21 may be η 21 (t)may be the additive white Gaussian noise of the channel from the communication node 2 to the communication node 1.

[0107] S5, the communication node 1 and the communication node 2 respectively quantize the phase and the phase and generate a key. Due to the channel reciprocity, it can be considered that θ 21 = θ 12 . Therefore, the phase and the phase may be the same in theory, so the keys generated by the communication node 1 and the communication node 2 are also the same.

[0108] However, in actual work, the communication node sending the signal cannot send the signal at an arbitrary initial phase. This is because the radio frequency link of the communication node can cause a random initial phase. The random initial phase caused by the radio frequency link of different communication nodes is not reciprocal.

[0109] For example, in the above S1, the signal transmitted by the communication node 1 can be where θ0may represent a random initial phase of the communication node 1. For another example, in the above S3, the signal transmitted by the communication node 2 can be θ'0may represent a random initial phase of the communication node 2. In this way, the key of the communication node 1 is actually generated according to . The key of the communication node 2 is actually generated according to . And θ'0is not reciprocal with θ0. In other words, θ'0is not equal to θ0. In this way, the keys generated by the communication node 1 and the communication node 2 according to different phase values, so the consistency of the keys is poor.

[0110] Therefore, how to improve the consistency of the keys is a problem to be solved.

[0111] FIG. 3 is a schematic flowchart of a communication method 300 provided by an embodiment of the present application. The method 300 can improve the consistency of the keys. The optional operations in the method 300 are shown in dashed lines in FIG. 3. The method 300 is introduced by taking the interaction between a first device and a second device as an example. The first device and the second device of the method 300 are introduced as follows.

[0112] Without special instructions, the first device in the present application can be a terminal device or a network device, can also be a component (for example, a processor, a chip, or a chip system, etc.) in the terminal device or the network device, or can also be a logic module or software that can realize all or part of the functions of the terminal device or the network device.

[0113] Without special instructions, the second device in the present application can be a terminal device or a network device, can also be a component (for example, a processor, a chip, or a chip system, etc.) in the terminal device or the network device, or can also be a logic module or software that can realize all or part of the functions of the terminal device or the network device.

[0114] The specific examples of the first device and the second device are introduced as follows, which are referred to as scene example 1 to scene example 4. For ease of description, the first device is taken as a terminal device or a network device, and the second device is taken as a terminal device or a network device as an example for description.

[0115] In scene example 1, the first device can be a terminal device, and the second device can be a network device.

[0116] In scene example 2, the first device can be a network device, and the second device can be a terminal device.

[0117] In a scenario example 3, the first apparatus can be a network device, and the second apparatus can be another network device.

[0118] In a scenario example 4, the first apparatus can be a terminal device, and the second apparatus can be another terminal device.

[0119] The following describes each operation in the method 300, taking the interaction between the first apparatus and the second apparatus as an example and in combination with FIG. 3.

[0120] S310: The first apparatus receives a first reference signal from the second apparatus, where the first reference signal is used to determine a first phase. Correspondingly, the second apparatus sends the first reference signal to the first apparatus.

[0121] The first reference signal can be a reference signal (RS). The first reference signal can be information known by the first apparatus and the second apparatus. The first reference signal can reflect the characteristics of a channel between the first apparatus and the second apparatus.

[0122] The present application does not limit the specific form of the first reference signal. Illustratively, in the scenario example 1, the first reference signal can be a downlink reference signal, for example, a channel state information (CSI)-RS. In the scenario example 2, the first reference signal can be an uplink reference signal, for example, a sounding reference signal (SRS).

[0123] In some possible implementations, the method 300 further includes: determining, by the first apparatus, the first phase according to the first reference signal. For example, the first apparatus can perform channel estimation according to the first reference signal to obtain the first phase. The first phase can reflect the characteristics of a channel from the second apparatus to the first apparatus.

[0124] S320: The first apparatus sends a second reference signal to the second apparatus, where the second reference signal is used to determine a second phase. Correspondingly, the second apparatus receives the second reference signal from the first apparatus.

[0125] The second reference signal is similar to the first reference signal, and details are not repeated.

[0126] In some possible implementations, the method 300 further includes: determining, by the second apparatus, the second phase according to the second reference signal. For example, the second apparatus can perform channel estimation according to the second reference signal to obtain the second phase. The second phase can reflect the characteristics of a channel from the first apparatus to the second apparatus.

[0127] The first device and the second device can work in a time division duplex (TDD) mode. Exemplarily, the reference signal (e.g., the second reference signal) sent by the first device to the second device and the reference signal (e.g., the first reference signal) sent by the second device to the first device can be sent on a TDD frequency band.

[0128] However, the working mode of the first device and the second device is not limited in the present application. For example, the first device and the second device can also work in a frequency division duplexing (FDD) mode.

[0129] S330, the first device receives first information from the second device, the first information being used to indicate the second phase. Correspondingly, the second device sends the first information to the first device.

[0130] The second device can indicate the second phase obtained by the channel estimation of the second device to the first device through the first information. The first information can be direct indication information. For example, the first information can include the value of the second phase. The first information can also be indirect indication information. For example, the first information can include the index of the second phase. The first device can pre-store the correspondence between the index and the second phase, so that the first device can determine the second phase according to the pre-stored correspondence and the index indicated by the first information.

[0131] S340, the first device determines a first parameter, wherein the first parameter can be the difference between the first phase and the second phase.

[0132] For example, the first parameter can be equal to the first phase minus the second phase. For another example, the first parameter can be equal to the second phase minus the first phase.

[0133] The first parameter can be used to generate a first key. For example, the first device can calculate a key generation material according to the first parameter and other parameters. The first device generates the first key according to the key generation material. The first key can be a key determined or generated by the first device.

[0134] The present application does not limit the execution order of S310 to S340. For example, the execution order can be: S310, S320, S330, S340. For another example, the execution order can be: S320, S310, S330, S340. For another example, the execution order can be: S320, S330, S310, S340.

[0135] Based on the above scheme, the first device can determine the first parameter through information interaction with the second device. The first parameter can be a difference between a phase (i.e., the first phase) estimated by the first device through channel estimation and a phase (i.e., the second phase) estimated by the second device through channel estimation. In this way, in the key generation stage, the first device can estimate the phase estimated by the second device through channel estimation according to the first parameter. Compared with the scheme in which the two communication parties generate a key according to the phases estimated by the two communication parties through channel estimation respectively, the above scheme can enable the two communication parties to generate a key by using similar phases, thereby improving the consistency of the key.

[0136] The following describes a specific example of the key generation stage.

[0137] In some possible implementation, the method 300 further includes S350. Optionally, S350 is performed after S340.

[0138] S350, the first device receives a third reference signal from the second device, the third reference signal being used to determine a third phase. Correspondingly, the second device sends the third reference signal to the first device.

[0139] The third reference signal is similar to the first reference signal, and details are not described herein again.

[0140] In some possible implementation, the method 300 further includes that the first device determines a third phase according to the third reference signal. For example, the first device can perform channel estimation according to the third reference signal to obtain the third phase. The third phase can reflect characteristics of a channel from the second device to the first device.

[0141] In some possible implementation, the method 300 further includes S360. Optionally, S360 is performed after S350.

[0142] S360, the first device generates the first key according to the first parameter and the third phase.

[0143] For example, the first device can generate the first key according to a key generation algorithm by taking the first parameter and the third phase as input. Specifically, the first parameter is a difference between the phases estimated by the first device and the second device through channel estimation respectively, and the third phase is a phase estimated by the first device through channel estimation in the key generation stage. Then, the first parameter and the third phase can be used to determine an approximate value of a phase estimated by the second device through channel estimation in the key generation stage.

[0144] In some possible implementation, the method 300 further includes S370. Optionally, S370 is performed after S340.

[0145] S370, the first device sends a fourth reference signal to the second device, the fourth reference signal being used to determine a fourth phase. Correspondingly, the second device receives the third reference signal from the first device.

[0146] The fourth reference signal is similar to the first reference signal, and details are not repeated here.

[0147] In some possible implementations, the method 300 further includes: determining, by the second device, the fourth phase according to the fourth reference signal. For example, the second device can perform channel estimation according to the fourth reference signal to obtain the fourth phase. The fourth phase can reflect the characteristics of the channel from the first device to the second device.

[0148] In some possible implementations, the method 300 further includes: S380. Optionally, S380 is performed after S350.

[0149] S380, the second device generates a second key according to the fourth phase.

[0150] For example, the second device can generate the second key according to a key generation algorithm with the fourth phase as input. The second key can be a key generated by the second device.

[0151] The present application does not limit the specific execution order between S350, S360, S370 and S380.

[0152] For example, S350 can be performed before S370, between S370 and S380, or after S350. S350 can also be performed simultaneously with S370 or S370.

[0153] For another example, S360 can be performed before S370, between S370 and S380, or after S360. S360 can also be performed simultaneously with S370 or S370.

[0154] Based on the above scheme, the first device can generate the first key according to the first parameter and the third phase. Compared with the scheme of generating the key only by the third phase, the above scheme makes the phase based on which the first key is generated close to the phase (e.g., the fourth phase) estimated by the opposite side (i.e., the second device), thereby improving the consistency of the key.

[0155] The following further introduces an example of generating the first key by the first device.

[0156] In some possible implementation, S360 includes: S362, determining, by the first device, a second parameter, the second parameter being a sum of the third phase and the first parameter, or the second parameter being a difference between the third phase and the first parameter; and S364, generating, by the first device, the first key according to the second parameter.

[0157] The second parameter can also be referred to as a key generation material or other names of the first device, which is not limited in the present application.

[0158] In some examples (denoted as parameter example 1), the second parameter can be a sum of the third phase and the first parameter. The first parameter can be equal to the second phase minus the first phase.

[0159] In some other examples (denoted as parameter example 2), the second parameter can be a difference between the third phase and the first parameter. For example, the second parameter can be equal to the third phase minus the first parameter. The first parameter can be equal to the first phase minus the second phase.

[0160] Based on the above scheme, the first device can determine the second parameter, and then generate the first key by taking the second parameter as a key generation material. The second parameter can be a sum of the third phase and the first parameter, or a difference between the third phase and the first parameter. Therefore, the above scheme makes the key generation material based on which the first key is generated close to the phase estimated based on the side channel, thereby improving the consistency of the key.

[0161] The following describes examples of the first parameter, the second parameter and the third phase in combination with FIG. 4.

[0162] FIG. 4 is a schematic flowchart of another communication method 400 provided by an embodiment of the present application. The method 400 takes the first device as a terminal device and the second device as a network device (i.e., scenario example 1) as an example. The following first describes the operations in the parameter configuration stage in the method 400 in combination with FIG. 4.

[0163] S410, the terminal device and the network device interact with a reference signal to perform channel estimation, and obtain a first phase and a second phase respectively. The first phase is denoted as θ DL , and the second phase is denoted as θ UL .

[0164] For example, the specific description of S410 can be referred to S310 and S320, which is not described herein again.

[0165] For ease of description, the first parameter is denoted as Δθ. In parameter example 1, θ UL = θ DL + Δθ. In parameter example 2, θ UL = θ DL - Δθ.

[0166] S420, the network device sends first information to the terminal device, where the first information is used to indicate the first parameter Δθ. Correspondingly, the terminal device receives the first information from the network device.

[0167] The specific description of S420 can be referred to S330, and details are not described herein again.

[0168] S430, the terminal device determines the first parameter Δθ.

[0169] The specific description of S430 can be referred to S340, and details are not described herein again.

[0170] The operations of the key generation stage in method 400 are described below in combination with FIG. 4.

[0171] S440, the terminal device interacts with the network device with reference signals, performs channel estimation, and obtains a third phase and a fourth phase respectively. The third phase is denoted as θ' DL , and the fourth phase is denoted as θ' UL .

[0172] The specific description of S440 can be referred to S350 and S370, and details are not described herein again.

[0173] S450, the terminal device generates a first key according to the third phase θ' DL and the first parameter Δθ. The network device generates a second key according to the fourth phase θ' UL .

[0174] In parameter example 1, the terminal device can generate the first key according to θ' DL + Δθ. In parameter example 2, the terminal device can generate the first key according to θ' DL - Δθ.

[0175] The specific description of S450 can be referred to S360 and S380, and details are not described herein again.

[0176] Method 400 is only a specific example of method 300, and does not constitute a limitation on the present application. The present application is also applicable to other scene examples.

[0177] The embodiments of the present application can be applied to a single antenna system, and can also be applied to a multi-antenna system. The single antenna system can mean that a single antenna corresponding to the first device communicates with a single antenna corresponding to the second device. The multi-antenna system can mean that multiple antennas corresponding to the first device communicate with multiple antennas corresponding to the second device.

[0178] The embodiments of the present application applied to a single antenna system are described below in combination with FIG. 5.

[0179] FIG. 5 is a schematic diagram of channel estimation in a single antenna system according to an embodiment of the present application.

[0180] Referring to (a) of FIG. 5, the first device can receive a first reference signal from the second device. The first reference signal can pass through a transmitting channel of the second device, a space channel, and a receiving channel of the first device. The random initial phase of the transmitting channel of the second device is denoted as The random initial phase of the receiving channel of the first device is denoted as The first phase can be represented by the following equation.

[0181] where ω c = 2πf c , and f c may be the subcarrier frequency of the first reference signal. τ1may represent the time delay of the first reference signal in air interface transmission.

[0182] The first device can send a second reference signal to the second device. The second reference signal can pass through a transmitting channel of the first device, a space channel, and a receiving channel of the second device. The random initial phase of the transmitting channel of the first device is denoted as The random initial phase of the receiving channel of the second device is denoted as

[0183] For ease of description, it is assumed that the first device and the second device operate in a TDD mode. The second phase can be represented by the following equation.

[0184] where ω c = 2πf c , and f c may be the subcarrier frequency of the second reference signal. τ1may represent the time delay of the second reference signal in air interface transmission.

[0185] The first device can receive first information from the second device, which can be used to indicate the second phase. Further, the first device can determine the first parameter according to the first phase and the second phase.

[0186] Hereinafter, the first parameter Δθ is taken as an example of the first phase minus the second phase, which can be represented by the following equation.

[0187] Hereinafter, an example of the application of the embodiments of the present application to a multi-antenna system is described.

[0188] In some possible implementations, the first phase can be a difference between a receiving initial phase of the first antenna and a receiving initial phase of the second antenna, and the second phase can be a difference between a transmitting initial phase of the first antenna and a transmitting initial phase of the second antenna.

[0189] The first phase is determined according to a first reference signal received by the first device. The first reference signal carries the receiving initial phases of the first antenna and the second antenna. Correspondingly, the second phase is determined according to a second reference signal transmitted by the first device. The second reference signal carries the transmitting initial phases of the first antenna and the second antenna. Therefore, those skilled in the art can also understand that the first antenna and the second antenna can be two antennas corresponding to the first device.

[0190] In the case where the first device is a terminal device or a network device, the first antenna and the second antenna corresponding to the terminal device or the network device can be understood as the first antenna and the second antenna being antennas of the terminal device or the network device. In the case where the first device is a component in the terminal device or the network device, the component corresponding to the first antenna and the second antenna can be understood as the first antenna and the second antenna being antennas used in combination with the component. Other antennas corresponding to other devices can be understood with reference to the above.

[0191] The first key can be used to encrypt information transmitted through the first antenna and information transmitted through the second antenna. Exemplarily, the information transmitted through the first antenna can be service data or signaling. The information transmitted through the first antenna can not include a reference signal (for example, the second reference signal). Examples of information transmitted through the second antenna are similar to the above examples, and are not described herein again.

[0192] Based on the above scheme, the first antenna and the second antenna can be two antennas corresponding to the same device, and therefore, the first phase can be a difference between receiving initial phases of the two antennas corresponding to the same device, and the second phase can be a difference between transmitting initial phases of the two antennas corresponding to the same device. Those skilled in the art can understand that the antennas corresponding to the same device often use the same clock. Even if the initial phase of one antenna transmitting or receiving a signal drifts, the initial phase of the other antenna will also drift accordingly, and the difference between the initial phases of the two antennas corresponding to the same device is relatively stable. Therefore, the first parameter based on which the first device generates the key can be determined by the two relatively stable phase differences (that is, the first phase and the second phase). Compared with a scheme of generating a key directly based on an initial phase, the above scheme is less affected by phase drifts of both communication parties. Therefore, the above scheme can further improve the consistency of the key.

[0193] In some possible implementation manners, the first antenna and the second antenna can be two antennas corresponding to the second device. The first phase can be a difference between a sending initial phase of the first antenna and a sending initial phase of the second antenna, and the second phase can be a difference between a receiving initial phase of the first antenna and a receiving initial phase of the second antenna.

[0194] Those skilled in the art can understand that the example in which the first antenna and the second antenna correspond to the second device is similar to the example in which the first antenna and the second antenna correspond to the first device, and only the transceiving subject is different. For ease of description, only the specific example in which the first antenna and the second antenna correspond to the first device is introduced below.

[0195] Optionally, the first parameter Δθ 12 satisfies: Δθ 12 = (θ T1 - θ T2 ) - (θ R1 - θ R2 ).

[0196] wherein θ T1 is the sending initial phase of the first antenna, θ T2 is the sending initial phase of the second antenna, θ R1 is the receiving initial phase of the first antenna, and θ R2 is the receiving initial phase of the second antenna.

[0197] An example derivation process of the above formula is introduced below with reference to FIG. 6.

[0198] FIG. 6 is a schematic diagram of channel estimation in a multi-antenna system according to an embodiment of the present application. The first device can correspond to M antennas, and the second device can correspond to N antennas. N and M are integers greater than 1. N and M can be equal or not equal.

[0199] The M antennas corresponding to the first device can send signals to the N antennas corresponding to the second device. The N antennas corresponding to the second device can also send signals to the M antennas corresponding to the first device. The multi-antenna system shown in FIG. 6 can also be understood as an M×N multiple input multiple output (MIMO) system.

[0200] In the multi-antenna system shown in FIG. 6, any two antennas corresponding to the first device and any one antenna corresponding to the second device can be regarded as an antenna combination. Any one antenna corresponding to the first device and any two antennas corresponding to the second device can also be regarded as an antenna combination.

[0201] The following describes an antenna combination of two antennas (denoted as antenna 1 and antenna 2) corresponding to the first device and one antenna (denoted as antenna 3) corresponding to the second device. Those skilled in the art can understand that an antenna combination of one antenna corresponding to the first device and two antennas corresponding to the second device is similar to the following example, and thus will not be described again.

[0202] The first device can receive a first reference signal from the second device. The first reference signal can pass through a sending channel of the second device, a space channel, and a receiving channel of the first device. Wherein, a phase of a channel (denoted as channel 1) from antenna 3 to antenna 1 can be denoted as ∠h1, and a phase of a channel (denoted as channel 2) from antenna 3 to antenna 2 can be denoted as ∠h2. A random initial phase of antenna 1 corresponding to the first device as the receiving channel is denoted as A random initial phase of antenna 2 corresponding to the first device as the receiving channel is denoted as A random initial phase of antenna 3 corresponding to the second device as the sending channel is denoted as

[0203] A phase of the first reference signal on the channel 1 and the channel 2 can be expressed by the following formula:

[0204] Wherein, ω c = 2πf c , f c may be a subcarrier frequency of the first reference signal. τ1 can represent a time delay of air interface transmission of the first reference signal on the channel 1, and τ2 can represent a time delay of air interface transmission of the first reference signal on the channel 2.

[0205] The first device can determine the first phase θ 12 according to the following formula:

[0206] Correspondingly, the first device can send a second reference signal to the second device. The second reference signal can pass through a sending channel of the first device, a space channel, and a receiving channel of the second device. Wherein, a phase of a channel (denoted as channel 1') from antenna 1 to antenna 3 can be denoted as ∠h'1, and a phase of a channel (denoted as channel 2') from antenna 2 to antenna 3 can be denoted as ∠h'2. A random initial phase of antenna 1 corresponding to the first device as the sending channel is denoted as A random initial phase of antenna 2 corresponding to the first device as the sending channel is denoted as A random initial phase of antenna 3 corresponding to the second device as the receiving channel is denoted as

[0207] For convenience of description, it is assumed that the first device and the second device operate in a TDD mode. Channel 1 and channel 1' can be regarded as the same channel, and channel 2 and channel 2' can be regarded as the same channel. The phase of the second reference signal on channel 1' and channel 2' can be expressed by the following formula:

[0208] where ω c = 2πf c , f c may be the subcarrier frequency of the second reference signal. τ1may represent the time delay of the air interface transmission of the second reference signal on channel 1' (or channel 1), and τ2may represent the time delay of the air interface transmission of the second reference signal on channel 2' (or channel 2).

[0209] The second device can determine the second phase θ' according to the following formula: 12

[0210] The first device can receive the first information from the second device, which can be used to indicate the second phase. Further, the first device can determine the first parameter according to the first phase and the second phase.

[0211] Hereinafter, the first parameter Δθ is taken as an example of being equal to the first phase minus the second phase, which can be expressed by the following formula.

[0212] where Δθ is the initial phase difference value between the two antennas corresponding to the same device (i.e., the first device). The antennas corresponding to the same device often use the same clock. Even if drift occurs, since also drift occurs, is relatively stable. Similarly, is also relatively stable. Therefore, the first parameter Δθ is an initial quantity that is stable in time and only related to the hardware of the first device. Therefore, the above scheme is less affected by the phase drift of the two communicating parties. Therefore, the above scheme can further improve the consistency of the key.

[0213] After estimating the first parameter Δθ through the above process, in the key generation stage, the first device and the second device can interact the reference signals and perform channel estimation and phase calculation, respectively.

[0214] ​For example, the first device can calculate the phase of the third reference signal on channel 1 minus the phase of the third reference signal on channel 2 as the third phase. The second device can calculate the phase of the fourth reference signal on channel 1' minus the phase of the fourth reference signal on channel 2' as the fourth phase. The first device can subtract the third phase by the first parameter to obtain the second parameter, and generate the first key according to the second parameter. The second device can generate the second key according to the fourth phase.

[0215] The above examples take two antennas corresponding to the first device and one antenna corresponding to the second device as an antenna combination, but the application is not limited thereto. One antenna corresponding to the first device and two antennas corresponding to the second device as an antenna combination can also achieve the effects of the embodiments of the application.

[0216] Exemplarily, the above antenna combinations can share wherein C can represent the number of combinations, and "*" can represent the multiplication sign.

[0217] The channel combination corresponding to each antenna combination can be denoted as <h i ,h j >, i and j are different, and i and j are positive integers less than or equal to For example, the channel between antenna 1 and antenna 3 can be denoted as h1, the channel between antenna 2 and antenna 3 can be denoted as h2, and the channel combination corresponding to the antenna combination shown in FIG. 6 can be denoted as <h1, h2>.

[0218] wherein each antenna combination can obtain a channel feature pair <θ′ ij -Δθ ij ,θ′ ij >. For example, the channel feature pair shown in FIG. 6 can be <θ′ 12 -Δθ 12 ,θ′ 12 >.

[0219] Each channel feature pair can independently generate a key. The first device and the second device can also combine multiple channel feature pairs to generate a key. For example, the multiple channel feature pairs can be added, subtracted, averaged, or combined in other ways.

[0220] The above examples take the first parameter equal to the first phase minus the second phase as an example. The first parameter can also be equal to the second phase minus the first phase, which will not be described in detail.

[0221] In addition, the example of the first antenna and the second antenna corresponding to the second device can refer to the example of the first antenna and the second antenna corresponding to the first device described above, which will not be described in detail.

[0222] The following describes an example of generating the first key or the second key.

[0223] In some examples, the first device and the second device can generate the first key and the second key according to time sequences of the key generation material, respectively. For example, the first device can generate the first key according to a time sequence of the second parameter. The second device can generate the second key according to a time sequence of the fourth phase.

[0224] Taking the second device generating the second key according to the fourth phase as an example, the fourth phase can be represented as wherein, may be a phase at which the first device transmits the fourth reference signal on one antenna corresponding to the first device, may be a phase at which the first device transmits the fourth reference signal on another antenna corresponding to the first device. For specific examples, refer to the related description of FIG. 6, which will not be described again.

[0225] wherein τ1-τ2 is related to scatterers in the channel (for example, the aforementioned channel 1 and channel 2). Changes in scatterers in the channel (such as vibration), or regular movement of objects in the space of the channel, can cause regular changes (also referred to as a trend item) in the phase of the reference signal. In order to generate a key that is sufficiently random, the trend item of the phase can be removed.

[0226] FIG. 7 is a schematic diagram of a key generation method according to an embodiment of the present application. The following examples can be used as specific examples of S360 or S380.

[0227] Taking the second device generating the second key according to the fourth phase as an example. The second device can measure the reference signal multiple times (for example, the first device transmits the fourth reference signal to the second device multiple times), and obtain a time sequence of the fourth phase, as shown in (a) of FIG. 7. In FIG. 7, the horizontal coordinate of each image can be time, and the vertical coordinate can be the phase value of the fourth phase.

[0228] The second device can perform a moving average on the time sequence of the fourth phase, extract a trend item, and obtain an averaged time sequence. As shown in (b) of FIG. 7.

[0229] The second device can subtract the trend item (or the averaged time sequence) from the original time sequence of the fourth phase, and obtain a processed time sequence. As shown in (c) of FIG. 7.

[0230] After the above processing, the trend item of the slow change of the phase over time is removed, and the processed time sequence includes high-frequency, random characteristics. Therefore, according to the processed time sequence, a more random key can be obtained.

[0231] Further, the second device can quantize the processed time series. For example, phase values over 0 in (c) of FIG. 7 can be quantized as bit "1", and phase values below 0 can be quantized as bit "0".

[0232] The first device generates the first key according to the third phase and the first parameter. The example is similar to the above example, and thus is not described herein.

[0233] In some other examples, the first device and the second device can respectively generate the first key and the second key according to the frequency sequence of the key generation material. For example, the first device can generate the first key according to the frequency sequence of the second parameter. The second device can generate the second key according to the frequency sequence of the fourth phase.

[0234] In some possible implementation manners, the first device generates the first key according to the second parameter, including S366, S367 and S368.

[0235] S366, the first device quantizes the second parameter to obtain a first bit string.

[0236] The first bit string can include K bits, where K is a positive integer. For example, the first device can quantize the frequency domain sequence of the second parameter to obtain the first bit string.

[0237] FIG. 8 is a schematic diagram of a frequency quantization manner according to an embodiment of the present application.

[0238] The phase of the reference signal often has a certain variation rule in the frequency domain, for example, linear variation or approximate linear variation. The first device can divide the second parameter (i.e., the phase value) along the frequency domain.

[0239] As shown in FIG. 8, the first device can group the frequency domain sequence of the second parameter. For example, grouping according to the subcarriers to which the frequencies belong, and grouping every Q subcarriers. Taking the difference between the maximum value and the minimum value of the phases in each group as the height, and taking the number of phases in the group as the width, a rectangle shown in FIG. 8 is formed. The diagonal of the rectangle can be a quantization boundary line. If the phase characteristics in the group as a whole are in an upward trend, the quantization boundary line can be from the lower left corner to the upper right corner of the matrix. If the phase characteristics in the group as a whole are in a downward trend, the quantization boundary line is from the upper left corner to the lower right corner of the matrix. Exemplarily, the phase values above the quantization boundary line can be quantized as bit 1, and the values below the quantization boundary line can be quantized as bit 0.

[0240] FIG. 8 is only an example. The frequency domain sequence can also be quantized in other ways, which are not described herein.

[0241] The scheme of quantization based on time sequence needs multiple interactions of reference signals and channel estimation. The quantization based on frequency sequence can generate a key after each channel estimation, improving the immediacy of key generation and reducing the latency of key generation.

[0242] S367, the first device determines a second bit string according to the first bit string by using a sliding window with a length of P.

[0243] P can be an integer greater than 1. The second bit string can include L bits, and L can be a positive integer. The mth bit in the L bits is the same as the value of the consecutive P bits in the K bits, and m is a positive integer less than or equal to L.

[0244] As an example, the sliding window with a length of P can slide bit by bit on the first bit string. In the case that the P bits in the sliding window are the same (for example, all are 1 or all are 0), the value of the P bits is taken as a bit in the second bit string. The above-mentioned bit-by-bit sliding can be from high bit to low bit or from low bit to high bit, which is not limited by the present application. For example, P is 3, the first bit string is {01000011011110}, and the second bit string can be {0011}. It can be seen that the number of consecutive 0s and the number of consecutive 1s in the second bit string are significantly reduced.

[0245] As another example, the sliding window with a length of P can slide on the first bit string according to a certain rule. For example, the step length of each sliding is 2 bits.

[0246] S368, the first device determines the first key according to the second bit string.

[0247] For example, the first device can take the second bit string as input and obtain the first key according to a physical layer key generation algorithm.

[0248] In the bit string quantized by the frequency sequence, there can be a large number of consecutive 0s and consecutive 1s in the bit string due to the regularity of the phase in the frequency domain. In some possible implementations, the first device can slide a sliding window with a length of P on the first bit string. If all bits in the sliding window are the same, the position index (denoted as index) of the sliding window and the bits (denoted as bit index ) in the sliding window are recorded, so that any index≤z≤index+P-1 satisfies the second bit string BitStream(z)=bit index .

[0249] Compared with the first bit string, the number of consecutive 0s and the number of consecutive 1s in the second bit string are significantly reduced. The first key is generated according to the second bit string, and the randomness of the first key can be improved.

[0250] The second device can also generate the second key in a manner similar to S366, S367, and S368 described above. Details are described below.

[0251] In some possible implementation manners, the second device generates the second key according to the fourth phase (S380) includes S382, S384, and S386.

[0252] S382, the second device quantizes the fourth phase to obtain a third bit string.

[0253] The third bit string can include K' bits, and K' is a positive integer. K can have the same value as K', or can be different.

[0254] For other descriptions of S382, refer to the foregoing S366, and details are not described herein again.

[0255] S384, the second device processes the third bit string according to a sliding window with a length of P to determine a fourth bit string.

[0256] P is an integer greater than 1. The fourth bit string includes L' bits, and L' is a positive integer. An m'th bit in the L' bits has the same value as a consecutive P bits in the K' bits, and m' is a positive integer less than or equal to L'. K and L can have the same value, or can be different.

[0257] For other descriptions of S384, refer to the foregoing S367, and details are not described herein again.

[0258] S386, the second device determines the second key according to the fourth bit string.

[0259] For example, the second device can take the fourth bit string as input, and obtain the second key according to a physical layer key generation algorithm.

[0260] The first device and the second device obtain a bit string with fewer consecutive 0s and fewer consecutive 1s by using the sliding window scheme described above. Further, the first device and the second device can also exchange the indexes of the bits in the bit string obtained by sliding the sliding window. The first device and the second device can determine bits corresponding to an intersection of the indexes as a new bit string (for example, the second bit string and the fourth bit string), so as to further improve the consistency of the key. Details of the exchange between the first device and the second device are described below.

[0261] In some possible implementation manners, the method 300 further includes: receiving, by the first device, second information from the second device, the second information being used to indicate Y indexes, Y being a positive integer. Correspondingly, the second device can send the second information to the first device.

[0262] In some possible implementation manners, the method 300 further includes: receiving, by the second device, third information from the first device, the third information being used to indicate X indexes, X being a positive integer. Correspondingly, the first device can send the third information to the second device.

[0263] That is, the first device can indicate X indexes to the second device, and the second device can indicate Y indexes to the first device.

[0264] Examples of the Y indexes and the X indexes are described below.

[0265] In some possible implementation manners, S384 includes: processing, by the second device, the third bit string according to the sliding window to obtain Y bits and Y indexes; and determining, by the second device, the fourth bit string according to L' indexes. The L' indexes are intersections of the X indexes and the Y indexes. The second device can determine the X indexes according to the third information.

[0266] The yth bit in the Y bits is the same as the value of the consecutive P bits in the K' bits, and the yth index in the Y indexes corresponds to the yth bit. Wherein, y is a positive integer less than or equal to Y.

[0267] For example, assuming that the third bit string obtained by the second device is {01000011001110}, and P is 3, the second device slides the sliding window from left to right bit by bit. The second device obtains 0 at the third bit, and records it as <3, 0>; obtains 0 at the fourth bit, and records it as <4, 0>; and obtains 1 at the eleventh bit, and records it as <11, 1>. Wherein, the Y indexes can be 3, 4 and 11, and the Y bits can be 0, 0 and 1. The values of the above indexes are only examples, and the Y indexes can also have other value methods.

[0268] The L' bits correspond to the L' indexes, and the L' indexes are intersections of the Y indexes and the X indexes.

[0269] For example, assuming that the X indexes are 3, 4, 10 and 11, the second device can obtain the L' indexes as 3, 4 and 11 by taking the intersections of the Y indexes and the X indexes, and thus determine the fourth bit string as {001}.

[0270] In some possible implementations, S367 includes: determining, by the first device, the X bits and the X indexes according to the sliding window processing of the first bit string, X being a positive integer; and determining, by the first device, the second bit string according to the L indexes. The L indexes are the intersection of the X indexes and the Y indexes. The Y indexes can be determined by the first device according to the second information.

[0271] The x th bit in the X bits is the same as the value of the consecutive P bits in the K bits, and the x th index in the X indexes corresponds to the x th bit. x is a positive integer less than or equal to X.

[0272] For example, assuming that the first bit string obtained by the first device is {01000011011110} and P is 3, the first device slides the sliding window from left to right bit by bit. The first device obtains 0 at the third bit, denoted as <3, 0>; obtains 0 at the fourth bit, denoted as <4, 0>; obtains 1 at the tenth bit, denoted as <10, 1>; and obtains 1 at the eleventh bit, denoted as <11, 1>. The X indexes can be 3, 4, 10, and 11, and the X bits can be 0, 0, 1, and 1. The values of the indexes are only examples, and the X indexes can have other value methods.

[0273] The L bits correspond to the L indexes, and the L indexes are the intersection of the Y indexes and the X indexes.

[0274] For example, assuming that the Y indexes are 3, 4, and 11, the first device can obtain the L indexes as 3, 4, and 11 by taking the intersection of the Y indexes and the X indexes, and thus determine the second bit string as {001}.

[0275] According to the above description of the first device and the second device, it can be seen that, although the first bit string obtained by the first device (for example, {01000011011110}) is different from the third bit string obtained by the second device (for example, {01000011001110}), the first device and the second device can generate the same bit string (for example, {001}) to generate the key through the interaction of the indexes (that is, the interaction of the second information and the third information).

[0276] Based on the above scheme, the Y indexes indicated by the second information can be used to filter the X bits obtained by the first device using the sliding window, so as to obtain the same bit string as the opposite side (for example, the second device) of the first device. The above scheme enables the two communication parties to generate the key according to the same bit string through the interaction of the indexes, thereby further improving the consistency of the key.

[0277] The device embodiments corresponding to the method embodiments of the present application are described below. The device is briefly introduced below, and the specific implementation steps and details of the scheme can be referred to the method embodiments described above.

[0278] To implement the functions in the methods provided in the present application, the communication device can include hardware structures and / or software modules to implement the functions in the form of hardware structures, software modules, or hardware structures plus software modules. Whether a certain function is implemented in the form of hardware structure, software module, or hardware structure plus software module depends on specific application and design constraints of the technical solutions.

[0279] FIG. 9 is a schematic block diagram of a communication device 1000 according to an embodiment of the present application. The communication device 1000 includes a processor 1010 and a communication interface 1020. Optionally, the processor 1010 and the communication interface 1020 can be connected to each other through a bus. The communication device 1000 can be the first device or the second device.

[0280] Optionally, the communication device 1000 can further include a memory 1040. The memory 1040 includes, but is not limited to, a random access memory (RAM), a read-only memory (ROM), a cache, an erasable programmable read only memory (EPROM), a synchronous dynamic random access memory (SDRAM), a hard disk drive (HDD), a solid-state drive (SSD), or a compact disc read-only memory (CD-ROM). The memory 1040 is configured to store relevant instructions and / or data. The memory 1040 can be integrated with the processor 1010 or separately arranged.

[0281] The processor 1010 can include one or a combination of 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 GPU, an artificial intelligence processor (AI processor), or a neural processing unit (NPU). In the case where the processor 1010 is a CPU, the CPU can be a single-core CPU or a multi-core CPU. However, the present application is not limited thereto, and the processor 1010 can be one or more GPUs, and can also be one or more tensor processing units (TPUs). The processor 1010 can be a signal processor, a chip, or other integrated circuits that can implement the method of the present application, or a part of the foregoing processor, chip, or integrated circuit for processing functions. In addition, the communication interface 1020 can also be an input / output interface for input or output of signals or data, and can also be an input / output circuit.

[0282] Exemplarily, the communication apparatus 1000 is a first apparatus, and the processor 1010 is configured to perform the following operations: receiving a first reference signal, the first reference signal being used to determine a first phase; transmitting a second reference signal, the second reference signal being used to determine a second phase; receiving first information, the first information being used to indicate the second phase; and determining a first parameter, wherein the first parameter is a difference between the first phase and the second phase, and the first parameter is used to generate a first key.

[0283] Exemplarily, the communication apparatus 1000 is a second apparatus, and the processor 1010 is configured to perform the following operations: transmitting a first reference signal, the first reference signal being used to determine a first phase; receiving a second reference signal, the second reference signal being used to determine a second phase; and transmitting first information, the first information being used to indicate the second phase; wherein the first phase and the second phase are used to determine a first parameter, the first parameter being a difference between the first phase and the second phase, and the first parameter is used to generate a first key.

[0284] The foregoing merely is an exemplary description. The communication apparatus 1000 is responsible for performing the method or steps related to the first device or the second device in the foregoing method embodiments.

[0285] In a possible implementation, the communication interface 1020 can be a transceiver. The transceiver can include a transmitter configured to perform a transmitting operation and a receiver configured to perform a receiving operation. For example, the processor 1010 can be configured to control the transceiver to receive and / or transmit a signal.

[0286] In a possible implementation, the communication interface 1020 can also be a communication circuit, a pin, an input / output interface, a bus, or the like.

[0287] It should be noted that the communication apparatus 1000 can include a transmitter but not a receiver. Alternatively, the communication apparatus 1000 can include a receiver but not a transmitter. Specifically, whether the transmitter and the receiver are included in the communication apparatus 1000 can depend on whether the communication apparatus 1000 performs the transmitting operation and the receiving operation in the foregoing schemes.

[0288] The foregoing merely is an exemplary description. The specific content can be referred to the content shown in the foregoing method embodiments. The implementation of each operation in FIG. 9 can also correspond to the description of the corresponding method embodiment shown in FIG. 3.

[0289] For example, the communication apparatus 1000 can be configured to perform the scheme shown in FIG. 3.

[0290] Exemplarily, the communication apparatus 1000 is the first device, and the communication interface 1020 can be configured to receive the first reference signal and the like.

[0291] Exemplarily, the communication apparatus 1000 is the second device, and the communication interface 1020 can be configured to transmit the first reference signal and the like.

[0292] For other implementation manners, refer to the detailed description of the embodiments shown in FIG. 3. Here, no longer be described. It should be understood that the specific process of each component performing the foregoing corresponding process has been described in detail in the foregoing method embodiments. For brevity, no longer be described here.

[0293] FIG. 10 is a schematic block diagram of another communication apparatus 1100 according to an embodiment of the present application. The communication apparatus 1100 can be the first device or the second device, or a chip or a module of the first device or the second device, and is configured to implement the method related to the embodiments shown in FIG. 3. For details, refer to the related description in the foregoing method embodiments.

[0294] The communication apparatus 1100 includes a transceiver unit 1110 and a processing unit 1120. The transceiver unit 1110 is exemplarily described as follows.

[0295] The transceiver 1110 can include a transmitting unit and a receiving unit. The transmitting unit is configured to perform the transmitting action of the communication device, and the receiving unit is configured to perform the receiving action of the communication device. For ease of description, the transmitting unit and the receiving unit are combined into one transceiver in the embodiments of the present application. This is uniformly described herein, and will not be described below. The transceiver 1110 can implement the corresponding communication function. The transceiver 1110 can also be referred to as a communication interface or a communication module.

[0296] The communication device 1100 can include a transmitting unit and not include a receiving unit. Alternatively, the communication device 1100 can include a receiving unit and not include a transmitting unit. Specifically, whether the transmitting unit and the receiving unit are included in the communication device 1100 depends on whether the transmitting action and the receiving action are included in the above-mentioned schemes performed by the communication device 1100.

[0297] For example, the transceiver 1110 is configured to output the third information bits, etc. The processing unit 1120 is configured to perform the content related to processing, coordination, etc. of the communication device 1100.

[0298] For example, the transceiver 1110 is configured to obtain the third information bits, etc. The processing unit 1120 is configured to perform the content related to processing, coordination, etc. of the communication device 1100.

[0299] The above-mentioned content is only an exemplary description. The communication device 1100 will be responsible for performing the related methods or steps in the above-mentioned method embodiments.

[0300] Optionally, the communication device 1100 further includes a storage unit 1130 configured to store programs or codes for performing the above-mentioned methods. Alternatively, the storage unit 1130 can be configured to store instructions and / or data, and the processing unit 1120 can read the instructions and / or data in the storage unit 1130, so that the communication device 1100 implements the above-mentioned method embodiments. For example, the communication device 1100 can be configured to perform the scheme shown in FIG. 3.

[0301] For example, the transceiver 1110 can be configured to receive a first reference signal, the first reference signal being used to determine a first phase; the transceiver 1110 is further configured to transmit a second reference signal, the second reference signal being used to determine a second phase; the transceiver 1110 is further configured to receive first information, the first information being used to indicate the second phase; and the processing unit 1120 can be configured to determine a first parameter, wherein the first parameter is a difference between the first phase and the second phase, and the first parameter is used to generate a first key.

[0302] Exemplarily, the transceiver 1110 can be configured to transmit a first reference signal, the first reference signal being used to determine a first phase; the transceiver 1110 can also be configured to receive a second reference signal, the second reference signal being used to determine a second phase; the transceiver 1110 can also be configured to transmit first information, the first information being used to indicate the second phase; wherein the first phase and the second phase are used to determine a first parameter, the first parameter being a difference between the first phase and the second phase, and the first parameter is used to generate a first key.

[0303] For other implementation manners, refer to the detailed description of the embodiment shown in FIG. 3, which will not be repeated here. The specific process of each component performing the corresponding process has been described in the method embodiment, which will not be repeated here for brevity.

[0304] When the communication apparatus 1000 in FIG. 9 is a chip, the communication interface 1020 can be a transceiver, an input / output circuit or a communication interface of the chip. The processor 1010 can be an integrated processor on the chip, or a microprocessor, or an integrated circuit. The transmitting operation of the first device or the second device in the method embodiment can be understood as the output of the chip, and the receiving operation of the first device or the second device in the method embodiment can be understood as the input of the chip.

[0305] When the communication apparatus 1100 in FIG. 10 is a chip, the transceiver 1110 can be a transceiver, an input / output circuit or a communication interface of the chip. The processing unit 1120 can be an integrated processor on the chip, or a microprocessor, or an integrated circuit. The transmitting operation of the first device or the second device in the method embodiment can be understood as the output of the chip, and the receiving operation of the first device or the second device in the method embodiment can be understood as the input of the chip.

[0306] FIG. 11 is an exemplary block diagram of another communication apparatus 10 provided by an embodiment of the present application.

[0307] As shown in FIG. 11, exemplarily, the communication apparatus 10 can include a chip system 110, a memory 120, a bus 130, a power management module 140, or a transceiver 150, etc.

[0308] The chip system 110 can be an integrated circuit chip, having the processing capability of signals. In the implementation process, each step of the above method can be completed by the integrated logic circuit of hardware or the instruction in the form of software in the chip system 110.

[0309] By way of example and not limitation, the chip system 110 can include a circuit or chip responsible for processing of signals, such as a modem chip, also known as a baseband chip, or a system on chip (SoC) chip or system in package (SIP) chip containing a modem core.

[0310] Optionally, the chip system 110 can also be provided with a memory (e.g., a cache) for storing instructions and data. In some embodiments, the memory in the chip system 110 is a cache memory. The memory can hold instructions or data that the chip system 110 has just used or recycled. If the chip system 110 needs to use the instructions or data again, it can be directly called from the memory. This avoids repeated access and reduces the waiting time of the chip system 110, thus improving the efficiency of the system.

[0311] In some embodiments, the chip system 110 can include one or more interfaces. The interfaces can include an inter-integrated circuit (I2C) interface, an inter-integrated circuit sound (I2S) interface, a pulse code modulation (PCM) interface, a universal asynchronous receiver / transmitter (UART) interface, a mobile industry processor interface (MIPI), a general-purpose input / output (GPIO) interface, a subscriber identity module (SIM) interface, and / or a universal serial bus (USB) interface, etc.

[0312] The memory 120 can include a RAM and a ROM. The memory 120 can store computer-readable computer-executable code including instructions that, when executed, cause the processor to perform various functions described herein.

[0313] Optionally, the code can include instructions for implementing aspects of the present application, such as, for example, instructions for determining the first parameter. The code can be stored in a non-transitory computer-readable medium such as system memory or other type of memory. In some cases, the code can not be directly executable by the chip system 110 but can cause a computer (for example, when compiled and executed) to perform functions described herein. In some cases, the memory 120 can include a basic I / O system that can control basic hardware or software operations, such as interaction with peripheral components or devices.

[0314] Illustratively, the chip system 110 performs various functional applications and data processing of the communication device 10 by running instructions stored in the memory 120. For example, when the communication device 10 performs file transmission with other devices (which can also be terminals or network devices), the chip system 110 of the communication device 10 can invoke computer executable program code stored in the memory 120 to implement the communication method provided by the embodiments of the present application.

[0315] In addition, the memory 120 can be integrated in the above-mentioned chip system 110, or independent of the chip system 110.

[0316] Illustratively, the bus 130 can be a USB for supporting mutual communication between various parts in the communication device 10.

[0317] The power management module 140 is configured to receive charging input from a charger. Optionally, the power management module 140 can supply power to the communication device 10 (for example, a battery module of the communication device 10) while charging the communication device 10. As an example but not limitation, the power management module 140 can also supply power to devices other than the communication device 10.

[0318] The transceiver 150 can communicate bi-directionally with one or more antennas, wired or wireless links, for example, the transceiver 150 can represent a wireless transceiver and can communicate bi-directionally with another wireless transceiver. The transceiver 150 can also include a modem to modulate the packets and provide the modulated packets to the antennas for transmission, and to demodulate packets received from the antennas. Where the transceiver 150 includes a modem, the modem can be implemented as a baseband processor. The transceiver 150 can include a transmitter and a receiver, the transmitter implements the function of transmitting information, and the receiver implements the function of receiving information.

[0319] In some cases, the wireless device can include a single antenna. However, in some cases the device can have more than one antenna, such as antenna 1 and antenna 2, as shown in FIG. 11, which can be capable of concurrently transmitting or receiving multiple wireless transmissions. Illustratively, antenna 1 and antenna 2 are used to transmit and receive electromagnetic wave signals. Each antenna in the communication apparatus 10 can be used to cover a single or multiple communication bands. Different antennas can also be multiplexed to improve the utilization of the antennas. For example: antenna 1 can be multiplexed as a diversity antenna for a wireless local area network. In some other embodiments, the antennas can be used in combination with a tuning switch. The communication apparatus 10 can transmit files to other devices through the wireless communication function.

[0320] In one design, the communication apparatus 10 can correspond to the first device in the above method embodiments.

[0321] The apparatus 10 can implement the steps or procedures performed by the first device in the above method embodiments, where the transceiver 150 can be used to perform the transceiving related operations of the first device in the above method embodiments, e.g., performing step S230 in the above method embodiments; the chip system 110 can be used to perform the processing related operations of the first device in the above method embodiments, e.g., performing step S210 in the above method embodiments.

[0322] In another design, the communication apparatus 10 can correspond to the second device in the above method embodiments.

[0323] The apparatus 10 can implement the steps or procedures performed by the second device in the above method embodiments, where the transceiver 150 can be used to perform the transceiving related operations of the second device in the above method embodiments, e.g., performing step S230 in the above method embodiments; the chip system 110 can be used to perform the processing related operations of the second device in the above method embodiments, e.g., performing step S250 in the above method embodiments.

[0324] In some possible implementations, the communication apparatus 10 can be a terminal device. Illustratively, the communication apparatus 10 can include modules such as a short-range communication module 164, a sensor 161, a display 162, or a camera 163, as shown in FIG. 11.

[0325] The short-range communication module 164 can include modules that support short-range communication, such as WiFi, Bluetooth, etc.

[0326] Illustratively, the sensor 161 can include a pressure sensor, a gyroscope sensor, a barometric pressure sensor, a magnetic sensor, an acceleration sensor, a distance sensor, a proximity light sensor, a fingerprint sensor, a temperature sensor, a touch sensor, an ambient light sensor, a bone conduction sensor, etc.

[0327] Exemplarily, the display 162 is configured to display images, videos, etc. The display includes a display panel. The display panel can adopt a liquid crystal display (LCD), an organic light-emitting diode (OLED), an active-matrix organic light-emitting diode (AMOLED), a flex light-emitting diode (FLED), a mini light-emitting diode (LED), a Micro LED, a Micro OLED, a quantum dot light emitting diode (QLED), etc. For example, in the embodiments of the present application, the display can be configured to display interfaces required to be displayed by the communication apparatus 10. Exemplarily, the communication apparatus 10 can realize the display function through a GPU, the display, an application processor, etc. The GPU is a microprocessor for image processing, connected with the display and the application processor. The GPU is configured to perform mathematical and geometric calculations for graphics rendering. The chip system 110 can include one or more GPUs, which execute program instructions to generate or change display information.

[0328] Exemplarily, the camera 163 is configured to acquire images, videos, etc.

[0329] It can be understood that the structure shown in FIG. 11 does not constitute a specific limitation on the communication apparatus 10, and the specific structure of the terminal device and / or the network device can refer to that shown in FIG. 11. In some embodiments, the communication apparatus 10 can also include more or fewer components than those shown in FIG. 11, or combine certain components, or split certain components, or different component arrangements, etc. Alternatively, some components shown in FIG. 11 can be implemented in hardware, software, or a combination of software and hardware, and the terminal device and / or the network device can increase or reduce components on the basis of the structure given in FIG. 11.

[0330] FIG. 12 is a schematic block diagram of another communication apparatus 20 provided by the embodiments of the present application.

[0331] As shown in FIG. 12, the communication apparatus 20 can include a baseband unit 210, which can communicate with an external device through a cellular radio frequency (RF) transceiver 220 (e.g., if the communication apparatus 20 is a terminal device, the baseband unit 210 can communicate with a network device or a terminal device through the cellular RF transceiver 220; also e.g., if the communication apparatus 20 is a network device, the baseband unit 210 can communicate with a terminal device and / or a core network device through the cellular RF transceiver 220).

[0332] The baseband unit 210 can include a computer readable medium / memory. The baseband unit 210 can be responsible for general processing, including the execution of software stored on the computer readable medium / memory. The software, when executed by the baseband unit 304, causes the baseband unit 210 to perform the various functions described supra. The computer readable medium / memory can also be used for storing data that is manipulated by the baseband unit 210 when executing software.

[0333] The baseband unit 210 further includes a receiving unit 201, a managing unit 202 and a sending unit 203. The managing unit 202 includes one or more sub-units shown in FIG. 12 (e.g., a first parameter determining sub-unit and a key generating sub-unit, wherein the first parameter determining sub-unit can be used for the operation of determining the first parameter in the above method embodiments, and the key generating sub-unit can be used for the operation of generating the key (e.g., the first key or the second key) in the above method embodiments). The units within the managing unit 201 can be stored in the computer readable medium / memory and / or configured as hardware within the baseband unit 210. The receiving unit 201 and the sending unit 203 can be referred to as a transceiving unit.

[0334] When the communication apparatus 20 is configured to implement the functions of the first device in the above method embodiments, the receiving unit 201 is configured to perform the receiving steps of the first device, the sending unit 203 is configured to perform the sending steps of the first device, and the managing unit 202 is configured to perform the processing steps of the first device.

[0335] For example, when the communication apparatus 20 is configured to implement the functions of the first device in the above method embodiments, the receiving unit 201 is configured to receive a first reference signal, the first reference signal being used for determining a first phase; the receiving unit 201 is configured to send a second reference signal, the second reference signal being used for determining a second phase; the receiving unit 201 is configured to receive first information, the first information being used for indicating the second phase; and the managing unit 202 is configured to determine a first parameter, wherein the first parameter is a difference between the first phase and the second phase, and the first parameter is used for generating a first key.

[0336] For example, when the device 20 is used to perform the method in FIG3, the receiving unit 201 can be used to perform the step of receiving information in the method; the management unit 202 can be used to perform the processing step in the method; and the sending unit 203 can be used to perform the step of sending information in the method.

[0337] When the communication device 20 is used to implement the function of the second device in the above method embodiments, the receiving unit 201 is used to execute the receiving step of the second device, the sending unit 203 is used to execute the sending step of the second device, and the management unit 202 is used to execute the processing step of the second device.

[0338] For example, when the communication device 20 is used to implement the function of the second device in the above method embodiments, the sending unit 203 is used to send a first reference signal, which is used to determine a first phase; the receiving unit 201 receives a second reference signal, which is used to determine a second phase; the sending unit 203 sends first information, which is used to indicate the second phase; wherein, the first phase and the second phase are used to determine a first parameter, which is the difference between the first phase and the second phase, and the first parameter is used to generate a first key.

[0339] For example, when the device 20 is used to perform the method in FIG3, the receiving unit 201 can be used to perform the step of receiving information in the method; the management unit 202 can be used to perform the processing step in the method; and the sending unit 203 can be used to perform the step of sending information in the method.

[0340] For a more detailed description of the receiving unit 201, management unit 202 and sending unit 203, please refer to the relevant descriptions in the above method embodiments, which will not be repeated here.

[0341] This application also provides a chip, including a processor, for calling and executing instructions stored in a memory, causing a communication device on which the chip is mounted to perform the methods described in the examples above.

[0342] This application also provides another chip, including: an input interface, an output interface, and a processor, wherein the input interface, the output interface, and the processor are connected via an internal connection path, and the processor is used to execute code in a memory. When the code is executed, the processor is used to perform the methods in the examples described above. Optionally, the chip further includes a memory for storing computer programs or code.

[0343] This application also provides a processor for coupling with a memory for performing the methods and functions of the communication apparatus involved in any of the above embodiments.

[0344] In another embodiment of the present application, a computer program product containing computer programs or instructions is provided, when the computer program product is run on a computer, the method of the foregoing embodiments is implemented.

[0345] The present application also provides a computer program, when the computer program is run on a computer, the method of the foregoing embodiments is implemented.

[0346] In another embodiment of the present application, a computer readable storage medium is provided, the computer readable storage medium stores a computer program, when the computer program is executed by a computer, the method of the foregoing embodiments is implemented.

[0347] The present application also provides a communication system, the communication system comprises a first device and a second device. The first device and the second device are respectively configured to perform the method performed by the first device and the second device in the foregoing embodiments.

[0348] Those skilled in the art can understand that the units and algorithm steps of the examples described in combination with the embodiments disclosed herein can be realized by electronic hardware or a combination of computer software and electronic hardware. Whether the functions are performed in hardware or software mode depends on the specific application and design constraints of the technical solution. The skilled person can use different methods to implement the described functions for each specific application, but such implementation should not be considered beyond the scope of the present application.

[0349] Those skilled in the art can clearly understand that, for the convenience and brevity of the description, the specific working process of the system, device and unit described above can refer to the corresponding process in the foregoing method embodiments, which will not be repeated here.

[0350] In several embodiments provided by the present application, it should be understood that the disclosed system, device and method can be implemented by other ways. For example, the device embodiments described above are only schematic, for example, the division of the units is only a logical function division, and there can be another division manner in actual implementation, for example, a plurality of units or components can be combined or integrated into another system, or some features can be ignored or not executed. In addition, the coupling or direct coupling or communication connection between the units shown or discussed can be indirect coupling or communication connection through some interface, device or unit, and can be electrical, mechanical or other forms.

[0351] The units described as separate components can or can not be physically separate, and the components shown as units can or can not be physical units, that is, they can be located in one place, or they can be distributed on a plurality of network units. Part or all of the units can be selected according to actual needs to achieve the purpose of the embodiment scheme.

[0352] In addition, each functional unit in each embodiment of the present application can be integrated in one processing unit, or each unit can exist physically, or two or more units can be integrated in one unit.

[0353] If the functions are realized in the form of software functional units and sold or used as independent products, they can be stored in a computer readable storage medium. Based on this understanding, the technical solutions of the present application or the parts of the technical solutions that essentially contribute to the prior art or the parts of the technical solutions can be embodied in the form of a software product. The computer software product is stored in a storage medium and includes a plurality of instructions for causing a computer device (which can be a personal computer, a server, or a network device, etc.) to execute all or part of the steps of the method described in each embodiment of the present application. The aforementioned storage medium includes a U disk, a mobile hard disk, a ROM, a RAM, a magnetic disk or an optical disk, and various media that can store program codes.

[0354] The above is only a specific implementation of the present application, but the protection scope of the present 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 present application, which should be covered within the protection scope of the present application. Therefore, the protection scope of the present application should be subject to the protection scope of the claims.

Claims

1. A communication method characterized by comprising: The method comprises: receiving a first reference signal, the first reference signal being used to determine a first phase; sending a second reference signal, the second reference signal being used to determine a second phase; receiving first information, the first information being used to indicate the second phase; determining a first parameter, wherein the first parameter is a difference between the first phase and the second phase, and the first parameter is used to generate a first key.

2. The method of claim 1, wherein, The method further comprises: receiving a third reference signal, the third reference signal being used to determine a third phase; generating the first key according to the first parameter and the third phase.

3. The method of claim 2, wherein, The generating the first key according to the first parameter and the third phase comprises: determining a second parameter, the second parameter being a sum of the third phase and the first parameter, or the second parameter being a difference between the third phase and the first parameter; generating the first key according to the second parameter.

4. The method of claim 3, wherein, The generating the first key according to the second parameter comprises: quantizing the second parameter to obtain a first bit string, wherein the first bit string comprises K bits, and K is a positive integer; processing the first bit string according to a sliding window with a length of P to determine a second bit string, P is an integer greater than 1, wherein the second bit string comprises L bits, L is a positive integer, and an m th< bit in the L bits is the same as a value of continuous P bits in the K bits, m is a positive integer less than or equal to L; determining the first key according to the second bit string.

5. The method of claim 4, wherein, The method further comprises: receiving second information, the second information being used to indicate Y indexes, Y is a positive integer; wherein the processing the first bit string according to the sliding window with the length of P to determine the second bit string comprises: processing the first bit string according to the sliding window to obtain X bits and X indexes, X is a positive integer, wherein an x th< bit in the X bits is the same as a value of continuous P bits in the K bits, an x th< index in the X indexes corresponds to the x th< bit, and x is a positive integer less than or equal to X; determining the second bit string according to L indexes, wherein the L bits correspond to the L indexes, and the L indexes are an intersection of the Y indexes and the X indexes.

6. The method according to any one of claims 1 to 5, wherein: the first phase is a difference between a receiving initial phase of a first antenna and a receiving initial phase of a second antenna, and the second phase is a difference between a sending initial phase of the first antenna and a sending initial phase of the second antenna, the first key is used to encrypt information sent through the first antenna and information sent through the second antenna.

7. The method according to any one of claims 1 to 6, characterized in that, said first parameter Δθ 12 satisfies: Δθ 12 = (θ T1 - θ T2 ) - (θ R1 - θ R2 ) wherein θ T1 is a transmission initial phase of the first antenna, θ T2 is a transmission initial phase of the second antenna, θ R1 is a reception initial phase of the first antenna, θ R2 is a reception initial phase of the second antenna, wherein the first key is used to encrypt information transmitted through the first antenna, and the first key is used to encrypt information transmitted through the second antenna.

8. A communication method characterized by comprising: The method comprises: sending a first reference signal, the first reference signal being used to determine a first phase; receiving a second reference signal, the second reference signal being used to determine a second phase; sending first information, the first information being used to indicate the second phase; wherein, The first phase and the second phase are used to determine a first parameter, the first parameter being a difference between the first phase and the second phase, the first parameter being used to generate a first key.

9. The method of claim 8, wherein, The method further comprises: sending a third reference signal, the third reference signal being used to determine a third phase, the third phase and the first parameter being used to generate the first key.

10. The method of claim 9, wherein, The first parameter and the third phase are used to determine a second parameter, the second parameter being a sum of the third phase and the first parameter, or the second parameter being a difference between the third phase and the first parameter; wherein, The second parameter is used to generate the first key.

11. The method according to any one of claims 8 to 10, characterized in that, The method further comprises: receiving a fourth reference signal, the fourth reference signal being used to determine a fourth phase; quantizing the fourth phase to obtain a third bit string, wherein the third bit string comprises K' bits, K' being a positive integer; processing the third bit string according to a sliding window with a length of P to determine a fourth bit string, P being an integer greater than 1, wherein the fourth bit string comprises L' bits, L' being a positive integer, an m'th bit in the L' bits being the same as a value of a continuous P bits in the K' bits, m' being a positive integer less than or equal to L'; determining a second key according to the fourth bit string.

12. The method of claim 11, wherein, The method further comprises: receiving third information, the third information being used to indicate X indexes, X being a positive integer; wherein the processing the third bit string according to the sliding window with the length of P to determine the fourth bit string comprises: processing the third bit string according to the sliding window to obtain Y bits and Y indexes, Y being a positive integer, wherein an y'th bit in the Y bits is the same as a value of a continuous P bits in the K' bits, an y'th index in the Y indexes corresponding to the y'th bit, y being a positive integer less than or equal to Y; determining the fourth bit string according to L' indexes, wherein the L' bits correspond to the L' indexes, the L' indexes being an intersection of the Y indexes and the X indexes.

13. The method of any one of claims 8 to 12, wherein: the first phase is a difference between a receive initial phase of a first antenna and a receive initial phase of a second antenna, the second phase is a difference between a transmit initial phase of the first antenna and a transmit initial phase of the second antenna, the first key is used to encrypt information transmitted through the first antenna, the first key is used to encrypt information transmitted through the second antenna.

14. The method according to any one of claims 8 to 13, characterized in that, the first parameter Δθ 12 satisfies: Δθ 12 = (θ T1 - θ T2 ) - (θ R1 - θ R2 ); wherein θ T1 is a transmission initial phase of the first antenna, θ T2 is a transmission initial phase of the second antenna, θ R1 is a reception initial phase of the first antenna, θ R2 is a reception initial phase of the second antenna, wherein the first key is used to encrypt information transmitted through the first antenna, and the first key is used to encrypt information transmitted through the second antenna.

15. A communications device, characterized by comprising at least one module or at least one unit, the at least one module or the at least one unit being configured to perform the method of any one of claims 1 to 14.

16. A communications device, characterized by comprising: at least one processor configured to cause the method of any one of claims 1 to 14 to be performed by executing computer programs or instructions.

17. The communication apparatus according to claim 16, wherein The communication apparatus further comprises a memory configured to store the computer programs or the instructions. The communication apparatus further comprises a memory configured to store the computer programs or the instructions.

18. A computer-readable storage medium, characterized in that, The computer readable storage medium has stored thereon computer programs or instructions, which, when executed, cause the method of any one of claims 1 to 14 to be performed.

19. A computer program product, characterised in that, A computer program product comprising computer programs or instructions, which, when executed, implement the method of any one of claims 1 to 14.

20. A communications device, characterized by A communication device comprising a processor for causing the communication device to perform the method of any one of claims 1 to 14 by executing a computer program stored in a memory and / or by logic circuitry.

21. The communication apparatus according to claim 20, wherein, Further comprising a communication interface for the communication device to communicate with other devices.

22. The communication apparatus according to claim 20 or 21, wherein, Further comprising the memory.

23. The communication apparatus according to any one of claims 20-22, wherein, The communication device is a chip or a chip system. The communication device is a chip or a chip system.

Citation Information

Patent Citations

  • Physical layer key generation method based on channel state information

    CN112788599A

  • Physical layer key generating method for wireless secure communication

    CN113727340A

  • Wireless channel key generation method and device, equipment and storage medium

    CN114390519A

  • Channel phase correction method and related device

    CN115515153A

  • Methods establishing a symmetric encryption key and devices thereof

    US20100313025A1