High-speed CBC encryption transmission method and system based on FPGA

By adopting a time division multiplexing mechanism and a high-speed CBC encryption transmission method on the FPGA, the problems of data dependence and resource occupation in the CBC encryption mode are solved, and efficient network data transmission and resource utilization are achieved.

CN119011278APending Publication Date: 2024-11-22TOPVISION TECH CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202411248443.2
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-09-06
Publication Date
2024-11-22

AI Technical Summary

Technical Problem

The CBC encryption mode has data dependence in network transmission, resulting in low encryption efficiency, becoming a bottleneck in the network system, and the resource occupancy of multiple encryption core processing methods is high.

Method used

The high-speed CBC encryption transmission method based on FPGA is adopted, and the time division multiplexing mechanism and output buffer are used to ensure that packets are first-in, first-out, and multi-mes are processed in parallel through an encryption core to improve resource utilization and encryption rate.

Benefits of technology

It improves the network data throughput rate in CBC encryption mode, realizes efficient encrypted transmission, reduces resource usage, and supports the parallel processing of multiple packets and the use of different encryption keys.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119011278A_ABST
    Figure CN119011278A_ABST
Patent Text Reader

Abstract

The invention provides a high-speed CBC encryption transmission method and system based on an FPGA, and the method comprises the steps: receiving different messages through an input total cache, and monitoring the states of N input sub-caches; when the state is empty, reading the current message, and storing the current message into the input sub-cache; the input sub-cache splits a current message into a plurality of plaintext data units according to an encryption module input data format; the CBC encryption module performs encryption processing on the plurality of plaintext data units by taking N clocks as cycles to obtain a plurality of ciphertext data units; the message sequence control module records the serial number of the encryption time slot channel corresponding to each message according to the reading sequence of the input total cache; monitoring the state of the corresponding output sub-cache according to the serial number of the encryption time slot channel; when the state of the output sub-cache is non-null, the message sequence control module sends a message output instruction to the output sub-cache; and the output sub-cache processes the ciphertext data unit into a message according to the message output instruction and then outputs the message.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the field of communication technology, and in particular to a high-speed CBC encryption transmission method and system based on FPGA. Background Art

[0002] With the popularization of the Internet and the increase in network applications, people have higher and higher demands for network transmission speed and data security. Among the encryption technologies that ensure data security, the CBC encryption mode has a high encryption strength and is widely used in various communication protocols. However, CBC encryption is data-dependent, complex to implement and inefficient. When the network rate increases, it will become a bottleneck of the network system. Therefore, it is of great significance to improve the efficiency of CBC encryption.

[0003] The data dependency of CBC encryption is mainly reflected in the fact that there is a feedback path from the output end to the input end during the encryption process. The current plaintext needs to wait for the previous plaintext to output the encryption result before encryption can begin, which greatly reduces the encryption rate.

[0004] There is another encryption method that uses multiple encryption cores to complete parallel processing of multiple messages, but this method consumes a lot of resources. Summary of the invention

[0005] In view of this, the purpose of the present invention is to provide a high-speed CBC encryption transmission method and system based on FPGA, which can improve the throughput of network data in CBC encryption mode; use one encryption core and adopt a time division multiplexing mechanism to improve resource utilization; set an output buffer to ensure that the message is first-in first-out.

[0006] In a first aspect, an embodiment of the present invention provides a high-speed CBC encryption transmission method based on FPGA, which is applied to an encryption transmission system, wherein the encryption transmission system includes a CBC encryption module, an input buffer area, an output buffer area, and a message sequence control module, wherein the input buffer area includes an input total buffer and N input sub-buffers, and the output buffer area includes N output sub-buffers; the method includes:

[0007] The input total buffer receives different messages and monitors the status of the N input sub-buffers;

[0008] When the state of the input sub-buffer is empty, reading the current message and storing the current message in the input sub-buffer;

[0009] The input sub-buffer splits the current message into a plurality of plaintext data units according to the encryption module input data format;

[0010] The CBC encryption module encrypts the plurality of plaintext data units respectively with N clocks as a cycle to obtain a plurality of ciphertext data units;

