CN115629850A - Resource scheduling method and related device for encryption and decryption system - Google Patents

Resource scheduling method and related device for encryption and decryption system Download PDF

Info

Publication number
CN115629850A
CN115629850A CN202211156956.1A CN202211156956A CN115629850A CN 115629850 A CN115629850 A CN 115629850A CN 202211156956 A CN202211156956 A CN 202211156956A CN 115629850 A CN115629850 A CN 115629850A
Authority
CN
China
Prior art keywords
encryption
decryption
module
modules
multiplexing signal
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN202211156956.1A
Other languages
Chinese (zh)
Inventor
王长红
李拓
邹晓峰
刘凯
刘刚
满宏涛
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Shandong Yunhai Guochuang Cloud Computing Equipment Industry Innovation Center Co Ltd
Original Assignee
Shandong Yunhai Guochuang Cloud Computing Equipment Industry Innovation Center Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Shandong Yunhai Guochuang Cloud Computing Equipment Industry Innovation Center Co Ltd filed Critical Shandong Yunhai Guochuang Cloud Computing Equipment Industry Innovation Center Co Ltd
Priority to CN202211156956.1A priority Critical patent/CN115629850A/en
Publication of CN115629850A publication Critical patent/CN115629850A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/46Multiprogramming arrangements
    • G06F9/48Program initiating; Program switching, e.g. by interrupt
    • G06F9/4806Task transfer initiation or dispatching
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F1/00Details not covered by groups G06F3/00 - G06F13/00 and G06F21/00
    • G06F1/04Generating or distributing clock signals or signals derived directly therefrom
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F1/00Details not covered by groups G06F3/00 - G06F13/00 and G06F21/00
    • G06F1/24Resetting means
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F21/00Security arrangements for protecting computers, components thereof, programs or data against unauthorised activity
    • G06F21/60Protecting data
    • G06F21/602Providing cryptographic facilities or services
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F2211/00Indexing scheme relating to details of data-processing equipment not covered by groups G06F3/00 - G06F13/00
    • G06F2211/007Encryption, En-/decode, En-/decipher, En-/decypher, Scramble, (De-)compress

Abstract

The application discloses a resource scheduling method of an encryption and decryption system, which comprises the following steps: acquiring a control parameter; determining a first encryption and decryption calculation module and a second encryption and decryption calculation module from a plurality of encryption and decryption calculation modules based on the control parameters; controlling all the first encryption and decryption computing modules to process data to be processed to obtain processed data; and connecting the signal lines of the storage units of all the second encryption and decryption computing modules with a multiplexing signal line so that other equipment can perform read-write access on the storage units based on the multiplexing signal line. The storage unit is multiplexed, so that the resource utilization rate of the encryption and decryption system is improved. The application also discloses a resource scheduling device of the encryption and decryption system, terminal equipment and a computer readable storage medium, which have the beneficial effects.

Description

Resource scheduling method and related device for encryption and decryption system
Technical Field
The present application relates to, and in particular, to a resource scheduling method, a resource scheduling apparatus, a terminal device, and a computer-readable storage medium for an encryption/decryption system.
Background
With the continuous development of information technology, in order to enable an encryption and decryption system to complete encryption and decryption tasks of different applications, the hardware encryption and decryption logic in the chip can be designed to have the maximum throughput so as to complete encryption and decryption calculation with high performance.
In the related art, hardware encryption and decryption logic is generally designed to have throughput as high as possible so as to complete high-performance encryption and decryption calculation, but in some application scenarios with limited power consumption, the high-frequency operation of a large amount of hardware logic may cause instantaneous power consumption to be too high, and thus application requirements cannot be met; on the other hand, the encryption and decryption logic often uses more storage resources, and under the condition that all or part of the encryption and decryption logic does not perform encryption and decryption work, the occupied storage resources cannot be utilized, so that resource waste is caused.
Therefore, how to improve the resource utilization rate of the encryption and decryption system is a key issue of attention by those skilled in the art.
Disclosure of Invention
The present application aims to provide a resource scheduling method, a resource scheduling apparatus, a terminal device, and a computer-readable storage medium for an encryption/decryption system, which improve the resource utilization of the encryption/decryption system.
In order to solve the above technical problem, the present application provides a resource scheduling method for an encryption and decryption system, including:
acquiring a control parameter;
determining a first encryption and decryption calculation module and a second encryption and decryption calculation module from a plurality of encryption and decryption calculation modules based on the control parameters;
controlling all the first encryption and decryption computing modules to process data to be processed to obtain processed data;
and connecting the signal lines of the storage units of all the second encryption and decryption computing modules with a multiplexing signal line so that other equipment can perform read-write access on the storage units based on the multiplexing signal line.
Optionally, obtaining the control parameter includes:
acquiring an encryption and decryption target rate, an encryption and decryption module using number and a storage unit multiplexing signal;
judging whether the encryption and decryption target rate, the number of the encryption and decryption modules and the storage unit multiplexing signal meet preset conditions or not;
and if so, taking the encryption and decryption target rate, the number used by the encryption and decryption module and the storage unit multiplexing signal as the control parameters.
Optionally, determining the first encryption/decryption computing module and the second encryption/decryption computing module from the multiple encryption/decryption computing modules based on the control parameter includes:
and determining a first encryption and decryption calculation module for encryption and decryption and a second encryption and decryption calculation module for storage multiplexing in all encryption and decryption calculation modules based on the encryption and decryption module use number and the storage unit multiplexing signal in the control parameter.
Optionally, after the encryption/decryption target rate meets a preset condition, the method further includes:
calculating the clock frequency of the encryption and decryption target rate to obtain the target clock frequency;
and setting the target clock frequency for the first encryption and decryption calculation module.
Optionally, the controlling all the first encryption and decryption computing modules to process the data to be processed to obtain processed data includes:
determining a power supply control signal and a data input control signal based on the control parameter;
the first encryption and decryption computing module is powered on the basis of the power supply control signal;
inputting the data to be processed to all the first encryption and decryption calculation modules based on the data input control signal;
and processing the data to be processed through all the first encryption and decryption calculation modules to obtain the processed data.
Optionally, after obtaining the processed data, the method further includes:
and outputting the processed data according to the first-in first-out sequence.
Optionally, connecting signal lines of the storage units of all the second encryption and decryption computation modules to a multiplexing signal line, so that other devices perform read-write access to the storage units based on the multiplexing signal line, including:
setting the corresponding multiplexing signal line to an enable state based on the memory cell multiplexing signal of the control parameter;
and connecting the signal lines of the storage units of all the second encryption and decryption computing modules with the multiplexing signal line so that other equipment can perform read-write access on the storage units on the basis of the multiplexing signal line.
The present application further provides a resource scheduling apparatus for an encryption/decryption system, including:
the parameter acquisition module is used for acquiring control parameters;
the parameter processing module is used for determining a first encryption and decryption computing module and a second encryption and decryption computing module from a plurality of encryption and decryption computing modules based on the control parameters;
the encryption and decryption module scheduling module is used for controlling all the first encryption and decryption calculation modules to process data to be processed to obtain processed data;
and the storage unit scheduling module is used for connecting the signal lines of the storage units of the second encryption and decryption calculation module with a multiplexing signal line so that other equipment can perform read-write access on the storage units based on the multiplexing signal line.
The present application further provides a terminal device, including:
a memory for storing a computer program;
a processor for implementing the steps of the resource scheduling method as described above when executing the computer program.
The present application also provides a computer readable storage medium having stored thereon a computer program which, when being executed by a processor, realizes the steps of the resource scheduling method as described above.
The resource scheduling method of the encryption and decryption system provided by the application comprises the following steps: acquiring a control parameter; determining a first encryption and decryption calculation module and a second encryption and decryption calculation module from a plurality of encryption and decryption calculation modules based on the control parameters; controlling all the first encryption and decryption computing modules to process data to be processed to obtain processed data; and connecting the signal lines of the storage units of all the second encryption and decryption computing modules with a multiplexing signal line so that other equipment can perform read-write access on the storage units based on the multiplexing signal line.
The plurality of encryption and decryption computing modules in the encryption and decryption system are divided into a first encryption and decryption computing module and a second encryption and decryption computing module through the acquired control parameters, then the first encryption and decryption computing module is used for encryption and decryption computation, and the storage units of the second encryption and decryption computing module are multiplexed, so that the waste of storage resources is avoided, and the resource utilization rate of the encryption and decryption system is improved.
The present application further provides a resource scheduling apparatus, a terminal device, and a computer-readable storage medium of an encryption/decryption system, which have the above beneficial effects, and are not described herein again.
Drawings
In order to more clearly illustrate the embodiments of the present application or the technical solutions in the prior art, the drawings used in the embodiments or the prior art descriptions will be briefly described below, it is obvious that the drawings in the following description are only the embodiments of the present application, and for those skilled in the art, other drawings can be obtained according to the provided drawings without creative efforts.
Fig. 1 is a flowchart of a resource scheduling method of an encryption and decryption system according to an embodiment of the present application;
fig. 2 is a schematic structural diagram of an encryption and decryption system according to an embodiment of the present application;
fig. 3 is a schematic structural diagram of a resource scheduling apparatus of an encryption and decryption system according to an embodiment of the present application;
fig. 4 is a schematic structural diagram of a terminal device provided in the present application.
Detailed Description
The core of the application is to provide a resource scheduling method, a resource scheduling device, a terminal device and a computer readable storage medium of an encryption and decryption system, so as to improve the resource utilization rate of the encryption and decryption system.
In order to make the objects, technical solutions and advantages of the embodiments of the present application clearer, the technical solutions in the embodiments of the present application will be clearly and completely described below with reference to the drawings in the embodiments of the present application, and it is obvious that the described embodiments are some embodiments of the present application, but not all embodiments. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present application.
In the related art, hardware encryption and decryption logic is usually designed to have throughput as large as possible to complete high-performance encryption and decryption calculation, but in some application scenarios with limited power consumption, high-frequency operation of a large amount of hardware logic may cause instantaneous power consumption to be too high, and thus application requirements cannot be met; on the other hand, the encryption and decryption logic often uses more storage resources, and under the condition that all or part of the encryption and decryption logic does not perform encryption and decryption, the storage resources occupied by the encryption and decryption logic cannot be utilized, thereby causing resource waste.
Therefore, the application provides a resource scheduling method of an encryption and decryption system, which divides a plurality of encryption and decryption calculation modules in the encryption and decryption system into a first encryption and decryption calculation module and a second encryption and decryption calculation module through the acquired control parameters, then adopts the first encryption and decryption calculation module to perform encryption and decryption calculation, and reuses a storage unit of the second encryption and decryption calculation module, thereby avoiding the waste of storage resources and improving the resource utilization rate of the encryption and decryption system.
The following describes a resource scheduling method of an encryption and decryption system according to an embodiment.
Referring to fig. 1, fig. 1 is a flowchart illustrating a resource scheduling method of an encryption and decryption system according to an embodiment of the present disclosure.
In this embodiment, the method may include:
s101, acquiring control parameters;
this step aims at obtaining control parameters. Wherein, the control parameter is used for controlling the encryption and decryption processes. That is, this step aims to acquire a parameter for controlling the resources of the encryption/decryption system.
The obtained parameters may include an encryption/decryption target rate, a number of encryption/decryption modules used, and a storage unit multiplexing signal.
Further, whether the acquired parameters meet corresponding conditions or not can be judged. For example, it is determined whether the acquired encryption/decryption target rate is within a corresponding rate range.
Optionally, this step may include:
step 1, acquiring an encryption and decryption target rate, an encryption and decryption module use number and a storage unit multiplexing signal;
step 2, judging whether the encryption and decryption target rate, the number of the encryption and decryption modules and the multiplexing signals of the storage units meet preset conditions or not;
and 3, if so, taking the encryption and decryption target rate, the number of the encryption and decryption modules and the storage unit multiplexing signal as control parameters.
It can be seen that the present alternative is mainly to illustrate how the control parameters are obtained. In this alternative, the encryption/decryption target rate, the number of encryption/decryption modules used, and the storage unit multiplexing signal are obtained. Therefore, in the application, the encryption and decryption target rate, the number of the encryption and decryption modules and the storage unit multiplexing signal are obtained from the outside. The encryption and decryption target rate is used for representing the speed during encryption and decryption calculation, the number of encryption and decryption modules used is used for representing the number of modules required to be used in the encryption and decryption process, and the storage unit multiplexing signal is used for representing the number or the address of the storage units required to be multiplexed. Then, judging whether the target encryption and decryption rate, the number of the encryption and decryption modules and the multiplexing signals of the storage units meet preset conditions or not; if yes, the encryption and decryption target rate, the number of the encryption and decryption modules and the storage unit multiplexing signals are used as control parameters.
The preset condition may be set based on experience of a technician, may be set based on historical data, or may be set based on performance of the encryption/decryption system.
S102, determining a first encryption and decryption calculation module and a second encryption and decryption calculation module from a plurality of encryption and decryption calculation modules based on control parameters;
on the basis of S101, this step is intended to determine the first encryption/decryption calculation module and the second encryption/decryption calculation module based on the control parameter.
The number of the first encryption and decryption computing module and the second encryption and decryption computing module may be one or more.
The first encryption and decryption computing module is mainly used for performing encryption and decryption computing, and the second encryption and decryption computing module is mainly used for multiplexing storage units in the first encryption and decryption computing module so as to improve the resource utilization rate of the encryption and decryption system.
Optionally, this step may include:
and determining a first encryption and decryption calculation module for encryption and decryption and a second encryption and decryption calculation module for storage multiplexing in all encryption and decryption calculation modules based on the encryption and decryption module use number in the control parameter and the storage unit multiplexing signal.
Therefore, the technical scheme of the application mainly explains how to determine the classification of the computing module. In this alternative, the first encryption/decryption calculation module for encryption/decryption and the second encryption/decryption calculation module for storage multiplexing in all the encryption/decryption calculation modules are determined based on the number of encryption/decryption modules in the control parameter and the storage unit multiplexing signal.
Further, after the encryption/decryption target rate meets the preset condition, the embodiment may further include:
step 1, calculating clock frequency of an encryption and decryption target rate to obtain target clock frequency;
and 2, setting a target clock frequency for the first encryption and decryption calculation module.
Therefore, the technical scheme of the application mainly explains how to set the target clock frequency of the encryption and decryption system. In the alternative scheme, firstly, clock frequency calculation is carried out on an encryption and decryption target rate to obtain a target clock frequency; then, a target clock frequency is set for the first encryption/decryption calculation module. Therefore, in the alternative, after the encryption and decryption target rate is determined, the clock frequency can be calculated to obtain the target clock frequency. And finally, setting the target clock frequency for the encryption and decryption calculation module.
S103, controlling all the first encryption and decryption computing modules to process the data to be processed to obtain processed data;
on the basis of S102, this step aims to control all the first encryption/decryption computing modules to process the data to be processed, so as to obtain processed data. The first encryption/decryption computing module may perform encryption/decryption computing in any one of the encryption/decryption computing manners provided in the prior art, which is not limited herein.
Further, the step may include:
step 1, determining a power supply control signal and a data input control signal based on a control parameter;
step 2, supplying power to the first encryption and decryption calculation module based on the power supply control signal;
step 3, inputting the data to be processed to all the first encryption and decryption calculation modules based on the data input control signal;
and 4, processing the data to be processed through all the first encryption and decryption computing modules to obtain processed data.
It can be seen that in this alternative, it is mainly explained how encryption and decryption calculations are performed. In this alternative, the power supply control signal and the data input control signal are determined based on the control parameter; supplying power to the first encryption and decryption calculation module based on the power supply control signal; inputting the data to be processed to all the first encryption and decryption calculation modules based on the data input control signal; and processing the data to be processed through all the first encryption and decryption calculation modules to obtain processed data.
Further, after obtaining the processed data, the method further includes:
and outputting the processed data according to the first-in first-out sequence.
It can be seen that this alternative also illustrates how the processed data is output. Wherein, the processed data is output by selecting the order of first-in first-out.
And S104, connecting the signal lines of the storage units of all the second encryption and decryption calculation modules with the multiplexing signal line so that other equipment can perform read-write access on the storage units based on the multiplexing signal line.
On the basis of S102, this step is intended to connect the signal lines of the memory cells of all the second encryption/decryption computation modules with the multiplexed signal line, so that other devices perform read-write access to the memory cells based on the multiplexed signal line.
Further, the step may include:
step 1, setting a corresponding multiplexing signal line to be in an enabling state based on a memory cell multiplexing signal of a control parameter;
and 2, connecting the signal lines of the storage units of all the second encryption and decryption calculation modules with the multiplexing signal line so that other equipment can perform read-write access on the storage units based on the multiplexing signal line.
In summary, in this embodiment, the plurality of encryption and decryption computing modules in the encryption and decryption system are divided into the first encryption and decryption computing module and the second encryption and decryption computing module through the acquired control parameter, then the first encryption and decryption computing module is used for performing encryption and decryption computation, and the storage unit of the second encryption and decryption computing module is multiplexed, so that the waste of storage resources is avoided, and the resource utilization rate of the encryption and decryption system is improved.
The resource scheduling method of an encryption and decryption system provided by the present application is further described below by using another specific embodiment.
Referring to fig. 2, fig. 2 is a schematic structural diagram of an encryption and decryption system according to an embodiment of the present disclosure.
The encryption and decryption system in this embodiment may include a parameter adaptation module, a dynamic management module, and an encryption and decryption calculation module array.
The input signal of the parameter adaptation module comprises an encryption and decryption target rate H (H is greater than or equal to 0 and less than or equal to H, H is the maximum encryption and decryption rate which can be completed by the system), the number N of the encryption and decryption modules occupied by the encryption and decryption modules (N is greater than or equal to 1 and less than or equal to N, N encryption and decryption computing modules are shared in the encryption and decryption computing module array), an SRAM multiplexing signal Smux1 (N bit signal, when the value of the nth bit is 1, the multiplexing of the SRAM in the nth encryption and decryption computing module is indicated), an output signal has a parameter adaptation result R (N bit signal, which indicates whether the input parameter can be successfully adapted, the N bits are all 0, the N bits are failed, otherwise, the nth bit is 1, the nth encryption and decryption computing module is used for encryption and decryption computation), an operating frequency Freq of the encryption and decryption module, and an SRAM control signal Smux2 (the same as Smux 1). The input signals H and N of the parameter adaptation module need to satisfy that H/H is larger than or equal to N, the total number of 1 in the Smux1 signal is smaller than or equal to N-N, and the parameter adaptation module can complete adaptation.
The interface signals of the dynamic management module include a parameter adaptation result R, an SRAM control signal Smux2, an encryption/decryption module operating frequency Freq, an output clock signal Clk, an output power control signal P (N-bit signal, where the nth bit is 1, which indicates that the nth encryption/decryption computing module is normally powered, and 0 indicates that the nth encryption/decryption computing module is powered off, and the signal P is composed of 1 of R and Smux 2), N sets of SRAM external interface signals SRAME _ N (each set of interface signals includes an enable signal, an address signal, a data signal, etc. of a corresponding SRAM), and N sets of SRAM internal interface signals SRAMI _ N (each set of interface signals includes an enable signal, an address signal, a data signal, etc. of a corresponding SRAM). The Freq signal output by the parameter adaptation module is input into the dynamic management module, and the dynamic management module adjusts and outputs the clock signal Clk (a DPLL mode can be adopted) according to the Freq value, so that the actual frequency of the Clk signal is consistent with the Freq value. The output signal P of the dynamic management module directly controls the power supplies of the N encryption and decryption calculation modules and only supplies power for the encryption and decryption calculation module which carries out encryption and decryption calculation and SRAM multiplexing.
The encryption and decryption computing module array comprises N encryption and decryption computing modules and 1 encryption and decryption resource scheduling module. The encryption and decryption computing module is used for carrying out actual encryption and decryption operation, and the encryption and decryption resource scheduling module has the main function of scheduling the corresponding encryption and decryption computing module to work according to the parameter adaptation result R, and comprises the steps of distributing data to be processed to different encryption and decryption computing modules and outputting processed data output by different encryption and decryption computing modules in sequence.
Based on the structure of the encryption and decryption system, the operation steps in this embodiment may include:
step 1, inputting an encryption and decryption target speed H, enabling an encryption and decryption module to occupy a target number N, multiplexing a signal Smux1 by an SRAM, calculating an input parameter by a parameter adaptation module, and if H/H is larger than or equal to N and the total number of 1 in the Smux1 signal is smaller than or equal to N-N, indicating that parameter adaptation is successful, jumping to step 2, and otherwise jumping to the step 1 to start to input the parameter again;
step 2, the dynamic management module calculates P according to R and Smux2 and outputs the P to the encryption and decryption calculation module array;
step 3, the dynamic management module adjusts the frequency value of the clock signal Clk according to the Freq value and outputs the frequency value to the encryption and decryption calculation module array;
step 4, enabling the corresponding SRAME _ N and SRAMI _ N signals by the dynamic management module according to the position corresponding to 1 in the Smux2 with N bits, that is, when the nth bit in the Smux2 is 1, enabling SRAME _ N and SRAMI _ N, and enabling the remaining SRAME _ m and SRAMI _ m to be in a non-enabled state (the mth bit in the Smux2 is 0), after SRAME _ N and SRAMI _ N are enabled, connecting SRAME _ N [0 ] and SRAMI _ N [ 0;
step 5, the encryption and decryption computing module array turns off the power supply of the unused encryption and decryption computing module according to the P value in the step 2, and when the value corresponding to the nth bit in the N-bit P value is 0, the power supply of the nth encryption and decryption computing module is turned off;
step 6, the encryption and decryption computing module without the power supply being turned off works under the Clk output in the step 3;
step 7, an encryption and decryption resource scheduling module in the encryption and decryption computing module array schedules input data to be processed to an effective encryption and decryption computing module according to the R value (the scheduling can be performed according to a sequence from low to high, if the 1 st, 2 nd and 3 rd bits of R are 1, the 1 st group of data to be processed is scheduled to the 1 st encryption and decryption computing module, the 2 nd group of data to be processed is scheduled to the 2 nd encryption and decryption computing module, and the 3 rd group of data to be processed is scheduled to the 3 rd encryption and decryption computing module);
and 8, after the encryption and decryption calculation module finishes the encryption and decryption calculation, the encryption and decryption resource scheduling module outputs the encryption and decryption results of the modules according to the input sequence (first in first out, the 1 st group outputs after the 1 st group of data to be processed is calculated, the 2 nd group outputs after the 2 nd group of data to be processed is calculated, and the like). Therefore, part of encryption and decryption computing modules can work under the Clk to complete encryption and decryption computing, and instantaneous power consumption is effectively reduced under the condition that the encryption and decryption throughput requirements are met; and the SRAM in the encryption and decryption computing module corresponding to Smux2 can complete read-write access through the SRAME _ n signal, so that idle encryption and decryption computing module resources are effectively utilized.
It can be seen that, in this embodiment, the obtained control parameter divides a plurality of encryption and decryption calculation modules in the encryption and decryption system into a first encryption and decryption calculation module and a second encryption and decryption calculation module, and then the first encryption and decryption calculation module is used for performing encryption and decryption calculation, and a storage unit of the second encryption and decryption calculation module is multiplexed, thereby avoiding waste of storage resources and improving the resource utilization rate of the encryption and decryption system.
In the following, the resource scheduling apparatus of the encryption and decryption system provided in the embodiment of the present application is introduced, and the resource scheduling apparatus of the encryption and decryption system described below and the resource scheduling method of the encryption and decryption system described above may be referred to correspondingly.
Referring to fig. 3, fig. 3 is a schematic structural diagram of a resource scheduling apparatus of an encryption/decryption system according to an embodiment of the present disclosure.
In this embodiment, the apparatus may include:
a parameter obtaining module 100, configured to obtain a control parameter;
a parameter processing module 200, configured to determine a first encryption/decryption computing module and a second encryption/decryption computing module from multiple encryption/decryption computing modules based on a control parameter;
the encryption and decryption module scheduling module 300 is configured to control all the first encryption and decryption calculation modules to process data to be processed, so as to obtain processed data;
and a storage unit scheduling module 400, configured to connect signal lines of storage units of all the second encryption/decryption calculation modules to a multiplexing signal line, so that other devices perform read/write access on the storage units based on the multiplexing signal line.
Optionally, the parameter obtaining module 100 is specifically configured to obtain an encryption/decryption target rate, an encryption/decryption module usage number, and a storage unit multiplexing signal; judging whether the encryption and decryption target rate, the number of the encryption and decryption modules and the multiplexing signals of the storage unit meet preset conditions or not; if yes, the encryption and decryption target rate, the number used by the encryption and decryption module and the storage unit multiplexing signal are used as control parameters.
Optionally, the parameter processing module 200 is specifically configured to determine, based on the number of encryption/decryption modules used in the control parameter and the storage unit multiplexing signal, a first encryption/decryption computing module used for encryption/decryption and a second encryption/decryption computing module used for storage multiplexing in all encryption/decryption computing modules.
Optionally, the encryption and decryption module scheduling module 300 is specifically configured to determine a power supply control signal and a data input control signal based on the control parameter; supplying power to the first encryption and decryption calculation module based on the power supply control signal; inputting the data to be processed to all the first encryption and decryption calculation modules based on the data input control signal; and processing the data to be processed through all the first encryption and decryption computing modules to obtain processed data.
Optionally, the memory unit scheduling module 400 is specifically configured to set the corresponding multiplexing signal line to be in an enable state based on the memory unit multiplexing signal of the control parameter; and connecting the signal lines of the storage units of all the second encryption and decryption computing modules with the multiplexing signal line so that other equipment can read and write the storage units based on the multiplexing signal line.
Referring to fig. 4, fig. 4 is a schematic structural diagram of a terminal device provided in the present application, where the terminal device may include:
a memory for storing a computer program;
the processor, when being used for executing the computer program, can implement the steps of the resource scheduling method of any one of the encryption and decryption systems.
As shown in fig. 4, which is a schematic diagram of a structure of a terminal device, the terminal device may include: a processor 10, a memory 11, a communication interface 12 and a communication bus 13. The processor 10, the memory 11 and the communication interface 12 all communicate with each other through a communication bus 13.
In the embodiment of the present application, the processor 10 may be a Central Processing Unit (CPU), an application specific integrated circuit, a digital signal processor, a field programmable gate array or other programmable logic device, etc.
The processor 10 may call a program stored in the memory 11, and in particular, the processor 10 may perform operations in an embodiment of the exception IP recognition method.
The memory 11 is used for storing one or more programs, the program may include program codes, the program codes include computer operation instructions, in this embodiment, the memory 11 stores at least the program for implementing the following functions:
acquiring a control parameter;
determining a first encryption and decryption calculation module and a second encryption and decryption calculation module from a plurality of encryption and decryption calculation modules based on the control parameters;
controlling all the first encryption and decryption computing modules to process data to be processed to obtain processed data;
and connecting the signal lines of the storage units of all the second encryption and decryption computing modules with the multiplexing signal line so that other equipment can perform read-write access on the storage units based on the multiplexing signal line.
In one possible implementation, the memory 11 may include a program storage area and a data storage area, wherein the program storage area may store an operating system, an application program required for at least one function, and the like; the storage data area may store data created during use.
Further, the memory 11 may include high speed random access memory, and may also include non-volatile memory, such as at least one magnetic disk storage device or other volatile solid state storage device.
The communication interface 12 may be an interface of a communication module for connecting with other devices or systems.
Of course, it should be noted that the structure shown in fig. 4 does not constitute a limitation to the terminal device in the embodiment of the present application, and in practical applications, the terminal device may include more or less components than those shown in fig. 4, or some components may be combined.
The present application further provides a computer-readable storage medium, which stores a computer program, and when the computer program is executed by a processor, the steps of the resource scheduling method of the encryption and decryption system can be implemented as described above.
The computer-readable storage medium may include: various media capable of storing program codes, such as a usb disk, a removable hard disk, a Read-Only Memory (ROM), a Random Access Memory (RAM), a magnetic disk, or an optical disk.
For the introduction of the computer-readable storage medium provided in the present application, please refer to the above method embodiments, which are not described herein again.
The embodiments are described in a progressive manner in the specification, each embodiment focuses on differences from other embodiments, and the same and similar parts among the embodiments are referred to each other. The device disclosed in the embodiment corresponds to the method disclosed in the embodiment, so that the description is simple, and the relevant points can be referred to the description of the method part.
Those of skill would further appreciate that the various illustrative components and algorithm steps described in connection with the embodiments disclosed herein may be implemented as electronic hardware, computer software, or combinations of both, and that the components and steps of the various examples have been described above generally in terms of their functionality in order to clearly illustrate this interchangeability of hardware and software. Whether such functionality is implemented as hardware or software depends upon the particular application and design constraints imposed on the implementation. Skilled artisans may implement the described functionality in varying ways for each particular application, but such implementation decisions should not be interpreted as causing a departure from the scope of the present application.
The steps of a method or algorithm described in connection with the embodiments disclosed herein may be embodied directly in hardware, in a software module executed by a processor, or in a combination of the two. A software module may reside in Random Access Memory (RAM), memory, read Only Memory (ROM), electrically programmable ROM, electrically erasable programmable ROM, registers, hard disk, a removable disk, a CD-ROM, or any other form of storage medium known in the art.
The resource scheduling method, the resource scheduling apparatus, the terminal device, and the computer-readable storage medium of the encryption and decryption system provided in the present application are described in detail above. The principles and embodiments of the present application are explained herein using specific examples, which are provided only to help understand the method and the core idea of the present application. It should be noted that, for those skilled in the art, it is possible to make several improvements and modifications to the present application without departing from the principle of the present application, and such improvements and modifications also fall within the scope of the claims of the present application.

Claims (10)

1. A resource scheduling method of an encryption and decryption system is characterized by comprising the following steps:
acquiring a control parameter;
determining a first encryption and decryption calculation module and a second encryption and decryption calculation module from a plurality of encryption and decryption calculation modules based on the control parameters;
controlling all the first encryption and decryption computing modules to process data to be processed to obtain processed data;
and connecting the signal lines of the storage units of all the second encryption and decryption computing modules with a multiplexing signal line so that other equipment can perform read-write access on the storage units based on the multiplexing signal line.
2. The method of claim 1, wherein obtaining the control parameter comprises:
acquiring an encryption and decryption target rate, the number of encryption and decryption modules and a storage unit multiplexing signal;
judging whether the encryption and decryption target rate, the number of the encryption and decryption modules and the storage unit multiplexing signal meet preset conditions or not;
and if so, taking the encryption and decryption target rate, the number used by the encryption and decryption module and the storage unit multiplexing signal as the control parameters.
3. The method according to claim 2, wherein determining the first encryption/decryption calculation module and the second encryption/decryption calculation module from the plurality of encryption/decryption calculation modules based on the control parameter comprises:
and determining a first encryption and decryption calculation module for encryption and decryption and a second encryption and decryption calculation module for storage multiplexing in all encryption and decryption calculation modules based on the encryption and decryption module use number and the storage unit multiplexing signal in the control parameter.
4. The method according to claim 3, further comprising, after the encryption/decryption target rate meets a preset condition:
calculating the clock frequency of the encryption and decryption target rate to obtain a target clock frequency;
and setting the target clock frequency for the first encryption and decryption calculation module.
5. The method according to claim 1, wherein controlling all the first encryption/decryption computing modules to process the data to be processed to obtain processed data comprises:
determining a power supply control signal and a data input control signal based on the control parameter;
the first encryption and decryption computing module is powered on the basis of the power supply control signal;
inputting the data to be processed to all the first encryption and decryption calculation modules based on the data input control signal;
and processing the data to be processed through all the first encryption and decryption calculation modules to obtain the processed data.
6. The method of claim 5, further comprising, after obtaining the processed data, the step of:
and outputting the processed data according to the first-in first-out sequence.
7. The method according to claim 1, wherein connecting signal lines of all the storage units of the second encryption/decryption computation module to a multiplexing signal line so that other devices perform read/write access to the storage units based on the multiplexing signal line comprises:
setting the corresponding multiplexing signal line to an enable state based on the memory cell multiplexing signal of the control parameter;
and connecting the signal lines of the storage units of all the second encryption and decryption computing modules with the multiplexing signal line so that other equipment can perform read-write access on the storage units on the basis of the multiplexing signal line.
8. A resource scheduling apparatus of an encryption/decryption system, comprising:
the parameter acquisition module is used for acquiring control parameters;
the parameter processing module is used for determining a first encryption and decryption computing module and a second encryption and decryption computing module from a plurality of encryption and decryption computing modules based on the control parameters;
the encryption and decryption module scheduling module is used for controlling all the first encryption and decryption calculation modules to process data to be processed to obtain processed data;
and the storage unit scheduling module is used for connecting the signal lines of the storage units of the second encryption and decryption calculation module with a multiplexing signal line so that other equipment can perform read-write access on the storage units based on the multiplexing signal line.
9. A terminal device, comprising:
a memory for storing a computer program;
a processor for implementing the steps of the resource scheduling method according to any one of claims 1 to 7 when executing the computer program.
10. A computer-readable storage medium, characterized in that a computer program is stored thereon, which computer program, when being executed by a processor, carries out the steps of the resource scheduling method according to any one of claims 1 to 7.
CN202211156956.1A 2022-09-22 2022-09-22 Resource scheduling method and related device for encryption and decryption system Pending CN115629850A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202211156956.1A CN115629850A (en) 2022-09-22 2022-09-22 Resource scheduling method and related device for encryption and decryption system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202211156956.1A CN115629850A (en) 2022-09-22 2022-09-22 Resource scheduling method and related device for encryption and decryption system

Publications (1)

Publication Number Publication Date
CN115629850A true CN115629850A (en) 2023-01-20

Family

ID=84903242

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202211156956.1A Pending CN115629850A (en) 2022-09-22 2022-09-22 Resource scheduling method and related device for encryption and decryption system

Country Status (1)

Country Link
CN (1) CN115629850A (en)

Similar Documents

Publication Publication Date Title
US7500028B2 (en) DMA controller providing for ring buffer and rectangular block transfers
US8028179B2 (en) Determining expected exceeding of maximum allowed power consumption of a mobile electronic device
CN105511806A (en) Method for processing write request and mobile terminal
CN111245732A (en) Flow control method, device and equipment
CN111967608A (en) Data processing method, device, equipment and storage medium
US7328354B2 (en) Apparatus and method for real-time adjusting system performance of a computer
MX2011000292A (en) Processing system with external memory access control.
JPH0876874A (en) Device and method for controlling clock of central processing unit
CN111274010A (en) Data control method and device, electronic equipment and storage medium
CN110704084A (en) Method and device for dynamically allocating memory in firmware upgrade, computer equipment and storage medium
CN111459682B (en) Frequency adjustment method, device, electronic equipment and storage medium
CN115629850A (en) Resource scheduling method and related device for encryption and decryption system
KR20090052796A (en) Information processing apparatus having memory clock setting function and memory clock setting method
CN117056054A (en) Interrupt control method, interrupt controller, computer device, and storage medium
CN109032503B (en) Flow control method and device for data migration bandwidth of solid state disk
CN107256078B (en) Dynamic voltage frequency adjusting method and device
CN112748883B (en) IO request pipeline processing device, method, system and storage medium
CN104391564A (en) Power consumption control method and device
CN111459634B (en) Task scheduling method, device, terminal and storage medium
CN110018793B (en) Host IO processing control method and device, terminal and readable storage medium
CN114138444A (en) Task scheduling method, device, equipment, storage medium and program product
CN114139700A (en) Data processing method and device based on CNN accelerator and related equipment
CN114416326A (en) Big data control method, device, control system and readable storage medium
CN110955644A (en) IO control method, device, equipment and storage medium of storage system
CN112148470A (en) Parameter synchronization method, computer device and readable storage medium

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination