Data security transmission method based on coding and encryption and electronic equipment

By introducing encryption algorithms and dynamic changes in key sequence numbers in the physical layer of wireless communication, the problem of key exposure and risk cracking in the prior art is solved, and efficient and secure data transmission of wireless communication is achieved.

CN118945644AActive Publication Date: 2024-11-12MILITARY SECRECY QUALIFICATION EXAMINATION & CERTIFICATION CENT +2
View PDF 6 Cites 0 Cited by

Patent Information

Application Number
CN202410718372.1
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-06-04
Publication Date
2024-11-12
Estimated Expiration
2044-06-04

AI Technical Summary

Technical Problem

In the existing wireless communication technology, software secure encrypted communication is mainly implemented in the application layer and the MAC layer, with the risks of key exposure and cracking, resulting in unsafe data transmission in the physical layer.

Method used

The encryption algorithm is introduced in the physical layer encoding and interleaving algorithm, and the key is solidified in the baseband chip, and the key sequence number is dynamically changed, and the key number is negotiated using the MAC layer to ensure the concealment and security of the physical layer data.

Benefits of technology

The dynamic changes of keys during wireless communication are realized, avoiding eavesdroppers from demodulating physical layer data, improving the security and efficiency of wireless communication, and ensuring data encryption and key security.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118945644A_ABST
    Figure CN118945644A_ABST
Patent Text Reader

Abstract

The invention relates to the technical field of wireless communication and industrial wireless networks, in particular to a data security transmission method based on coding and encryption. The method comprises the steps that secret keys are solidified in a chip physical layer, and each secret key corresponds to a configured secret key sequence number; converting the coding check matrix into an approximate lower triangular matrix; obtaining a conjugate matrix of the coding check matrix; setting the transpose matrix of the right multiplication conjugate matrix of the code word row sequence as 0, and solving to obtain a coding row sequence; recording a sequence of which the length of the information sequence is a specified bit, and performing k-bit data grouping alignment; performing data encryption to obtain an encrypted sequence; splicing the information sequence, the encryption sequence and the coding row sequence after k-bit alignment to obtain a sending coding row sequence, and transmitting the sending coding row sequence through a channel; and the receiving end receives, decodes and decrypts. According to the method, the problems of data transmission and interference resistance of security encryption communication of the application layer and the MAC layer and the security of physical data and keys are solved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the technical field of wireless communications and industrial wireless networks, and in particular to a data security transmission method and electronic equipment based on coding and encryption. Background Art

[0002] Current wireless communication technologies, including 4G / 5G, WIFI, Bluetooth, industrial wireless network protocols, and wireless sensor network protocols, mainly use network access authentication and encryption technologies in terms of security protection. For example, WIFI's WPA2 authentication mechanism and AES algorithm packet encryption mechanism are used to solve the problems of "fake base stations" illegally accessing the network and "eavesdroppers" cracking the plaintext of communication data.

[0003] However, current wireless network attacks generally involve the cracking of traditional authentication keys and encryption keys. Once the key information is exposed, it will not only cause the leakage of wireless transmission information, but may also be attacked by malicious forged data, causing all devices in the wireless network to be unable to send data, or even paralyzing the wireless network.

[0004] At present, software security encryption communication methods are mainly implemented in the application layer and MAC layer. The encryption communication of subsequent data is completed through the upper-layer key configuration, which may have the risk of key exposure and cracking. At present, encoders are generally used in the physical layer to implement data conversion functions and interleaved memories to implement data interleaving algorithms to complete basic data transmission and anti-interference functions. How to ensure the security of data encryption algorithms and keys is an important issue that needs to be solved urgently. Summary of the invention

[0005] The purpose of the present invention is to address the fact that the current software security encryption communication means are mainly implemented in the application layer and the MAC layer. At the physical layer, encoders are generally used to implement data conversion functions and interleaving memories to implement data interleaving algorithms to complete basic data transmission and anti-interference. How to ensure the security of physical data and keys is an urgent problem to be solved. In view of this, a data security transmission method based on encoding and encryption is proposed. The method adds an encryption algorithm to the physical layer encoding and interleaving algorithm. There are N keys, all of which are solidified in the baseband chip and indexed by serial numbers. The key serial numbers are configured through upper-layer registers. The MAC layer negotiates the key number through MAC data frames to achieve dynamic changes in the key number, making it impossible for eavesdroppers to demodulate the physical layer data, thereby ensuring the concealment and security of the physical layer.

[0006] In order to achieve the aforementioned purpose, the present invention adopts the following technical scheme.

[0007] In a first aspect, the present invention provides a data security transmission method based on coding and encryption, comprising the following steps:

[0008] S10. Solidify the key inside the chip physical layer and configure the corresponding key serial number for each key;

[0009] S11. The coding check matrix is ​​transformed into an approximate lower triangular matrix by row-column transformation;

[0010] S12. Applying Gaussian elimination method to eliminate the matrix aligned with the approximate lower triangular matrix in the column direction in the coding check matrix to obtain a conjugate matrix of the coding check matrix;

[0011] S13. Set the codeword row sequence to 0 by multiplying the conjugate matrix by the transposed matrix and solve it to obtain the check code row sequence;

[0012] S14. The length of the recorded information sequence is a len sequence of the specified number of bits;

[0013] S15. Align the information sequence by k-bit data groups to obtain a k-bit aligned information sequence;

[0014] S16. According to the key sequence number configured at the link or network layer, the corresponding key is found in the register; the k-bit aligned information sequence is encrypted using the key found by the addressing to obtain an encrypted sequence;

[0015] S17. Concatenate the len sequence of the specified number of bits, the encryption sequence obtained in S16, and the coding check line sequence obtained in S13 to obtain a transmission coding line sequence;

[0016] S18. The code line sequence is transmitted via the channel;

[0017] S19. The receiving end receives the transmitted coded line sequence transmitted via the channel and then decodes and decrypts it to obtain the information sequence.

[0018] As a possible implementation method, the S11 converts the coding check matrix into an approximate lower triangular matrix through row-column transformation;

[0019] The coding check matrix is ​​denoted as Its dimension is m×n; the dimension of A is (mg)×(nm), the dimension of B is (mg)×g, T is a lower triangular matrix with dimension mg, the dimension of C is g×(nm), the dimension of D is g×g, and the dimension of E is g×(mg).

[0020] As a possible implementation manner, the S12 specifically includes:

[0021] S120.Configuration Matrix

[0022] Where I is the identity matrix; m_g is the dimension of the lower triangular matrix T in the approximate lower triangular matrix; m is the number of rows of the approximate lower triangular matrix; g is the difference between the number of rows of the approximate lower triangular matrix and the lower triangular matrix in it;

[0023] S121. Multiply the matrix configured in S120 by the approximate lower triangular matrix to obtain a conjugate matrix of the coding check matrix.

[0024] As a possible implementation method, the S121 is specifically: Each column of the matrix is ​​multiplied by the corresponding element of each row of the coding check matrix and then added.

[0025] As a possible implementation, the codeword row sequence in S13 is a vector composed of an information sequence and a coding row sequence, denoted as X=[ur1r2], where u is the information sequence; the conjugate matrix is ​​expressed as: The transpose matrix of the conjugate matrix is ​​denoted by

[0026] in,

[0027] As a possible implementation, when S13 is specifically implemented, according to the characteristics of the transposed matrix of the conjugate matrix, the transposed matrix of the conjugate matrix is ​​right-multiplied, that is, Substitute the information sequence u into , solve to obtain the coding check row sequences r1 and r2.

[0028] As a possible implementation method, S15 is specifically as follows: if the specified number of bits of the len sequence is not an integer multiple of k, 0 is added to pad it to obtain a k-bit aligned information sequence; otherwise, if it is an integer multiple of k, there is no need to perform k-bit data group alignment on the information sequence, and the len sequence is directly used as the length of the k-bit aligned information sequence, and the process jumps to S16.

[0029] As a possible implementation, the designated number of bits in S14 is determined according to the maximum length of a single packet sequence. The single packet sequence is a packet of data content sent at a single time.

[0030] As a possible implementation, in S18, any one of SM4, AES, and DES encryption algorithms is used to encrypt data.

[0031] In a second aspect, the present invention further provides an electronic device, comprising a memory and a processor, wherein the memory stores a program running on the processor, and when the processor runs the program, the method for secure data transmission based on encoding and encryption described in the first aspect is executed.

[0032] Beneficial Effects

[0033] The present invention proposes a data security transmission method and electronic device based on coding and encryption. Compared with the prior art, the present invention has the following beneficial effects:

[0034] 1. The method solves the problem that the existing software security encryption communication means are mainly implemented at the application layer and MAC layer, and the subsequent data encryption communication is completed through the upper layer key configuration, which may have the risk of key exposure and cracking;

[0035] 2. The method can realize coding encryption and key solidification storage at the physical layer, thereby improving the efficiency in the wireless communication process;

[0036] 3. The method can realize dynamic changes of the key number, making it impossible for eavesdroppers to demodulate the physical layer data, thus ensuring the concealment and security of the physical layer;

