Communication security key generation method and device

Through the two-round quantization and binary sequence classification method and error correction mechanism, the problem of high computational complexity of key generation in IoT devices is solved, and secure and consistent key generation is achieved, which is suitable for devices with low computing power.

CN115278668BActive Publication Date: 2024-10-29XI AN JIAOTONG UNIV
View PDF 2 Cites 0 Cited by

Patent Information

Application Number
CN202210885713.5
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2022-07-26
Publication Date
2024-10-29
Estimated Expiration
2042-07-26

AI Technical Summary

Technical Problem

Existing physical layer key generation methods have high computational complexity in IoT devices, cannot adapt to devices with low computing power and signal processing capabilities, and have large communication overhead, making it difficult to generate secure and consistent keys.

Method used

It uses two rounds of quantization and binary sequence classification methods to generate keys through shared parameters and channel parameters, reducing computational complexity and improving key consistency and security through error correction mechanisms. It is suitable for devices with low computing power.

Benefits of technology

The key rate is improved, the computational complexity and communication overhead are reduced, and the generated keys are secure and consistent, making it suitable for IoT devices with low computing power and low signal processing capabilities.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN115278668B_ABST
    Figure CN115278668B_ABST
Patent Text Reader

Abstract

The present invention discloses a communication security key generation method and device. First, the wireless communication devices need to mutually send pilot signals to detect and obtain channel characteristic values, quantize the channel characteristic values ​​into binary sequences through corresponding quantization methods, and then construct them into first parameters of the first device and first parameters of the second device. The error correction parameters and error position table are calculated using the Chinese remainder theorem and the Chinese remainder error correction theorem. After the inconsistent data of the first parameter of the first device and the first parameter of the second device are discarded by exchanging these two data information, the communication devices use the first parameter of the first device and the first parameter of the second device after error correction and the first parameter of the first device and the second parameter of the second device generated during the error correction process to construct a key. Finally, the communication devices obtain consistent keys. The present invention improves the key rate and has low computational complexity. It is suitable for IoT communication scenarios and communication devices, and can be widely used in IoT communications to ensure its communication security.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention belongs to the field of wireless communication security, and in particular relates to a communication security key generation method and device. Background Art

[0002] In the 5G era, wireless communications are ubiquitous, but their broadcasting characteristics bring great security issues. Especially in scenarios with high security levels such as mobile payment, Internet of Things, smart medical care, and smart driving, it is urgent to strengthen wireless communication security. 5G proposes three major scenarios: enhanced mobile broadband (eMBB), ultra-reliable and low-latency communication (uRLLC), and massive machine-type communications (mMTC). This means that 5G has expanded from connecting people to connecting people to things, and things to things, making the Internet of Everything possible.

[0003] Wireless communication security measures for the Internet of Things need to meet the characteristics of its scenarios. Currently, modern cryptography based on the difficulty of mathematical problems is basically used in communication devices, such as the Diffie-Hellman (DH) key exchange protocol. However, its calculation is complex. However, in the Internet of Things, some terminals or sensors do not have large storage and computing capabilities, which makes it impossible to configure and implement modern encryption algorithms, so new key generation methods need to be studied. In the past two decades, using the intrinsic properties of the physical layer to generate keys and achieve encryption has become a research hotspot.

[0004] However, some existing physical layer key generation methods were designed without considering whether the communication overhead, computing power and signal processing capabilities they bring are compatible with IoT devices and technologies. For example, some existing negotiation methods also have certain drawbacks. The complexity of LDPC error correction negotiation coding is relatively high, and some devices cannot support its encoding and decoding. Summary of the invention

[0005] In view of the problems existing in the prior art, the present invention provides a communication security key generation method and device, which improves the key rate while reducing the calculation complexity. At the same time, it also increases the security of the key to prevent eavesdroppers from obtaining it.

[0006] In order to solve the above technical problems, the present invention is implemented by the following technical solutions:

[0007] A communication security key generation method, comprising:

[0008] A set of first public parameters, second public parameters and third public parameters is set for sharing by the first device and the second device, wherein the first public parameter is an array whose elements are mutually prime and arranged from small to large, the second public parameter is a number less than the length of the first public parameter, and the third public parameter is calculated from the first public parameter and the third public parameter;

[0009] The first device and the second device respectively obtain a first channel parameter and a second channel parameter by sending pilot signals to each other;

[0010] Based on the two-round quantization and binary sequence classification method, the first device quantizes the first channel parameter to generate a first binary sequence and a second binary sequence, and the second device quantizes the second channel parameter to generate a third binary sequence and a fourth binary sequence, wherein the two-round quantization adopts a double threshold quantization method;

