A multi-interface data processing method and system based on FPGA

By constructing the usage state moment and the optimal interface moment, dynamically adjusting the key parameters, and using the target key to encrypt data, the security shortcomings of the FPGA multi-interface data processing method are solved, and the efficiency and security of data transmission are improved.

CN118555142BActive Publication Date: 2024-10-18CHENGDU LINGYA TECH CO LTD
View PDF 2 Cites 0 Cited by

Patent Information

Application Number
CN202411021841.0
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2024-07-29
Publication Date
2024-10-18
Estimated Expiration
2044-07-29

AI Technical Summary

Technical Problem

There is room for improvement in security of existing FPGA multi-interface data processing methods, especially the problem of how to process data efficiently and safely in a multi-interface environment.

Method used

By obtaining the interface parameters of each interface, the usage state moment and the optimal interface moment are constructed, the first key parameter sequence and the second key parameter sequence are determined, and based on the priority of the access device and the interface priority difference and standard deviation Dynamically adjust the key parameters, build a key conversion function to convert the original key, and finally use the target key to encrypt the task data of the access device.

Benefits of technology

It improves the efficiency of interface usage and the security of data transmission, enhances the security during data transmission, and ensures reliable encryption of data.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118555142B_ABST
    Figure CN118555142B_ABST
Patent Text Reader

Abstract

The present invention discloses a multi-interface data processing method and system based on FPGA, which relates to the field of interface technology. The method first obtains detailed parameters of each interface, including interface type, usage status and priority determined based on historical usage data. Then, a usage status matrix and an optimal interface matrix are constructed according to these parameters, and a key parameter sequence is determined therefrom. By obtaining the priority of an access device and combining the priority of a corresponding interface, a first key parameter and a second key parameter for a key conversion function are determined. The method also involves dynamically adjusting the selection of key parameters and the construction of a key conversion function according to the difference and standard deviation between the access device priority and the interface priority. Finally, the generated target key is used to encrypt the task data transmitted by the access device, thereby ensuring the security of data transmission. This method not only improves the intelligence and efficiency of interface use, but also greatly enhances the security during data transmission.
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 multi-interface data processing method and system based on FPGA. Background Art

[0002] With the rapid development of science and technology, the demand for data processing is growing. Especially in a multi-interface environment, how to process data efficiently and securely has become an urgent problem to be solved. FPGA (Field-Programmable Gate Array) technology, due to its unique programmability and parallel processing capabilities, has shown great application potential in this field. However, the existing FPGA multi-interface data processing methods still have room for improvement in terms of security. Summary of the invention

[0003] In view of the defects in the prior art, the present invention provides a multi-interface data processing method and system based on FPGA.

[0004] The present invention provides a multi-interface data processing method based on FPGA, the method comprising:

[0005] Obtaining interface parameters of each interface, wherein the interface parameters include interface type, usage status and priority;

[0006] Constructing a usage state moment and an optimal interface moment according to the interface parameters, and determining a first key parameter sequence and a second key parameter sequence according to the usage state moment and the optimal interface moment respectively;

[0007] Obtaining the priority of the access device, determining the first key parameter and the second key parameter from the first key parameter sequence and the second key parameter sequence respectively according to the priority of the access device and the priority of the corresponding interface, and constructing a key conversion function according to the first key parameter and the second key parameter to convert the original key to obtain a target key;

[0008] The target key is used to encrypt the task data transmitted by the access device.

[0009] Preferably, the column of the usage status matrix represents the usage status of a type of interface, and the row of the usage status matrix represents the interface type. If the interface is usable, the corresponding position is 1, and if it is not usable, the corresponding position is 0.

[0010] Preferably, the column of the optimal interface matrix represents the priority status of a type of interface. If the priority of the interface is the highest among the same type, the corresponding position is 1, otherwise, the corresponding position is 0.

[0011] Preferably, determining the first key parameter and the second key parameter from the first key parameter sequence and the second key parameter sequence respectively according to the priority of the access device and the priority of the corresponding interface, and constructing a key conversion function according to the first key parameter and the second key parameter to convert the original key to obtain the target key, including:

[0012] Calculate the difference and standard deviation between the priority of the same type of interface and the priority of the corresponding access device;

[0013] Sequentially shifting the first key parameter sequence and the second key parameter sequence according to the standard deviation, and determining the first key parameter and the second key parameter according to the shifted sequence;

[0014] The positions of the first key parameter and the second key parameter in the key conversion function are determined according to the difference.

[0015] Preferably, the first key parameter sequence and the second key parameter sequence are sequentially offset according to the standard deviation, comprising:

