Encryption and decryption method and device, equipment, storage medium and program product

By using the Auxiliary Bit field of the LDPC code block to carry information in the PHY chip, the encryption and decryption of the physical layer of the Ethernet is solved, and the problem of large overhead of encryption and decryption in the existing technology is solved, and the physical layer security protection is not possible, achieving efficient and secure Data transmission.

CN119070984AActive Publication Date: 2024-12-03CHINA MOBILE COMM LTD RES INST +1
View PDF 4 Cites 0 Cited by

Patent Information

Application Number
CN202411071135.7
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-08-06
Publication Date
2024-12-03
Estimated Expiration
2044-08-06

AI Technical Summary

Technical Problem

The existing network encryption mechanism is expensive in Ethernet, making it difficult to effectively prevent eavesdropping attacks, and cannot meet the security protection needs of the physical layer network.

Method used

The physical layer data encryption and decryption technology based on LDPC code blocks is adopted. By using the Auxiliary Bit field to carry the relevant information of the composite bit block container in the PHY chip, a new physical layer encoding format is constructed to realize the physical layer data encryption and decryption of the composite bitstream container.

Benefits of technology

It reduces the overhead of encryption and decryption, improves security, can effectively cover up traffic characteristics, prevent data leakage and tampering, and is suitable for data centers and on-board scenarios.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119070984A_ABST
    Figure CN119070984A_ABST
Patent Text Reader

Abstract

The invention discloses an encryption and decryption method and device, equipment, a storage medium and a program product, relates to the technical field of communication, and aims to reduce encryption and decryption overhead. The method comprises the following steps: acquiring a composite bit block container; and sending the composite bit block container to a receiving end. According to the embodiment of the invention, encryption and decryption overhead can be reduced.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the field of communication technology, and in particular to an encryption and decryption method, device, equipment, storage medium and program product. Background Art

[0002] Ethernet is widely used in data centers, carrier networks, industrial Internet, Internet of Things, automotive Ethernet and other scenarios. Since Ethernet is a shared communication link, any device connected to Ethernet can receive the transmitted data, making network attacks more likely to occur in Ethernet. To this end, measures such as data encryption, secure communication protocols and physical security enhancement are needed to prevent eavesdropping attacks.

[0003] Existing network encryption mechanisms include Transport Layer Security (TLS), Internet Protocol Security (IPSec) and Media Access Control Security (MACSec), which are used to provide security services at different network levels. However, the overhead of the above encryption mechanisms is relatively large. Summary of the invention

[0004] The embodiments of the present application provide an encryption and decryption method, apparatus, device, storage medium and program product to reduce encryption and decryption overhead.

[0005] In a first aspect, an embodiment of the present application provides an encryption method, which is applied to a physical layer (PHY) chip of a transmitting end, comprising:

[0006] Get a composite bit block container;

[0007] Sending the composite bit block container to a receiving end;

[0008] The composite bit block container includes N bit container sub-blocks, each bit container sub-block includes Q low-density parity check code (LDCP) code blocks, and each LDCP code block includes 1-bit channel additional code (Auxiliary Bit); the Q-bit Auxiliary Bit of the M bit container sub-blocks of the composite bit block container is used to carry information related to the composite bit block container;

[0009] Wherein, N represents the number of bit container sub-blocks included in the composite bit block container, M is an integer and N≥M≥1, and Q is an integer greater than or equal to 1.

[0010] Optionally, the composite bit block container related information includes:

[0011] A first indication is used to indicate a bitstream type, where the bitstream type includes a single bitstream or a composite bitstream container;

[0012] A second indication is used to identify a starting sub-block of a composite bitstream container;

[0013] The third indication is used to identify the length of the composite bitstream container.

[0014] Optionally, if N>18, the second bit subblock to the N-17th bit subblock of the composite bit block container are reserved subblocks; the N-16th bit subblock to the N-1th bit subblock of the composite bit block container are used to carry key-related information; the Nth bit subblock of the composite bit block container is the end subblock of the composite bit stream container; or

[0015] If N=18, the N-16th bit sub-block to the N-1th bit sub-block of the composite bit block container are used to carry key-related information; the Nth bit sub-block of the composite bit block container is the end sub-block of the composite bit stream container.

[0016] Optionally, the method further includes:

[0017] Obtaining data frames from a Media Access Control (MAC) layer through a Physical Coding Sublayer (PCS) of the PHY chip via a Reconciliation Sublayer (RS);

[0018] Performing encoding and scrambling operations on the data frame through the PCS layer;

[0019] Adding a channel additional code to the data frame after the encoding and scrambling operations through the PCS layer to obtain a data frame to be processed;

[0020] The data frame to be processed is LDPC encoded through the PCS layer to obtain the LDCP code block.

[0021] In a second aspect, an embodiment of the present application provides a decryption method, which is applied to a PHY chip at a receiving end, comprising:

[0022] receiving a composite bit block container sent by a sender;

[0023] Decrypting the composite bit block container to obtain decrypted information;

[0024] The composite bit block container includes N bit container sub-blocks, each bit container sub-block includes Q LDCP code blocks, and each LDCP code block includes 1 bit of Auxiliary Bit; the Q bits of Auxiliary Bit of the M bit container sub-blocks of the composite bit block container are used to carry composite bit block container related information;

[0025] Wherein, N represents the number of bit container sub-blocks included in the composite bit block container, M is an integer and N≥M≥1, and Q is an integer greater than or equal to 1.

[0026] Optionally, the composite bit block container related information includes:

[0027] A first indication is used to indicate a bitstream type, where the bitstream type includes a single bitstream or a composite bitstream container;

[0028] A second indication is used to identify a starting sub-block of a composite bitstream container;

[0029] The third indication is used to identify the length of the composite bitstream container.

[0030] Optionally, if N>18, the second bit subblock to the N-17th bit subblock of the composite bit block container are reserved subblocks; the N-16th bit subblock to the N-1th bit subblock of the composite bit block container are used to carry key-related information; the Nth bit subblock of the composite bit block container is the end subblock of the composite bit stream container; or

[0031] If N=18, the N-16th bit sub-block to the N-1th bit sub-block of the composite bit block container are used to carry key-related information; the Nth bit sub-block of the composite bit block container is the end sub-block of the composite bit stream container.

[0032] Optionally, decrypting the composite bit block container to obtain decrypted information includes:

[0033] If the first indication of the composite bit block container related information is used to indicate that the bitstream type is a composite bitstream container, determining the starting sub-block of the composite bitstream container and the length of the composite bitstream container according to the second indication and the third indication respectively;

[0034] Determine the end sub-block of the composite bitstream container according to the start sub-block of the composite bitstream container and the length of the composite bitstream container, and obtain key related information;

[0035] The composite bitstream container is decrypted using the key-related information to obtain the decrypted information.

[0036] Optionally, the method further includes:

[0037] The decrypted information is subjected to LDPC decoding through the PCS layer of the PHY chip, and the channel additional code in the information obtained after LDPC decoding is removed to obtain information to be processed;

[0038] The information to be processed is descrambled and decoded by the PCS layer of the PHY chip and then sent to the MAC layer via the RS layer.

[0039] In a third aspect, an embodiment of the present application provides an encryption device, which is applied to a PHY chip at a transmitting end, including:

[0040] A first acquisition module, used for acquiring a composite bit block container;

[0041] A first sending module, configured to send the composite bit block container to a receiving end;

[0042] The composite bit block container includes N bit container sub-blocks, each bit container sub-block includes Q LDCP code blocks, and each LDCP code block includes 1 bit of Auxiliary Bit; the Q bits of Auxiliary Bit of the M bit container sub-blocks of the composite bit block container are used to carry composite bit block container related information;

[0043] Wherein, N represents the number of bit container sub-blocks included in the composite bit block container, M is an integer and N≥M≥1, and Q is an integer greater than or equal to 1.

[0044] Optionally, the composite bit block container related information includes:

[0045] A first indication is used to indicate a bitstream type, where the bitstream type includes a single bitstream or a composite bitstream container;

[0046] A second indication is used to identify a starting sub-block of a composite bitstream container;

[0047] The third indication is used to identify the length of the composite bitstream container.

[0048] Optionally, if N>18, the second bit subblock to the N-17th bit subblock of the composite bit block container are reserved subblocks; the N-16th bit subblock to the N-1th bit subblock of the composite bit block container are used to carry key-related information; the Nth bit subblock of the composite bit block container is the end subblock of the composite bit stream container; or

[0049] If N=18, the N-16th bit sub-block to the N-1th bit sub-block of the composite bit block container are used to carry key-related information; the Nth bit sub-block of the composite bit block container is the end sub-block of the composite bit stream container.

[0050] Optionally, the device further includes: a first processing module, configured to:

[0051] Obtaining data frames from the MAC layer through the PCS layer of the PHY chip via the RS;

[0052] Performing encoding and scrambling operations on the data frame through the PCS layer;

[0053] Adding a channel additional code to the data frame after the encoding and scrambling operations through the PCS layer to obtain a data frame to be processed;

[0054] The data frame to be processed is LDPC encoded through the PCS layer to obtain the LDCP code block.

[0055] In a fourth aspect, an embodiment of the present application provides a decryption device, which is applied to a PHY chip at a receiving end, including:

[0056] A first receiving module, configured to receive a composite bit block container sent by a sending end;

[0057] A first decryption module, used for decrypting the composite bit block container to obtain decrypted information;

[0058] The composite bit block container includes N bit container sub-blocks, each bit container sub-block includes Q LDCP code blocks, and each LDCP code block includes 1 bit of Auxiliary Bit; the Q bits of Auxiliary Bit of the M bit container sub-blocks of the composite bit block container are used to carry composite bit block container related information;

[0059] Wherein, N represents the number of bit container sub-blocks included in the composite bit block container, M is an integer and N≥M≥1, and Q is an integer greater than or equal to 1.

[0060] Optionally, the composite bit block container related information includes:

[0061] A first indication is used to indicate a bitstream type, where the bitstream type includes a single bitstream or a composite bitstream container;

[0062] A second indication is used to identify a starting sub-block of a composite bitstream container;

[0063] The third indication is used to identify the length of the composite bitstream container.

[0064] Optionally, if N>18, the second bit subblock to the N-17th bit subblock of the composite bit block container are reserved subblocks; the N-16th bit subblock to the N-1th bit subblock of the composite bit block container are used to carry key-related information; the Nth bit subblock of the composite bit block container is the end subblock of the composite bit stream container; or

[0065] If N=18, the N-16th bit sub-block to the N-1th bit sub-block of the composite bit block container are used to carry key-related information; the Nth bit sub-block of the composite bit block container is the end sub-block of the composite bit stream container.

[0066] Optionally, the first decryption module is further used for:

[0067] If the first indication of the composite bit block container related information is used to indicate that the bitstream type is a composite bitstream container, determining the starting sub-block of the composite bitstream container and the length of the composite bitstream container according to the second indication and the third indication respectively;

[0068] Determine the end sub-block of the composite bitstream container according to the start sub-block of the composite bitstream container and the length of the composite bitstream container, and obtain key related information;

[0069] The composite bitstream container is decrypted using the key-related information to obtain the decrypted information.

[0070] Optionally, the device may further include a first processing module, configured to:

[0071] The decrypted information is subjected to LDPC decoding through the PCS layer of the PHY chip, and the channel additional code in the information obtained after LDPC decoding is removed to obtain information to be processed;

[0072] The information to be processed is descrambled and decoded by the PCS layer of the PHY chip and then sent to the MAC layer via the RS layer.

[0073] In a fifth aspect, an embodiment of the present application provides an encryption device, applied to a PHY chip at a transmitting end, comprising: a processor and a transceiver;

[0074] The processor is used to obtain a composite bit block container;

[0075] The transceiver is used to send the composite bit block container to a receiving end;

[0076] The composite bit block container includes N bit container sub-blocks, each bit container sub-block includes Q LDCP code blocks, and each LDCP code block includes 1 bit of Auxiliary Bit; the Q bits of Auxiliary Bit of the M bit container sub-blocks of the composite bit block container are used to carry composite bit block container related information;

[0077] Wherein, N represents the number of bit container sub-blocks included in the composite bit block container, M is an integer and N≥M≥1, and Q is an integer greater than or equal to 1.

[0078] Optionally, the composite bit block container related information includes:

[0079] A first indication is used to indicate a bitstream type, where the bitstream type includes a single bitstream or a composite bitstream container;

[0080] A second indication is used to identify a starting sub-block of a composite bitstream container;

[0081] The third indication is used to identify the length of the composite bitstream container.

[0082] Optionally, if N>18, the second bit subblock to the N-17th bit subblock of the composite bit block container are reserved subblocks; the N-16th bit subblock to the N-1th bit subblock of the composite bit block container are used to carry key-related information; the Nth bit subblock of the composite bit block container is the end subblock of the composite bit stream container; or

[0083] If N=18, the N-16th bit sub-block to the N-1th bit sub-block of the composite bit block container are used to carry key-related information; the Nth bit sub-block of the composite bit block container is the end sub-block of the composite bit stream container.

[0084] Optionally, the processor is further configured to:

[0085] Acquire a data frame from a media access control MAC layer via a PCS layer of the PHY chip via an RS layer;

[0086] Performing encoding and scrambling operations on the data frame through the PCS layer;