[0011] The message sequence control module records the sequence number of the encryption time slot channel corresponding to each message according to the read order of the input total buffer;

[0012] The message sequence control module monitors the state of the corresponding output sub-buffer according to the sequence number of the encryption time slot channel;

[0013] When the state of the output sub-buffer is not empty, the message sequence control module sends a message output instruction to the output sub-buffer;

[0014] The output sub-buffer processes the ciphertext data unit into the message and then outputs it according to the message output instruction.

[0015] Furthermore, the CBC encryption module performs encryption processing on the plurality of plaintext data units respectively with N clock cycles to obtain a plurality of ciphertext data units, including:

[0016] After performing an XOR operation on the first plaintext data unit and the initial vector, the CBC encryption module performs the encryption steps of the N clocks to obtain a first ciphertext data unit;

[0017] After performing an XOR operation on the second plaintext data unit and the first ciphertext data unit, the CBC encryption module obtains a second ciphertext data unit through the encryption steps of the N clocks, and repeats the above process until the encryption of multiple plaintext data units of the current message is completed.

[0018] Furthermore, the acquisition of the encrypted time slot channel is achieved by:

[0019] Setting N steps of the encryption process, each of the steps lasting one of the clocks;

[0020] Set a plaintext data unit at N moments in the encryption process, with the time interval between each moment being one of the clocks;

[0021] Setting the plaintext data units of the different messages;

[0022] Determine, according to the N steps of the encryption process, the N moments of the encryption process and the plaintext data units of the different messages, a current plaintext data unit processed in a current step at a current moment;

[0023] Determine the start time and end time of the encryption process of the current plaintext data unit according to the current plaintext data unit processed in the current step at the current time;

[0024] The encrypted time slot channel is obtained according to the start time and the end time.

[0025] Furthermore, 1 to N input sub-buffers correspond to 1 to N encrypted time slot channels, and each input sub-buffer stores at most one message.

[0026] Furthermore, 1 to N output sub-buffers correspond to 1 to N encrypted time slot channels, and each output sub-buffer stores a plurality of the messages.

[0027] In a second aspect, an embodiment of the present invention provides a high-speed CBC encryption transmission system based on FPGA, the encryption transmission system includes a CBC encryption module, an input buffer area, an output buffer area and a message sequence control module, the input buffer area includes an input total buffer and N input sub-buffers, and the output buffer area includes N output sub-buffers;

[0028] The input total buffer is used to receive different messages and monitor the status of the N input sub-buffers; when the status of the input sub-buffer is empty, read the current message and store the current message in the input sub-buffer;

[0029] The input sub-buffer is used to split the current message into multiple plaintext data units according to the encryption module input data format;

[0030] The CBC encryption module is used to encrypt the plurality of plaintext data units respectively with N clocks as a cycle to obtain a plurality of ciphertext data units;

[0031] The message sequence control module is used to record the sequence number of the encryption time slot channel corresponding to each message according to the read sequence of the input total buffer; monitor the state of the corresponding output sub-buffer according to the sequence number of the encryption time slot channel; when the state of the output sub-buffer is not empty, the message sequence control module sends a message output instruction to the output sub-buffer;

[0032] The output sub-buffer is used to process the ciphertext data unit into the message and then output it according to the message output instruction.

[0033] Furthermore, the CBC encryption module is specifically used for:

[0034] After performing an XOR operation on the first plaintext data unit and the initial vector, the CBC encryption module performs the encryption steps of the N clocks to obtain a first ciphertext data unit;

[0035] After performing an XOR operation on the second plaintext data unit and the first ciphertext data unit, the CBC encryption module obtains a second ciphertext data unit through the encryption steps of the N clocks, and repeats the above process until the encryption of multiple plaintext data units of the current message is completed.

[0036] Furthermore, the acquisition of the encrypted time slot channel is achieved by:

[0037] Setting N steps of the encryption process, each of the steps lasting one of the clocks;

[0038] Set a plaintext data unit at N moments in the encryption process, with the time interval between each moment being one of the clocks;