[0037] 4. The method solves the problem that the physical layer currently generally uses encoders to implement data conversion functions and interleaving memory to implement data interleaving algorithms. It not only completes basic data transmission and anti-interference functions, but also ensures the security of data encryption algorithms and secret keys. BRIEF DESCRIPTION OF THE DRAWINGS

[0038] The drawings described herein are used to provide a further understanding of the present invention and constitute a part of the present invention. The exemplary embodiments of the present invention and their descriptions are used to explain the present invention and do not constitute an improper limitation of the present invention. In the drawings:

[0039] Figure 1 The figure is a flow chart of a data security transmission method based on encoding and encryption in an embodiment of the present invention.

[0040] Figure 2 The coding check matrix H in the embodiment of the present invention is transformed into an approximate lower triangular matrix through row-column transformation. DETAILED DESCRIPTION

[0041] In order to clearly describe the technical solutions of the embodiments of the present invention, in the embodiments of the present invention, words such as "first" and "second" are used to distinguish the same items or similar items with basically the same functions and effects. For example, the first threshold and the second threshold are only used to distinguish different thresholds, and their order is not limited. Those skilled in the art can understand that words such as "first" and "second" do not limit the quantity and execution order, and words such as "first" and "second" do not necessarily limit them to be different.

[0042] It should be noted that, in the present invention, words such as "exemplary" or "for example" are used to indicate examples, illustrations or descriptions. Any embodiment or design described as "exemplary" or "for example" in the present invention should not be interpreted as being more preferred or more advantageous than other embodiments or designs. Specifically, the use of words such as "exemplary" or "for example" is intended to present related concepts in a specific way.

[0043] In the present invention, "at least one" means one or more, and "plurality" means two or more. "And / or" describes the association relationship of associated objects, indicating that three relationships may exist. For example, A and / or B can mean: A exists alone, A and B exist at the same time, and B exists alone, where A and B can be singular or plural. The character " / " generally indicates that the associated objects before and after are in an "or" relationship. The following at least one item (items) or similar expressions thereof refer to any combination of these items, including any combination of single items (items) or plural items (items). For example, at least one item (items) of a, b or c can mean: a, b, c, the combination of a and b, the combination of a and c, the combination of b and c, or the combination of a, b and c, where a, b, c can be single or multiple.

[0044] At present, existing software security encryption communication means are mainly implemented at the application layer and MAC layer, and the subsequent data encryption communication is completed through the upper-layer key configuration, which may have the risk of key exposure and cracking; the method proposed in the present invention can avoid the risk of key exposure and cracking at the link and application layers, and realize efficient encrypted communication.

[0045] In specific implementation, the wireless system based on the data security transmission method based on coding and encryption provided by the present invention includes multiple devices, each of which has already solidified 1 to N 16-bit SM4 algorithm keys in the strap chip in advance, and it should be understood that the algorithm key is not limited to SM4. The key sequence number corresponding to the SM4 algorithm key is configured through the upper register, and the specific key sequence stored is addressed and taken out for encoding and use. The specific encoding can be LDPC code, that is, low-density parity-check code (Low-density Parity-check Codes, referred to as LDPC).

[0046] Based on the data security transmission method of coding and encryption, the physical layer coding of the wireless device can be added with the SM4 encryption process based on the LDPC coding. Figure 1 , specifically including the following steps:

[0047] S10. The key is solidified inside the chip physical layer, and each key corresponds to the configuration key number f;

[0048] S11. Convert the coding check matrix into an approximate lower triangular matrix through row-column transformation.

[0049] As an example, the coding check matrix can be defined as H, which can be further expressed as:

[0050]

[0051] The coding check matrix H is transformed into an approximate lower triangular matrix after row-column transformation. Figure 2 ; Where T is a lower triangular matrix; according to the number of rows and columns of T, the remaining H matrix is ​​divided into five matrices ABCDE with fixed numbers of rows and columns. That is, according to the number of rows and columns of the lower triangular matrix, the part of the coding check matrix that does not include the approximate lower triangular matrix is ​​divided into N matrices with fixed numbers of rows and columns.

[0052] S12. Apply the Gaussian elimination method to eliminate the matrix in the coding check matrix that is aligned with the approximate lower triangular matrix in the column direction, and obtain the conjugate matrix of the coding check matrix.

[0053] In the specific implementation, you need to configure Matrix, where I is the identity matrix. Multiply the approximate lower triangular matrix on the left, Each column of the matrix is ​​multiplied by the corresponding element of each row of the coding check matrix and then added to obtain the conjugate matrix of the coding check matrix. The conjugate matrix can be specifically expressed as:

[0054]

[0055] in,

