Anti-simulation protection method and system for edition protection chip

By performing security verification before the communication between the MCU of the PAC, including the comparison of the generation of random numbers and the calculation of the message authentication code MAC, the problem that the PAC is easy to be simulated is solved, and effective copyright protection for the PAC products is achieved.

CN119903560APending Publication Date: 2025-04-29WUHAN RUINAJIE ELECTRONICS TECH
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202411867090.4
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-12-18
Publication Date
2025-04-29

AI Technical Summary

Technical Problem

The existing version of the guarantee chip is easily simulated, resulting in the certification process being bypassed and the rights and interests of the product are damaged.

Method used

Security verification is performed before the version of the security chip and the control chip MCU work. The specific steps include: presetting the authentication data, generating a random number, calculating the message authentication code MAC, and comparing to determine whether the security verification is passed or not.

Benefits of technology

Through security verification, the version protection chip can be effectively prevented from being simulated, ensure the integrity of the certification process, and thus protect the rights and interests of the product.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119903560A_ABST
    Figure CN119903560A_ABST
Patent Text Reader

Abstract

The invention relates to an anti-simulation protection method and system for a version protection chip, security verification is carried out before the version protection chip and a control chip MCU carry out work interaction, and the security verification process comprises the following steps: the version protection chip and the control chip MCU are respectively preset with the same authentication data, the control chip MCU generates a random number Rand1 to the version protection chip, and the random number Rand1 is sent to the version protection chip; the version protection chip generates a random number Rand2 and sends the random number Rand2 to the control chip MCU; the control chip MCU calculates to obtain MAC1 through a preset algorithm according to the random number Rand1, the random number Rand2 and the authentication data, the edition protection chip calculates to obtain MAC2 through the preset algorithm according to the random number Rand1, the random number Rand2 and the authentication data, and the edition protection chip sends the calculated MAC2 to the control chip MCU; when the control chip MCU judges that the received random number Rand2 is the same as the random number received for multiple times in history or the received MAC2 is different from the MAC1, the control chip MCU judges that the security verification is not passed; after the communication time sequence of the MCU and the edition protection chip is grabbed, other MCUs are used for simulating the response time sequence of the edition protection chip, then the other MCUs are replaced for communication, the authentication process is bypassed, and the purpose of enhancing protection of edition protection chip products is achieved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the field of copyright protection chips, and in particular to an anti-simulation protection method and system for copyright protection chips. Background Art

[0002] In the increasingly competitive electronics and information technology products industry, popular products that have withstood the test of the market are often easily "favored" by speculators. Driven by profit, speculators reduce the time and cost of cracking products, which can seriously damage the rights and interests of product owners.

[0003] In order to strengthen protection and reduce the risks of product counterfeiting and cracking, product companies have to actively seek change, and copyright protection chips have become a necessary choice. Copyright protection chips (i.e. copyright protection chips) are chips specially designed for identity authentication, authorization, and storage of key data to protect intellectual property rights and data security. Figure 1 The figure shows an interactive schematic diagram of simulating a legitimate version protection chip. The solid arrow corresponds to the legitimate version protection chip, and the dotted arrow corresponds to the chip simulated by other MCUs. One of the two exists at any time. The simulation process is to capture the communication timing between the MCU and the legitimate version protection chip in advance, simulate the response timing of the version protection chip through other MCUs, and then replace the legitimate version protection chip for communication, so as to achieve the purpose of bypassing the authentication process and executing the product application normally.

[0004] With the increasing popularity of digital content and product diversification, the application scenarios of copyright protection chips are also expanding and deepening. How to provide more comprehensive protection for copyright protection chips to avoid potential risks such as being simulated is a problem that needs to be solved. Summary of the invention

[0005] In view of the technical problems existing in the prior art, the present invention provides an anti-simulation protection method and system for a version protection chip, so as to prevent the communication timing between the MCU and the version protection chip from being captured, and then using other MCUs to simulate the response timing of the version protection chip and then replace it for communication, thereby bypassing the authentication process, thereby achieving the purpose of strengthening protection of the version protection chip products in use.

