A firmware secure boot method and system
By executing the decryption and signature verification steps in parallel, the problem of prolonged secure boot time caused by the increase in firmware size is solved and the efficiency of fast secure boot is improved.
Patent Information
- Application Number
- CN202410843039.3
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2024-06-26
- Publication Date
- 2024-09-17
- Estimated Expiration
- 2044-06-26
AI Technical Summary
In the existing firmware secure boot process, as the firmware size increases, the decryption and hash calculation time also increases, resulting in limited fast secure boot.
The decryption and signature verification steps are executed in parallel. The firmware is first encrypted to obtain the ciphertext, and then the hash value of the ciphertext is signed. During verification, decryption and signature verification are executed in parallel, and the direct memory access feature is used to improve processing efficiency.
Effectively shortening the safe boot time, especially when the firmware is larger, it saves the safe boot time and improves the efficiency of the overall firmware safe boot.
Smart Images

Figure CN118378240B
Abstract
Description
Technical Field
[0001] The present application relates to the technical field of secure booting, and in particular, to a firmware secure booting method and system. Background Art
[0002] In the secure boot process of MCU (Microcontroller Unit), the first element is to protect the firmware (firmware, user application, image) to ensure the security of the firmware and prevent the firmware from being cracked and tampered. In order to protect these firmware, it is necessary to encrypt or sign the boot firmware (packaging operation). If the firmware is modified or damaged by a third party, the firmware cannot be started. Only the firmware that passes the identity verification can be executed to achieve the purpose of secure boot.
[0003] Currently, the process of packaging firmware is as follows Figure 1 As shown in the figure, the firmware is first encrypted to obtain the ciphertext, and the hash value of the firmware is signed. The packaged firmware mainly contains ciphertext, signature, key and other information. In the verification stage, decryption, hash calculation and signature are required in series, and then signature verification is performed. The firmware can be executed only after the verification is correct.
[0004] Although the existing solution has achieved the purpose of secure boot, as the firmware increases, the time spent on decryption and hash calculation also increases, which is not conducive to fast and secure boot. Summary of the invention
[0005] In order to solve one of the above technical defects, a firmware secure boot method and system are provided in an embodiment of the present application.
[0006] According to a first aspect of an embodiment of the present application, a firmware secure boot method is provided, comprising:
[0007] Acquire ciphertext information of the firmware to be started; the ciphertext information is obtained by encrypting the firmware to be started by the encryption end using the encryption key corresponding to the firmware to be started and using a preset encryption algorithm;
[0008] Acquire the signature information of the firmware to be started; the signature information is obtained by the encryption end using the signature key corresponding to the firmware to be started and using a preset signature algorithm to sign the hash value of the ciphertext information of the firmware;
[0009] Obtaining decryption information of the firmware to be started; the decryption information is obtained by the decryption end using a stored or acquired decryption key of the firmware to be started and using a preset decryption algorithm to decrypt the ciphertext information;
[0010] Acquire signature verification information of the firmware to be started; the signature verification information is obtained by the decryption end using a signature key corresponding to the firmware to be started that is stored or obtained and using a preset signature algorithm to sign a hash value of the ciphertext information of the firmware;
[0011] Verifying the signature information of the firmware to be started with the signature verification information of the firmware to be started;
[0012] If the verification passes, the startup process is performed using the decrypted information of the firmware to be started.
[0013] In an optional embodiment of the present application, using a signature key corresponding to the firmware to be started using a preset signature algorithm to sign the hash value of the ciphertext information of the firmware includes:
[0014] Read the file list of the firmware to be started;
[0015] Calculating a hash value of the file list;
[0016] The hash value is signed using the signature key and a preset signature algorithm.
[0017] In an optional embodiment of the present application, verifying the signature information of the firmware to be started with the signature verification information of the firmware to be started includes:
[0018] Determine whether the signature information is identical to the signature verification information or whether the signature information and the signature verification information conform to a preset rule;
[0019] When the signature information is identical to the signature verification information or the signature information and the signature verification information conform to a preset rule, the verification passes;
[0020] When the signature information is different from the signature verification information or the signature information and the signature verification information do not conform to a preset rule, the verification fails and the booting of the firmware to be booted is stopped.
[0021] In an optional embodiment of the present application, according to the direct memory access characteristic, the step of obtaining the decryption information of the firmware to be started and the step of obtaining the signature verification information of the firmware to be started are performed in parallel.
[0022] In an optional embodiment of the present application, calculating the hash value of the file list includes:
[0023] Calculating hash values for all files in the file list;
[0024] The hash values of all files are calculated using a preset hash algorithm to obtain the hash value of the file list.
[0025] According to a second aspect of an embodiment of the present application, there is provided a firmware secure boot system, including: an encryption end, a decryption end, and a verification end;
[0026] The verification end obtains the ciphertext information of the firmware to be started; the ciphertext information is obtained by the encryption end using the encryption key corresponding to the firmware to be started and using a preset encryption algorithm to encrypt the firmware to be started;
[0027] The verification end obtains the signature information of the firmware to be started; the signature information is obtained by the encryption end using the signature key corresponding to the firmware to be started and using a preset signature algorithm to sign the hash value of the ciphertext information of the firmware;
[0028] The verification end obtains the decryption information of the firmware to be started; the decryption information is obtained by the decryption end using a stored or obtained decryption key of the firmware to be started and using a preset decryption algorithm to decrypt the ciphertext information;
[0029] The verification end obtains the signature verification information of the firmware to be started; the signature verification information is obtained by the decryption end using the signature key corresponding to the firmware to be started stored or obtained and using a preset signature algorithm to sign the hash value of the ciphertext information of the firmware;
[0030] The verification end verifies the signature information of the firmware to be started with the signature verification information of the firmware to be started;
[0031] If the verification passes, the verification end uses the decrypted information of the firmware to be started to perform the startup process.
[0032] In an optional embodiment of the present application, the verification end verifies the signature information of the firmware to be started with the signature verification information of the firmware to be started, including:
[0033] Determine whether the signature information is identical to the signature verification information or whether the signature information and the signature verification information conform to a preset rule;
[0034] When the signature information is identical to the signature verification information or the signature information and the signature verification information conform to a preset rule, the verification passes;
[0035] When the signature information is different from the signature verification information or the signature information and the signature verification information do not conform to a preset rule, the verification fails and the booting of the firmware to be booted is stopped.
[0036] In an optional embodiment of the present application, the verification end executes the step of obtaining the decryption information of the firmware to be started and the step of obtaining the signature verification information of the firmware to be started in parallel according to the direct memory access characteristic.
[0037] According to a third aspect of an embodiment of the present application, there is provided a computer device, including: a memory;
[0038] A processor; and a computer program; wherein the computer program is stored in a memory and is configured to be executed by the processor to implement the steps of any method of the first aspect of the embodiment of the present application.
[0039] According to a fourth aspect of an embodiment of the present application, a computer-readable storage medium is provided, on which a computer program is stored; the computer program is executed by a processor to implement the steps of any method of the first aspect of the embodiment of the present application.
[0040] The firmware secure boot method provided in the embodiments of the present application has the following beneficial effects:
[0041] This application first encrypts the firmware to obtain a ciphertext, and then signs the hash value of the ciphertext. During verification, the ciphertext is decrypted and the signature is verified in parallel, thereby achieving the purpose of secure boot and effectively shortening the secure boot time. The larger the firmware, the more obvious the effect of saving secure boot time, thereby improving the efficiency of the overall firmware secure boot. BRIEF DESCRIPTION OF THE DRAWINGS
[0042] The drawings described herein are used to provide a further understanding of the present application and constitute a part of the present application. The illustrative embodiments of the present application and their descriptions are used to explain the present application and do not constitute an improper limitation on the present application. In the drawings:
[0043] Figure 1 A flowchart of a firmware secure boot method in the related art;
[0044] Figure 2 A flowchart of a firmware secure boot method provided in an embodiment of the present application;
[0045] Figure 3 A schematic diagram of a fast firmware secure boot process provided by an embodiment of the present application;
[0046] Figure 4 A schematic diagram of the structure of a computing device according to an embodiment of the present invention;
[0047] Figure 5 FIG. 1 is a schematic diagram of a computer-readable storage medium according to an embodiment of the present invention. DETAILED DESCRIPTION
[0048] In order to make the technical solutions and advantages in the embodiments of the present application more clearly understood, the exemplary embodiments of the present application are further described in detail below in conjunction with the accompanying drawings. Obviously, the described embodiments are only part of the embodiments of the present application, rather than an exhaustive list of all the embodiments. It should be noted that the embodiments in the present application and the features in the embodiments can be combined with each other without conflict.
[0049] The inventor of the present application has found that although the existing secure boot process has achieved the purpose of secure boot, as the size of the firmware increases, the time spent on decryption and hash calculation also increases, which is not conducive to fast and secure boot. In order to meet the needs of fast and secure boot firmware, and also in conjunction with the processing capabilities of multiple processes executed in parallel with the DMA (Data Memory Access) feature, the present application optimizes the firmware decryption and signature verification process, first encrypting the firmware to obtain the ciphertext, and then signing the hash value of the ciphertext. During verification, decryption and signature verification can be executed in parallel, effectively shortening the secure boot time. The larger the firmware, the more obvious the effect, which will greatly improve the efficiency of the overall firmware secure boot.
[0050] Based on this, see Figure 2 and Figure 3 The firmware secure boot method of the present application includes steps S110 to S150:
[0051] S110: Obtain ciphertext information of the firmware to be started; the ciphertext information is obtained by encrypting the firmware to be started by the encryption end using an encryption key corresponding to the firmware to be started and a preset encryption algorithm.
[0052] S120: Acquire signature information of the firmware to be started; the signature information is obtained by the encryption end using a signature key corresponding to the firmware to be started and using a preset signature algorithm to sign a hash value of the ciphertext information of the firmware.
[0053] S130: Obtain decryption information of the firmware to be started; the decryption information is obtained by the decryption end using a stored or acquired decryption key of the firmware to be started and using a preset decryption algorithm to decrypt the ciphertext information.
[0054] S140: Obtain signature verification information of the firmware to be started; the signature verification information is obtained by the decryption end using a signature key corresponding to the firmware to be started that is stored or obtained and using a preset signature algorithm to sign a hash value of the ciphertext information of the firmware.
[0055] S150: Verify the signature information of the firmware to be started with the signature verification information of the firmware to be started.
[0056] S160: If the verification passes, the startup process is performed using the decrypted information of the firmware to be started.
[0057] In an optional embodiment of the present application, in step S120, using a signature key corresponding to the firmware to be started using a preset signature algorithm to sign the hash value of the ciphertext information of the firmware includes:
[0058] Read the file list of the firmware to be started;
[0059] Calculate the hash value of the ciphertext information corresponding to the file list;
[0060] The hash value is signed using the signature key and a preset signature algorithm.
[0061] In an optional embodiment of the present application, calculating the hash value of the ciphertext information corresponding to the file list includes:
[0062] Calculate hash values for the ciphertext information corresponding to all files in the file list;
[0063] The hash values of all files are calculated using a preset hash algorithm to obtain the hash value of the ciphertext information corresponding to the file list.
[0064] In the embodiment of the present invention, the encryption algorithm and the signature algorithm are not limited. When an RSA private key is used, the hash value is signed using the RSA algorithm; when an ECC private key is used, the hash value is signed using the ECC algorithm.
[0065] Among them, the RSA signature algorithm is a widely used encryption algorithm. Its key includes a public key and a private key. It can be used for digital signatures, identity authentication, and key exchange. The RSA key length is generally 1024 bits or higher. If the content of the firmware to be started is fixed, the signature calculation can be pre-calculated on the manufacturer's server or dynamically calculated when the MCU starts.
[0066] In the embodiment of the present invention, SHA256 can be used for hash value calculation, and the length of the hash value used is 256 bits. First, the SHA256 value of the ciphertext information corresponding to all files in the file list is calculated, and then the hash value of the ciphertext information corresponding to all files is calculated using a preset hash algorithm to obtain the final signature value. When calculating the signature value, the private key is key, and the private key is generated according to the selected algorithm (ECC, RSA, etc.), and the signature algorithm is determined according to the algorithm used to determine the generation of the private key. (RSA signature verification, ECC signature verification, etc.).
[0067] In an embodiment of the present invention, the process in step S120 in which the encryption end uses the signature key corresponding to the firmware to be started and uses a preset signature algorithm to sign the hash value of the ciphertext information of the firmware is the same as that in step S140, which is to first read the file list of the firmware to be started; then calculate the hash value of the file list; finally, use the key to sign the hash value using the preset signature algorithm. The difference is that the file list of the firmware to be started read in step S120 is the file list stored in the manufacturer's server of the firmware to be started, and the file list of the firmware to be started read in step S140 is the file list in the MCU secure boot process. Since the firmware to be started may be tampered with or forged. Therefore, the uniqueness of the firmware to be started is verified through the verification process of step S150 provided in the embodiment of the present invention.
[0068] In addition, in the embodiment of the present invention, the signature key used in step S120 is the key determined by the manufacturer server of the firmware to be started according to the information of the firmware to be started, and the signature key used in step S140 is the key corresponding to the firmware to be started stored or obtained by the decryption terminal. Since there is a possibility that a third party forges or imitates the decryption terminal, the verification process of step S150 provided in the embodiment of the present invention can verify the legitimacy of the identity of the decryption terminal.
[0069] The signature verification information is obtained by calculating the hash value of the ciphertext information of the firmware to be started when the firmware to be started is started. (This value is calculated before each startup to prevent the firmware from being tampered with). The algorithm of the signature verification information is the same as that of the signature information.
[0070] In an optional embodiment of the present application, verifying the signature information of the firmware to be started with the signature verification information of the firmware to be started in step S150 includes:
[0071] Determine whether the signature information is identical to the signature verification information or whether the signature information and the signature verification information conform to a preset rule;
[0072] When the signature information is identical to the signature verification information or the signature information and the signature verification information conform to a preset rule, the verification passes;
[0073] When the signature information is different from the signature verification information or the signature information and the signature verification information do not conform to a preset rule, the verification fails and the booting of the firmware to be booted is stopped.
[0074] In the embodiment of the present invention, the signature information and the signature verification information are verified when the firmware to be started is started, and if the verification passes, the startup process is executed, and if the verification fails, the startup process is stopped. Thus, the secure startup of the firmware to be started is realized.
[0075] In an optional embodiment of the present application, according to the direct memory access characteristic, the step of obtaining the decryption information of the firmware to be started and the step of obtaining the signature verification information of the firmware to be started are performed in parallel.
[0076] In the embodiment of the present invention, the DMA characteristic can be utilized to execute the decryption step and the signature verification step in parallel, thereby effectively shortening the time for secure booting of the firmware.
[0077] In the embodiment of the present invention, the decryption step and the signature verification step are performed in parallel, which can be specifically implemented as follows:
[0078] S210: Obtain the ciphertext information of the firmware to be started on the encryption end.
[0079] S220: Obtain signature information of the firmware to be started on the encryption end.
[0080] S230: Obtain decryption information and signature verification information of the firmware to be started at the decryption end.
[0081] S240: Verify the signature information of the firmware to be started with the signature verification information of the firmware to be started.
[0082] S250: If the verification passes, the startup process is performed using the decrypted information of the firmware to be started.
[0083] In the embodiment of the present invention, the decryption step may be performed before the signature verification step, and may be specifically implemented as follows:
[0084] S310: Obtain the ciphertext information of the firmware to be started on the encryption end.
[0085] S320: Obtain signature information of the firmware to be started on the encryption end.
[0086] S330: Obtain decryption information of the firmware to be started at the decryption end.
[0087] S340: Obtain signature verification information of the firmware to be started on the decryption end.
[0088] S350: Verify the signature information of the firmware to be started with the signature verification information of the firmware to be started.
[0089] S360: If the verification passes, the startup process is performed using the decrypted information of the firmware to be started.
[0090] In the embodiment of the present invention, the decryption step may be performed after the signature verification step, and may be specifically implemented as follows:
[0091] S410: Obtain the ciphertext information of the firmware to be started on the encryption end.
[0092] S420: Obtain signature information of the firmware to be started on the encryption end.
[0093] S430: Obtain signature verification information of the firmware to be started on the decryption end.
[0094] S440: Obtain decryption information of the firmware to be started at the decryption end.
[0095] S450: Verify the signature information of the firmware to be started and the signature verification information of the firmware to be started.
[0096] S460: If the verification passes, the startup process is performed using the decrypted information of the firmware to be started.
[0097] In the embodiment of the present invention, the decryption step can be performed after the signature verification is passed, and can be specifically implemented as follows:
[0098] S510: Obtain the ciphertext information of the firmware to be started on the encryption end.
[0099] S520: Obtain signature information of the firmware to be started on the encryption end.
[0100] S530: Obtain signature verification information of the firmware to be started on the decryption end.
[0101] S540: Verify the signature information of the firmware to be started with the signature verification information of the firmware to be started.
[0102] S550: If the verification passes, obtain the decryption information of the firmware to be started on the decryption end.
[0103] S560: Execute the startup process using the decrypted information of the firmware to be started.
[0104] In the embodiment of the present invention, in step S550, if the signature information and the signature verification information fail to pass the verification, the decryption step is not executed, which can save the resource consumption and time consumption of the decryption step (for the case where the decryption step and the signature verification step are executed in parallel, the execution time is the duration of the decryption step or the duration of the signature verification step. Generally, the duration of the decryption step is similar to the duration of the signature verification step and can be ignored. At this time, if the signature information and the signature verification information fail to pass the verification, the decryption step is not executed, which only saves resource consumption but not time consumption). If the signature information and the signature verification information pass the verification, the decryption step is executed, and the execution time at this time is equivalent to the result of adding the duration of the decryption step to the duration of the signature verification step.
[0105] An embodiment of the present application provides a firmware secure boot system, including: an encryption end, a decryption end, and a verification end;
[0106] The verification end obtains the ciphertext information of the firmware to be started; the ciphertext information is obtained by the encryption end using the encryption key corresponding to the firmware to be started and using a preset encryption algorithm to encrypt the firmware to be started;
[0107] The verification end obtains the signature information of the firmware to be started; the signature information is obtained by the encryption end using the signature key corresponding to the firmware to be started and using a preset signature algorithm to sign the hash value of the ciphertext information of the firmware;
[0108] The verification end obtains the decryption information of the firmware to be started; the decryption information is obtained by the decryption end using a stored or obtained decryption key of the firmware to be started and using a preset decryption algorithm to decrypt the ciphertext information;
[0109] The verification end obtains the signature verification information of the firmware to be started; the signature verification information is obtained by the decryption end using the signature key corresponding to the firmware to be started stored or obtained and using a preset signature algorithm to sign the hash value of the ciphertext information of the firmware;
[0110] The verification end verifies the signature information of the firmware to be started with the signature verification information of the firmware to be started;
[0111] If the verification passes, the verification end uses the decrypted information of the firmware to be started to perform the startup process.
[0112] In an optional embodiment of the present application, the verification end verifies the signature information of the firmware to be started with the signature verification information of the firmware to be started, including:
[0113] Determine whether the signature information is identical to the signature verification information or whether the signature information and the signature verification information conform to a preset rule;
[0114] When the signature information is identical to the signature verification information or the signature information and the signature verification information conform to a preset rule, the verification passes;
[0115] When the signature information is different from the signature verification information or the signature information and the signature verification information do not conform to a preset rule, the verification fails and the booting of the firmware to be booted is stopped.
[0116] In an optional embodiment of the present application, the verification end executes the step of obtaining the decryption information of the firmware to be started and the step of obtaining the signature verification information of the firmware to be started in parallel according to the direct memory access characteristic.
[0117] For the specific definition of the above-mentioned firmware secure boot system, please refer to the definition of the firmware secure boot method above, which will not be repeated here. Each unit in the above-mentioned firmware secure boot system can be implemented in whole or in part by software, hardware and a combination thereof. The above-mentioned units can be embedded in or independent of the processor in the computer device in the form of hardware, or can be stored in the memory of the computer device in the form of software, so that the processor can call and execute the operations corresponding to the above-mentioned units.
[0118] In one embodiment, the present application also provides a computing device, referring to Figure 4 The computing device includes a memory 1120, a processor 1110, and a computer program stored in the memory 1120 and executable by the processor 1110. The computer program is stored in a space 1130 for program code in the memory 1120. When the computer program is executed by the processor 1110, a program 1131 for executing any one of the method steps according to the present invention is implemented.
[0119] The present application also provides a computer-readable storage medium. Figure 5 The computer-readable storage medium comprises a storage unit for program code, the storage unit being provided with a program 1131 ′ for executing the method steps according to the present invention, the program being executed by a processor.
[0120] The embodiment of the present application further provides a computer program product including instructions. When the computer program product is run on a computer, the computer is caused to execute the method steps according to the present invention.
[0121] Those skilled in the art will appreciate that the embodiments of the present application may be provided as methods, systems, or computer program products. Therefore, the present application may adopt the form of a complete hardware embodiment, a complete software embodiment, or an embodiment in combination with software and hardware. Moreover, the present application may adopt the form of a computer program product implemented on one or more computer-usable storage media (including but not limited to disk storage, CD-ROM, optical storage, etc.) that contain computer-usable program codes. The scheme in the embodiments of the present application may be implemented in various computer languages, for example, C language, VHDL language, Verilog language, object-oriented programming language Java, and literal scripting language JavaScript, etc.
[0122] The present application is described with reference to the flowcharts and / or block diagrams of the methods, systems, and computer program products according to the embodiments of the present application. It should be understood that each process and / or block in the flowchart and / or block diagram, as well as the combination of the processes and / or blocks in the flowchart and / or block diagram, can be implemented by computer program instructions. These computer program instructions can be provided to a processor of a general-purpose computer, a special-purpose computer, an embedded processor, or other programmable data processing device to generate a machine, so that the instructions executed by the processor of the computer or other programmable data processing device generate instructions for implementing the processes in the flowchart and / or block diagram. Figure 1 A process or multiple processes and / or boxes Figure 1 A device that provides the functions specified in a block or multiple blocks.
[0123] These computer program instructions may also be stored in a computer-readable memory capable of directing a computer or other programmable data processing device to operate in a specific manner, so that the instructions stored in the computer-readable memory produce an article of manufacture comprising an instruction device, which implements the process Figure 1 A process or multiple processes and / or boxes Figure 1 A function specified in one or more boxes.
[0124] These computer program instructions can also be loaded onto a computer or other programmable data processing device so that a series of operating steps are executed on the computer or other programmable device to produce a computer-implemented process, thereby providing instructions for implementing the process. Figure 1 A process or multiple processes and / or boxes Figure 1 The steps for the functions specified in one or more boxes.
[0125] In addition, the terms "first" and "second" are used for descriptive purposes only and should not be understood as indicating or implying relative importance or implicitly indicating the number of the indicated technical features. Therefore, the features defined as "first" and "second" may explicitly or implicitly include one or more of the features. In the description of this application, the meaning of "plurality" is at least two, such as two, three, etc., unless otherwise clearly and specifically defined.
[0126] Although the preferred embodiments of the present application have been described, those skilled in the art may make additional changes and modifications to these embodiments once they have learned the basic creative concepts. Therefore, the preferred embodiments and all changes and modifications falling within the scope of the present application are included.
[0127] Obviously, those skilled in the art can make various changes and modifications to the present application without departing from the spirit and scope of the present application. Thus, if these modifications and variations of the present application fall within the scope of the claims of the present application and their equivalents, the present application is also intended to include these modifications and variations.
Claims
1. A firmware secure boot method, characterized in that: include: Get the ciphertext information of the firmware to be started; The ciphertext information is obtained by the encryption end using the encryption key corresponding to the firmware to be started and using a preset encryption algorithm to encrypt the firmware to be started; Obtaining signature information of the firmware to be started; The signature information is obtained by the encryption end using the signature key corresponding to the firmware to be started using a preset signature algorithm to sign the hash value of the ciphertext information of the firmware; wherein, using the signature key corresponding to the firmware to be started using a preset signature algorithm to sign the hash value of the ciphertext information of the firmware includes: reading the file list of the firmware to be started; calculating the hash value of the ciphertext information corresponding to the file list; using the signature key to sign the hash value using a preset signature algorithm; Obtaining decryption information of the firmware to be started; the decryption information is obtained by the decryption end using a stored or acquired decryption key of the firmware to be started and using a preset decryption algorithm to decrypt the ciphertext information; Acquire signature verification information of the firmware to be started; the signature verification information is obtained by the decryption end using a signature key corresponding to the firmware to be started that is stored or obtained and using a preset signature algorithm to sign a hash value of the ciphertext information of the firmware; Verifying the signature information of the firmware to be started with the signature verification information of the firmware to be started; If the verification is passed, the boot process is performed using the decrypted information of the firmware to be booted; According to the direct memory access characteristic, the step of obtaining the decryption information of the firmware to be started and the step of obtaining the signature verification information of the firmware to be started are performed in parallel.
2. The firmware secure boot method according to claim 1, characterized in that: Verifying the signature information of the firmware to be started with the signature verification information of the firmware to be started includes: Determine whether the signature information is identical to the signature verification information or whether the signature information and the signature verification information conform to a preset rule; When the signature information is identical to the signature verification information or the signature information and the signature verification information conform to a preset rule, the verification passes; When the signature information is different from the signature verification information or the signature information and the signature verification information do not conform to a preset rule, the verification fails and the booting of the firmware to be booted is stopped.
3. The firmware secure boot method according to claim 1, characterized in that: Calculating the hash value of the ciphertext information corresponding to the file list includes: Calculate hash values for the ciphertext information corresponding to all files in the file list; The hash values of the ciphertext information corresponding to all files are calculated using a preset hash algorithm to obtain the hash value of the ciphertext information corresponding to the file list.
4. A firmware secure boot system, characterized in that: include: Encryption end, decryption end and verification end; The verification end obtains the ciphertext information of the firmware to be started; The ciphertext information is obtained by the encryption end using the encryption key corresponding to the firmware to be started and using a preset encryption algorithm to encrypt the firmware to be started; The verification end obtains the signature information of the firmware to be started; The signature information is obtained by the encryption end using the signature key corresponding to the firmware to be started using a preset signature algorithm to sign the hash value of the ciphertext information of the firmware; wherein, using the signature key corresponding to the firmware to be started using a preset signature algorithm to sign the hash value of the ciphertext information of the firmware includes: reading the file list of the firmware to be started; calculating the hash value of the ciphertext information corresponding to the file list; using the signature key to sign the hash value using a preset signature algorithm; The verification end obtains the decryption information of the firmware to be started; the decryption information is obtained by the decryption end using a stored or obtained decryption key of the firmware to be started and using a preset decryption algorithm to decrypt the ciphertext information; The verification end obtains the signature verification information of the firmware to be started; the signature verification information is obtained by the decryption end using the signature key corresponding to the firmware to be started stored or obtained and using a preset signature algorithm to sign the hash value of the ciphertext information of the firmware; The verification end verifies the signature information of the firmware to be started with the signature verification information of the firmware to be started; If the verification is successful, the verification end uses the decrypted information of the firmware to be started to perform the startup process; The verification end executes the steps of obtaining the decryption information of the firmware to be started and obtaining the signature verification information of the firmware to be started in parallel according to the direct memory access characteristic.
5. The firmware secure boot system according to claim 4, characterized in that: The verification end verifies the signature information of the firmware to be started with the signature verification information of the firmware to be started, including: Determine whether the signature information is identical to the signature verification information or whether the signature information and the signature verification information conform to a preset rule; When the signature information is identical to the signature verification information or the signature information and the signature verification information conform to a preset rule, the verification passes; When the signature information is different from the signature verification information or the signature information and the signature verification information do not conform to a preset rule, the verification fails and the booting of the firmware to be booted is stopped.
6. A computer device, characterized in that: include: Memory; processor; as well as Computer programs; The computer program is stored in the memory and is configured to be executed by the processor to implement the method according to any one of claims 1 to 3.
7. A computer-readable storage medium, characterized in that: A computer program is stored thereon; the computer program is executed by a processor to implement the method according to any one of claims 1 to 3.