[0011] The first device interleaves the first binary sequence and the second binary sequence to obtain a first device binary sequence, and the second device interleaves the third binary sequence and the fourth binary sequence to obtain a second device binary sequence;

[0012] The first device and the second device construct a first parameter of the first device and a second parameter of the second device using the first device binary sequence and the second device binary sequence respectively;

[0013] The first device calculates, by using the first parameter of the first device and the first public parameter, a second parameter of the first device and an error correction parameter, and sends the error correction parameter to the second device;

[0014] The second device calculates a second parameter of the second device and a third parameter of the second device by using the error correction parameter, the first public parameter, the second public parameter and the first parameter of the second device, and then determines an error position table by comparing the second parameter of the second device with the third parameter of the second device, and sends the error position table to the first device;

[0015] The first device removes the numbers in the first parameter of the first device and the second parameter of the first device that are in the same position as the position of the digital non-0 element in the error position table according to the error position table and the third public parameter, to obtain the first parameter of the first device after error correction and the second parameter of the first device after error correction; the second device removes the numbers in the first parameter of the second device and the second parameter of the second device that are in the same position as the position of the digital non-0 element in the error position table according to the error position table and the third public parameter, to obtain the first parameter of the second device after error correction and the second parameter of the second device after error correction;

[0016] The first device calculates a key using the first parameter of the first device after error correction and the second parameter of the first device after error correction, and the second device calculates a key using the first parameter of the second device after error correction and the second parameter of the second device after error correction.

[0017] Furthermore, the third public parameter is calculated from the first public parameter and the third public parameter, as follows:

[0018]

[0019] In the formula, Indicates rounding down.

[0020] Further, based on the two-round quantization and binary sequence classification method, the first device quantizes the first channel parameter to generate a first binary sequence and a second binary sequence, including:

[0021] The first device performs a first round of quantization and binary sequence classification on the first channel parameter to obtain a first binary sequence;

[0022] The first device performs a second round of quantization and binary sequence classification on the first channel parameter that is not quantized in the first round of quantization to obtain a second binary sequence;

[0023] Based on the two-round quantization and binary sequence classification method, the second device quantizes the second channel parameter to generate a third binary sequence and a fourth binary sequence, including:

[0024] The second device performs a first round of quantization and binary sequence classification on the second channel parameter to obtain a third binary sequence;

[0025] The second device performs a second round of quantization and binary sequence classification on the second channel parameters that are not quantized in the first round of quantization to obtain a fourth binary sequence.

[0026] Furthermore, the first device and the second device respectively construct a first parameter of the first device and a second parameter of the second device using the first device binary sequence and the second device binary sequence, including:

[0027] The first device converts each L bit in the first device binary sequence into a decimal number, where L is determined by the minimum number in the first public parameter, If the length of the binary sequence of the first device is not an integer multiple of L multiplied by the length of the first public parameter, 0 and 1 are substituted alternately, and the first parameter of the first device consists of multiple decimal arrays with the same length as the first public parameter;

[0028] The second device converts each L bit in the second device binary sequence into a decimal number, where L is determined by the minimum number in the first public parameter, If the length of the binary sequence of the second device is not an integer multiple of L multiplied by the length of the first public parameter, 0 and 1 are replaced alternately, and the first parameter of the second device consists of multiple groups of decimal arrays with the same length as the first public parameter.

[0029] Furthermore, the first device calculates the first device second parameter and the error correction parameter using the first device first parameter and the first public parameter, as follows:

[0030] The error correction parameter calculation formula is:

[0031] β i =M / M i

[0032]

[0033]

[0034]

[0035]

[0036] The calculation formula for the second parameter of the first device is:

[0037]

[0038] Where F is the error correction parameter; M is the result of multiplying all the numbers in the first public parameter; M i is the i-th element in the first public parameter; Q is the length of the first public parameter; is the product of the first public parameter and the second public parameter elements; a i is the i-th element in the first parameter of the first device; is the i-th element in the second parameter of the first device.

[0039] Further, the second device calculates the second device second parameter and the second device third parameter by using the error correction parameter, the first public parameter, the second public parameter and the second device first parameter, and then determines the error position table by comparing the second device second parameter and the second device third parameter, as follows:

[0040] The second device calculates a second parameter of the second device using the error correction parameter, the first public parameter and the first parameter of the second device;

[0041] The second device reconstructs the intermediate process value using the second device second parameter, the second public parameter and the first public parameter

[0042] The second device utilizes the intermediate process value Taking the first public parameter modulo to obtain a third parameter of the second device;

[0043] The second device compares the second parameter of the second device with the third parameter of the second device, sets 1 at positions where different elements appear at the same position, and sets other positions to 0, to obtain the error position table.

[0044] Further, the second device calculates a second parameter of the second device using the error correction parameter, the first public parameter and the first parameter of the second device, as follows:

