A chip processing system, method, device and storage medium

By processing and storing the public key and hash values ​​of the chip in an out-of-order manner and dividing storage, the problem of public key hash values ​​occupying a large number of efuse bits and security risks in the prior art is solved, and the security of the signature and the area efficiency of the chip are improved.

CN115113815BActive Publication Date: 2024-11-01GUANGZHOU ANYKA MICROELECTRONICS CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202210708056.7
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2022-06-21
Publication Date
2024-11-01
Estimated Expiration
2042-06-21

AI Technical Summary

Technical Problem

During the verification process of existing security chips, the hash value of the public key occupies a large number of efuse bits and is easily cracked by attackers through hash collisions, which poses a security risk.

Method used

By processing the public key and hash values ​​out of order and storing them in the efuse and Flash modules, the difficulty of hash collisions is improved and the security of de-signing is enhanced.

Benefits of technology

Effectively improve the security of the understanding sign, save efuse occupancy and reduce the area of ​​the chip.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN115113815B_ABST
    Figure CN115113815B_ABST
Patent Text Reader

Abstract

The present invention discloses a chip processing system, method, device and storage medium, the system includes a chip storage module, which is used to perform a first random processing on the first hash value to obtain a random hash value, and divide the random hash value to obtain a first random hash value and a second random hash value, store the first random hash value in the efuse module of the chip, and store the second random hash value in the flash module of the chip; and perform a second random processing on the first public key to obtain a random public key, and store the random public key in the flash module of the chip. Compared with the prior art, the technical solution of the present application can effectively improve the difficulty of "hash collision" and further improve the security of decryption; save efuse occupied bits and further reduce the area of ​​the chip.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the technical field of chip secure startup, and in particular to a chip processing system, method, device and storage medium. Background Art

[0002] Before running the firmware, the security chip will generally verify the firmware signature, and the public key used for the signature verification will be completely stored in the flash module. The hash value is calculated by using the hash algorithm for the public key, and this hash value is completely stored in the efuse module inside the chip. During the signature verification, the security chip directly reads the public key in the flash module, and uses the hash algorithm again to obtain the public key hash value, and then compares it with the hash value stored in the efuse module. If the comparison is consistent, the public key read back from the flash module is used for signature verification. However, the hash value is generally 256 bits, which will occupy a large number of efuse bits and increase the area of ​​the chip. If the public key is obtained by an attacker, the attacker can calculate the public key hash value, and then use the hash algorithm to calculate different public keys to try to get the same hash value. Once successful, the original public key can be replaced to crack the signature verification, that is, using "hash collision" to crack the signature verification, which poses a security risk. Summary of the invention

[0003] The technical problem to be solved by the present invention is: to provide a chip processing system, method, device and storage medium, by storing the first random public key and the first random hash value after random processing in the chip, and performing decryption processing based on extracting the first random public key and the first random hash value in the chip, effectively improving the difficulty of "hash collision" and further improving the security of decryption; by dividing the first random hash value into two parts, one part is stored in the efuse module and the other part is stored in the Flash module, the efuse occupied bits can be effectively saved, thereby reducing the chip area.

[0004] In order to solve the above technical problems, the present invention provides a chip processing system, including: a chip storage module;

[0005] The chip storage module is used to obtain a first public key of the chip and calculate a first hash value corresponding to the first public key;

[0006] The chip storage module is used to perform a first random order processing on the first hash value to obtain a random order hash value, and divide the random order hash value to obtain a first random order hash value and a second random order hash value, store the first random order hash value in an efuse module of the chip, and store the second random order hash value in a flash module of the chip;

[0007] The chip storage module is used to perform a second random order processing on the first public key to obtain a random order public key, and store the random order public key in the flash module of the chip.

[0008] Furthermore, the chip processing system provided by the present invention further includes: a chip decryption module;

[0009] The chip decryption module is used to obtain the random public key and the random hash value stored in the chip respectively when receiving a chip verification request, process the random public key and the random hash value in positive sequence to obtain a second public key and a second hash value, and calculate the corresponding third hash value according to the second public key, determine whether the second hash value is the same as the third hash value, and if so, perform chip decryption, otherwise, the chip stops running.