[0087] Adding a channel additional code to the data frame after the encoding and scrambling operations through the PCS layer to obtain a data frame to be processed;

[0088] The data frame to be processed is LDPC encoded through the PCS layer to obtain the LDCP code block.

[0089] In a sixth aspect, an embodiment of the present application provides a decryption device, applied to a PHY chip at a receiving end, comprising: a processor and a transceiver;

[0090] The transceiver is used to receive the composite bit block container sent by the sending end;

[0091] The processor is used to decrypt the composite bit block container to obtain decrypted information;

[0092] The composite bit block container includes N bit container sub-blocks, each bit container sub-block includes Q LDCP code blocks, and each LDCP code block includes 1 bit of Auxiliary Bit; the Q bits of Auxiliary Bit of the M bit container sub-blocks of the composite bit block container are used to carry composite bit block container related information;

[0093] Wherein, N represents the number of bit container sub-blocks included in the composite bit block container, M is an integer and N≥M≥1, and Q is an integer greater than or equal to 1.

[0094] Optionally, the composite bit block container related information includes:

[0095] A first indication is used to indicate a bitstream type, where the bitstream type includes a single bitstream or a composite bitstream container;

[0096] A second indication is used to identify a starting sub-block of a composite bitstream container;

[0097] The third indication is used to identify the length of the composite bitstream container.

[0098] Optionally, if N>18, the second bit subblock to the N-17th bit subblock of the composite bit block container are reserved subblocks; the N-16th bit subblock to the N-1th bit subblock of the composite bit block container are used to carry key-related information; the Nth bit subblock of the composite bit block container is the end subblock of the composite bit stream container; or

[0099] If N=18, the N-16th bit sub-block to the N-1th bit sub-block of the composite bit block container are used to carry key-related information; the Nth bit sub-block of the composite bit block container is the end sub-block of the composite bit stream container.

[0100] Optionally, the processor is further configured to:

[0101] If the first indication of the composite bit block container related information is used to indicate that the bitstream type is a composite bitstream container, determining the starting sub-block of the composite bitstream container and the length of the composite bitstream container according to the second indication and the third indication respectively;

[0102] Determine the end sub-block of the composite bitstream container according to the start sub-block of the composite bitstream container and the length of the composite bitstream container, and obtain key related information;

[0103] The composite bitstream container is decrypted using the key-related information to obtain the decrypted information.

[0104] Optionally, the processor is further configured to:

[0105] The decrypted information is subjected to LDPC decoding through the PCS layer of the PHY chip, and the channel additional code in the information obtained after LDPC decoding is removed to obtain information to be processed;

[0106] The information to be processed is descrambled and decoded by the PCS layer of the PHY chip and then sent to the MAC layer via the RS layer.

[0107] In the seventh aspect, an embodiment of the present application also provides a communication device, including: a memory, a processor, and a program stored in the memory and executable on the processor, wherein the processor implements the steps in the encryption method or decryption method as described above when executing the program.

[0108] In an eighth aspect, an embodiment of the present application further provides a readable storage medium, on which a program is stored, and when the program is executed by a processor, the steps in the encryption method or decryption method as described above are implemented.

[0109] In a ninth aspect, an embodiment of the present application further provides a computer program product, comprising computer instructions, which, when executed by a processor, implement the steps in the encryption method or decryption method as described above.

[0110] In the embodiment of the present application, the Auxiliary Bit of the LDCP code block is used to carry the composite bit block container related information, without introducing additional bandwidth overhead, thereby reducing the encryption and decryption overhead. BRIEF DESCRIPTION OF THE DRAWINGS

[0111] Figure 1 This is one of the processing diagrams of the embodiment of the present application;

[0112] Figure 2 This is the second schematic diagram of the processing process of the embodiment of the present application;

[0113] Figure 3 It is one of the flow charts of the information processing method provided in the embodiment of the present application;

[0114] Figure 4 is a schematic diagram of an LDPC code block in an embodiment of the present application;

[0115] Figure 5is a schematic diagram of the structure of a composite bitstream container in an embodiment of the present application;

[0116] Figure 6 This is a schematic diagram of the encryption and decryption architecture and process in the embodiment of the present application;

[0117] Figure 7 This is the second flowchart of the information processing method provided in the embodiment of the present application;

[0118] Figure 8 It is one of the structural diagrams of the information processing device provided in the embodiment of the present application;

[0119] Fig. 9 This is the second structural diagram of the information processing device provided in the embodiment of the present application;

[0120] Fig.10 This is the third structural diagram of the information processing device provided in the embodiment of the present application;

[0121] Fig.11 This is the fourth structural diagram of the information processing device provided in the embodiment of the present application. DETAILED DESCRIPTION

[0122] In the embodiments of the present application, the term "and / or" describes the association relationship of the associated objects, indicating that three relationships may exist. For example, A and / or B may represent: A exists alone, A and B exist at the same time, and B exists alone. The character " / " generally indicates that the associated objects before and after are in an "or" relationship.

[0123] In the embodiments of the present application, the term "plurality" refers to two or more than two, and other quantifiers are similar.

[0124] The following will be combined with the drawings in the embodiments of the present application to clearly and completely describe the technical solutions in the embodiments of the present application. Obviously, the described embodiments are only part of the embodiments of the present application, not all of the embodiments. Based on the embodiments in the present application, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of this application.

[0125] The existing network encryption mechanism has the following disadvantages:

[0126] 1. IPSec can provide security services at the network layer. It implements encryption and authentication mechanisms by establishing an IPSec tunnel between two security gateways to protect the security of network layer data between the communicating parties. However, when users need to provide security protection for their data link layer network or physical layer network, IPSec will not be able to meet the needs. At the same time, IPSec requires complex encapsulation operations on the original data message, such as encapsulating the authentication message header, encrypting the security payload message header and message tail, etc. During the encapsulation process, a large message encapsulation overhead will be introduced, occupying a certain amount of bandwidth resources. When the data message is encrypted and decrypted by IPSec, there is also a millisecond-level processing delay, and its impact on business delay needs to be carefully evaluated.

[0127] 2. MACSec is a data link layer security encryption communication technology based on existing protocols. It can ensure the security of data frames between Ethernet devices and reduce the risk of information leakage and malicious network attacks. But at the same time, MACSec still has security loopholes. On the one hand, MACSec cannot provide encryption protection for Ethernet frame headers, nor can it conceal traffic characteristics such as transmission frequency and Ethernet frame length, resulting in unencrypted Ethernet frame headers being easily used by attackers to perform traffic model analysis attacks, thereby inferring user privacy and behavior. The standard group has proposed a variety of protection solutions to solve this problem, but these solutions are still under discussion and will also introduce additional overhead, delay jitter, and increase the complexity of implementation. On the other hand, MACSec cannot encrypt priority flow control frames or pause frames. The feasible solutions being discussed involve changes to the existing MAC layer architecture, which will increase the complexity of the solution implementation.

[0128] In summary, the existing solutions need to be further improved due to cost and usage issues to make them easier to deploy in operator networks.

[0129] PHYSec is a security encryption technology that works at the Ethernet physical layer and encrypts and decrypts the bit stream at the physical layer. The Ethernet frame header of the data link layer and the IP header of the network layer are both payloads of the physical layer bit stream, so PHYSec can protect all upper layer protocols and data, conceal traffic characteristics, and has extremely high security. Taking 10G-BASET as an example, PHYSec is deployed in the PHY of the chip. Based on this, an embodiment of the present application proposes a physical layer data encryption technology based on LDPC codewords using a PHY chip. The embodiment of the present application uses the Auxiliary Bit field combination of the LDPC code block to carry information related to the composite bit block container, construct a new physical layer coding format, and implement physical layer data encryption of the composite bit stream container in the PHY chip.

[0130] like Figure 1FIG. 1 is a schematic diagram of the processing process of an embodiment of the present application. After the plaintext bit stream of the transmitting end is encrypted at the physical layer, a ciphertext bit stream is obtained. After the receiving end obtains the ciphertext bit stream, it decrypts it at the physical layer to obtain a plaintext bit stream.

[0131] PHYSec is implemented at the physical layer, offloading the encryption and decryption algorithms to the underlying PHY chip to achieve line-speed encryption and decryption. Figure 2 The figure shows the PHYSec data encryption process. After the plaintext bit stream is encrypted, the ciphertext bit stream is obtained. After the receiving end obtains the ciphertext bit stream, it decrypts it to obtain the plaintext bit stream.

[0132] The following is a detailed description in combination with different embodiments.

[0133] See also Figure 3 , Figure 3 is a flowchart of the encryption method provided in the embodiment of the present application, which is applied to the PHY chip at the sending end, such as Figure 3 As shown, the following steps are included:

[0134] Step 301: Get a composite bit block container.

[0135] In this step, a composite bit block container is mainly formed based on the LDCP code block. The composite bit block container may include a start bit container sub-block, a reserved sub-block, an end bit container sub-block, and the like.

[0136] In an embodiment of the present application, the composite bit block container includes N bit container sub-blocks, each bit container sub-block includes Q LDCP code blocks, and each LDCP code block includes 1 bit of Auxiliary Bit; the Q bits of Auxiliary Bit of the M bit container sub-blocks of the composite bit block container are used to carry information related to the composite bit block container; wherein N represents the number of bit container sub-blocks included in the composite bit block container, M is an integer and N≥M≥1, and Q is an integer greater than or equal to 1.

[0137] like Figure 4As shown, the composition of the LDPC code block is shown. Taking 10G-BASET as an example, in the 10GBase-T encoding process, every 64 bits of information plus the control / data flag bit form a 65-bit block, 50 blocks are organized into a group, and each group is added with an 8-bit cyclic redundancy check code (CRC). Therefore, a total of 65×50+8=3258 bits are generated, and a 1-bit channel additional code (Auxiliary Bit) is added, which is a total of 3259 bits. That is, an LDCP code block includes 3259 bits. Among them, 3259 bits are divided into two parts, 3×512 bits (including channel additional codes) are transmitted in an unprotected manner, and the other 1723 bits plus 325 parity check codes are transmitted in an LDPC (1723, 2048) protection manner. Among them, the Auxiliary Bit field is an available field. In an embodiment of the present application, the Auxiliary Bit field is used to carry information related to the composite bit block container, such as the bit stream type, the length of the composite bit block container, the starting sub-block of the composite bit stream container, and the like.

[0138] The composite bit block container related information includes:

[0139] The first indication is used to indicate the bitstream type, and the bitstream type includes a single bitstream or a composite bitstream container. For example, 2 bits 00 are used to indicate the bitstream type, 00 indicates a single bitstream, 11 indicates a composite bitstream container, and the others are reserved;

[0140] The second indication is used to identify the starting sub-block of the composite bitstream container, for example, it can be indicated by 4 bits;

[0141] The third indication is used to identify the length of the composite bitstream container, that is, the number of bit container sub-blocks included in the composite bitstream container, for example, which can be represented by 10 bits.

[0142] In the embodiment of the present application, among the N bit container sub-blocks, any one or more sub-blocks may carry the composite bit block container related information, wherein N≥18, M=16 / Q, and Q may be 8, 16, 32, etc.

[0143] If Q=16, M=1, the 16-bit AuxiliaryBit of a bit container sub-block of the composite bit block container is used to carry information related to the composite bit block container. For example, the 16-bit AuxiliaryBit of the first bit container sub-block of the composite bit block container can be used to carry information related to the composite bit block container.

[0144] If Q=8, M=2, the 16-bit AuxiliaryBit of the two bit container sub-blocks of the composite bit block container is used to carry information related to the composite bit block container. For example, the 16-bit AuxiliaryBit of the first bit container sub-block and the second bit container sub-block of the composite bit block container is used to carry information related to the composite bit block container.

[0145] By analogy, if Q=32, the 16-bit Auxiliary Bit of the 0.5 bit container sub-block of the composite bit block container is used to carry composite bit block container related information.

[0146] In an embodiment of the present application, the composite bit block container may also include a reserved sub-block, an end sub-block, a sub-block for carrying key-related information, and the like.

[0147] Specifically, if N>18, the second bit subblock to the N-17th bit subblock of the composite bit block container are reserved subblocks; the N-16th bit subblock to the N-1th bit subblock of the composite bit block container are used to carry key-related information; the Nth bit subblock of the composite bit block container is the end subblock of the composite bit stream container; or

[0148] If N=18, the N-16th bit sub-block to the N-1th bit sub-block of the composite bit block container are used to carry key-related information; the Nth bit sub-block of the composite bit block container is the end sub-block of the composite bit stream container. That is, in this case, the reserved sub-block may not be included.

[0149] like Figure 5 As shown, taking N>18, Q=16 as an example, it is a schematic diagram of the composite bit stream container structure of an embodiment of the present application, including a container start sub-block, a reserved sub-block, a sub-block for carrying key-related information, and a container end sub-block. N bit sub-blocks (16 LDCP code blocks (3259 bits) are 1 sub-block) are combined to form a composite bit block container as the minimum encryption and decryption unit of PHYSec. Among them, the first bit sub-block carries the above-mentioned composite bit block container related information. In this case, the second bit sub-block to the N-17th bit sub-block of the composite bit block container are reserved sub-blocks; the N-16th bit sub-block to the N-1st bit sub-block of the composite bit block container are used to carry key-related information (such as 256 bits); the Nth bit sub-block of the composite bit block container is the end sub-block of the composite bit stream container.

[0150] For another example, if Q=8, N>36, the 1st bit sub-block and the 2nd bit sub-block of the composite bit block container are the starting sub-blocks; the 3rd to N-34th bit sub-blocks are reserved sub-blocks; the N-33rd to N-2nd bit sub-blocks are used to carry key-related information; the N-1th to Nth bit sub-blocks are the ending sub-blocks of the composite bit stream container.

[0151] According to the above description, the starting sub-block of the composite bit block container occupies 16 bits, the sub-block used to carry key-related information occupies 256 bits, and the ending sub-block occupies 16 bits, which is 288 bits in total. On this basis, a reserved sub-block may also be included. Therefore, the setting of Q and N values ​​can be set based on this.

[0152] In the embodiment of the present application, the data encryption of PHYSec mainly provides confidentiality protection and integrity protection of data to prevent data leakage and tampering. PHYSec encrypts and decrypts data based on a symmetric encryption algorithm. The optional algorithms include Advanced Encryption Standard (AES), SM4, etc. Therefore, the encryption method of the embodiment of the present application can be flexibly selected according to the usage scenario. Then, the key-related information is mainly information related to the encryption algorithm, for example, it may include random numbers, key-related information, etc.

[0153] As shown in Table 1, the description of each sub-block of the composite bit block container is as follows:

[0154] Table 1

[0155]

[0156] In the above embodiments, the composite bit stream solution formed based on the Auxiliary bit of the LDCP code block is compatible with most PHY chips, has good versatility, and can be applied to data center networks and wide area network scenarios, and can also be applied to widely used vehicle-mounted scenarios.

[0157] Step 302: Send the composite bit block container to a receiving end.

[0158] In the embodiment of the present application, the Auxiliary Bit of the LDCP code block is used to carry the composite bit block container related information, and no additional bandwidth overhead is introduced, thereby reducing the encryption and decryption overhead. At the same time, the solution of the embodiment of the present application has the advantage of high bandwidth utilization for bandwidth-sensitive usage scenarios such as data center interconnection and enterprise parks.

[0159] In an embodiment of the present application, for the transmitting end, the data frame can be obtained from the MAC layer via the RS through the PCS of the PHY chip; the data frame can be encoded and scrambled through the PCS layer; the channel additional code is added to the data frame after the encoding and scrambling operations through the PCS layer to obtain a data frame to be processed; the data frame to be processed is LDPC encoded through the PCS layer to obtain the LDCP code block.

[0160] See also Figure 6 , Figure 6 is a flowchart of a decryption method provided in an embodiment of the present application, which is applied to a PHY chip at a receiving end, such as Figure 6 As shown, the following steps are included:

[0161] Step 601: Receive a composite bit block container sent by a sending end.

[0162] The composite bit block container includes N bit container sub-blocks, each bit container sub-block includes Q LDCP code blocks, and each LDCP code block includes 1 bit of Auxiliary Bit; the Q bits of Auxiliary Bit of the M bit container sub-blocks of the composite bit block container are used to carry composite bit block container related information;

[0163] Wherein, N represents the number of bit container sub-blocks included in the composite bit block container, M is an integer and N≥M≥1, and Q is an integer greater than or equal to 1.

[0164] Among them, the structure of the composite bit block container can be as described above.

[0165] Step 602: decrypt the composite bit block container to obtain decrypted information.

[0166] In this step, if the first indication of the composite bit block container related information is used to indicate that the bit stream type is a composite bit stream container, the starting sub-block of the composite bit stream container and the length of the composite bit stream container are determined according to the second indication and the third indication respectively. Then, according to the starting sub-block of the composite bit stream container and the length of the composite bit stream container, the ending sub-block of the composite bit stream container is determined, and key related information is obtained. Finally, the composite bit stream container is decrypted using the key related information to obtain the decrypted information.

[0167] In the process of obtaining the key-related information, starting from the starting sub-block of the composite bitstream container, the content of each sub-block of the composite bitstream container may be read and parsed until the key-related information is obtained.

[0168] In the embodiment of the present application, the Auxiliary Bit of the LDCP code block is used to carry the composite bit block container related information, and no additional bandwidth overhead is introduced, thereby reducing the encryption and decryption overhead. At the same time, the solution of the embodiment of the present application has the advantage of high bandwidth utilization for bandwidth-sensitive usage scenarios such as data center interconnection and enterprise parks.

[0169] Optionally, based on the above embodiment, the decrypted information can also be LDPC decoded by the PCS layer of the PHY chip, and the channel additional code in the information obtained after LDPC decoding can be removed to obtain the information to be processed. The information to be processed is descrambled and decoded by the PCS layer of the PHY chip and then sent to the MAC layer via the RS layer.

[0170] In the embodiment of the present application, PHYSec works in the Ethernet physical layer. Taking 10G-BASET as an example, PHYSec is deployed in the PHY of the chip. Its encryption and decryption architecture and process are as follows: Figure 7 As shown in the figure. The data frame enters the transmitting end PHY chip from the transmitting end MAC layer through the RS, and is converted into a plaintext bit stream after being encoded and scrambled at the PCS layer, and then converted into a ciphertext bit stream through the encryption module. After entering the optical module for transmission, the receiving end PHY chip receives the ciphertext bit stream, and then restores it to a plaintext bit stream through the decryption module and sends it to subsequent processing.

[0171] Specifically, for the transmitting end, the data frame can be obtained from the MAC layer through the PCS of the PHY chip via the RS; the data frame is encoded and scrambled through the PCS layer; the channel additional code is added to the data frame after the encoding and scrambling operations through the PCS layer to obtain the data frame to be processed; the data frame to be processed is LDPC encoded through the PCS layer to obtain the LDCP code block. The LDCP code block is then converted into a ciphertext bit stream through the encryption module. After entering the optical module for transmission, the PHY chip at the receiving end receives the ciphertext bit stream and restores it to a plaintext bit stream through the decryption module. Afterwards, the plaintext bit stream will be LDPC decoded through the PCS layer of the PHY chip, and the channel additional code in the information obtained after LDPC decoding will be removed. The obtained information will be descrambled and decoded through the PCS layer of the PHY chip, and then sent to the MAC layer through the RS layer.

[0172] As shown in Table 2, a comparison of several different encryption schemes is shown. Through the comparison, it can be seen that the encryption scheme of the physical layer of the embodiment of the present application has low encryption overhead, small encryption delay and simple implementation.

[0173] Table 2

[0174]

[0175]

[0176] See also Figure 8 , Figure 8 is a structural diagram of an encryption device provided in an embodiment of the present application, which is applied to a PHY chip at a transmitting end, such as Figure 8 As shown, the encryption device includes:

[0177] A first acquisition module 801 is used to acquire a composite bit block container;

