[go: up one dir, main page]

CN116938460A - Physical layer key generation method, device and equipment - Google Patents

Physical layer key generation method, device and equipment Download PDF

Info

Publication number
CN116938460A
CN116938460A CN202210342231.5A CN202210342231A CN116938460A CN 116938460 A CN116938460 A CN 116938460A CN 202210342231 A CN202210342231 A CN 202210342231A CN 116938460 A CN116938460 A CN 116938460A
Authority
CN
China
Prior art keywords
sequence
communication device
signal
constellation
indication
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN202210342231.5A
Other languages
Chinese (zh)
Inventor
孙黎
刘鹏
陈磊
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Huawei Technologies Co Ltd
Original Assignee
Huawei Technologies Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Huawei Technologies Co Ltd filed Critical Huawei Technologies Co Ltd
Priority to CN202210342231.5A priority Critical patent/CN116938460A/en
Publication of CN116938460A publication Critical patent/CN116938460A/en
Pending legal-status Critical Current

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L9/00Cryptographic mechanisms or cryptographic arrangements for secret or secure communications; Network security protocols
    • H04L9/06Cryptographic mechanisms or cryptographic arrangements for secret or secure communications; Network security protocols the encryption apparatus using shift registers or memories for block-wise or stream coding, e.g. DES systems or RC4; Hash functions; Pseudorandom sequence generators
    • H04L9/065Encryption by serially and continuously modifying data stream elements, e.g. stream cipher systems, RC4, SEAL or A5/3
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L9/00Cryptographic mechanisms or cryptographic arrangements for secret or secure communications; Network security protocols
    • H04L9/08Key distribution or management, e.g. generation, sharing or updating, of cryptographic keys or passwords
    • H04L9/0861Generation of secret information including derivation or calculation of cryptographic keys or passwords
    • H04L9/0869Generation of secret information including derivation or calculation of cryptographic keys or passwords involving random numbers or seeds
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L9/00Cryptographic mechanisms or cryptographic arrangements for secret or secure communications; Network security protocols
    • H04L9/08Key distribution or management, e.g. generation, sharing or updating, of cryptographic keys or passwords
    • H04L9/0894Escrow, recovery or storing of secret information, e.g. secret key escrow or cryptographic key storage
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L2209/00Additional information or applications relating to cryptographic mechanisms or cryptographic arrangements for secret or secure communication H04L9/00
    • H04L2209/08Randomization, e.g. dummy operations or using noise

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Security & Cryptography (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Mobile Radio Communication Systems (AREA)

Abstract

A physical layer key generation method, device and equipment are used for reducing the overhead in the key generation process. The method comprises the following steps: the first communication device may receive a first indication from the second communication device indicating the first sequence after transmitting the first pilot signal to the second communication device. The first communication device, upon receiving the second pilot signal from the second communication device, may generate a second sequence under the triggering of the second pilot signal. The first communication device may generate a first key for communication between the first communication device and the second communication device, the first key comprising the second sequence and all symbols in the first sequence. In this way, the second communication device only needs to send the first indication for indicating the first sequence to the first communication device, the first communication device can determine the first key, and an information reconciliation process is not needed between the first communication device and the second communication device, so that the cost in the key generation process is reduced.

Description

一种物理层密钥生成方法、装置及设备A physical layer key generation method, device and equipment

技术领域Technical Field

本申请涉及通信技术领域,尤其涉及一种物理层密钥生成方法、装置及设备。The present application relates to the field of communication technology, and in particular to a method, device and equipment for generating a physical layer key.

背景技术Background Art

为了提高通信安全,在通信过程中,通信双方可使用密钥对通信内容进行加密。In order to improve communication security, during the communication process, the communicating parties can use keys to encrypt the communication content.

一种较为通用的密钥生成技术为物理层密钥生成技术。物理层密钥生成技术可根据物理层的无线信道特征来生成密钥。具体的,通信双方可通过发送导频并进行信道估计的方式对无线通信信道进行探测;在对探测信道的随机性进行提取并量化后,通信双方可分别得到一个比特序列;然后,通信双方可通过协商纠正各自获得的比特序列中不一致的信息比特,从而得到一致的密钥。协商的具体实现方式有多种,例如,一种典型的方式是:通信双方需将各自得到的比特序列进行分段,针对每段比特序列生成校验比特,并将校验比特发送给对方,以便对方根据该校验比特确定对应的比特序列是否一致。A more common key generation technology is the physical layer key generation technology. The physical layer key generation technology can generate keys based on the wireless channel characteristics of the physical layer. Specifically, the communicating parties can detect the wireless communication channel by sending pilot signals and performing channel estimation; after extracting and quantifying the randomness of the detection channel, the communicating parties can respectively obtain a bit sequence; then, the communicating parties can correct the inconsistent information bits in the bit sequences obtained by each party through negotiation, thereby obtaining a consistent key. There are many specific implementation methods for negotiation. For example, a typical method is: the communicating parties need to segment the bit sequences obtained by each party, generate check bits for each bit sequence, and send the check bits to the other party so that the other party can determine whether the corresponding bit sequences are consistent based on the check bits.

目前的物理层密钥生成技术中,为了生成一致的密钥,通信双方需进行多次交互,开销较大。In the current physical layer key generation technology, in order to generate a consistent key, the communicating parties need to interact multiple times, which is very costly.

发明内容Summary of the invention

本申请提供了一种物理层密钥生成方法、装置及设备,用以降低密钥生成过程中的开销。The present application provides a physical layer key generation method, apparatus and device to reduce the overhead in the key generation process.

第一方面,本申请实施例提供了一种物理层密钥生成方法。该方法包括:第一通信设备,在向第二通信设备发送第一导频信号后,可接收来自第二通信设备的用于指示第一序列的第一指示;其中,第一导频信号可用于触发第二通信设备生成第一序列。第一通信设备在接收来自第二通信设备的第二导频信号后,可生成第二序列;其中,第二导频信号可用于触发第一通信设备生成第二序列。然后第一通信设备可生成第一密钥;第一密钥包括第二序列中的所有符号和第一序列中的所有符号,第一密钥用于第一通信设备与第二通信设备之间的通信。In a first aspect, an embodiment of the present application provides a method for generating a physical layer key. The method includes: a first communication device, after sending a first pilot signal to a second communication device, can receive a first indication from the second communication device for indicating a first sequence; wherein the first pilot signal can be used to trigger the second communication device to generate the first sequence. After receiving a second pilot signal from the second communication device, the first communication device can generate a second sequence; wherein the second pilot signal can be used to trigger the first communication device to generate a second sequence. Then the first communication device can generate a first key; the first key includes all symbols in the second sequence and all symbols in the first sequence, and the first key is used for communication between the first communication device and the second communication device.

通过该方法,第一通信设备和第二通信设备分别生成第二序列和第一序列;第二通信设备向第一通信设备发送用于指示第一序列的第一指示之后,第一通信设备即可根据第一序列和自身生成的第二序列确定出第一密钥;这样,第一通信设备和第二通信设备无需进行信息调和过程,也就是说,第一通信设备和第二通信设备之间无需进行多次协商来生成一致的密钥,从而可以降低密钥生成过程中的开销。Through this method, the first communication device and the second communication device generate a second sequence and a first sequence respectively; after the second communication device sends a first indication for indicating the first sequence to the first communication device, the first communication device can determine the first key according to the first sequence and the second sequence generated by itself; in this way, the first communication device and the second communication device do not need to perform an information reconciliation process, that is, the first communication device and the second communication device do not need to perform multiple negotiations to generate a consistent key, thereby reducing the overhead in the key generation process.

在一种可能的设计中,第一通信设备可通过以下步骤生成第二序列:第一通信设备在确定第二导频信号所对应的频域信道系数之后,对频域信道系数进行快速傅里叶反变换,得到信道响应函数;然后,第一通信设备对信道响应函数中小于或等于第一阈值的抽头系数进行量化,得到第二序列。In one possible design, the first communication device may generate a second sequence through the following steps: after determining the frequency domain channel coefficient corresponding to the second pilot signal, the first communication device performs an inverse fast Fourier transform on the frequency domain channel coefficient to obtain a channel response function; then, the first communication device quantizes the tap coefficients in the channel response function that are less than or equal to a first threshold to obtain a second sequence.

由于实际无线环境中的散射体簇是有限的,因此,在信道响应函数中,只有少数样本对应于信道抽头系数,其他大部分样本都是随机噪声。随机噪声这部分样本可用来生成本地密钥序列;换句话说,随机噪声可作为生成密钥的随机熵源。一般情况下,随机噪声的强度低于信道的强度。通过该设计,第一通信设备和第二通信设备可根据随机噪声的样本生成本地密钥序列;相对于仅根据具有相关性的信道生成序列,该设计得到的样本数较多,生成的序列中包含的符号数也较多,从而可提高密钥生成速率,并且可保证密钥的随机性,进而可提高通信的安全性。Since the number of scatterer clusters in an actual wireless environment is limited, only a few samples in the channel response function correspond to the channel tap coefficients, and most of the other samples are random noise. The random noise samples can be used to generate a local key sequence; in other words, the random noise can be used as a random entropy source for generating keys. In general, the intensity of random noise is lower than the intensity of the channel. With this design, the first communication device and the second communication device can generate a local key sequence based on samples of random noise; compared with generating a sequence based only on a correlated channel, this design obtains more samples and contains more symbols in the generated sequence, thereby increasing the key generation rate and ensuring the randomness of the key, thereby improving the security of communication.

在一种可能的设计中,在生成第二序列之后,第一通信设备还可向第二通信设备发送用于指示第二序列的第二指示。这样,第二通信设备也可以生成第一密钥。In a possible design, after generating the second sequence, the first communication device may also send a second indication for indicating the second sequence to the second communication device. In this way, the second communication device may also generate the first key.

通过该设计,第一通信设备和第二通信设备分别生成组成密钥的一部分序列,再将本端生成的这部分序列通知给对端。这样,第一通信设备和第二通信设备只需要将本端生成的这部分序列通知给对端即可,无需进行信息调和过程,也就是说,第一通信设备和第二通信设备之间无需进行多次协商来生成一致的密钥,从而可以节省开销。Through this design, the first communication device and the second communication device respectively generate a part of the sequence constituting the key, and then notify the other end of the part of the sequence generated by the local end. In this way, the first communication device and the second communication device only need to notify the other end of the part of the sequence generated by the local end, and there is no need to perform the information reconciliation process. In other words, the first communication device and the second communication device do not need to perform multiple negotiations to generate a consistent key, thereby saving overhead.

另外,在该设计中,第一通信设备和第二通信设备分别生成组成密钥的一部分序列,再将本端生成的这部分序列通知给对端。第一通信设备和第二通信设备将二者生成的序列的符号进行组合,即可得到密钥。通过该设计,密钥的一致性是由第一通信设备和第二通信设备之间的传输可靠性(例如,比特出错概率(bit error ratio,BER))来决定的;相对于通过协商来保证一致性,该设计可提高密钥的一致性。In addition, in this design, the first communication device and the second communication device respectively generate a part of the sequence constituting the key, and then notify the other end of the part of the sequence generated by the local end. The first communication device and the second communication device combine the symbols of the sequences generated by the two to obtain the key. Through this design, the consistency of the key is determined by the transmission reliability (for example, bit error ratio (BER)) between the first communication device and the second communication device; compared with ensuring consistency through negotiation, this design can improve the consistency of the key.

并且,通过该设计生成密钥时,不需要第一通信设备到第二通信设备的链路与第二通信设备到第一通信设备的链路之间满足互易或近似互易性的条件。因此,该设计可降低对器件和系统实现成本的要求,易于实现。Furthermore, when generating a key through this design, it is not necessary for the link from the first communication device to the second communication device and the link from the second communication device to the first communication device to meet the reciprocity or near reciprocity condition. Therefore, this design can reduce the requirements for the cost of device and system implementation and is easy to implement.

在一种可能的设计中,在向第二通信设备发送第二指示之前,第一通信设备还可对第二序列进行编码调制,得到第三序列;并根据星座旋转后的第三序列的信号星座图和第一人工噪声信号,生成第二指示。其中,第三序列中的任一符号为复数。In one possible design, before sending the second indication to the second communication device, the first communication device may further code-modulate the second sequence to obtain a third sequence, and generate the second indication according to the signal constellation diagram of the third sequence after constellation rotation and the first artificial noise signal, wherein any symbol in the third sequence is a complex number.

通过该设计,第一通信设备可对第三序列的信号星座图进行星座旋转,并添加人工噪声,从而增加第一通信设备和第二通信设备之外的其他通信设备获得该序列的难度,进而可提高通信的安全性。并且,采用该方法,无需进行信息调和以及隐私放大过程,可提高密钥生成速率。Through this design, the first communication device can perform constellation rotation on the signal constellation diagram of the third sequence and add artificial noise, thereby increasing the difficulty for other communication devices other than the first communication device and the second communication device to obtain the sequence, thereby improving the security of communication. In addition, by adopting this method, there is no need to perform information reconciliation and privacy amplification processes, and the key generation rate can be improved.

在一种可能的设计中,第一通信设备可通过如下步骤来根据星座旋转后的第三序列的信号星座图和第一人工噪声信号,生成第二指示:第一通信设备将第三序列的信号星座图旋转第一角度,旋转后的第三序列的信号星座图中任意两个星座点的实部和虚部均不相同;然后,第一通信设备可生成第二指示;其中,第二指示包括至少一个第一信号,至少一个第一信号的实部与旋转后的第三序列的信号星座图中的星座点一一对应;与第一星座点对应的第一信号的实部为第一星座点的实部,第一星座点为旋转后的第三序列的信号星座图中的任一星座点;任一第一信号的虚部为与任一第一信号对应的第一人工噪声信号。该设计提供了一种根据星座旋转后的第三序列的信号星座图和第一人工噪声信号生成第二指示的方法,易于实现。In a possible design, the first communication device can generate a second indication according to the signal constellation diagram of the third sequence after constellation rotation and the first artificial noise signal through the following steps: the first communication device rotates the signal constellation diagram of the third sequence by a first angle, and the real parts and imaginary parts of any two constellation points in the signal constellation diagram of the third sequence after rotation are different; then, the first communication device can generate a second indication; wherein the second indication includes at least one first signal, and the real part of at least one first signal corresponds one-to-one to the constellation point in the signal constellation diagram of the third sequence after rotation; the real part of the first signal corresponding to the first constellation point is the real part of the first constellation point, and the first constellation point is any constellation point in the signal constellation diagram of the third sequence after rotation; the imaginary part of any first signal is the first artificial noise signal corresponding to any first signal. This design provides a method for generating a second indication according to the signal constellation diagram of the third sequence after constellation rotation and the first artificial noise signal, which is easy to implement.

在一种可能的设计中,第一角度可为使得第二通信设备的平均误符号率最小的角度。通过该设计,第一通信设备通过第一角度对第三序列的信号星座图进行旋转,可使得第二通信设备的平均误符号率最小,从而可提高第二通信设备接收用于指示第二序列的指示的准确性,进而可降低密钥不一致率。In a possible design, the first angle may be an angle that minimizes the average symbol error rate of the second communication device. With this design, the first communication device rotates the signal constellation diagram of the third sequence by the first angle, which can minimize the average symbol error rate of the second communication device, thereby improving the accuracy of the second communication device receiving the indication for indicating the second sequence, and further reducing the key inconsistency rate.

在一种可能的设计中,第一指示包括至少一个第二信号,在接收来自第二通信设备的第一指示之后,第一通信设备可对至少一个第二信号进行滤波,得到至少一个第三信号;其中,至少一个第三信号是根据星座旋转后的第四序列的信号星座图和第二人工噪声信号生成的,第四序列为对第一序列进行编码调制后得到的序列,第四序列中的任一符号为复数;然后,第一通信设备可根据至少一个第三信号,确定第一序列。In one possible design, the first indication includes at least one second signal. After receiving the first indication from the second communication device, the first communication device may filter the at least one second signal to obtain at least one third signal; wherein, the at least one third signal is generated based on the signal constellation diagram of a fourth sequence after constellation rotation and a second artificial noise signal, the fourth sequence is a sequence obtained by encoding and modulating the first sequence, and any symbol in the fourth sequence is a complex number; then, the first communication device may determine the first sequence based on the at least one third signal.

通过该设计,第一通信设备获得的第三信号是经过星座旋转和添加人工噪声获得的,从而增加第一通信设备和第二通信设备之外的其他通信设备获得该第三信号对应的序列的难度,进而可提高通信的安全性。并且,采用该方法,无需进行信息调和以及隐私放大过程,可提高密钥生成速率。Through this design, the third signal obtained by the first communication device is obtained by constellation rotation and adding artificial noise, thereby increasing the difficulty for other communication devices other than the first communication device and the second communication device to obtain the sequence corresponding to the third signal, thereby improving the security of communication. In addition, by adopting this method, there is no need to perform information reconciliation and privacy amplification processes, and the key generation rate can be improved.

在一种可能的设计中,至少一个第三信号的实部与旋转第二角度之后的第四序列的信号星座图中的星座点一一对应;其中,与第二星座点对应的第三信号的实部为第二星座点的实部,第二星座点为旋转第二角度之后的第四序列的信号星座图中的任一星座点;任一第三信号的虚部为与任一第三信号对应的第二人工噪声信号。第一通信设备可通过如下步骤确定第一序列:第一通信设备根据至少一个第三信号的实部,确定第四序列;然后,第一通信设备对第四序列进行解调,得到第一序列。该设计提供了一种具体的第三信号的实现方式,易于实现。In one possible design, the real part of at least one third signal corresponds one-to-one to a constellation point in the signal constellation diagram of the fourth sequence after being rotated by a second angle; wherein the real part of the third signal corresponding to the second constellation point is the real part of the second constellation point, and the second constellation point is any constellation point in the signal constellation diagram of the fourth sequence after being rotated by a second angle; the imaginary part of any third signal is the second artificial noise signal corresponding to any third signal. The first communication device can determine the first sequence by the following steps: the first communication device determines the fourth sequence according to the real part of at least one third signal; then, the first communication device demodulates the fourth sequence to obtain the first sequence. This design provides a specific implementation method of the third signal, which is easy to implement.

在一种可能的设计中,第二角度为使得第一通信设备的平均误符号率最小的角度。通过该设计,第二通信设备通过第二角度对第四序列的信号星座图进行旋转,可使得第一通信设备的平均误符号率最小,从而可提高第一通信设备接收用于指示第一序列的指示的准确性,进而可降低密钥不一致率。In one possible design, the second angle is an angle that minimizes the average symbol error rate of the first communication device. With this design, the second communication device rotates the signal constellation diagram of the fourth sequence by the second angle, which can minimize the average symbol error rate of the first communication device, thereby improving the accuracy of the first communication device receiving the indication for indicating the first sequence, and further reducing the key inconsistency rate.

在一种可能的设计中,第一通信设备和第二通信设备为全双工通信设备。In one possible design, the first communication device and the second communication device are full-duplex communication devices.

第二方面,本申请实施例提供了一种物理层密钥生成装置,该物理层密钥生成装置可应用于第一通信设备,并执行第一方面提供的物理层密钥生成方法。该物理层密钥生成装置包括:In a second aspect, an embodiment of the present application provides a physical layer key generation device, which can be applied to a first communication device and execute the physical layer key generation method provided in the first aspect. The physical layer key generation device includes:

通信单元,用于接收和发送数据;A communication unit for receiving and sending data;

处理单元,用于:A processing unit for:

通过通信单元,向第二通信设备发送第一导频信号,接收来自第二通信设备的第一指示;第一指示用于指示第一序列,第一导频信号用于触发第二通信设备生成第一序列;Sending a first pilot signal to a second communication device through a communication unit, and receiving a first indication from the second communication device; the first indication is used to indicate a first sequence, and the first pilot signal is used to trigger the second communication device to generate the first sequence;

在通过通信单元接收来自第二通信设备的第二导频信号后,生成第二序列;第二导频信号用于触发第一通信设备生成第二序列;After receiving a second pilot signal from a second communication device through a communication unit, a second sequence is generated; the second pilot signal is used to trigger the first communication device to generate the second sequence;

生成第一密钥;第一密钥包括第二序列中的所有符号和第一序列中的所有符号,第一密钥用于第一通信设备与第二通信设备之间的通信。A first key is generated; the first key includes all symbols in the second sequence and all symbols in the first sequence, and the first key is used for communication between the first communication device and the second communication device.

在一种可能的设计中,处理单元可用于:确定第二导频信号所对应的频域信道系数;对频域信道系数进行快速傅里叶反变换,得到信道响应函数;对信道响应函数中小于或等于第一阈值的抽头系数进行量化,得到第二序列。In one possible design, the processing unit may be used to: determine the frequency domain channel coefficients corresponding to the second pilot signal; perform an inverse fast Fourier transform on the frequency domain channel coefficients to obtain a channel response function; and quantize the tap coefficients in the channel response function that are less than or equal to a first threshold to obtain a second sequence.

在一种可能的设计中,处理单元可用于:在生成第二序列之后,通过通信单元向第二通信设备发送第二指示,第二指示用于指示第二序列。In one possible design, the processing unit may be configured to: after generating the second sequence, send a second indication to the second communication device through the communication unit, where the second indication is used to indicate the second sequence.

在一种可能的设计中,处理单元可用于:在通过通信单元向第二通信设备发送第二指示之前,对第二序列进行编码调制,得到第三序列;第三序列中的任一符号为复数;根据星座旋转后的第三序列的信号星座图和第一人工噪声信号,生成第二指示。In one possible design, the processing unit may be used to: before sending a second indication to a second communication device through a communication unit, encode and modulate the second sequence to obtain a third sequence; any symbol in the third sequence is a complex number; and generate a second indication based on a signal constellation diagram of the third sequence after constellation rotation and a first artificial noise signal.

在一种可能的设计中,处理单元可用于:将第三序列的信号星座图旋转第一角度,旋转后的第三序列的信号星座图中任意两个星座点的实部和虚部均不相同;生成第二指示;其中,第二指示包括至少一个第一信号,至少一个第一信号的实部与旋转后的第三序列的信号星座图中的星座点一一对应;与第一星座点对应的第一信号的实部为第一星座点的实部,第一星座点为旋转后的第三序列的信号星座图中的任一星座点;任一第一信号的虚部为与任一第一信号对应的第一人工噪声信号。In one possible design, the processing unit may be used to: rotate the signal constellation diagram of the third sequence by a first angle, so that the real parts and imaginary parts of any two constellation points in the signal constellation diagram of the third sequence after the rotation are different; generate a second indication; wherein the second indication includes at least one first signal, and the real part of at least one first signal corresponds one-to-one to the constellation point in the signal constellation diagram of the third sequence after the rotation; the real part of the first signal corresponding to the first constellation point is the real part of the first constellation point, and the first constellation point is any constellation point in the signal constellation diagram of the third sequence after the rotation; the imaginary part of any first signal is the first artificial noise signal corresponding to any first signal.

在一种可能的设计中,第一角度为使得第二通信设备的平均误符号率最小的角度。In one possible design, the first angle is an angle that minimizes an average symbol error rate of the second communication device.

在一种可能的设计中,第一指示包括至少一个第二信号,处理单元可用于:在通过通信单元接收来自第二通信设备的第一指示之后,对至少一个第二信号进行滤波,得到至少一个第三信号;其中,至少一个第三信号是根据星座旋转后的第四序列的信号星座图和第二人工噪声信号生成的,第四序列为对第一序列进行编码调制后得到的序列,第四序列中的任一符号为复数;根据至少一个第三信号,确定第一序列。In one possible design, the first indication includes at least one second signal, and the processing unit can be used to: after receiving the first indication from the second communication device through the communication unit, filter the at least one second signal to obtain at least one third signal; wherein the at least one third signal is generated based on the signal constellation diagram of the fourth sequence after the constellation rotation and the second artificial noise signal, the fourth sequence is a sequence obtained by encoding and modulating the first sequence, and any symbol in the fourth sequence is a complex number; determine the first sequence based on the at least one third signal.

在一种可能的设计中,至少一个第三信号的实部与旋转第二角度之后的第四序列的信号星座图中的星座点一一对应;其中,与第二星座点对应的第三信号的实部为第二星座点的实部,第二星座点为旋转第二角度之后的第四序列的信号星座图中的任一星座点;任一第三信号的虚部为与任一第三信号对应的第二人工噪声信号;处理单元可用于:根据至少一个第三信号的实部,确定第四序列;对第四序列进行解调,得到第一序列。In one possible design, the real part of at least one third signal corresponds one-to-one to a constellation point in a signal constellation diagram of a fourth sequence after being rotated by a second angle; wherein the real part of the third signal corresponding to the second constellation point is the real part of the second constellation point, and the second constellation point is any constellation point in the signal constellation diagram of the fourth sequence after being rotated by the second angle; the imaginary part of any third signal is a second artificial noise signal corresponding to any third signal; and the processing unit may be used to: determine the fourth sequence according to the real part of at least one third signal; and demodulate the fourth sequence to obtain the first sequence.

在一种可能的设计中,第二角度为使得第一通信设备的平均误符号率最小的角度。In one possible design, the second angle is an angle that minimizes an average symbol error rate of the first communication device.

在一种可能的设计中,第一通信设备和第二通信设备为全双工通信设备。In one possible design, the first communication device and the second communication device are full-duplex communication devices.

第三方面,本申请实施例提供了一种物理层密钥生成设备,包括至少一个处理元件和至少一个存储元件,其中该至少一个存储元件用于存储程序和数据,该至少一个处理元件用于读取并执行存储元件存储的程序和数据,以使得本申请第一方面提供的方法被实现。In a third aspect, an embodiment of the present application provides a physical layer key generation device, comprising at least one processing element and at least one storage element, wherein the at least one storage element is used to store programs and data, and the at least one processing element is used to read and execute programs and data stored in the storage element, so that the method provided in the first aspect of the present application is implemented.

第四方面,本申请实施例提供了一种物理层密钥生成系统,包括:用于执行第一方面提供的方法的第一通信设备,用于执行第一方面提供的方法中第二通信设备的操作的第二通信设备。In a fourth aspect, an embodiment of the present application provides a physical layer key generation system, comprising: a first communication device for executing the method provided in the first aspect, and a second communication device for executing the operations of the second communication device in the method provided in the first aspect.

第五方面,本申请实施例还提供了一种计算机程序,当所述计算机程序在计算机上运行时,使得所述计算机执行第一方面提供的方法。In a fifth aspect, an embodiment of the present application further provides a computer program, which, when executed on a computer, enables the computer to execute the method provided in the first aspect.

第六方面,本申请实施例还提供了一种计算机可读存储介质,所述计算机可读存储介质中存储有计算机程序,当所述计算机程序被计算机执行时,使得所述计算机执行第一方面提供的方法。In a sixth aspect, an embodiment of the present application further provides a computer-readable storage medium, in which a computer program is stored. When the computer program is executed by a computer, the computer executes the method provided in the first aspect.

第七方面,本申请实施例还提供了一种芯片,所述芯片用于读取存储器中存储的计算机程序,执行第一方面提供的方法。In a seventh aspect, an embodiment of the present application further provides a chip, which is used to read a computer program stored in a memory and execute the method provided in the first aspect.

第八方面,本申请实施例还提供了一种芯片系统,该芯片系统包括处理器,用于支持计算机装置实现第一方面提供的方法。在一种可能的设计中,所述芯片系统还包括存储器,所述存储器用于保存该计算机装置必要的程序和数据。该芯片系统可以由芯片构成,也可以包含芯片和其他分立器件。In an eighth aspect, an embodiment of the present application further provides a chip system, which includes a processor for supporting a computer device to implement the method provided in the first aspect. In a possible design, the chip system also includes a memory, which is used to store the necessary programs and data of the computer device. The chip system can be composed of a chip, or it can include a chip and other discrete devices.

上述第二方面至第八方面中任一方面可以达到的技术效果可以参照上述第一方面或第一方面中任一种可能设计可以达到的技术效果说明,重复之处不予论述。The technical effects that can be achieved in any of the second to eighth aspects mentioned above can refer to the description of the technical effects that can be achieved in the first aspect mentioned above or any possible design of the first aspect, and the repetitions will not be discussed here.

附图说明BRIEF DESCRIPTION OF THE DRAWINGS

图1为全双工(full duplex,FD)技术的示意图;FIG1 is a schematic diagram of full duplex (FD) technology;

图2为一种物理层密钥生成方法的示意图;FIG2 is a schematic diagram of a method for generating a physical layer key;

图3为本申请实施例提供的一种物理层密钥生成方法的流程图;FIG3 is a flow chart of a method for generating a physical layer key provided in an embodiment of the present application;

图4为本申请实施例提供的星座图旋转的示意图;FIG4 is a schematic diagram of a constellation diagram rotation provided in an embodiment of the present application;

图5为本申请实施例提供的对信号星座图提取实部与判决门限的示意图;FIG5 is a schematic diagram of extracting the real part and decision threshold of a signal constellation diagram provided by an embodiment of the present application;

图6为本申请实施例提供的一种应用场景的示意图;FIG6 is a schematic diagram of an application scenario provided in an embodiment of the present application;

图7为本申请实施例提供的一种物理层密钥生成装置的结构图;FIG7 is a structural diagram of a physical layer key generation device provided in an embodiment of the present application;

图8为本申请实施例提供的一种物理层密钥生成设备的结构图。FIG8 is a structural diagram of a physical layer key generation device provided in an embodiment of the present application.

具体实施方式DETAILED DESCRIPTION

本申请提供一种物理层密钥生成方法及设备,用以降低密钥生成过程中的开销。其中,方法和设备是基于同一技术构思的,由于方法及设备解决问题的原理相似,因此设备与方法的实施可以相互参见,重复之处不再赘述。The present application provides a physical layer key generation method and device, which are used to reduce the overhead in the key generation process. The method and the device are based on the same technical concept. Since the method and the device solve the problem in a similar way, the implementation of the device and the method can refer to each other, and the repeated parts will not be repeated.

在本申请实施例提供的方案中,第一通信设备在向第二通信设备发送第一导频信号之后,第二通信设备可在第一导频信号的触发下生成第一序列,并向第一通信设备发送用于指示第一序列的第一指示;相应的,第一通信设备可接收来自第二通信设备的第一指示。第一通信设备在接收来自第二通信设备的第二导频信号后,可在第二导频信号的触发下生成第二序列。然后,第一通信设备可生成第一密钥,第一密钥可包括第二序列中的所有符号和第一序列中的所有符号,第一密钥用于第一通信设备与第二通信设备之间的通信。这样,第一通信设备和第二通信设备分别生成第二序列和第一序列;第二通信设备向第一通信设备发送用于指示第一序列的第一指示之后,第一通信设备即可根据第一序列和自身生成的第二序列确定出第一密钥,无需第二通信设备向第一通信设备发送用于指示组成第一密钥的所有符号(即第一序列和第二序列包含的所有符号)的信息,从而可以降低密钥生成过程中的开销。In the scheme provided by the embodiment of the present application, after the first communication device sends the first pilot signal to the second communication device, the second communication device may generate a first sequence under the triggering of the first pilot signal, and send a first indication for indicating the first sequence to the first communication device; accordingly, the first communication device may receive the first indication from the second communication device. After receiving the second pilot signal from the second communication device, the first communication device may generate a second sequence under the triggering of the second pilot signal. Then, the first communication device may generate a first key, and the first key may include all symbols in the second sequence and all symbols in the first sequence, and the first key is used for communication between the first communication device and the second communication device. In this way, the first communication device and the second communication device generate the second sequence and the first sequence respectively; after the second communication device sends the first indication for indicating the first sequence to the first communication device, the first communication device can determine the first key according to the first sequence and the second sequence generated by itself, without the need for the second communication device to send information for indicating all symbols constituting the first key (i.e., all symbols contained in the first sequence and the second sequence) to the first communication device, thereby reducing the overhead in the key generation process.

以下,对本申请中的部分用语进行解释说明,以便于本领域技术人员理解。Below, some terms in this application are explained to facilitate understanding by those skilled in the art.

1)、通信设备,泛指具有通信功能的设备。示例性的,所述通信设备可以但不限于为终端设备、网络设备等。1) Communication equipment generally refers to equipment with communication functions. Exemplarily, the communication equipment may be, but is not limited to, terminal equipment, network equipment, etc.