[0045]

[0046] Where b i is the i-th element in the first parameter of the second device; is the i-th element in the second parameter of the second device.

[0047] Further, the second device reconstructs the intermediate process value using the second device second parameter, the second public parameter and the first public parameter include:

[0048] Any K numbers in the second parameter of the second device and the K numbers in the first public parameter corresponding to the position are used as a combination to reconstruct using the Chinese remainder theorem reconstruction method to obtain results, where K is the second public parameter;

[0049] Pick The mode of the results is the intermediate process value

[0050] Furthermore, the first device calculates a key using the first parameter of the first device after error correction and the second parameter of the first device after error correction, and the calculation formula is:

[0051]

[0052] In the formula, K a is the key of the first device; a is the first parameter of the first device after error correction; is the second parameter of the first device after error correction; .* indicates dot product;

[0053] The second device calculates a key using the first parameter of the second device after error correction and the second parameter of the second device after error correction, and the calculation formula is:

[0054]

[0055] In the formula, K b is the key of the first device; b is the first parameter of the second device after error correction; It is the second parameter of the second device after error correction.

[0056] A communication security key generation device, comprising the following modules:

[0057] a shared parameter setting module, used to set a set of first public parameters, second public parameters and third public parameters for sharing by the first device and the second device, wherein the first public parameter is a set of arrays whose elements are mutually prime and arranged from small to large, the second public parameter is a number less than the length of the first public parameter, and the third public parameter is calculated from the first public parameter and the third public parameter;

[0058] A channel detection module, used for the first device and the second device to obtain a first channel parameter and a second channel parameter respectively by sending pilot signals to each other;

[0059] A quantization module, configured to: based on a two-round quantization and binary sequence classification method, the first device quantizes the first channel parameter to generate a first binary sequence and a second binary sequence, and the second device quantizes the second channel parameter to generate a third binary sequence and a fourth binary sequence, wherein the two-round quantization adopts a double threshold quantization method; the first device interleaves the first binary sequence and the second binary sequence to obtain a first device binary sequence, and the second device interleaves the third binary sequence and the fourth binary sequence to obtain a second device binary sequence;

[0060] A binary conversion module, used for the first device and the second device to construct a first parameter of the first device and a second parameter of the second device using the first device binary sequence and the second device binary sequence respectively;

[0061] An error correction module, used for the first device to calculate the second parameter of the first device and the first public parameter to obtain the second parameter of the first device and the error correction parameter, and send the error correction parameter to the second device; the second device to calculate the second parameter of the second device and the third parameter of the second device by using the error correction parameter, the first public parameter, the second public parameter and the first parameter of the second device, and then determine the error position table by comparing the second parameter of the second device with the third parameter of the second device, and send the error position table to the first device; the first device removes the numbers in the first parameter of the first device and the second parameter of the first device that are in the same position as the position of the digital non-0 element in the error position table according to the error position table and the third public parameter, and obtains the first parameter of the first device after error correction and the second parameter of the first device after error correction; the second device removes the numbers in the first parameter of the second device and the second parameter of the second device that are in the same position as the position of the digital non-0 element in the error position table according to the error position table and the third public parameter, and obtains the first parameter of the second device after error correction and the second parameter of the second device after error correction;

[0062] The key module is used for the first device to calculate the key using the first parameter of the first device after error correction and the second parameter of the first device after error correction, and the second device to calculate the key using the first parameter of the second device after error correction and the second parameter of the second device after error correction.

[0063] Compared with the prior art, the present invention has at least the following beneficial effects:

[0064] The present invention provides a communication security key generation method, which improves the existing quantization method and uses a new negotiation mechanism for negotiation and security enhancement, so that both parties in communication finally generate a secure and consistent key. The present invention has the following advantages:

[0065] First: in the quantization stage, the present invention adds a second round of quantization compared to the traditional double-threshold quantization method, and the threshold method is more suitable for the second round of data, thereby increasing the key amount.

[0066] Second: the present invention classifies the quantized binary sequence, further reducing the initial key inconsistency rate, making the inconsistency rate basically not exceed the maximum error correction capability, and finally obtaining a completely consistent key.

[0067] Third: The present invention uses a new negotiation mechanism for negotiation. Compared with some error correction coding negotiation methods, its computational complexity is low and it is more suitable for some devices with low computing power. At the same time, when constructing the key, two unrelated data can be multiplied, which increases the security of the key and increases the key volume. Unless the illegal end obtains both numbers accurately, the multiplication operation will increase the inconsistency rate, thereby increasing the security of the key of the legal end.

[0068] In summary, the present invention is more suitable for communication devices with low computing power and low signal processing power to generate physical layer keys.