[0178] A first sending module 802, configured to send the composite bit block container to a receiving end;

[0179] The composite bit block container includes N bit container sub-blocks, each bit container sub-block includes Q LDCP code blocks, and each LDCP code block includes 1 bit of Auxiliary Bit; the Q bits of Auxiliary Bit of the M bit container sub-blocks of the composite bit block container are used to carry composite bit block container related information;

[0180] Wherein, N represents the number of bit container sub-blocks included in the composite bit block container, M is an integer and N≥M≥1, and Q is an integer greater than or equal to 1.

[0181] Optionally, the composite bit block container related information includes:

[0182] A first indication is used to indicate a bitstream type, where the bitstream type includes a single bitstream or a composite bitstream container;

[0183] A second indication is used to identify a starting sub-block of a composite bitstream container;

[0184] The third indication is used to identify the length of the composite bitstream container.

[0185] Optionally, the second bit sub-block to the N-17th bit sub-block of the composite bit block container are reserved sub-blocks;

[0186] The N-16th bit sub-block to the N-1th bit sub-block of the composite bit block container are used to carry key related information;

[0187] The Nth bit sub-block of the composite bit block container is the end sub-block of the composite bit stream container.

[0188] Optionally, the device further includes: a first processing module, configured to:

[0189] Obtaining data frames from the MAC layer through the PCS layer of the PHY chip via the RS;

[0190] Performing encoding and scrambling operations on the data frame through the PCS layer;

[0191] Adding a channel additional code to the data frame after the encoding and scrambling operations through the PCS layer to obtain a data frame to be processed;

[0192] The data frame to be processed is LDPC encoded through the PCS layer to obtain the LDCP code block.

[0193] The device provided in the embodiment of the present application can execute the above method embodiment, and its implementation principle and technical effect are similar, so this embodiment will not be repeated here.

[0194] See also Fig. 9 , Fig. 9 is a structural diagram of a decryption device provided in an embodiment of the present application, which is applied to a PHY chip at a receiving end. Fig. 9 As shown, the decryption device includes:

[0195] A first receiving module 901 is used to receive a composite bit block container sent by a sending end;

[0196] A first decryption module 902, configured to decrypt the composite bit block container to obtain decrypted information;

[0197] The composite bit block container includes N bit container sub-blocks, each bit container sub-block includes Q LDCP code blocks, and each LDCP code block includes 1 bit of Auxiliary Bit; the Q bits of Auxiliary Bit of the M bit container sub-blocks of the composite bit block container are used to carry composite bit block container related information;

[0198] Wherein, N represents the number of bit container sub-blocks included in the composite bit block container, M is an integer and N≥M≥1, and Q is an integer greater than or equal to 1.

[0199] Optionally, the composite bit block container related information includes:

[0200] A first indication is used to indicate a bitstream type, where the bitstream type includes a single bitstream or a composite bitstream container;

[0201] A second indication is used to identify a starting sub-block of a composite bitstream container;

[0202] The third indication is used to identify the length of the composite bitstream container.

[0203] Optionally, the second bit sub-block to the N-17th bit sub-block of the composite bit block container are reserved sub-blocks;

[0204] The N-16th bit sub-block to the N-1th bit sub-block of the composite bit block container are used to carry key related information;

[0205] The Nth bit sub-block of the composite bit block container is the end sub-block of the composite bit stream container.

[0206] Optionally, the first decryption module is further used for:

[0207] If the first indication of the composite bit block container related information is used to indicate that the bitstream type is a composite bitstream container, determining the starting sub-block of the composite bitstream container and the length of the composite bitstream container according to the second indication and the third indication respectively;

[0208] Determine the end sub-block of the composite bitstream container according to the start sub-block of the composite bitstream container and the length of the composite bitstream container, and obtain key related information;

[0209] The composite bitstream container is decrypted using the key-related information to obtain the decrypted information.

[0210] Optionally, the device may further include a first processing module, configured to:

[0211] The decrypted information is subjected to LDPC decoding through the PCS layer of the PHY chip, and the channel additional code in the information obtained after LDPC decoding is removed to obtain information to be processed;

[0212] The information to be processed is descrambled and decoded by the PCS layer of the PHY chip and then sent to the MAC layer via the RS layer.

[0213] The device provided in the embodiment of the present application can execute the above method embodiment, and its implementation principle and technical effect are similar, so this embodiment will not be repeated here.

[0214] See also Fig.10 , Fig.10 is a structural diagram of an encryption device provided in an embodiment of the present application, which is applied to a PHY chip at a transmitting end, such as Fig.10 As shown, the encryption device includes: a processor 1001 and a transceiver 1002;

[0215] The processor 1001 is configured to obtain a composite bit block container;

[0216] The transceiver 1002 is used to send the composite bit block container to the receiving end;

[0217] The composite bit block container includes N bit container sub-blocks, each bit container sub-block includes Q LDCP code blocks, and each LDCP code block includes 1 bit of Auxiliary Bit; the Q bits of Auxiliary Bit of the M bit container sub-blocks of the composite bit block container are used to carry composite bit block container related information;

[0218] Wherein, N represents the number of bit container sub-blocks included in the composite bit block container, M is an integer and N≥M≥1, and Q is an integer greater than or equal to 1.

[0219] Optionally, the composite bit block container related information includes:

[0220] A first indication is used to indicate a bitstream type, where the bitstream type includes a single bitstream or a composite bitstream container;

[0221] A second indication is used to identify a starting sub-block of a composite bitstream container;

[0222] The third indication is used to identify the length of the composite bitstream container.

[0223] Optionally, the second bit sub-block to the N-17th bit sub-block of the composite bit block container are reserved sub-blocks;

[0224] The N-16th bit sub-block to the N-1th bit sub-block of the composite bit block container are used to carry key related information;

[0225] The Nth bit sub-block of the composite bit block container is the end sub-block of the composite bit stream container.

[0226] Optionally, the processor 1001 is further configured to:

[0227] Acquire a data frame from a media access control MAC layer via a PCS layer of the PHY chip via an RS layer;

[0228] Performing encoding and scrambling operations on the data frame through the PCS layer;

[0229] Adding a channel additional code to the data frame after the encoding and scrambling operations through the PCS layer to obtain a data frame to be processed;

[0230] The data frame to be processed is LDPC encoded through the PCS layer to obtain the LDCP code block.

[0231] The device provided in the embodiment of the present application can execute the above method embodiment, and its implementation principle and technical effect are similar, so this embodiment will not be repeated here.

[0232] See also Fig.11 , Fig.11is a structural diagram of a decryption device provided in an embodiment of the present application, which is applied to a PHY chip at a receiving end. Fig.11 As shown, the decryption device includes: a processor 1101 and a transceiver 1102;

[0233] The transceiver 1102 is used to receive the composite bit block container sent by the sending end;

[0234] The processor 1101 is configured to decrypt the composite bit block container to obtain decrypted information;

[0235] The composite bit block container includes N bit container sub-blocks, each bit container sub-block includes Q LDCP code blocks, and each LDCP code block includes 1 bit of Auxiliary Bit; the Q bits of Auxiliary Bit of the M bit container sub-blocks of the composite bit block container are used to carry composite bit block container related information;

[0236] Wherein, N represents the number of bit container sub-blocks included in the composite bit block container, M is an integer and N≥M≥1, and Q is an integer greater than or equal to 1.

[0237] Optionally, the composite bit block container related information includes:

[0238] A first indication is used to indicate a bitstream type, where the bitstream type includes a single bitstream or a composite bitstream container;

[0239] A second indication is used to identify a starting sub-block of a composite bitstream container;

[0240] The third indication is used to identify the length of the composite bitstream container.

[0241] Optionally, the second bit sub-block to the N-17th bit sub-block of the composite bit block container are reserved sub-blocks;

[0242] The N-16th bit sub-block to the N-1th bit sub-block of the composite bit block container are used to carry key related information;

[0243] The Nth bit sub-block of the composite bit block container is the end sub-block of the composite bit stream container.

[0244] Optionally, the processor 1101 is further configured to:

[0245] If the first indication of the composite bit block container related information is used to indicate that the bitstream type is a composite bitstream container, determining the starting sub-block of the composite bitstream container and the length of the composite bitstream container according to the second indication and the third indication respectively;

[0246] Determine the end sub-block of the composite bitstream container according to the start sub-block of the composite bitstream container and the length of the composite bitstream container, and obtain key related information;

[0247] The composite bitstream container is decrypted using the key-related information to obtain the decrypted information.

[0248] Optionally, the processor 1101 is further configured to:

[0249] The decrypted information is subjected to LDPC decoding through the PCS layer of the PHY chip, and the channel additional code in the information obtained after LDPC decoding is removed to obtain information to be processed;

[0250] The information to be processed is descrambled and decoded by the PCS layer of the PHY chip and then sent to the MAC layer via the RS layer.

[0251] The device provided in the embodiment of the present application can execute the above method embodiment, and its implementation principle and technical effect are similar, so this embodiment will not be repeated here.

[0252] It should be noted that the division of units in the embodiments of the present application is schematic and is only a logical function division. There may be other division methods in actual implementation. In addition, each functional unit in each embodiment of the present application may be integrated into a processing unit, or each unit may exist physically separately, or two or more units may be integrated into one unit. The above-mentioned integrated unit may be implemented in the form of hardware or in the form of software functional units.

[0253] If the integrated unit is implemented in the form of a software functional unit and sold or used as an independent product, it can be stored in a processor-readable storage medium. Based on this understanding, the technical solution of the present application is essentially or the part that contributes to the prior art or all or part of the technical solution can be embodied in the form of a software product, and the computer software product is stored in a storage medium, including a number of instructions to enable a computer device (which can be a personal computer, server, or network device, etc.) or a processor (processor) to perform all or part of the steps of the method described in each embodiment of the present application. The aforementioned storage medium includes: U disk, mobile hard disk, read-only memory (Read-Only Memory, ROM), random access memory (Random Access Memory, RAM), disk or optical disk and other media that can store program codes.

[0254] An embodiment of the present application provides a communication device, including: a memory, a processor, and a program stored in the memory and executable on the processor; the processor is used to read the program in the memory to implement the steps in the information processing method as described above.

[0255] The embodiment of the present application also provides a readable storage medium, on which a program is stored. When the program is executed by the processor, each process of the above-mentioned information processing method embodiment is implemented, and the same technical effect can be achieved. To avoid repetition, it is not repeated here. Among them, the readable storage medium can be any available medium or data storage device that can be accessed by the processor, including but not limited to magnetic storage (such as floppy disk, hard disk, magnetic tape, magneto-optical disk (MO), etc.), optical storage (such as CD, DVD, BD, HVD, etc.), and semiconductor storage (such as ROM, EPROM, EEPROM, non-volatile memory (NAND FLASH), solid-state drive (SSD)), etc.

[0256] The embodiment of the present application also provides a computer program product, including computer instructions. When the computer instructions are executed by a processor, the various processes of the above-mentioned information processing method embodiment are implemented and the same technical effect can be achieved. To avoid repetition, they are not repeated here.

[0257] It should be noted that, in this article, the terms "include", "comprises" or any other variations thereof are intended to cover non-exclusive inclusion, so that a process, method, article or device including a series of elements includes not only those elements, but also other elements not explicitly listed, or also includes elements inherent to such process, method, article or device. In the absence of further restrictions, an element defined by the sentence "comprises a ..." does not exclude the existence of other identical elements in the process, method, article or device including the element.

[0258] Through the description of the above implementation methods, those skilled in the art can clearly understand that the above-mentioned embodiment methods can be implemented by means of software plus a necessary general hardware platform, and of course by hardware, but in many cases the former is a better implementation method. Based on this understanding, the technical solution of the present application, or the part that contributes to the prior art, can be embodied in the form of a computer software product, which is stored in a storage medium (such as ROM / RAM, disk, CD), including a number of instructions for a terminal (which can be a mobile phone, computer, server, air conditioner, or network equipment, etc.) to execute the methods described in each embodiment of the present application.

[0259] The embodiments of the present application are described above in conjunction with the accompanying drawings, but the present application is not limited to the above-mentioned specific implementation methods. The above-mentioned specific implementation methods are merely illustrative and not restrictive. Under the guidance of the present application, ordinary technicians in this field can also make many forms without departing from the purpose of the present application and the scope of protection of the claims, all of which are within the protection of the present application.

Claims

1. An encryption method, characterized in that: The physical layer PHY chip used for the transmitter includes: Get a composite bit block container; Sending the composite bit block container to a receiving end; The composite bit block container includes N bit container sub-blocks, each bit container sub-block includes Q low-density parity check code LDCP code blocks, and each LDCP code block includes 1-bit channel additional code Auxiliary Bit; the Q-bit Auxiliary Bit of the M bit container sub-blocks of the composite bit block container is used to carry composite bit block container related information; Wherein, N represents the number of bit container sub-blocks included in the composite bit block container, M is an integer and N≥M≥1, and Q is an integer greater than or equal to 1.

2. The method according to claim 1, characterized in that The composite bit block container related information includes: A first indication is used to indicate a bitstream type, where the bitstream type includes a single bitstream or a composite bitstream container; A second indication is used to identify a starting sub-block of a composite bitstream container; The third indication is used to identify the length of the composite bitstream container.