2)、终端设备,是一种向用户提供语音和/或数据连通性的设备。终端设备又可以称为用户设备(user equipment,UE)、移动台(mobile station,MS)、移动终端(mobileterminal,MT)等。2) Terminal equipment is a device that provides voice and/or data connectivity to users. Terminal equipment can also be called user equipment (UE), mobile station (MS), mobile terminal (MT), etc.

例如,终端设备可以为具有无线连接功能的手持式设备、车载设备等。目前,一些终端设备的举例为:手机(mobile phone)、平板电脑、笔记本电脑、掌上电脑、移动互联网设备(mobile internet device,MID)、可穿戴设备,虚拟现实(virtual reality,VR)设备、增强现实(augmented reality,AR)设备、工业控制(industrial control)中的无线终端、无人驾驶(self driving)中的无线终端、远程手术(remote medical surgery)中的无线终端、智能电网(smart grid)中的无线终端、运输安全(transportation safety)中的无线终端、智慧城市(smart city)中的无线终端、智慧家庭(smart home)中的无线终端等。For example, the terminal device may be a handheld device or a vehicle-mounted device with a wireless connection function. At present, some examples of terminal devices include: mobile phones, tablet computers, laptop computers, PDAs, mobile internet devices (MID), wearable devices, virtual reality (VR) devices, augmented reality (AR) devices, wireless terminals in industrial control, wireless terminals in self-driving, wireless terminals in remote medical surgery, wireless terminals in smart grids, wireless terminals in transportation safety, wireless terminals in smart cities, wireless terminals in smart homes, etc.

3)、网络设备,是移动通信系统中将终端设备接入到无线网络的设备。网络设备作为无线接入网中的节点,还可以称为基站、无线接入网(radio access network,RAN)节点(或设备)、接入网(access network,AN)节点(或设备)、接入点(access point,AP)。3) Network equipment is a device that connects terminal devices to wireless networks in mobile communication systems. As nodes in the wireless access network, network equipment can also be called base stations, radio access network (RAN) nodes (or devices), access network (AN) nodes (or devices), and access points (APs).

目前,一些网络设备的举例为:新一代节点B(generation Node B,gNB)、传输接收点(transmission reception point,TRP)、演进型节点B(evolved Node B,eNB)、无线网络控制器(radio network controller,RNC)、节点B(Node B,NB)、基站控制器(base stationcontroller,BSC)、基站收发台(base transceiver station,BTS)、家庭基站(例如,homeevolved NodeB,或home Node B,HNB),或基带单元(base band unit,BBU)等。At present, some examples of network equipment are: new generation Node B (gNB), transmission reception point (TRP), evolved Node B (eNB), radio network controller (RNC), Node B (NB), base station controller (BSC), base transceiver station (BTS), home base station (e.g., home evolved NodeB, or home Node B, HNB), or base band unit (BBU), etc.

另外,在一种网络结构中,所述网络设备可以包括集中单元(centralized unit,CU)节点和分布单元(distributed unit,DU)节点。这种结构将网络设备的协议层拆分开,部分协议层的功能放在CU集中控制,剩下部分或全部协议层的功能分布在DU中,由CU集中控制DU。In addition, in a network structure, the network device may include a centralized unit (CU) node and a distributed unit (DU) node. This structure splits the protocol layer of the network device, with some of the functions of the protocol layer being centrally controlled by the CU, and the remaining part or all of the functions of the protocol layer being distributed in the DU, which is centrally controlled by the CU.

4)、信号星座图,为信号在复平面上的分布图。信号可通过复数形式来表示,因此,信号星座图上的一个星座点与一个信号一一对应。通过信号星座图,可直观表示信号以及信号之间的关系。4) Signal constellation diagram is the distribution diagram of the signal on the complex plane. The signal can be represented by complex numbers, so a constellation point on the signal constellation diagram corresponds to a signal one-to-one. The signal constellation diagram can intuitively represent the signal and the relationship between the signals.

本申请实施例中,对于名词的数目,除非特别说明,表示“单数名词或复数名词”,即“一个或多个”。“至少一个”是指一个或者多个,“多个”是指两个或两个以上。“和/或”描述关联对象的关联关系,表示可以存在三种关系,例如,A和/或B,可以表示:单独存在A,同时存在A和B,单独存在B这三种情况。“以下至少一项(个)”或其类似表达,是指这些项(个)中的任意组合,包括单项(个)或复数项(个)的任意组合。In the embodiments of the present application, the number of nouns, unless otherwise specified, means "singular noun or plural noun", that is, "one or more". "At least one" means one or more, and "plurality" means two or more. "And/or" describes the association relationship of associated objects, indicating that three relationships may exist. For example, A and/or B can mean: A exists alone, A and B exist at the same time, and B exists alone. "At least one of the following items" or similar expressions refers to any combination of these items, including any combination of singular items or plural items.

另外,需要理解的是,在本申请的描述中,“第一”、“第二”等词汇,仅用于区分描述的目的,而不应理解为指示或暗示相对重要性,也不应理解为指示或暗示顺序。In addition, it should be understood that in the description of this application, words such as "first" and "second" are only used for the purpose of distinguishing the description, and should not be understood as indicating or implying relative importance, nor should they be understood as indicating or implying an order.

本申请可应用于FD的通信设备中。为了便于理解本申请,下面对FD技术进行说明。The present application can be applied to FD communication equipment. In order to facilitate understanding of the present application, the FD technology is described below.

FD是一种通信双方可以同时同频进行信息传输的无线通信技术。如图1所示,通信设备A和通信设备B均可同时在同样的频率上接收和发送信息;换句话说,通信设备A和通信设备B均可同时在同样的频率上传输信号。可以同时在同样的频率上接收或发送信息的通信设备为全双工通信设备,因此,通信设备A和通信设备B为全双工通信设备。例如,通信设备A可通过通信设备A的发射天线在时刻1频率1上发送信息1,如果不考虑传输时延,通信设备B可通过通信设备B的接收天线在时刻1频率1上接收信息1;通信设备B可通过通信设备B的发射天线在时刻1频率1上发送信息2,如果不考虑传输时延,通信设备A可通过通信设备A的接收天线在时刻1频率1上接收信息2。FD is a wireless communication technology that allows both parties to transmit information at the same frequency at the same time. As shown in Figure 1, both communication device A and communication device B can receive and send information at the same frequency at the same time; in other words, both communication device A and communication device B can transmit signals at the same frequency at the same time. A communication device that can receive or send information at the same frequency at the same time is a full-duplex communication device, so communication device A and communication device B are full-duplex communication devices. For example, communication device A can send information 1 at frequency 1 at time 1 through the transmitting antenna of communication device A. If the transmission delay is not considered, communication device B can receive information 1 at frequency 1 at time 1 through the receiving antenna of communication device B; communication device B can send information 2 at frequency 1 at time 1 through the transmitting antenna of communication device B. If the transmission delay is not considered, communication device A can receive information 2 at frequency 1 at time 1 through the receiving antenna of communication device A.