[0069] In order to make the above-mentioned objects, features and advantages of the present invention more obvious and easy to understand, preferred embodiments are given below and described in detail with reference to the accompanying drawings. BRIEF DESCRIPTION OF THE DRAWINGS

[0070] In order to more clearly illustrate the technical solutions in the specific implementation modes of the present invention, the drawings required for use in the description of the specific implementation modes will be briefly introduced below. Obviously, the drawings described below are some implementation modes of the present invention. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying creative work.

[0071] Figure 1 A module configuration diagram of a communication security key generation device according to the present invention;

[0072] Figure 2A flow chart of an embodiment of a method for generating a communication security key according to the present invention;

[0073] Figure 3 This is a schematic diagram of binary sequence classification in the present invention;

[0074] Figure 4 This is a schematic diagram of the first parameter of the first device in the present invention (L=5). DETAILED DESCRIPTION

[0075] In order to make the purpose, technical solution and advantages of the embodiments of the present invention clearer, the technical solution of the present invention will be clearly and completely described below in conjunction with the accompanying drawings. Obviously, the described embodiments are part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of the present invention.

[0076] As a specific embodiment of the present invention, Figure 2 As shown, a communication security key generation method specifically includes the following steps:

[0077] Step 1: Set a set of first public parameters, second public parameters and third public parameters for sharing by the first device and the second device, wherein the first public parameter is an array whose elements are mutually prime and arranged from small to large, the second public parameter is a number less than the length of the first public parameter, and the third public parameter is calculated from the first public parameter and the third public parameter.

[0078] That is, the first device and the second device agree in advance on a set of shared first public parameters, second public parameters, and third public parameters. In this embodiment, the first public parameter agreed in advance by the first device and the second device is set to be an array [M1…M7] with a length of 7, the second public parameter is 3, and the third public parameter is:

[0079] Step 2: The first device and the second device obtain the first channel parameter and the second channel parameter respectively by sending pilot signals to each other in the uplink and downlink time slots.

[0080] In this embodiment, after the first device and the second device send pilot signals to each other through D pairs of upper and lower time slots, they each obtain the first channel parameter and the second channel parameter. For example, the first channel parameter: H = [h1…h D ], and then concatenate the real and imaginary parts to get the channel sequence: [real(H), imag(H)].

[0081] Step 3: Based on the two-round quantization and binary sequence classification method, the first device quantizes the first channel parameter to generate a first binary sequence and a second binary sequence, and the second device quantizes the second channel parameter to generate a third binary sequence and a fourth binary sequence, wherein both rounds of quantization use a double threshold quantization method.

[0082] Specifically, based on the two-round quantization and binary sequence classification method, the first device quantizes the first channel parameter to generate a first binary sequence and a second binary sequence, as follows:

[0083] The first device performs a first round of quantization and binary sequence classification on the first channel parameter to obtain a first binary sequence;

[0084] The first device performs a second round of quantization and binary sequence classification on the first channel parameters that are not quantized in the first round of quantization to obtain a second binary sequence.

[0085] Specifically, based on the two-round quantization and binary sequence classification method, the second device quantizes the second channel parameter to generate a third binary sequence and a fourth binary sequence, as follows:

[0086] The second device performs a first round of quantization and binary sequence classification on the second channel parameter to obtain a third binary sequence;

[0087] The second device performs a second round of quantization and binary sequence classification on the second channel parameters that are not quantized in the first round of quantization to obtain a fourth binary sequence.

[0088] That is to say, both rounds of quantization in the present invention adopt the double threshold quantization method, but the threshold selection method is different. The double threshold quantization method is to set the upper threshold value and the lower threshold value, the value at the upper threshold is quantized to 1, the value at the lower threshold is quantized to 0, and the value between the double thresholds is discarded. The first round of threshold value calculation is as follows: let the sequence to be quantized be p (real number sequence), then:

[0089]

[0090] Based on the above thresholds, the quantization rules are as follows:

[0091]

[0092] Among them, in represents the data entering the quantizer; out represents the corresponding quantization result; mean(p) represents the mean of the calculated sequence p, and std(p) represents the standard deviation of the calculated sequence p; the first device and the second device need to exchange the quantization position table and take the data in the quantization position table for quantization; the quantization position table is to set the data position that falls into the quantization area to 1, otherwise it is set to 0.

[0093] The data sequence that is not quantized in the first round of quantization is recorded as q, and the second round of data will use the following threshold value:

[0094]

[0095] Among them, q + represents the set of positive numbers in q, q - Denotes the set of negative numbers in q. Of course, the first device and the second device also need to exchange the quantization position table, and take the data in the quantization position table for quantization.

