Channel key error correction method and device, electronic equipment and storage medium
By using error-correcting codewords and error-free transmission of partial key information during channel key error correction process, the problem of information leakage during initial channel key error correction process is solved, and information security and error correction efficiency are improved .
Patent Information
- Application Number
- CN202411276800.6
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-09-12
- Publication Date
- 2024-12-10
AI Technical Summary
In the prior art, information will be leaked excessively during the error correction process of the initial channel key, which will affect the generation rate and practical application of the channel key.
By obtaining the verification bits from the codeword of the initial channel key, an error correction codeword is generated and sent to the counterpart device for error correction and decoding. If the error correction is not successful, some key information will be gradually transmitted for replacement and correction. , until the error correction is successful or the maximum number of times is reached to reduce information leakage.
It effectively reduces the leakage of initial channel key information, ensures the security of information during the error correction process, and improves the security and efficiency of channel key generation.
Smart Images

Figure CN119109579A_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the field of wireless communication technology, and in particular to a channel key error correction method, device, electronic equipment and storage medium. Background Art
[0002] Due to the reciprocity of the uplink and downlink channels, the communicating parties (i.e., the first communication device and the second communication device) can generate the corresponding initial channel key by extracting the channel state information of the uplink and downlink channels. However, due to channel fading and noise interference in wireless communication, the channel state information extracted by the communicating parties and the generated initial channel key are usually inconsistent. In order to generate a consistent channel key, the communicating parties need to remove the inconsistent bits in the initial channel keys of the communicating parties through reconciliation and error correction.
[0003] The existing error correction scheme is generally forward error correction, which generates codewords by performing channel coding on information and sends the codewords to correct the channel key. Common forward error correction schemes include linear block codes, cyclic codes, convolutional codes, and composite codes. Among the many implementation schemes, Turbo codes, LDPC codes, and Polar codes are commercial error correction schemes for 4 / 5G due to their good implementation performance.
[0004] The codewords generated by forward error correction are sent through public channels, which will lead to the leakage of information about the initial channel keys of the communicating parties. Excessive information leakage will affect the generation rate and practical application of the channel keys.
[0005] In summary, the existing initial channel key error correction will leak too much information. Summary of the invention
[0006] The present invention provides a channel key error correction method, device, electronic device and storage medium, which are used to solve the defect that the error correction of the initial channel key in the prior art will leak too much information, and reduce the leakage of information in the error correction process of the initial key.
[0007] In a first aspect, the present invention provides a channel key error correction method, which is applied to a first communication device, comprising: obtaining a check bit from a first codeword of a first initial channel key of the first communication device, and generating an error correction codeword based on the check bit and a channel coding algorithm; sending the error correction codeword to a second communication device, so that the second communication device can generate a decoding result after performing error correction decoding on a second codeword of a second initial channel key of the second communication device based on the error correction codeword; receiving the decoding result, and when the decoding result is that the error correction is unsuccessful, transmitting partial key information of the first initial channel key to the second communication device without error, so that the second communication device can replace and perform error correction decoding on the second initial channel key based on the partial key information, and update the decoding result until the error correction decoding of the second initial channel key is successful or the number of error-free transmissions of the partial key information reaches a maximum number.
[0008] In one embodiment, partial key information of a first initial channel key is transmitted error-free to a second communication device, including: when the number of error-free transmissions is 1, the length of the partial key information is half of the length of a CRC check code of the first initial channel key; when the number of error-free transmissions is greater than 1, the length of the partial key information is equal to the length of the CRC check code of the first initial channel key; based on the length of the partial key information, the partial key information is obtained from the first initial channel key, and the partial key information is channel-encoded and then transmitted error-free to the second communication device, wherein the partial key information in different error-free transmissions does not overlap.
[0009] In one embodiment, the first initial channel key is determined based on the following steps: acquiring initial channel state information based on pilot information of a channel sent by the second communication device; and generating the first initial channel key based on the initial channel state information.
[0010] In one embodiment, until the second initial channel key error correction is successful or the number of error-free transmissions of partial key information reaches a maximum number, it also includes: determining the security factor of the first initial channel key based on the length of the first initial channel key, the number of error-free transmissions, the length of the CRC check code of the first initial channel key, and the number of leaked bits of the first initial channel key in the event of eavesdropping.
[0011] In one embodiment, the maximum number of times is determined based on the following steps: updating the code rate of the first initial channel key based on the length of the first initial channel key, the number of error-free transmissions, the length of the CRC check code of the first initial channel key, and the length of the first codeword; when the code rate of the updated first initial channel key reaches the code rate threshold, the corresponding number of error-free transmissions is the maximum number.
[0012] In a second aspect, the present invention also provides a channel key error correction method, which is applied to a second communication device, comprising: receiving an error correction code word sent by a first communication device, the error correction code word is generated by the first communication device based on a check bit and a channel coding algorithm, and the check bit is obtained from a first code word of a first initial channel key of the first communication device; performing error correction decoding on a second code word of a second initial channel key of the second communication device based on the error correction code word to generate a decoding result; sending the decoding result to the first communication device; when the decoding result is an unsuccessful error correction, receiving partial key information of the first initial channel key transmitted without error by the first communication device, replacing and error correction decoding the second initial channel key based on the partial key information, so as to update the decoding result, until the error correction decoding of the second initial channel key is successful or the number of error-free transmissions of the partial key information reaches a maximum number.
[0013] In one embodiment, the second initial channel key is replaced and error-corrected and decoded based on partial key information to update the decoding result until the error-correction decoding of the second initial channel key is successful, including: replacing the second initial channel key at a corresponding position based on the partial key information to obtain an updated second initial channel key; obtaining an updated second codeword based on the error correction codeword and a CRC check code of the updated second initial channel key; performing error correction decoding on the updated second codeword to generate an updated decoding result; sending the updated decoding result to the first communication device, and when the updated decoding result is a successful error correction, determining that the error correction decoding of the second initial channel key is successful, and when the updated decoding result is an unsuccessful error correction, executing the step of receiving partial key information of the first initial channel key transmitted without error by the first communication device.
[0014] In a third aspect, the present invention also provides a channel key error correction device, comprising: an error correction code word generation module, used to obtain check bits from a first code word of a first initial channel key of a first communication device, and generate an error correction code word based on the check bits and a channel coding algorithm; an error correction code word sending module, used to send the error correction code word to a second communication device, so that the second communication device can generate a decoding result after performing error correction decoding on a second code word of a second initial channel key of the second communication device based on the error correction code word; an error-free transmission module, used to receive the decoding result, and when the decoding result is an unsuccessful error correction, transmit partial key information of the first initial channel key to the second communication device without error, so that the second communication device can replace and perform error correction decoding on the second initial channel key based on the partial key information, and update the decoding result until the error correction decoding of the second initial channel key is successful or the number of error-free transmissions of the partial key information reaches a maximum number.
[0015] In a fourth aspect, the present invention also provides a channel key error correction device, comprising: an error correction code word receiving module, used to receive an error correction code word sent by a first communication device, the error correction code word is generated by the first communication device based on a check bit and a channel coding algorithm, and the check bit is obtained from a first code word of a first initial channel key of the first communication device; a confirmation module, used to perform error correction decoding on a second code word of a second initial channel key of a second communication device based on the error correction code word and generate a decoding result; a sending module, used to send the decoding result to the first communication device; an error correction module, used to receive partial key information of the first initial channel key transmitted without error by the first communication device when the decoding result is an unsuccessful error correction, replace and error-correct the second initial channel key based on the partial key information, and perform error correction decoding to update the decoding result until the error correction decoding of the second initial channel key is successful or the number of error-free transmissions of the partial key information reaches a maximum number.
[0016] In a fifth aspect, the present invention further provides an electronic device, comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein when the processor executes the computer program, the channel key error correction method of the first aspect and / or the second aspect described above is implemented.
[0017] The present invention also provides a non-transitory computer-readable storage medium on which a computer program is stored. When the computer program is executed by a processor, the channel key error correction method of the first aspect and / or the second aspect described above is implemented.
[0018] The channel key error correction method, device, electronic device and storage medium provided by the present invention perform preliminary error correction on the second initial channel key through an error correction codeword that does not contain the first initial channel key information, thereby avoiding information leakage of the first initial channel key. Through error-free transmission of partial key information, the second initial channel key is corrected again or multiple times, and the number of information leakages of the first initial channel key is reduced as much as possible while ensuring error correction; the basic security requirements of the first initial channel key are guaranteed by the maximum number of times. The present invention realizes error correction of the second initial channel key while maximally reducing information leakage of the first initial channel key through error-free transmission of error correction codewords and partial key information. BRIEF DESCRIPTION OF THE DRAWINGS
[0019] In order to more clearly illustrate the technical solutions in the present invention or the prior art, the drawings required for use in the embodiments or the description of the prior art will be briefly introduced below. Obviously, the drawings described below are some embodiments of the present invention. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying creative work.
[0020] Figure 1 This is one of the flow charts of the channel key error correction method provided by the present invention.
[0021] Figure 2 This is the second flow chart of the channel key error correction method provided by the present invention.
[0022] Figure 3 It is a schematic diagram of the process of selecting partial key information provided by the present invention.
[0023] Figure 4 This is the third flow chart of the channel key error correction method provided by the present invention.
[0024] Figure 5 This is one of the structural schematic diagrams of the channel key error correction device provided by the present invention.
[0025] Figure 6 This is the second structural schematic diagram of the channel key error correction device provided by the present invention.
[0026] Figure 7 It is a structural schematic diagram of the electronic device provided by the present invention. DETAILED DESCRIPTION
[0027] In order to make the purpose, technical solution and advantages of the present invention clearer, the technical solution of the present invention will be clearly and completely described below in conjunction with the drawings of the present invention. 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.
[0028] Combine the following Figure 1-Figure 7 The invention describes a channel key error correction method, device and electronic device.
[0029] Figure 1 It is one of the flow charts of the channel key error correction method provided by the present invention, such as Figure 1 As shown, the channel key error correction method is applied to a first communication device, and includes steps S100 to S300, and each step is specifically as follows.
[0030] S100: Acquire a check bit from a first codeword of a first initial channel key of a first communication device, and generate an error correction codeword based on the check bit and a channel coding algorithm.
[0031] The first communication device and the second communication device are data receivers and data transmitters interacting with each other during uplink communication or downlink communication, for example, a user terminal and a base station.
[0032] The first communications device generates a first initial channel key according to the initial channel state information.
[0033] The first communication device refers to the 3GPP standard, selects a cyclic redundancy check (CRC) generator polynomial that meets the requirements, and generates a CRC check code corresponding to the first initial channel key.
[0034] The first communication device selects a channel coding algorithm, such as Turbo code, Low-Density Parity-Check code (LDPC) and Polar code. The first communication device selects a suitable code rate of the first initial channel key according to the communication scenario, such as the signal-to-noise ratio, the multipath distribution, the channel coding algorithm, etc. The relationship between the code rate of the first initial channel key, the information length of the first initial channel key and the length of the first codeword is as follows.
[0035] ; in, is the code rate of the first initial channel key, is the information length of the first initial channel key, is the length of the first initial channel key, is the sum of the length of the CRC check code of the first initial channel key and the zero-padding length of the first initial channel key, is the length of the first codeword.
[0036] The first initial channel key is encoded based on the channel coding algorithm, the information length of the first initial channel key, and the code rate of the first initial channel key to generate a first codeword. For example, the channel coding algorithm is LDPC, and the first communication device determines the LDPC channel coding matrix according to the code rate and information length of the first initial channel key. Figure 2 As shown, the first communication device determines the information to be encoded according to the first initial channel key, the zero-padding sequence of the first initial channel key and the CRC check code of the first initial channel key. A first codeword is generated according to the information to be encoded and the LDPC channel coding matrix .
[0037] The first communication device obtains a check bit from the first codeword. The length of the check bit is the length of the first codeword ( ) and the information length of the first codeword ( ) of the difference ( ). Generate an error correction code word according to the check bit and the channel coding algorithm. The error correction code word does not include the first initial channel key. The error correction code word is used to check and correct the initial channel key.
[0038] S200: Sending an error correction code word to a second communication device, so that the second communication device performs error correction decoding on a second code word of a second initial channel key of the second communication device based on the error correction code word and generates a decoding result.
[0039] like Figure 2 As shown, the first communication device sends an error correction code word to the second communication device through a public channel.
[0040] like Figure 2 As shown, the second communication device obtains the corresponding initial channel state information according to the pilot information of the channel sent by the first communication device, and generates a second initial channel key. The second communication device generates a CRC check code for the second initial channel key. After the second communication device pads the second initial channel key with zeros, it combines the error correction code word and the CRC check code of the second initial channel key to generate a second code word (Codeword reorganization).
[0041] The second communication device obtains a channel coding and decoding algorithm corresponding to the channel coding algorithm according to the error correction code word and the 3GPP standard. The second code word is error-corrected and decoded according to the channel coding and decoding algorithm, and a decoding result is generated according to the error correction decoding result. The decoding result is error correction success or error correction failure.
[0042] S300: Receive the decoding result. When the decoding result is an unsuccessful error correction, transmit the partial key information of the first initial channel key to the second communication device without error, so that the second communication device can replace and perform error correction decoding on the second initial channel key based on the partial key information, and update the decoding result until the error correction decoding of the second initial channel key is successful or the number of error-free transmissions of the partial key information reaches a maximum number.
[0043] The first communication device receives the decoding result sent by the second communication device.
[0044] If the decoding result is that the error correction is successful, it means that the second initial channel key has been successfully corrected and is consistent with the first initial channel key, and the error correction of the second initial channel key is ended.
[0045] If the decoding result is that the error correction is unsuccessful, it means that the second initial channel key is still inconsistent with the first initial channel key, and the second initial channel key needs to be further corrected. The first communication device performs the subsequent error-free code transmission process.
[0046] The first communication device extracts partial information from the first initial channel key, generates partial key information, and transmits the partial key information to the second communication device without error.
[0047] like Figure 2 As shown, the second communication device receives the partial key information sent by the first communication device. The second communication device replaces the information at the corresponding position in the second initial channel key according to the partial key information to obtain an updated second initial channel key. The second communication device re-performs channel encoding and error correction decoding on the updated second initial channel key to update the decoding result.
[0048] If the updated decoding result is that the error correction is successful, it means that the second initial channel key has been successfully corrected and is consistent with the first initial channel key, and the error correction of the second initial channel key is ended.
[0049] If the updated decoding result is an error correction failure, it means that the second initial channel key is still inconsistent with the first initial channel key, and the second initial channel key needs to be further corrected. The first communication device reacquires part of the key information, and transmits the part of the key information to the second communication device again without error, and performs subsequent error correction on the second initial channel key until the second initial channel key error correction decoding is successful.
[0050] If the number of error-free transmissions reaches the maximum number and the error correction decoding of the second initial channel key still fails, the error correction decoding process is terminated and error correction decoding failure is fed back.
[0051] The channel key error correction method provided by the present invention performs preliminary error correction on the second initial channel key by using an error correction codeword that does not contain the first initial channel key information, thereby avoiding information leakage of the first initial channel key. Through error-free transmission of partial key information, the second initial channel key is corrected again or multiple times, and the number of information leakages of the first initial channel key is reduced as much as possible while ensuring error correction; the basic security requirements of the first initial channel key are guaranteed by the maximum number of times. The present invention realizes error correction of the second initial channel key while maximally reducing information leakage of the first initial channel key through error-free transmission of error correction codewords and partial key information.
[0052] Based on the above embodiment, partial key information of the first initial channel key is transmitted to the second communication device without error, including steps S310 to S320, and each step is specifically as follows.
[0053] S310: When the number of error-free transmissions is 1, the length of the partial key information is half the length of the CRC check code of the first initial channel key; when the number of error-free transmissions is greater than 1, the length of the partial key information is equal to the length of the CRC check code of the first initial channel key.
[0054] S320: Obtain partial key information from the first initial channel key based on the length of the partial key information, channel encode the partial key information and transmit it to the second communication device without error, wherein the partial key information in different error-free transmissions does not overlap.
[0055] like Figure 3 As shown, when the first communication device performs the first error-free transmission to the second communication device, the first communication device determines that the length of the partial key information is half the length of the CRC check code of the first initial channel key. For example, the length of the partial key information is ,in, is the length of the CRC check code of the first initial channel key. The first communication device selects randomly or in accordance with an agreed manner from the first initial channel key information bits, obtain partial key information, channel encode the partial key information and transmit it to the second communication device without error. The length of the CRC check code of the first initial channel key is an even number.
[0056] When the first communication device performs a second and further error-free transmission to the second communication device, the first communication device determines that the length of the partial key information is the length of the CRC check code of the first initial channel key. The first communication device selects a first initial channel key randomly or in an agreed manner The partial key information is obtained by performing channel coding on the partial key information and then transmitting it to the second communication device without any error. Figure 3 As shown, during different error-free transmissions, the positions of the information bits of the partial key information are completely different, thereby ensuring that the partial key information does not overlap during different error-free transmissions.
[0057] The present invention determines the length of the partial key information according to the length of the CRC check code, which is conducive to realizing the maximum utilization of the CRC check. The partial key information is transmitted without error to realize the partial correction of the second initial channel key, which reduces the number of information leakage of the initial channel key.
[0058] Based on the above embodiment, the first initial channel key is determined in steps S110 to S120.
[0059] S110: Acquire initial channel state information based on the pilot information of the channel sent by the second communication device.
[0060] S120: Generate a first initial channel key based on the initial channel state information.
[0061] The first communication device (data receiver or data sender) receives the pilot information of the channel sent by the second communication device (data sender or data receiver), and obtains the corresponding initial channel state information according to the pilot information. The first communication device generates a first initial channel key according to the initial channel state information.
[0062] The present invention generates the first initial channel key according to the pilot information, thereby improving the accuracy of generating the first initial channel key.
[0063] Based on the above embodiment, until the second initial channel key error correction is successful or the number of error-free transmissions of partial key information reaches the maximum number, step S400 is further included.
[0064] S400: Determine a security factor of the first initial channel key based on the length of the first initial channel key, the number of error-free transmissions, the length of the CRC check code of the first initial channel key, and the number of leaked bits of the first initial channel key in the event of eavesdropping.
[0065] After the error correction of the initial channel key is completed, the security factor of the first initial channel key or the updated second initial channel key is further evaluated. The calculation formula of the security factor is as follows.
[0066] ; in, is the length of the first initial channel key, is the number of error-free transmissions, is the length of the CRC check code of the first initial channel key, is the number of leaked bits of the first initial channel key in the case of eavesdropping.
[0067] The larger the security coefficient is, the higher the security of the first initial channel key is. The smaller the security coefficient is, the lower the security of the first initial channel key is.
[0068] The present invention determines the security factor of the first initial channel key according to the number of error-free transmissions, thereby achieving quantification of the security of the first initial channel key after error-free transmission, which is beneficial to further determine the practicality of the first initial channel key.
[0069] Based on the above embodiment, the maximum number of times is determined based on step S330 to step S340, and the details of each step are as follows.
[0070] S330: Update the code rate of the first initial channel key based on the length of the first initial channel key, the number of error-free transmissions, the length of the CRC check code of the first initial channel key, and the length of the first codeword.
[0071] S340: When the code rate of the updated first initial channel key reaches the code rate threshold, the corresponding number of error-free transmissions is the maximum number.
[0072] The code rate of the first initial channel key is updated according to the length of the first initial channel key, the number of error-free transmissions, the length of the CRC check code of the first initial channel key and the length of the first codeword. The calculation formula of the updated code rate of the first initial channel key is as follows.
[0073] ; in, is the updated code rate of the first initial channel key, is the number of error-free transmissions, is the length of the first initial channel key, is the length of the first codeword, is the length of the CRC check code of the first initial channel key, is the bit rate threshold.
[0074] When the code rate of the updated first initial channel key reaches the code rate threshold, the corresponding number of error-free transmissions is the maximum number.
[0075] The present invention determines the maximum number of times according to the code rate threshold, thereby ensuring the validity of the code rate of the first initial channel key, which is beneficial to the validity of subsequent encoding of the first initial channel key.
[0076] like Figure 4 As shown, the present invention also provides a channel key error correction method, which is applied to a second communication device and includes steps S400 to S700, and each step is specifically as follows.
[0077] S400: Receive an error correction codeword sent by a first communication device.
[0078] The error correction code word is generated by the first communication device based on the check bit and the channel coding algorithm, and the check bit is obtained from the first code word of the first initial channel key of the first communication device.
[0079] The first communication device generates a first initial channel key and a CRC check code of the first initial channel key. The first communication device encodes the first initial channel key to generate a first code word according to a channel coding algorithm, an information length of the first initial channel key, and a code rate of the first initial channel key. The first communication device obtains a check bit from the first code word, and generates an error correction code word according to the check bit and the channel coding algorithm. The first communication device sends the error correction code word to the second communication device through a public channel.
[0080] S500: Perform error correction decoding on a second codeword of a second initial channel key of a second communication device based on the error correction codeword to generate a decoding result.
[0081] The second communication device generates a second initial channel key and a CRC check code of the second initial channel key. After the second communication device pads the second initial channel key with zeros, it combines the error correction code word and the CRC check code of the second initial channel key to generate a second code word. The second communication device performs error correction decoding on the second code word according to the channel coding and decoding algorithm, and generates a decoding result.
[0082] S600: Send the decoding result to the first communication device.
[0083] The second communication device sends the decoding result to the first communication device, and the decoding result includes error correction success or error correction failure. If the decoding result is error correction success, it means that the second initial channel key has been successfully corrected and is consistent with the first initial channel key, and the error correction of the second initial channel key is ended.
[0084] S700: When the decoding result is an unsuccessful error correction, partial key information of the first initial channel key transmitted without error by the first communication device is received, and the second initial channel key is replaced and error-corrected and decoded based on the partial key information to update the decoding result, until the error correction decoding of the second initial channel key is successful or the number of error-free transmissions of the partial key information reaches a maximum number.
[0085] If the decoding result is that the error correction is unsuccessful, it means that the second initial channel key is still inconsistent with the first initial channel key, and the second initial channel key needs to be further corrected. The first communication device performs the subsequent error-free code transmission process.
[0086] The first communication device determines the length of the partial key information, and selects the partial key information randomly or in accordance with the agreed method from the first initial channel key according to the length of the partial key information. The partial key information selected in different error-free transmission processes does not overlap. The first communication device performs channel encoding on the partial key information and transmits it to the second communication device without error. The second communication device receives the partial key information sent by the first communication device, replaces the information at the corresponding position in the second initial channel key according to the partial key information, and obtains the updated second initial channel key. The second communication device generates a CRC check code for the updated second initial channel key. After the second communication device fills the updated second initial channel key with zeros, it performs channel encoding on the updated second initial channel key according to the CRC check code, error correction code word and channel coding algorithm of the updated second initial channel key, regenerates the codeword, and obtains the updated second codeword. The second communication device performs error correction decoding on the updated second codeword again, and updates the decoding result.
[0087] If the updated decoding result is that the error correction is successful, the error correction of the second initial channel key is ended.
[0088] If the updated decoding result is an unsuccessful error correction, the first communication device reacquires part of the key information and transmits the part of the key information to the second communication device without error, and performs subsequent error correction on the second initial channel key until the error correction decoding of the second initial channel key is successful, or the number of error-free transmissions reaches the maximum number.
[0089] The channel key error correction method provided by the present invention performs preliminary error correction on the second initial channel key by using an error correction codeword that does not contain the first initial channel key information, thereby avoiding information leakage of the first initial channel key. Through error-free transmission of partial key information, the second initial channel key is corrected again or multiple times, and the number of information leakages of the first initial channel key is reduced as much as possible while ensuring error correction; the basic security requirements of the first initial channel key are guaranteed by the maximum number of times. The present invention realizes error correction of the second initial channel key while maximally reducing information leakage of the first initial channel key through error-free transmission of error correction codewords and partial key information.
[0090] Based on the above embodiment, the second initial channel key is replaced and error-corrected and decoded based on partial key information to update the decoding result until the error-corrected decoding of the second initial channel key is successful, including steps S710 to S740, and each step is specifically as follows.
[0091] S710: Replace the corresponding position of the second initial channel key based on the partial key information to obtain an updated second initial channel key.
[0092] S720: Obtain an updated second codeword based on the error correction codeword and the CRC check code of the updated second initial channel key.
[0093] S730: Perform error correction decoding on the updated second codeword to generate an updated decoding result.
[0094] S740 sends the updated decoding result to the first communication device. When the updated decoding result is a successful error correction, it is determined that the error correction decoding of the second initial channel key is successful. When the updated decoding result is an unsuccessful error correction, the step of receiving partial key information of the first initial channel key transmitted without error by the first communication device is executed.
[0095] like Figure 2 As shown, the second communication device receives partial key information sent by the first communication device. The second communication device replaces the information at the corresponding position in the second initial channel key according to the partial key information to obtain an updated second initial channel key. The second communication device generates a CRC check code for the updated second initial channel key. After the second communication device fills the updated second initial channel key with zeros, it performs channel coding on the updated second initial channel key according to the CRC check code, error correction code word and channel coding algorithm of the updated second initial channel key, regenerates the code word, and obtains an updated second code word. The second communication device re-updates the updated second codeword The second communication device updates the decoding result according to the error correction decoding result of the second codeword.
[0096] If the updated decoding result is that the error correction is successful, it means that the second initial channel key has been successfully corrected and is consistent with the first initial channel key, and the error correction of the second initial channel key is ended.
[0097] If the updated decoding result is an unsuccessful error correction, it means that the second initial channel key is still inconsistent with the first initial channel key, and the second initial channel key needs to be further corrected. The first communication device reacquires the partial key information and transmits the partial key information to the second communication device again without error. The second communication device performs the step of receiving the partial key information of the first initial channel key transmitted by the first communication device without error, so as to perform subsequent error correction on the second initial channel key until the error correction decoding of the second initial channel key is successful.
[0098] If the number of error-free transmissions reaches the maximum number and the error correction decoding of the second initial channel key still fails, the error correction decoding process is terminated and error correction decoding failure is fed back.
[0099] The channel key error correction device provided by the present invention is described below. The channel key error correction device described below and the channel key error correction method described above can be referred to each other.
[0100] like Figure 5 As shown, a channel key error correction device includes: an error correction codeword generation module 501, an error correction codeword sending module 502 and an error-free code transmission module 503.
[0101] The error correction codeword generation module 501 is used to obtain a check bit from a first codeword of a first initial channel key of a first communication device, and generate an error correction codeword based on the check bit and a channel coding algorithm.
[0102] The error correction codeword sending module 502 is used to send the error correction codeword to the second communication device, so that the second communication device can generate a decoding result after performing error correction decoding on the second codeword of the second initial channel key of the second communication device based on the error correction codeword.
[0103] The error-free transmission module 503 is used to receive the decoding result. When the decoding result is an unsuccessful error correction, the partial key information of the first initial channel key is transmitted to the second communication device without error, so that the second communication device can replace and perform error correction decoding on the second initial channel key based on the partial key information, and update the decoding result until the error correction decoding of the second initial channel key is successful or the number of error-free transmissions of the partial key information reaches a maximum number.
[0104] The channel key error correction device provided by the present invention performs preliminary error correction on the second initial channel key by using an error correction codeword that does not contain the first initial channel key information, thereby avoiding information leakage of the first initial channel key. Through error-free transmission of partial key information, the second initial channel key is corrected again or multiple times, and the number of information leakages of the first initial channel key is reduced as much as possible while ensuring error correction; the basic security requirements of the first initial channel key are guaranteed by the maximum number of times. The present invention realizes error correction of the second initial channel key while maximally reducing information leakage of the first initial channel key through error-free transmission of error correction codewords and partial key information.
[0105] In one embodiment, the error-free transmission module 503 is used for: when the number of error-free transmissions is 1, the length of the partial key information is half of the length of the CRC check code of the first initial channel key; when the number of error-free transmissions is greater than 1, the length of the partial key information is equal to the length of the CRC check code of the first initial channel key; based on the length of the partial key information, obtaining the partial key information from the first initial channel key, channel encoding the partial key information and transmitting it to the second communication device without error, wherein the partial key information in different error-free transmissions does not overlap.
[0106] In one embodiment, the error correction codeword generation module 501 is used to: obtain initial channel state information based on pilot information of a channel sent by the second communication device; and generate a first initial channel key based on the initial channel state information.
[0107] In one embodiment, the error-free transmission module 503 is further used to determine the security factor of the first initial channel key based on the length of the first initial channel key, the number of error-free transmissions, the length of the CRC check code of the first initial channel key, and the number of leaked bits of the first initial channel key in the event of eavesdropping.
[0108] In one embodiment, the error-free transmission module 503 is used to: update the code rate of the first initial channel key based on the length of the first initial channel key, the number of error-free transmissions, the length of the CRC check code of the first initial channel key and the length of the first codeword; when the code rate of the updated first initial channel key reaches the code rate threshold, the corresponding number of error-free transmissions is the maximum number.
[0109] like Figure 6 As shown, a channel key error correction device includes: an error correction codeword receiving module 601, a confirmation module 602, a sending module 603 and an error correction module 604.
[0110] The error correction codeword receiving module 601 is used to receive the error correction codeword sent by the first communication device, where the error correction codeword is generated by the first communication device based on the check bits and the channel coding algorithm, and the check bits are obtained from the first codeword of the first initial channel key of the first communication device.
[0111] The confirmation module 602 is configured to generate a decoding result after performing error correction decoding on the second codeword of the second initial channel key of the second communication device based on the error correction codeword.
[0112] The sending module 603 is used to send the decoding result to the first communication device.
[0113] The error correction module 604 is used to receive partial key information of the first initial channel key transmitted without error by the first communication device when the decoding result is an unsuccessful error correction, and replace and perform error correction decoding on the second initial channel key based on the partial key information to update the decoding result until the error correction decoding of the second initial channel key is successful or the number of error-free transmissions of the partial key information reaches a maximum number.
[0114] The channel key error correction device provided by the present invention performs preliminary error correction on the second initial channel key by using an error correction codeword that does not contain the first initial channel key information, thereby avoiding information leakage of the first initial channel key. Through error-free transmission of partial key information, the second initial channel key is corrected again or multiple times, and the number of information leakages of the first initial channel key is reduced as much as possible while ensuring error correction; the basic security requirements of the first initial channel key are guaranteed by the maximum number of times. The present invention realizes error correction of the second initial channel key while maximally reducing information leakage of the first initial channel key through error-free transmission of error correction codewords and partial key information.
[0115] In one embodiment, the error correction module 604 is used to: replace the corresponding position of the second initial channel key based on partial key information to obtain an updated second initial channel key; obtain an updated second codeword based on the error correction codeword and the CRC check code of the updated second initial channel key; perform error correction decoding on the updated second codeword to generate an updated decoding result; send the updated decoding result to the first communication device, and when the updated decoding result is that the error correction is successful, determine that the error correction decoding of the second initial channel key is successful, and when the updated decoding result is that the error correction is unsuccessful, perform the step of receiving partial key information of the first initial channel key transmitted without error by the first communication device.
[0116] Figure 7 An example of a physical structure diagram of an electronic device is shown in FIG. Figure 7As shown, the electronic device may include: a processor (processor) 710 , a communication interface (Communications Interface) 720 , a memory (memory) 730 and a communication bus 740 , wherein the processor 710 , the communication interface 720 , and the memory 730 communicate with each other through the communication bus 740 . The processor 710 may call the logic instructions in the memory 730 to execute the channel key error correction method, which includes: obtaining a check bit from a first codeword of a first initial channel key of a first communication device, and generating an error correction codeword based on the check bit and a channel coding algorithm; sending the error correction codeword to a second communication device, so that the second communication device performs error correction decoding on a second codeword of a second initial channel key of the second communication device based on the error correction codeword and generates a decoding result; receiving the decoding result, and when the decoding result is that the error correction is unsuccessful, transmitting the partial key information of the first initial channel key to the second communication device without error, so that the second communication device replaces and performs error correction decoding on the second initial channel key based on the partial key information, and updates the decoding result until the error correction decoding of the second initial channel key is successful or the number of error-free transmissions of the partial key information reaches a maximum number; And / or: receiving an error correction code word sent by the first communication device, the error correction code word is generated by the first communication device based on the check bit and the channel coding algorithm, and the check bit is obtained from the first code word of the first initial channel key of the first communication device; performing error correction decoding on the second code word of the second initial channel key of the second communication device based on the error correction code word to generate a decoding result; sending the decoding result to the first communication device; when the decoding result is that the error correction is unsuccessful, receiving partial key information of the first initial channel key transmitted without error by the first communication device, replacing and error correction decoding the second initial channel key based on the partial key information, so as to update the decoding result, until the error correction decoding of the second initial channel key is successful or the number of error-free transmissions of the partial key information reaches a maximum number.
[0117] In addition, the logic instructions in the above-mentioned memory 730 can be implemented in the form of a software functional unit and can be stored in a computer-readable storage medium when it is sold or used as an independent product. Based on this understanding, the technical solution of the present invention can be essentially or partly embodied in the form of a software product that contributes to the prior art. The computer software product is stored in a storage medium, including several instructions to enable a computer device (which can be a personal computer, a server, or a network device, etc.) to perform all or part of the steps of the method described in each embodiment of the present invention. The aforementioned storage medium includes: U disk, mobile hard disk, read-only memory (ROM, Read-Only Memory), random access memory (RAM, Random Access Memory), disk or optical disk, etc. Various media that can store program codes.
[0118] On the other hand, the present invention also provides a non-transitory computer-readable storage medium having a computer program stored thereon, which, when executed by a processor, is implemented to execute the channel key error correction method provided by the above-mentioned methods, the method comprising: obtaining check bits from a first codeword of a first initial channel key of a first communication device, and generating an error correction codeword based on the check bits and a channel coding algorithm; sending the error correction codeword to a second communication device, so that the second communication device can perform error correction decoding on a second codeword of a second initial channel key of the second communication device based on the error correction codeword and generate a decoding result; receiving the decoding result, and when the decoding result is an unsuccessful error correction, transmitting part of the key information of the first initial channel key to the second communication device without error, so that the second communication device can replace and perform error correction decoding on the second initial channel key based on the part of the key information, and update the decoding result until the error correction decoding of the second initial channel key is successful or the number of error-free transmissions of the part of the key information reaches a maximum number.
[0119] And / or: receiving an error correction code word sent by the first communication device, the error correction code word is generated by the first communication device based on the check bit and the channel coding algorithm, and the check bit is obtained from the first code word of the first initial channel key of the first communication device; performing error correction decoding on the second code word of the second initial channel key of the second communication device based on the error correction code word to generate a decoding result; sending the decoding result to the first communication device; when the decoding result is that the error correction is unsuccessful, receiving partial key information of the first initial channel key transmitted without error by the first communication device, replacing and error correction decoding the second initial channel key based on the partial key information, so as to update the decoding result, until the error correction decoding of the second initial channel key is successful or the number of error-free transmissions of the partial key information reaches a maximum number.
[0120] The device embodiments described above are merely illustrative, wherein the units described as separate components may or may not be physically separated, and the components displayed as units may or may not be physical units, that is, they may be located in one place, or they may be distributed on multiple network units. Some or all of the modules may be selected according to actual needs to achieve the purpose of the scheme of this embodiment. Ordinary technicians in this field can understand and implement it without paying creative labor.
[0121] Through the description of the above implementation methods, those skilled in the art can clearly understand that each implementation method can be implemented by means of software plus a necessary general hardware platform, and of course, can also be implemented by hardware. Based on this understanding, the above technical solution is essentially or the part that contributes to the prior art can be embodied in the form of a software product, and the computer software product can be stored in a computer-readable storage medium, such as ROM / RAM, a disk, an optical disk, etc., including a number of instructions for a computer device (which can be a personal computer, a server, or a network device, etc.) to execute the methods described in each embodiment or some parts of the embodiments.
[0122] Finally, it should be noted that the above embodiments are only used to illustrate the technical solutions of the present invention, rather than to limit it. Although the present invention has been described in detail with reference to the aforementioned embodiments, those skilled in the art should understand that they can still modify the technical solutions described in the aforementioned embodiments, or make equivalent replacements for some of the technical features therein. However, these modifications or replacements do not deviate the essence of the corresponding technical solutions from the spirit and scope of the technical solutions of the embodiments of the present invention.
Claims
1. A channel key error correction method, characterized in that: Applied to a first communication device, comprising: Obtaining a check bit from a first codeword of a first initial channel key of the first communication device, and generating an error correction codeword based on the check bit and a channel coding algorithm; Sending the error correction code word to the second communication device, so that the second communication device generates a decoding result after performing error correction decoding on the second code word of the second initial channel key of the second communication device based on the error correction code word; Receive the decoding result, and when the decoding result is an unsuccessful error correction, transmit the partial key information of the first initial channel key to the second communication device without error, so that the second communication device can replace and perform error correction decoding on the second initial channel key based on the partial key information, and update the decoding result until the error correction decoding of the second initial channel key is successful or the number of error-free transmissions of the partial key information reaches a maximum number.
2. The channel key error correction method according to claim 1, characterized in that: The step of transmitting part of the key information of the first initial channel key to the second communication device without error includes: When the number of error-free transmissions is 1, the length of the partial key information is half the length of the CRC check code of the first initial channel key; when the number of error-free transmissions is greater than 1, the length of the partial key information is equal to the length of the CRC check code of the first initial channel key; The partial key information is obtained from the first initial channel key based on its length, and the partial key information is channel-encoded and transmitted to the second communication device without error, wherein the partial key information in different error-free transmissions does not overlap.
3. The channel key error correction method according to claim 1, characterized in that: The first initial channel key is determined based on the following steps: Acquire initial channel state information based on pilot information of the channel sent by the second communication device; The first initial channel key is generated based on the initial channel state information.
4. The channel key error correction method according to claim 1, characterized in that: The method further includes: The security factor of the first initial channel key is determined based on the length of the first initial channel key, the number of error-free transmissions, the length of the CRC check code of the first initial channel key, and the number of leaked bits of the first initial channel key in the event of eavesdropping.
5. The channel key error correction method according to claim 1, characterized in that: The maximum number is determined based on the following steps: updating a code rate of the first initial channel key based on the length of the first initial channel key, the number of error-free transmissions, the length of a CRC check code of the first initial channel key, and the length of the first codeword; When the code rate of the updated first initial channel key reaches the code rate threshold, the corresponding number of error-free transmissions is the maximum number.
6. A channel key error correction method, characterized in that: Applied to a second communication device, comprising: receiving an error correction codeword sent by a first communication device, where the error correction codeword is generated by the first communication device based on a check bit and a channel coding algorithm, and the check bit is obtained from a first codeword of a first initial channel key of the first communication device; Performing error correction decoding on the second codeword of the second initial channel key of the second communication device based on the error correction codeword to generate a decoding result; Sending the decoding result to the first communication device; When the decoding result is an unsuccessful error correction, partial key information of the first initial channel key transmitted without error by the first communication device is received, and the second initial channel key is replaced and error-corrected and decoded based on the partial key information to update the decoding result, until the error correction decoding of the second initial channel key is successful or the number of error-free transmissions of the partial key information reaches a maximum number.
7. The channel key error correction method according to claim 6, characterized in that: The replacing and error-correcting decoding the second initial channel key based on the partial key information to update the decoding result until the error-correcting decoding of the second initial channel key succeeds includes: Replacing the corresponding position of the second initial channel key based on the partial key information to obtain an updated second initial channel key; Acquire an updated second codeword based on the error correction codeword and a CRC check code of the updated second initial channel key; Performing error correction decoding on the updated second codeword to generate an updated decoding result; The updated decoding result is sent to the first communication device. When the updated decoding result is that the error correction is successful, it is determined that the error correction decoding of the second initial channel key is successful. When the updated decoding result is that the error correction is unsuccessful, the step of receiving partial key information of the first initial channel key transmitted without error by the first communication device is performed.
8. A channel key error correction device, characterized in that: include: an error correction codeword generation module, configured to obtain a check bit from a first codeword of a first initial channel key of the first communication device, and generate an error correction codeword based on the check bit and a channel coding algorithm; an error correction codeword sending module, configured to send the error correction codeword to a second communication device, so that the second communication device generates a decoding result after performing error correction decoding on a second codeword of a second initial channel key of the second communication device based on the error correction codeword; an error-free transmission module, for receiving the decoding result, and when the decoding result is an unsuccessful error correction, transmitting the partial key information of the first initial channel key to the second communication device without error, so that the second communication device can replace and perform error correction decoding on the second initial channel key based on the partial key information, and update the decoding result until the error correction decoding of the second initial channel key is successful or the number of error-free transmissions of the partial key information reaches a maximum number.
9. A channel key error correction device, characterized in that: include: an error correction codeword receiving module, configured to receive an error correction codeword sent by a first communication device, wherein the error correction codeword is generated by the first communication device based on a check bit and a channel coding algorithm, and the check bit is obtained from a first codeword of a first initial channel key of the first communication device; a confirmation module, configured to generate a decoding result after performing error correction decoding on the second codeword of the second initial channel key of the second communication device based on the error correction codeword; A sending module, used to send the decoding result to the first communication device; An error correction module is used to receive partial key information of the first initial channel key transmitted without error by the first communication device when the decoding result is an unsuccessful error correction, and replace and perform error correction decoding on the second initial channel key based on the partial key information to update the decoding result until the error correction decoding of the second initial channel key is successful or the number of error-free transmissions of the partial key information reaches a maximum number.
10. An electronic device comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein: When the processor executes the computer program, the channel key error correction method according to any one of claims 1 to 5 is implemented, and / or, When the computer program is executed by a processor, the channel key error correction method as claimed in any one of claims 6 to 7 is implemented.
11. A non-transitory computer-readable storage medium having a computer program stored thereon, characterized in that: When the computer program is executed by a processor, the channel key error correction method according to any one of claims 1 to 5 is implemented, and / or, When the computer program is executed by a processor, the channel key error correction method as claimed in any one of claims 6 to 7 is implemented.