[0016] When the standard deviation is greater than or equal to T unit thresholds, shifting the first key parameter sequence and the second key parameter sequence rightward by T positions respectively;

[0017] When the standard deviation is less than T unit thresholds, the first key parameter sequence and the second key parameter sequence are respectively shifted to the left by T positions.

[0018] Preferably, each interface is configured with an accessible device set, each accessible device set is configured with a device key, the accessible devices are arranged in ascending order according to their device levels to obtain an interface key set, and the original key is determined based on the interface key set and the difference.

[0019] On the other hand, an embodiment of the present invention provides a multi-interface data processing system based on FPGA, the system comprising:

[0020] An acquisition module, used to acquire interface parameters of each interface, wherein the interface parameters include interface type, usage status and priority;

[0021] a parameter determination module, configured to construct a usage state matrix and an optimal interface matrix according to the interface parameters, and determine a first key parameter sequence and a second key parameter sequence according to the usage state matrix and the optimal interface matrix respectively;

[0022] a key determination module, configured to obtain a priority of an access device, determine a first key parameter and a second key parameter from the first key parameter sequence and the second key parameter sequence respectively according to the priority of the access device and the priority of the corresponding interface, and construct a key conversion function according to the first key parameter and the second key parameter to convert an original key to obtain a target key;

[0023] The encryption transmission module is used to encrypt the task data transmitted by the access device using the target key.

[0024] The beneficial effects of the present invention are embodied in: the present invention provides a multi-interface data processing method based on FPGA, which aims to improve the efficiency of interface use and the security of data transmission. The method first obtains the detailed parameters of each interface, including the interface type, usage status and priority determined based on historical usage data. Then, the usage state matrix and the optimal interface matrix are constructed according to these parameters, and the key parameter sequence is determined therefrom. By obtaining the priority of the access device and combining the priority of the corresponding interface, the first key parameter and the second key parameter for the key conversion function are determined. The method also involves dynamically adjusting the selection of key parameters and the construction of the key conversion function according to the difference and standard deviation between the access device priority and the interface priority. Finally, the generated target key is used to encrypt the task data transmitted by the access device, thereby ensuring the security of data transmission. This method not only improves the intelligence and efficiency of interface use, but also greatly enhances the security during data transmission. BRIEF DESCRIPTION OF THE DRAWINGS

[0025] In order to more clearly illustrate the specific embodiments of the present invention or the technical solutions in the prior art, the following is a brief introduction to the drawings required for the specific embodiments or the description of the prior art. In all the drawings, similar elements or parts are generally identified by similar reference numerals. In the drawings, the elements or parts are not necessarily drawn according to the actual scale.

[0026] Figure 1 A flowchart of a multi-interface data processing method based on FPGA provided by an embodiment of the present invention;

[0027] Figure 2 A schematic diagram of a structure of a use state moment provided by an embodiment of the present invention;

[0028] Figure 3 A system block diagram of a multi-interface data processing system based on FPGA provided by an embodiment of the present invention. DETAILED DESCRIPTION

[0029] The following embodiments of the technical solution of the present invention are described in detail in conjunction with the accompanying drawings. The following embodiments are only used to more clearly illustrate the technical solution of the present invention, and are therefore only used as examples, and cannot be used to limit the protection scope of the present invention.

[0030] It should be noted that, unless otherwise specified, the technical terms or scientific terms used in this application should have the common meanings understood by those skilled in the art to which the invention belongs.

[0031] like Figure 1 As shown, an embodiment of the present invention provides a multi-interface data processing method based on FPGA, the method comprising:

[0032] Step 1: Obtain interface parameters of each interface, wherein the interface parameters include interface type, usage status, and priority.

[0033] Specifically, the interface types include DB9 interface, USB interface, and RJ45 interface.

[0034] Among them, priority is the priority of the available interface, which is determined based on its historical usage data. The historical usage data shown includes parameters such as response time, response interval, and usage time. These parameters are weighted to determine the priority of each interface. The higher the priority, the more priority the interface will be used, thereby improving the interface's working efficiency and usage time.

[0035] The present invention can handle multiple interface types, such as DB9 interface, USB interface, RJ45 interface, etc., thereby providing a wide range of hardware compatibility and meeting the needs of connecting different devices. By dynamically determining the priority of the interface through historical usage data, the efficiency of interface usage can be optimized to ensure that high-response and high-efficiency interfaces are used first.

[0036] Step 2: construct a usage state matrix and an optimal interface matrix according to the interface parameters, and determine a first key parameter sequence and a second key parameter sequence according to the usage state matrix and the optimal interface matrix.