[0039] Setting the plaintext data units of the different messages;

[0040] Determine, according to the N steps of the encryption process, the N moments of the encryption process and the plaintext data units of the different messages, a current plaintext data unit processed in a current step at a current moment;

[0041] Determine the start time and end time of the encryption process of the current plaintext data unit according to the current plaintext data unit processed in the current step at the current time;

[0042] The encrypted time slot channel is obtained according to the start time and the end time.

[0043] In a third aspect, an embodiment of the present invention provides an electronic device, including a memory and a processor, wherein the memory stores a computer program executable on the processor, and the processor implements the method described above when executing the computer program.

[0044] In a fourth aspect, an embodiment of the present invention provides a computer-readable medium having a non-volatile program code executable by a processor, wherein the program code enables the processor to execute the method as described above.

[0045] The embodiment of the present invention provides a high-speed CBC encryption transmission method and system based on FPGA, which is applied to an encryption transmission system. The encryption transmission system includes a CBC encryption module, an input buffer area, an output buffer area and a message sequence control module. The input buffer area includes an input total buffer and N input sub-buffers, and the output buffer area includes N output sub-buffers; including: the input total buffer receives different messages and monitors the status of the N input sub-buffers; when the status of the input sub-buffer is empty, reads the current message and stores the current message in the input sub-buffer; the input sub-buffer splits the current message into multiple plaintext data units according to the encryption module input data format; the CBC encryption module takes N clocks as a cycle, Encrypt multiple plaintext data units respectively to obtain multiple ciphertext data units; the message sequence control module records the serial number of the encryption time slot channel corresponding to each message according to the read-out order of the input total cache; the message sequence control module monitors the state of the corresponding output sub-cache according to the serial number of the encryption time slot channel; when the state of the output sub-cache is not empty, the message sequence control module sends a message output instruction to the output sub-cache; the output sub-cache processes the ciphertext data unit into a message and then outputs it according to the message output instruction; the throughput rate of network data in CBC encryption mode can be improved; one encryption core is used, and a time division multiplexing mechanism is adopted to improve resource utilization; an output buffer is set to ensure that the messages are first-in-first-out.

[0046] Other features and advantages of the present invention will be described in the following description, and partly become apparent from the description, or understood by practicing the present invention. The purpose and other advantages of the present invention are realized and obtained by the structures particularly pointed out in the description, claims and drawings.

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

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

[0049] Figure 1 A flow chart of a high-speed CBC encryption transmission method based on FPGA provided in Embodiment 1 of the present invention;

[0050] Figure 2 A schematic diagram of the encryption process of the CBC encryption module provided in the first embodiment of the present invention;

[0051] Figure 3 A schematic diagram of a high-speed CBC encryption transmission system based on FPGA provided in Embodiment 2 of the present invention. DETAILED DESCRIPTION

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

[0053] To facilitate understanding of this embodiment, the embodiment of the present invention is described in detail below.

[0054] Embodiment 1:

[0055] Figure 1 This is a flow chart of a high-speed CBC encryption transmission method based on FPGA provided in Example 1 of the present invention.

[0056] Reference Figure 1 , applied to an encrypted transmission system, the encrypted transmission system includes a CBC encryption module, an input buffer area, an output buffer area and a message sequence control module, the input buffer area includes an input total buffer and N input sub-buffers, and the output buffer area includes N output sub-buffers; the method includes the following steps:

[0057] Step S101, the input main buffer receives different messages and monitors the status of N input sub-buffers;

[0058] Step S102, when the state of the input sub-buffer is empty, read the current message and store the current message in the input sub-buffer;

[0059] Step S103, the input sub-buffer splits the current message into multiple plaintext data units according to the encryption module input data format;

[0060] Step S104, the CBC encryption module encrypts the plurality of plaintext data units respectively with N clock cycles to obtain a plurality of ciphertext data units;

[0061] Step S105, the message sequence control module records the sequence number of the encryption time slot channel corresponding to each message according to the read sequence of the input total buffer;

[0062] Step S106, the message sequence control module monitors the state of the corresponding output sub-buffer according to the sequence number of the encryption time slot channel;

[0063] Step S107, when the state of the output sub-buffer is not empty, the message sequence control module sends a message output instruction to the output sub-buffer;

[0064] Step S108: the output sub-buffer processes the ciphertext data unit into a message according to the message output instruction and then outputs the message.

[0065] Specifically, FPGA (Field Programmable Gate Array) is widely used in the communications industry due to its technical advantages such as flexible reconfiguration, rapid prototyping and development, and customization. Communication systems designed based on FPGA need to consider the balance between performance and resources, while ensuring high performance, reducing resource utilization and reducing costs.

[0066] This application uses one encryption resource and adopts a time-division multiplexing multi-channel mechanism to process multiple messages in parallel for CBC (Cipher BlockChaining) mode encryption, which is applicable to but not limited to CBC mode encryption of DES and AES algorithms. Set up a message sequence scheduling module, output buffer, and control the first-in-first-out of messages.

[0067] The present invention can achieve the full bandwidth encryption rate of CBC mode, ensure the message order, and support the use of different encryption keys for each message. The upper limit of the rate depends on the data bit width and processing clock of the encryption process. When the input data bit width is 128bit and the clock is 200MHz, an encryption rate of 25.6Gbps can be achieved.

[0068] The input buffer area is responsible for buffering and scheduling messages, and includes 1 input main buffer and N input sub-buffers. The main buffer receives data, monitors the status of the N input sub-buffers, and reads a message and stores it in the input sub-buffer when the input sub-buffer status is empty.

[0069] 1 to N input sub-buffers correspond to 1 to N encryption time slot channels, and each input sub-buffer can store at most one message. The input sub-buffer is responsible for processing the current message into multiple plaintext data units and outputting them to the CBC encryption module with N clock cycles for CBC encryption.

[0070] The output buffer area includes N output sub-buffers, each of which is responsible for processing the ciphertext data unit into a specific output message and storing it, and outputting the message according to the instructions of the sequence control module.

[0071] 1 to N output sub-buffers correspond to 1 to N encrypted time slot channels, and each output sub-buffer stores multiple messages.

[0072] The message sequence control module records the encrypted time slot channel sequence number used by the message in the order read from the input total buffer, monitors the status of the corresponding time slot output sub-buffer according to the storage order of the time slot channel sequence number, and sends a message output instruction to the output sub-buffer if the corresponding output sub-buffer is not empty, thereby finally realizing the first-in-first-out sequence control of the message.

[0073] In addition, by selecting to use several time slots among the N time slots, the effect of sacrificing the maximum rate and reducing the cache resources can be achieved.

[0074] Further, step S104 includes the following steps:

[0075] Step S201, after performing an XOR operation on the first plaintext data unit and the initial vector, the CBC encryption module performs an encryption step of N clocks to obtain a first ciphertext data unit;

[0076] Step S202, after performing an XOR operation on the second plaintext data unit and the first ciphertext data unit, the CBC encryption module performs N clock encryption steps to obtain a second ciphertext data unit, and repeats the above process until the encryption of multiple plaintext data units of the current message is completed.

[0077] Here, the CBC encryption module performs time slot control based on the core encryption function.

[0078] Furthermore, the acquisition of encrypted time slot channels is achieved in the following ways:

[0079] Step S301, setting N steps of the encryption process, each step lasting one clock;

[0080] Step S302, setting N moments in the encryption process of a plaintext data unit, and the time interval between each moment is one of the clocks;

[0081] Step S303, setting plaintext data units of different messages;

[0082] Step S304, determining the current plaintext data unit processed in the current step at the current moment according to the N steps of the encryption process, the N moments of the encryption process and the plaintext data units of different messages;

[0083] Step S305, determining the start time and end time of the encryption process of the current plaintext data unit according to the current plaintext data unit processed in the current step at the current moment;

[0084] Step S306, obtaining an encrypted time slot channel according to the start time and the end time.

[0085] Specifically, the N steps of encryption are set to P 1 ,P2 …P N , each step lasts one clock.

