Summary of the invention
Starting control method, device and the equipment for being designed to provide a kind of target component of the application, so as to effectively
Evade firmware file and attacked and distorted, and then ensure target component clean boot operation, improves the security performance of system.
In order to solve the above technical problems, the application provides a kind of starting control method of target component, be applied to it is described
The predetermined encryption device of target component connection, comprising:
Receive the starting notification signal that target component is sent;
Read the encrypted firmware file for the target component being stored in default Flash;The encrypted firmware file is pre-
It is first encrypted and is generated by the predetermined encryption device;
The encrypted firmware file is decrypted;
The decryption firmware file of generation is sent to the target component, so that the target component operation decryption is solid
Part file completes starting.
Optionally, the encrypted firmware file is pre-generated especially by following steps:
After the target component is managed purview certification and authenticates successfully according to the authentication information of input, described in reception
The firmware encrypting signal that target component is sent;
The former firmware file of the target component is encrypted;
The encrypted firmware file of generation is sent to the default Flash.
Optionally, the former firmware file to the target component, which encrypt, includes:
It is encrypted using former firmware file of the SM4 algorithm to the target component;
The described encrypted firmware file is decrypted include:
The encrypted firmware file is decrypted using SM4 algorithm.
Optionally, after the firmware encrypting signal for receiving the target component transmission, the use SM4 algorithm pair
Before the former firmware file of the target component is encrypted, further includes:
After the key of the SM4 algorithm of input is sent to the predetermined encryption device by the target component, by institute
Key storage is stated in the EPROM of the predetermined encryption device.
Optionally, the target component is following any one:
BMC, network interface card, hard disk, RAID card.
Optionally, the predetermined encryption device is CPLD or FPGA.
Present invention also provides the starting control methods of another target component, are applied to the target component, comprising:
To predetermined encryption device send starting notification signal, so as to the predetermined encryption device reading be stored in it is default
The encrypted firmware file of the target component in Flash is simultaneously decrypted;The encrypted firmware file is in advance by described default
Encryption devices encryption generates;
Receive the decryption firmware file that the predetermined encryption device is sent;
The decryption firmware file is run to complete to start.
Present invention also provides a kind of starting control devices of target component, pre- applied to connecting with the target component
If encryption devices, comprising:
Signal receiving module, for receiving the starting notification signal of target component transmission;
File read module, for reading the encrypted firmware file for the target component being stored in default Flash;
File encryption module generates the encrypted firmware file for encrypting in advance, and is sent to the default Flash;
File decryption module, for the encrypted firmware file that file read module is read to be decrypted;
File sending module, for the decryption firmware file of generation to be sent to the target component, so as to the target
Component runs the decryption firmware file and completes starting.
Present invention also provides the starting control devices of another target component, are applied to the target component, comprising:
Signal transmitting module, for sending starting notification signal to predetermined encryption device, so as to the predetermined encryption device
It reads the encrypted firmware file for the target component being stored in default Flash and is decrypted;The encrypted firmware file
It is encrypted and is generated by the predetermined encryption device in advance;
File reception module, the decryption firmware file sent for receiving the predetermined encryption device;
Starting operation module, completes to start for running the decryption firmware file.
Equipment is controlled present invention also provides a kind of starting of target component, including target component, default Flash and default
Encryption devices;
The institute of the target component generated through predetermined encryption device encryption is previously stored in the default Flash
State encrypted firmware file;The predetermined encryption device is connect with the target component and the default Flash respectively, for executing
Any starting control method applied to predetermined encryption device as described above;The target component is for executing as described above
The starting control method applied to target component.
The starting control method of target component provided herein, applied to connect with the target component default plus
Close device, comprising: receive the starting notification signal that target component is sent;Read the target portion being stored in default Flash
The encrypted firmware file of part;The encrypted firmware file is encrypted by the predetermined encryption device generate in advance;It is solid to the encryption
Part file is decrypted;The decryption firmware file of generation is sent to the target component, so that the target component runs institute
It states decryption firmware file and completes starting.
As it can be seen that compared with the prior art, in the starting control method of target component provided herein, presetting Flash
Middle storage is the encrypted firmware file generated through the encryption of predetermined encryption device, and target component is added in electrifying startup by default
It, can the completion starting of normal load firmware file after encrypted firmware file is decrypted in close device.The application can be effective as a result,
It prevents hacker from the illegal operations such as cracking, steal and distorting to firmware file, and then ensures that target component safely starts operation,
The security performance of raising system.Above-mentioned target may be implemented in the starting control device and equipment of target component provided herein
The starting control method of component equally has above-mentioned beneficial effect.
Specific embodiment
The core of the application is to provide starting control method, device and the equipment of a kind of target component, so as to effectively
Evade firmware file and attacked and distorted, and then ensure target component clean boot operation, improves the security performance of system.
In order to which technical solutions in the embodiments of the present application is more clearly and completely described, below in conjunction with this Shen
Please attached drawing in embodiment, technical solutions in the embodiments of the present application is introduced.Obviously, described embodiment is only
Some embodiments of the present application, instead of all the embodiments.Based on the embodiment in the application, those of ordinary skill in the art
Every other embodiment obtained without making creative work, shall fall in the protection scope of this application.
Referring to FIG. 2, Fig. 2 is the storage mode schematic diagram of the firmware file of target component provided herein.
Connect respectively with target component and default Flash as shown in Fig. 2, the application on the basis of existing technology, is additionally arranged
The predetermined encryption device connect.As its name suggests, predetermined encryption device can execute encryption and decryption operation to the firmware file of target component,
To improve the storage safety of firmware file.And default Flash is used to store the firmware file of target component, it is accurate for, be
For storing through the encrypted encrypted firmware file of predetermined encryption device.When target component electrifying startup, by predetermined encryption device
Part reads encrypted firmware file from default Flash, and is decrypted, and the decryption firmware file of generation is just sent to target component
Operation.
Referring to FIG. 3, Fig. 3 is a kind of flow chart of the starting control method of target component provided herein, application
In the predetermined encryption device being connect with the target component, mainly comprise the steps that
S31: the starting notification signal that target component is sent is received.
S32: the encrypted firmware file for the target component being stored in default Flash is read;Encrypted firmware file in advance by
The encryption of predetermined encryption device generates.
S33: encrypted firmware file is decrypted.
S34: being sent to target component for the decryption firmware file of generation, so that target component operation decryption firmware file is complete
At starting.
Specifically, as previously mentioned, predetermined encryption device is used to carry out encryption and decryption, administrator to the firmware file of target component
Member can advance with predetermined encryption device and encrypt to not encrypted former firmware file, generate encrypted firmware file, and deposit
Storage is in default Flash.
After server master board powers on, target component must also establish beginning starting by cable, send starting notice to predetermined encryption device
Signal.After predetermined encryption device receives starting notification signal, it is solid that pre-stored encryption can be read from default Flash
Part file is simultaneously decrypted, and generates the decryption firmware file that operation is loaded directly into for target component, and be sent to target component.
To which target component can run the decryption firmware file and complete starting.
Wherein, as a kind of specific embodiment, target component be specifically as follows it is following any one: BMC, hard disk, network interface card,
RAID card.
Wherein, BMC (Baseboard Management Controller, baseboard management controller) is substantially one
Based on the embedded OS for the linux system kernel simplified, since BMC chip is volatibility device, i.e., after BMC power down its
The information such as program, variable that inside saves can lose, thus BMC need outside non-volatile device such as Flash etc. save
Program file, the i.e. firmware file of BMC.BMC needs to read and run the firmware file in Flash in each electrifying startup
To carry out the guidance and load of program, starting is completed.Also, considers in autonomous controllable, safe and reliable factor, recommend to use
Domestic BMC.
Preferably, predetermined encryption device is CPLD or FPGA.
Specifically, CPLD (Complex Programmable Logic Device, Complex Programmable Logic Devices) or
FPGA (Field-Programmable Gate Array, field programmable gate array) is the higher device of safety, this
Body has anti-read-write protection mechanism, and process performance is high, both can ensure depositing for firmware file by executing encryption and decryption operation
Storage safety, and can safeguards system starting speed.
Certainly, those skilled in the art can also use other predetermined encryption devices, can also carry out to other target components
The protection of firmware file, the application are not limited thereto.
As it can be seen that is stored in default Flash is through default in the starting control method of target component provided herein
The encrypted firmware file that encryption devices encryption generates, target component is in electrifying startup, by predetermined encryption device to encrypted firmware
It, can the completion starting of normal load firmware file after file is decrypted.The application can effectively prevent hacker to firmware text as a result,
Part such as cracks, steals and distorts at the illegal operations, and then ensures that target component safely starts operation, improves the safety of system
Energy.
Referring to FIG. 4, Fig. 4 is a kind of flow chart of the method for generation encrypted firmware file provided herein.
As shown in figure 4, on the basis of the above, the starting control method of target component provided herein, tool
Body, encrypted firmware file is pre-generated especially by following steps:
S41: after target component is managed purview certification and authenticates successfully according to the authentication information of input, target is received
The firmware encrypting signal that component is sent.
S42: the former firmware file of target component is encrypted.
S43: the encrypted firmware file of generation is sent to default Flash.
Specifically, in order to further improve the security can, advance with predetermined encryption device encryption generate encrypted firmware text
Permission can be set in the process of part, i.e., only enables through the administrator of purview certification and execute encryption to former firmware file and rewrite pre-
If the operation of Flash.
Specifically, after the authentication information of user's input has passed through the purview certification to target component, target component can
Corresponding firmware encrypting signal is sent to predetermined encryption device, predetermined encryption device just executes the cryptographic operation to firmware file,
And the encrypted firmware file of generation is sent to default Flash and is stored.
On the basis of the above, the starting control method of target component provided herein, as a kind of preferred
Embodiment, to the former firmware file of target component carry out encryption include: using SM4 algorithm to the former firmware file of target component into
Row encryption;It includes: that encrypted firmware file is decrypted using SM4 algorithm that encrypted firmware file, which is decrypted,.
Specifically, SM4 algorithm is the symmetric cryptographic algorithm of national Password Management office approval, is mainly used in Local Area Network products
Field.The block length of the algorithm is 128bit, key length 128bit, and because of its reliability with higher and safety
And it is widely used in information security.Those skilled in the art can be realized in predetermined encryption device by corresponding first design
The algorithm, for example, VHDL (hardware description language) can be used specifically to realize logical design.
Referring to FIG. 5, the flow chart of another method for generating encrypted firmware file Fig. 5 provided herein.
On the basis of the above, the starting control method of target component provided herein, as a kind of preferred
Embodiment, to the former firmware file of target component after receiving the firmware encrypting signal that target component is sent, using SM4 algorithm
Before being encrypted, further includes:
S52: after the key of the SM4 algorithm of input is sent to predetermined encryption device by target component, key storage is existed
In the EPROM of predetermined encryption device.
And SM4 specifically, recommend but be not limited to by predetermined encryption device by the key storage of SM4 algorithm in EPROM, i.e.,
The program code segments subregion of algorithm is stored.EPROM not only has non-volatile, but also safety is higher, and hackers generally can not
Its content is read, thus can further ensure the safety of target component electrifying startup.
Referring to FIG. 6, Fig. 6 is the flow chart of the starting control method of another target component provided herein, answer
For target component, comprising the following steps:
S61: to predetermined encryption device send starting notification signal, so as to predetermined encryption device reading be stored in it is default
The encrypted firmware file of target component in Flash is simultaneously decrypted;Encrypted firmware file is encrypted by predetermined encryption device in advance
It generates;
S62: the decryption firmware file that predetermined encryption device is sent is received;
S63: operation decrypts firmware file to complete to start.
Related content is referring to FIG. 3, detailed content just repeats no more here.
As it can be seen that is stored in default Flash is through default in the starting control method of target component provided herein
The encrypted firmware file that encryption devices encryption generates, target component is in electrifying startup, by predetermined encryption device to encrypted firmware
It, can the completion starting of normal load firmware file after file is decrypted.The application can effectively prevent hacker to firmware text as a result,
Part such as cracks, steals and distorts at the illegal operations, and then ensures that target component safely starts operation, improves the safety of system
Energy.
The starting control device of target component provided herein is introduced below.
Referring to Fig. 7, Fig. 7 is a kind of structural block diagram of the starting control device of target component provided herein, answer
Predetermined encryption device for being connect with target component, comprising:
Signal receiving module 71, for receiving the starting notification signal of target component transmission;
File read module 72, for reading the encrypted firmware file for the target component being stored in default Flash;
File encryption module 73 generates encrypted firmware file for encrypting in advance, and is sent to default Flash;
File decryption module 74, the encrypted firmware file for reading to file read module are decrypted;
File sending module 75, for the decryption firmware file of generation to be sent to target component, so as to target component fortune
Row decryption firmware file completes starting.
Referring to Fig. 8, Fig. 8 is the structural block diagram of the starting control device of another target component provided herein,
Applied to target component, comprising:
Signal transmitting module 81, for sending starting notification signal to predetermined encryption device, so as to the reading of predetermined encryption device
It takes the encrypted firmware file for the target component being stored in default Flash and is decrypted;Encrypted firmware file is in advance by presetting
Encryption devices encryption generates;
File reception module 82, for receiving the decryption firmware file of predetermined encryption device transmission;
Starting operation module 83, completes to start for running decryption firmware file.
As it can be seen that is stored in default Flash is through default in the starting control device of target component provided herein
The encrypted firmware file that encryption devices encryption generates, target component is in electrifying startup, by predetermined encryption device to encrypted firmware
It, can the completion starting of normal load firmware file after file is decrypted.The application can effectively prevent hacker to firmware text as a result,
Part such as cracks, steals and distorts at the illegal operations, and then ensures that target component safely starts operation, improves the safety of system
Energy.
Equipment is controlled present invention also provides a kind of starting of target component, including target component, default Flash and default
Encryption devices;
The encrypted firmware file of the target component generated through the encryption of predetermined encryption device is previously stored in default Flash;
The predetermined encryption device is connect with target component and default Flash respectively, for executing any as described above be applied to
The starting control method of predetermined encryption device;The target component is used to execute the starting as described above for being applied to target component
Control method.
The specific embodiment and target as described above of the starting control device of target component provided herein
The starting control method of component can correspond to each other reference, just repeat no more here.
Each embodiment is described in a progressive manner in the application, the highlights of each of the examples are with other realities
The difference of example is applied, the same or similar parts in each embodiment may refer to each other.For device disclosed in embodiment
Speech, since it is corresponded to the methods disclosed in the examples, so being described relatively simple, related place is referring to method part illustration
?.
It should be noted that in present specification, the relational terms of such as " first " and " second " etc are used merely to
One entity or operation and another entity or operate is distinguished, without necessarily requiring or implying these entities or
There are any actual relationship or orders between person's operation.In addition, the terms "include", "comprise" or its any other
Variant is intended to non-exclusive inclusion, so that the process, method, article or equipment including a series of elements is not only
It including those elements, but also including other elements that are not explicitly listed, or further include for this process, method, object
Product or the intrinsic element of equipment.In the absence of more restrictions, the element limited by sentence "including a ...",
It is not precluded in the process, method, article or apparatus that includes the element that there is also other identical elements.
Technical solution provided herein is described in detail above.Specific case used herein is to this Shen
Principle and embodiment please is expounded, the present processes that the above embodiments are only used to help understand and its
Core concept.It should be pointed out that for those skilled in the art, in the premise for not departing from the application principle
Under, can also to the application, some improvement and modification can also be carried out, these improvement and modification also fall into the protection of the claim of this application
In range.