通信双方同时同频进行信息传输时,可能会产生功率较高的自干扰信号,从而影响来自通信对端的低功率信号的接收,使得来自通信对端的低功率接收信号无法被解调。例如,由于通信设备A可同时在同样的频率上接收和发送信息,因此,通信设备A在发送信息时,通信设备A的接收天线也会接收到该信息产生的自干扰信号,该自干扰信号的功率可能大于通信设备A接收的来自通信设备B的信号。目前,可通过天线隔离、模拟消除、数字消除等方式消除自干扰,以实现对信号的同时同频传输。When both parties in communication transmit information at the same frequency at the same time, a high-power self-interference signal may be generated, thereby affecting the reception of low-power signals from the communication peer, making it impossible to demodulate the low-power received signal from the communication peer. For example, since communication device A can receive and send information at the same frequency at the same time, when communication device A sends information, the receiving antenna of communication device A will also receive the self-interference signal generated by the information, and the power of the self-interference signal may be greater than the signal from communication device B received by communication device A. At present, self-interference can be eliminated by antenna isolation, analog elimination, digital elimination, etc., so as to achieve simultaneous and co-frequency transmission of signals.

下面结合图2对目前的物理层密钥生成方法进行说明。The current physical layer key generation method is described below in conjunction with FIG. 2 .

S201:通信双方进行信道探测。S201: The communicating parties perform channel detection.

其中,通信双方可包括通信设备1(也可称为Alice)和通信设备2(也可称为Bob)。通信设备1到通信设备2的链路与通信设备2到通信设备1的链路之间需满足互易或近似互易性的条件。这样,通信设备1和通信设备2探测的信道基本是一致的。The two communicating parties may include communication device 1 (also referred to as Alice) and communication device 2 (also referred to as Bob). The link from communication device 1 to communication device 2 and the link from communication device 2 to communication device 1 must meet the reciprocity or near reciprocity condition. In this way, the channels detected by communication device 1 and communication device 2 are basically the same.

下面说明信道探测的具体过程。The specific process of channel detection is described below.

通信设备2向通信设备1发送导频信号1之后,通信设备1可进行信道估计,估计可以表征该导频信号1对应的无线通信信道的信息(下面可称为第一信息)。其中,该第一信息可包括导频信号1对应的无线通信信道的信道状态信息(channel state information,CSI)和/或信道冲击响应(channel impulse response,CIR)等。After the communication device 2 sends the pilot signal 1 to the communication device 1, the communication device 1 may perform channel estimation to estimate information (hereinafter referred to as first information) that can characterize the wireless communication channel corresponding to the pilot signal 1. The first information may include channel state information (CSI) and/or channel impulse response (CIR) of the wireless communication channel corresponding to the pilot signal 1.

通信设备1向通信设备2发送导频信号2之后,通信设备2可进行信道估计,估计可以表征该导频信号2对应的无线通信信道的信息(下面可称为第二信息)。其中,该第二信息可包括导频信号2对应的无线通信信道的CSI和/或CIR等。After the communication device 1 sends the pilot signal 2 to the communication device 2, the communication device 2 may perform channel estimation to estimate information (hereinafter referred to as second information) that can characterize the wireless communication channel corresponding to the pilot signal 2. The second information may include the CSI and/or CIR of the wireless communication channel corresponding to the pilot signal 2.

S202:通信双方对探测的信道的随机性进行提取。S202: The communicating parties extract the randomness of the detected channel.

具体的,通信双方可去除掉信道中通信双方一致的大尺度衰落特征,仅保留具有随机性的小尺度衰落特征(也可称为小尺度衰落信息)。Specifically, the communicating parties can remove the large-scale fading features that are consistent between the communicating parties in the channel, and only retain the small-scale fading features with randomness (also referred to as small-scale fading information).

例如,通信设备1可去除第一信息中的大尺度衰落特征,仅保留具有随机性的小尺度衰落特征;通信设备2可去除第二信息中的大尺度衰落特征,仅保留具有随机性的小尺度衰落特征。For example, communication device 1 may remove large-scale fading features in the first information and retain only small-scale fading features with randomness; communication device 2 may remove large-scale fading features in the second information and retain only small-scale fading features with randomness.

S203:通信双方对提取的随机性特征进行量化操作。S203: The communicating parties perform quantization operations on the extracted random features.

具体的,通信双方可将与提取的随机性特征所对应的信道系数量化为比特序列。Specifically, the communicating parties may quantize the channel coefficients corresponding to the extracted random features into a bit sequence.

例如(下面可称为示例1),通信设备1得到的比特序列为10101110011100;通信设备2得到的比特序列为10111110001100。For example (hereinafter referred to as Example 1), the bit sequence obtained by communication device 1 is 10101110011100; the bit sequence obtained by communication device 2 is 10111110001100.

S204:通信双方针对量化后的比特序列进行信息调和。S204: The communicating parties reconcile information on the quantized bit sequence.

由于通信双方的无线信道物理具有互易性,通信双方各自生成的比特序列具有部分公共的信息比特。通过信息调和,通信双方可协商纠正各自生成的比特序列中不一致的信息比特,从而生成一致的密钥序列。信息调和的方式有很多种,例如,一种典型的做法是,通信双方需将各自得到的比特序列进行分段,针对每段比特序列生成校验比特,并将校验比特发送给对方,以便对方根据该校验比特确定对应的比特序列是否一致。另外,若校验没有成功,通信双方需要进行多次协商,以便生成一致的密钥序列。Since the wireless channels of the two communicating parties are physically reciprocal, the bit sequences generated by the two communicating parties have some common information bits. Through information reconciliation, the two communicating parties can negotiate to correct the inconsistent information bits in the bit sequences generated by each party, thereby generating a consistent key sequence. There are many ways to reconcile information. For example, a typical approach is that the two communicating parties need to segment the bit sequences they obtain, generate check bits for each bit sequence, and send the check bits to the other party so that the other party can determine whether the corresponding bit sequences are consistent based on the check bits. In addition, if the check is not successful, the two communicating parties need to conduct multiple negotiations to generate a consistent key sequence.

例如,针对示例1,通信设备1和通信设备2经过信息调和后,得到的密钥序列为10101110011100。For example, for Example 1, after information reconciliation between communication device 1 and communication device 2, the key sequence obtained is 10101110011100.

S205:在生成密钥序列之后,通信双方可执行隐私放大操作。S205: After the key sequence is generated, the communicating parties may perform a privacy amplification operation.

具体的,通信双方可通过哈希函数,从步骤S204生成的密钥序列中去除信息调和过程泄露的比特信息。例如,针对示例1,通信设备1和通信设备2经过隐私放大操作之后,得到的比特序列为010010011。Specifically, the communicating parties can use a hash function to remove the bit information leaked during the information reconciliation process from the key sequence generated in step S204. For example, for example 1, after the privacy amplification operation of communication device 1 and communication device 2, the resulting bit sequence is 010010011.

图2所示方法存在以下问题:The method shown in Figure 2 has the following problems:

1、在该方法中,密钥包含通信双方生成的比特序列中相同的部分。若密钥包含的符号数为K,其中K为正整数;为了生成一致的密钥,通信双方生成的比特序列中的符号数应大于或等于K;在信息调和过程中,通信双方也需要针对该生成的比特序列生成校验比特,并传递给对方。因此,通过该方法生成密钥,开销较大。1. In this method, the key contains the same part of the bit sequence generated by the two communicating parties. If the number of symbols contained in the key is K, where K is a positive integer; in order to generate a consistent key, the number of symbols in the bit sequence generated by the two communicating parties should be greater than or equal to K; in the information reconciliation process, the two communicating parties also need to generate check bits for the generated bit sequence and pass them to each other. Therefore, the overhead of generating keys through this method is relatively large.

2、协商过程中,协商的校验比特可能会被通信双方之外的其他通信设备获得,从而影响通信双方的通信安全,需要利用隐私放大来提高安全性。隐私放大时会去除密钥序列中的比特信息,从而减少密钥序列中的比特数。密钥生成速率为一次密钥生成过程产生的密钥比特数除以一次密钥生成过程的时间长度。假设一次密钥生成过程的时间长度为T,且通过信息协商生成P比特(bits)一致的密钥序列,则密钥生成速率是P/T。但是,经过隐私放大后,得到的有效密钥序列包含P1 btis,其中,P1<P;这样,密钥生成速率为P1/T,密钥生成速率下降。2. During the negotiation process, the negotiated check bits may be obtained by other communication devices other than the communicating parties, thus affecting the communication security of the communicating parties. Privacy amplification is needed to improve security. Privacy amplification removes bit information in the key sequence, thereby reducing the number of bits in the key sequence. The key generation rate is the number of key bits generated by a key generation process divided by the time length of a key generation process. Assuming that the time length of a key generation process is T, and a key sequence with P bits (bits) consistent is generated through information negotiation, the key generation rate is P/T. However, after privacy amplification, the valid key sequence obtained contains P1 btis, where P1<P; in this way, the key generation rate is P1/T, and the key generation rate decreases.

3、图2中的方法无法保证通信双方生成的密钥完全一致,难以满足实际应用需求。具体的,在信息调和过程中,通信双方需要交互的是校验比特,而不是各自在S203中生成的比特序列。这样,即使收到的校验比特和本地计算出的校验比特一致,也不能完全保证通信双方生成的密钥比特是一致的。3. The method in FIG2 cannot guarantee that the keys generated by the communicating parties are completely consistent, and it is difficult to meet the actual application requirements. Specifically, in the information reconciliation process, the communicating parties need to exchange check bits instead of the bit sequences generated by each party in S203. In this way, even if the received check bits are consistent with the locally calculated check bits, it cannot be completely guaranteed that the key bits generated by the communicating parties are consistent.

4、图2所示方法仅通过无线通信信道来生成密钥。无线通信信道中相互之间存在关联的信息较多,随机的信息较少。为了保证安全,密钥应是采用随机信息生成的。因此,采用图2所示方法,得到的随机信息较少,这样,密钥序列中的比特数较少,密钥生成速率较低。4. The method shown in FIG2 generates keys only through wireless communication channels. There are more information related to each other in wireless communication channels, and less random information. In order to ensure security, keys should be generated using random information. Therefore, using the method shown in FIG2, less random information is obtained, so that the number of bits in the key sequence is less and the key generation rate is lower.

下面将结合附图,对本申请实施例进行详细描述。The embodiments of the present application will be described in detail below with reference to the accompanying drawings.

本申请实施例提供了一种物理层密钥生成方法。下面参阅图3所示的流程图,对该方法的流程进行具体说明。The embodiment of the present application provides a method for generating a physical layer key. Referring to the flowchart shown in FIG3 , the process of the method is described in detail.

S301:第一通信设备向第二通信设备发送第一导频信号。相应的,第二通信设备接收来自第一通信设备的第一导频信号。S301: A first communication device sends a first pilot signal to a second communication device. Correspondingly, the second communication device receives the first pilot signal from the first communication device.

其中,第一导频信号可用于触发第二通信设备生成第一序列。The first pilot signal may be used to trigger the second communication device to generate the first sequence.

另外,第一通信设备和第二通信设备中的任一项可为以下之一:终端设备、网络设备。也就是说,图3所示方法可用于终端设备之间的通信,例如,设备与设备(device todevice,D2D)通信、机器与机器(machine to machine,M2M)通信、车用无线通信(vehicleto everything,V2X);也可以用于终端设备和网络设备之间的通信;还可用于网络设备之间的通信。In addition, any one of the first communication device and the second communication device may be one of the following: a terminal device, a network device. That is, the method shown in FIG3 may be used for communication between terminal devices, such as device to device (D2D) communication, machine to machine (M2M) communication, and vehicle to everything (V2X); it may also be used for communication between a terminal device and a network device; it may also be used for communication between network devices.

可选的,第一通信设备和第二通信设备可为全双工通信设备。Optionally, the first communication device and the second communication device may be full-duplex communication devices.

S302:第二通信设备生成第一序列。S302: The second communication device generates a first sequence.

可选的,第二通信设备可根据第二导频信号生成第一序列。其中,该第一序列可为比特序列。Optionally, the second communication device may generate a first sequence according to the second pilot signal, wherein the first sequence may be a bit sequence.

S303:第二通信设备向第一通信设备发送第一指示。相应的,第一通信设备接收来自第二通信设备的第一指示。S303: The second communication device sends a first instruction to the first communication device. Correspondingly, the first communication device receives the first instruction from the second communication device.

其中,第一指示可用于指示第一序列。The first indication may be used to indicate the first sequence.

另外,第一指示可以为用于指示第一序列的消息,也可以为消息中的信元。具体地,当第一指示为信元时,第一指示可以复用现有消息中的信元,也可以是现有消息中的新的信元。In addition, the first indication may be a message for indicating the first sequence, or may be an information element in a message. Specifically, when the first indication is an information element, the first indication may reuse an information element in an existing message, or may be a new information element in an existing message.

S304:第二通信设备向第一通信设备发送第二导频信号。相应的,第一通信设备接收来自第二通信设备的第二导频信号。S304: The second communication device sends a second pilot signal to the first communication device. Correspondingly, the first communication device receives the second pilot signal from the second communication device.

其中,第二导频信号可用于触发第一通信设备生成第二序列。The second pilot signal may be used to trigger the first communication device to generate a second sequence.

S305:第一通信设备生成第二序列。S305: The first communication device generates a second sequence.

可选的,第一通信设备可根据第一导频信号生成第二序列。其中,该第二序列可为比特序列。Optionally, the first communication device may generate a second sequence according to the first pilot signal, wherein the second sequence may be a bit sequence.

其中,第二序列包含的符号数和第一序列包含的符号数可以相同,也可以不同。The number of symbols included in the second sequence and the number of symbols included in the first sequence may be the same or different.

在本申请中,可以先执行S301-S303,再执行S304-S305;还可以先执行S304-S305,再执行S301-S303;还可以同时执行S301-S303和S304-S305。同时执行S301-S303和S304-S305的一个示例为:第一通信设备和第二通信设备均为全双工通信设备时,同时执行S301和S304,然后,第一通信设备和第二通信设备可执行后续操作。In the present application, S301-S303 may be performed first, and then S304-S305; S304-S305 may be performed first, and then S301-S303; S301-S303 and S304-S305 may also be performed simultaneously. An example of performing S301-S303 and S304-S305 simultaneously is: when both the first communication device and the second communication device are full-duplex communication devices, S301 and S304 are performed simultaneously, and then the first communication device and the second communication device may perform subsequent operations.

S306:第一通信设备生成第一密钥。S306: The first communication device generates a first key.

其中,第一密钥可包括第二序列中的所有符号和第一序列中的所有符号,可用于第一通信设备与第二通信设备之间的通信。The first key may include all symbols in the second sequence and all symbols in the first sequence, and may be used for communication between the first communication device and the second communication device.

在一些可能的方式中,第一密钥包括第二序列和第一序列。例如,当第一通信设备生成的第二序列为10110,且第二通信设备生成的第一序列为11010时,第一密钥可为1011011010。In some possible ways, the first key includes the second sequence and the first sequence. For example, when the second sequence generated by the first communication device is 10110 and the first sequence generated by the second communication device is 11010, the first key may be 1011011010.

在另一些可能的方式中,第一通信设备可按照第一方式对第二序列中的所有符号和第一序列中的所有符号进行组合,得到第一密钥。其中,该第一方式可为预先配置的,也可以是第一通信设备和第二通信设备协商好的。例如,该第一方式可为将第二序列中的所有符号和第一序列中的所有符号交叉排列。这样,当第一通信设备生成的第二序列为10110,且第二通信设备生成的第一序列为11010时,第一密钥可为1101101100。In some other possible ways, the first communication device may combine all symbols in the second sequence with all symbols in the first sequence in a first way to obtain a first key. The first way may be pre-configured or may be negotiated between the first communication device and the second communication device. For example, the first way may be to cross-arrange all symbols in the second sequence with all symbols in the first sequence. In this way, when the second sequence generated by the first communication device is 10110 and the first sequence generated by the second communication device is 11010, the first key may be 1101101100.

通过该方法,第一通信设备和第二通信设备分别生成第二序列和第一序列;第二通信设备向第一通信设备发送用于指示第一序列的第一指示之后,第一通信设备即可根据第一序列和自身生成的第二序列确定出第一密钥,第一通信设备和第二通信设备之间无需进行信息调和过程,也就是说,第一通信设备和第二通信设备之间无需进行多次协商来生成一致的密钥,从而可以降低密钥生成过程中的开销(即解决上述问题1)。Through this method, the first communication device and the second communication device generate a second sequence and a first sequence respectively; after the second communication device sends a first indication for indicating the first sequence to the first communication device, the first communication device can determine the first key according to the first sequence and the second sequence generated by itself, and there is no need to perform an information reconciliation process between the first communication device and the second communication device, that is, there is no need for the first communication device and the second communication device to perform multiple negotiations to generate a consistent key, thereby reducing the overhead in the key generation process (i.e., solving the above-mentioned problem 1).

例如,第一密钥包含的符号数为K。在图3所示的方法中,第一序列中的符号数和第二序列中的符号数之和为K,换句话说,第一序列中的符号数和第二序列中的符号数均小于K;第二通信设备只需要将第一序列中的符号通知给第一通信设备即可,无需进行信息调和过程,也就是说,第一通信设备和第二通信设备之间无需进行多次协商来生成一致的密钥。因此,相对于图2所示的方法,图3所示的方法可降低密钥生成过程中的开销。For example, the number of symbols included in the first key is K. In the method shown in FIG3, the sum of the number of symbols in the first sequence and the number of symbols in the second sequence is K. In other words, the number of symbols in the first sequence and the number of symbols in the second sequence are both less than K. The second communication device only needs to notify the first communication device of the symbols in the first sequence without performing an information reconciliation process. In other words, the first communication device and the second communication device do not need to perform multiple negotiations to generate a consistent key. Therefore, compared with the method shown in FIG2, the method shown in FIG3 can reduce the overhead in the key generation process.

可选的,在S305之后,上述方法还包括S307-S308:Optionally, after S305, the method further includes S307-S308:

S307:第一通信设备向第二通信设备发送第二指示。相应的,第二通信设备接收来自第一通信设备的第二指示。S307: The first communication device sends a second instruction to the second communication device. Correspondingly, the second communication device receives the second instruction from the first communication device.

其中,第二指示可用于指示第二序列,以触发第二通信设备生成第一密钥。The second indication may be used to indicate a second sequence to trigger the second communication device to generate a first key.

另外,第二指示可以为用于指示第二序列的消息,也可以为消息中的信元。具体地,当第二指示为信元时,第二指示可以复用现有消息中的信元,也可以是现有消息中的新的信元。In addition, the second indication may be a message for indicating the second sequence, or may be an information element in a message. Specifically, when the second indication is an information element, the second indication may reuse an information element in an existing message, or may be a new information element in an existing message.

在本申请中,可以先执行S303,再执行S307;还可以先执行S307,再执行S303;还可以同时执行S303和S307。当第一通信设备和第二通信设备均为全双工通信设备时,可同时执行S303和S307。In the present application, S303 may be performed first and then S307; S307 may be performed first and then S303; S303 and S307 may be performed simultaneously. When both the first communication device and the second communication device are full-duplex communication devices, S303 and S307 may be performed simultaneously.

S308:第二通信设备生成第一密钥。S308: The second communication device generates a first key.