[0086] The time of encryption process of a plaintext data unit is set as T 1 ,T 2 …T N , the time interval is 1 clock, T 1 For the plaintext data unit in P 1 The moment of step processing; at T N At this moment, only P N Step is valid, other steps are idle.

[0087] In order to make full use of the encryptor resources and ensure that the N encryption steps at each moment are effective, the plaintext data units from different transmission messages are processed separately; finally, one encryptor (CBC encryption module) is used to process N transmission messages at the same time, and each step is performing data processing at each moment.

[0088] Reference Figure 2 , let D 1 ,D 2 …D N are plaintext data units from different transmission messages. 1 When P 1 Processing D 1 Data, P 2 Processing D N Data, P 3 Processing D N-1 Data, and so on; at time T 2 When P 1 Processing D 2 Data, P 2 Processing D 1 Data, P 3 Processing D N Data, P 4 Processing D N-1 Data, and so on; when T N At time P 1 Processing D N Data, P 2 Processing D N-1 Data, and so on, P N Processing D 1 data.

[0089] D 1 The data encryption process starts at T 1 , ending at T N , recorded as encrypted time slot channel 1; D 2 The data encryption process starts at T 2 , ending at T1 , recorded as encrypted time slot channel 2; D N The data encryption process starts at T N , ending at T N-1 , denoted as the encrypted time slot channel N.

[0090] This application can improve the network data throughput rate in CBC encryption mode (data unit 128bit bit width, 200MHz processing clock, can achieve 25.6Gbps encryption rate); use one encryption core and adopt time division multiplexing mechanism to improve resource utilization; set output buffer to ensure data message first in first out.

[0091] Embodiment 2:

[0092] Figure 3 A schematic diagram of a high-speed CBC encryption transmission system based on FPGA provided in Embodiment 2 of the present invention.

[0093] Reference Figure 3 , the encrypted transmission system includes a CBC encryption module, an input buffer area, an output buffer area and a message sequence control module, the input buffer area includes an input total buffer and N input sub-buffers, and the output buffer area includes N output sub-buffers;

[0094] The input main buffer is used to receive different messages and monitor the status of N input sub-buffers; when the status of the input sub-buffer is empty, the current message is read and stored in the input sub-buffer;

[0095] An input sub-buffer, used to split the current message into multiple plaintext data units according to the encryption module input data format;

[0096] The CBC encryption module is used to encrypt multiple plaintext data units respectively with N clock cycles to obtain multiple ciphertext data units;

[0097] The message sequence control module is used to record the sequence number of the encryption time slot channel corresponding to each message according to the read sequence of the input total buffer; monitor the state of the corresponding output sub-buffer according to the sequence number of the encryption time slot channel; when the state of the output sub-buffer is not empty, the message sequence control module sends a message output instruction to the output sub-buffer;

[0098] The output sub-buffer is used to process the ciphertext data unit into a message and then output it according to the message output instruction.

[0099] Furthermore, the CBC encryption module is specifically used for:

[0100] After performing an XOR operation on the first plaintext data unit and the initial vector, the CBC encryption module performs an encryption step of N clocks to obtain a first ciphertext data unit;

[0101] After performing an XOR operation on the second plaintext data unit and the first ciphertext data unit, the CBC encryption module performs N clock encryption steps to obtain a second ciphertext data unit, and repeats the above process until the encryption of multiple plaintext data units of the current message is completed.

[0102] Furthermore, the acquisition of encrypted time slot channels is achieved in the following ways:

[0103] Set the encryption process to N steps, each step lasting one clock;

[0104] Set a plaintext data unit to N moments in the encryption process, with the time interval between each moment being one clock;

[0105] Set the plaintext data units of different messages;

[0106] Determine a current plaintext data unit processed in a current step at a current moment according to the N steps of the encryption process, the N moments of the encryption process and the plaintext data units of different messages;

[0107] Determine the start time and end time of the encryption process of the current plaintext data unit according to the current plaintext data unit processed in the current step at the current time;

[0108] According to the start time and the end time, the encrypted time slot channel is obtained.