[0056] S13. Right-multiply the codeword row sequence by the conjugate matrix transpose matrix, set it to 0 and solve it to obtain the check code row sequence.

[0057] The codeword row sequence is a vector composed of the information sequence and the coding row sequence, which can be specifically expressed as:

[0058] X=[ur1r2]

[0059] The right multiplication of the conjugate matrix transpose matrix is ​​0 and can be expressed as:

[0060]

[0061] Substituting the information sequence u into the above formula, we can solve r1 and r2, and then we get the coding row sequence.

[0062] S14. Record the length of the information sequence u as a len sequence of the specified number of bits. The number of bits can be determined based on the maximum length of a single packet sequence. It needs to be further explained that in different wireless application environments, the data content of each transmission is different. After receiving a packet of data frames, the device records the number of data bytes as a len sequence by using the receive interrupt loop count method, and the number of bits can be determined. The above single packet sequence is the content of a packet of data sent once.

[0063] S15. Perform k-bit data group alignment on the information sequence u to obtain a k-bit aligned information sequence.

[0064] Taking the SM4 algorithm as an example, in the specific implementation, the information sequence u is aligned with 16 (k=16) bits of data groups. If the length len of the data u is not an integer multiple of 16, 0 is added to pad it. If it is an integer multiple of 16, there is no need to align the information sequence with 16 bits of data groups. The u sequence with a length of len is directly used as the information sequence after 16-bit alignment, and jumps to S16.

[0065] Of course, the encryption algorithm is not limited to SM4, and encryption algorithms such as AES and DES can also be used for data encryption.

[0066] The method can realize coding encryption and key solidification storage at the physical layer, thereby improving the efficiency in the wireless communication process; in specific implementation, the key solidification storage is realized through S10, and the coding encryption at the physical layer is realized through S11 to S15.

[0067] S16. According to the key sequence number configured at the link or network layer, the corresponding key is found in the register; the k-bit aligned information sequence is encrypted using the key configured in S10 to obtain the encrypted sequence u wia It needs to be further explained that the information sequence after S15 alignment uses the current key for SM4 encryption. The SM4 encryption algorithm function can be used to input the sequence array and the detailed key sequence, and output the encrypted information sequence. The encryption results of the same information encrypted with different keys are different.

[0068] S17. Concatenate the len sequence of the specified number of bits, the encryption sequence obtained in S16, and the check code line sequence obtained in S13 to obtain the sending code line sequence; the sending code line sequence is specifically represented by X wia , X wia =[len u wia r1 r2].

[0069] S18. Transmit the send coded line sequence via the channel.

[0070] S19. The receiving end receives the transmitted coded line sequence transmitted via the channel and then decodes and decrypts it to obtain the information sequence.

[0071] In a second aspect, an embodiment of the present invention further provides an electronic device, including a memory and a processor, wherein the memory stores a program running on the processor, and when the processor runs the program, the method for secure data transmission based on encoding and encryption of the first aspect is executed.

[0072] The method can realize the dynamic change of the key number, making it impossible for eavesdroppers to demodulate the physical layer data, and ensuring the concealment and security of the physical layer. For example, the MAC layer of the device in the wireless system negotiates the key number through the MAC data frame to realize the dynamic change of the key number. After the field device uses the default key to complete the first communication with the access, the key can be changed through the key change instruction. The access device records the corresponding device address and key number, and performs the data transmission function of decoding and decryption and encoding and encryption through the device ID change key. The following fixed data frame format can be used:

[0073] Table 1 Fixed data frame format

[0074]

[0075] The encryption algorithm key serial number used by the device should be updated periodically. After receiving the data frame, the device in the wireless communication system first finds the key corresponding to the device ID according to the received length to decrypt the coded information sequence, and then performs decoding verification after decryption: when the verification fails, a security warning is generated and the current information sequence is discarded; when the information sequence length does not correspond to the check bit sequence after decryption according to the key used, a security alarm is generated; when the source address, destination address, and key serial number in the data frame verify whether the data frame is legal, a security alarm is generated when there is an abnormality.

[0076] The method solves the problem that the physical layer currently generally uses an encoder to implement a data conversion function and an interleaving memory to implement a data interleaving algorithm, which not only completes basic data transmission and anti-interference functions, but also ensures data encryption and key security.

[0077] Those skilled in the art can understand that the above description is only a preferred embodiment of the present invention and is not intended to limit the present invention. Although the present invention is described in detail with reference to the aforementioned embodiments, those skilled in the art can still modify the technical solutions recorded in the aforementioned embodiments or replace some of the technical features therein by equivalents. Any modification, equivalent replacement, improvement, etc. made within the spirit and principle of the present invention shall be included in the protection scope of the present invention.