3. The method according to claim 2, characterized in that If N>18, the second bit subblock to the N-17th bit subblock of the composite bit block container are reserved subblocks; the N-16th bit subblock to the N-1th bit subblock of the composite bit block container are used to carry key-related information; the Nth bit subblock of the composite bit block container is the end subblock of the composite bit stream container; or If N=18, the N-16th bit sub-block to the N-1th bit sub-block of the composite bit block container are used to carry key-related information; the Nth bit sub-block of the composite bit block container is the end sub-block of the composite bit stream container.

4. The method according to claim 1, characterized in that: The method further comprises: Obtaining data frames from the media access control MAC layer through the physical coding sublayer PCS of the PHY chip via the reconciliation sublayer RS; Performing encoding and scrambling operations on the data frame through the PCS layer; Adding a channel additional code to the data frame after the encoding and scrambling operations through the PCS layer to obtain a data frame to be processed; The data frame to be processed is LDPC encoded through the PCS layer to obtain the LDCP code block.

5. A decryption method, characterized in that: PHY chips used at the receiving end include: receiving a composite bit block container sent by a sender; Decrypting the composite bit block container to obtain decrypted information; The composite bit block container includes N bit container sub-blocks, each bit container sub-block includes Q LDCP code blocks, and each LDCP code block includes 1 bit of Auxiliary Bit; the Q bits of Auxiliary Bit of the M bit container sub-blocks of the composite bit block container are used to carry composite bit block container related information; Wherein, N represents the number of bit container sub-blocks included in the composite bit block container, M is an integer and N≥M≥1, and Q is an integer greater than or equal to 1.

6. The method according to claim 5, characterized in that The composite bit block container related information includes: A first indication is used to indicate a bitstream type, where the bitstream type includes a single bitstream or a composite bitstream container; A second indication is used to identify a starting sub-block of a composite bitstream container; The third indication is used to identify the length of the composite bitstream container.

7. The method according to claim 6, characterized in that If N>18, the second bit subblock to the N-17th bit subblock of the composite bit block container are reserved subblocks; the N-16th bit subblock to the N-1th bit subblock of the composite bit block container are used to carry key-related information; the Nth bit subblock of the composite bit block container is the end subblock of the composite bit stream container; or If N=18, the N-16th bit sub-block to the N-1th bit sub-block of the composite bit block container are used to carry key-related information; the Nth bit sub-block of the composite bit block container is the end sub-block of the composite bit stream container.

8. The method according to claim 6, characterized in that The decrypting of the composite bit block container to obtain the decrypted information includes: If the first indication of the composite bit block container related information is used to indicate that the bitstream type is a composite bitstream container, determining the starting sub-block of the composite bitstream container and the length of the composite bitstream container according to the second indication and the third indication respectively; Determine the end sub-block of the composite bitstream container according to the start sub-block of the composite bitstream container and the length of the composite bitstream container, and obtain key related information; The composite bitstream container is decrypted using the key-related information to obtain the decrypted information.

9. The method according to claim 5, characterized in that The method further comprises: The decrypted information is subjected to LDPC decoding through the PCS layer of the PHY chip, and the channel additional code in the information obtained after LDPC decoding is removed to obtain information to be processed; The information to be processed is descrambled and decoded by the PCS layer of the PHY chip and then sent to the MAC layer via the RS layer.

10. An encryption device, characterized in that: PHY chips used for the transmitter include: A first acquisition module, used for acquiring a composite bit block container; A first sending module, configured to send the composite bit block container to a receiving end; The composite bit block container includes N bit container sub-blocks, each bit container sub-block includes Q LDCP code blocks, and each LDCP code block includes 1 bit of Auxiliary Bit; the Q bits of Auxiliary Bit of the M bit container sub-blocks of the composite bit block container are used to carry composite bit block container related information; Wherein, N represents the number of bit container sub-blocks included in the composite bit block container, M is an integer and N≥M≥1, and Q is an integer greater than or equal to 1.

11. A decryption device, characterized in that: PHY chips used at the receiving end include: A first receiving module, configured to receive a composite bit block container sent by a sending end; A first decryption module, used for decrypting the composite bit block container to obtain decrypted information; The composite bit block container includes N bit container sub-blocks, each bit container sub-block includes Q LDCP code blocks, and each LDCP code block includes 1 bit of Auxiliary Bit; the Q bits of Auxiliary Bit of the M bit container sub-blocks of the composite bit block container are used to carry composite bit block container related information; Wherein, N represents the number of bit container sub-blocks included in the composite bit block container, M is an integer and N≥M≥1, and Q is an integer greater than or equal to 1.

12. An encryption device, characterized in that: PHY chip used for the transmitter, including: processor and transceiver; The processor is used to obtain a composite bit block container; The transceiver is used to send the composite bit block container to a receiving end; The composite bit block container includes N bit container sub-blocks, each bit container sub-block includes Q LDCP code blocks, and each LDCP code block includes 1 bit of Auxiliary Bit; the Q bits of Auxiliary Bit of the M bit container sub-blocks of the composite bit block container are used to carry composite bit block container related information; Wherein, N represents the number of bit container sub-blocks included in the composite bit block container, M is an integer and N≥M≥1, and Q is an integer greater than or equal to 1.

13. A decryption device, characterized in that: PHY chip used at the receiving end, including: processor and transceiver; The transceiver is used to receive the composite bit block container sent by the sending end; The processor is used to decrypt the composite bit block container to obtain decrypted information; The composite bit block container includes N bit container sub-blocks, each bit container sub-block includes Q LDCP code blocks, and each LDCP code block includes 1 bit of Auxiliary Bit; the Q bits of Auxiliary Bit of the M bit container sub-blocks of the composite bit block container are used to carry composite bit block container related information; Wherein, N represents the number of bit container sub-blocks included in the composite bit block container, M is an integer and N≥M≥1, and Q is an integer greater than or equal to 1.

14. A communication device comprising: A memory, a processor, and a program stored in the memory and executable on the processor; the processor is used to read the program in the memory to implement the steps in the encryption method as described in any one of claims 1 to 4; or to implement the steps in the decryption method as described in any one of claims 5 to 9.

15. A computer-readable storage medium for storing a program, characterized in that: When the program is executed by a processor, the program implements the steps of the encryption method according to any one of claims 1 to 4; or implements the steps of the decryption method according to any one of claims 5 to 9.

16. A computer program product, characterized in that comprising computer instructions, the computer instructions When executed by a processor, the instructions implement the steps of the encryption method according to any one of claims 1 to 4; Or implement the steps in the decryption method as claimed in any one of claims 5 to 9.

Citation Information

Patent Citations

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

    CN111786773A

  • Data transmission method and device, readable storage medium and chip system

    CN115766047A

  • Information encryption method and communication device

    CN118368617A

  • Enhanced physical layer security

    IN202047010892A