[0010] Furthermore, the chip decryption module is used to obtain the random public key and the random hash value stored in the chip, and process the random public key and the random hash value in positive order to obtain a second public key and a second hash value, specifically:

[0011] The chip decryption module is used to obtain the first random hash value stored in the efuse module, obtain the second random hash value stored in the flash module, integrate the first random hash value and the second random hash value, and perform a first positive sequence processing on the integrated first random hash value and the second random hash value to obtain a second hash value;

[0012] The chip decryption module is used to obtain the random public key stored in the flash module, perform a second positive sequence processing on the random public key to obtain a second public key, and calculate a third hash value corresponding to the second public key.

[0013] Furthermore, the present invention also provides a chip processing method, comprising:

[0014] A control chip storage module obtains a first public key of the chip, and calculates a first hash value corresponding to the first public key, performs a first scramble processing on the first hash value to obtain a scrambled hash value, and divides the scrambled hash value to obtain a first scrambled hash value and a second scrambled hash value, stores the first scrambled hash value in an efuse module of the chip, stores the second scrambled hash value in a flash module of the chip, performs a second scramble processing on the first public key to obtain a scrambled public key, and stores the scrambled public key in the flash module of the chip.

[0015] Furthermore, the present invention provides a chip processing method, which further includes:

[0016] When a chip verification request is received, the chip decryption module is controlled to obtain the random public key and the random hash value stored in the chip respectively, and the random public key and the random hash value are processed in positive sequence to obtain a second public key and a second hash value, and the corresponding third hash value is calculated according to the second public key, and it is determined whether the second hash value is the same as the third hash value. If so, the chip is decrypted, and if not, the chip stops running.

[0017] Further, the control chip storage module obtains the random public key and the random hash value stored in the chip, and processes the random public key and the random hash value in positive order to obtain a second public key and a second hash value, specifically:

[0018] The control chip decryption module obtains the first random hash value stored in the efuse module, obtains the second random hash value stored in the flash module, integrates the first random hash value and the second random hash value, and performs a first positive sequence processing on the integrated first random hash value and the second random hash value to obtain a second hash value;

[0019] The control chip decryption module obtains the random public key stored in the flash module, performs a second positive sequence processing on the random public key to obtain a second public key, and calculates a third hash value corresponding to the second public key.

[0020] Furthermore, a terminal device includes a processor, a memory, and a computer program stored in the memory and configured to be executed by the processor, and the processor implements the chip processing method as described in any one of the above when executing the computer program.

[0021] Furthermore, the present invention also provides a computer-readable storage medium, which includes a stored computer program, wherein when the computer program is running, the device where the computer-readable storage medium is located is controlled to execute a chip processing method as described in any one of the above.

[0022] Compared with the prior art, a chip processing system, method, device and storage medium according to an embodiment of the present invention have the following beneficial effects:

[0023] By setting a chip storage module; based on the chip storage module, the first public key and its corresponding first hash value are processed in random order to obtain a random public key and a random hash value, and they are stored in the chip respectively. Even if the public key is obtained by an attacker, the attacker cannot obtain a correct public key value, thereby improving the security of public key storage; and based on the fact that the random hash value will be divided into two parts, one part is stored in the efuse module, and the other part is stored in the Flash module, the efuse occupied bits can be effectively saved. Therefore, compared with the prior art, the technical solution of the present application effectively improves the difficulty of "hash collision" and further improves the security of decryption; it saves the efuse occupied bits and further reduces the area of ​​the chip. BRIEF DESCRIPTION OF THE DRAWINGS

[0024] Figure 1 It is a structural schematic diagram of an embodiment of a chip processing system provided by the present invention;

[0025] Figure 2 It is a flow chart of an embodiment of a chip processing method provided by the present invention;

[0026] Figure 3 is a structural schematic diagram of another embodiment of a chip processing system provided by the present invention;

[0027] Figure 4 It is a flow chart of another embodiment of a chip processing method provided by the present invention. DETAILED DESCRIPTION

[0028] The following will be combined with the accompanying drawings in the present invention to clearly and completely describe the technical solutions in the embodiments of the present invention. Obviously, the described embodiments are only part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of the present invention.

[0029] Example 1

[0030] See also Figure 1 , Figure 1is a schematic diagram of a structure of an embodiment of a chip processing system provided by the present invention, such as Figure 1 As shown, the system includes a chip storage module 101, which is specifically as follows:

[0031] The chip storage module 101 is used to obtain a first public key of the chip and calculate a first hash value corresponding to the first public key.

[0032] The chip storage module 101 is used to perform a first random processing on the first hash value to obtain a random hash value, and divide the random hash value to obtain a first random hash value and a second random hash value, store the first random hash value in the efuse module of the chip, and store the second random hash value in the flash module of the chip.

[0033] The chip storage module 101 is used to perform a second random order processing on the first public key to obtain a random order public key, and store the random order public key in the flash module of the chip.

[0034] In this embodiment, the chip storage module 101 is used to calculate the key pair of the chip through an asymmetric key algorithm, wherein the key pair includes a public key and a private key, and the private key is used to sign the chip. In this embodiment, the calculated first public key of the chip is obtained; and then the first public key is calculated through a hash algorithm to obtain a first hash value.

[0035] In this embodiment, the first hash value is subjected to a first random processing to obtain a random hash value, and the random hash value is divided to obtain a first random hash value and a second random hash value, the first random hash value is stored in an efuse module of the chip, and the second random hash value is stored in a flash module of the chip.

[0036] As a preferred solution in this embodiment, for the calculated first hash value, the combination arrangement order of the first hash value is obtained, and an irregular and unpredictable method is set, such as using a random number, taking one bit of the random number as a unit, selecting the corresponding bit in the first hash value, and rearranging the combination arrangement order of the first hash value to generate a random hash value. Specifically, by generating a random number 0xaa, the bit is 10101010, and the bits corresponding to the bit being 1 are put together in the high position, and the bits corresponding to the bit being 0 are put together in the low position. For example, the first hash value to be randomized is 0x33, based on the first hash value 0x33 bits being 00110011, the random number 0xaa bit being 1 corresponding to the 0x33 part is: 0101, the random number 0xaa bit being 0 corresponding to the first hash value 0x33 part is: 0101, and the converted combination is: 01010101, that is, 0x55, and the combination 01010101 is used as the random hash value.

[0037] In this embodiment, the random hash value is divided into two parts to obtain a first random hash value and a second random hash value, the first random hash value is stored in the efuse module of the chip, and the second random hash value is stored in the flash module; wherein, the random hash value is divided into two parts, and the two parts are simply separated, and the size of each part is allocated according to the size of the storage address. As a specific illustration of this embodiment, the first four bit values ​​0101 in the random hash value 01010101 are used as the first random hash value and stored in the efuse module of the chip; the last four bit values ​​in the random hash value 01010101 are used as the second random hash value and stored in the flash module of the chip.

[0038] In this embodiment, the first public key is further subjected to a second scrambling process to obtain a scrambled public key, and the scrambled public key is stored in the flash module of the chip. Specifically, by obtaining the combination order of the first public key, based on the above-mentioned method of reordering the first hash value, the combination order of the first public key is scrambled by generating a random number to obtain a scrambled public key, and the scrambled public key is stored in the flash module of the chip.

[0039] As an illustration of this embodiment, the method of reordering hash values ​​and the method of reordering public keys are the same, but the random numbers used by the two cannot be the same, so as to achieve the purpose of being irregular and unpredictable.

[0040] In this embodiment, when the chip is burned with the signed firmware on the production line, the first random hash value needs to be burned into the efuse module, and then the random public key and the second random hash value need to be burned into the flash module together.

[0041] In this embodiment, the chip processing system further includes a chip decryption module 102, such as Figure 3 As shown, the chip decryption module 102 is used to obtain the random public key and the random hash value stored in the chip respectively when receiving a chip verification request, process the random public key and the random hash value in positive sequence to obtain a second public key and a second hash value, and calculate the corresponding third hash value according to the second public key, and determine whether the second hash value is the same as the third hash value. If so, the chip is decrypted, otherwise, the chip stops running.

[0042] In this embodiment, the chip decryption module 102 is used to obtain the first random hash value stored in the efuse module, obtain the second random hash value stored in the flash module, integrate the first random hash value and the second random hash value, and perform a first positive sequence processing on the integrated first random hash value and the second random hash value to obtain a second hash value.

[0043] As an example of this embodiment, when the chip is powered on, a chip verification request will be generated. Therefore, when the chip verification request is received, the boot code in the chip will perform chip verification processing according to the received chip verification request. When performing chip verification, the first random hash value in the efuse module and the second random hash value in the flash module in the chip are read, and the first random hash value and the second random hash value are combined to obtain a random hash value, and the integrated random hash value is subjected to a first positive sequence processing; wherein, the first positive sequence processing, specifically, by obtaining the first random sequence processing corresponding to the random hash value, based on the first random sequence processing, the first random sequence processing is reversely processed to convert the random hash value into the second hash value; for example, when the combination arrangement order of the random hash values ​​is 010 When the value is 10101, get its random number 0xaa: 10101010, and based on putting the bits corresponding to bit 1 together in high order, the first four high bits of the combination arrangement order of the random hash value are: 0101, which corresponds to the bit 1 in the random number 0xaa: 10101010, and it can be concluded that the value of the bit 1 in the corresponding random number 0xaa: 10101010 is 0101; based on the requirement of putting the bits corresponding to bit 0 together in low order, the last four low bits of the combination arrangement order of the random public key are: 0101, which corresponds to the bit 0 in the random number 0xaa: 10101010, and it can be concluded that the value of the bit 0 in the corresponding random number 0xaa: 10101010 is 0101; finally, arrange according to the random number to get the second hash value: 00110011, that is, 0x33. The first hash value and the second hash value are the same hash value.

[0044] In this embodiment, the chip decryption module 102 is used to obtain the random public key stored in the flash module, perform a second regular sequence processing on the random public key to obtain a second public key, and calculate a third hash value corresponding to the second public key.

[0045] As an example in this embodiment, when a chip signature verification request is received, the boot code in the chip will perform chip signature verification processing according to the received chip signature verification request. When performing chip signature verification, the scrambled public key stored in the flash module in the chip will also be read, and the scrambled public key will be extracted to obtain the corresponding second scrambled processing, and based on the second scrambled processing, the second scrambled processing will be reversed to convert the scrambled public key into the second public key. Specifically, the second public key is obtained based on the same method as in the first positive sequence processing described above. The first public key and the second public key are the same public key.

[0046] In this embodiment, when the second public key is obtained, the second public key is calculated based on a preset hash algorithm to obtain a third hash value corresponding to the second public key.

[0047] In this embodiment, it is determined whether the second hash value is the same as the third hash value. If so, the chip is decrypted. If not, the chip stops running. Specifically, when the second hash value is equal to the third hash value, the boot program will use the public key read back from the flash module and restore the real value to verify the signature. If the signature is verified, the firmware will be run; when the second hash value is not equal to the third hash value, the boot program stops verifying the signature and the chip stops running.

[0048] See also Figure 2 , Figure 2 FIG. 1 is a flow chart of an embodiment of a chip processing method provided by the present invention. Figure 2 As shown, the method includes step 201, which is as follows:

[0049] Step 201: Control the chip storage module to obtain the first public key of the chip, and calculate the first hash value corresponding to the first public key, perform a first random order processing on the first hash value to obtain a random order hash value, and divide the random order hash value to obtain a first random order hash value and a second random order hash value, store the first random order hash value in the efuse module of the chip, store the second random order hash value in the flash module of the chip, perform a second random order processing on the first public key to obtain a random order public key, and store the random order public key in the flash module of the chip.

[0050] In this embodiment, the key pair of the chip is calculated by an asymmetric key algorithm, wherein the key pair includes a public key and a private key, and the private key is used to sign the chip. In this embodiment, the first public key of the chip obtained by calculation is obtained; and then the first public key is calculated by a hash algorithm to obtain a first hash value.

[0051] In this embodiment, the first hash value is subjected to a first random processing to obtain a random hash value, and the random hash value is divided to obtain a first random hash value and a second random hash value, the first random hash value is stored in an efuse module of the chip, and the second random hash value is stored in a flash module of the chip.

[0052] As a preferred solution in this embodiment, for the calculated first hash value, the combination arrangement order of the first hash value is obtained, and an irregular and unpredictable method is set, such as using a random number, taking one bit of the random number as a unit, selecting the corresponding bit in the first hash value, and rearranging the combination arrangement order of the first hash value to generate a random hash value. Specifically, by generating a random number 0xaa, the bit is 10101010, and the bits corresponding to the bit being 1 are put together in the high position, and the bits corresponding to the bit being 0 are put together in the low position. For example, the first hash value to be randomized is 0x33, based on the first hash value 0x33 bits being 00110011, the random number 0xaa bit being 1 corresponding to the 0x33 part is: 0101, the random number 0xaa bit being 0 corresponding to the first hash value 0x33 part is: 0101, and the converted combination is: 01010101, that is, 0x55, and the combination 01010101 is used as the random hash value.

[0053] In this embodiment, the random hash value is divided into two parts to obtain a first random hash value and a second random hash value, the first random hash value is stored in the efuse module of the chip, and the second random hash value is stored in the flash module; wherein, the random hash value is divided into two parts, and the two parts are simply separated, and the size of each part is allocated according to the size of the storage address. As a specific illustration of this embodiment, the first four bit values ​​0101 in the random hash value 01010101 are used as the first random hash value and stored in the efuse module of the chip; the last four bit values ​​in the random hash value 01010101 are used as the second random hash value and stored in the flash module of the chip.

[0054] In this embodiment, the first public key is further subjected to a second scrambling process to obtain a scrambled public key, and the scrambled public key is stored in the flash module of the chip. Specifically, by obtaining the combination order of the first public key, based on the above-mentioned method of reordering the first hash value, the combination order of the first public key is scrambled by generating a random number to obtain a scrambled public key, and the scrambled public key is stored in the flash module of the chip.

[0055] As an illustration of this embodiment, the method of reordering hash values ​​and the method of reordering public keys are the same, but the random numbers used by the two cannot be the same, so as to achieve the purpose of being irregular and unpredictable.

[0056] In this embodiment, when the chip is burned with the signed firmware on the production line, the first random hash value needs to be burned into the efuse module, and then the random public key and the second random hash value need to be burned into the flash module together.

[0057] In this embodiment, the chip processing method further includes step 202, such as Figure 4 As shown, when a chip verification request is received, the chip decryption module is controlled to obtain the random public key and the random hash value stored in the chip respectively, and the random public key and the random hash value are processed in positive sequence to obtain a second public key and a second hash value, and the corresponding third hash value is calculated according to the second public key, and it is determined whether the second hash value is the same as the third hash value. If so, the chip is decrypted, if not, the chip stops running.

[0058] In this embodiment, the first random hash value stored in the efuse module is obtained, the second random hash value stored in the flash module is obtained, the first random hash value and the second random hash value are integrated, and the integrated first random hash value and the second random hash value are processed in a first positive order to obtain a second hash value.

[0059] As an example of this embodiment, when the chip is powered on, a chip verification request will be generated. Therefore, when the chip verification request is received, the boot code in the chip will perform chip verification processing according to the received chip verification request. When performing chip verification, the first random hash value in the efuse module and the second random hash value in the flash module in the chip are read, and the first random hash value and the second random hash value are combined to obtain a random hash value, and the integrated random hash value is subjected to a first positive sequence processing; wherein, the first positive sequence processing, specifically, by obtaining the first random sequence processing corresponding to the random hash value, based on the first random sequence processing, the first random sequence processing is reversely processed to convert the random hash value into the second hash value; for example, when the combination arrangement order of the random hash values ​​is 010 When the value is 10101, get its random number 0xaa: 10101010, and based on putting the bits corresponding to bit 1 together in high order, the first four high bits of the combination arrangement order of the random hash value are: 0101, which corresponds to the bit 1 in the random number 0xaa: 10101010, and it can be concluded that the value of the bit 1 in the corresponding random number 0xaa: 10101010 is 0101; based on the requirement of putting the bits corresponding to bit 0 together in low order, the last four low bits of the combination arrangement order of the random public key are: 0101, which corresponds to the bit 0 in the random number 0xaa: 10101010, and it can be concluded that the value of the bit 0 in the corresponding random number 0xaa: 10101010 is 0101; finally, arrange according to the random number to get the second hash value: 00110011, that is, 0x33. The first hash value and the second hash value are the same hash value.

[0060] In this embodiment, the chip decryption module is used to obtain the random public key stored in the flash module, perform a second regular sequence processing on the random public key to obtain a second public key, and calculate a third hash value corresponding to the second public key.

[0061] As an example in this embodiment, when a chip verification request is received, the boot code in the chip will perform chip verification processing according to the received chip verification request. When performing chip verification, the random public key stored in the flash module in the chip will be read, and the random public key will be extracted to obtain the corresponding second random processing, and based on the second random processing, the second random processing will be reversed to convert the random public key into the second public key. Specifically, the second public key is obtained based on the same method as in the first normal processing described above. The first public key and the second public key are the same public key.

[0062] In this embodiment, when the second public key is obtained, the second public key is calculated based on a preset hash algorithm to obtain a third hash value corresponding to the second public key.

[0063] In this embodiment, it is determined whether the second hash value is the same as the third hash value. If so, the chip is decrypted. If not, the chip stops running. Specifically, when the second hash value is equal to the third hash value, the boot program will use the public key read back from the flash module and restore the real value to verify the signature. If the signature is verified, the firmware will be run; when the second hash value is not equal to the third hash value, the boot program stops verifying the signature and the chip stops running.

[0064] Based on the above-mentioned embodiment of the chip processing method, another embodiment of the present invention provides a chip processing terminal device, which includes a processor, a memory, and a computer program stored in the memory and configured to be executed by the processor. When the processor executes the computer program, the chip processing method of any embodiment of the present invention is implemented.

[0065] Exemplarily, in this embodiment, the computer program may be divided into one or more modules, which are stored in the memory and executed by the processor to implement the present invention. The one or more modules may be a series of computer program instruction segments capable of implementing specific functions, which are used to describe the execution process of the computer program in the processing terminal device of the chip.

[0066] The processing terminal device of the chip can be a computing device such as a desktop computer, a notebook, a palm computer, a cloud server, etc. The processing terminal device of the chip can include, but is not limited to, a processor and a memory.

[0067] The processor may be a central processing unit (CPU), other general-purpose processors, digital signal processors (DSP), application-specific integrated circuits (ASIC), field-programmable gate arrays (FPGA) or other programmable logic devices, discrete gate or transistor logic devices, discrete hardware components, etc. A general-purpose processor may be a microprocessor or any conventional processor, etc. The processor is the control center of the processing terminal device of the chip, and uses various interfaces and lines to connect various parts of the processing terminal device of the entire chip.

[0068] The memory can be used to store the computer program and / or module, and the processor realizes various functions of the processing terminal device of the chip by running or executing the computer program and / or module stored in the memory, and calling the data stored in the memory. The memory can mainly include a program storage area and a data storage area, wherein the program storage area can store an operating system, at least one application required for a function, etc.; the data storage area can store data created according to the use of the mobile phone, etc. In addition, the memory can include a high-speed random access memory, and can also include a non-volatile memory, such as a hard disk, a memory, a plug-in hard disk, a smart memory card (Smart Media Card, SMC), a secure digital (Secure Digital, SD) card, a flash card (Flash Card), at least one disk storage device, a flash memory device, or other volatile solid-state storage devices.

[0069] Based on the above-mentioned embodiment of the chip processing method, another embodiment of the present invention provides a storage medium, wherein the storage medium includes a stored computer program, wherein when the computer program is running, the device where the storage medium is located is controlled to execute the chip processing method of any embodiment of the present invention.

[0070] In this embodiment, the storage medium is a computer-readable storage medium, and the computer program includes computer program code, which may be in source code form, object code form, executable file or some intermediate form, etc. The computer-readable medium may include: any entity or device capable of carrying the computer program code, recording medium, USB flash drive, mobile hard disk, magnetic disk, optical disk, computer memory, read-only memory (ROM), random access memory (RAM), electric carrier signal, telecommunication signal and software distribution medium, etc. It should be noted that the content contained in the computer-readable medium may be appropriately increased or decreased according to the requirements of legislation and patent practice in the jurisdiction. For example, in some jurisdictions, according to legislation and patent practice, computer-readable media do not include electric carrier signals and telecommunication signals.

[0071] In summary, the present invention provides a chip processing system, method, device and storage medium, the system includes a chip storage module, which is used to perform a first random processing on the first hash value to obtain a random hash value, and divide the random hash value to obtain a first random hash value and a second random hash value, store the first random hash value in the efuse module of the chip, and store the second random hash value in the flash module of the chip; and perform a second random processing on the first public key to obtain a random public key, and store the random public key in the flash module of the chip. Compared with the prior art, the technical solution of the present application can effectively improve the difficulty of "hash collision" and further improve the security of decryption; save efuse occupied bits and further reduce the area of ​​the chip.

[0072] The above is only a preferred embodiment of the present invention. It should be pointed out that for ordinary technicians in this technical field, several improvements and substitutions can be made without departing from the technical principles of the present invention. These improvements and substitutions should also be regarded as the scope of protection of the present invention.

Claims

1. A chip processing system, characterized in that: include: Chip storage module; The chip storage module is used to obtain a first public key of the chip and calculate a first hash value corresponding to the first public key; The chip storage module is used to perform a first random order processing on the first hash value to obtain a random order hash value, and divide the random order hash value to obtain a first random order hash value and a second random order hash value, store the first random order hash value in an efuse module of the chip, and store the second random order hash value in a flash module of the chip; The chip storage module is used to perform a second random order processing on the first public key to obtain a random order public key, and store the random order public key in the flash module of the chip.

2. A chip processing system as claimed in claim 1, characterized in that: Also includes: Chip decryption module; The chip decryption module is used to obtain the random public key and the random hash value stored in the chip respectively when receiving a chip verification request, process the random public key and the random hash value in positive sequence to obtain a second public key and a second hash value, and calculate the corresponding third hash value according to the second public key, determine whether the second hash value is the same as the third hash value, and if so, perform chip decryption, otherwise, the chip stops running.

3. A chip processing system as claimed in claim 2, characterized in that: The chip decryption module is used to obtain the random public key and the random hash value stored in the chip, and process the random public key and the random hash value in positive order to obtain a second public key and a second hash value, specifically: The chip decryption module is used to obtain the first random hash value stored in the efuse module, obtain the second random hash value stored in the flash module, integrate the first random hash value and the second random hash value, and perform a first positive sequence processing on the integrated first random hash value and the second random hash value to obtain a second hash value; The chip decryption module is used to obtain the random public key stored in the flash module, perform a second positive sequence processing on the random public key to obtain a second public key, and calculate a third hash value corresponding to the second public key.

4. A chip processing method, characterized in that: include: A control chip storage module obtains a first public key of the chip, and calculates a first hash value corresponding to the first public key, performs a first scramble processing on the first hash value to obtain a scrambled hash value, and divides the scrambled hash value to obtain a first scrambled hash value and a second scrambled hash value, stores the first scrambled hash value in an efuse module of the chip, stores the second scrambled hash value in a flash module of the chip, performs a second scramble processing on the first public key to obtain a scrambled public key, and stores the scrambled public key in the flash module of the chip.

5. A chip processing method as claimed in claim 4, characterized in that: Also includes: When a chip verification request is received, the chip decryption module is controlled to obtain the random public key and the random hash value stored in the chip respectively, and the random public key and the random hash value are processed in positive sequence to obtain a second public key and a second hash value, and the corresponding third hash value is calculated according to the second public key, and it is determined whether the second hash value is the same as the third hash value. If so, the chip is decrypted, and if not, the chip stops running.

6. A chip processing method as claimed in claim 5, characterized in that: The control chip storage module obtains the random public key and the random hash value stored in the chip, and processes the random public key and the random hash value in positive order to obtain a second public key and a second hash value, specifically: The control chip decryption module obtains the first random hash value stored in the efuse module, obtains the second random hash value stored in the flash module, integrates the first random hash value and the second random hash value, and performs a first positive sequence processing on the integrated first random hash value and the second random hash value to obtain a second hash value; The control chip decryption module obtains the random public key stored in the flash module, performs a second positive sequence processing on the random public key to obtain a second public key, and calculates a third hash value corresponding to the second public key.

7. A terminal device, characterized in that: The method comprises a processor, a memory, and a computer program stored in the memory and configured to be executed by the processor, wherein the processor implements the chip processing method as claimed in any one of claims 4 to 6 when executing the computer program.

8. A computer-readable storage medium, characterized in that: The computer-readable storage medium includes a stored computer program, wherein when the computer program is executed, the device where the computer-readable storage medium is located is controlled to execute the chip processing method according to any one of claims 4 to 6.