[0096] The two groups of quantized binary sequences are classified into binary sequences respectively. The purpose of binary sequence classification is to reduce the initial key inconsistency rate between the first device and the second device. The specific binary sequence classification is as follows: Figure 3 As shown, the number of classification digits is 3. When a binary sequence is classified, if the length of the original binary sequence is not an integer multiple of the number of classification digits, 0 and 1 are replaced alternately.

[0097] Step 4: The first device interleaves the first binary sequence and the second binary sequence to obtain a first device binary sequence; the second device interleaves the third binary sequence and the fourth binary sequence to obtain a second device binary sequence.

[0098] Taking the first device as an example, the specific method may be: the first device concatenates the first binary sequence and the second binary sequence to obtain a long binary sequence. Finally, the long binary sequence is transformed into a matrix, and then outputted row by row to obtain the interleaved binary sequence of the first device. The number of rows of the matrix is ​​2. If the length of the binary sequence is not an integer multiple of the number of rows of the matrix, 0 and 1 are alternately replaced. The second device performs the same operation on the third binary sequence and the fourth binary sequence.

[0099] Step 5: The first device and the second device respectively construct a first parameter of the first device and a first parameter of the second device by using the interleaved first device binary sequence and the interleaved second device binary sequence.

[0100] Specifically, if Figure 4 As shown, the first device converts each L bit in the interleaved binary sequence of the first device into a decimal number, where L is determined by the minimum number in the first public parameter. If the length of the interleaved binary sequence of the first device is not an integer multiple of L multiplied by the length of the first public parameter, 0 and 1 are replaced alternately to finally obtain the first parameter of the first device, which is composed of multiple decimal arrays with the same length as the first public parameter.

[0101] Similarly, the second device converts each L bit in the interleaved binary sequence of the second device into a decimal number, where L is determined by the minimum number in the first public parameter. If the length of the interleaved binary sequence of the second device is not an integer multiple of L multiplied by the length of the first public parameter, 0 and 1 are replaced alternately, and the first parameter of the second device consists of multiple decimal arrays with the same length as the first public parameter.

[0102] The first parameter of the first device and the first parameter of the second device both contain multiple arrays. To simply and clearly describe this embodiment, only one array is used to implement the following steps, and the other arrays are similar. The first parameter of the first device is [a1...a7], and the first parameter of the second device is [b1...b7].

[0103] The first parameter of the first device and the first parameter of the second device are both composed of multiple groups of arrays, each group of arrays has corresponding error correction parameters and error position tables, but the first device and the second device only need to interact once, that is, the first device calculates the error correction parameters of each group of arrays in the first parameter of the first device, and sends them to the second device together. The second device calculates the corresponding misalignment position table of each group according to the error correction parameters of each group received, and sends them to the first device together.

[0104] Step 6: The first device calculates an error correction parameter and a first device second parameter using the first device first parameter and the first public parameter.

[0105] The error correction parameter calculation formula is:

[0106] β i =M / M i

[0107]

[0108]

[0109]

[0110]

[0111] The calculation formula for the second parameter of the first device is:

[0112]

[0113] Where F is the error correction parameter; M is the result of multiplying all the numbers in the first public parameter; M i is the i-th element in the first public parameter, 7 is the length of the first public parameter, is the product of the first public parameter and the second public parameter elements; a i is the i-th element in the first parameter of the first device; is the i-th element in the second parameter of the first device; the remaining symbols are some intermediate results in the calculation process, including: β i , N a and The first to third lines in the error correction parameter calculation formula are the Chinese remainder theorem reconstruction method.

[0114] Step 7: The second device calculates the second parameter of the second device and the third parameter of the second device by using the error correction parameter, the first public parameter, the second public parameter and the first parameter of the second device, and then determines the error position table by comparing the second parameter of the second device and the third parameter of the second device, as follows:

[0115] Firstly, the second device calculates a second parameter of the second device using the error correction parameter, the first public parameter and the first parameter of the second device, as follows:

[0116]

[0117] Where b i is the i-th element in the first parameter of the second device, is the i-th element in the second parameter of the second device; the remaining symbols are the same as explained above.

[0118] Secondly, the second device reconstructs the intermediate process value using the second device second parameter, the second public parameter and the first public parameter The details are as follows:

[0119] Any K numbers in the second parameter of the second device and the K numbers in the first public parameter corresponding to the position are used as a combination to reconstruct using the Chinese remainder theorem reconstruction method to obtain results, where K is the second public parameter, Q is the length of the first public parameter, and The mode of the results is the intermediate process value

[0120] In this embodiment, any three numbers in the second parameter of the second device and the three numbers in the first public parameter corresponding to the position are reconstructed as a combination using the Chinese remainder theorem reconstruction method, and there are a total of The correct results are So just in Take the majority of the results and you can get

[0121] Then, the second device converts the intermediate process value Taking the first public parameter modulo to obtain the third parameter of the second device;