在S308中,第二通信设备生成第一密钥的方式与S306中第一通信设备生成第一密钥的方式相同,此处不再赘述。In S308, the second communication device generates the first key in the same manner as the first communication device generates the first key in S306, which will not be described again.

此外,本申请对S306和S307-S308的执行顺序不作限定。In addition, the present application does not limit the execution order of S306 and S307 - S308 .

通过该方法,第一通信设备和第二通信设备分别生成组成密钥的一部分序列,再将本端生成的这部分序列通知给对端。这样,第一通信设备和第二通信设备只需要将本端生成的这部分序列通知给对端即可,第一通信设备和第二通信设备之间无需进行信息调和过程,也就是说,第一通信设备和第二通信设备之间无需进行多次协商来生成一致的密钥,从而可以节省开销。Through this method, the first communication device and the second communication device respectively generate a part of the sequence constituting the key, and then notify the other end of the part of the sequence generated by the local end. In this way, the first communication device and the second communication device only need to notify the other end of the part of the sequence generated by the local end, and there is no need to perform an information reconciliation process between the first communication device and the second communication device, that is, there is no need for the first communication device and the second communication device to perform multiple negotiations to generate a consistent key, thereby saving overhead.

另外,在该方法中,第一通信设备和第二通信设备分别生成组成密钥的一部分序列,再将本端生成的这部分序列通知给对端。第一通信设备和第二通信设备将二者生成的序列的符号进行组合,即可得到密钥。通过该方法,密钥的一致性是由第一通信设备和第二通信设备之间的传输可靠性(例如,BER)来决定的;相对于图2所示方法中通过协商来保证一致性,图3所示方法可提高密钥的一致性(即解决上述问题3)。In addition, in this method, the first communication device and the second communication device respectively generate a part of the sequence constituting the key, and then notify the other end of the part of the sequence generated by the local end. The first communication device and the second communication device combine the symbols of the sequences generated by the two to obtain the key. Through this method, the consistency of the key is determined by the transmission reliability (for example, BER) between the first communication device and the second communication device; compared with the method shown in Figure 2, which ensures consistency through negotiation, the method shown in Figure 3 can improve the consistency of the key (that is, solve the above-mentioned problem 3).

并且,通过该方法生成密钥时,不需要第一通信设备到第二通信设备的链路与第二通信设备到第一通信设备的链路之间满足互易或近似互易性的条件。而在图2所示的方法中,第一通信设备到第二通信设备的链路与第二通信设备到第一通信设备的链路之间需满足互易或近似互易性。因此,通过图3所示方法,可降低对器件和系统实现成本的要求,易于实现。Furthermore, when the key is generated by this method, it is not necessary for the link from the first communication device to the second communication device and the link from the second communication device to the first communication device to meet the reciprocity or approximate reciprocity condition. In the method shown in FIG2 , the link from the first communication device to the second communication device and the link from the second communication device to the first communication device need to meet the reciprocity or approximate reciprocity condition. Therefore, the method shown in FIG3 can reduce the requirements for the cost of device and system implementation, and is easy to implement.

下面说明S302中第二通信设备生成第一序列的方法和S305中第一通信设备生成第二序列的方法。The method for the second communication device to generate the first sequence in S302 and the method for the first communication device to generate the second sequence in S305 are described below.

可选的,在上述方法的一种实施场景中,在S302中,第二通信设备可通过步骤A1-A3生成第一序列:Optionally, in an implementation scenario of the above method, in S302, the second communication device may generate a first sequence through steps A1-A3:

A1:第二通信设备确定第一导频信号所对应的频域信道系数。A1: The second communication device determines a frequency domain channel coefficient corresponding to the first pilot signal.

其中,第一通信设备向第二通信设备发送第一导频信号时,第二通信设备在任一子载波m上的接收信号可表示为:When the first communication device sends a first pilot signal to the second communication device, the received signal of the second communication device on any subcarrier m can be expressed as:

Yf[m]=HAB[m]Xp[m]+W[m]Y f [m]=H AB [m]X p [m]+W[m]

其中,HAB[m]为第一通信设备到第二通信设备的链路上子载波m上的频域信道系数,W[m]为第二通信设备在子载波m上的接收机噪声,Xp[m]是子载波m上的第一导频信号的导频符号。Wherein, H AB [m] is the frequency domain channel coefficient on subcarrier m on the link from the first communication device to the second communication device, W [m] is the receiver noise of the second communication device on subcarrier m, and X p [m] is the pilot symbol of the first pilot signal on subcarrier m.

第二通信设备在接收到第一导频信号后,可执行频域信道估计,得到CSI的估计值。以信道估计算法为最小二乘算法为例,子载波m上的CSI的估计值可以表示为:After receiving the first pilot signal, the second communication device may perform frequency domain channel estimation to obtain an estimated value of the CSI. Taking the channel estimation algorithm as the least squares algorithm as an example, the estimated value of the CSI on subcarrier m can be expressed as:

根据各个子载波上的CSI估计值,第二通信设备可以得到对频域信道响应的估计,记作在本申请中,也可以称为第一导频信号所对应的频域信道系数。According to the CSI estimation value on each subcarrier, the second communication device can obtain an estimate of the frequency domain channel response, which is recorded as In this application, It can also be called the frequency domain channel coefficient corresponding to the first pilot signal.

A2:第二通信设备对频域信道系数进行快速傅里叶反变换(inverse fastfourier transform,IFFT),得到信道响应函数。A2: The second communication device performs an inverse fast Fourier transform (IFFT) on the frequency domain channel coefficients to obtain a channel response function.

可选的,第二通信设备可对进行IFFT操作,得到信道响应函数:Optionally, the second communication device may Perform IFFT operation to obtain the channel response function:

其中,ifft()表示执行IFFT操作。Among them, ifft() indicates the execution of IFFT operation.

A3:第二通信设备对信道响应函数中小于或等于第一阈值的抽头系数进行量化,得到第一序列。A3: The second communication device quantizes the tap coefficients in the channel response function that are less than or equal to the first threshold to obtain a first sequence.

其中,信道响应函数的长度可为N;也就是说,信道响应函数可包含N个样本(也可称为样本点);N为正整数。第一阈值可为th1。对于中的第n个样本则该样本对应的值是信道抽头系数,第二通信设备可丢弃该样本;否则,第二通信设备分别对该样本的抽头系数(即该样本的实部(也可称为I分量)和虚部(也可称为Q分量))进行量化,得到第一序列。其中,1≤n≤N,为样本的幅度。Among them, the channel response function The length of may be N; that is, the channel response function may include N samples (also referred to as sample points); N is a positive integer. The first threshold may be th1. The nth sample in like The value corresponding to the sample is the channel tap coefficient, and the second communication device may discard the otherwise, the second communication device quantizes the tap coefficients of the sample (i.e., the real part (also called I component) and the imaginary part (also called Q component) of the sample) to obtain a first sequence. Where 1≤n≤N, For sample The amplitude.

可选的,当第二通信设备对样本的实部(也可称为I分量)和虚部(也可称为Q分量)进行量化时,可进行1bit量化。其中,量化准则可为:对于I分量,当样本的I分量大于0时,量化结果为1,否则,量化结果为0;对于Q分量,当样本的Q分量大于0时,量化结果为1,否则,量化结果为0。第二通信设备针对样本的I分量和Q分量分别得到量化结果后,可得到针对该样本的量化结果,该样本的量化结果包括该样本的I分量的量化结果和该样本的Q分量的量化结果。第一序列包含所有满足的样本的量化结果。Optionally, when the second communication device quantizes the real part (also referred to as the I component) and the imaginary part (also referred to as the Q component) of the sample, 1-bit quantization may be performed. The quantization criteria may be: for the I component, when the I component of the sample is greater than 0, the quantization result is 1, otherwise, the quantization result is 0; for the Q component, when the Q component of the sample is greater than 0, the quantization result is 1, otherwise, the quantization result is 0. After the second communication device obtains the quantization results for the I component and the Q component of the sample respectively, it can obtain the quantization result for the sample, and the quantization result of the sample includes the quantization result of the I component of the sample and the quantization result of the Q component of the sample. The first sequence includes all the components that satisfy The quantification results of the samples.

通过上述方法,第二通信设备可生成一个二进制比特序列(即第一序列,也可称为第二通信设备的本地密钥序列)。该第一序列可记为kBThrough the above method, the second communication device can generate a binary bit sequence (ie, a first sequence, which can also be called a local key sequence of the second communication device). The first sequence can be denoted as k B .

可选的,在上述方法的一种实施场景中,在S305中,第一通信设备可通过步骤B1-B3生成第二序列:Optionally, in an implementation scenario of the above method, in S305, the first communications device may generate a second sequence through steps B1-B3:

B1:第一通信设备确定第二导频信号所对应的频域信道系数。B1: The first communication device determines a frequency domain channel coefficient corresponding to the second pilot signal.

B2:第一通信设备对频域信道系数进行快速傅里叶反变换,得到信道响应函数。B2: The first communication device performs an inverse fast Fourier transform on the frequency domain channel coefficients to obtain a channel response function.

B3:第一通信设备对信道响应函数中小于或等于第一阈值的抽头系数进行量化,得到第二序列。B3: The first communication device quantizes the tap coefficients in the channel response function that are less than or equal to the first threshold to obtain a second sequence.

步骤B1-B3的具体内容可参考步骤A1-A3,只是将第一通信设备和第二通信设备进行互换,将第一导频信号替换为第二导频信号,将第一通信设备到第二通信设备的链路上替换为第二通信设备到第一通信设备的链路上,此处不再赘述。The specific contents of steps B1-B3 can refer to steps A1-A3, except that the first communication device and the second communication device are interchanged, the first pilot signal is replaced by the second pilot signal, and the link from the first communication device to the second communication device is replaced by the link from the second communication device to the first communication device, which will not be repeated here.

通过步骤B1-B3,第一通信设备可生成一个二进制比特序列(即第二序列)。该第二序列可记为kAThrough steps B1-B3, the first communication device can generate a binary bit sequence (ie, a second sequence). The second sequence can be denoted as k A .

由于实际无线环境中的散射体簇是有限的,因此,在信道响应函数中,只有少数样本对应于信道抽头系数,其他大部分样本都是随机噪声。随机噪声这部分样本可用来生成本地密钥序列;换句话说,随机噪声可作为生成密钥的随机熵源。一般情况下,随机噪声的强度低于信道的强度。通过该方法,第一通信设备和第二通信设备可根据随机噪声的样本生成本地密钥序列;相对于仅根据具有相关性的信道生成序列,该方法得到的样本数较多,生成的序列中包含的符号数也较多,从而可提高密钥生成速率(即解决上述问题4),并且可保证密钥的随机性,进而可提高通信的安全性。Since the number of scatterer clusters in an actual wireless environment is limited, only a few samples in the channel response function correspond to the channel tap coefficients, and most of the other samples are random noise. The random noise samples can be used to generate a local key sequence; in other words, the random noise can be used as a random entropy source for generating keys. In general, the intensity of random noise is lower than the intensity of the channel. Through this method, the first communication device and the second communication device can generate a local key sequence based on samples of random noise; compared with generating a sequence based only on a correlated channel, this method obtains a larger number of samples, and the number of symbols contained in the generated sequence is also larger, thereby increasing the key generation rate (i.e., solving the above-mentioned problem 4), and ensuring the randomness of the key, thereby improving the security of communication.

下面说明第二通信设备生成S303中的第一指示的方法和第一通信设备生成S307中的第二指示的方法。The following describes a method for the second communication device to generate the first indication in S303 and a method for the first communication device to generate the second indication in S307.

可选的,在上述方法的一种实施场景中,在步骤S307之前,第一通信设备可通过步骤C1-C2生成用于指示第二序列的第二指示:Optionally, in an implementation scenario of the above method, before step S307, the first communications device may generate a second indication for indicating the second sequence through steps C1-C2:

C1:第一通信设备对第二序列进行编码调制,得到第三序列。其中,第三序列中的任一符号为复数。该第三序列可记为yA,第三序列中的符号可记为xA。其中,第三序列中的符号数为L,1≤A≤L,L为正整数。C1: The first communication device performs coding modulation on the second sequence to obtain a third sequence. Any symbol in the third sequence is a complex number. The third sequence can be recorded as y A , and the symbol in the third sequence can be recorded as x A . The number of symbols in the third sequence is L, 1≤A≤L, and L is a positive integer.

C2:第一通信设备可根据星座旋转后的第三序列的信号星座图和第一人工噪声信号,生成第二指示。C2: The first communication device may generate a second indication according to the signal constellation diagram of the third sequence after the constellation rotation and the first artificial noise signal.

通过该方法,第一通信设备可对第三序列的信号星座图进行星座旋转,并添加人工噪声,从而增加第一通信设备和第二通信设备之外的其他通信设备(下面称为第三通信设备)获得该序列的难度,进而可提高通信的安全性。并且,采用该方法,无需进行信息调和以及隐私放大过程,可提高密钥生成速率(即解决上述问题2)。By using this method, the first communication device can perform constellation rotation on the signal constellation diagram of the third sequence and add artificial noise, thereby increasing the difficulty for other communication devices (hereinafter referred to as the third communication device) other than the first communication device and the second communication device to obtain the sequence, thereby improving the security of communication. In addition, by using this method, there is no need to perform information reconciliation and privacy amplification processes, and the key generation rate can be increased (i.e., solving the above-mentioned problem 2).

可选的,在步骤C2中,第一通信设备可通过步骤D1-D2生成第二指示:Optionally, in step C2, the first communications device may generate a second indication through steps D1-D2:

D1:第一通信设备将第三序列的信号星座图旋转第一角度,旋转后的第三序列的信号星座图中任意两个星座点的实部和虚部均不相同。D1: the first communication device rotates the signal constellation diagram of the third sequence by a first angle, so that the real parts and imaginary parts of any two constellation points in the signal constellation diagram of the third sequence after the rotation are different.

下面以第一通信设备采用正交相移键控(quadrature phase shift keying,QPSK)调制为例,对星座旋转进行说明。图4示出了将第三序列的信号星座图旋转第一角度的一种可能的效果。在原始信号星座图(例如,图4左侧信号星座图)中,每一个星座点的信息由其实部和虚部共同决定;也就是说,要确定一个星座点对应的符号,必须同时确定其实部和虚部。在旋转后的信号星座图(例如,图4右侧信号星座图)中,仅利用1个信号空间维度即可区分所有星座点;也就是说,仅根据旋转后星座点的实部或者虚部,就可以确定该星座点。The following uses the quadrature phase shift keying (QPSK) modulation of the first communication device as an example to illustrate the constellation rotation. Figure 4 shows a possible effect of rotating the signal constellation diagram of the third sequence by a first angle. In the original signal constellation diagram (for example, the signal constellation diagram on the left side of Figure 4), the information of each constellation point is determined by its real part and imaginary part; that is, to determine the symbol corresponding to a constellation point, its real part and imaginary part must be determined at the same time. In the rotated signal constellation diagram (for example, the signal constellation diagram on the right side of Figure 4), all constellation points can be distinguished using only one signal space dimension; that is, the constellation point can be determined based only on the real part or imaginary part of the rotated constellation point.

需要说明的是,虽然此处以QPSK为例进行说明,星座旋转的操作也可用于其他调制方式(例如,8移相键控(8phase shift keying,8PSK),16相正交振幅调制(quadratureamplitude modulation,QAM),64QAM等)。It should be noted that, although QPSK is used as an example here, the constellation rotation operation can also be used for other modulation methods (for example, 8-phase shift keying (8PSK), 16-phase quadrature amplitude modulation (QAM), 64QAM, etc.).

可选的,第一角度为使得第二通信设备的平均误符号率最小的角度。Optionally, the first angle is an angle that minimizes an average symbol error rate of the second communication device.

下面以调制方式为QPSK为例对第一角度进行说明。The first angle is described below by taking the modulation mode of QPSK as an example.

当对第三序列的信号星座图旋转并取实部以后,调制方式可等效为从QPSK变为4电平脉冲幅度调制(pulse amplitude modulation,PAM)4PAM;此时,第一角度为满足如下公式的θ1时,可使第二通信设备的平均误符号率最小。After the signal constellation diagram of the third sequence is rotated and the real part is taken, the modulation method can be equivalent to changing from QPSK to 4-level pulse amplitude modulation (PAM) 4PAM; at this time, when the first angle is θ 1 that satisfies the following formula, the average symbol error rate of the second communication device can be minimized.

其中,表示使最小的θ。为平均误符号率。xi为旋转后的第三序列的信号星座图上的点,1≤i≤L。表示第二通信设备对接收信号的判决结果,即判断该接收的信号对应旋转后的第三序列的信号星座图上的哪个点。 表示当第一通信设备发送的信号为与xi对应的信号时,第二通信设备判断接收到的信号不是与xi对应的信号的概率。Pr{x=xi}表示第一通信设备发送的信号为与xi对应的信号的概率。当各信号等概率发送时, in, Indicates The smallest θ. is the average symbol error rate. xi is a point on the signal constellation diagram of the third sequence after rotation, 1≤i≤L. It indicates the decision result of the second communication device on the received signal, that is, it determines which point on the signal constellation diagram of the rotated third sequence the received signal corresponds to. represents the probability that when the signal sent by the first communication device is the signal corresponding to xi , the second communication device determines that the received signal is not the signal corresponding to xi . Pr{x= xi } represents the probability that the signal sent by the first communication device is the signal corresponding to xi . When each signal is sent with equal probability,

下面结合图5举例说明平均误符号率的计算方式。The following example illustrates the calculation method of the average symbol error rate with reference to FIG5 .

如图5所示,图5左侧的信号星座图为将第三序列的信号星座图旋转θ之后的信号星座图。将旋转后的第三序列的信号星座图上的每个星座点(即x1,x2,x3,x4)取实部,可得到各个星座点的实部。具体的,x1的实部为x2的实部为x3的实部为x4的实部为另外,判决门限包括:0,以及其中,判决门限可用于第二通信设备判断接收的信号是哪个信号。例如,当第二通信设备接收到的信号的实部位于和0之间时,可判断该信号为x2对应的信号。As shown in FIG5 , the signal constellation diagram on the left side of FIG5 is the signal constellation diagram after the signal constellation diagram of the third sequence is rotated by θ. By taking the real part of each constellation point (i.e., x 1 , x 2 , x 3 , x 4 ) on the signal constellation diagram of the third sequence after rotation, the real part of each constellation point can be obtained. Specifically, the real part of x 1 is The real part of x 2 is The real part of x 3 is The real part of x 4 is In addition, the judgment thresholds include: 0, and The decision threshold can be used by the second communication device to determine which signal the received signal is. For example, when the real part of the signal received by the second communication device is located at When it is between and 0, it can be judged that the signal is the signal corresponding to x 2 .

假设匹配滤波之后的噪声为方差σ2的高斯白噪声,则在图5所示的示例中,第二通信设备的平均误符号率可为:Assuming that the noise after matched filtering is Gaussian white noise with a variance σ 2 , in the example shown in FIG5 , the average symbol error rate of the second communication device may be:

其中,Q(x)表示高斯Q函数。Wherein, Q(x) represents the Gaussian Q function.

另外,当采用QPSK调制方式时,不同平均信噪比下,使得第二通信设备的平均误符号率最小的第一角度θ1可如表1所示。In addition, when the QPSK modulation mode is adopted, the first angle θ1 that minimizes the average symbol error rate of the second communication device under different average signal-to-noise ratios may be as shown in Table 1.

表1Table 1