[0037] In the embodiment of the present invention, the columns of the usage state matrix represent the usage state of a type of interface, and the rows of the usage state matrix represent the interface type. If the interface is usable, the corresponding position is 1, and if it is not usable, the corresponding position is 0. The columns of the optimal interface matrix represent the priority state of a type of interface. If the priority of the interface is the highest among the same type, the corresponding position is 1, and if not, the corresponding position is 0.

[0038] For example, Figure 2 As shown, Figure 2 A usage state matrix provided in this embodiment, according to which a first key parameter sequence can be determined .

[0039] Step 3, obtain the priority of the access device, determine the first key parameter and the second key parameter from the first key parameter sequence and the second key parameter sequence respectively according to the priority of the access device and the priority of the corresponding interface, and construct a key conversion function according to the first key parameter and the second key parameter to convert the original key to obtain the target key.

[0040] In an embodiment of the present invention, a first key parameter and a second key parameter are respectively determined from the first key parameter sequence and the second key parameter sequence according to the priority of the access device and the priority of the corresponding interface, and a key conversion function is constructed according to the first key parameter and the second key parameter to convert the original key to obtain a target key, including: calculating the difference and standard deviation between the priority of the same type of interface and the priority of the corresponding access device; shifting the first key parameter sequence and the second key parameter sequence in sequence according to the standard deviation, and determining the first key parameter and the second key parameter according to the shifted sequence; and determining the positions of the first key parameter and the second key parameter in the key conversion function according to the difference.

[0041] The key parameters are determined by constructing the usage state moment and the optimal interface moment, and then the key conversion function is constructed. This method increases the complexity and security of the key and makes data encryption more reliable.

[0042] In the embodiment of the present invention, sequentially shifting the first key parameter sequence and the second key parameter sequence according to the standard deviation includes: when the standard deviation is greater than or equal to T unit thresholds, shifting the first key parameter sequence and the second key parameter sequence to the right by T positions respectively; when the standard deviation is less than T unit thresholds, shifting the first key parameter sequence and the second key parameter sequence to the left by T positions respectively.

[0043] For example, if the standard deviation is less than 2 unit thresholds, the first key parameter sequence is shifted to the left by 2 positions, that is, the first key parameter sequence after the shift is If the interface of the access device is a first-class interface and its first key parameter is 10.

[0044] The embodiment of the present invention shifts the key parameter sequence according to the standard deviation, thereby increasing the randomness and unpredictability of key generation and further improving security.

[0045] The key conversion function provided in the embodiment of the present invention includes two key parameters, for example, y=kx+b, etc., wherein k and b are key parameters, and which one is the first key parameter and which one is the second key parameter needs to be determined based on the difference. Specifically, if the difference is greater than zero, k is the first key parameter, and if the difference is less than zero, k is the second key parameter.

[0046] In an embodiment of the present invention, each interface is configured with an accessible device set, each accessible device set is configured with a device key, and the interface key set is obtained by arranging the accessible devices in ascending order according to their device levels, and the original key is determined based on the interface key set and the difference.

[0047] Specifically, the number of subkeys is determined according to the difference. If the difference is greater than zero, the larger the difference is, the more subkeys there are. Multiple device keys that are consistent with the difference are selected to the right of the reference key as the original key. If the difference is less than zero, the absolute value of the difference is moved to the right of the reference key according to the difference, and the device key corresponding to the position is used as the original key.

[0048] The original key generation method not only relies on the static device key set, but also combines dynamic difference calculation. This hybrid method increases the unpredictability of key generation, thereby improving the security of the entire system. Even if an attacker can obtain part of the device key, it is difficult to accurately predict or reproduce the generation process of the original key. By sorting the device keys and quickly locating the original key based on the difference, the keys can be managed and used efficiently. This method reduces the time to find the right key among a large number of keys and improves the efficiency of the encryption and decryption process.

[0049] Step 4: Use the target key to encrypt the task data transmitted by the access device.

[0050] In summary, the present invention improves the efficiency and security of multi-interface data processing through dynamic priority allocation and flexible key management mechanism.

[0051] Example 2

[0052] like Figure 3 As shown, an embodiment of the present invention provides a multi-interface data processing system based on FPGA, the system comprising:

[0053] An acquisition module, used to acquire interface parameters of each interface, wherein the interface parameters include interface type, usage status and priority;

[0054] a parameter determination module, configured to construct a usage state matrix and an optimal interface matrix according to the interface parameters, and determine a first key parameter sequence and a second key parameter sequence according to the usage state matrix and the optimal interface matrix respectively;