[0006] According to a first aspect of the present invention, a method for protecting a version protection chip from simulation is provided, comprising: performing security verification before the version protection chip interacts with a control chip MCU, wherein the security verification process comprises: The same authentication data is pre-set in the version protection chip and the control chip MCU respectively. The control chip MCU generates a random number Rand1 and sends it to the version protection chip. The version protection chip generates a random number Rand2 and sends it to the control chip MCU. The control chip MCU calculates the message authentication code MAC1 according to the random number Rand1, the random number Rand2 and the authentication data through a preset algorithm, and the version protection chip calculates the message authentication code MAC2 according to the random number Rand1, the random number Rand2 and the authentication data through a preset algorithm, and the version protection chip sends the calculated message authentication code MAC2 to the control chip MCU; When the control chip MCU determines that the received random number Rand2 is the same as the random numbers received multiple times in the past or the received message authentication code MAC2 is different from the message authentication code MAC1, it determines that the security verification fails.

[0007] Based on the above technical solution, the present invention can also make the following improvements.

[0008] Optionally, the authentication data includes: Key, Uid and Pagex; MAC1=MAC2=Encrypt(Uid(Rand1),Key,Pagexx,Rand2); Encrypt represents an encryption function, and Uid represents a function related to a Uid value.

[0009] Optionally, after the control chip MCU generates a random number Rand1 and writes it into a preset area participating in authentication in the copyright protection chip, the copyright protection chip generates a random number Rand2 and sends it to the control chip MCU.

[0010] Optionally, the process in which the version protection chip sends the calculated message authentication code MAC2 to the control chip MCU includes: The control chip MCU randomly specifies the authentication page of the version protection chip, initiates an authentication command of host authentication to the version protection chip, and the control chip MCU and the version protection chip respectively calculate the message authentication code MAC1 and the message authentication code MAC2 based on the authentication page; the version protection chip returns the authentication code including the message authentication code MAC2 to the control chip MCU.

[0011] Optionally, after the control chip MCU determines that the received message authentication code MAC2 is the same as the message authentication code MAC1, the following further comprises: The control chip MCU randomly specifies the authentication page of the version protection chip, calculates the message authentication code MAC and sends it to the version protection chip, and the version protection chip verifies the legitimacy of the identity of the control chip MCU based on the sent message authentication code MAC.

[0012] Optionally, the process of verifying the legitimacy of the identity of the control chip MCU includes: The version protection chip generates a random number Rand3 and sends it to the control chip MCU; When the control chip MCU determines that the received random number Rand3 is different from the random numbers received multiple times in the past, it randomly specifies the authentication page of the version protection chip, calculates the message authentication code MAC3 through a preset algorithm according to the authentication page, the random number Rand1, the random number Rand3 and the authentication data, and sends the message authentication code MAC3 to the version protection chip; The version protection chip calculates the message authentication code MAC4 according to the authentication page, random number Rand1, random number Rand3 and authentication data through a preset algorithm, and determines that the identity of the control chip MCU is legal if the message authentication code MAC3 is equal to the message authentication code MAC4.

[0013] Optionally, after determining whether the identity of the control chip MCU is legal, the method further includes: The version protection chip returns a status value to the control chip MCU, and sends key data to the control chip MCU after a successful return. After the control chip MCU successfully reads the status returned by the version protection chip and determines that the read key data is normal, it is determined that the security verification has passed.

[0014] According to a second aspect of the present invention, there is provided an anti-simulation protection system for a copyright protection chip, comprising: the system comprising: a copyright protection chip and a control chip MCU; the copyright protection chip and the control chip MCU are subjected to security verification before working interaction; The same authentication data is pre-set in the version protection chip and the control chip MCU respectively, the control chip MCU generates a random number Rand1 and sends it to the control chip MCU, and the version protection chip generates a random number Rand2 and sends it to the control chip MCU; The control chip MCU and the version protection chip respectively calculate the message authentication code MAC1 and the message authentication code MAC2 according to the random number Rand1, the random number Rand2 and the authentication data through a preset algorithm; the version protection chip sends the calculated message authentication code MAC2 to the control chip MCU; When the control chip MCU determines that the received random number Rand2 is the same as the random numbers received multiple times in the past or the received message authentication code MAC2 is different from the message authentication code MAC1, it determines that the security verification fails.

[0015] According to a third aspect of the present invention, there is provided an electronic device comprising a memory and a processor, wherein the processor is used to implement the steps of the anti-simulation protection method of the version protection chip when executing a computer management program stored in the memory.

[0016] According to a fourth aspect of the present invention, there is provided a computer-readable storage medium on which a computer management program is stored, and when the computer management program is executed by a processor, the steps of the anti-simulation protection method of the copyright protection chip are implemented.

[0017] The present invention provides an anti-simulation protection method, system, electronic device and storage medium for a copyright protection chip. Since the simulated chip realizes a communication sequence captured in advance, the response data can be easily repeated within a limited number of times, while the legitimate copyright protection chip will respond to a true random number, which is different each time. Therefore, it is judged whether the received random number is the same as the random numbers received multiple times in the past. If they are different, it is determined to be a valid random number; the MCU randomly specifies the page that the chip participates in authentication, and initiates a host authentication process, and then reads the message authentication code MAC of the chip and compares it with the message authentication code MAC of the MCU to verify the legitimacy of the copyright protection chip; the MCU randomly specifies the page that the chip participates in authentication, calculates and sends the message authentication code MAC, and then initiates a slave authentication reading process, at which time the chip compares the message authentication code MAC of the MCU to verify the legitimacy of the MCU; after detecting that the authentication reading state is successful, the legitimacy of the key data (which can be stored in ciphertext) is read, and the normal process can be executed only if the detection is valid, otherwise an error is reported; the complete copyright protection of the system of the copyright protection chip product that has been used can be achieved, and the copyright protection chip can be prevented from being simulated. BRIEF DESCRIPTION OF THE DRAWINGS

[0018] Figure 1 It is a schematic diagram of the interaction of simulating a legal version protection chip; Figure 2 A flowchart of an anti-simulation protection method for a version protection chip provided by the present invention; Figure 3 A schematic diagram of the hardware structure of a possible electronic device provided by the present invention; Figure 4 A schematic diagram of the hardware structure of a possible computer-readable storage medium provided by the present invention. DETAILED DESCRIPTION

[0019] The principles and features of the present invention are described below in conjunction with the accompanying drawings. The examples given are only used to explain the present invention and are not used to limit the scope of the present invention.

[0020] Figure 2 A flowchart of an embodiment of an anti-simulation protection method for a version protection chip provided by the present invention is shown in FIG. Figure 2 As shown, the method includes: performing security verification before the version protection chip interacts with the control chip MCU, and the security verification process includes: The same authentication data is preset in the version protection chip and the control chip MCU respectively. The control chip MCU generates a random number Rand1 and sends it to the version protection chip. The version protection chip generates a random number Rand2 and sends it to the control chip MCU.

[0021] The control chip MCU calculates the message authentication code MAC1 according to the random number Rand1, random number Rand2 and authentication data through a preset algorithm. The version protection chip calculates the message authentication code MAC2 according to the random number Rand1, random number Rand2 and authentication data through a preset algorithm. The version protection chip sends the calculated message authentication code MAC2 to the control chip MCU.

[0022] When the control chip MCU determines that the received random number Rand2 is the same as the random numbers received multiple times in the past or the received message authentication code MAC2 is different from the message authentication code MAC1, it determines that the security verification fails.

[0023] Since the simulated chip is implemented by the communication timing captured in advance, the response data is easy to repeat within a limited number of times, while the legitimate version protection chip will respond with a true random number, which is different each time. Therefore, it is determined whether the received random number Rand2 is the same as the random numbers received multiple times in the past. If they are different, it is determined to be a valid random number and the next step is carried out. If they are the same, it is invalid and an error is reported. In specific implementation, the number can be set as needed, for example, it can be set to three times.

[0024] Since the simulated chip is implemented by implementing the communication timing captured in advance, it is impossible to achieve synchronous changes in the message authentication code MAC value. The control chip MCU determines whether the message authentication code MAC1 is equal to the message authentication code MAC2 of the version protection chip. If they are equal, it means that the identity of the version protection chip is legal. Otherwise, it is a simulated chip and an error is reported.

[0025] The present invention provides an anti-simulation protection method for a version protection chip, which prevents the use of other MCUs to simulate the response timing of the version protection chip after capturing the communication timing between the MCU and the version protection chip, and then replaces it for communication, thereby bypassing the authentication process and achieving the purpose of strengthening protection of the version protection chip products in use.

[0026] Example 1 Embodiment 1 of the present invention is an embodiment of an anti-simulation protection method of a version protection chip provided by the present invention, combined with Figure 2 It can be seen that the embodiment of the method includes: Before the version protection chip interacts with the control chip MCU, security verification is performed. The security verification process includes: The same authentication data is preset in the version protection chip and the control chip MCU respectively. The control chip MCU generates a random number Rand1 and sends it to the version protection chip. The version protection chip generates a random number Rand2 and sends it to the control chip MCU.

[0027] In a possible implementation manner, the authentication data includes: Key, Uid and Pagex.

[0028] MAC1=MAC2=Encrypt(Uid(Rand1),Key,Pagexx,Rand2).

[0029] Uid represents the user ID data involved in the authentication calculation, where Uid (Rand1) represents using Rand1 to write the UID area as the user ID data; Key represents the key data involved in the authentication calculation; Pagex represents the user page data involved in the authentication calculation; Encrypt represents the encryption algorithm function, and the input parameters are: Uid, Key, specified Pagex, random number, and the output message authentication code: message authentication code MAC. The control chip MCU and the version protection chip can use the same encryption algorithm.

[0030] In the specific implementation, the authentication data is the data in the Key, Uid, Pagex and other areas. The authentication data of the corresponding control chip MCU is recorded as Key1, Uid1, Pagexx-1, and the authentication data of the version protection chip is recorded as Key2, Uid2, Pagexx-2. The control chip MCU calculates MAC1 = Encrypt (Uid1 (Rand1), Key1, Pagexx-1, Rand2), and reads MAC2 = Encrypt (Uid2 (Rand1), Key2, Pagexx-2, Rand2) of the version protection chip.

[0031] In a possible implementation manner, after the copyright protection chip generates a random number Rand1 and writes it into a preset authentication area in the control chip MCU, the copyright protection chip generates a random number Rand2 and sends it to the control chip MCU.

[0032] In the specific implementation, the preset area participating in the authentication is, for example, the Uid area, so that the message authentication code MAC value calculated each time the authentication process is subsequently executed will change. The simulated chip is achieved by implementing the communication timing captured in advance and cannot achieve synchronous changes.

[0033] The control chip MCU calculates the message authentication code MAC1 according to the random number Rand1, random number Rand2 and authentication data through a preset algorithm. The version protection chip calculates the message authentication code MAC2 according to the random number Rand1, random number Rand2 and authentication data through a preset algorithm. The version protection chip sends the calculated message authentication code MAC2 to the control chip MCU.

[0034] In a possible implementation manner, the process in which the version protection chip sends the calculated message authentication code MAC2 to the control chip MCU includes: The control chip MCU randomly specifies the authentication page of the version protection chip, initiates the authentication command of the host authentication to the version protection chip, and the control chip MCU and the version protection chip respectively calculate the message authentication code MAC1 and the message authentication code MAC2 based on the authentication page; the version protection chip returns the authentication code including the message authentication code MAC2 to the control chip MCU.

[0035] The control chip MCU determines whether the message authentication code MAC1 is equal to the message authentication code MAC2 of the version protection chip. If they are equal, it means that the identity of the version protection chip is legal. Then the next step is to verify the legitimacy of the MCU identity. Otherwise, it is a simulated chip and an error is reported.

[0036] When the control chip MCU determines that the received random number Rand2 is the same as the random numbers received multiple times in the past or the received message authentication code MAC2 is different from the message authentication code MAC1, it determines that the security verification fails.

[0037] In a possible implementation manner, after the control chip MCU determines that the received message authentication code MAC2 is the same as the message authentication code MAC1, the following further includes: The control chip MCU randomly specifies the authentication page of the version protection chip, calculates the message authentication code MAC and sends it to the version protection chip. The version protection chip verifies the legitimacy of the identity of the control chip MCU based on the sent message authentication code MAC.

[0038] In a possible embodiment, the process of verifying the legitimacy of the identity of the control chip MCU includes: The version protection chip generates a random number Rand3 and sends it to the control chip MCU.

[0039] When the control chip MCU determines that the received random number Rand3 is different from the random numbers received multiple times in the past, it randomly specifies the authentication page of the version protection chip, calculates the message authentication code MAC3 through a preset algorithm based on the authentication page, random number Rand1, random number Rand3 and authentication data, and sends the message authentication code MAC3 to the version protection chip.

[0040] MCU obtains the random data Rand3 of the chip, and determines whether the current random number is the same as the previous three times. If they are different, it is determined to be a valid random number. If they are the same, it is invalid and an error is reported. Since the simulated chip is realized by implementing the communication timing captured in advance, the response data can be easily repeated within a limited number of times, while the legal version-protected chip will respond with a true random number, which is different each time.

[0041] The version protection chip calculates the message authentication code MAC4 according to the authentication page, random number Rand1, random number Rand3 and authentication data through a preset algorithm. If the message authentication code MAC3 is equal to the message authentication code MAC4, the identity of the control chip MCU is determined to be legal.

[0042] In a specific implementation, the calculation formulas of the message authentication code MAC3 and the message authentication code MAC4 can be: message authentication code MAC3 = Encrypt (Uid1 (Rand1), Key1, Pagex-1, Rand3); message authentication code MAC4 = Encrypt (Uid2 (Rand1), Key2, Pagex-2, Rand3).

[0043] In a possible implementation manner, after determining whether the identity of the control chip MCU is legitimate, the following step is further included: The version protection chip returns the status value to the control chip MCU, and sends key data to the control chip MCU after the return is successful. After the control chip MCU successfully reads the status returned by the version protection chip and determines that the read key data is normal, it determines that the security verification has passed.

[0044] The control chip MCU reads the status returned by the chip. If successful, it further reads the key data, otherwise it reports an error. The control chip MCU compares the validity of the key data. If normal, it executes the subsequent process normally, otherwise it reports an error.

[0045] The embodiment of the anti-simulation protection method of a copyright protection chip provided by the present invention can prevent the copyright protection chip from being simulated, thereby realizing copyright protection for products that have used the copyright protection chip.

[0046] Example 2 Embodiment 2 provided by the present invention is an embodiment of an anti-simulation protection system of a copyright protection chip provided by the present invention, and the embodiment of the system includes: a copyright protection chip and a control chip MCU; security verification is performed before the copyright protection chip and the control chip MCU interact with each other.

[0047] The same authentication data is preset in the version protection chip and the control chip MCU respectively. The control chip MCU generates a random number Rand1 and sends it to the control chip MCU. The version protection chip generates a random number Rand2 and sends it to the control chip MCU.

[0048] The control chip MCU and the version protection chip calculate the message authentication code MAC1 and the message authentication code MAC2 respectively according to the random number Rand1, the random number Rand2 and the authentication data through a preset algorithm; the version protection chip sends the calculated message authentication code MAC2 to the control chip MCU.

[0049] When the control chip MCU determines that the received random number Rand2 is the same as the random numbers received multiple times in the past or the received message authentication code MAC2 is different from the message authentication code MAC1, it determines that the security verification fails.

[0050] It can be understood that the anti-simulation protection system of a copyright protection chip provided by the present invention corresponds to the anti-simulation protection method of the copyright protection chip provided in the aforementioned embodiments. The relevant technical features of the anti-simulation protection system of the copyright protection chip can refer to the relevant technical features of the anti-simulation protection method of the copyright protection chip, which will not be repeated here.

[0051] See also Figure 3 , Figure 3 Schematic diagram of an electronic device provided by an embodiment of the present invention. Figure 3 As shown, an embodiment of the present invention provides an electronic device, including a memory 1310, a processor 1320, and a computer program 1311 stored in the memory 1310 and executable on the processor 1320. When the processor 1320 executes the computer program 1311, the following steps are implemented: security verification is performed before the version protection chip and the control chip MCU interact with each other, and the security verification process includes: the same authentication data is pre-set in the version protection chip and the control chip MCU respectively, the control chip MCU generates a random number Rand1 for the version protection chip, and the version protection chip generates a random number Rand2 and sends it to the control chip MCU; the control chip MCU calculates a message authentication code MAC1 according to the random number Rand1, the random number Rand2 and the authentication data through a preset algorithm, the version protection chip calculates a message authentication code MAC2 according to the random number Rand1, the random number Rand2 and the authentication data through a preset algorithm, and the version protection chip sends the calculated message authentication code MAC2 to the control chip MCU; when the control chip MCU determines that the received random number Rand2 is the same as the random number received multiple times in the past or the received message authentication code MAC2 is different from the message authentication code MAC1, it determines that the security verification fails.

[0052] See also Figure 4 , Figure 4 Schematic diagram of an embodiment of a computer-readable storage medium provided by the present invention. Figure 4As shown, this embodiment provides a computer-readable storage medium 1400, on which a computer program 1411 is stored. When the computer program 1411 is executed by the processor, the following steps are implemented: security verification is performed before the version protection chip and the control chip MCU interact with each other, and the security verification process includes: the same authentication data is pre-set in the version protection chip and the control chip MCU respectively, the control chip MCU generates a random number Rand1 for the version protection chip, and the version protection chip generates a random number Rand2 and sends it to the control chip MCU; the control chip MCU calculates a message authentication code MAC1 according to the random number Rand1, the random number Rand2 and the authentication data through a preset algorithm, the version protection chip calculates a message authentication code MAC2 according to the random number Rand1, the random number Rand2 and the authentication data through a preset algorithm, and the version protection chip sends the calculated message authentication code MAC2 to the control chip MCU; when the control chip MCU determines that the received random number Rand2 is the same as the random number received multiple times in the past or the received message authentication code MAC2 is different from the message authentication code MAC1, it determines that the security verification has failed.

[0053] The embodiment of the present invention provides an anti-simulation protection method, system, electronic device and storage medium for a copyright protection chip. Since the simulated chip is realized by implementing a communication timing captured in advance, the response data is easy to be repeated within a limited number of times, and the legitimate copyright protection chip will respond to a true random number, which is different each time. Therefore, it is judged whether the received random number is the same as the random numbers received multiple times in the past. If they are different, it is determined to be a valid random number; the MCU randomly specifies the page for the chip to participate in the authentication, and initiates the host authentication process, and then reads the message authentication code MAC of the chip and compares it with the message authentication code MAC of the MCU to verify the legitimacy of the copyright protection chip; the MCU randomly specifies the page for the chip to participate in the authentication, calculates and sends the message authentication code MAC, and then initiates the slave authentication read process. At this time, the chip compares the message authentication code MAC of the MCU to verify the legitimacy of the MCU; after detecting that the authentication read status is successful, read the legitimacy of the key data (which can be stored in ciphertext), and the normal process can be executed only if the detection is valid, otherwise an error is reported; the complete copyright protection of the system of the copyright protection chip product that has been used can be achieved, and the copyright protection chip can be prevented from being simulated.

[0054] It should be noted that in the above embodiments, the description of each embodiment has its own emphasis, and for parts that are not described in detail in a certain embodiment, reference can be made to the relevant descriptions of other embodiments.

[0055] It will be appreciated by those skilled in the art that embodiments of the present invention may be provided as methods, systems, or computer program products. Therefore, the present invention may take the form of a complete hardware embodiment, a complete software embodiment, or an embodiment combining software and hardware. Furthermore, the present invention may take 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.) containing computer-usable program code.

[0056] The present invention is described with reference to flowcharts and / or block diagrams of methods, devices (systems), and computer program products according to embodiments of the present invention. It should be understood that each process and / or block in the flowchart and / or block diagram, as well as the combination of 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 computer, or other programmable data processing device to produce 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.

[0057] 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.

[0058] 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 in the computer or other programmable device. Figure 1 A process or multiple processes and / or boxes Figure 1 The steps for the functions specified in one or more boxes.

[0059] Although the preferred embodiments of the present invention have been described, those skilled in the art may make other changes and modifications to these embodiments once they have learned the basic creative concept. Therefore, the appended claims are intended to be interpreted as including the preferred embodiments and all changes and modifications that fall within the scope of the present invention.

[0060] Obviously, those skilled in the art can make various changes and modifications to the present invention without departing from the spirit and scope of the present invention. Thus, if these modifications and variations of the present invention fall within the scope of the claims of the present invention and their equivalents, the present invention is also intended to include these modifications and variations.

Claims

1. A method for protecting a copyright protection chip from simulation, characterized in that: The method includes: performing security verification before the version protection chip interacts with the control chip MCU, and the security verification process includes: The same authentication data is pre-set in the version protection chip and the control chip MCU respectively. The control chip MCU generates a random number Rand1 and sends it to the version protection chip. The version protection chip generates a random number Rand2 and sends it to the control chip MCU. The control chip MCU calculates the message authentication code MAC1 according to the random number Rand1, the random number Rand2 and the authentication data through a preset algorithm, and the version protection chip calculates the message authentication code MAC2 according to the random number Rand1, the random number Rand2 and the authentication data through a preset algorithm, and the version protection chip sends the calculated message authentication code MAC2 to the control chip MCU; When the control chip MCU determines that the currently received random number Rand2 is the same as the random numbers received multiple times in the past or the received message authentication code MAC2 is different from the message authentication code MAC1, it determines that the security verification fails.

2. The method according to claim 1, characterized in that The authentication data includes: Key, Uid and Pagex; MAC1=MAC2=Encrypt(Uid(Rand1),Key,Pagexx,Rand2); Uid represents the user ID data involved in the authentication calculation, where Uid(Rand1) means using Rand1 to write the UID area as the user ID data; Key represents the key data involved in the authentication calculation; Pagexx represents the xth user page data involved in the authentication calculation; Encrypt represents the encryption algorithm function.

3. The method according to claim 1, characterized in that After the control chip MCU generates a random number Rand1 and writes it into a preset area participating in authentication in the copyright protection chip, the copyright protection chip generates a random number Rand2 and sends it to the control chip MCU.

4. The method according to claim 1, characterized in that The process of the version protection chip sending the calculated message authentication code MAC2 to the control chip MCU includes: The control chip MCU randomly specifies the authentication page of the version protection chip, initiates an authentication command of host authentication to the version protection chip, and the control chip MCU and the version protection chip respectively calculate the message authentication code MAC1 and the message authentication code MAC2 based on the authentication page; the version protection chip returns the authentication code including the message authentication code MAC2 to the control chip MCU.

5. The method according to claim 1, characterized in that After the control chip MCU determines that the received message authentication code MAC2 is the same as the message authentication code MAC1, the following further comprises: The control chip MCU randomly specifies the authentication page of the version protection chip, calculates the message authentication code MAC and sends it to the version protection chip, and the version protection chip verifies the legitimacy of the identity of the control chip MCU based on the sent message authentication code MAC.

6. The method according to claim 5, characterized in that The process of verifying the legitimacy of the identity of the control chip MCU includes: The version protection chip generates a random number Rand3 and sends it to the control chip MCU; When the control chip MCU determines that the received random number Rand3 is different from the random numbers received multiple times in the past, it randomly specifies the authentication page of the version protection chip, calculates the message authentication code MAC3 through a preset algorithm according to the authentication page, the random number Rand1, the random number Rand3 and the authentication data, and sends the message authentication code MAC3 to the version protection chip; The version protection chip calculates the message authentication code MAC4 according to the authentication page, random number Rand1, random number Rand3 and authentication data through a preset algorithm, and determines that the identity of the control chip MCU is legal if the message authentication code MAC3 is equal to the message authentication code MAC4.

7. The method according to claim 6, characterized in that After determining that the identity of the control chip MCU is legal, the following further comprises: The version protection chip returns a status value to the control chip MCU, and sends key data to the control chip MCU after a successful return; After the control chip MCU successfully reads the status returned by the version protection chip and determines that the read key data is normal, it is determined that the security verification has passed.

8. An anti-simulation protection system for a copyright protection chip, characterized in that: The system includes: a version protection chip and a control chip MCU; the version protection chip and the control chip MCU perform security verification before working interaction; The same authentication data is pre-set in the version protection chip and the control chip MCU respectively. The control chip MCU generates a random number Rand1 and sends it to the version protection chip. The version protection chip generates a random number Rand2 and sends it to the control chip MCU. The control chip MCU and the version protection chip respectively calculate the message authentication code MAC1 and the message authentication code MAC2 according to the random number Rand1, the random number Rand2 and the authentication data through a preset algorithm; the version protection chip sends the calculated message authentication code MAC2 to the control chip MCU; When the control chip MCU determines that the received random number Rand2 is the same as the random numbers received multiple times in the past or the received message authentication code MAC2 is different from the message authentication code MAC1, it determines that the security verification fails.

9. An electronic device, characterized in that: It comprises a memory and a processor, wherein the processor is used to implement the steps of the anti-simulation protection method of the version protection chip as described in any one of claims 1 to 7 when executing the computer management program stored in the memory.

10. A computer-readable storage medium, characterized in that: A computer management program is stored thereon, and when the computer management program is executed by a processor, the steps of the anti-simulation protection method of the version protection chip as described in any one of claims 1-7 are implemented.