平均信噪比Average signal-to-noise ratio θ1 θ 1 1分贝(dB)1 decibel (dB) 38.25°38.25° 5dB5dB 33.75°33.75° 10dB10dB 29.47°29.47° 15dB15dB 27.67°27.67° 20dB20dB 27°27°

通过该方法,第一通信设备通过第一角度对第三序列的信号星座图进行旋转,可使得第二通信设备的平均误符号率最小,从而可提高第二通信设备接收用于指示第二序列的指示的准确性,进而可降低密钥不一致率。Through this method, the first communication device rotates the signal constellation diagram of the third sequence by the first angle, so that the average symbol error rate of the second communication device can be minimized, thereby improving the accuracy of the second communication device receiving the indication for indicating the second sequence, and further reducing the key inconsistency rate.

D2:第一通信设备生成第二指示。D2: The first communication device generates a second indication.

其中,第二指示可包括至少一个第一信号。至少一个第一信号的实部与旋转后的第三序列的信号星座图中的星座点一一对应;具体的,与第一星座点对应的第一信号的实部为第一星座点的实部,第一星座点为旋转后的第三序列的信号星座图中的任一星座点。任一第一信号的虚部为与任一第一信号对应的第一人工噪声信号。可选的,不同第一信号的虚部对应的第一人工噪声信号可以相同,也可以不同。The second indication may include at least one first signal. The real part of at least one first signal corresponds one-to-one to a constellation point in the signal constellation diagram of the third sequence after rotation; specifically, the real part of the first signal corresponding to the first constellation point is the real part of the first constellation point, and the first constellation point is any constellation point in the signal constellation diagram of the third sequence after rotation. The imaginary part of any first signal is the first artificial noise signal corresponding to any first signal. Optionally, the first artificial noise signals corresponding to the imaginary parts of different first signals may be the same or different.

下面对第一通信设备生成至少一个第一信号的过程进行说明。The following describes a process in which the first communication device generates at least one first signal.

第一通信设备在将第三序列的信号星座图旋转第一角度后,可提取旋转后的信号星座图中每个星座点的实部,并在虚部注入第一人工噪声以得到待发送的复信号(即第一信号)。第一通信设备产生的任一待发送的复信号为:After rotating the signal constellation diagram of the third sequence by the first angle, the first communication device may extract the real part of each constellation point in the rotated signal constellation diagram, and inject the first artificial noise into the imaginary part to obtain a complex signal to be transmitted (i.e., the first signal). Any complex signal to be transmitted generated by the first communication device is:

tA=Re{sA}+jwA t A = Re{s A } + jw A

其中,Re{}是取实部操作,xA为第三序列中的符号,θ2为第一角度,wA为xA对应的第一人工噪声信号。Among them, Re{} is the real part operation, x A is a symbol in the third sequence, θ 2 is a first angle, and w A is a first artificial noise signal corresponding to x A.

第一通信设备对第三序列中的每个符号均执行上述操作,得到至少一个第一信号;然后第一通信设备可对至少第一信号进行正交频分复用(orthogonal frequencydivision multiplexing,OFDM)调制,产生时域信号。应理解,此处仅以OFDM技术传输信息为例进行说明,本申请并不限于此,例如,本申请也可以适用于不采用OFDM技术的通信系统。The first communication device performs the above operation on each symbol in the third sequence to obtain at least one first signal; then the first communication device can perform orthogonal frequency division multiplexing (OFDM) modulation on at least the first signal to generate a time domain signal. It should be understood that only the OFDM technology is used as an example to transmit information, and the present application is not limited to this. For example, the present application can also be applied to a communication system that does not use OFDM technology.

可选的,在上述方法的一种实施场景中,在步骤S303之前,第二通信设备可通过步骤E1-E2生成用于指示第一序列的第一指示:Optionally, in an implementation scenario of the above method, before step S303, the second communication device may generate a first indication for indicating the first sequence through steps E1-E2:

E1:第二通信设备对第一序列进行编码调制,得到第四序列。其中,第四序列中的任一符号为复数。该第四序列可记为yB,第四序列中的符号可记为xB。其中,第四序列中的符号数为O,1≤b≤O,O为正整数。E1: The second communication device performs coding modulation on the first sequence to obtain a fourth sequence. Any symbol in the fourth sequence is a complex number. The fourth sequence can be recorded as y B , and the symbol in the fourth sequence can be recorded as x B . The number of symbols in the fourth sequence is O, 1≤b≤O, and O is a positive integer.

E2:第二通信设备可根据星座旋转后的第四序列的信号星座图和第二人工噪声信号,生成包含至少一个第三信号的第一指示。E2: The second communication device may generate a first indication including at least one third signal according to the signal constellation diagram of the fourth sequence after the constellation rotation and the second artificial noise signal.

其中,步骤E2的具体内容可参考步骤D2,只是将第一通信设备替换为第二通信设备,将第三序列中的符号替换为第四序列的符号,第一角度替换为第二角度,此处不再赘述。Among them, the specific content of step E2 can refer to step D2, except that the first communication device is replaced by the second communication device, the symbols in the third sequence are replaced by the symbols in the fourth sequence, and the first angle is replaced by the second angle, which will not be repeated here.

通过E2,第二通信设备在将第四序列的信号星座图旋转第二角度后,可提取旋转后的信号星座图中每个星座点的实部,并在虚部注入人工噪声以得到待发送的复信号(即第三信号)。第二通信设备产生的任一待发送的复信号为:Through E2, after rotating the signal constellation diagram of the fourth sequence by a second angle, the second communication device can extract the real part of each constellation point in the rotated signal constellation diagram, and inject artificial noise into the imaginary part to obtain a complex signal to be sent (i.e., the third signal). Any complex signal to be sent generated by the second communication device is:

tB=Re{sB}+jwB t B = Re {s B } + jw B

其中,Re{}是取实部操作,xB为第四序列中的符号,θ3为第二角度,wB为xB对应的第二人工噪声信号。Among them, Re{} is the real part operation, x B is a symbol in the fourth sequence, θ 3 is a second angle, and w B is a second artificial noise signal corresponding to x B.

第二通信设备对第四序列中的每个符号均执行上述操作,得到至少一个第三信号;然后第二通信设备可对至少第三信号进行OFDM调制,产生时域信号。The second communication device performs the above operation on each symbol in the fourth sequence to obtain at least one third signal; then the second communication device may perform OFDM modulation on at least the third signal to generate a time domain signal.

可选的,第二角度为使得第一通信设备的平均误符号率最小的角度。第二角度的具体内容可参考第一角度的说明,此处不再赘述。通过该方法,第二通信设备通过第二角度对第四序列的信号星座图进行旋转,可使得第一通信设备的平均误符号率最小,从而可提高第一通信设备接收用于指示第一序列的指示的准确性,进而可降低密钥不一致率。Optionally, the second angle is an angle that minimizes the average symbol error rate of the first communication device. The specific content of the second angle can refer to the description of the first angle, which is not repeated here. Through this method, the second communication device rotates the signal constellation diagram of the fourth sequence through the second angle, which can minimize the average symbol error rate of the first communication device, thereby improving the accuracy of the first communication device receiving the indication for indicating the first sequence, and further reducing the key inconsistency rate.

另外,第一角度可与第二角度相同,也可以与第二角度不同。In addition, the first angle may be the same as or different from the second angle.

下面说明第一通信设备根据第一指示确定第一序列的方法和第二通信设备根据第二指示确定第二序列的方法。The following describes a method in which a first communication device determines a first sequence according to a first indication and a method in which a second communication device determines a second sequence according to a second indication.

可选的,在S303之后,第一通信设备可通过步骤F1-F2来根据第一指示确定第一序列:Optionally, after S303, the first communications device may determine the first sequence according to the first indication through steps F1-F2:

F1:第一通信设备可对至少一个第二信号进行滤波,得到至少一个第三信号;其中,至少一个第三信号是根据星座旋转后的第四序列的信号星座图和第二人工噪声信号生成的,第四序列为对第一序列进行编码调制后得到的序列,第四序列中的任一符号为复数。F1: The first communication device can filter at least one second signal to obtain at least one third signal; wherein, the at least one third signal is generated according to the signal constellation diagram of the fourth sequence after the constellation rotation and the second artificial noise signal, the fourth sequence is a sequence obtained by coding and modulating the first sequence, and any symbol in the fourth sequence is a complex number.

应理解,虽然第二通信设备发送的第一指示包括至少一个第三信号;但是,在传输过程中信号可能会发生变化,在步骤S303中,第一通信设备接收到的第一指示包括至少一个第二信号;也就是说,在传输过程中,至少一个第三信号转变为至少一个第二信号。It should be understood that although the first indication sent by the second communication device includes at least one third signal, the signal may change during the transmission process. In step S303, the first indication received by the first communication device includes at least one second signal. That is, during the transmission process, at least one third signal is converted into at least one second signal.

在本步骤F1中,第一通信设备通过对至少一个第二信号进行滤波,从而得到第二通信设备发送的至少一个第三信号。In this step F1, the first communication device obtains at least one third signal sent by the second communication device by filtering at least one second signal.

可选的,至少一个第三信号的实部与旋转第二角度之后的第四序列的信号星座图中的星座点一一对应;具体的,与第二星座点对应的第三信号的实部为第二星座点的实部,第二星座点为旋转第二角度之后的第四序列的信号星座图中的任一星座点。任一第三信号的虚部为与任一第三信号对应的第二人工噪声信号。可选的,不同第三信号的虚部对应的第二人工噪声信号可以相同,也可以不同。Optionally, the real part of at least one third signal corresponds one-to-one to a constellation point in the fourth sequence of signal constellation diagrams after rotation by the second angle; specifically, the real part of the third signal corresponding to the second constellation point is the real part of the second constellation point, and the second constellation point is any constellation point in the fourth sequence of signal constellation diagrams after rotation by the second angle. The imaginary part of any third signal is the second artificial noise signal corresponding to any third signal. Optionally, the second artificial noise signals corresponding to the imaginary parts of different third signals may be the same or different.

其中,至少一个第三信号的具体内容可参考步骤E2,此处不再赘述。The specific content of the at least one third signal may refer to step E2 and will not be repeated here.

F2:第一通信设备可根据至少一个第三信号,确定第一序列。F2: The first communication device may determine the first sequence according to at least one third signal.

其中,F2可包括步骤G1-G2:Wherein, F2 may include steps G1-G2:

G1:第一通信设备根据至少一个第三信号的实部,确定第四序列。G1: The first communications device determines a fourth sequence according to a real part of at least one third signal.

具体的,第一通信设备可通过如下步骤确定第四序列:Specifically, the first communication device may determine the fourth sequence through the following steps:

步骤I1:第一通信设备可确定旋转第二角度之后的第四序列的信号星座图中每个星座点的实部。具体的,由于至少一个第三信号的实部与旋转第二角度之后的第四序列的信号星座图中的星座点一一对应,因此,第一通信设备根据至少一个第三信号的实部,即可确定旋转第二角度之后的第四序列的信号星座图中每个星座点的实部。Step I1: The first communication device may determine the real part of each constellation point in the fourth sequence of signal constellation diagrams after being rotated by the second angle. Specifically, since the real part of at least one third signal corresponds one-to-one to the constellation point in the fourth sequence of signal constellation diagrams after being rotated by the second angle, the first communication device may determine the real part of each constellation point in the fourth sequence of signal constellation diagrams after being rotated by the second angle based on the real part of at least one third signal.

步骤I2:第一通信设备可确定旋转第二角度之后的第四序列的信号星座图中每个星座点。具体的,在旋转后的信号星座图(例如,图4右侧信号星座图)中,仅利用1个信号空间维度即可区分所有星座点;因此,第一通信设备可根据旋转后每个星座点的实部,分别确定旋转第二角度之后的第四序列的信号星座图中的每个星座点。Step I2: The first communication device may determine each constellation point in the fourth sequence of signal constellation diagrams after the rotation by the second angle. Specifically, in the rotated signal constellation diagram (e.g., the signal constellation diagram on the right side of FIG. 4 ), all constellation points may be distinguished using only one signal space dimension; therefore, the first communication device may determine each constellation point in the fourth sequence of signal constellation diagrams after the rotation by the second angle, respectively, based on the real part of each constellation point after the rotation.

步骤I3:第一通信设备可将确定的每个星座点进行星座旋转负的第二角度之后,即可得到第四序列的原始信号星座图,从而确定出第四序列。Step I3: The first communication device may perform a constellation rotation on each determined constellation point by a negative second angle to obtain an original signal constellation diagram of the fourth sequence, thereby determining the fourth sequence.

G2:第一通信设备对第四序列进行解调,得到第一序列。G2: The first communication device demodulates the fourth sequence to obtain the first sequence.

通过上述方法,第一通信设备可方便的确定出第一序列。Through the above method, the first communication device can conveniently determine the first sequence.

可选的,第二通信设备也可以通过与F1-F2类似的方法确定出第二序列,此处不再赘述。Optionally, the second communication device may also determine the second sequence by a method similar to F1-F2, which will not be described in detail here.

本申请实施例还提供了一种物理层密钥生成方法。该方法示出了图3所示方法的一种可能的实现方式。对于每次密钥的生成,该方法可包括三个阶段:The embodiment of the present application also provides a physical layer key generation method. The method shows a possible implementation of the method shown in Figure 3. For each key generation, the method may include three stages:

阶段1:本地熵源提取。Phase 1: Local entropy source extraction.

阶段2:全双工辅助的安全信息交换。Phase 2: Full-duplex assisted security information exchange.

阶段3:密钥生成。Phase 3: Key generation.

下面分别对这三个阶段进行说明。The three stages are described below.

阶段1:本地熵源提取。Phase 1: Local entropy source extraction.

在该阶段中,通信双方(即第一通信设备和第二通信设备)分别提取本地熵源(例如,图3所示方法中的随机噪声),并根据本地熵源生成本地密钥序列。该阶段可发生在合法通信双方的信道估计阶段,即发生在数据传输开始之前的信道估计过程中。目前,在数据传输开始之前通信双方也会进行信道估计,因此,本实施例可复用现有流程,无需额外的空口开销。In this stage, the communicating parties (i.e., the first communication device and the second communication device) respectively extract a local entropy source (e.g., the random noise in the method shown in FIG. 3 ), and generate a local key sequence based on the local entropy source. This stage may occur in the channel estimation stage of the legitimate communicating parties, that is, in the channel estimation process before the start of data transmission. Currently, the communicating parties also perform channel estimation before the start of data transmission. Therefore, this embodiment can reuse the existing process without the need for additional air interface overhead.

可选的,第一通信设备向第二通信设备发送第一导频信号之后,第二通信设备可通过信道估计生成本地密钥序列(即图3所示方法中的第一序列),第二通信设备生成第一序列的方式可参考对S302的说明,此处不再赘述。第一序列可记为kBOptionally, after the first communication device sends the first pilot signal to the second communication device, the second communication device may generate a local key sequence (i.e., the first sequence in the method shown in FIG3 ) through channel estimation. The manner in which the second communication device generates the first sequence can refer to the description of S302 and will not be described again here. The first sequence may be denoted as k B .

类似的,第二通信设备向第一通信设备发送第二导频信号之后,第一通信设备可通过信道估计生成本地密钥序列(即图3所示方法中的第二序列),第一通信设备生成第二序列的方式可参考对S305的说明,此处不再赘述。第二序列可记为kASimilarly, after the second communication device sends the second pilot signal to the first communication device, the first communication device can generate a local key sequence (i.e., the second sequence in the method shown in FIG3 ) through channel estimation. The manner in which the first communication device generates the second sequence can refer to the description of S305 and will not be described again here. The second sequence can be denoted as k A .

阶段2:全双工辅助的安全信息交换。Phase 2: Full-duplex assisted security information exchange.

该阶段2可包括如下步骤H1-H3:This stage 2 may include the following steps H1-H3:

H1:通信双方(即第一通信设备和第二通信设备)分别对各自得到的本地密钥序列进行编码调制,得到复值符号序列。H1: The communicating parties (ie, the first communication device and the second communication device) respectively encode and modulate their respective local key sequences to obtain complex-valued symbol sequences.

具体的,第一通信设备对第二序列kA进行编码、调制,得到第三序列yA。其中,第三序列中的符号数为L,第三序列中的符号可记为xA,1≤A≤L,L为正整数。Specifically, the first communication device encodes and modulates the second sequence k A to obtain a third sequence y A , wherein the number of symbols in the third sequence is L, and the symbols in the third sequence can be denoted by x A , 1≤A≤L, and L is a positive integer.

第二通信设备对第一序列kB进行编码、调制,得到第四序列yB。其中,第四序列中的符号数为O,第四序列中的符号可记为xB,1≤B≤O,O为正整数。The second communication device encodes and modulates the first sequence k B to obtain a fourth sequence y B , wherein the number of symbols in the fourth sequence is O, and the symbols in the fourth sequence can be recorded as x B , 1≤B≤O, and O is a positive integer.

H2:通信双方(即第一通信设备和第二通信设备)分别将其得到的复值符号序列的信号星座图进行星座旋转,并通过添加人工噪声来分别生成用于指示第二序列的信号(即第二指示)和用于指示第一序列的信号(即第一指示)。H2: The communicating parties (i.e., the first communication device and the second communication device) respectively perform constellation rotation on the signal constellation diagrams of the complex-valued symbol sequences they obtain, and respectively generate a signal for indicating the second sequence (i.e., the second indication) and a signal for indicating the first sequence (i.e., the first indication) by adding artificial noise.

第一通信设备对第三序列的信号星座图进行星座旋转以及生成用于指示第二序列的信号的方式可参考步骤D1-D2,第二通信设备对第四序列的信号星座图进行星座旋转以及生成用于指示第一序列的信号的方式可参考步骤E1-E2,此处不再赘述。The manner in which the first communication device performs constellation rotation on the signal constellation diagram of the third sequence and generates a signal for indicating the second sequence may be referred to steps D1-D2, and the manner in which the second communication device performs constellation rotation on the signal constellation diagram of the fourth sequence and generates a signal for indicating the first sequence may be referred to steps E1-E2, which will not be repeated here.

H3:通信双方(即第一通信设备和第二通信设备)分别向对方发送用于指示第二序列的信号和用于指示第一序列的信号,并分别根据接收的信号确定对方生成的序列。H3: The communicating parties (ie, the first communication device and the second communication device) respectively send a signal indicating the second sequence and a signal indicating the first sequence to each other, and determine the sequence generated by the other party according to the received signals.

下面以第二通信设备确定第二序列为例进行说明。第二通信设备确定第二序列的方式可参考步骤F1-F2,重复之处此处不再赘述。The following description is made by taking the second communication device determining the second sequence as an example. The manner in which the second communication device determines the second sequence can refer to steps F1-F2, and the repetitive parts are not repeated here.

第一通信设备向第二通信设备发送步骤H2中生成的信号。第二通信设备在接收到该信号后,执行自干扰消除,并通过快速傅里叶变换(fast fourier transform,FFT)对接收到的信号进行OFDM解调,得到频域接收信号。在任一子载波上,频域接收信号可为:The first communication device sends the signal generated in step H2 to the second communication device. After receiving the signal, the second communication device performs self-interference elimination and performs OFDM demodulation on the received signal through fast Fourier transform (FFT) to obtain a frequency domain received signal. On any subcarrier, the frequency domain received signal can be:

其中,HAB为第一通信设备到第二通信设备的链路的频域信道系数,xSI为残存的自干扰,zB为第二通信设备在频域的接收机噪声,tA的具体内容可参考步骤D2。Wherein, H AB is the frequency domain channel coefficient of the link from the first communication device to the second communication device, x SI is the residual self-interference, z B is the receiver noise of the second communication device in the frequency domain, and the specific content of t A can refer to step D2.