[0122] In this embodiment, the third parameter of the second device is:

[0123] Finally, the second device compares the second parameter of the second device with the third parameter of the second device, sets 1 at the positions where different elements appear at the same position, and sets the other positions to 0, and finally obtains the error position table error_index, and sends error_index to the first device.

[0124] Step 8. The first device removes the numbers in the first parameter of the first device and the second parameter of the first device that are in the same position as the positions of the non-zero elements in the error position table according to the error position table and the third public parameter, to obtain the corrected first parameter of the first device and the corrected second parameter of the first device; the second device removes the numbers in the first parameter of the second device and the second parameter of the second device that are in the same position as the positions of the non-zero elements in the error position table according to the error position table and the third public parameter, to obtain the corrected first parameter of the second device and the corrected second parameter of the second device.

[0125] Specifically, if the sum of the non-zero elements in the misaligned position table is greater than the third public parameter, the first device discards the current first parameter of the first device and the second parameter of the first device, and performs a data removal operation on the next set of the first parameter of the first device and the second parameter of the first device. Otherwise, the numbers in the first parameter of the first device and the second parameter of the first device that are at the same position as the non-zero elements in the error position table are removed to obtain the first parameter of the first device and the second parameter of the first device after error correction. The second device operates in the same manner.

[0126] In this embodiment, assuming that position 1 and position 5 in error_index are 1, then:

[0127] The first parameter of the first device after error correction for generating a key is recorded as:

[0128] a=[a2,a3,a4,a6,a7]

[0129] The error-corrected second parameter of the first device used to generate the key is recorded as:

[0130]

[0131] The first parameter of the second device after error correction for generating the key of the second device is recorded as:

[0132] b = [b2, b3, b4, b6, b7]

[0133] The second parameter of the second device after error correction for generating the key of the second device is recorded as:

[0134]

[0135] Step 9: The first device calculates the key using the first parameter of the first device after error correction and the second parameter of the first device. The calculation formula is:

[0136]

[0137] The second device calculates the key using the first parameter of the second device after error correction and the second parameter of the second device. The calculation formula is:

[0138]

[0139] If a binary key is required, then K a and K b Just perform the base conversion.

[0140] The embodiment of the present invention enables the communicating parties to obtain secure and consistent keys through a lower number of communications and calculations, and is a physical layer key generation method suitable for the characteristics of IoT scenario devices.

[0141] like Figure 1 As shown, the present invention provides a communication security key generation device, comprising the following modules:

[0142] a shared parameter setting module, used to set a set of first public parameters, second public parameters, and third public parameters for sharing by the first device and the second device, wherein the first public parameter is an array whose elements are mutually prime and arranged from small to large, the third public parameter is a number less than the length of the first public parameter, the second public parameter is a number less than the length of the first public parameter, and the third public parameter is calculated from the first public parameter and the third public parameter;

[0143] A channel detection module, used for the first device and the second device to obtain a first channel parameter and a second channel parameter respectively by sending pilot signals to each other;

[0144] A quantization module, configured to: based on a two-round quantization and binary sequence classification method, the first device quantizes the first channel parameter to generate a first binary sequence and a second binary sequence, and the second device quantizes the second channel parameter to generate a third binary sequence and a fourth binary sequence, wherein the two-round quantization adopts a double threshold quantization method; the first device interleaves the first binary sequence and the second binary sequence to obtain a first device binary sequence, and the second device interleaves the third binary sequence and the fourth binary sequence to obtain a second device binary sequence;

[0145] A binary conversion module, used for the first device and the second device to construct a first parameter of the first device and a first parameter of the second device using the first device binary sequence and the second device binary sequence respectively;

[0146] An error correction module, used for the first device to calculate an error correction parameter and a second parameter of the first device using the first parameter of the first device and the first public parameter, and send the error correction parameter to the second device; the second device to calculate a second parameter of the second device and a third parameter of the second device using the error correction parameter, the first public parameter, the second public parameter and the first parameter of the second device, and then determine an error position table, and send the error position table to the first device; the first device removes the numbers in the first parameter of the first device and the second parameter of the first device that are in the same position as the position of the digital non-0 element in the error position table according to the error position table and the third public parameter, and obtains the first parameter of the first device and the second parameter of the first device after error correction; the second device removes the numbers in the first parameter of the second device and the second parameter of the second device that are in the same position as the position of the digital non-0 element in the error position table according to the error position table and the third public parameter, and obtains the first parameter of the second device and the second parameter of the second device after error correction;

[0147] The key module is used for the first device to calculate the key using the first parameter of the first device after error correction and the second parameter of the first device, and the second device to calculate the key using the first parameter of the second device after error correction and the second parameter of the second device.