Claims

1. A data security transmission method based on coding and encryption, It is characterized in that The steps include: S10. Solidify the key inside the chip physical layer and configure the corresponding key serial number for each key; S11. The coding check matrix is ​​transformed into an approximate lower triangular matrix by row-column transformation; S12. Applying Gaussian elimination method to eliminate the matrix aligned with the approximate lower triangular matrix in the column direction in the coding check matrix to obtain a conjugate matrix of the coding check matrix; S13. Set the codeword row sequence to 0 by multiplying the conjugate matrix by the transposed matrix and solve it to obtain the check code row sequence; S14. The length of the recorded information sequence is a len sequence of the specified number of bits; S15. Align the information sequence by k-bit data groups to obtain a k-bit aligned information sequence; S16. According to the key sequence number configured at the link or network layer, the corresponding key is found in the register; the k-bit aligned information sequence is encrypted using the key found by the addressing to obtain an encrypted sequence; S17. Concatenate the len sequence of the specified number of bits, the encryption sequence obtained in S16, and the check code line sequence obtained in S13 to obtain a transmission code line sequence; S18. The code line sequence is transmitted via the channel; S19. The receiving end receives the transmitted coded line sequence transmitted via the channel and then decodes and decrypts it to obtain the information sequence.

2. A data security transmission method based on coding and encryption according to claim 1, It is characterized in that The S11 converts the coding check matrix into an approximate lower triangular matrix through row-column transformation; The coding check matrix is ​​denoted as Its dimension is m×n; the dimension of A is (m-g)×(n-m), the dimension of B is (m-g)×g, T is a lower triangular matrix with dimension m-g, the dimension of C is g×(n-m), the dimension of D is g×g, and the dimension of E is g×(m-g).

3. A data security transmission method based on coding and encryption according to claim 2, It is characterized in that The S12 specifically includes: S120.Configuration Matrix Where I is the identity matrix; m-g is the dimension of the lower triangular matrix T in the approximate lower triangular matrix; m is the number of rows of the approximate lower triangular matrix; g is the difference between the number of rows of the approximate lower triangular matrix and the lower triangular matrix in it; S121. Multiply the matrix configured in S120 by the approximate lower triangular matrix to obtain a conjugate matrix of the coding check matrix.

4. A data security transmission method based on coding and encryption according to claim 3, It is characterized in that The S121 is specifically: Each column of the matrix is ​​multiplied by the corresponding element of each row of the coding check matrix and then added.

5. A data security transmission method based on coding and encryption according to claim 1, It is characterized in that The codeword row sequence in S13 is a vector composed of an information sequence and a coding row sequence, denoted as X=[ur 1 r 2 ], u is the information sequence; the conjugate matrix is ​​expressed as: The transpose matrix of the conjugate matrix is ​​denoted by in, 6. The data security transmission method based on coding and encryption according to claim 5, It is characterized in that When S13 is specifically implemented, according to the characteristics of the transposed matrix of the conjugate matrix, the transposed matrix of the conjugate matrix is ​​right-multiplied, that is, Substitute the information sequence u into In the solution, we can obtain the encoding row sequence r 1 and r 2 .

7. A data security transmission method based on coding and encryption according to claim 1, It is characterized in that The S15 is specifically as follows: if the specified number of bits of the len sequence is not an integer multiple of k, 0 is added to pad it to obtain a k-bit aligned information sequence; otherwise, if it is an integer multiple of k, there is no need to perform k-bit data group alignment on the information sequence, and the len sequence is directly used as the k-bit aligned information sequence, and the process jumps to S16.

8. The data security transmission method based on coding and encryption according to claim 1, It is characterized in that The designated number of bits in S14 is determined according to the maximum length of a single packet sequence, where the single packet sequence is a packet of data content sent at a single time.

9. The data security transmission method based on coding and encryption according to claim 1, It is characterized in that In S18, any one of SM4, AES and DES encryption algorithms is used to encrypt data.

10. An electronic device, It is characterized in that It comprises a memory and a processor, wherein the memory stores a program running on the processor, and the processor executes the data security transmission method based on encoding and encryption as described in any one of claims 1 to 9 when running the program.

Citation Information

Patent Citations

  • Physical layer secure transmission method and system based on dynamic change of channel encoding matrix

    CN104780022A

  • Wireless-channel physical-layer secret key negotiation and inconsistent bit removing method

    CN106878012A

  • TWDM-PON system physical layer security method based on MD5 verification and AES encryption

    CN111786773A

  • Network information security encryption method and system

    CN117201020A

  • Data security communication method

    CN117676562A