第二通信设备使用阶段1信道估计过程中得到的对频域接收信号依次进行如下处理:匹配滤波、提取实部、最大似然判决,从而得到对Re{sA}的判决结果(即得到Re{sA})。根据星座旋转的原理,Re{sA}和sA一一对应;因此,第二通信设备可根据Re{sA}的判决结果唯一确定sA的判决结果(即确定sA)。由于星座旋转操作为可逆操作,因此,第二通信设备可获得xA的判决结果,从而得到第三序列yA。第二通信设备可对第三序列yA进行解调操作,得到 The second communication device uses the channel estimation process obtained in phase 1 The frequency domain received signal is processed in sequence as follows: matched filtering, extraction of real part, maximum likelihood decision, so as to obtain the decision result of Re{s A } (i.e., obtain Re{s A }). According to the principle of constellation rotation, Re{s A } and s A correspond one to one; therefore, the second communication device can uniquely determine the decision result of s A (i.e., determine s A ) according to the decision result of Re{s A }. Since the constellation rotation operation is a reversible operation, the second communication device can obtain the decision result of x A , thereby obtaining the third sequence y A. The second communication device can perform a demodulation operation on the third sequence y A to obtain

由于传输过程中可能存在误码,因此,序列和第二序列kA可能相同,也可能不完全相同。当第二通信设备发现序列和第二序列kA不完全相同时,可继续获取并解析用于指示第二序列kA的信号,直到与第二序列kA完全相同。Since there may be bit errors during transmission, the sequence The second sequence k A may be the same as or different from the second sequence k A. When the signal indicating the second sequence k A is not completely the same as the second sequence k A , the signal indicating the second sequence k A may continue to be acquired and analyzed until Exactly the same as the second sequence k A.

其中,第二通信设备可以但不限于通过如下方式确定序列和第二序列kA不完全相同:The second communication device may determine the sequence in the following manner, but is not limited to: and the second sequence k A is not exactly the same:

第二通信设备在接收到第二指示后,可对第二指示进行循环冗余校验(cycleredundancy check,CRC)。若校验通过,则第二通信设备可确定第一通信设备到第二通信设备的传输无误,即:第二通信设备根据接收到的第二指示确定的就是第一通信设备发送的kA。若校验未通过,则第二通信设备判断第一通信设备到第二通信设备的传输存在错误;此时,第二通信设备可向第一通信设备发送重传请求,以请求第一通信设备重新发送用于指示第二序列的第二指示。After receiving the second indication, the second communication device may perform a cyclic redundancy check (CRC) on the second indication. If the check passes, the second communication device may determine that the transmission from the first communication device to the second communication device is correct, that is, the second communication device determines the is k A sent by the first communication device. If the check fails, the second communication device determines that there is an error in the transmission from the first communication device to the second communication device; at this time, the second communication device can send a retransmission request to the first communication device to request the first communication device to resend the second indication for indicating the second sequence.

第一通信设备确定第一序列的方式可参考第二通信设备确定第二序列的方式。例如,在第一通信设备发送步骤H2中生成的信号的同时,第二通信设备也可以向第一通信设备发送其在步骤H2中生成的信号。然后,第一通信设备可通过与第二通信设备确定第二序列的方式类似的方式确定第一序列。The way in which the first communication device determines the first sequence may refer to the way in which the second communication device determines the second sequence. For example, while the first communication device sends the signal generated in step H2, the second communication device may also send the signal generated in step H2 to the first communication device. Then, the first communication device may determine the first sequence in a manner similar to the way in which the second communication device determines the second sequence.

由于传输过程中可能存在误码,因此,第一通信设备得到的序列可能和第一序列kB不完全相同;当第一通信设备发现序列可能和第一序列kB不完全相同时,可继续获取并解析用于指示第一序列kB的信号,直到和第一序列kB完全相同。Since there may be bit errors during the transmission process, the sequence obtained by the first communication device may not be completely identical to the first sequence k B ; when the first communication device finds the sequence When the signal indicating the first sequence k B may not be completely the same as the first sequence k B , the signal indicating the first sequence k B may continue to be acquired and parsed until Exactly the same as the first sequence k B.

阶段3:密钥生成。Phase 3: Key generation.

通过阶段2,第一通信设备可获取到kA,第二通信设备可获取到kB。在阶段3中,第一通信设备可参考S306生成密钥,第二通信设备可参考S308生成密钥,重复之处不再赘述。Through stage 2, the first communication device can obtain k A , The second communication device can obtain k B . In phase 3, the first communication device may refer to S306 to generate a key, and the second communication device may refer to S308 to generate a key, and the repeated parts will not be repeated.

示例性的,第一通信设备和第二通信设备可分别将本地密钥序列与接收到的密钥序列拼接在一起,得到最终的密钥。这样,第一通信设备得到的密钥可为:Exemplarily, the first communication device and the second communication device may respectively concatenate the local key sequence with the received key sequence to obtain the final key. In this way, the key obtained by the first communication device may be:

第二通信设备得到的密钥可为:The key obtained by the second communication device may be:

然后,第一通信设备和第二通信设备可使用生成的密钥进行通信。Then, the first communication device and the second communication device can communicate using the generated key.

通过该方法,通信双方先独立提取本地熵源并生成本地密钥序列,再将本端生成的这部分序列通知给对端(即双向信息交互),从而无须执行信息调和的过程,进而可减少开销。Through this method, the communicating parties first independently extract the local entropy source and generate a local key sequence, and then notify the other party of the sequence generated by the local end (i.e., two-way information interaction), thereby eliminating the need to perform the information reconciliation process and reducing overhead.

此外,本实施例中,通信双方可将通信双方生成的本地密钥序列进行拼接,从而生成最终密钥;密钥的不一致率和传输误码率基本一致。相对于图2所示方法,本实施例可降低通信双方生成密钥的不一致率。In addition, in this embodiment, the communicating parties can concatenate the local key sequences generated by the communicating parties to generate the final key; the key inconsistency rate is basically consistent with the transmission bit error rate. Compared with the method shown in Figure 2, this embodiment can reduce the inconsistency rate of the keys generated by the communicating parties.

并且,本实施例中,通信双方可将通信双方生成的本地密钥序列进行拼接,从而生成最终密钥(即采用去并集的方式生成密钥)。相对于图2所示方法中通过取交集的方式生成密钥,本实施例可提高密钥生成速率。Moreover, in this embodiment, the communicating parties can concatenate the local key sequences generated by the communicating parties to generate the final key (i.e., generate the key by removing the union). Compared with the method shown in FIG2 in which the key is generated by taking the intersection, this embodiment can increase the key generation rate.

另外,本实施例中,通信双方均为全双工通信设备,可同时同频发送用于指示本地密钥序列的信号;这样,第三通信设备接收到的信号为通信双方发送的信号的叠加。并且,通信双方采用物理层安全传输技术(例如,星座旋转和注入人工噪声)对指示本地密钥序列的信号进行处理;这进一步增加了第三通信设备获取本地密钥序列的难度。因此,本实施例可保障通信双方信息交互的安全性,有效避免第三通信设备获取到密钥。In addition, in this embodiment, both communicating parties are full-duplex communication devices, and can simultaneously send signals indicating the local key sequence at the same frequency; in this way, the signal received by the third communication device is the superposition of the signals sent by the two communicating parties. In addition, the two communicating parties use physical layer security transmission technology (for example, constellation rotation and injection of artificial noise) to process the signal indicating the local key sequence; this further increases the difficulty for the third communication device to obtain the local key sequence. Therefore, this embodiment can ensure the security of information exchange between the two communicating parties and effectively prevent the third communication device from obtaining the key.

图6为本实施例的一种应用场景的示意图。下面结合图6,说明本实施例所示的方法在图6所示的应用场景中的应用。Fig. 6 is a schematic diagram of an application scenario of this embodiment. In conjunction with Fig. 6 , the application of the method shown in this embodiment in the application scenario shown in Fig. 6 is described below.

在图6所示的场景中,第一通信设备与第二通信设备同时同频传输信息(例如,交互步骤H2中生成的信号),第三通信设备可同时接收到第一通信设备和第二通信设备发送的信号。In the scenario shown in FIG6 , the first communication device and the second communication device transmit information (eg, the signal generated in the interaction step H2 ) simultaneously and at the same frequency, and the third communication device can simultaneously receive the signals sent by the first communication device and the second communication device.

第一通信设备和第二通信设备可通过本实施例的方式生成密钥。从而可减少开销,降低通信双方生成密钥的不一致率,提高密钥生成速率。The first communication device and the second communication device can generate keys in the manner of this embodiment, thereby reducing overhead, lowering the inconsistency rate of keys generated by the communicating parties, and improving the key generation rate.

下面介绍在该场景中,第三通信设备的操作。The following describes the operation of the third communication device in this scenario.

当第一通信设备与第二通信设备同时同频传输步骤H2中生成的信号时,第三通信设备在任一子载波上的接收信号可表示为:When the first communication device and the second communication device transmit the signal generated in step H2 simultaneously and at the same frequency, the received signal of the third communication device on any subcarrier can be expressed as:

YE=tAHAE+tBHBE+zE Y E =t A H AE +t B H BE +z E

=(Re{sA}+jwA)HAE+(Re{sB}+jwB)HBE+zE =(Re{s A }+jw A )H AE +(Re{s B }+jw B )H BE +z E

=Re{sA}HAE+Re{sB}HBE+jwAHAE+jwBHBE+zE =Re{s A }H AE +Re{s B }H BE +jw A H AE +jw B H BE +z E

其中,HAE为第一通信设备到第三通信设备的链路的频域信道系数,HBE为第二通信设备到第三通信设备的链路的频域信道系数,zE为第三通信设备在频域的接收机噪声。Among them, H AE is the frequency domain channel coefficient of the link from the first communication device to the third communication device, H BE is the frequency domain channel coefficient of the link from the second communication device to the third communication device, and z E is the receiver noise of the third communication device in the frequency domain.

第三通信设备需通过联合最大似然译码恢复第一通信设备和第二通信设备发送的信息。但由于引入了人工噪声,第三通信设备侧解码时会出现很高的译码平台。无论第三通信设备是直接基于复信号解码还是提取实部或虚部后解码,人工噪声的影响均存在,上述误码平台无法被消除。因此,采用本申请所述的方法,第三通信设备无法获取用于生成密钥的序列。The third communication device needs to recover the information sent by the first communication device and the second communication device through joint maximum likelihood decoding. However, due to the introduction of artificial noise, a very high decoding platform will appear when decoding on the third communication device side. Regardless of whether the third communication device decodes directly based on the complex signal or extracts the real part or the imaginary part before decoding, the influence of artificial noise exists, and the above-mentioned error platform cannot be eliminated. Therefore, using the method described in this application, the third communication device cannot obtain the sequence used to generate the key.

而当第三通信设备处于极端位置时(例如,第三通信设备处于第一通信设备或第二通信设备附近,且第一通信设备和第二通信设备之间的距离很大(例如,大于第一距离阈值)),第三通信设备可以忽略来自第一通信设备和第二通信设备中距离第三通信设备较远的通信设备的信号,从而高质量的恢复出第一通信设备和第二通信设备中距离第三通信设备较近的通信设备的信号。但是,本申请中,最终生成的密钥同时依赖于第一通信设备和第二通信设备生成的序列,因此,在该场景下,第三通信设备仍无法推测出密钥。When the third communication device is in an extreme position (for example, the third communication device is near the first communication device or the second communication device, and the distance between the first communication device and the second communication device is large (for example, greater than the first distance threshold)), the third communication device can ignore the signal from the communication device that is farther away from the third communication device among the first communication device and the second communication device, thereby recovering the signal from the communication device that is closer to the third communication device among the first communication device and the second communication device with high quality. However, in the present application, the key finally generated depends on the sequence generated by the first communication device and the second communication device at the same time. Therefore, in this scenario, the third communication device still cannot infer the key.

因此,本实施例可利用全双工通信设备所带来的信号叠加特性以及物理层安全传输技术(例如,星座旋转和注入人工噪声),从而可保障通信双方信息交互的安全性,有效避免第三通信设备获取到密钥。Therefore, this embodiment can utilize the signal superposition characteristics brought by full-duplex communication equipment and physical layer security transmission technology (for example, constellation rotation and injection of artificial noise), so as to ensure the security of information exchange between the communicating parties and effectively prevent a third communication device from obtaining the key.

基于与图3方法实施例相同的发明构思,本申请实施例通过图7提供了一种物理层密钥生成装置,可用于执行上述方法实施例中相关步骤的功能。所述功能可以通过硬件实现,也可以通过软件或者硬件执行相应的软件实现。所述硬件或软件包括一个或多个与上述功能相对应的模块。该物理层密钥生成装置的结构如图7所示,包括通信单元701和处理单元702。所述物理层密钥生成装置700可以应用于终端设备或网络设备,并可以实现以上本申请实施例以及实例提供的物理层密钥生成方法。下面对所述物理层密钥生成装置700中的各个单元的功能进行介绍。Based on the same inventive concept as the method embodiment of FIG3 , the embodiment of the present application provides a physical layer key generation device through FIG7 , which can be used to execute the functions of the relevant steps in the above method embodiment. The functions can be implemented by hardware, or by software or hardware executing corresponding software implementations. The hardware or software includes one or more modules corresponding to the above functions. The structure of the physical layer key generation device is shown in FIG7 , including a communication unit 701 and a processing unit 702. The physical layer key generation device 700 can be applied to a terminal device or a network device, and can implement the physical layer key generation method provided in the above embodiments and examples of the present application. The functions of each unit in the physical layer key generation device 700 are introduced below.

所述通信单元701,用于接收和发送数据。The communication unit 701 is used to receive and send data.

其中,所述通信单元701可以通过收发器实现,例如,移动通信模块。其中,移动通信模块可以包括至少一个天线、至少一个滤波器,开关,功率放大器,低噪声放大器(lownoise amplifier,LNA)等。所述网络设备可以通过所述移动通信模块与接入的终端设备进行通信。The communication unit 701 may be implemented by a transceiver, for example, a mobile communication module. The mobile communication module may include at least one antenna, at least one filter, a switch, a power amplifier, a low noise amplifier (LNA), etc. The network device may communicate with the connected terminal device through the mobile communication module.

所述处理单元702可用于支持所述物理层密钥生成装置700执行上述方法实施例中的处理动作。所述处理单元702可以是通过处理器实现。例如,所述处理器可以为中央处理单元(central processing unit,CPU),还可以是其它通用处理器、数字信号处理器(digital signal processor,DSP)、专用集成电路(application specific integratedcircuit,ASIC)、现场可编程门阵列(field programmable gate array,FPGA)或者其它可编程逻辑器件、晶体管逻辑器件,硬件部件或者其任意组合。通用处理器可以是微处理器,也可以是任何常规的处理器。The processing unit 702 can be used to support the physical layer key generation device 700 to perform the processing actions in the above method embodiment. The processing unit 702 can be implemented by a processor. For example, the processor can be a central processing unit (CPU), or other general-purpose processors, digital signal processors (DSP), application specific integrated circuits (ASIC), field programmable gate arrays (FPGA) or other programmable logic devices, transistor logic devices, hardware components or any combination thereof. The general-purpose processor can be a microprocessor or any conventional processor.

在一种实施方式中,所述物理层密钥生成装置700应用于图2所示的第一通信设备。下面对该实施方式中的所述处理单元702的具体功能进行介绍。In one implementation, the physical layer key generation apparatus 700 is applied to the first communication device shown in Fig. 2. The specific functions of the processing unit 702 in this implementation are introduced below.

所述处理单元702,用于:The processing unit 702 is configured to:

通过所述通信单元701,向第二通信设备发送第一导频信号,接收来自所述第二通信设备的第一指示;所述第一指示用于指示第一序列,所述第一导频信号用于触发所述第二通信设备生成所述第一序列;Sending a first pilot signal to a second communication device through the communication unit 701, and receiving a first indication from the second communication device; the first indication is used to indicate a first sequence, and the first pilot signal is used to trigger the second communication device to generate the first sequence;

在通过所述通信单元701接收来自所述第二通信设备的第二导频信号后,生成第二序列;所述第二导频信号用于触发所述第一通信设备生成所述第二序列;After receiving a second pilot signal from the second communication device through the communication unit 701, a second sequence is generated; the second pilot signal is used to trigger the first communication device to generate the second sequence;

生成第一密钥;所述第一密钥包括所述第二序列中的所有符号和所述第一序列中的所有符号,所述第一密钥用于所述第一通信设备与所述第二通信设备之间的通信。A first key is generated; the first key includes all symbols in the second sequence and all symbols in the first sequence, and the first key is used for communication between the first communication device and the second communication device.

可选的,所述处理单元702具体用于:确定所述第二导频信号所对应的频域信道系数;对所述频域信道系数进行快速傅里叶反变换,得到信道响应函数;对所述信道响应函数中小于或等于第一阈值的抽头系数进行量化,得到所述第二序列。Optionally, the processing unit 702 is specifically used to: determine the frequency domain channel coefficients corresponding to the second pilot signal; perform inverse fast Fourier transform on the frequency domain channel coefficients to obtain a channel response function; and quantize the tap coefficients in the channel response function that are less than or equal to a first threshold to obtain the second sequence.

可选的,所述处理单元702具体用于:在生成第二序列之后,通过所述通信单元701向所述第二通信设备发送第二指示,所述第二指示用于指示所述第二序列。Optionally, the processing unit 702 is specifically used to: after generating the second sequence, send a second indication to the second communication device through the communication unit 701, where the second indication is used to indicate the second sequence.

可选的,所述处理单元702具体用于:在通过所述通信单元701向所述第二通信设备发送第二指示之前,对所述第二序列进行编码调制,得到第三序列;所述第三序列中的任一符号为复数;根据星座旋转后的所述第三序列的信号星座图和第一人工噪声信号,生成所述第二指示。Optionally, the processing unit 702 is specifically used to: before sending the second indication to the second communication device through the communication unit 701, encode and modulate the second sequence to obtain a third sequence; any symbol in the third sequence is a complex number; and generate the second indication based on the signal constellation diagram of the third sequence after constellation rotation and the first artificial noise signal.

可选的,所述处理单元702具体用于:Optionally, the processing unit 702 is specifically configured to:

将所述第三序列的信号星座图旋转第一角度,旋转后的所述第三序列的信号星座图中任意两个星座点的实部和虚部均不相同;Rotating the signal constellation diagram of the third sequence by a first angle, so that the real parts and imaginary parts of any two constellation points in the signal constellation diagram of the third sequence after rotation are different;

生成第二指示;其中,所述第二指示包括至少一个第一信号,所述至少一个第一信号的实部与旋转后的所述第三序列的信号星座图中的星座点一一对应;与第一星座点对应的第一信号的实部为第一星座点的实部,所述第一星座点为旋转后的所述第三序列的信号星座图中的任一星座点;任一第一信号的虚部为与所述任一第一信号对应的所述第一人工噪声信号。Generate a second indication; wherein the second indication includes at least one first signal, the real part of the at least one first signal corresponds one-to-one to a constellation point in the signal constellation diagram of the third sequence after rotation; the real part of the first signal corresponding to the first constellation point is the real part of the first constellation point, and the first constellation point is any constellation point in the signal constellation diagram of the third sequence after rotation; the imaginary part of any first signal is the first artificial noise signal corresponding to the any first signal.

可选的,所述第一角度为使得第二通信设备的平均误符号率最小的角度。Optionally, the first angle is an angle that minimizes an average symbol error rate of the second communication device.