[0148] Finally, it should be noted that the above-described embodiments are only specific implementations of the present invention, which are used to illustrate the technical solutions of the present invention, rather than to limit them. The protection scope of the present invention is not limited thereto. Although the present invention is described in detail with reference to the above-described embodiments, ordinary technicians in the field should understand that any technician familiar with the technical field can still modify the technical solutions recorded in the above-described embodiments within the technical scope disclosed by the present invention, or can easily think of changes, or make equivalent replacements for some of the technical features therein; and these modifications, changes or replacements do not make the essence of the corresponding technical solutions deviate from the spirit and scope of the technical solutions of the embodiments of the present invention, and should be included in the protection scope of the present invention. Therefore, the protection scope of the present invention shall be based on the protection scope of the claims.

Claims

1. A communication security key generation method, It is characterized in that include: A set of first public parameters, second public parameters and third public parameters is set for sharing by the first device and the second device, wherein the first public parameter is an array whose elements are mutually prime and arranged from small to large, the second public parameter is a number less than the length of the first public parameter, and the third public parameter is calculated from the first public parameter and the second public parameter; The first device and the second device respectively obtain a first channel parameter and a second channel parameter by sending pilot signals to each other; Based on the two-round quantization and binary sequence classification method, the first device quantizes the first channel parameter to generate a first binary sequence and a second binary sequence, and the second device quantizes the second channel parameter to generate a third binary sequence and a fourth binary sequence, wherein the two-round quantization adopts a double threshold quantization method; The first device interleaves the first binary sequence and the second binary sequence to obtain a first device binary sequence, and the second device interleaves the third binary sequence and the fourth binary sequence to obtain a second device binary sequence; The first device and the second device construct a first parameter of the first device and a second parameter of the second device using the first device binary sequence and the second device binary sequence respectively; The first device calculates, by using the first parameter of the first device and the first public parameter, a second parameter of the first device and an error correction parameter, and sends the error correction parameter to the second device; The second device calculates a second parameter of the second device and a third parameter of the second device by using the error correction parameter, the first public parameter, the second public parameter and the first parameter of the second device, and then determines an error position table by comparing the second parameter of the second device with the third parameter of the second device, and sends the error position table to the first device; The first device removes the numbers in the first parameter of the first device and the second parameter of the first device that are in the same position as the position of the digital non-0 element in the error position table according to the error position table and the third public parameter, to obtain the first parameter of the first device after error correction and the second parameter of the first device after error correction; the second device removes the numbers in the first parameter of the second device and the second parameter of the second device that are in the same position as the position of the digital non-0 element in the error position table according to the error position table and the third public parameter, to obtain the first parameter of the second device after error correction and the second parameter of the second device after error correction; The first device calculates a key using the first parameter of the first device after error correction and the second parameter of the first device after error correction, and the second device calculates a key using the first parameter of the second device after error correction and the second parameter of the second device after error correction; The first device calculates the first device second parameter and the error correction parameter using the first device first parameter and the first public parameter, as follows: The error correction parameter calculation formula is: b i =M / M i The calculation formula for the second parameter of the first device is: Where F is the error correction parameter; M is the result of multiplying all the numbers in the first public parameter; M i is the i-th element in the first public parameter; Q is the length of the first public parameter; is the product of the first public parameter and the second public parameter elements; a i is the i-th element in the first parameter of the first device; is the i-th element in the second parameter of the first device; The second device calculates the second device second parameter and the second device third parameter by using the error correction parameter, the first public parameter, the second public parameter and the second device first parameter, and then determines the error position table by comparing the second device second parameter and the second device third parameter, as follows: The second device calculates a second parameter of the second device using the error correction parameter, the first public parameter and the first parameter of the second device, as follows: Where b i is the i-th element in the first parameter of the second device; is the i-th element in the second parameter of the second device; The second device reconstructs the intermediate process value using the second device second parameter, the second public parameter and the first public parameter The second device utilizes the intermediate process value Taking the first public parameter modulo to obtain a third parameter of the second device; The second device compares the second parameter of the second device with the third parameter of the second device, sets 1 to positions where different elements appear at the same position, and sets other positions to 0, to obtain the error position table; The second device reconstructs the intermediate process value using the second device second parameter, the second public parameter and the first public parameter. include: Any K numbers in the second parameter of the second device and the K numbers in the first public parameter corresponding to the position are used as a combination to reconstruct using the Chinese remainder theorem reconstruction method to obtain results, where K is the second public parameter; Pick The mode of the results is the intermediate process value 2. A method for generating a communication security key according to claim 1, It is characterized in that The third public parameter is calculated from the first public parameter and the second public parameter, as follows: In the formula, Indicates rounding down.