[0109] An embodiment of the present invention also provides an electronic device, including a memory, a processor, and a computer program stored in the memory and executable on the processor. When the processor executes the computer program, the steps of the FPGA-based high-speed CBC encryption transmission method provided in the above embodiment are implemented.

[0110] An embodiment of the present invention also provides a computer-readable medium having a non-volatile program code executable by a processor, wherein a computer program is stored on the computer-readable medium, and when the computer program is executed by the processor, the steps of the FPGA-based high-speed CBC encryption transmission method of the above embodiment are executed.

[0111] The computer program product provided in the embodiment of the present invention includes a computer-readable storage medium storing program code. The instructions included in the program code can be used to execute the method described in the previous method embodiment. The specific implementation can be found in the method embodiment and will not be repeated here.

[0112] Those skilled in the art can clearly understand that, for the convenience and brevity of description, the specific working process of the system and device described above can refer to the corresponding process in the aforementioned method embodiment, and will not be repeated here.

[0113] In addition, in the description of the embodiments of the present invention, unless otherwise clearly specified and limited, the terms "installed", "connected", and "connected" should be understood in a broad sense, for example, it can be a fixed connection, a detachable connection, or an integral connection; it can be a mechanical connection or an electrical connection; it can be a direct connection or an indirect connection through an intermediate medium, or it can be the internal communication of two components. For ordinary technicians in this field, the specific meanings of the above terms in the present invention can be understood according to specific circumstances.

[0114] If the functions are implemented in the form of software functional units and sold or used as independent products, they can be stored in a computer-readable storage medium. Based on this understanding, the technical solution of the present invention, or the part that contributes to the prior art or the part of the technical solution, can be embodied in the form of a software product. The computer software product is stored in a storage medium, including several instructions for a computer device (which can be a personal computer, a server, or a network device, etc.) to perform all or part of the steps of the methods described in each embodiment of the present invention. The aforementioned storage medium includes: U disk, mobile hard disk, read-only memory (ROM, Read-Only Memory), random access memory (RAM, Random Access Memory), disk or optical disk, etc., which can store program codes.

[0115] In the description of the present invention, it should be noted that the terms "center", "upper", "lower", "left", "right", "vertical", "horizontal", "inner", "outer", etc., indicating the orientation or positional relationship, are based on the orientation or positional relationship shown in the drawings, and are only for the convenience of describing the present invention and simplifying the description, rather than indicating or implying that the device or element referred to must have a specific orientation, be constructed and operated in a specific orientation, and therefore cannot be understood as limiting the present invention. In addition, the terms "first", "second", and "third" are used for descriptive purposes only, and cannot be understood as indicating or implying relative importance.

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

Claims

1. A high-speed CBC encryption transmission method based on FPGA, characterized in that: Applied to an encrypted transmission system, the encrypted transmission system includes a CBC encryption module, an input buffer area, an output buffer area and a message sequence control module, the input buffer area includes an input total buffer and N input sub-buffers, the output buffer area includes N output sub-buffers; the method includes: The input total buffer receives different messages and monitors the status of the N input sub-buffers; When the state of the input sub-buffer is empty, reading the current message and storing the current message in the input sub-buffer; The input sub-buffer splits the current message into a plurality of plaintext data units according to the encryption module input data format; The CBC encryption module encrypts the plurality of plaintext data units respectively with N clocks as a cycle to obtain a plurality of ciphertext data units; The message sequence control module records the sequence number of the encryption time slot channel corresponding to each message according to the read order of the input total buffer; The message sequence control module monitors the state of the corresponding output sub-buffer according to the sequence number of the encryption time slot channel; When the state of the output sub-buffer is not empty, the message sequence control module sends a message output instruction to the output sub-buffer; The output sub-buffer processes the ciphertext data unit into the message and then outputs it according to the message output instruction.

2. The high-speed CBC encryption transmission method based on FPGA according to claim 1 is characterized in that: The CBC encryption module encrypts the plurality of plaintext data units respectively with N clock cycles to obtain a plurality of ciphertext data units, including: After performing an XOR operation on the first plaintext data unit and the initial vector, the CBC encryption module performs the encryption steps of the N clocks to obtain a first ciphertext data unit; After performing an XOR operation on the second plaintext data unit and the first ciphertext data unit, the CBC encryption module obtains a second ciphertext data unit through the encryption steps of the N clocks, and repeats the above process until the encryption of multiple plaintext data units of the current message is completed.

3. The high-speed CBC encryption transmission method based on FPGA according to claim 1 is characterized in that: The acquisition of the encrypted time slot channel is achieved in the following manner: Setting N steps of the encryption process, each of the steps lasting one of the clocks; Set a plaintext data unit at N moments in the encryption process, with the time interval between each moment being one of the clocks; Setting the plaintext data units of the different messages; Determine, according to the N steps of the encryption process, the N moments of the encryption process and the plaintext data units of the different messages, a current plaintext data unit processed in a current step at a current moment; Determine the start time and end time of the encryption process of the current plaintext data unit according to the current plaintext data unit processed in the current step at the current time; The encrypted time slot channel is obtained according to the start time and the end time.

4. The high-speed CBC encryption transmission method based on FPGA according to claim 1 is characterized in that: 1 to N input sub-buffers correspond to 1 to N encrypted time slot channels, and each input sub-buffer stores at most one message.

5. The high-speed CBC encryption transmission method based on FPGA according to claim 1, characterized in that: 1 to N output sub-buffers correspond to 1 to N encrypted time slot channels, and each output sub-buffer stores a plurality of messages.

6. A high-speed CBC encryption transmission system based on FPGA, characterized in that: The encrypted transmission system includes a CBC encryption module, an input buffer area, an output buffer area and a message sequence control module, wherein the input buffer area includes an input total buffer and N input sub-buffers, and the output buffer area includes N output sub-buffers; The input total buffer is used to receive different messages and monitor the status of the N input sub-buffers; when the status of the input sub-buffer is empty, read the current message and store the current message in the input sub-buffer; The input sub-buffer is used to split the current message into multiple plaintext data units according to the encryption module input data format; The CBC encryption module is used to encrypt the plurality of plaintext data units respectively with N clock cycles to obtain a plurality of ciphertext data units; The message sequence control module is used to record the sequence number of the encryption time slot channel corresponding to each message according to the read sequence of the input total buffer; monitor the state of the corresponding output sub-buffer according to the sequence number of the encryption time slot channel; when the state of the output sub-buffer is not empty, the message sequence control module sends a message output instruction to the output sub-buffer; The output sub-buffer is used to process the ciphertext data unit into the message and then output it according to the message output instruction.

7. The FPGA-based high-speed CBC encryption transmission system according to claim 6, characterized in that: The CBC encryption module is specifically used for: After performing an XOR operation on the first plaintext data unit and the initial vector, the CBC encryption module performs the encryption steps of the N clocks to obtain a first ciphertext data unit; After performing an XOR operation on the second plaintext data unit and the first ciphertext data unit, the CBC encryption module obtains a second ciphertext data unit through the encryption steps of the N clocks, and repeats the above process until the encryption of multiple plaintext data units of the current message is completed.

8. The FPGA-based high-speed CBC encryption transmission system according to claim 6 is characterized in that: The acquisition of the encrypted time slot channel is achieved in the following manner: Setting N steps of the encryption process, each of the steps lasting one of the clocks; Set a plaintext data unit at N moments in the encryption process, with the time interval between each moment being one of the clocks; Setting the plaintext data units of the different messages; Determine, according to the N steps of the encryption process, the N moments of the encryption process and the plaintext data units of the different messages, a current plaintext data unit processed in a current step at a current moment; Determine the start time and end time of the encryption process of the current plaintext data unit according to the current plaintext data unit processed in the current step at the current time; The encrypted time slot channel is obtained according to the start time and the end time.

9. An electronic device comprising a memory and a processor, wherein the memory stores a computer program that can be run on the processor, wherein: When the processor executes the computer program, the method according to any one of claims 1 to 5 is implemented.

10. A computer readable medium having a non-volatile program code executable by a processor, characterized in that: The program code enables the processor to execute the method according to any one of claims 1 to 5.