可选的,所述第一指示包括至少一个第二信号,所述处理单元702用于:Optionally, the first indication includes at least one second signal, and the processing unit 702 is configured to:

在通过所述通信单元701接收来自所述第二通信设备的第一指示之后,对所述至少一个第二信号进行滤波,得到至少一个第三信号;其中,所述至少一个第三信号是根据星座旋转后的第四序列的信号星座图和第二人工噪声信号生成的,所述第四序列为对所述第一序列进行编码调制后得到的序列,所述第四序列中的任一符号为复数;After receiving the first indication from the second communication device through the communication unit 701, filtering the at least one second signal to obtain at least one third signal; wherein the at least one third signal is generated according to the signal constellation diagram of a fourth sequence after constellation rotation and a second artificial noise signal, the fourth sequence is a sequence obtained by coding and modulating the first sequence, and any symbol in the fourth sequence is a complex number;

根据所述至少一个第三信号,确定所述第一序列。The first sequence is determined based on the at least one third signal.

可选的,所述至少一个第三信号的实部与旋转第二角度之后的所述第四序列的信号星座图中的星座点一一对应;其中,与第二星座点对应的第三信号的实部为第二星座点的实部,所述第二星座点为旋转所述第二角度之后的所述第四序列的信号星座图中的任一星座点;任一第三信号的虚部为与所述任一第三信号对应的所述第二人工噪声信号;Optionally, the real part of the at least one third signal corresponds one-to-one to a constellation point in the signal constellation diagram of the fourth sequence after being rotated by a second angle; wherein the real part of the third signal corresponding to the second constellation point is the real part of the second constellation point, and the second constellation point is any constellation point in the signal constellation diagram of the fourth sequence after being rotated by the second angle; the imaginary part of any third signal is the second artificial noise signal corresponding to any third signal;

所述处理单元702具体用于:The processing unit 702 is specifically used for:

根据所述至少一个第三信号的实部,确定所述第四序列;determining the fourth sequence according to the real part of the at least one third signal;

对所述第四序列进行解调,得到所述第一序列。The fourth sequence is demodulated to obtain the first sequence.

可选的,所述第二角度为使得第一通信设备的平均误符号率最小的角度。Optionally, the second angle is an angle that minimizes an average symbol error rate of the first communication device.

可选的,所述第一通信设备和所述第二通信设备为全双工通信设备。Optionally, the first communication device and the second communication device are full-duplex communication devices.

需要说明的是,本申请以上实施例中对模块的划分是示意性的,仅仅为一种逻辑功能划分,实际实现时可以有另外的划分方式,另外,在本申请各个实施例中的各功能单元可以集成在一个处理单元中,也可以是单独物理存在,也可以两个或两个以上单元集成在一个单元中。上述集成的单元既可以采用硬件的形式实现,也可以采用软件功能单元的形式实现。It should be noted that the division of modules in the above embodiments of the present application is schematic and is only a logical function division. There may be other division methods in actual implementation. In addition, each functional unit in each embodiment of the present application may be integrated into a processing unit, or may exist physically separately, or two or more units may be integrated into one unit. The above integrated unit may be implemented in the form of hardware or in the form of software functional units.

所述集成的单元如果以软件功能单元的形式实现并作为独立的产品销售或使用时,可以存储在一个计算机可读取存储介质中。基于这样的理解,本申请的技术方案本质上或者说对现有技术做出贡献的部分或者该技术方案的全部或部分可以以软件产品的形式体现出来,该计算机软件产品存储在一个存储介质中,包括若干指令用以使得一台计算机设备(可以是个人计算机,服务器,或者网络设备等)或处理器(processor)执行本申请各个实施例所述方法的全部或部分步骤。而前述的存储介质包括:U盘、移动硬盘、只读存储器(Read-Only Memory,ROM)、随机存取存储器(Random Access Memory,RAM)、磁碟或者光盘等各种可以存储程序代码的介质。If the integrated unit is implemented in the form of a software functional unit and sold or used as an independent product, it can be stored in a computer-readable storage medium. Based on this understanding, the technical solution of the present application is essentially or the part that contributes to the prior art or all or part of the technical solution can be embodied in the form of a software product, and the computer software product is stored in a storage medium, including a number of instructions to enable a computer device (which can be a personal computer, a server, or a network device, etc.) or a processor (processor) to perform all or part of the steps of the method described in each embodiment of the present application. The aforementioned storage medium includes: U disk, mobile hard disk, read-only memory (Read-Only Memory, ROM), random access memory (Random Access Memory, RAM), disk or optical disk and other media that can store program codes.

基于相同的技术构思,本申请实施例通过图8所示提供了一种物理层密钥生成设备,可用于执行上述方法实施例中相关的步骤。所述物理层密钥生成设备可以应用终端设备或网络设备,可以实现以上本申请实施例以及实例提供的物理层密钥生成方法,具有图7所示的物理层密钥生成装置的功能。参阅图8所示,所述物理层密钥生成设备800包括:通信模块801、处理器802以及存储器803。其中,所述通信模块801、所述处理器802以及所述存储器803之间相互连接。Based on the same technical concept, the embodiment of the present application provides a physical layer key generation device as shown in FIG8, which can be used to execute the relevant steps in the above method embodiment. The physical layer key generation device can be applied to a terminal device or a network device, and can implement the physical layer key generation method provided in the above embodiment and example of the present application, and has the function of the physical layer key generation device shown in FIG7. Referring to FIG8, the physical layer key generation device 800 includes: a communication module 801, a processor 802 and a memory 803. Among them, the communication module 801, the processor 802 and the memory 803 are interconnected.

可选的,所述通信模块801、所述处理器802以及所述存储器803之间通过总线804相互连接。所述总线804可以是外设部件互连标准(peripheral component interconnect,PCI)总线或扩展工业标准结构(extended industry standard architecture,EISA)总线等。所述总线可以分为地址总线、数据总线、控制总线等。为便于表示,图8中仅用一条粗线表示,但并不表示仅有一根总线或一种类型的总线。Optionally, the communication module 801, the processor 802 and the memory 803 are interconnected via a bus 804. The bus 804 may be a peripheral component interconnect (PCI) bus or an extended industry standard architecture (EISA) bus, etc. The bus may be divided into an address bus, a data bus, a control bus, etc. For ease of representation, FIG8 is represented by only one thick line, but it does not mean that there is only one bus or one type of bus.

所述通信模块801,用于接收和发送数据,实现与其他设备之间的通信交互。例如,所述通信模块801可以通过物理接口、通信模块、通信接口、输入输出接口实现。The communication module 801 is used to receive and send data to realize communication interaction with other devices. For example, the communication module 801 can be realized through a physical interface, a communication module, a communication interface, and an input/output interface.

所述处理器802可用于支持所述物理层密钥生成设备800执行上述方法实施例中的处理动作。当所述物理层密钥生成设备800用于实现上述方法实施例时,处理器802还可用于实现上述处理单元702的功能。所述处理器802可以是CPU,还可以是其它通用处理器、DSP、ASIC、FPGA或者其它可编程逻辑器件、晶体管逻辑器件,硬件部件或者其任意组合。通用处理器可以是微处理器,也可以是任何常规的处理器。The processor 802 may be used to support the physical layer key generation device 800 in executing the processing actions in the above method embodiment. When the physical layer key generation device 800 is used to implement the above method embodiment, the processor 802 may also be used to implement the functions of the above processing unit 702. The processor 802 may be a CPU, or other general-purpose processors, DSPs, ASICs, FPGAs, or other programmable logic devices, transistor logic devices, hardware components, or any combination thereof. A general-purpose processor may be a microprocessor, or any conventional processor.

在一种实施方式中,所述物理层密钥生成设备800应用于图3所示的本申请实施例中的TNF。所述处理器802具体用于:In one implementation, the physical layer key generation device 800 is applied to the TNF in the embodiment of the present application shown in FIG3. The processor 802 is specifically configured to:

通过所述通信模块801,向第二通信设备发送第一导频信号,接收来自所述第二通信设备的第一指示;所述第一指示用于指示第一序列,所述第一导频信号用于触发所述第二通信设备生成所述第一序列;Sending a first pilot signal to a second communication device through the communication module 801, and receiving a first indication from the second communication device; the first indication is used to indicate a first sequence, and the first pilot signal is used to trigger the second communication device to generate the first sequence;

在通过所述通信模块801接收来自所述第二通信设备的第二导频信号后,生成第二序列;所述第二导频信号用于触发所述第一通信设备生成所述第二序列;After receiving a second pilot signal from the second communication device through the communication module 801, a second sequence is generated; the second pilot signal is used to trigger the first communication device to generate the second sequence;

生成第一密钥;所述第一密钥包括所述第二序列中的所有符号和所述第一序列中的所有符号,所述第一密钥用于所述第一通信设备与所述第二通信设备之间的通信。A first key is generated; the first key includes all symbols in the second sequence and all symbols in the first sequence, and the first key is used for communication between the first communication device and the second communication device.

所述处理器802的具体功能可以参考以上本申请实施例以及实例提供的物理层密钥生成方法中的描述,以及图7所示本申请实施例中对所述物理层密钥生成装置700的具体功能描述,此处不再赘述。The specific functions of the processor 802 can refer to the description of the physical layer key generation method provided in the above embodiments and examples of the present application, as well as the specific functional description of the physical layer key generation device 700 in the embodiment of the present application shown in Figure 7, which will not be repeated here.

所述存储器803,用于存放程序指令和数据等。具体地,程序指令可以包括程序代码,该程序代码包括计算机操作指令。存储器803可能包含RAM,也可能还包括非易失性存储器(non-volatile memory),例如至少一个磁盘存储器。处理器802执行存储器803所存放的程序指令,并使用所述存储器803中存储的数据,实现上述功能,从而实现上述本申请实施例提供的物理层密钥生成方法。The memory 803 is used to store program instructions and data, etc. Specifically, the program instructions may include program codes, and the program codes include computer operation instructions. The memory 803 may include RAM, and may also include non-volatile memory (non-volatile memory), such as at least one disk memory. The processor 802 executes the program instructions stored in the memory 803, and uses the data stored in the memory 803 to implement the above functions, thereby implementing the physical layer key generation method provided in the above embodiment of the present application.

可选的,当所述存储器803中存储用于实现本申请的方法的程序代码(换句话说,本申请的方法对应的算法通过存储器803中的程序代码来实现)时,若该方法应用于网络设备,该算法可运行于网络设备中的处理芯片中、或网络设备侧的计算机中,或安装在网络设备侧的任意处理设备中;若该方法应用于终端设备,该算法可运行于终端设备的内置处理芯片中或任何具有通信、计算、存储功能的装置中。Optionally, when the memory 803 stores program code for implementing the method of the present application (in other words, the algorithm corresponding to the method of the present application is implemented by the program code in the memory 803), if the method is applied to a network device, the algorithm can be run in a processing chip in the network device, or in a computer on the network device side, or installed in any processing device on the network device side; if the method is applied to a terminal device, the algorithm can be run in a built-in processing chip of the terminal device or in any device with communication, computing, and storage functions.

可以理解,本申请图8中的存储器803可以是易失性存储器或非易失性存储器,或可包括易失性和非易失性存储器两者。其中,非易失性存储器可以是ROM、可编程只读存储器(Programmable ROM,PROM)、可擦除可编程只读存储器(Erasable PROM,EPROM)、电可擦除可编程只读存储器(Electrically EPROM,EEPROM)或闪存。易失性存储器可以是RAM,其用作外部高速缓存。通过示例性但不是限制性说明,许多形式的RAM可用,例如静态随机存取存储器(Static RAM,SRAM)、动态随机存取存储器(Dynamic RAM,DRAM)、同步动态随机存取存储器(Synchronous DRAM,SDRAM)、双倍数据速率同步动态随机存取存储器(DoubleData Rate SDRAM,DDR SDRAM)、增强型同步动态随机存取存储器(Enhanced SDRAM,ESDRAM)、同步连接动态随机存取存储器(Synchlink DRAM,SLDRAM)和直接内存总线随机存取存储器(Direct Rambus RAM,DR RAM)。应注意,本文描述的系统和方法的存储器旨在包括但不限于这些和任意其它适合类型的存储器。It can be understood that the memory 803 in FIG. 8 of the present application can be a volatile memory or a non-volatile memory, or can include both volatile and non-volatile memories. Among them, the non-volatile memory can be a ROM, a programmable read-only memory (Programmable ROM, PROM), an erasable programmable read-only memory (Erasable PROM, EPROM), an electrically erasable programmable read-only memory (Electrically EPROM, EEPROM) or a flash memory. The volatile memory can be a RAM, which is used as an external cache. By way of example and not limitation, many forms of RAM are available, such as static random access memory (SRAM), dynamic random access memory (DRAM), synchronous dynamic random access memory (SDRAM), double data rate synchronous dynamic random access memory (DDR SDRAM), enhanced synchronous dynamic random access memory (ESDRAM), synchronous link dynamic random access memory (SLDRAM), and direct memory bus random access memory (DR RAM). It should be noted that the memory of the systems and methods described herein is intended to include, but is not limited to, these and any other suitable types of memory.

基于以上实施例,本申请实施例还提供了一种计算机程序,当所述计算机程序在计算机上运行时,使得所述计算机执行以上实施例提供的方法。Based on the above embodiments, the embodiments of the present application further provide a computer program, which, when executed on a computer, enables the computer to execute the methods provided in the above embodiments.

基于以上实施例,本申请实施例还提供了一种计算机可读存储介质,该计算机可读存储介质中存储有计算机程序,所述计算机程序被计算机执行时,使得计算机执行以上实施例提供的方法。Based on the above embodiments, the embodiments of the present application further provide a computer-readable storage medium, in which a computer program is stored. When the computer program is executed by a computer, the computer executes the method provided in the above embodiments.

其中,存储介质可以是计算机能够存取的任何可用介质。以此为例但不限于:计算机可读介质可以包括RAM、ROM、EEPROM、CD-ROM或其他光盘存储、磁盘存储介质或者其他磁存储设备、或者能够用于携带或存储具有指令或数据结构形式的期望的程序代码并能够由计算机存取的任何其他介质。The storage medium may be any available medium that can be accessed by a computer. For example, but not limited to, a computer-readable medium may include RAM, ROM, EEPROM, CD-ROM or other optical disk storage, magnetic disk storage medium or other magnetic storage device, or any other medium that can be used to carry or store the desired program code in the form of instructions or data structures and can be accessed by a computer.

基于以上实施例,本申请实施例还提供了一种芯片,所述芯片用于读取存储器中存储的计算机程序,实现以上实施例提供的方法。Based on the above embodiments, an embodiment of the present application further provides a chip, which is used to read a computer program stored in a memory to implement the method provided in the above embodiments.

基于以上实施例,本申请实施例提供了一种芯片系统,该芯片系统包括处理器,用于支持计算机装置实现以上实施例中各设备所涉及的功能。在一种可能的设计中,所述芯片系统还包括存储器,所述存储器用于保存该计算机装置必要的程序和数据。该芯片系统,可以由芯片构成,也可以包含芯片和其他分立器件。Based on the above embodiments, the embodiments of the present application provide a chip system, which includes a processor for supporting a computer device to implement the functions involved in each device in the above embodiments. In a possible design, the chip system also includes a memory, which is used to store the necessary programs and data for the computer device. The chip system can be composed of a chip, or it can include a chip and other discrete devices.

综上所述,本申请实施例提供了一种物理层密钥生成方法、装置及设备,在该方法中,第一通信设备在向第二通信设备发送第一导频信号之后,第二通信设备可在第一导频信号的触发下生成第一序列,并向第一通信设备发送用于指示第一序列的第一指示;相应的,第一通信设备可接收来自第二通信设备的第一指示。第一通信设备在接收来自第二通信设备的第二导频信号后,可在第二导频信号的触发下生成第二序列。然后,第一通信设备可生成第一密钥,第一密钥可包括第二序列中的所有符号和第一序列中的所有符号,第一密钥用于第一通信设备与第二通信设备之间的通信。这样,第一通信设备和第二通信设备分别生成第二序列和第一序列;第二通信设备向第一通信设备发送用于指示第一序列的第一指示之后,第一通信设备即可根据第一序列和自身生成的第二序列确定出第一密钥,无需第二通信设备向第一通信设备发送用于指示组成第一密钥的所有符号(即第一序列和第二序列包含的所有符号)的信息,从而可以降低密钥生成过程中的开销。In summary, the embodiment of the present application provides a physical layer key generation method, apparatus and device, in which, after the first communication device sends a first pilot signal to the second communication device, the second communication device may generate a first sequence under the triggering of the first pilot signal, and send a first indication for indicating the first sequence to the first communication device; accordingly, the first communication device may receive the first indication from the second communication device. After receiving the second pilot signal from the second communication device, the first communication device may generate a second sequence under the triggering of the second pilot signal. Then, the first communication device may generate a first key, the first key may include all symbols in the second sequence and all symbols in the first sequence, and the first key is used for communication between the first communication device and the second communication device. In this way, the first communication device and the second communication device generate the second sequence and the first sequence respectively; after the second communication device sends the first indication for indicating the first sequence to the first communication device, the first communication device can determine the first key according to the first sequence and the second sequence generated by itself, without the need for the second communication device to send information for indicating all symbols constituting the first key (i.e., all symbols contained in the first sequence and the second sequence) to the first communication device, thereby reducing the overhead in the key generation process.

在本申请的各个实施例中,如果没有特殊说明以及逻辑冲突,不同的实施例之间的术语和/或描述具有一致性、且可以相互引用,不同的实施例中的技术特征根据其内在的逻辑关系可以组合形成新的实施例。In the various embodiments of the present application, unless otherwise specified or provided in a logical conflict, the terms and/or descriptions between the different embodiments are consistent and may be referenced to each other, and the technical features in the different embodiments may be combined to form new embodiments according to their inherent logical relationships.

本领域内的技术人员应明白,本申请的实施例可提供为方法、系统、或计算机程序产品。因此,本申请可采用完全硬件实施例、完全软件实施例、或结合软件和硬件方面的实施例的形式。而且,本申请可采用在一个或多个其中包含有计算机可用程序代码的计算机可用存储介质(包括但不限于磁盘存储器、CD-ROM、光学存储器等)上实施的计算机程序产品的形式。Those skilled in the art will appreciate that the embodiments of the present application may be provided as methods, systems, or computer program products. Therefore, the present application may adopt the form of a complete hardware embodiment, a complete software embodiment, or an embodiment in combination with software and hardware. Moreover, the present application may adopt the form of a computer program product implemented in one or more computer-usable storage media (including but not limited to disk storage, CD-ROM, optical storage, etc.) that contain computer-usable program code.

本申请是参照根据本申请的方法、设备(系统)、和计算机程序产品的流程图和/或方框图来描述的。应理解可由计算机程序指令实现流程图和/或方框图中的每一流程和/或方框、以及流程图和/或方框图中的流程和/或方框的结合。可提供这些计算机程序指令到通用计算机、专用计算机、嵌入式处理机或其他可编程数据处理设备的处理器以产生一个机器,使得通过计算机或其他可编程数据处理设备的处理器执行的指令产生用于实现在流程图一个流程或多个流程和/或方框图一个方框或多个方框中指定的功能的装置。The present application is described with reference to the flowchart and/or block diagram of the method, device (system), and computer program product according to the present application. It should be understood that each process and/or box in the flowchart and/or block diagram, as well as the combination of the process and/or box in the flowchart and/or block diagram can be implemented by computer program instructions. These computer program instructions can be provided to a processor of a general-purpose computer, a special-purpose computer, an embedded processor or other programmable data processing device to produce a machine, so that the instructions executed by the processor of the computer or other programmable data processing device produce a device for implementing the function specified in one process or multiple processes in the flowchart and/or one box or multiple boxes in the block diagram.