3. A communication security key generation method according to claim 1, It is characterized in that Based on the two-round quantization and binary sequence classification method, the first device quantizes the first channel parameter to generate a first binary sequence and a second binary sequence, including: The first device performs a first round of quantization and binary sequence classification on the first channel parameter to obtain a first binary sequence; The first device performs a second round of quantization and binary sequence classification on the first channel parameter that is not quantized in the first round of quantization to obtain a second binary sequence; Based on the two-round quantization and binary sequence classification method, the second device quantizes the second channel parameter to generate a third binary sequence and a fourth binary sequence, including: The second device performs a first round of quantization and binary sequence classification on the second channel parameter to obtain a third binary sequence; The second device performs a second round of quantization and binary sequence classification on the second channel parameters that are not quantized in the first round of quantization to obtain a fourth binary sequence.

4. A method for generating a communication security key according to claim 1, It is characterized in that The first device and the second device respectively construct a first parameter of the first device and a second parameter of the second device using the first device binary sequence and the second device binary sequence, including: The first device converts each L bits in the first device binary sequence into a decimal number, where L is determined by the minimum number in the first public parameter, If the length of the binary sequence of the first device is not an integer multiple of L multiplied by the length of the first public parameter, 0 and 1 are substituted alternately, and the first parameter of the first device consists of multiple decimal arrays with the same length as the first public parameter; The second device converts each L bit in the second device binary sequence into a decimal number, where L is determined by the minimum number in the first public parameter, If the length of the binary sequence of the second device is not an integer multiple of L multiplied by the length of the first public parameter, 0 and 1 are replaced alternately, and the first parameter of the second device consists of multiple groups of decimal arrays with the same length as the first public parameter.

5. A communication security key generation method according to claim 1, It is characterized in that The first device calculates a key using the first parameter of the first device after error correction and the second parameter of the first device after error correction, and the calculation formula is: In the formula, K a is the key of the first device; a is the first parameter of the first device after error correction; is the second parameter of the first device after error correction; .* indicates dot product; The second device calculates a key using the first parameter of the second device after error correction and the second parameter of the second device after error correction, and the calculation formula is: In the formula, K b is the key of the first device; b is the first parameter of the second device after error correction; It is the second parameter of the second device after error correction.

6. A communication security key generation device, It is characterized in that For implementing a communication security key generation method according to any one of claims 1 to 5, the communication security key generation device comprises: a shared parameter setting module, used to set a set of first public parameters, second public parameters and third public parameters for sharing by the first device and the second device, wherein the first public parameter is a set of arrays whose elements are mutually prime and arranged from small to large, the second public parameter is a number less than the length of the first public parameter, and the third public parameter is calculated from the first public parameter and the second public parameter; A channel detection module, used for the first device and the second device to obtain a first channel parameter and a second channel parameter respectively by sending pilot signals to each other; A quantization module, configured to: based on a two-round quantization and binary sequence classification method, the first device quantizes the first channel parameter to generate a first binary sequence and a second binary sequence, and the second device quantizes the second channel parameter to generate a third binary sequence and a fourth binary sequence, wherein the two-round quantization adopts a double threshold quantization method; the first device interleaves the first binary sequence and the second binary sequence to obtain a first device binary sequence, and the second device interleaves the third binary sequence and the fourth binary sequence to obtain a second device binary sequence; A binary conversion module, used for the first device and the second device to construct a first parameter of the first device and a second parameter of the second device using the first device binary sequence and the second device binary sequence respectively; An error correction module, used for the first device to calculate the second parameter of the first device and the first public parameter to obtain the second parameter of the first device and the error correction parameter, and send the error correction parameter to the second device; the second device to calculate the second parameter of the second device and the third parameter of the second device by using the error correction parameter, the first public parameter, the second public parameter and the first parameter of the second device, and then determine the error position table by comparing the second parameter of the second device with the third parameter of the second device, and send the error position table to the first device; the first device removes the numbers in the first parameter of the first device and the second parameter of the first device that are in the same position as the position of the digital non-0 element in the error position table according to the error position table and the third public parameter, and obtains the first parameter of the first device after error correction and the second parameter of the first device after error correction; the second device removes the numbers in the first parameter of the second device and the second parameter of the second device that are in the same position as the position of the digital non-0 element in the error position table according to the error position table and the third public parameter, and obtains the first parameter of the second device after error correction and the second parameter of the second device after error correction; The key module is used for the first device to calculate the key using the first parameter of the first device after error correction and the second parameter of the first device after error correction, and the second device to calculate the key using the first parameter of the second device after error correction and the second parameter of the second device after error correction.

Citation Information

Patent Citations

  • Frequency and DOA joint measurement method and device based on Chinese remainder theorem

    CN104914408A

  • Wireless channel dynamic key generation method based on fixed locations

    CN107124716A