Key negotiation method, device and terminal
By verifying the electronic certificate of the device and determining the phase information using the channel detection sequence, the shared key is solved, and the problem that key generation in the prior art cannot guarantee the security of communication connections is realized, and effective encryption of physical layer transmission is achieved.
Patent Information
- Application Number
- CN202310654120.2
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2023-06-05
- Publication Date
- 2024-12-06
AI Technical Summary
Existing key generation methods cannot guarantee the security of communication connections, especially at the physical level, the quality of the channel and interference have a great impact on the security of the key.
By verifying the electronic certificate of the device and using the channel detection sequence to determine the phase information of the channel response, a shared key is generated to ensure the security and legality of the key.
The security of the shared key generated on the basis of ensuring the security of the communication channel is realized, thereby realizing effective encryption of physical layer transmission and ensuring that both parties to the communication establish a legal and secure connection.
Smart Images

Figure CN119095036A_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the field of communication technology, and in particular to a key negotiation method, device and terminal. Background Art
[0002] In the mobile communication network of the post-5G era, some devices in the ubiquitous wireless sensor network have very limited computing and storage capabilities or lack key management facilities. Through the key generation technology based on physical layer security, the randomness and reciprocity of the wireless channel are used to generate keys for encrypting messages. The main disadvantage of the key generation technology in physical layer security is its dependence on the quality of the communication channel. The security of the generated key depends on whether the channel is not attacked and interfered, so the security of the connection cannot be guaranteed. Summary of the invention
[0003] The purpose of the present application is to provide a key negotiation method, device and terminal, which solves the problem that the existing key generation method cannot ensure the security of the connection.
[0004] An embodiment of the present application provides a key negotiation method, including:
[0005] The first device verifies the electronic certificate of the second device;
[0006] If the electronic certificate of the second device is verified successfully, determining phase information of a channel response according to a first channel sounding sequence sent by the second device;
[0007] A shared key between the first device and the second device is determined according to the phase information.
[0008] Optionally, the method further includes:
[0009] Sending a communication request message to the second device, the communication request message including: the electronic certificate of the first device;
[0010] receiving a communication response message sent by the second device, the communication response message including: an electronic certificate of the second device;
[0011] The electronic certificate of the first device and the electronic certificate of the second device are configured by a trusted authority (TA).
[0012] Optionally, the method further includes:
[0013] A first channel sounding sequence sent by the second device is received, where the first channel sounding sequence is sent when the electronic certificate of the first device is verified successfully.
[0014] Optionally, the method further includes:
[0015] In the case that the electronic certificate of the second device is verified successfully, a second channel probing sequence is sent to the second device, where the second channel probing sequence is used by the second device to determine the shared key.
[0016] Optionally, in a case where a first channel sounding sequence sent by the second device is received, the method further includes:
[0017] converting the first channel sounding sequence into a parameter representation form, the parameter representation form including a first parameter;
[0018] Wherein, the first parameter includes:
[0019] Forward channel gain;
[0020] Phase response;
[0021] Additive Gaussian white noise;
[0022] Initial phase of the second device.
[0023] Optionally, determining phase information of a channel response according to a first channel sounding sequence sent by the second device includes:
[0024] Determining a second parameter according to a parameter representation corresponding to the first channel sounding sequence; the second parameter includes: an initial phase and a phase response of the second device;
[0025] Phase information of the channel response is determined according to the initial phase of the first device and the second parameter.
[0026] Optionally, determining a shared key between the first device and the second device according to the phase information includes:
[0027] quantizing the phase information to obtain a digital signal corresponding to the phase information;
[0028] Information reconciliation is performed on the digital signal to obtain a shared key between the first device and the second device.
[0029] An embodiment of the present application provides a key negotiation method, including:
[0030] The second device verifies the electronic certificate of the first device;
[0031] When the electronic certificate of the first device is verified, determining phase information of a channel response according to a second channel sounding sequence sent by the first device;
[0032] A shared key between the second device and the first device is determined according to the phase information.
[0033] Optionally, the method further includes:
[0034] receiving a communication request message sent by the first device, wherein the communication request message includes: an electronic certificate of the first device;
[0035] If the electronic certificate of the first device is verified, sending a communication response message to the first device, the communication response message including: the electronic certificate of the second device;
[0036] The electronic certificate of the first device and the electronic certificate of the second device are configured by a trusted authority TA.
[0037] Optionally, the method further includes:
[0038] A second channel sounding sequence sent by the first device is received, where the second channel sounding sequence is sent when the electronic certificate of the second device is verified successfully.
[0039] Optionally, the method further includes:
[0040] In a case where the electronic certificate of the first device is verified successfully, a first channel probing sequence is sent to the first device, where the first channel probing sequence is used by the first device to determine the shared key.
[0041] Optionally, in a case where a second channel sounding sequence sent by the first device is received, the method further includes:
[0042] converting the second channel sounding sequence into a parameter representation form, the parameter representation form including a third parameter;
[0043] Wherein, the third parameter includes:
[0044] Forward channel gain;
[0045] Phase response;
[0046] Additive Gaussian white noise;
[0047] Initial phase of the first device.
[0048] Optionally, determining phase information of a channel response according to a second channel sounding sequence sent by the first device includes:
[0049] Determine a fourth parameter according to a parameter representation corresponding to the second channel sounding sequence; the fourth parameter includes: an initial phase and a phase response of the first device;
[0050] Phase information of the channel response is determined according to the initial phase of the second device and the fourth parameter.
[0051] Optionally, determining a shared key between the second device and the first device according to the phase information includes:
[0052] quantizing the phase information to obtain a digital signal corresponding to the phase information;
[0053] Information reconciliation is performed on the digital signal to obtain a shared key between the second device and the first device.
[0054] An embodiment of the present application provides a terminal, including: a memory, a transceiver, and a processor:
[0055] A memory for storing a computer program; a transceiver for receiving and sending data under the control of the processor; and a processor for reading the computer program in the memory and performing the following operations:
[0056] verifying the electronic certificate of the second device;
[0057] If the electronic certificate of the second device is verified successfully, determining phase information of a channel response according to a first channel sounding sequence sent by the second device;
[0058] A shared key between the first device and the second device is determined according to the phase information.
[0059] Optionally, the processor is configured to read the computer program in the memory and perform the following operations:
[0060] Sending a communication request message to the second device, the communication request message including: the electronic certificate of the first device;
[0061] receiving a communication response message sent by the second device, the communication response message including: an electronic certificate of the second device;
[0062] The electronic certificate of the first device and the electronic certificate of the second device are configured by a trusted authority TA.
[0063] Optionally, the processor is configured to read the computer program in the memory and perform the following operations:
[0064] A first channel sounding sequence sent by the second device is received, where the first channel sounding sequence is sent when the electronic certificate of the first device is verified successfully.
[0065] Optionally, the processor is configured to read the computer program in the memory and perform the following operations:
[0066] In the case that the electronic certificate of the second device is verified successfully, a second channel probing sequence is sent to the second device, where the second channel probing sequence is used by the second device to determine the shared key.
[0067] Optionally, the processor is configured to read the computer program in the memory and perform the following operations:
[0068] converting the first channel sounding sequence into a parameter representation form, the parameter representation form including a first parameter;
[0069] Wherein, the first parameter includes:
[0070] Forward channel gain;
[0071] Phase response;
[0072] Additive Gaussian white noise;
[0073] Initial phase of the second device.
[0074] Optionally, the processor is configured to read the computer program in the memory and perform the following operations:
[0075] Determining a second parameter according to a parameter representation corresponding to the first channel sounding sequence; the second parameter includes: an initial phase and a phase response of the second device;
[0076] Phase information of the channel response is determined according to the initial phase of the first device and the second parameter.
[0077] Optionally, the processor is configured to read the computer program in the memory and perform the following operations:
[0078] quantizing the phase information to obtain a digital signal corresponding to the phase information;
[0079] Information reconciliation is performed on the digital signal to obtain a shared key between the first device and the second device.
[0080] An embodiment of the present application provides a terminal, including: a memory, a transceiver, and a processor:
[0081] A memory for storing a computer program; a transceiver for receiving and sending data under the control of the processor; and a processor for reading the computer program in the memory and performing the following operations:
[0082] verifying the electronic certificate of the first device;
[0083] When the electronic certificate of the first device is verified, determining phase information of a channel response according to a second channel sounding sequence sent by the first device;
[0084] A shared key between the second device and the first device is determined according to the phase information.
[0085] Optionally, the communication request message includes: an electronic certificate of the first device;
[0086] If the electronic certificate of the first device is verified, sending a communication response message to the first device, the communication response message including: the electronic certificate of the second device;
[0087] The electronic certificate of the first device and the electronic certificate of the second device are configured by a trusted authority TA.
[0088] Optionally, the processor is configured to read the computer program in the memory and perform the following operations:
[0089] A second channel sounding sequence sent by the first device is received, where the second channel sounding sequence is sent when the electronic certificate of the second device is verified successfully.
[0090] Optionally, the processor is configured to read the computer program in the memory and perform the following operations:
[0091] In a case where the electronic certificate of the first device is verified successfully, a first channel probing sequence is sent to the first device, where the first channel probing sequence is used by the first device to determine the shared key.
[0092] Optionally, the processor is configured to read the computer program in the memory and perform the following operations:
[0093] converting the second channel sounding sequence into a parameter representation form, the parameter representation form including a third parameter;
[0094] Wherein, the third parameter includes:
[0095] Forward channel gain;
[0096] Phase response;
[0097] Additive Gaussian white noise;
[0098] Initial phase of the first device.
[0099] Optionally, the processor is configured to read the computer program in the memory and perform the following operations:
[0100] Determine a fourth parameter according to a parameter representation corresponding to the second channel sounding sequence; the fourth parameter includes: an initial phase and a phase response of the first device;
[0101] Phase information of the channel response is determined according to the initial phase of the second device and the fourth parameter.
[0102] Optionally, the processor is configured to read the computer program in the memory and perform the following operations:
[0103] quantizing the phase information to obtain a digital signal corresponding to the phase information;
[0104] Information reconciliation is performed on the digital signal to obtain a shared key between the second device and the first device.
[0105] An embodiment of the present application provides a key negotiation device, including:
[0106] A first verification unit, used to verify the electronic certificate of the second device;
[0107] A first determining unit, configured to determine phase information of a channel response according to a first channel sounding sequence sent by the second device when the electronic certificate of the second device is verified;
[0108] The second determining unit is configured to determine a shared key between the first device and the second device according to the phase information.
[0109] An embodiment of the present application provides a key negotiation device, including:
[0110] A second verification unit, used to verify the electronic certificate of the first device;
[0111] a third determining unit, configured to determine phase information of a channel response according to a second channel sounding sequence sent by the first device when the electronic certificate of the first device is verified;
[0112] A fourth determining unit is configured to determine a shared key between the second device and the first device according to the phase information.
[0113] An embodiment of the present application provides a processor-readable storage medium on which a computer program is stored. When the computer program is executed by a processor, the steps of the key negotiation method described above are implemented.
[0114] The beneficial effects of the above technical solution of the present application are:
[0115] In an embodiment of the present application, the first device first verifies the electronic certificate of the second device, which can ensure that the first device and the second device establish a legal and secure communication connection; on the basis of ensuring the security of the communication channel, the first device determines the phase information of the channel response according to the channel detection sequence sent by the first device, and determines the shared key according to the phase information, which can ensure the security of the generated shared key, thereby realizing effective encryption of the physical layer transmission. BRIEF DESCRIPTION OF THE DRAWINGS
[0116] Figure 1 A schematic diagram showing a key negotiation method according to an embodiment of the present application;
[0117] Figure 2 A second flowchart of the key negotiation method according to an embodiment of the present application is shown;
[0118] Figure 3 A third flowchart of the key negotiation method according to an embodiment of the present application is shown;
[0119] Figure 4 One of the structural schematic diagrams showing the key agreement device according to an embodiment of the present application;
[0120] Figure 5 A second structural diagram showing a key agreement device according to an embodiment of the present application;
[0121] Figure 6 One of the schematic diagrams showing the structure of the terminal according to the embodiment of the present application;
[0122] Figure 7 The second schematic diagram of the structure of the terminal according to the embodiment of the present application. DETAILED DESCRIPTION
[0123] In order to make the technical problems, technical solutions and advantages to be solved by the application clearer, the following will be described in detail in conjunction with the accompanying drawings and specific embodiments. In the following description, specific details such as specific configurations and components are provided only to help fully understand the embodiments of the application. Therefore, it should be clear to those skilled in the art that various changes and modifications can be made to the embodiments described herein without departing from the scope and spirit of the application. In addition, for clarity and brevity, the description of known functions and structures has been omitted.
[0124] It should be understood that the references to "one embodiment" or "an embodiment" throughout the specification mean that the specific features, structures, or characteristics associated with the embodiment are included in at least one embodiment of the present application. Therefore, the references to "in one embodiment" or "in an embodiment" appearing throughout the specification do not necessarily refer to the same embodiment. In addition, these specific features, structures, or characteristics may be combined in any suitable manner in one or more embodiments.
[0125] In the various embodiments of the present application, it should be understood that the size of the serial numbers of the following processes does not mean the order of execution. The execution order of each process should be determined by its function and internal logic, and should not constitute any limitation on the implementation process of the embodiments of the present application.
[0126] In the embodiments of the present application, the term "and / or" describes the association relationship of the associated objects, indicating that three relationships may exist. For example, A and / or B may represent: A exists alone, A and B exist at the same time, and B exists alone. The character " / " generally indicates that the associated objects before and after are in an "or" relationship.
[0127] In the embodiments of the present application, the term "plurality" refers to two or more than two, and other quantifiers are similar.
[0128] The following will be combined with the drawings in the embodiments of the present application to clearly and completely describe the technical solutions in the embodiments of the present application. Obviously, the described embodiments are only part of the embodiments of the present application, not all of the embodiments. Based on the embodiments in the present application, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of this application.
[0129] The embodiments of the present application provide a key negotiation method, device and terminal to solve the problem that the existing key generation method cannot ensure the security of the connection.
[0130] Among them, the method and the device are based on the same application concept. Since the method and the device solve the problem in a similar principle, the implementation of the device and the method can refer to each other, and the repeated parts will not be repeated.
[0131] like Figure 1 As shown, an embodiment of the present application provides a key negotiation method, which is applied to a first device and specifically includes the following steps:
[0132] Step 101: The first device verifies the electronic certificate of the second device;
[0133] The first device and the second device may be terminals, and the second device is a communication peer device of the first device. The first device and the second device may be ubiquitous Internet of Things devices. During the system initialization phase, the first device and the second device need to register with a trust agency TA, and the trust agency TA distributes public key and private key pairs and corresponding electronic certificates to each device.
[0134] Optionally, the trust institution TA first selects its own public key and private key pair (Sk TA ,Pk TA). TA publishes public parameters, including: prime cyclic group, order, generator, and hash function; the public parameters are preset values, which can be determined by negotiation of each system participating in the communication. The first device and the second device participating in the communication are registered with TA respectively, and TA distributes public key and private key pairs and corresponding electronic certificates to the first device and the second device, and the electronic certificate can be used as the identity of the device to access the system in the network.
[0135] The first device and the second device verify each other's electronic certificates to ensure that a legal connection is established between the two parties.
[0136] Step 102: if the electronic certificate of the second device is verified, determine the phase information of the channel response according to the first channel sounding sequence sent by the second device;
[0137] Step 103: Determine a shared key between the first device and the second device according to the phase information.
[0138] In this embodiment, when the first device and the second device both pass the verification of the other party's electronic certificate, the first device sends a second channel sounding sequence to the second device, and the second device sends a first channel sounding sequence to the first device. The first device determines the phase information of the channel response according to the first channel sounding sequence, and determines the shared key according to the phase information.
[0139] Optionally, the second device determines the phase information of the channel response according to the second channel sounding sequence sent by the first device, and determines the shared key according to the phase information. Then, both the first device and the second device can determine the shared key, and thus communicate using the shared key.
[0140] In an embodiment of the present application, the first device first verifies the electronic certificate of the second device, which can ensure that the first device and the second device establish a legal and secure communication connection; on the basis of ensuring the security of the communication channel, the first device determines the phase information of the channel response according to the channel detection sequence sent by the first device, and determines the shared key according to the phase information, which can ensure the security of the generated shared key, thereby realizing effective encryption of the physical layer transmission.
[0141] Optionally, the TA runs a key generation algorithm as a key manager to generate a public key and a private key pair (pk, sk); and signs the private key sk: is a set of numbers {1…,q-1}, q is a large prime number; sign the public key pk: Pk i =G*Sk i ∈G, where G is a finite group G ’TA distributes the signed public key and private key pair to each device.
[0142] The device registers with TA and sends the device ID and public key (ID, Pk i ) is uploaded to TA, which verifies and sends the corresponding certificate cert to the device. i ←Sign(Sk i ,Pk i ,time,ID i ).
[0143] As an optional embodiment, the method further includes:
[0144] Sending a communication request message to the second device, the communication request message including: the electronic certificate of the first device;
[0145] receiving a communication response message sent by the second device, the communication response message including: an electronic certificate of the second device;
[0146] The electronic certificate of the first device and the electronic certificate of the second device are configured by a trusted authority TA.
[0147] In this embodiment, the first device and the second device establish initial authentication and determine a shared key through an electronic certificate and channel detection.
[0148] Assume that the first device 1 and the second device are denoted as N1 and N2 respectively. At time point T1, N1 sends a communication request message to N2. The message uses an electronic signature and is attached with the electronic certificate distributed to the device by the key administrator TA. The communication request message includes N1's electronic certificate, the time when the message was sent, and N1's electronic signature: <cert N1 ,T1,Sign N1 >.
[0149] After receiving the communication request message, N2 verifies N1's electronic certificate. If the verification is successful, N2 replies with a communication response message, which includes N2's electronic certificate, information sending time, and N2's electronic signature: <cert N2 ,T2,Sign N2 >.
[0150] N1 verifies the electronic certificate of N2. If both parties pass the verification, it means that a legal connection has been established. Optionally, the first device and the second device can verify whether the certificate is credible based on the certificate revocation list provided by TA. Optionally, if the electronic certificate is verified, the electronic signature can also be verified by the public key. If the electronic signature is also verified, it is considered that the communicating devices have established a legal connection.
[0151] As an optional embodiment, the method further includes: in a case where the electronic certificate of the second device is verified successfully, sending a second channel probing sequence to the second device, where the second channel probing sequence is used by the second device to determine the shared key.
[0152] In this embodiment, after the first device and the second device both verify the electronic certificate, the first device sends a second channel detection sequence for channel detection to the second device. After the second device receives the second channel detection sequence, it can determine the phase information of the channel response according to the second channel detection sequence, and determine the shared key between the first device and the second device according to the phase information.
[0153] As an optional embodiment, the method further includes: receiving a first channel sounding sequence sent by the second device, where the first channel sounding sequence is sent when the electronic certificate of the first device is verified successfully.
[0154] In this embodiment, after the first device and the second device both verify the electronic certificate, the second device sends a first channel detection sequence for channel detection to the first device, and the first device determines the phase information of the channel response based on the first channel detection sequence, and determines the shared key between the first device and the second device according to the phase information.
[0155] Optionally, in the case of receiving a first channel sounding sequence sent by the second device, the method further includes: converting the first channel sounding sequence into a parameter representation form, wherein the parameter representation form includes a first parameter;
[0156] Wherein, the first parameter includes:
[0157] Forward channel gain;
[0158] Phase response;
[0159] Additive Gaussian white noise;
[0160] Initial phase of the second device.
[0161] In this embodiment, the first device records the first channel detection sequence as a parameter representation. For example: the second device N2 sends the first channel detection sequence to the first device N1 After receiving the signal, N1 will send the first channel detection sequence Denoted as: where α 21 is the forward channel gain from the second device to the first device, θ 21 is the phase response of the second device to the first device, η 21 is the additive white Gaussian noise from the second device to the first device, φ2 is the initial phase of the second device N2; ωc represents the signal frequency, and t represents the signal sending time.
[0162] As an optional embodiment, determining phase information of a channel response according to a first channel sounding sequence sent by the second device includes:
[0163] Determine a second parameter according to the parameter representation corresponding to the first channel sounding sequence; the second parameter includes: an initial phase and a phase response of the second device; determine phase information of the channel response according to the initial phase of the first device and the second parameter.
[0164] Specifically, the first device calculates the final phase of the channel response as: S1 = φ 21 +φ1mod 2π. Among them, φ 21 ≈φ2+θ 21 φ2 is the initial phase of the second device, θ 21 is the phase response; φ1 is the initial phase of the first device; mod represents the modulo operation.
[0165] As an optional embodiment, determining a shared key between the first device and the second device according to the phase information includes:
[0166] quantizing the phase information to obtain a digital signal corresponding to the phase information;
[0167] Information reconciliation is performed on the digital signal to obtain a shared key between the first device and the second device.
[0168] In this embodiment, the first device quantizes the calculated phase response to obtain a digital signal corresponding to the phase information, which can be recorded as k S1 The first device searches for the position of the error bit in the digital signal by using an information reconciliation algorithm. The information reconciliation of the digital signal is performed, for example: k S1 Divide it into arrays of fixed length, check the check bits of each group, publish the parity of each group through a public channel for error correction, and obtain the shared key k.
[0169] Optionally, the second device may record the second channel detection sequence sent by the first device as a parameter representation. For example, the first device N1 sends the second channel detection sequence to the second device N2. After receiving the signal, N2 sends the second channel detection sequence Denoted as: where α 12 is the forward channel gain from the first device to the second device, θ 12 is the phase response from the first device to the second device, η 12is the additive white Gaussian noise from the first device to the second device, φ1 is the initial phase of the first device N1; ω c represents the signal frequency, and t represents the signal sending time.
[0170] The second device calculates the final phase of the channel response as: S2 = φ 12 +φ2mod 2π. Among them, φ 12 ≈φ1+θ 12 φ2 is the initial phase of the second device, θ 12 is the phase response; φ1 is the initial phase of the first device; mod represents the modulo operation.
[0171] The second device quantizes the calculated phase response to obtain a digital signal corresponding to the phase information, which can be recorded as k S2 The information adjustment of the digital signal is performed, for example: k S2 Divide it into arrays of fixed length, check the check bits of each group, publish the parity of each group through a public channel for error correction, and obtain the shared key k.
[0172] When the first device communicates with the second device, the shared key k can be used to encrypt the information to be sent. After receiving the information, the second device uses the shared key to decrypt it. If the decryption is successful, the first device and the second device establish a secure encrypted communication connection; if the decryption fails, the second device can ignore the communication request.
[0173] The following describes a specific embodiment of the process of executing communication between the first device and the second device.
[0174] like Figure 2 As shown, in this embodiment, there are two ubiquitous IoT devices: device 1 and device 2. There is one trust authority TA. The implementation process includes:
[0175] Step 21: System initialization, the trust institution TA selects a public key and a private key pair (Sk TA ,PK TA ), publish public parameters, including: prime cyclic group, order, generator, and hash function;
[0176] Step 22: Device 1 and device 2 register their information with the trust authority TA manager respectively, and obtain the corresponding public key and private key pair and electronic certificate, which are represented as (sk1, pk1, cert N1 ), (sk2,pk2,cert N2 );
[0177] Step 23: There is a communication demand between device 1 and device 2, and the two devices start initial authentication. At the initial transmission time T1, device 1 sends a communication request to device 2. The communication request uses an electronic signature and attaches the electronic certificate distributed by TA to the device. The communication request information includes <cert N1 ,T1,Sign N1 >.
[0178] Step 24: After receiving the communication request, device 2 verifies the electronic certificate of device 1. Verifies whether the electronic certificate is credible through the certificate revocation list provided by TA. Verifies the electronic signature through the public key pk1. If the verification is successful, further, device 2 replies to device 1 with a communication response, which includes <cert N2 ,T2,Sign N2 > If the verification fails, device 2 ignores the communication request.
[0179] Step 25: Device 1 verifies the electronic certificate and electronic signature of device 2 in the same manner as step 24. If the verification succeeds, a legal connection is established between device 1 and device 2. If the verification fails, device 1 ignores the communication response.
[0180] Step 26: Device 1 sends a second channel detection sequence to device 2 After receiving the signal, device 2 records the second channel detection sequence as where α 12 is the forward channel gain from device 1 to device 2, θ 12 is the phase response from device 1 to device 2, η 12 is the additive white Gaussian noise from device 1 to device 2, and φ1 is the initial phase of device 1.
[0181] Step 27: Device 2 sends a first channel detection sequence to device 1 After receiving the signal, device 1 records the first channel detection sequence as where α 21 is the forward channel gain from device 2 to device 1, θ 21 is the phase response of device 2 to device 1, η 21 is the additive white Gaussian noise from device 2 to device 1, and φ2 is the initial phase of device 2.
[0182] Step 28: Device 1 calculates the final phase information S1=φ of the channel response 21 +φ1mod 2π, where φ 21 ≈φ2+θ 21 .
[0183] Step 29: Device 2 calculates the final phase information S2 = φ of the channel response 12+φ2mod 2π, where φ 12 ≈φ1+θ 12 .
[0184] Step 210: Device 1 and device 2 quantize the phase information S1 and S2 respectively to obtain a digital signal k S1 and k S2 ;
[0185] Step 211: Device 1 and device 2 respectively transmit the digital signal k corresponding to the phase information S1 and k S2 Divide into arrays of fixed length, check the check bits of each group, find the position of the error bit in the digital signal, that is, perform error correction; publish the parity of each group of digital signals through a public channel for error correction, and obtain the shared key k;
[0186] Step 212: Device 1 uses the shared key k to encrypt the information to be sent, and sends the encrypted information to device 2.
[0187] Step 213: After receiving the information, device 2 uses the shared key k to decrypt the information. If the decryption is successful, device 1 and device 2 establish a secure encrypted communication connection; if the decryption fails, device 2 ignores the communication request.
[0188] The embodiment of the present application establishes a basic connection for device communication by using an asymmetric public key and private key pair to determine that both parties in communication are legitimate and legitimate. Further, by using key extraction technology based on physical layer security, a symmetric key is obtained through the reciprocity of the channel, so that both parties in communication can reach a key exchange to complete the subsequent encrypted communication.
[0189] By using the key negotiation method of the present application, both communicating parties can obtain the same key sequence, and the eavesdropping party cannot intercept any information of the sequence. When the key sequence meets the characteristics of randomness, unpredictability, and non-reproducibility, and the sequence length is greater than the length of the information itself, perfect encryption of information can be achieved during physical layer transmission.
[0190] The combination of asymmetric keys and symmetric keys based on physical layer security can not only ensure that the communicating parties can quickly establish a connection and establish legitimacy, but also save a lot of computing and communication costs for encrypted communications.
[0191] In an embodiment of the present application, the first device first verifies the electronic certificate of the second device, which can ensure that the first device and the second device establish a legal and secure communication connection; on the basis of ensuring the security of the communication channel, the first device determines the phase information of the channel response according to the channel detection sequence sent by the first device, and determines the shared key according to the phase information, which can ensure the security of the generated shared key, thereby realizing effective encryption of the physical layer transmission.
[0192] like Figure 3 As shown, the embodiment of the present application also provides a key negotiation method, which is applied to a second device, including:
[0193] Step 301: The second device verifies the electronic certificate of the first device.
[0194] In this embodiment, the first device and the second device need to register with the trust authority TA during the system initialization phase, and the trust authority TA distributes public key and private key pairs and corresponding electronic certificates to each device. The first device and the second device verify each other's electronic certificates to ensure that the two parties have established a legal connection.
[0195] Step 302: if the electronic certificate of the first device is verified, determine the phase information of the channel response according to the second channel sounding sequence sent by the first device;
[0196] Step 303: Determine a shared key between the second device and the first device according to the phase information.
[0197] In this embodiment, when the first device and the second device both pass the verification of the other party's electronic certificate, the first device sends a second channel sounding sequence to the second device, and the second device sends a first channel sounding sequence to the first device. The second device determines the phase information of the channel response according to the second channel sounding sequence, and determines the shared key according to the phase information. The first device and the second device can both determine the shared key, and then communicate using the shared key.
[0198] In an embodiment of the present application, the second device first verifies the electronic certificate of the first device, which can ensure that the first device and the second device establish a legal and secure communication connection; on the basis of ensuring the security of the communication channel, the second device determines the phase information of the channel response according to the channel detection sequence sent by the first device, and determines the shared key according to the phase information, which can ensure the security of the generated shared key, thereby realizing effective encryption of the physical layer transmission.
[0199] Optionally, the TA runs a key generation algorithm as a key manager to generate a public key and a private key pair (pk, sk); and signs the private key sk: is a set of numbers {1…,q-1}, q is a large prime number; sign the public key pk: Pk i =G*Sk i ∈G, where G is a finite group G ’ TA distributes the signed public key and private key pair to each device.
[0200] The device registers with TA and sends the device ID and public key (ID, Pk i ) is uploaded to TA, which verifies and sends the corresponding certificate cert to the device. i ←Sign(Sk i ,Pk i ,time,ID i ).
[0201] As an optional embodiment, the method further includes:
[0202] receiving a communication request message sent by the first device, wherein the communication request message includes: an electronic certificate of the first device;
[0203] If the electronic certificate of the first device is verified, sending a communication response message to the first device, the communication response message including: the electronic certificate of the second device;
[0204] The electronic certificate of the first device and the electronic certificate of the second device are configured by a trusted authority TA.
[0205] In this embodiment, the first device and the second device establish initial authentication and determine a shared key through an electronic certificate and channel detection.
[0206] Assume that the first device 1 and the second device are denoted as N1 and N2 respectively. At time point T1, N1 sends a communication request message to N2. The message uses an electronic signature and is attached with the electronic certificate distributed to the device by the key administrator TA. The communication request message includes N1's electronic certificate, the time when the message was sent, and N1's electronic signature: <cert N1 ,T1,Sign N1 >.
[0207] After receiving the communication request message, N2 verifies N1's electronic certificate. If the verification is successful, N2 replies with a communication response message, which includes N2's electronic certificate, information sending time, and N2's electronic signature: <cert N2 ,T2,Sign N2 >.
[0208] N1 verifies the electronic certificate of N2. If both parties pass the verification, it means that a legal connection has been established. Optionally, the first device and the second device can verify whether the certificate is credible based on the certificate revocation list provided by TA. Optionally, if the electronic certificate is verified, the electronic signature can also be verified by the public key. If the electronic signature is also verified, it is considered that the communicating devices have established a legal connection.
[0209] As an optional embodiment, the method further includes: in a case where the electronic certificate of the first device is verified successfully, sending a first channel probing sequence to the first device, wherein the first channel probing sequence is used by the first device to determine the shared key.
[0210] In this embodiment, after the first device and the second device both verify the electronic certificate, the second device sends a first channel detection sequence for channel detection to the first device. After the first device receives the first channel detection sequence, it can determine the phase information of the channel response according to the first channel detection sequence, and determine the shared key between the first device and the second device according to the phase information.
[0211] As an optional embodiment, the method further includes: receiving a second channel sounding sequence sent by the first device, where the second channel sounding sequence is sent when the electronic certificate of the second device is verified successfully.
[0212] In this embodiment, after the first device and the second device both verify the electronic certificate, the first device sends a second channel detection sequence for channel detection to the second device, and the second device determines the phase information of the channel response based on the second channel detection sequence, and determines the shared key between the first device and the second device according to the phase information.
[0213] Optionally, in the case of receiving a second channel sounding sequence sent by the first device, the method further includes: converting the second channel sounding sequence into a parameter representation form, wherein the parameter representation form includes a third parameter;
[0214] Wherein, the third parameter includes:
[0215] Forward channel gain;
[0216] Phase response;
[0217] Additive Gaussian white noise;
[0218] Initial phase of the first device.
[0219] In this embodiment, the second device may record the second channel detection sequence sent by the first device as a parameter representation. For example, the first device N1 sends the second channel detection sequence PS to the second device N2.N12 After receiving the signal, N2 will send the second channel detection sequence Denoted as: where α 12 is the forward channel gain, θ 12 is the phase response, η 12 is additive white Gaussian noise, φ1 is the initial phase of the first device N1; ω c represents the signal frequency, and t represents the signal sending time.
[0220] As an optional embodiment, determining phase information of a channel response according to a second channel sounding sequence sent by the first device includes:
[0221] Determine a fourth parameter according to the parameter representation corresponding to the second channel sounding sequence; the fourth parameter includes: an initial phase and a phase response of the first device; and determine phase information of the channel response according to the initial phase of the second device and the fourth parameter.
[0222] Specifically, the second device calculates the final phase of the channel response as: S2 = φ 12 +φ2mod 2π. Among them, φ 12 ≈φ1+θ 12 φ2 is the initial phase of the second device, θ 12 is the phase response; φ1 is the initial phase of the first device; mod represents the modulo operation.
[0223] As an optional embodiment, determining a shared key between the second device and the first device according to the phase information includes:
[0224] The phase information is quantized to obtain a digital signal corresponding to the phase information; and the digital signal is harmonized to obtain a shared key between the second device and the first device.
[0225] In this embodiment, the second device quantizes the calculated phase response to obtain a digital signal corresponding to the phase information, which can be recorded as k S2 The information adjustment of the digital signal is performed, for example: k S2 Divide it into arrays of fixed length, check the check bits of each group, publish the parity of each group through a public channel for error correction, and obtain the shared key k.
[0226] When the first device communicates with the second device, the shared key k can be used to encrypt the information to be sent. After receiving the information, the second device uses the shared key to decrypt it. If the decryption is successful, the first device and the second device establish a secure encrypted communication connection; if the decryption fails, the second device can ignore the communication request.
[0227] In an embodiment of the present application, the second device first verifies the electronic certificate of the first device, which can ensure that the first device and the second device establish a legal and secure communication connection; on the basis of ensuring the security of the communication channel, the second device determines the phase information of the channel response according to the channel detection sequence sent by the first device, and determines the shared key according to the phase information, which can ensure the security of the generated shared key, thereby realizing effective encryption of the physical layer transmission.
[0228] The above embodiments introduce the key negotiation method of the present application. The following embodiments will further illustrate the corresponding device in conjunction with the accompanying drawings.
[0229] Specifically, Figure 4 As shown, the embodiment of the present application provides a key agreement device 400, which is applied to a first device and includes:
[0230] A first verification unit 410, configured to verify the electronic certificate of the second device;
[0231] A first determining unit 420 is configured to determine phase information of a channel response according to a first channel sounding sequence sent by the second device when the electronic certificate of the second device is verified;
[0232] The second determining unit 430 is configured to determine a shared key between the first device and the second device according to the phase information.
[0233] Optionally, the device further comprises:
[0234] A first sending unit is configured to send a communication request message to the second device, wherein the communication request message includes: an electronic certificate of the first device;
[0235] A first receiving unit is configured to receive a communication response message sent by the second device, wherein the communication response message includes: an electronic certificate of the second device;
[0236] The electronic certificate of the first device and the electronic certificate of the second device are configured by a trusted authority TA.
[0237] Optionally, the device further comprises:
[0238] The second receiving unit is configured to receive a first channel detection sequence sent by the second device, where the first channel detection sequence is sent when the electronic certificate of the first device is verified successfully.
[0239] Optionally, the device further comprises:
[0240] The second sending unit is configured to send a second channel detection sequence to the second device when the electronic certificate of the second device is verified successfully, wherein the second channel detection sequence is used by the second device to determine the shared key.
[0241] Optionally, the device further comprises:
[0242] A first conversion unit, configured to convert the first channel sounding sequence into a parameter representation form, wherein the parameter representation form includes a first parameter;
[0243] Wherein, the first parameter includes:
[0244] Forward channel gain;
[0245] Phase response;
[0246] Additive Gaussian white noise;
[0247] Initial phase of the second device.
[0248] Optionally, the first determining unit is specifically configured to:
[0249] Determining a second parameter according to a parameter representation corresponding to the first channel sounding sequence; the second parameter includes: an initial phase and a phase response of the second device;
[0250] Phase information of the channel response is determined according to the initial phase of the first device and the second parameter.
[0251] Optionally, the second determining unit is specifically configured to:
[0252] quantizing the phase information to obtain a digital signal corresponding to the phase information;
[0253] Information reconciliation is performed on the digital signal to obtain a shared key between the first device and the second device.
[0254] It should be noted here that the above-mentioned device provided in the embodiment of the present application can implement all the method steps implemented by the above-mentioned method embodiment applied to the first device, and can achieve the same technical effect. The parts and beneficial effects of this embodiment that are the same as the method embodiment will not be described in detail here.
[0255] Specifically, Figure 5 As shown, the embodiment of the present application provides a key agreement device 500, which is applied to a second device, including:
[0256] The second verification unit 510 is used to verify the electronic certificate of the first device;
[0257] A third determining unit 520 is configured to determine phase information of a channel response according to a second channel sounding sequence sent by the first device when the electronic certificate of the first device is verified.
[0258] The fourth determining unit 530 is configured to determine a shared key between the second device and the first device according to the phase information.
[0259] Optionally, the device further comprises:
[0260] A third receiving unit is configured to receive a communication request message sent by the first device, wherein the communication request message includes: an electronic certificate of the first device;
[0261] A third sending unit is configured to send a communication response message to the first device when the electronic certificate of the first device is verified, wherein the communication response message includes: the electronic certificate of the second device;
[0262] The electronic certificate of the first device and the electronic certificate of the second device are configured by a trusted authority TA.
[0263] Optionally, the device further comprises:
[0264] The fourth receiving unit is configured to receive a second channel detection sequence sent by the first device, where the second channel detection sequence is sent when the electronic certificate of the second device is verified successfully.
[0265] Optionally, the device further comprises:
[0266] The fourth sending unit is configured to send a first channel probing sequence to the first device when the electronic certificate of the first device is verified successfully, wherein the first channel probing sequence is used by the first device to determine the shared key.
[0267] Optionally, the device further comprises:
[0268] A second conversion unit, configured to convert the second channel sounding sequence into a parameter representation form, wherein the parameter representation form includes a third parameter;
[0269] Wherein, the third parameter includes:
[0270] Forward channel gain;
[0271] Phase response;
[0272] Additive Gaussian white noise;
[0273] Initial phase of the first device.
[0274] Optionally, the third determining unit is specifically configured to:
[0275] Determine a fourth parameter according to a parameter representation corresponding to the second channel sounding sequence; the fourth parameter includes: an initial phase and a phase response of the first device;
[0276] Phase information of the channel response is determined according to the initial phase of the second device and the fourth parameter.
[0277] Optionally, the fourth determining unit is specifically configured to:
[0278] quantizing the phase information to obtain a digital signal corresponding to the phase information;
[0279] Information reconciliation is performed on the digital signal to obtain a shared key between the second device and the first device.
[0280] It should be noted here that the above-mentioned device provided in the embodiment of the present application can implement all the method steps implemented by the above-mentioned method embodiment applied to the second device, and can achieve the same technical effect. The parts and beneficial effects of this embodiment that are the same as the method embodiment will not be described in detail here.
[0281] It should be noted that the division of units in the 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 each unit may exist physically separately, or two or more units may be integrated into one unit. The above-mentioned integrated unit may be implemented in the form of hardware or in the form of software functional units.
[0282] 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 processor-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, server, or 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.
[0283] like Figure 6As shown, an embodiment of the present application further provides a terminal, which may be a first device, including: a memory 620, a transceiver 600, and a processor 610; wherein the memory 620 is used to store a computer program; the transceiver 600 is used to receive and send data under the control of the processor 610; the processor 610 is used to read the computer program in the memory and perform the following operations:
[0284] verifying the electronic certificate of the second device;
[0285] If the electronic certificate of the second device is verified successfully, determining phase information of a channel response according to a first channel sounding sequence sent by the second device;
[0286] A shared key between the first device and the second device is determined according to the phase information.
[0287] Optionally, the processor is configured to read the computer program in the memory and perform the following operations:
[0288] Sending a communication request message to the second device, the communication request message including: the electronic certificate of the first device;
[0289] receiving a communication response message sent by the second device, the communication response message including: an electronic certificate of the second device;
[0290] The electronic certificate of the first device and the electronic certificate of the second device are configured by a trusted authority TA.
[0291] Optionally, the processor is configured to read the computer program in the memory and perform the following operations:
[0292] A first channel sounding sequence sent by the second device is received, where the first channel sounding sequence is sent when the electronic certificate of the first device is verified successfully.
[0293] Optionally, the processor is configured to read the computer program in the memory and perform the following operations:
[0294] In the case that the electronic certificate of the second device is verified successfully, a second channel probing sequence is sent to the second device, where the second channel probing sequence is used by the second device to determine the shared key.
[0295] Optionally, the processor is configured to read the computer program in the memory and perform the following operations:
[0296] converting the first channel sounding sequence into a parameter representation form, the parameter representation form including a first parameter;
[0297] Wherein, the first parameter includes:
[0298] Forward channel gain;
[0299] Phase response;
[0300] Additive Gaussian white noise;
[0301] Initial phase of the second device.
[0302] Optionally, the processor is configured to read the computer program in the memory and perform the following operations:
[0303] Determining a second parameter according to a parameter representation corresponding to the first channel sounding sequence; the second parameter includes: an initial phase and a phase response of the second device;
[0304] Phase information of the channel response is determined according to the initial phase of the first device and the second parameter.
[0305] Optionally, the processor is configured to read the computer program in the memory and perform the following operations:
[0306] quantizing the phase information to obtain a digital signal corresponding to the phase information;
[0307] Information reconciliation is performed on the digital signal to obtain a shared key between the first device and the second device.
[0308] Among them, Figure 6 In the embodiment, the bus architecture may include any number of interconnected buses and bridges, specifically one or more processors represented by processor 610 and various circuits of memory represented by memory 620 are linked together. The bus architecture may also link together various other circuits such as peripherals, voltage regulators, and power management circuits, which are well known in the art and are therefore not further described herein. The bus interface provides an interface. The transceiver 600 may be a plurality of components, namely, a transmitter and a transceiver, providing a unit for communicating with various other devices on a transmission medium. For different user devices, the user interface 630 may also be an interface capable of externally and internally connecting required devices, and the connected devices include but are not limited to a keypad, a display, a speaker, a microphone, a joystick, and the like.
[0309] The processor 610 is responsible for managing the bus architecture and general processing, and the memory 620 can store data used by the processor 610 when performing operations.
[0310] Optionally, the processor 610 may be a central processing unit (CPU), an application specific integrated circuit (ASIC), a field programmable gate array (FPGA) or a complex programmable logic device (CPLD), and the processor may also adopt a multi-core architecture.
[0311] The processor calls the computer program stored in the memory to execute any of the methods provided in the embodiments of the present application according to the obtained executable instructions. The processor and the memory can also be arranged physically separately.
[0312] It should be noted here that the above-mentioned terminal provided in the embodiment of the present application can implement all the method steps implemented by the above-mentioned method embodiment applied to the first device, and can achieve the same technical effect. The parts and beneficial effects that are the same as the method embodiment in this embodiment will not be described in detail here.
[0313] like Figure 7 As shown, an embodiment of the present application further provides a terminal, which may be a second device, including: a memory 720, a transceiver 700, and a processor 710; wherein the memory 720 is used to store a computer program; the transceiver 700 is used to receive and send data under the control of the processor 710; the processor 710 is used to read the computer program in the memory and perform the following operations:
[0314] verifying the electronic certificate of the first device;
[0315] When the electronic certificate of the first device is verified, determining phase information of a channel response according to a second channel sounding sequence sent by the first device;
[0316] A shared key between the second device and the first device is determined according to the phase information.
[0317] Optionally, the processor is configured to read the computer program in the memory and perform the following operations:
[0318] receiving a communication request message sent by the first device, wherein the communication request message includes: an electronic certificate of the first device;
[0319] If the electronic certificate of the first device is verified, sending a communication response message to the first device, the communication response message including: the electronic certificate of the second device;
[0320] The electronic certificate of the first device and the electronic certificate of the second device are configured by a trusted authority TA.
[0321] Optionally, the processor is configured to read the computer program in the memory and perform the following operations:
[0322] A second channel sounding sequence sent by the first device is received, where the second channel sounding sequence is sent when the electronic certificate of the second device is verified successfully.
[0323] Optionally, the processor is configured to read the computer program in the memory and perform the following operations:
[0324] In a case where the electronic certificate of the first device is verified successfully, a first channel probing sequence is sent to the first device, where the first channel probing sequence is used by the first device to determine the shared key.
[0325] Optionally, the processor is configured to read the computer program in the memory and perform the following operations:
[0326] converting the second channel sounding sequence into a parameter representation form, the parameter representation form including a third parameter;
[0327] Wherein, the third parameter includes:
[0328] Forward channel gain;
[0329] Phase response;
[0330] Additive Gaussian white noise;
[0331] Initial phase of the first device.
[0332] Optionally, the processor is configured to read the computer program in the memory and perform the following operations:
[0333] Determine a fourth parameter according to a parameter representation corresponding to the second channel sounding sequence; the fourth parameter includes: an initial phase and a phase response of the first device;
[0334] Phase information of the channel response is determined according to the initial phase of the second device and the fourth parameter.
[0335] Optionally, the processor is configured to read the computer program in the memory and perform the following operations:
[0336] quantizing the phase information to obtain a digital signal corresponding to the phase information;
[0337] Information reconciliation is performed on the digital signal to obtain a shared key between the second device and the first device.
[0338] Among them, Figure 7 In the embodiment, the bus architecture may include any number of interconnected buses and bridges, specifically one or more processors represented by processor 710 and various circuits of memory represented by memory 720 are linked together. The bus architecture may also link together various other circuits such as peripherals, voltage regulators, and power management circuits, which are well known in the art and are therefore not further described herein. The bus interface provides an interface. The transceiver 700 may be a plurality of components, namely, a transmitter and a transceiver, providing a unit for communicating with various other devices on a transmission medium. For different user devices, the user interface 730 may also be an interface capable of externally and internally connecting required devices, and the connected devices include but are not limited to a keypad, a display, a speaker, a microphone, a joystick, and the like.
[0339] The processor 710 is responsible for managing the bus architecture and general processing, and the memory 720 can store data used by the processor 710 when performing operations.
[0340] Optionally, the processor 710 may be a central processing unit (CPU), an application specific integrated circuit (ASIC), a field programmable gate array (FPGA) or a complex programmable logic device (CPLD), and the processor may also adopt a multi-core architecture.
[0341] The processor calls the computer program stored in the memory to execute any of the methods provided in the embodiments of the present application according to the obtained executable instructions. The processor and the memory can also be arranged physically separately.
[0342] It should be noted here that the above-mentioned terminal provided in the embodiment of the present application can implement all the method steps implemented by the above-mentioned method embodiment applied to the second device, and can achieve the same technical effect. The parts and beneficial effects of this embodiment that are the same as the method embodiment will not be described in detail here.
[0343] In addition, a specific embodiment of the present application further provides a processor-readable storage medium on which a computer program is stored, wherein the program, when executed by the processor, implements the steps of the key negotiation method described above, and can achieve the same technical effect, which will not be described here to avoid repetition. The readable storage medium may be any available medium or data storage device accessible by the processor, including but not limited to magnetic storage (such as floppy disks, hard disks, magnetic tapes, magneto-optical disks (MO), etc.), optical storage (such as CD, DVD, BD, HVD, etc.), and semiconductor storage (such as ROM, EPROM, EEPROM, non-volatile memory (NAND FLASH), solid-state drive (SSD)), etc.
[0344] It should be noted that the technical solution provided in the embodiment of the present application can be applicable to a variety of systems, especially 5G systems. For example, the applicable system can be a global system of mobile communication (GSM) system, a code division multiple access (CDMA) system, a wideband code division multiple access (WCDMA) general packet radio service (GPRS) system, a long term evolution (LTE) system, a LTE frequency division duplex (FDD) system, a LTE time division duplex (TDD) system, an advanced long term evolution (LTE-A) system, a universal mobile telecommunication system (UMTS), a world-wide interoperability for microwave access (WiMAX) system, a 5G new radio (NR) system, etc. These various systems include terminal equipment and network equipment. The system may also include a core network part, such as an evolved packet system (EPS), a 5G system (5GS), etc.
[0345] The terminal device involved in the embodiment of the present application may be a device that provides voice and / or data connectivity to a user, a handheld device with a wireless connection function, or other processing devices connected to a wireless modem. In different systems, the name of the terminal device may also be different. For example, in a 5G system, the terminal device may be called a user equipment (UE). A wireless terminal device can communicate with one or more core networks (CN) via a radio access network (RAN). The wireless terminal device may be a mobile terminal device, such as a mobile phone (or a "cellular" phone) and a computer with a mobile terminal device. For example, it may be a portable, pocket-sized, handheld, computer-built-in or vehicle-mounted mobile device that exchanges language and / or data with a wireless access network. For example, personal communication service (PCS) phones, cordless phones, session initiation protocol (SIP) phones, wireless local loop (WLL) stations, personal digital assistants (PDAs) and other devices. The wireless terminal device may also be referred to as a system, a subscriber unit, a subscriber station, a mobile station, a mobile station, a remote station, an access point, a remote terminal device, an access terminal device, a user terminal device, a user agent, and a user device, but is not limited in the embodiments of the present application.
[0346] The network device involved in the embodiment of the present application may be a base station, which may include multiple cells providing services for the terminal. Depending on the specific application scenario, the base station may also be called an access point, or may be a device in the access network that communicates with the wireless terminal device through one or more sectors on the air interface, or other names. The network device may be used to interchange received air frames with Internet Protocol (IP) packets, and serve as a router between the wireless terminal device and the rest of the access network, wherein the rest of the access network may include an Internet Protocol (IP) communication network. The network device may also coordinate the attribute management of the air interface. For example, the network device involved in the embodiments of the present application may be a network device (Base Transceiver Station, BTS) in the Global System for Mobile communications (Global System for Mobile communications, GSM) or Code Division Multiple Access (Code Division Multiple Access, CDMA), or a network device (NodeB) in Wide-band Code Division Multiple Access (WCDMA), or an evolutionary network device (evolutional Node B, eNB or e-NodeB) in the long term evolution (long term evolution, LTE) system, a 5G base station (gNB) in the 5G network architecture (next generation system), or a home evolved Node B (Home evolved Node B, HeNB), a relay node, a home base station (femto), a pico base station (pico), etc., which is not limited in the embodiments of the present application. In some network structures, the network device may include a centralized unit (CU) node and a distributed unit (DU) node, and the centralized unit and the distributed unit may also be arranged geographically separately.
[0347] Network devices and terminal devices can each use one or more antennas for multiple-input multiple-output (MIMO) transmission. MIMO transmission can be single-user MIMO (SU-MIMO) or multi-user MIMO (MU-MIMO). Depending on the form and number of antenna combinations, MIMO transmission can be 2D-MIMO, 3D-MIMO, FD-MIMO or massive-MIMO, or it can be diversity transmission, precoded transmission or beamforming transmission, etc.
[0348] 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 on one or more computer-usable storage media (including but not limited to disk storage and optical storage, etc.) that contain computer-usable program code.
[0349] 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 embodiment of the present application. It should be understood that each process and / or box in the flowchart and / or block diagram, and the combination of the process and / or box in the flowchart and / or block diagram can be implemented by computer executable instructions. These computer executable 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 a process or multiple processes in the flowchart and / or a box or multiple boxes in the block diagram.
[0350] These processor-executable instructions may also be stored in a processor-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 processor-readable memory produce a 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.
[0351] These processor-executable instructions may also be loaded onto a computer or other programmable data processing device so that a series of operational steps are performed 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.
[0352] Obviously, those skilled in the art can make various changes and modifications to the present application without departing from the spirit and 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
1. A key negotiation method, characterized in that: include: The first device verifies the electronic certificate of the second device; If the electronic certificate of the second device is verified successfully, determining phase information of a channel response according to a first channel sounding sequence sent by the second device; A shared key between the first device and the second device is determined according to the phase information.
2. The method according to claim 1, characterized in that The method further comprises: Sending a communication request message to the second device, the communication request message including: the electronic certificate of the first device; receiving a communication response message sent by the second device, the communication response message including: an electronic certificate of the second device; The electronic certificate of the first device and the electronic certificate of the second device are configured by a trusted authority TA.
3. The method according to claim 1, characterized in that The method further comprises: A first channel sounding sequence sent by the second device is received, where the first channel sounding sequence is sent when the electronic certificate of the first device is verified successfully.
4. The method according to claim 1, characterized in that The method further comprises: In the case that the electronic certificate of the second device is verified successfully, a second channel probing sequence is sent to the second device, where the second channel probing sequence is used by the second device to determine the shared key.
5. The method according to claim 3, characterized in that: In case of receiving the first channel sounding sequence sent by the second device, the method further includes: converting the first channel sounding sequence into a parameter representation form, the parameter representation form including a first parameter; Wherein, the first parameter includes: Forward channel gain; Phase response; Additive Gaussian white noise; Initial phase of the second device.
6. The method according to claim 1 or 5, characterized in that: Determining phase information of a channel response according to a first channel sounding sequence sent by the second device includes: Determining a second parameter according to a parameter representation corresponding to the first channel sounding sequence; the second parameter includes: an initial phase and a phase response of the second device; Phase information of the channel response is determined according to the initial phase of the first device and the second parameter.
7. The method according to claim 1, characterized in that The determining, according to the phase information, a shared key between the first device and the second device includes: quantizing the phase information to obtain a digital signal corresponding to the phase information; Information reconciliation is performed on the digital signal to obtain a shared key between the first device and the second device.
8. A key negotiation method, characterized in that: include: The second device verifies the electronic certificate of the first device; When the electronic certificate of the first device is verified, determining phase information of a channel response according to a second channel sounding sequence sent by the first device; A shared key between the second device and the first device is determined according to the phase information.
9. The method according to claim 8, characterized in that The method further comprises: receiving a communication request message sent by the first device, wherein the communication request message includes: an electronic certificate of the first device; If the electronic certificate of the first device is verified, sending a communication response message to the first device, the communication response message including: the electronic certificate of the second device; The electronic certificate of the first device and the electronic certificate of the second device are configured by a trusted authority TA.
10. The method according to claim 8, characterized in that The method further comprises: A second channel sounding sequence sent by the first device is received, where the second channel sounding sequence is sent when the electronic certificate of the second device is verified successfully.
11. The method according to claim 8, characterized in that The method further comprises: In a case where the electronic certificate of the first device is verified successfully, a first channel probing sequence is sent to the first device, where the first channel probing sequence is used by the first device to determine the shared key.
12. The method according to claim 10, characterized in that In case of receiving a second channel sounding sequence sent by the first device, the method further includes: converting the second channel sounding sequence into a parameter representation form, the parameter representation form including a third parameter; Wherein, the third parameter includes: Forward channel gain; Phase response; Additive Gaussian white noise; Initial phase of the first device.
13. The method according to claim 8 or 12, characterized in that: Determining phase information of a channel response according to a second channel sounding sequence sent by the first device includes: Determine a fourth parameter according to a parameter representation corresponding to the second channel sounding sequence; the fourth parameter includes: an initial phase and a phase response of the first device; Phase information of the channel response is determined according to the initial phase of the second device and the fourth parameter.
14. The method according to claim 8, characterized in that The determining, according to the phase information, a shared key between the second device and the first device includes: quantizing the phase information to obtain a digital signal corresponding to the phase information; Information reconciliation is performed on the digital signal to obtain a shared key between the second device and the first device.
15. A terminal, characterized in that: include: Memory, transceiver, processor: Memory for storing computer programs; a transceiver for receiving and sending data under the control of the processor; A processor is configured to read the computer program in the memory and perform the following operations: verifying the electronic certificate of the second device; If the electronic certificate of the second device is verified successfully, determining phase information of a channel response according to a first channel sounding sequence sent by the second device; A shared key between the first device and the second device is determined according to the phase information.
16. The terminal according to claim 15, characterized in that: The processor is configured to read the computer program in the memory and perform the following operations: Sending a communication request message to the second device, the communication request message including: the electronic certificate of the first device; receiving a communication response message sent by the second device, the communication response message including: an electronic certificate of the second device; The electronic certificate of the first device and the electronic certificate of the second device are configured by a trusted authority TA.
17. The terminal according to claim 15, characterized in that: The processor is configured to read the computer program in the memory and perform the following operations: A first channel sounding sequence sent by the second device is received, where the first channel sounding sequence is sent when the electronic certificate of the first device is verified successfully.
18. The terminal according to claim 15, characterized in that: The processor is configured to read the computer program in the memory and perform the following operations: In the case that the electronic certificate of the second device is verified successfully, a second channel probing sequence is sent to the second device, where the second channel probing sequence is used by the second device to determine the shared key.
19. The terminal according to claim 17, characterized in that: The processor is configured to read the computer program in the memory and perform the following operations: converting the first channel sounding sequence into a parameter representation form, the parameter representation form including a first parameter; Wherein, the first parameter includes: Forward channel gain; Phase response; Additive Gaussian white noise; Initial phase of the second device.
20. The terminal according to claim 15 or 19, characterized in that: The processor is configured to read the computer program in the memory and perform the following operations: Determining a second parameter according to a parameter representation corresponding to the first channel sounding sequence; the second parameter includes: an initial phase and a phase response of the second device; Phase information of the channel response is determined according to the initial phase of the first device and the second parameter.
21. The terminal according to claim 15, characterized in that The processor is configured to read the computer program in the memory and perform the following operations: quantizing the phase information to obtain a digital signal corresponding to the phase information; Information reconciliation is performed on the digital signal to obtain a shared key between the first device and the second device.
22. A terminal, characterized in that: include: Memory, transceiver, processor: Memory for storing computer programs; a transceiver for receiving and sending data under the control of the processor; A processor is configured to read the computer program in the memory and perform the following operations: verifying the electronic certificate of the first device; When the electronic certificate of the first device is verified, determining phase information of a channel response according to a second channel sounding sequence sent by the first device; A shared key between the second device and the first device is determined according to the phase information.
23. The terminal according to claim 22, characterized in that: The processor is configured to read the computer program in the memory and perform the following operations: receiving a communication request message sent by the first device, wherein the communication request message includes: an electronic certificate of the first device; If the electronic certificate of the first device is verified, sending a communication response message to the first device, the communication response message including: the electronic certificate of the second device; The electronic certificate of the first device and the electronic certificate of the second device are configured by a trusted authority TA.
24. The terminal according to claim 22, characterized in that: The processor is configured to read the computer program in the memory and perform the following operations: A second channel sounding sequence sent by the first device is received, where the second channel sounding sequence is sent when the electronic certificate of the second device is verified successfully.
25. The terminal according to claim 22, characterized in that: The processor is configured to read the computer program in the memory and perform the following operations: In a case where the electronic certificate of the first device is verified successfully, a first channel probing sequence is sent to the first device, where the first channel probing sequence is used by the first device to determine the shared key.
26. The terminal according to claim 24, characterized in that The processor is configured to read the computer program in the memory and perform the following operations: converting the second channel sounding sequence into a parameter representation form, the parameter representation form including a third parameter; Wherein, the third parameter includes: Forward channel gain; Phase response; Additive Gaussian white noise; Initial phase of the first device.
27. The terminal according to claim 22 or 26, characterized in that: The processor is configured to read the computer program in the memory and perform the following operations: Determine a fourth parameter according to a parameter representation corresponding to the second channel sounding sequence; the fourth parameter includes: an initial phase and a phase response of the first device; Phase information of the channel response is determined according to the initial phase of the second device and the fourth parameter.
28. The terminal according to claim 22, characterized in that The processor is configured to read the computer program in the memory and perform the following operations: quantizing the phase information to obtain a digital signal corresponding to the phase information; Information reconciliation is performed on the digital signal to obtain a shared key between the second device and the first device.
29. A key negotiation device, characterized in that: include: A first verification unit, used to verify the electronic certificate of the second device; A first determining unit, configured to determine phase information of a channel response according to a first channel sounding sequence sent by the second device when the electronic certificate of the second device is verified; The second determining unit is configured to determine a shared key between the first device and the second device according to the phase information.
30. A key negotiation device, characterized in that: include: A second verification unit, used to verify the electronic certificate of the first device; a third determining unit, configured to determine phase information of a channel response according to a second channel sounding sequence sent by the first device when the electronic certificate of the first device is verified; A fourth determining unit is configured to determine a shared key between the second device and the first device according to the phase information.
31. A processor-readable storage medium having a computer program stored thereon, characterized in that: When the computer program is executed by a processor, the steps of the key negotiation method according to any one of claims 1 to 7 are implemented.
32. A processor-readable storage medium having a computer program stored thereon, characterized in that: When the computer program is executed by a processor, the steps of the key negotiation method according to any one of claims 8 to 14 are implemented.