[0055] a key determination module, configured to obtain a priority of an access device, determine a first key parameter and a second key parameter from the first key parameter sequence and the second key parameter sequence respectively according to the priority of the access device and the priority of the corresponding interface, and construct a key conversion function according to the first key parameter and the second key parameter to convert an original key to obtain a target key;

[0056] The encryption transmission module is used to encrypt the task data transmitted by the access device using the target key.

[0057] It should be understood that the FPGA-based multi-interface data processing system provided in the embodiment of the present invention and the FPGA-based multi-interface data processing method provided in the above embodiment are based on the same inventive concept. For more specific working principles of each module in the embodiment of the present invention, please refer to the above embodiment and will not be repeated in this embodiment.

[0058] Finally, it should be noted that the above embodiments are only used to illustrate the technical solutions of the present invention, rather than to limit it. Although the present invention has been described in detail with reference to the aforementioned embodiments, those skilled in the art should understand that they can still modify the technical solutions described in the aforementioned embodiments, or replace some or all of the technical features therein by equivalents. These modifications or replacements do not make the essence of the corresponding technical solutions deviate from the scope of the technical solutions of the embodiments of the present invention, and they should all be included in the scope of the claims and specification of the present invention.

Claims

1. A multi-interface data processing method based on FPGA, characterized in that: include: Obtaining interface parameters of each interface, wherein the interface parameters include interface type, usage status and priority; Constructing a usage state moment and an optimal interface moment according to the interface parameters, and determining a first key parameter sequence and a second key parameter sequence according to the usage state moment and the optimal interface moment respectively; Obtaining the priority of the access device, determining the first key parameter and the second key parameter from the first key parameter sequence and the second key parameter sequence respectively according to the priority of the access device and the priority of the corresponding interface, and constructing a key conversion function according to the first key parameter and the second key parameter to convert the original key to obtain a target key; Encrypting the task data transmitted by the access device using the target key; The column of the usage status matrix indicates the usage status of different interfaces of the same interface type. If the interface is usable, the corresponding position is 1, and if it is not usable, the corresponding position is 0. The column of the optimal interface matrix indicates the priority status of an interface of a type. If the priority of the interface is the highest among the same type, the corresponding position is 1, otherwise, the corresponding position is 0. The method of constructing a usage state matrix and an optimal interface matrix according to the interface parameters, and determining a first key parameter sequence and a second key parameter sequence according to the usage state matrix and the optimal interface matrix respectively comprises: Mapping each column of the usage state matrix into a numerical value, and combining the numerical values ​​into a first key parameter sequence; Mapping each column of the optimal interface matrix to a numerical value, and combining the numerical values ​​into a second key parameter sequence; The method comprises: determining a first key parameter and a second key parameter from the first key parameter sequence and the second key parameter sequence respectively according to the priority of the access device and the priority of the corresponding interface, and constructing a key conversion function according to the first key parameter and the second key parameter to convert the original key to obtain the target key, including: Calculate the difference and standard deviation between the priority of the same type of interface and the priority of the corresponding access device; sequentially shifting the first key parameter sequence and the second key parameter sequence according to the standard deviation, and determining the first key parameter and the second key parameter according to the shifted sequence; The positions of the first key parameter and the second key parameter in the key conversion function are determined according to the difference.

2. The method according to claim 1, characterized in that Sequentially shifting the first key parameter sequence and the second key parameter sequence according to the standard deviation comprises: When the standard deviation is greater than or equal to T unit thresholds, shifting the first key parameter sequence and the second key parameter sequence rightward by T positions respectively; When the standard deviation is less than T unit thresholds, the first key parameter sequence and the second key parameter sequence are respectively shifted to the left by T positions.

3. A multi-interface data processing system based on FPGA, applicable to the method according to any one of claims 1-2, characterized in that: include: An acquisition module, used to acquire interface parameters of each interface, wherein the interface parameters include interface type, usage status and priority; a parameter determination module, configured to construct a usage state matrix and an optimal interface matrix according to the interface parameters, and determine a first key parameter sequence and a second key parameter sequence according to the usage state matrix and the optimal interface matrix respectively; a key determination module, configured to obtain a priority of an access device, determine a first key parameter and a second key parameter from the first key parameter sequence and the second key parameter sequence respectively according to the priority of the access device and the priority of the corresponding interface, and construct a key conversion function according to the first key parameter and the second key parameter to convert an original key to obtain a target key; The encryption transmission module is used to encrypt the task data transmitted by the access device using the target key.

Citation Information

Patent Citations

  • Security enhancement method and system based on linear feedback shift register

    CN109088718A

  • Data transmission method and device based on image encryption

    CN111083306A