Data processing system and method
By setting up multiple parallel processing units and computing units in the data processing system of the cryptographic analysis device, decoupling of mode operations is achieved, and the problem of low parallelism during single chip deployment is solved, data processing efficiency and accuracy are improved, and data processing is reduced. cost.
Patent Information
- Application Number
- CN202411186641.0
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2024-08-28
- Publication Date
- 2024-11-12
- Estimated Expiration
- 2044-08-28
AI Technical Summary
The existing cryptographic analysis equipment deploys logic units and memory in a single chip, which is difficult to meet the needs of increasing data rates and increasing real-time requirements, resulting in low parallelism of mode operations, affecting computing efficiency and accuracy.
By setting up multiple parallel processing units and computing units in the data processing system, decoupling of mode operations is achieved, and the parallelism of the data processing system can be improved. High parallel computing units can be deployed in a single or multiple chips to improve the mode Efficiency and accuracy of computational processing.
The upper limit of data processing speed of data processing systems is improved, the complexity and cost of chip design is reduced, and the accuracy of data processing and the scalability of the system is improved.
Smart Images

Figure CN118713815B_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the field of data processing technology, and in particular to a data processing system and method. Background Art
[0002] In cryptanalysis equipment, efficient pattern operations can be used to assist cryptanalysis. With the increasing real-time requirements for pattern operation processing and the increasing data rate of data for pattern operation, how to efficiently implement pattern operations on data has become a technical problem that needs to be solved urgently.
[0003] In existing system architectures, logic units and memory are usually deployed in a single chip to achieve pattern operations. At this time, if high-performance computing is to be achieved in a single chip, the complexity of chip design needs to be increased, thereby increasing costs. At the same time, due to the size of the chip, the parallelism of pattern operations is low, which not only affects the efficiency of pattern operations, but also makes the system architecture unable to further process higher-rate data, thereby affecting the accuracy of pattern operations. Summary of the invention
[0004] The embodiments of the present application provide a data processing system and method for achieving the decoupling of pattern operations, improving the parallelism of pattern operation processing, thereby increasing the upper limit of the data rate that the data processing system can process, and improving the efficiency and accuracy of the data processing system in processing data.
[0005] In a first aspect, an embodiment of the present application provides a data processing system, which is applied to a cryptanalysis device, and the system includes: a data acquisition module, a data preprocessing module, a data operation module and a processor; wherein the data preprocessing module includes a plurality of parallel processing units; the processing unit is used to determine data that needs to be processed by pattern operation; the data operation module includes at least one parallel operation unit; the operation unit is used to perform pattern operation processing; each of the processing units is communicatively connected with a corresponding operation unit;
[0006] The processor is used to generate a data acquisition signal in response to a data processing request, and send the data acquisition signal to the data acquisition module; wherein the data acquisition signal at least includes a first data bit width corresponding to the acquired data and a data acquisition quantity;
[0007] The data acquisition module is used to acquire the to-be-processed data corresponding to the data acquisition signal after receiving the data acquisition signal, and transmit the to-be-processed data to the data pre-processing module; wherein the to-be-processed data indicates the signal data generated when the encryption device performs the first operation;
[0008] The data preprocessing module is used to receive the data to be processed based on each of the processing units, and after determining the sub-data to be processed respectively received by each of the processing units, transmit each of the sub-data to be processed to the computing units respectively corresponding to each of the processing units;
[0009] The data operation module is used to receive each of the sub-data to be processed based on each of the operation units, and obtain the operation reference data corresponding to each of the sub-data to be processed; based on the operation reference data corresponding to each of the sub-data to be processed, perform pattern operation processing on each of the sub-data to be processed to obtain a pattern operation result; wherein the operation reference data indicates the signal data generated when the encryption device performs the second operation; the first operation is associated with the second operation; and the pattern operation result indicates the degree of matching between the sub-data to be processed and the operation reference data.
[0010] In a possible implementation, in response to a data processing request, generating a data acquisition signal includes:
[0011] In response to the data processing request, determining first frequency information corresponding to the data operation module; wherein the first frequency information indicates the highest frequency of data that can be processed by the data operation module;
[0012] The first data bit width is determined based on the first frequency information and the bandwidth information of the data processing system, and the data acquisition signal is determined based on the first data bit width.
[0013] In a possible implementation, the data acquisition module includes an acquisition unit and a conversion unit;
[0014] The acquisition unit is configured to acquire initial data after receiving the data acquisition signal, and determine a second data bit width corresponding to the initial data; compare the second data bit width with the first data bit width included in the data acquisition signal, and if it is determined that the second data bit width is different from the first data bit width, transmit the initial data to the conversion unit;
[0015] The conversion unit is used to determine a bit width conversion ratio based on the first data bit width and the second data bit width, and perform bit width conversion processing on the initial data based on the bit width conversion ratio to obtain the data to be processed.
[0016] In a possible implementation, the number of processing units included in the data preprocessing module is associated with the bit width conversion ratio.
[0017] In a possible implementation, the data preprocessing module acquires multiple groups of data to be processed corresponding to the data acquisition signal; the number of processing units included in the data preprocessing module is determined based on the number of groups of data to be processed and the bit width conversion ratio.
[0018] In a possible implementation, the processing unit includes a plurality of shifters, and the number of the shifters is associated with the data length of the data processed by the operation unit.
[0019] In a possible implementation manner, the shifter includes a multiplexer and at least one register; and determining the sub-data to be processed respectively received by each of the processing units includes:
[0020] The data to be stored in each of the registers is determined from the data to be processed based on the multiplexer, and the sub-data to be processed respectively received by each of the processing units is determined based on the data to be stored in each of the registers.
[0021] In a possible implementation manner, determining the data to be stored in each register from the data to be processed based on the multiplexer includes:
[0022] Determining the parallel order corresponding to the processing units;
[0023] Based on the parallel sequence, determining the number of shift steps corresponding to each of the processing units;
[0024] The data required to be stored in each register selected by the multiplexer from the data to be processed is determined based on the shift step number corresponding to the processing unit.
[0025] In a possible implementation, determining the number of shift steps corresponding to each of the processing units based on the parallel order includes:
[0026] Determining whether the data preprocessing module receives the data to be processed for the first time;
[0027] If it is determined that the data preprocessing module receives the data to be processed for the first time, then determining that the number of shift steps corresponding to each of the processing units is equal to a target value; wherein the target value indicates the number of processing units included in the data preprocessing module;
[0028] If it is determined that the data preprocessing module is not receiving the data to be processed for the first time, the parallel order corresponding to each of the processing units is determined as the number of shift steps corresponding to each of the processing units.
[0029] In a possible implementation, the system includes at least one chip; the data preprocessing module and the data operation module are deployed in the at least one chip.
[0030] In a second aspect, an embodiment of the present application provides a data processing method, which is applied to a data processing system, wherein the system includes: a data acquisition module, a data preprocessing module, a data operation module and a processor; the method includes:
[0031] In response to the data processing request, a data acquisition signal is generated; wherein the data acquisition signal at least includes a first data bit width corresponding to the acquired data and a data acquisition quantity;
[0032] Acquire the data to be processed corresponding to the data acquisition signal, and divide the data to be processed into a plurality of sub-data to be processed;
[0033] Obtain operation reference data corresponding to each of the sub-data to be processed, and based on the operation reference data corresponding to each of the sub-data to be processed, perform pattern operation processing on each of the sub-data to be processed to obtain a pattern operation result; wherein the pattern operation result indicates the degree of matching between the sub-data to be processed and the operation reference data.
[0034] In a possible implementation manner, the data acquisition signal further includes a bit width conversion ratio; and the step of acquiring the data to be processed corresponding to the data acquisition signal includes:
[0035] Acquire initial data corresponding to the data acquisition quantity in the data acquisition signal;
[0036] The initial data is subjected to bit width conversion processing based on the bit width conversion ratio to obtain the data to be processed; wherein the bit width conversion ratio is determined based on a second data bit width corresponding to the initial data and a first data bit width included in a data acquisition signal.
[0037] In a third aspect, an embodiment of the present application provides an electronic device, including: a memory, a processor;
[0038] The memory stores computer-executable instructions;
[0039] The processor executes the computer-executable instructions stored in the memory, so that the processor executes the above second aspect and / or various possible implementations of the second aspect.
[0040] In a fourth aspect, an embodiment of the present application provides a computer-readable storage medium, in which computer-executable instructions are stored. When the computer-executable instructions are executed by a processor, they are used to implement the above second aspect and / or various possible implementations of the second aspect.
[0041] In a fifth aspect, an embodiment of the present application provides a computer program product, including a computer program, which, when executed by a processor, implements the above second aspect and / or various possible implementations of the second aspect.
[0042] The data processing system and method provided by the embodiment of the present application can set multiple parallel processing units in the data preprocessing module, so as to divide the data to be processed into multiple sub-data to be processed, and perform pattern operation processing on each sub-data to be processed respectively through at least one parallel operation unit included in the data operation module, thereby realizing the decoupling of pattern operation and making the data processing system more scalable. At this time, through the above-mentioned data preprocessing module and data operation module, it is possible to deploy high-parallel operation units in a single or multiple chips to realize pattern operation, improve the efficiency of pattern operation processing, and increase the upper limit of the data rate processed by the data processing system, thereby enabling the data processing system to process higher frequency data, thereby improving the accuracy of data processing. In addition, this implementation method can also reduce the working performance requirements of a single-channel operation unit through multi-channel parallel operation units, reduce the complexity of chip design, and reduce costs. BRIEF DESCRIPTION OF THE DRAWINGS
[0043] The accompanying drawings, which are incorporated in and constitute a part of this specification, illustrate embodiments consistent with the present application and, together with the description, serve to explain the principles of the present application.
[0044] Figure 1 A schematic diagram of the architecture of an existing data processing system for performing pattern operations provided in an embodiment of the present application;
[0045] Figure 2 A schematic diagram of the architecture of a data processing system provided in an embodiment of the present application;
[0046] Figure 3 A schematic diagram of the architecture of another data processing system provided in an embodiment of the present application;
[0047] Figure 4 A schematic diagram of the structure of a processing unit provided in an embodiment of the present application;
[0048] Figure 5 A schematic diagram of the structure of a shifter provided in an embodiment of the present application;
[0049] Figure 6 A schematic diagram of an implementation flow of a data processing system provided in an embodiment of the present application;
[0050] Figure 7 A schematic diagram of the number of shift steps corresponding to a processing unit provided in an embodiment of the present application;
[0051] Figure 8 A flowchart of a data processing method provided in an embodiment of the present application;
[0052] Fig. 9 A flowchart of another data processing method provided in an embodiment of the present application;
[0053] Fig.10 A schematic diagram of performing a mode operation on collected real-time signal data provided by an embodiment of the present application;
[0054] Fig.11 A schematic diagram of analysis and processing of pattern operation results in a side channel analysis scenario provided in an embodiment of the present application;
[0055] Fig.12 A schematic diagram of analysis and processing of pattern operation results in a fault injection scenario provided in an embodiment of the present application;
[0056] Fig.13 A schematic diagram of the structure of an electronic device provided in an embodiment of the present application.
[0057] The above drawings have shown clear embodiments of the present application, which will be described in more detail later. These drawings and text descriptions are not intended to limit the scope of the present application in any way, but to illustrate the concept of the present application to those skilled in the art by referring to specific embodiments. DETAILED DESCRIPTION
[0058] Exemplary embodiments will be described in detail herein, examples of which are shown in the accompanying drawings. When the following description refers to the drawings, unless otherwise indicated, the same numbers in different drawings represent the same or similar elements. The implementations described in the following exemplary embodiments do not represent all implementations consistent with the present application. Instead, they are merely examples of systems and devices consistent with some aspects of the present application as detailed in the appended claims.
[0059] The cryptographic analysis device involved in the embodiments of the present application can be a tool and instrument for analyzing and cracking a cryptographic system. In this case, various cryptographic analysis techniques (e.g., side channel analysis, fault injection, etc.) can be performed in the cryptographic analysis device to discover the weaknesses of the cryptographic system, thereby improving the security of the cryptographic system.
[0060] When executing various cryptographic analysis techniques in a cryptographic analysis device, cryptographic analysis can be performed by collecting real-time signal data when the cryptographic device performs encryption / decryption operations, as well as corresponding reference signal data, and matching the real-time signal data and the reference signal data (that is, performing pattern operation processing).
[0061] Among them, the real-time signal data and the reference signal data can determine the specific signal data type according to the actual application scenario. For example, in the side channel analysis scenario, the real-time signal data can indicate the power consumption information of the cryptographic device when performing encryption / decryption operations. At this time, the reference signal data can indicate the power consumption information of the cryptographic device when performing encryption / decryption operations according to the assumed key. For another example, in a fault injection scenario, the real-time signal data can indicate the power consumption signal of the cryptographic device when performing the first operation; the reference signal data can indicate the power consumption information of the cryptographic device when performing the second operation, wherein the second operation can indicate the operation performed by the cryptographic device before performing the first operation.
[0062] It should be noted here that the above-mentioned real-time signal data can be understood as the data to be processed (or sub-data to be processed) in the embodiment of the present application, and the reference signal data can be understood as the calculation reference data in the embodiment of the present application, which will not be described in detail below.
[0063] In the existing system architecture, logic units and memory are usually deployed in a single chip to implement pattern operations. However, the deployment method in a single chip cannot meet the data processing requirements of increasing data rates and increasing real-time requirements, resulting in the system architecture being unable to process data at higher rates, which in turn affects the accuracy of pattern operations. At the same time, due to the size of the chip, the existing system architecture cannot support a high degree of parallelism, which in turn affects the computing efficiency and performance of pattern operations.
[0064] See also Figure 1 , Figure 1 A schematic diagram of the architecture of an existing data processing system for performing pattern operations provided in an embodiment of the present application is shown in FIG. Figure 1 As shown, the mode operation system at least includes a processor 101, a data acquisition module 102 and a mode operation module 103. The processor 101 is used to generate a data acquisition signal after receiving a data processing task, and send the data acquisition signal to the data acquisition module 102. The data acquisition module 102 is used to collect signal data of the password device after receiving the data acquisition signal, and send the collected signal data to the mode operation module 103. The mode operation module 103 is used to perform mode operation processing on the collected signal data to obtain a mode operation result.
[0065] In combination with the above scenario, it can be seen that in the prior art, a pattern operation system architecture can be set up in a single chip to implement pattern operation, but the data rate processed by this implementation is limited and the degree of parallelism is low, which in turn affects the efficiency and performance of data processing.
[0066] The data processing system provided in the present application can achieve decoupling of pattern operations by splitting the collected signal data through a multi-way shifter (that is, the above-mentioned multiple processing units) and then performing operations, thereby improving the parallelism of data processing, so that the data processing system can be deployed in multiple chips, thereby improving the scalability of the data processing system and the performance of data processing, thereby solving the above-mentioned technical problems.
[0067] The technical solution of the present application and how the technical solution of the present application solves the above-mentioned technical problems are described in detail below with specific embodiments. The following specific embodiments can be combined with each other, and the same or similar concepts or processes may not be repeated in some embodiments. The embodiments of the present application will be described below in conjunction with the accompanying drawings.
[0068] See also Figure 2 , Figure 2 A schematic diagram of the architecture of a data processing system provided in an embodiment of the present application is shown in FIG. Figure 2 As shown, the system can be applied to a cryptographic analysis device, and includes: a data acquisition module 201, a data preprocessing module 202, a data operation module 203 and a processor 204.
[0069] Among them, the data preprocessing module 202 includes multiple parallel processing units 2021; the processing unit 2021 is used to determine the data that needs to be processed by pattern operation; the data operation module 203 includes at least one parallel operation unit 2031; the operation unit 2031 is used to perform pattern operation processing.
[0070] At this time, if Figure 2 As shown, each processing unit 2021 is communicatively connected to a corresponding computing unit 2031. Alternatively, each computing unit 2031 may be connected to one or more processing units 2021, in which case a single computing unit 2031 and the correspondingly connected one or more processing units 2021 are integrated into the same chip, and the number of computing units 2031 is not limited here, and is subject to what can be implemented.
[0071] The processor 204 is used to generate a data acquisition signal in response to a data processing request, and send the data acquisition signal to the data acquisition module.
[0072] The data processing request is used to indicate a request to perform pattern operation processing on the data.
[0073] The data acquisition signal includes a first data bit width corresponding to the acquired data and a data acquisition quantity.
[0074] In one example, the first data bit width indicates the data bit width of a single data acquired. In this case, the value of the first data bit width can be determined according to the data bit width that the operation unit can process. For example, the maximum data bit width that the operation unit can process can be determined as the first data bit width. For example, the first data bit width can be 8 bits, 16 bits, 32 bits, etc., and the value of the first data bit width is not limited here.
[0075] In one example, the data acquisition quantity may indicate the quantity of data of the first data bit width acquired. In this case, the data acquisition quantity may be determined based on the data length that the operation unit can process. For example, if the operation unit can process 6 data at the same time, then the data acquisition quantity is 6.
[0076] In addition, the data acquisition signal may also include the time of acquiring the data, the type of the acquired data, etc. The specific content included in the data acquisition signal is not limited here, and is based on meeting actual needs.
[0077] The data acquisition module 201 is used to acquire the to-be-processed data corresponding to the data acquisition signal after receiving the data acquisition signal, and transmit the to-be-processed data to the data pre-processing module.
[0078] The data to be processed indicates signal data generated when the encryption device performs the first operation. The encryption device may indicate an electronic device, a computer device, a network device, a communication device, etc., and the encryption device is not limited here.
[0079] At this time, the type of signal data indicated by the data to be processed can be a power consumption signal, a time delay signal, an electromagnetic radiation signal, etc. The type of signal data indicated by the data to be processed is not limited here and is based on meeting actual needs.
[0080] In one example, the first operation may indicate an encryption / decryption operation. For example, the encryption / decryption operation may be an operation through a password login interface, an operation through a password jump interface, etc. The specific content of the first operation is not limited here, and is subject to achievability.
[0081] At this time, the data acquisition module 201 can acquire one or more groups of data to be processed corresponding to the data acquisition signal. At this time, by acquiring multiple groups of data to be processed, multi-channel mode operations can be performed simultaneously, thereby improving data processing efficiency.
[0082] The data preprocessing module 202 is used to receive the data to be processed based on each processing unit, and after determining the sub-data to be processed respectively received by each processing unit, transmit each sub-data to be processed to the computing unit corresponding to each processing unit.
[0083] At this time, each processing unit can perform shift processing on the data to be processed, so as to determine the sub-data to be processed received by each processing unit, and transmit each sub-data to be processed to the operation unit corresponding to each processing unit for pattern operation processing.
[0084] The data operation module 203 is used to receive each sub-data to be processed based on each operation unit, and obtain the operation reference data corresponding to each sub-data to be processed; based on the operation reference data corresponding to each sub-data to be processed, perform pattern operation processing on each sub-data to be processed to obtain a pattern operation result.
[0085] The operation reference data indicates signal data generated when the encryption device performs the second operation.
[0086] The first operation and the second operation are associated; for example, the first operation may be the same as the second operation, or the second operation may indicate an operation before the first operation is executed, etc. The association relationship between the first operation and the second operation is not limited here, and is subject to meeting actual needs.
[0087] The pattern operation result indicates the matching degree between the sub-data to be processed and the operation reference data.
[0088] In one example, when obtaining the operation reference data corresponding to each sub-data to be processed, the operation reference data corresponding to the data to be processed can be obtained first, and then, through a sliding window of the same size as the processing unit, the operation reference data corresponding to each sub-data to be processed can be determined from the operation reference data corresponding to the data to be processed.
[0089] In one example, after determining the pattern operation result, side channel analysis or fault injection analysis can be performed based on the pattern operation result. The application scenario of the pattern operation result is not limited here, and it is subject to what can be implemented.
[0090] It can be known from the above description that the data processing system provided by the embodiment of the present application can set multiple parallel processing units in the data preprocessing module, so as to divide the data to be processed into multiple sub-data to be processed, and perform pattern operation processing on each sub-data to be processed respectively through at least one parallel operation unit included in the data operation module, thereby realizing the decoupling of pattern operation and making the data processing system more scalable. At this time, through the above-mentioned data preprocessing module and data operation module, it is possible to deploy high-parallel operation units in a single or multiple chips to realize pattern operation, improve the efficiency of pattern operation processing, and increase the upper limit of the data rate processed by the data processing system, so as to enable the data processing system to process higher frequency data, thereby improving the accuracy of data processing. In addition, this implementation method can also reduce the working performance requirements of a single-channel operation unit through multi-channel parallel operation units, reduce the complexity of chip design, and reduce costs.
[0091] In one example, with respect to the above: in response to a data processing request, generating a data acquisition signal specifically includes the following process:
[0092] In response to the data processing request, determining first frequency information corresponding to the data operation module; wherein the first frequency information indicates the highest frequency of the data that can be processed by the data operation module;
[0093] Based on the first frequency information and bandwidth information of the data processing system, a first data bit width is determined, and a data acquisition signal is determined based on the first data bit width.
[0094] In one example, the maximum frequency of data that can be processed by the data operation module indicated by the first frequency information can also be understood as the maximum frequency of data that can be processed by the data processing system. For example, the first frequency information can be 50MHz or 100MHz, etc. The first frequency information is not limited here and is subject to what can be implemented.
[0095] In an example, assuming that the first frequency information is 50 MHz and the bandwidth information of the data processing system is 800 Mb / s, it can be determined that the first data bit width is 16 bits.
[0096] This implementation can determine the first data bit width according to the highest frequency of data that can be processed by the data processing system to obtain the data to be processed corresponding to the data acquisition signal for pattern operation processing, which can fully utilize the capacity of the data processing system and avoid waste.
[0097] See also Figure 3 , Figure 3 A schematic diagram of another data processing system architecture provided in an embodiment of the present application is shown in FIG. Figure 3As shown, the system can be applied to a cryptographic analysis device, and includes: a data acquisition module 301 , a data preprocessing module 302 , a data operation module 303 and a processor 304 .
[0098] Among them, the data preprocessing module 302 includes multiple parallel processing units 3021; the processing unit 3021 is used to determine the data that needs to be processed by pattern operation; the data operation module 303 includes at least one parallel operation unit 3031; the operation unit 3031 is used to perform pattern operation processing; each processing unit 3021 is communicated with the corresponding operation unit 3031.
[0099] The processor 304 is used to generate a data acquisition signal in response to the data processing request, and send the data acquisition signal to the data acquisition module 301. The data acquisition signal includes the first data bit width corresponding to the acquired data and the data acquisition quantity.
[0100] The data acquisition module 301 is used to acquire the to-be-processed data corresponding to the data acquisition signal after receiving the data acquisition signal, and transmit the to-be-processed data to the data preprocessing module 302. The to-be-processed data indicates the signal data generated when the encryption device performs the first operation.
[0101] The data preprocessing module 302 is used to receive the data to be processed based on each processing unit 3021, and after determining the sub-data to be processed received by each processing unit 3021, transmit each sub-data to be processed to the operation unit 3031 corresponding to each processing unit 3021.
[0102] The data operation module 303 is used to receive each sub-data to be processed based on each operation unit 3031, and obtain the operation reference data corresponding to each sub-data to be processed; based on the operation reference data corresponding to each sub-data to be processed, perform pattern operation processing on each sub-data to be processed to obtain a pattern operation result. The operation reference data indicates the signal data generated when the encryption device performs the second operation; the first operation is associated with the second operation; and the pattern operation result indicates the matching degree between the sub-data to be processed and the operation reference data.
[0103] like Figure 3 As shown, the data acquisition module 301 includes an acquisition unit 3011 and a conversion unit 3012 .
[0104] Among them, the acquisition unit 3011 is used to acquire initial data after receiving the data acquisition signal, and determine the second data bit width corresponding to the initial data; compare the second data bit width with the first data bit width included in the data acquisition signal, and when it is determined that the second data bit width is different from the first data bit width, transmit the initial data to the conversion unit.
[0105] The conversion unit 3012 is used to determine a bit width conversion ratio based on the first data bit width and the second data bit width, and perform bit width conversion processing on the initial data based on the bit width conversion ratio to obtain data to be processed.
[0106] For example, when it is determined that the first data bit width is 16 bits and the second data bit width is 8 bits, the bit width conversion ratio is determined to be 2, and the initial data is bit width converted based on the bit width conversion ratio to obtain the data to be processed with a data bit width of 16 bits.
[0107] This implementation manner can obtain the data to be processed under the first data bit width after the conversion unit performs bit width conversion processing on the second data bit width corresponding to the initial data when the data bit width of the initial data generated by the encryption device is different from the data bit width that can be processed by the operation unit (or the data processing system). The data can be converted from a small bit width to a large bit width, thereby saving power consumption of the data processing system, saving resources, and optimizing system performance.
[0108] Based on this, when the data acquisition module acquires a group of to-be-processed data corresponding to the data acquisition signal, the number of processing units included in the data preprocessing module is associated with the bit width conversion ratio. For example, the value of the bit width conversion ratio can be determined as the number of processing units included in the data preprocessing module. For example, when the bit width conversion ratio is 2, the number of processing units included in the data preprocessing module is also 2; when the bit width conversion ratio is 3, the number of processing units included in the data preprocessing module is also 3.
[0109] In the case where the data acquisition module acquires multiple groups of data to be processed corresponding to the data acquisition signal, the number of processing units included in the data preprocessing module is determined based on the number of groups of data to be processed and the bit width conversion ratio. For example, the product of the number of groups of data to be processed and the bit width conversion ratio can be determined as the number of processing units. For example, in the case where the number of groups of data to be processed is 3 and the value of the bit width conversion ratio is 3, then the number of processing units included in the data preprocessing module is 9.
[0110] In the above implementation, the number of processing units included in the data preprocessing module can be determined according to the number of data to be processed acquired by the data acquisition module, so that after acquiring data once, the pattern operation processing of the single acquired data can be completed, thereby improving the data processing efficiency.
[0111] In an optional implementation, the bit width conversion ratio may be solidified in the data processing system according to the actual application scenario, thereby saving the calculation time of the conversion ratio and further improving the data processing efficiency.
[0112] See also Figure 4 , Figure 4 This is a schematic diagram of the structure of a processing unit provided in an embodiment of the present application. Figure 4 As shown, the processing unit includes multiple shifters, and the number of shifters is associated with the data length of the data processed by the operation unit.
[0113] For example, if the data length of the data processed by the operation unit is 6, then Figure 4 As shown, the number of shifters included in the processing unit is 6. At this time, each shifter is used to store one data. At this time, the data bit width of the data stored in each shifter can be the above-mentioned first data bit width.
[0114] At this time, after the data acquisition module acquires the data to be processed, the data to be processed can be sent to each shifter of the processing unit included in the data preprocessing module, so as to simply and quickly obtain the sub-data to be processed corresponding to the processing unit.
[0115] See also Figure 5 , Figure 5 This is a schematic diagram of the structure of a shifter provided in an embodiment of the present application. Figure 5 As shown, the shifter includes a multiplexer and at least one register.
[0116] At this time, when determining the sub-data to be processed that each processing unit receives respectively, the data to be stored in each register can be determined from the data to be processed based on the multiplexer, and based on the data to be stored in each register, the sub-data to be processed that each processing unit receives respectively can be determined.
[0117] At this time, the corresponding shift step number can be set for each processing unit, and the data selected by the multiplexer can be determined according to the shift step number, thereby determining the sub-data to be processed received by each data unit.
[0118] Based on this, when determining the data to be stored in each register from the data to be processed based on the multiplexer, the parallel order corresponding to the processing units can be determined first; then, based on the parallel order, the number of shift steps corresponding to each processing unit can be determined; finally, based on the number of shift steps corresponding to the processing unit, the data to be stored in each register selected by the multiplexer from the data to be processed is determined.
[0119] In an example, assuming that the number of processing units included in the data preprocessing module is 3, then the parallel order corresponding to the first processing unit is 1, the parallel order corresponding to the second processing unit is 2, and the parallel order corresponding to the third processing unit is 3.
[0120] After determining the parallel order corresponding to each processing unit, in one possible implementation, the parallel order corresponding to each processing unit can be determined as the number of shift steps corresponding to each processing unit. For example, the shift step number of the processing unit with the parallel order of 1 can be determined as 1, the shift step number of the processing unit with the parallel order of 2 can be determined as 2, and the shift step number of the processing unit with the parallel order of 3 can be determined as 3.
[0121] At this time, when determining the number of shift steps corresponding to each processing unit based on the parallel order, it is possible to first determine whether the data preprocessing module receives the data to be processed for the first time; if it is determined that the data preprocessing module receives the data to be processed for the first time, then determine that the number of shift steps corresponding to each processing unit is equal to the target value; wherein the target value indicates the number of processing units included in the data preprocessing module; if it is determined that the data preprocessing module does not receive the data to be processed for the first time, then determine the parallel order corresponding to each processing unit as the number of shift steps corresponding to each processing unit.
[0122] If it is determined that the data preprocessing module receives the data to be processed for the first time, then it can be determined that the data processing system is in the initial operation stage. At this time, if the number of processing units is N, then it can be determined that the number of shift steps corresponding to each processing unit is N. If it is determined that the data preprocessing module does not receive the data to be processed for the first time, then it can be determined that the data processing system is in the parallel operation stage. At this time, if the number of processing units is N, then the number of shift steps corresponding to each processing unit can be determined in a way of increasing by path (that is, in parallel order), that is, the number of shift steps of the first path processing unit is 1, the number of shift steps of the second path processing unit is 2, ..., and the number of shift steps of the Nth path processing unit is N.
[0123] In another possible implementation, the reverse order of the parallel order corresponding to each processing unit may be determined as the shift step number corresponding to each processing unit. For example, the shift step number of the processing unit with the parallel order of 1 may be determined as 3, the shift step number of the processing unit with the parallel order of 2 may be determined as 2, and the shift step number of the processing unit with the parallel order of 3 may be determined as 1. The corresponding relationship between the parallel order and the shift step number is not limited here, and is subject to what can be implemented.
[0124] In one example, the data processing system provided in the embodiment of the present application may include at least one chip, in which case the data preprocessing module and the data computing module provided in the above embodiment may be deployed in at least one chip. For example, assuming that the data preprocessing module includes 10 processing units, the data computing module includes 10 computing units, and the data processing system includes 2 chips (chip 1 and chip 2, respectively), then 5 processing units and 5 computing units may be deployed in chip 1, and the remaining 5 processing units and the remaining 5 computing units may be deployed in chip 2.
[0125] At this time, the pattern operation can be decoupled through the processing unit and the operation unit, making the pattern operation processing more scalable. At this time, by implementing the pattern operation processing in multiple chips, not only the performance requirements of the single-channel pattern operation are reduced, but also the data processing efficiency and effect are improved.
[0126] The following will introduce the application of the data processing system provided by the present application in conjunction with specific embodiments.
[0127] Assuming that the second data bit width corresponding to the initial data is 1 bit, the first data bit width is 3 bits, and the number of data to be acquired is 1, then the data acquisition module can acquire the initial data through the acquisition unit, and then convert the initial data into 3 bits of data to be processed through the conversion unit, and only acquire one set of data to be processed. At this time, the data to be processed can be transmitted to the data preprocessing module.
[0128] At this time, it can be determined that the data preprocessing module includes three processing units, namely processing unit 1, processing unit 2 and processing unit 3. At this time, it can be determined that the data operation module includes three operation units, namely operation unit 1, operation unit 2 and operation unit 3. Among them, processing unit 1 and operation unit 1 are connected in communication, processing unit 2 and operation unit 2 are connected in communication, and processing unit 3 and operation unit 3 are connected in communication. At this time, see Figure 6 , Figure 6 The following is a schematic diagram of an implementation flow of a data processing system provided in an embodiment of the present application. Figure 6 As shown, the data acquisition module obtains data from the data source (such as Figure 6 As shown, after obtaining the initial data from the data source (including the initial data and the calculation reference data), the initial data can be firstly subjected to bit width conversion processing to obtain the data to be processed. After that, the data to be processed are all transmitted to the three processing units. After the three processing units perform shift processing on the data to be processed, the sub-data to be processed corresponding to the three processing units are obtained and transmitted to the corresponding calculation units. At this time, after receiving the sub-data to be processed, the calculation unit can also obtain the calculation reference data.
[0129] like Figure 6 As shown, on the one hand, the operation unit can directly obtain the operation reference data from the data source (see Figure 6 On the other hand, when the data acquisition module acquires the data to be processed, it also acquires the operation reference data, and transmits the operation reference data to the operation unit after the bit width conversion and processing by the processing unit (see Figure 6 solid line shown).
[0130] Afterwards, the operation reference data and the sub-data to be processed can be subjected to pattern operation processing to obtain pattern operation results.
[0131] In an example, if it is assumed that the data length of the data processed by the operation unit is 6, then it can be determined that Figure 6 Each processing unit in may include six shifters, namely shifter 1 to shifter 6. Then, when determining the number of shift steps of the processing unit, reference may be made to the process described below.
[0132] See also Figure 7 , Figure 7 A schematic diagram of the number of shift steps corresponding to a processing unit provided in an embodiment of the present application. Figure 7 As shown, in the initial operation stage, the shift steps corresponding to the three processing units are all 3. At this time, the data to be processed can be received by shifter 1 to shifter 3, and the data to be processed received by shifter 1 to shifter 3 is transmitted to shifter 4 to shifter 6 through the multiplexer included in shifter 4 to shifter 6. Afterwards, the next group of data to be processed is received by shifter 1 to shifter 3, so that the data to be processed is stored in all six shifters. At this time, as shown in FIG. Figure 7 As shown, the three processing units all store data 0 to data 5. At this time, data 0 to data 5 are the first batch of data input to the data operation module for pattern operation processing.
[0133] After that, the parallel operation stage is entered. At this time, if the data preprocessing module receives the data to be processed again, the shift steps of the three processing units can be set to increase by path. At this time, the shift step number corresponding to processing unit 1 is 1, the shift step number corresponding to processing unit 2 is 2, and the shift step number corresponding to processing unit 3 is 3. At this time, data 1 to data 6 are stored in processing unit 1, data 2 to data 7 are stored in processing unit 2, and data 3 to data 8 are stored in processing unit 3. At this time, data 1 to data 8 are the second batch of data input to the data operation module for pattern operation processing, and so on.
[0134] This implementation can improve the processing efficiency of the data processing system through multiple parallel processing units and computing units, that is, improve the data rate of the data processed by the data processing system, so that the data processing system can process higher frequency data, thereby improving the accuracy of the pattern operation results.
[0135] The following briefly introduces the data processing method corresponding to the data processing system provided in the present application. The data processing method can be applied to the data processing system in any of the above embodiments.
[0136] See also Figure 8 , Figure 8 A flowchart of a data processing method provided in an embodiment of the present application is shown in FIG. Figure 8 As shown, the method includes:
[0137] S801. Generate a data acquisition signal in response to a data processing request.
[0138] The data acquisition signal at least includes a first data bit width corresponding to the acquired data and a data acquisition quantity.
[0139] Among them, the data processing request indicates a request to perform pattern operation processing on the data. At this time, the first data bit width in the generated data acquisition signal indicates the data bit width that can be processed by the operation unit performing pattern operation processing, and the data acquisition quantity indicates the data length that can be processed by the operation unit performing pattern operation processing.
[0140] S802: Acquire the data to be processed corresponding to the data acquisition signal, and divide the data to be processed into a plurality of sub-data to be processed.
[0141] At this time, the data to be processed may be divided according to the number of processing units included in the data preprocessing module in the data processing system to obtain a plurality of sub-data to be processed.
[0142] S803, obtaining operation reference data corresponding to each sub-data to be processed, and performing pattern operation processing on each sub-data to be processed based on the operation reference data corresponding to each sub-data to be processed, to obtain a pattern operation result.
[0143] The pattern operation result indicates the matching degree between the sub-data to be processed and the operation reference data.
[0144] This implementation method can obtain the corresponding data to be processed according to the computing power of each computing unit in the data computing module of the data processing system, and divide the data to be processed into multiple sub-data to be processed through multiple parallel processing units, so as to perform pattern computing processing on each sub-data to be processed, thereby improving the parallelism of pattern computing processing and thus improving data processing efficiency. At the same time, it can also increase the upper limit of the processed data rate, thereby increasing the frequency of the processed data, thereby improving the accuracy of data processing.
[0145] See also Fig. 9 , Fig. 9 A flow chart of another data processing method provided in an embodiment of the present application is as follows: Fig. 9 As shown, the method includes:
[0146] S901. Generate a data acquisition signal in response to a data processing request.
[0147] The data acquisition signal at least includes the first data bit width corresponding to the acquired data, the data acquisition quantity and the bit width conversion ratio.
[0148] S902: Acquire initial data corresponding to the data acquisition quantity in the data acquisition signal.
[0149] S903 , performing bit width conversion processing on the initial data based on the bit width conversion ratio to obtain data to be processed.
[0150] The bit width conversion ratio is determined based on the second data bit width corresponding to the initial data and the first data bit width included in the data acquisition signal.
[0151] S904: Divide the data to be processed into a plurality of sub-data to be processed.
[0152] S905, obtaining operation reference data corresponding to each sub-data to be processed, and performing pattern operation processing on each sub-data to be processed based on the operation reference data corresponding to each sub-data to be processed, to obtain a pattern operation result.
[0153] The pattern operation result indicates the matching degree between the sub-data to be processed and the operation reference data.
[0154] This implementation can determine the bit width conversion ratio when the data bit width of the real-time signal data is inconsistent with the data that the operation unit can process, and then perform bit width conversion processing on the real-time signal data according to the bit width conversion ratio, and can convert the real-time signal data from a small bit width to a large bit width, thereby saving resources and improving performance.
[0155] The application scenarios of the data system provided in the embodiments of the present application will be described in detail below.
[0156] The data processing system provided in the embodiment of the present application can collect real-time signal data of a cryptographic device and perform pattern operation processing on the real-time signal data based on pre-saved reference signal data.
[0157] See also Fig.10 , Fig.10 A schematic diagram of performing a mode operation on collected real-time signal data provided by an embodiment of the present application. Assume that the collected data is as follows Fig.10 The real-time signal data shown in the figure can be obtained based on the preset sliding window (such as Fig.10 The sliding window shown in FIG. 1 is used to obtain reference signal data within the sliding window range, and the real-time signal data within the sliding window range is subjected to pattern operation processing according to the reference signal data within the sliding window range to obtain a pattern operation result, so as to obtain the matching degree between the reference signal and the real-time signal data (that is, the pattern operation result). At this point, the next step of analysis and processing can be performed when the real-time signal data and the reference signal data match.
[0158] In one example, in a side channel analysis scenario, real-time signal data may indicate power consumption information of a cryptographic device when performing encryption operations, and reference signal data may indicate power consumption information of a cryptographic device when performing encryption operations according to an assumed key.
[0159] See also Fig.11 , Fig.11 A schematic diagram of the analysis and processing of pattern operation results in a side channel analysis scenario provided by an embodiment of the present application. Fig.11 As shown, in the side channel analysis scenario, after the reference signal data and the real-time signal data are subjected to pattern operation processing and the pattern operation results are obtained, the sliding window with the highest matching degree between the real-time signal data and the reference signal data can be determined according to the pattern operation results. For example, the sliding window with the highest matching degree is Figure 2 The sliding window 1 shown. At this time, the reference signal data corresponding to the sliding window 1 can be analyzed and processed, for example, the assumed key corresponding to the reference signal data in the sliding window 1 can be determined, and the accuracy of the assumed key can be determined, so as to determine whether the encryption device has a key leakage phenomenon.
[0160] In another example, in a fault injection scenario, the real-time signal data may indicate a power consumption signal of the cryptographic device when performing a first operation; the reference signal data may indicate power consumption information of the cryptographic device when performing a second operation, wherein the second operation may indicate an operation performed by the cryptographic device before performing the first operation.
[0161] At this time, see Fig.12 , Fig.12A schematic diagram of the analysis and processing of pattern operation results in a fault injection scenario provided by an embodiment of the present application. Fig.12 As shown, in the fault injection scenario, after the reference signal data and the real-time signal data are subjected to pattern operation processing and the pattern operation result is obtained, the sliding window with the highest matching degree between the real-time signal data and the reference signal data can be determined according to the pattern operation result. For example, the sliding window with the highest matching degree is Figure 3 The sliding window 2 shown. At this time, the fault injection entry point can be determined based on the sliding window 2. For example, the fault can be injected into the encryption device at the end position of the sliding window, and the encryption device after the fault injection is analyzed and processed to determine the security of the encryption device.
[0162] Fig.13 This is a schematic diagram of the structure of an electronic device provided in an embodiment of the present application. Fig.13 As shown, the electronic device 1300 provided in this embodiment includes: at least one processor 1301 and a memory 1302. Optionally, the device 1300 also includes a communication component 1303. The processor 1301, the memory 1302 and the communication component 1303 are connected via a bus 1304.
[0163] In a specific implementation process, at least one processor 1301 executes the computer execution instructions stored in the memory 1302, so that at least one processor 1301 executes the above-mentioned data processing method.
[0164] The specific implementation process of the processor 1301 can be found in the above method embodiment, and its implementation principle and technical effect are similar, so this embodiment will not be repeated here.
[0165] In the above embodiments, it should be understood that the processor can be a central processing unit (CPU), or other general-purpose processors, digital signal processors (DSP), application-specific integrated circuits (ASIC), etc. A general-purpose processor can be a microprocessor or any conventional processor. The steps of the method disclosed in the invention can be directly implemented as a hardware processor, or can be implemented by a combination of hardware and software modules in the processor.
[0166] The memory may include a high-speed memory (Random Access Memory, RAM), and may also include a non-volatile memory (NVM), such as at least one disk storage.
[0167] The bus can be an Industry Standard Architecture (ISA) bus, a Peripheral Component Interconnect (PCI) bus, or an Extended Industry Standard Architecture (EISA) bus, etc. The bus can be divided into an address bus, a data bus, a control bus, etc. For ease of representation, the bus in the drawings of this application is not limited to only one bus or one type of bus.
[0168] The present application also provides a computer program product, including a computer program, which implements the above-mentioned data processing method when executed by a processor.
[0169] The present application also provides a computer-readable storage medium, in which computer-executable instructions are stored. When a processor executes the computer-executable instructions, the above-mentioned data processing method is implemented.
[0170] The above-mentioned readable storage medium can be implemented by any type of volatile or non-volatile storage device or a combination thereof, such as static random access memory (SRAM), electrically erasable programmable read-only memory (EEPROM), erasable programmable read-only memory (EPROM), programmable read-only memory (PROM), read-only memory (ROM), magnetic memory, flash memory, magnetic disk or optical disk. The readable storage medium can be any available medium that can be accessed by a general or special-purpose computer.
[0171] An exemplary readable storage medium is coupled to a processor so that the processor can read information from the readable storage medium and write information to the readable storage medium. Of course, the readable storage medium can also be a component of the processor. The processor and the readable storage medium can be located in an application specific integrated circuit (Application Specific Integrated Circuits, referred to as: ASIC). Of course, the processor and the readable storage medium can also exist in the device as discrete components.
[0172] It should be noted that the above division of units is only a logical function division, and there may be other divisions in actual implementation, such as multiple units or components can be combined or integrated into another system, or some features can be ignored or not executed. Another point is that the mutual coupling or direct coupling or communication connection shown or discussed can be an indirect coupling or communication connection through some interface, device or unit, which can be electrical, mechanical or other forms.
[0173] The units described as separate components may or may not be physically separated, and the components shown as units may or may not be physical units, that is, they may be located in one place or distributed on multiple network units. Some or all of the units may be selected according to actual needs to achieve the purpose of the solution of this embodiment.
[0174] In addition, each functional unit in each embodiment of the present invention may be integrated into one processing unit, or each unit may exist physically separately, or two or more units may be integrated into one unit.
[0175] If the function is implemented in the form of a software functional unit and sold or used as an independent product, it 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, server, or network device, etc.) to perform all or part of the steps of the methods of each embodiment of the present invention. The aforementioned storage medium includes: U disk, mobile hard disk, read-only memory (ROM, Read-Only Memory), random access memory (RAM, Random Access Memory), disk or optical disk, etc. Various media that can store program codes.
[0176] Those skilled in the art can understand that all or part of the steps of implementing the above embodiments can be completed by hardware related to program instructions. The aforementioned program can be stored in a computer-readable storage medium. When the program is executed, the steps of the above embodiments are executed; and the aforementioned storage medium includes: ROM, RAM, disk or optical disk and other media that can store program codes.
[0177] Finally, it should be noted that those skilled in the art will readily conceive of other embodiments of the present invention after considering the specification and practicing the invention disclosed herein. The present invention is intended to cover any variations, uses or adaptations of the present invention, which follow the general principles of the present invention and include common knowledge or customary technical means in the art not disclosed by the present invention, are not limited to the precise structure described above and shown in the drawings, and may be modified and changed in various ways without departing from the scope thereof. The scope of the present invention is limited only by the appended claims.
Claims
1. A data processing system, characterized in that: Applied to a cryptanalysis device, the system comprises: a data acquisition module, a data preprocessing module, a data operation module and a processor; wherein the data preprocessing module comprises a plurality of parallel processing units; the processing unit is used to determine data that needs to be processed by pattern operation; the data operation module comprises at least one parallel operation unit; the operation unit is used to perform pattern operation processing; each of the processing units is connected in communication with the corresponding operation unit; The processor is used to generate a data acquisition signal in response to a data processing request, and send the data acquisition signal to the data acquisition module; wherein the data acquisition signal at least includes a first data bit width corresponding to the acquired data and a data acquisition quantity; The data acquisition module is used to acquire the to-be-processed data corresponding to the data acquisition signal after receiving the data acquisition signal, and transmit the to-be-processed data to the data pre-processing module; wherein the to-be-processed data indicates the signal data generated when the encryption device performs the first operation; The data preprocessing module is used to receive the data to be processed based on each of the processing units, and after determining the sub-data to be processed respectively received by each of the processing units, transmit each of the sub-data to be processed to the computing units respectively corresponding to each of the processing units; The data operation module is used to receive each of the sub-data to be processed based on each of the operation units, and obtain the operation reference data corresponding to each of the sub-data to be processed; based on the operation reference data corresponding to each of the sub-data to be processed, perform pattern operation processing on each of the sub-data to be processed to obtain a pattern operation result; wherein the operation reference data indicates the signal data generated when the encryption device performs the second operation; the first operation is associated with the second operation; and the pattern operation result indicates the degree of matching between the sub-data to be processed and the operation reference data.
2. The system according to claim 1, characterized in that In response to the data processing request, generating a data acquisition signal, including: In response to the data processing request, determining first frequency information corresponding to the data operation module; wherein the first frequency information indicates the highest frequency of data that can be processed by the data operation module; The first data bit width is determined based on the first frequency information and the bandwidth information of the data processing system, and the data acquisition signal is determined based on the first data bit width.
3. The system according to claim 1, characterized in that The data acquisition module includes an acquisition unit and a conversion unit; The acquisition unit is configured to acquire initial data after receiving the data acquisition signal, and determine a second data bit width corresponding to the initial data; compare the second data bit width with the first data bit width included in the data acquisition signal, and if it is determined that the second data bit width is different from the first data bit width, transmit the initial data to the conversion unit; The conversion unit is used to determine a bit width conversion ratio based on the first data bit width and the second data bit width, and perform bit width conversion processing on the initial data based on the bit width conversion ratio to obtain the data to be processed.
4. The system according to claim 3, characterized in that The number of processing units included in the data preprocessing module is associated with the bit width conversion ratio.
5. The system according to claim 3, characterized in that The data preprocessing module acquires multiple groups of to-be-processed data corresponding to the data acquisition signal; the number of processing units included in the data preprocessing module is determined based on the number of groups of the to-be-processed data and the bit width conversion ratio.
6. The system according to any one of claims 1 to 5, characterized in that: The processing unit includes a plurality of shifters, and the number of the shifters is associated with the data length of the data processed by the operation unit.
7. The system according to claim 6, characterized in that The shifter includes a multiplexer and at least one register; determining the sub-data to be processed received by each of the processing units respectively, including: The data to be stored in each of the registers is determined from the data to be processed based on the multiplexer, and the sub-data to be processed respectively received by each of the processing units is determined based on the data to be stored in each of the registers.
8. The system according to claim 7, characterized in that Determining data to be stored in each of the registers from the data to be processed based on the multiplexer includes: Determining the parallel order corresponding to the processing units; Based on the parallel sequence, determining the number of shift steps corresponding to each of the processing units; The data required to be stored in each register selected by the multiplexer from the data to be processed is determined based on the shift step number corresponding to the processing unit.
9. The system according to claim 8, characterized in that Determining the number of shift steps corresponding to each of the processing units based on the parallel sequence includes: Determining whether the data preprocessing module receives the data to be processed for the first time; If it is determined that the data preprocessing module receives the data to be processed for the first time, then determining that the number of shift steps corresponding to each of the processing units is equal to a target value; wherein the target value indicates the number of processing units included in the data preprocessing module; If it is determined that the data preprocessing module is not receiving the data to be processed for the first time, the parallel order corresponding to each of the processing units is determined as the number of shift steps corresponding to each of the processing units.
10. The system according to any one of claims 1 to 5, characterized in that: The system includes at least one chip; the data preprocessing module and the data operation module are deployed in the at least one chip.
11. A data processing method, characterized in that: Applied to a cryptographic analysis device; the method comprises: In response to a data processing request, a data acquisition signal is generated; wherein the data processing request is used to request a pattern operation processing to be performed on the data; the data acquisition signal at least includes a first data bit width and a data acquisition quantity corresponding to the acquired data; the first data bit width indicates a data bit width that can be processed by the operation unit performing the pattern operation processing; the data acquisition quantity indicates a data length that can be processed by the operation unit performing the pattern operation processing; Acquire the data to be processed corresponding to the data acquisition signal, and divide the data to be processed into a plurality of sub-data to be processed; wherein the number of the sub-data to be processed is determined based on the number of processing units included in the data preprocessing module in the cryptanalysis device; Obtain operation reference data corresponding to each of the sub-data to be processed, and based on the operation reference data corresponding to each of the sub-data to be processed, perform pattern operation processing on each of the sub-data to be processed to obtain a pattern operation result; wherein the pattern operation result indicates the degree of matching between the sub-data to be processed and the operation reference data.
12. The method according to claim 11, characterized in that The data acquisition signal also includes a bit width conversion ratio; the step of acquiring the data to be processed corresponding to the data acquisition signal includes: Acquire initial data corresponding to the data acquisition quantity in the data acquisition signal; The initial data is subjected to bit width conversion processing based on the bit width conversion ratio to obtain the data to be processed; wherein the bit width conversion ratio is determined based on a second data bit width corresponding to the initial data and a first data bit width included in a data acquisition signal.