这些计算机程序指令也可存储在能引导计算机或其他可编程数据处理设备以特定方式工作的计算机可读存储器中,使得存储在该计算机可读存储器中的指令产生包括指令装置的制造品,该指令装置实现在流程图一个流程或多个流程和/或方框图一个方框或多个方框中指定的功能。These computer program instructions may also be stored in a computer-readable memory that can direct a computer or other programmable data processing device to operate in a specific manner, so that the instructions stored in the computer-readable memory produce a manufactured product including an instruction device that implements the functions specified in one or more processes in the flowchart and/or one or more boxes in the block diagram.

这些计算机程序指令也可装载到计算机或其他可编程数据处理设备上,使得在计算机或其他可编程设备上执行一系列操作步骤以产生计算机实现的处理,从而在计算机或其他可编程设备上执行的指令提供用于实现在流程图一个流程或多个流程和/或方框图一个方框或多个方框中指定的功能的步骤。These computer program instructions may also be loaded onto a computer or other programmable data processing device so that a series of operational steps are executed on the computer or other programmable device to produce a computer-implemented process, whereby the instructions executed on the computer or other programmable device provide steps for implementing the functions specified in one or more processes in the flowchart and/or one or more boxes in the block diagram.

显然,本领域的技术人员可以对本申请进行各种改动和变型而不脱离本申请的范围。这样,倘若本申请的这些修改和变型属于本申请权利要求及其等同技术的范围之内,则本申请也意图包含这些改动和变型在内。Obviously, those skilled in the art can make various changes and modifications to the present application without departing from the scope of the present application. Thus, if these modifications and variations of the present application fall within the scope of the claims of the present application and their equivalents, the present application is also intended to include these modifications and variations.

Claims (23)

1.一种物理层密钥生成方法,其特征在于,应用于第一通信设备,所述方法包括:1. A physical layer key generation method, characterized in that it is applied to a first communication device, and the method includes: 向第二通信设备发送第一导频信号,接收来自所述第二通信设备的第一指示;所述第一指示用于指示第一序列,所述第一导频信号用于触发所述第二通信设备生成所述第一序列;Send a first pilot signal to a second communication device, and receive a first indication from the second communication device; the first indication is used to indicate a first sequence, and the first pilot signal is used to trigger the first sequence. Two communication devices generate the first sequence; 在接收来自所述第二通信设备的第二导频信号后,生成第二序列;所述第二导频信号用于触发所述第一通信设备生成所述第二序列;After receiving a second pilot signal from the second communication device, a second sequence is generated; the second pilot signal is used to trigger the first communication device to generate the second sequence; 生成第一密钥;所述第一密钥包括所述第二序列中的所有符号和所述第一序列中的所有符号,所述第一密钥用于所述第一通信设备与所述第二通信设备之间的通信。Generate a first key; the first key includes all symbols in the second sequence and all symbols in the first sequence, the first key is used for the first communication device and the Communication between the second communication device. 2.根据权利要求1所述的方法,其特征在于,生成第二序列,包括:2. The method according to claim 1, characterized in that generating the second sequence includes: 确定所述第二导频信号所对应的频域信道系数;Determine the frequency domain channel coefficient corresponding to the second pilot signal; 对所述频域信道系数进行快速傅里叶反变换,得到信道响应函数;Perform inverse fast Fourier transform on the frequency domain channel coefficients to obtain a channel response function; 对所述信道响应函数中小于或等于第一阈值的抽头系数进行量化,得到所述第二序列。The tap coefficients in the channel response function that are less than or equal to the first threshold are quantized to obtain the second sequence. 3.根据权利要求1或2所述的方法,其特征在于,在生成第二序列之后,所述方法还包括:3. The method according to claim 1 or 2, characterized in that, after generating the second sequence, the method further includes: 向所述第二通信设备发送第二指示,所述第二指示用于指示所述第二序列。Send a second indication to the second communication device, the second indication being used to indicate the second sequence. 4.根据权利要求3所述的方法,其特征在于,在向所述第二通信设备发送第二指示之前,所述方法还包括:4. The method according to claim 3, characterized in that, before sending the second indication to the second communication device, the method further includes: 对所述第二序列进行编码调制,得到第三序列;所述第三序列中的任一符号为复数;Code and modulate the second sequence to obtain a third sequence; any symbol in the third sequence is a complex number; 根据星座旋转后的所述第三序列的信号星座图和第一人工噪声信号,生成所述第二指示。The second indication is generated based on the constellation rotated signal constellation diagram of the third sequence and the first artificial noise signal. 5.根据权利要求4所述的方法,其特征在于,根据星座旋转后的所述第三序列的信号星座图和第一人工噪声信号,生成所述第二指示,包括:5. The method according to claim 4, characterized in that generating the second indication according to the signal constellation diagram of the third sequence after constellation rotation and the first artificial noise signal includes: 将所述第三序列的信号星座图旋转第一角度,旋转后的所述第三序列的信号星座图中任意两个星座点的实部和虚部均不相同;Rotate the signal constellation diagram of the third sequence by a first angle, and the real part and imaginary part of any two constellation points in the rotated signal constellation diagram of the third sequence are different; 生成第二指示;其中,所述第二指示包括至少一个第一信号,所述至少一个第一信号的实部与旋转后的所述第三序列的信号星座图中的星座点一一对应;与第一星座点对应的第一信号的实部为第一星座点的实部,所述第一星座点为旋转后的所述第三序列的信号星座图中的任一星座点;任一第一信号的虚部为与所述任一第一信号对应的所述第一人工噪声信号。Generate a second indication; wherein the second indication includes at least one first signal, and the real part of the at least one first signal corresponds one-to-one to the constellation points in the rotated signal constellation diagram of the third sequence; The real part of the first signal corresponding to the first constellation point is the real part of the first constellation point, and the first constellation point is any constellation point in the rotated signal constellation diagram of the third sequence; any The imaginary part of the first signal is the first artificial noise signal corresponding to any first signal. 6.根据权利要求5所述的方法,其特征在于,所述第一角度为使得所述第二通信设备的平均误符号率最小的角度。6. The method of claim 5, wherein the first angle is an angle that minimizes an average symbol error rate of the second communication device. 7.根据权利要求1至6任一项所述的方法,其特征在于,所述第一指示包括至少一个第二信号,在接收来自所述第二通信设备的第一指示之后,所述方法还包括:7. The method according to any one of claims 1 to 6, wherein the first indication includes at least one second signal, and after receiving the first indication from the second communication device, the method Also includes: 对所述至少一个第二信号进行滤波,得到至少一个第三信号;其中,所述至少一个第三信号是根据星座旋转后的第四序列的信号星座图和第二人工噪声信号生成的,所述第四序列为对所述第一序列进行编码调制后得到的序列,所述第四序列中的任一符号为复数;The at least one second signal is filtered to obtain at least one third signal; wherein the at least one third signal is generated according to the signal constellation diagram of the fourth sequence after constellation rotation and the second artificial noise signal, so The fourth sequence is a sequence obtained by encoding and modulating the first sequence, and any symbol in the fourth sequence is a complex number; 根据所述至少一个第三信号,确定所述第一序列。The first sequence is determined based on the at least one third signal. 8.根据权利要求7所述的方法,其特征在于,8. The method according to claim 7, characterized in that, 所述至少一个第三信号的实部与旋转第二角度之后的所述第四序列的信号星座图中的星座点一一对应;其中,与第二星座点对应的第三信号的实部为第二星座点的实部,所述第二星座点为旋转所述第二角度之后的所述第四序列的信号星座图中的任一星座点;任一第三信号的虚部为与所述任一第三信号对应的所述第二人工噪声信号;The real part of the at least one third signal corresponds one-to-one to the constellation points in the signal constellation diagram of the fourth sequence after rotating by the second angle; wherein the real part of the third signal corresponding to the second constellation point is The real part of the second constellation point, which is any constellation point in the signal constellation diagram of the fourth sequence after rotating the second angle; the imaginary part of any third signal is the same as the second constellation point. the second artificial noise signal corresponding to any third signal; 根据所述至少一个第三信号,确定所述第一序列,包括:Determining the first sequence according to the at least one third signal includes: 根据所述至少一个第三信号的实部,确定所述第四序列;determining the fourth sequence based on the real part of the at least one third signal; 对所述第四序列进行解调,得到所述第一序列。The fourth sequence is demodulated to obtain the first sequence. 9.根据权利要求8所述的方法,其特征在于,所述第二角度为使得所述第一通信设备的平均误符号率最小的角度。9. The method of claim 8, wherein the second angle is an angle that minimizes an average symbol error rate of the first communication device. 10.根据权利要求1至9任一项所述的方法,其特征在于,所述第一通信设备和所述第二通信设备为全双工通信设备。10. The method according to any one of claims 1 to 9, characterized in that the first communication device and the second communication device are full-duplex communication devices. 11.一种物理层密钥生成装置,其特征在于,应用于第一通信设备,包括:11. A physical layer key generation device, characterized in that it is applied to a first communication device and includes: 通信单元,用于接收和发送数据;Communication unit for receiving and sending data; 处理单元,用于:Processing unit for: 通过所述通信单元,向第二通信设备发送第一导频信号,接收来自所述第二通信设备的第一指示;所述第一指示用于指示第一序列,所述第一导频信号用于触发所述第二通信设备生成所述第一序列;Through the communication unit, a first pilot signal is sent to a second communication device, and a first indication is received from the second communication device; the first indication is used to indicate a first sequence, and the first pilot signal For triggering the second communication device to generate the first sequence; 在通过所述通信单元接收来自所述第二通信设备的第二导频信号后,生成第二序列;所述第二导频信号用于触发所述第一通信设备生成所述第二序列;After receiving a second pilot signal from the second communication device through the communication unit, a second sequence is generated; the second pilot signal is used to trigger the first communication device to generate the second sequence; 生成第一密钥;所述第一密钥包括所述第二序列中的所有符号和所述第一序列中的所有符号,所述第一密钥用于所述第一通信设备与所述第二通信设备之间的通信。Generate a first key; the first key includes all symbols in the second sequence and all symbols in the first sequence, the first key is used for the first communication device and the Communication between the second communication device. 12.根据权利要求11所述的装置,其特征在于,所述处理单元用于:12. The device according to claim 11, characterized in that the processing unit is used for: 确定所述第二导频信号所对应的频域信道系数;Determine the frequency domain channel coefficient corresponding to the second pilot signal; 对所述频域信道系数进行快速傅里叶反变换,得到信道响应函数;Perform inverse fast Fourier transform on the frequency domain channel coefficients to obtain a channel response function; 对所述信道响应函数中小于或等于第一阈值的抽头系数进行量化,得到所述第二序列。The tap coefficients in the channel response function that are less than or equal to the first threshold are quantized to obtain the second sequence. 13.根据权利要求11或12所述的装置,其特征在于,所述处理单元用于:在生成第二序列之后,通过所述通信单元向所述第二通信设备发送第二指示,所述第二指示用于指示所述第二序列。13. The apparatus according to claim 11 or 12, wherein the processing unit is configured to: after generating the second sequence, send a second instruction to the second communication device through the communication unit, the The second indication is used to indicate the second sequence. 14.根据权利要求13所述的装置,其特征在于,所述处理单元用于:在通过所述通信单元向所述第二通信设备发送第二指示之前,对所述第二序列进行编码调制,得到第三序列;所述第三序列中的任一符号为复数;根据星座旋转后的所述第三序列的信号星座图和第一人工噪声信号,生成所述第二指示。14. The apparatus according to claim 13, wherein the processing unit is configured to: perform encoding and modulation on the second sequence before sending the second indication to the second communication device through the communication unit. , to obtain a third sequence; any symbol in the third sequence is a complex number; and the second indication is generated according to the signal constellation diagram of the third sequence after constellation rotation and the first artificial noise signal. 15.根据权利要求14所述的装置,其特征在于,所述处理单元用于:15. The device according to claim 14, characterized in that the processing unit is used for: 将所述第三序列的信号星座图旋转第一角度,旋转后的所述第三序列的信号星座图中任意两个星座点的实部和虚部均不相同;Rotate the signal constellation diagram of the third sequence by a first angle, and the real part and imaginary part of any two constellation points in the rotated signal constellation diagram of the third sequence are different; 生成第二指示;其中,所述第二指示包括至少一个第一信号,所述至少一个第一信号的实部与旋转后的所述第三序列的信号星座图中的星座点一一对应;与第一星座点对应的第一信号的实部为第一星座点的实部,所述第一星座点为旋转后的所述第三序列的信号星座图中的任一星座点;任一第一信号的虚部为与所述任一第一信号对应的所述第一人工噪声信号。Generate a second indication; wherein the second indication includes at least one first signal, and the real part of the at least one first signal corresponds one-to-one to the constellation points in the rotated signal constellation diagram of the third sequence; The real part of the first signal corresponding to the first constellation point is the real part of the first constellation point, and the first constellation point is any constellation point in the rotated signal constellation diagram of the third sequence; any The imaginary part of the first signal is the first artificial noise signal corresponding to any first signal. 16.根据权利要求15所述的装置,其特征在于,所述第一角度为使得所述第二通信设备的平均误符号率最小的角度。16. The apparatus according to claim 15, wherein the first angle is an angle that minimizes an average symbol error rate of the second communication device. 17.根据权利要求11至16任一项所述的装置,其特征在于,所述第一指示包括至少一个第二信号,所述处理单元用于:17. The device according to any one of claims 11 to 16, wherein the first indication includes at least one second signal, and the processing unit is configured to: 在通过所述通信单元接收来自所述第二通信设备的第一指示之后,对所述至少一个第二信号进行滤波,得到至少一个第三信号;其中,所述至少一个第三信号是根据星座旋转后的第四序列的信号星座图和第二人工噪声信号生成的,所述第四序列为对所述第一序列进行编码调制后得到的序列,所述第四序列中的任一符号为复数;After receiving the first indication from the second communication device through the communication unit, filtering the at least one second signal to obtain at least one third signal; wherein the at least one third signal is based on a constellation The signal constellation diagram of the rotated fourth sequence is generated by the second artificial noise signal. The fourth sequence is a sequence obtained by encoding and modulating the first sequence. Any symbol in the fourth sequence is plural; 根据所述至少一个第三信号,确定所述第一序列。The first sequence is determined based on the at least one third signal. 18.根据权利要求17所述的装置,其特征在于,18. The device according to claim 17, characterized in that, 所述至少一个第三信号的实部与旋转第二角度之后的所述第四序列的信号星座图中的星座点一一对应;其中,与第二星座点对应的第三信号的实部为第二星座点的实部,所述第二星座点为旋转所述第二角度之后的所述第四序列的信号星座图中的任一星座点;任一第三信号的虚部为与所述任一第三信号对应的所述第二人工噪声信号;The real part of the at least one third signal corresponds one-to-one to the constellation points in the signal constellation diagram of the fourth sequence after rotating by the second angle; wherein the real part of the third signal corresponding to the second constellation point is The real part of the second constellation point, which is any constellation point in the signal constellation diagram of the fourth sequence after rotating the second angle; the imaginary part of any third signal is the same as the second constellation point. the second artificial noise signal corresponding to any third signal; 所述处理单元用于:The processing unit is used for: 根据所述至少一个第三信号的实部,确定所述第四序列;determining the fourth sequence based on the real part of the at least one third signal; 对所述第四序列进行解调,得到所述第一序列。The fourth sequence is demodulated to obtain the first sequence. 19.根据权利要求18所述的装置,其特征在于,所述第二角度为使得所述第一通信设备的平均误符号率最小的角度。19. The apparatus according to claim 18, wherein the second angle is an angle that minimizes an average symbol error rate of the first communication device. 20.根据权利要求11至19任一项所述的装置,其特征在于,所述第一通信设备和所述第二通信设备为全双工通信设备。20. The apparatus according to any one of claims 11 to 19, wherein the first communication device and the second communication device are full-duplex communication devices. 21.一种物理层密钥生成系统,其特征在于,包括:21. A physical layer key generation system, characterized by including: 第一通信设备,用于实现如权利要求1-10任一项所述的方法;A first communication device, used to implement the method according to any one of claims 1-10; 第二通信设备,用于执行如权利要求1-10任一项所述的方法中所述第二通信设备的操作。A second communication device, configured to perform operations of the second communication device in the method according to any one of claims 1-10. 22.一种计算机可读存储介质,其特征在于,所述计算机可读存储介质中存储有计算机程序,当所述计算机程序在计算机上运行时,使得所述计算机执行权利要求1-10任一项所述的方法。22. A computer-readable storage medium, characterized in that a computer program is stored in the computer-readable storage medium, and when the computer program is run on a computer, it causes the computer to execute any one of claims 1-10. method described in the item. 23.一种芯片,其特征在于,所述芯片与存储器耦合,所述芯片读取所述存储器中存储的计算机程序,执行权利要求1-10任一项所述的方法。23. A chip, characterized in that the chip is coupled to a memory, and the chip reads the computer program stored in the memory and executes the method according to any one of claims 1-10.
CN202210342231.5A 2022-03-31 2022-03-31 Physical layer key generation method, device and equipment Pending CN116938460A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202210342231.5A CN116938460A (en) 2022-03-31 2022-03-31 Physical layer key generation method, device and equipment

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202210342231.5A CN116938460A (en) 2022-03-31 2022-03-31 Physical layer key generation method, device and equipment

Publications (1)

Publication Number Publication Date
CN116938460A true CN116938460A (en) 2023-10-24

Family

ID=88376052

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202210342231.5A Pending CN116938460A (en) 2022-03-31 2022-03-31 Physical layer key generation method, device and equipment

Country Status (1)

Country Link
CN (1) CN116938460A (en)

Similar Documents

Publication Publication Date Title
CN105164956B (en) Speed matching method and equipment, the wireless communication device of Polar code
CN103997736B (en) The method for being used to detect listener-in in wireless communication system
CA2968892A1 (en) Polar code rate matching method and apparatus, and wireless communications device
CN105306343A (en) Communication method and wireless communication device
CN112019298B (en) Coding modulation method, demodulation decoding method, device and equipment
US9774479B2 (en) Communicating data using backscatter modulation
CN111786926B (en) Receiving device, receiving method, sending device and sending method
WO2015120595A1 (en) Data transmission method and apparatus
CN110958589B (en) Data transmission method, device and storage medium
CN103634072B (en) The method and apparatus for transmitting information
CN108966333B (en) Power control method and equipment
CN102447667B (en) Data processing method and system based on network coding
JP2012257248A (en) Method for generating shared key for wireless communication system
CN105282085B (en) Decoding method and equipment
CN107070830A (en) A kind of method of encrypted transmission based on Sparse Code multiple access system
CN116938460A (en) Physical layer key generation method, device and equipment
CN116032711B (en) A power allocation scheme for NOMA systems based on non-ideal channel estimation
CN114884626B (en) PSFCH signal detection method and device, storage medium and electronic device
WO2022022516A1 (en) Wireless communication method and apparatus
CN107547171B (en) Method and device for transmitting frame
CN109714129B (en) Coding method, device and equipment
CN114567339B (en) Baseband chip, signal demodulation method, terminal device, storage medium and product
CN112787733A (en) Bidirectional relay scheme self-adaptive selection method, system, storage medium and terminal
KR102184181B1 (en) security information sending method for 1-bit ADC wiretap channel
CN112437432A (en) Physical layer key distribution method and communication equipment

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination