CN115080998A - Method, system, electronic device and storage medium for preventing firmware from being illegally copied - Google Patents
Method, system, electronic device and storage medium for preventing firmware from being illegally copied Download PDFInfo
- Publication number
- CN115080998A CN115080998A CN202210622264.5A CN202210622264A CN115080998A CN 115080998 A CN115080998 A CN 115080998A CN 202210622264 A CN202210622264 A CN 202210622264A CN 115080998 A CN115080998 A CN 115080998A
- Authority
- CN
- China
- Prior art keywords
- firmware
- calculation result
- random number
- control unit
- determined
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Withdrawn
Links
Images
Classifications
-
- G—PHYSICS
- G06—COMPUTING OR CALCULATING; COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F21/00—Security arrangements for protecting computers, components thereof, programs or data against unauthorised activity
- G06F21/60—Protecting data
- G06F21/602—Providing cryptographic facilities or services
-
- G—PHYSICS
- G06—COMPUTING OR CALCULATING; COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F7/00—Methods or arrangements for processing data by operating upon the order or content of the data handled
- G06F7/58—Random or pseudo-random number generators
- G06F7/588—Random number generators, i.e. based on natural stochastic processes
Landscapes
- Engineering & Computer Science (AREA)
- Theoretical Computer Science (AREA)
- Physics & Mathematics (AREA)
- General Physics & Mathematics (AREA)
- General Engineering & Computer Science (AREA)
- Computer Hardware Design (AREA)
- Software Systems (AREA)
- Computer Security & Cryptography (AREA)
- Health & Medical Sciences (AREA)
- General Health & Medical Sciences (AREA)
- Bioethics (AREA)
- Computational Mathematics (AREA)
- Mathematical Analysis (AREA)
- Mathematical Optimization (AREA)
- Pure & Applied Mathematics (AREA)
- Storage Device Security (AREA)
Abstract
本发明涉及防止固件被非法复制的方法、系统、电子设备和存储介质,包括以下步骤:控制单元生成第一随机数,并将第一随机数发送给加密单元;加密单元接收第一随机数,并对第一随机数进行计算,获得第一计算结果发送给控制单元;控制单元基于第一随机数进行计算,获得第二计算结果;控制单元判断在预设时间段内是否接收到加密单元返回的第一计算结果;若接收到第一计算结果,则判断第二计算结果与第一计算结果是否匹配;若匹配,则判定固件合法;若不匹配,则判定固件不合法;若没有接收到第一计算结果,则判定固件不合法。本发明可以有效避免固件被非法拷贝或者复制,降低风险和损失,有效保护固件拥有者的知识产权。
The present invention relates to a method, system, electronic device and storage medium for preventing firmware from being illegally copied, including the following steps: a control unit generates a first random number, and sends the first random number to an encryption unit; the encryption unit receives the first random number, Calculate the first random number, obtain the first calculation result and send it to the control unit; the control unit calculates based on the first random number to obtain the second calculation result; the control unit judges whether the encryption unit returns within the preset time period If the first calculation result is received, it is judged whether the second calculation result matches the first calculation result; if it matches, it is judged that the firmware is legal; The first calculation result determines that the firmware is illegal. The invention can effectively prevent the firmware from being illegally copied or duplicated, reduce risks and losses, and effectively protect the intellectual property rights of the firmware owner.
Description
技术领域technical field
本发明涉及电子技术领域,更具体地说,涉及一种防止固件被非法复制的方法、系统、电子设备和存储介质。The present invention relates to the field of electronic technology, and more particularly, to a method, system, electronic device and storage medium for preventing firmware from being illegally copied.
背景技术Background technique
随着智能电子产品的广泛应用,基于MCU的嵌入式系统越来越得到广泛使用。指挥MCU运行的软件――即通称的“固件”,构成了产品的核心知识产权,也是产品厂端的核心竞争力。由于硬件很容易被破解、仿制等,而软件决定了产品控制的各种细节,却无法被人直接获知其原理。并且,在产品在开发周期中,软件开发的工作量远远大于硬件,一旦被破解、仿制,产品厂商将遭受重大损失,因此,保护产品的固件不被非法拷贝是各嵌入式系统产品厂商都非常重视的问题。With the wide application of intelligent electronic products, MCU-based embedded systems are more and more widely used. The software that directs the MCU to run, commonly known as "firmware", constitutes the core intellectual property of the product and is also the core competitiveness of the product factory. Because hardware is easy to be cracked, imitated, etc., and software determines various details of product control, but its principles cannot be directly known. In addition, in the product development cycle, the workload of software development is far greater than that of hardware. Once it is cracked or copied, the product manufacturer will suffer heavy losses. Therefore, protecting the firmware of the product from illegal copying is a must for all embedded system product manufacturers. very important issue.
对于简单的MCU,由于内置有Flash存储器来存储固件,只要烧录时设置编程器“防止读出”,就可以避免固件被非法读取出来,从而写到其它MCU芯片中去,所以保护不成问题。但是对于复杂MCU,固件非常复杂庞大,对应的Flash体积要求也很大,由于IC制程工艺限制,MCU内置Flash已无法满足,只能用专用的Flash存储器――即NAND Flash,然而,NANDFlash的内容很容易被读取,因此,对于复杂MCU的固件仍存在被非法拷贝的风险。For a simple MCU, since there is a built-in Flash memory to store the firmware, as long as the programmer is set to "prevent reading" during programming, the firmware can be prevented from being illegally read and written to other MCU chips, so protection is not a problem. . However, for complex MCUs, the firmware is very complex and huge, and the corresponding Flash volume requirements are also very large. Due to the limitations of the IC manufacturing process, the built-in Flash of the MCU can no longer be satisfied, and only a dedicated Flash memory, namely NAND Flash, can be used. However, the content of NAND Flash It is easy to read, so there is still a risk of illegal copying of firmware for complex MCUs.
发明内容SUMMARY OF THE INVENTION
本发明要解决的技术问题在于,针对现有技术的缺陷,提供一种防止固件被非法复制的方法、系统、电子设备和存储介质。The technical problem to be solved by the present invention is to provide a method, system, electronic device and storage medium for preventing firmware from being illegally copied in view of the defects of the prior art.
本发明解决其技术问题所采用的技术方案是:构造一种防止固件被非法复制的方法,包括以下步骤:The technical scheme adopted by the present invention to solve the technical problem is: construct a method for preventing firmware from being illegally copied, comprising the following steps:
控制单元生成第一随机数,并将所述第一随机数发送给加密单元;The control unit generates a first random number, and sends the first random number to the encryption unit;
所述加密单元接收所述第一随机数,并对所述第一随机数进行计算,获得第一计算结果发送给控制单元;The encryption unit receives the first random number, calculates the first random number, obtains a first calculation result and sends it to the control unit;
所述控制单元基于所述第一随机数进行计算,获得第二计算结果;The control unit performs calculation based on the first random number to obtain a second calculation result;
所述控制单元判断在预设时间段内是否接收到所述加密单元返回的第一计算结果;The control unit determines whether the first calculation result returned by the encryption unit is received within a preset time period;
若接收到所述第一计算结果,则判断所述第二计算结果与所述第一计算结果是否匹配;If the first calculation result is received, determine whether the second calculation result matches the first calculation result;
若匹配,则判定所述固件合法;If it matches, it is determined that the firmware is legal;
若不匹配,则判定所述固件不合法;If it does not match, it is determined that the firmware is illegal;
若没有接收到所述第一计算结果,则判定所述固件不合法。If the first calculation result is not received, it is determined that the firmware is invalid.
在本发明所述的防止固件被非法复制的方法中,所述方法还包括:In the method for preventing firmware from being illegally copied according to the present invention, the method further includes:
若判定所述固件不合法,则不执行固件的全部或者部分功能;If it is determined that the firmware is illegal, all or part of the functions of the firmware will not be executed;
若判定所述固件合法,则所述固件正常运行。If it is determined that the firmware is valid, the firmware operates normally.
在本发明所述的防止固件被非法复制的方法中,所述加密单元接收所述第一随机数,并对所述第一随机数进行计算,获得第一计算结果发送给控制单元包括:In the method for preventing firmware from being illegally copied according to the present invention, the encryption unit receives the first random number, calculates the first random number, and obtains the first calculation result and sends it to the control unit, comprising:
所述加密单元根据预存密钥和预设算法对所述第一随机数进行计算,获得所述第一计算结果发送给控制单元;The encryption unit calculates the first random number according to the pre-stored key and the preset algorithm, obtains the first calculation result and sends it to the control unit;
所述控制单元基于所述第一随机数进行计算,获得第二计算结果包括:The control unit performs calculation based on the first random number, and obtaining the second calculation result includes:
所述控制单元根据预存密钥和预设算法对所述第一随机数进行计算,获得所述第二计算结果。The control unit calculates the first random number according to a pre-stored key and a preset algorithm to obtain the second calculation result.
本发明还提供一种防止固件被非法复制的系统,包括:控制单元、与所述控制单元通信的加密单元;The present invention also provides a system for preventing firmware from being illegally copied, comprising: a control unit, an encryption unit communicating with the control unit;
所述控制单元用于:生成第一随机数,并将所述第一随机数发送给所述加密单元,以及基于所述第一随机数进行计算,获得第二计算结果;The control unit is configured to: generate a first random number, send the first random number to the encryption unit, and perform calculation based on the first random number to obtain a second calculation result;
所述控制单元还用于:判断在预设时间段内是否接收到所述加密单元返回的第一计算结果;若接收到所述第一计算结果,则判断所述第二计算结果与所述第一计算结果是否匹配;若匹配,则判定所述固件合法;若不匹配,则判定所述固件不合法;若没有接收到所述第一计算结果,则判定所述固件不合法;The control unit is further configured to: determine whether the first calculation result returned by the encryption unit is received within a preset time period; if the first calculation result is received, determine whether the second calculation result is the same as the Whether the first calculation result matches; if it matches, it is determined that the firmware is legal; if it does not match, it is determined that the firmware is illegal; if the first calculation result is not received, it is determined that the firmware is illegal;
所述加密单元用于:接收所述第一随机数,并对所述第一随机数进行计算,获得第一计算结果,并返回至所述控制单元。The encryption unit is configured to: receive the first random number, calculate the first random number, obtain a first calculation result, and return the result to the control unit.
本发明还提供一种电子设备,包括:存储器和处理器;所述存储器用于存储程序指令,所述处理器用于根据所述存储器所存储的程序指令执行如上所述方法的步骤。The present invention also provides an electronic device, comprising: a memory and a processor; the memory is used for storing program instructions, and the processor is used for executing the steps of the above method according to the program instructions stored in the memory.
本发明还提供一种存储介质,其上存储有计算机程序,所述计算机程序被处理器执行时实现如上所述方法的步骤。The present invention also provides a storage medium on which a computer program is stored, and when the computer program is executed by a processor, implements the steps of the above method.
实施本发明的防止固件被非法复制的方法、系统、电子设备和存储介质,具有以下有益效果:包括以下步骤:控制单元生成第一随机数,并将第一随机数发送给加密单元;加密单元接收第一随机数,并对第一随机数进行计算,获得第一计算结果发送给控制单元;控制单元基于第一随机数进行计算,获得第二计算结果;控制单元判断在预设时间段内是否接收到加密单元返回的第一计算结果;若接收到第一计算结果,则判断第二计算结果与第一计算结果是否匹配;若匹配,则判定固件合法;若不匹配,则判定固件不合法;若没有接收到第一计算结果,则判定固件不合法。本发明可以有效避免固件被非法拷贝或者复制,降低风险和损失,有效保护固件拥有者的知识产权。Implementing the method, system, electronic device and storage medium for preventing firmware from being illegally copied of the present invention has the following beneficial effects: comprising the following steps: the control unit generates a first random number, and sends the first random number to an encryption unit; the encryption unit Receive the first random number, calculate the first random number, obtain the first calculation result and send it to the control unit; the control unit calculates based on the first random number to obtain the second calculation result; the control unit judges that within a preset time period Whether the first calculation result returned by the encryption unit is received; if the first calculation result is received, it is determined whether the second calculation result matches the first calculation result; if it matches, it is determined that the firmware is legal; if it does not match, it is determined that the firmware is not. Legal; if the first calculation result is not received, it is determined that the firmware is illegal. The invention can effectively prevent the firmware from being illegally copied or duplicated, reduce risks and losses, and effectively protect the intellectual property rights of the firmware owner.
附图说明Description of drawings
下面将结合附图及实施例对本发明作进一步说明,附图中:The present invention will be further described below in conjunction with the accompanying drawings and embodiments, in which:
图1是本发明提供的防止固件被非法复制的方法实施例一的流程示意图;1 is a schematic flowchart of Embodiment 1 of a method for preventing firmware from being illegally copied provided by the present invention;
图2是本发明提供的防止固件被非法复制的系统的结构示意图。FIG. 2 is a schematic structural diagram of a system for preventing firmware from being illegally copied provided by the present invention.
具体实施方式Detailed ways
为了对本发明的技术特征、目的和效果有更加清楚的理解,现对照附图详细说明本发明的具体实施方式。In order to have a clearer understanding of the technical features, objects and effects of the present invention, the specific embodiments of the present invention will now be described in detail with reference to the accompanying drawings.
参考图1,为本发明提供的防止固件被非法复制的方法实施例一的流程示意图。Referring to FIG. 1 , it is a schematic flowchart of Embodiment 1 of the method for preventing firmware from being illegally copied provided by the present invention.
如图1所示,该防止固件被非法复制的方法包括以下步骤:As shown in Figure 1, the method for preventing firmware from being illegally copied includes the following steps:
步骤S101、控制单元20生成第一随机数,并将第一随机数发送给加密单元40。Step S101 , the control unit 20 generates a first random number, and sends the first random number to the encryption unit 40 .
其中,这里所说的存储器30为系统中的存储器30,其用于存储固件。The memory 30 mentioned here is the memory 30 in the system, which is used for storing firmware.
可选的,本发明实施例中,控制单元20可以为主MCU。其中,该控制单元20可以在启动时、或者在读取固件前,采用预设的方法生成第一随机数,并将所生成的第一随机数发送给加密单元40。Optionally, in this embodiment of the present invention, the control unit 20 may be a main MCU. Wherein, the control unit 20 may generate the first random number by using a preset method during startup or before reading the firmware, and send the generated first random number to the encryption unit 40 .
可选的,本发明实施例中,预设的随机数生成方法可以包括但不限于主MCU上电时内存中杂乱无章的内容、定时器码等,或者,也可以是多者之间的结合等。Optionally, in this embodiment of the present invention, the preset random number generation method may include, but is not limited to, disordered content in the memory when the main MCU is powered on, timer codes, etc., or may be a combination of many, etc. .
可选的,本发明实施例中,加密单元40可以为加密芯片。该加密芯片可以是一个内置Flash的简易MCU,或者也可以采用一次性写入(OTP)的MCU。通过采用此类型的MCU可以大大降低器件成本,而且程序也相对简单。在其他一些实施例中,该加密芯片还可以执行其他功能,如存储设备的运行参数等。Optionally, in this embodiment of the present invention, the encryption unit 40 may be an encryption chip. The encryption chip can be a simple MCU with built-in Flash, or a one-time write (OTP) MCU. By adopting this type of MCU, the cost of the device can be greatly reduced, and the procedure is relatively simple. In some other embodiments, the encryption chip may also perform other functions, such as storing operating parameters of the device.
其中,本发明实施例中,该加密芯片与主MCU之间可以通过各种接口实现通信连接,例如可采用但不限于标准的IIC、SPI、UART、自定义接口等,或者,也可以采用自定义的通信格式,只要可实现双向可靠通信即可。Among them, in the embodiment of the present invention, communication connection between the encryption chip and the main MCU can be realized through various interfaces, such as but not limited to standard IIC, SPI, UART, custom interface, etc. The defined communication format, as long as two-way reliable communication can be achieved.
本发明通过采用简单MCU作为加密芯片可以有效防止固件被非法复制。The invention can effectively prevent the firmware from being illegally copied by using a simple MCU as the encryption chip.
可选的,一些实施例中,该加密芯片不只用来加密,也可以分担部分MCU的处理负担。Optionally, in some embodiments, the encryption chip is not only used for encryption, but also can share the processing burden of part of the MCU.
可选的,若加密芯片缺失或损坏,导致MCU认为固件不合法,可以部分或全部禁用固件的功能。任何因加密芯片的存在于否,导致MCU行为不同,均属本发明保护范围。Optionally, if the encryption chip is missing or damaged, causing the MCU to think that the firmware is illegal, the functions of the firmware can be partially or completely disabled. Any difference in MCU behavior due to the presence or absence of an encryption chip falls within the protection scope of the present invention.
步骤S102、加密单元40接收第一随机数,并对第一随机数进行计算,获得第一计算结果发送给控制单元20。Step S102 , the encryption unit 40 receives the first random number, calculates the first random number, obtains the first calculation result, and sends it to the control unit 20 .
一些实施例中,加密单元40接收第一随机数,并对第一随机数进行计算,获得第一计算结果发送给控制单元20包括:加密单元40根据预存密钥和预设算法对第一随机数进行计算,获得第一计算结果发送给控制单元20。In some embodiments, the encryption unit 40 receives the first random number, calculates the first random number, and obtains the first calculation result and sends it to the control unit 20, including: The first calculation result is obtained and sent to the control unit 20.
可选的,一些实施例中,预设算法可包括但不限于异或运算、平方运算、移位运算、加减运算、乘除运算及其排列组合等。Optionally, in some embodiments, the preset algorithm may include, but is not limited to, an exclusive OR operation, a square operation, a shift operation, an addition and subtraction operation, a multiplication and division operation, and their permutations and combinations.
步骤S103、控制单元20基于第一随机数进行计算,获得第二计算结果。Step S103, the control unit 20 performs calculation based on the first random number to obtain a second calculation result.
可选的,一些实施例中,控制单元20基于第一随机数进行计算,获得第二计算结果包括:控制单元20根据预存密钥和预设算法对第一随机数进行计算,获得第二计算结果。Optionally, in some embodiments, the control unit 20 performs calculation based on the first random number, and obtaining the second calculation result includes: the control unit 20 calculates the first random number according to the pre-stored key and the preset algorithm, and obtains the second calculation result. result.
具体地,本发明实施例中,在加密单元40进行第一计算结果的计算时,控制单元20也会基于预存密钥(该预存密钥与加密单元40所预存的密钥相同),并进行相同的运算,即采用预设算法对第一随机数和预存密钥进行计算,获得第二计算结果。Specifically, in this embodiment of the present invention, when the encryption unit 40 performs the calculation of the first calculation result, the control unit 20 will also perform the calculation based on the pre-stored key (the pre-stored key is the same as the key pre-stored by the encryption unit 40 ). The same operation is to use a preset algorithm to calculate the first random number and the pre-stored key to obtain the second calculation result.
步骤S104、控制单元20判断在预设时间段内是否接收到加密单元40返回的第一计算结果。Step S104: The control unit 20 determines whether the first calculation result returned by the encryption unit 40 is received within a preset time period.
其中,预设时间段可以根据实际使用确定,本发明不作具体限定。The preset time period may be determined according to actual use, which is not specifically limited in the present invention.
步骤S105、若接收到所述第一计算结果,则判断第二计算结果与第一计算结果是否匹配。Step S105, if the first calculation result is received, determine whether the second calculation result matches the first calculation result.
步骤S106、若匹配,则判定固件合法。Step S106, if there is a match, it is determined that the firmware is legal.
步骤S107、若不匹配,则判定所述固件不合法。Step S107: If there is no match, it is determined that the firmware is invalid.
步骤S108、若没有接收到第一计算结果,则判定固件不合法。Step S108: If the first calculation result is not received, it is determined that the firmware is invalid.
进一步地,一些实施例中,若判定固件不合法,则不执行固件的全部或者部分功能,即当固件被判定不合法时,该固件的全部或者部分功能无法执行。若判定固件合法,则固件正常运行。Further, in some embodiments, if the firmware is determined to be illegal, all or part of the functions of the firmware are not executed, that is, when the firmware is determined to be illegal, all or part of the functions of the firmware cannot be executed. If it is determined that the firmware is legal, the firmware runs normally.
具体的,固件根据合法性的判断结果继续执行固件或拒绝执行。Specifically, the firmware continues to execute the firmware or refuses to execute the firmware according to the legality judgment result.
本发明实施例中,通过采用随机数的方法,可以防止固件运行时用穷举的方法监测数据通信,从而模拟出加密芯片的反馈信息。其中,随机数(如本发明的第一随机数)的位数越多,监测的难度越大。因此,本发明可根据实际需要设置随机数的位数。In the embodiment of the present invention, by adopting the method of random numbers, it is possible to prevent the firmware from using an exhaustive method to monitor data communication during running, so as to simulate the feedback information of the encryption chip. Wherein, the more digits of the random number (such as the first random number of the present invention), the more difficult the monitoring is. Therefore, the present invention can set the number of bits of the random number according to actual needs.
进一步地,本发明实施例中,通过采用内置Flash的加密芯片,而加密芯片内置的Flash无法读取,因此,只要其算法泄露就无法被拷贝或者复制,从而可以达到防止固件被非法拷贝或者复制的目的。Further, in the embodiment of the present invention, by using an encryption chip with built-in Flash, the built-in Flash of the encryption chip cannot be read. Therefore, as long as its algorithm is leaked, it cannot be copied or copied, thereby preventing the firmware from being illegally copied or copied. the goal of.
参考图2,为本发明提供的防止固件被复制的系统一可选实施例的结构示意图。Referring to FIG. 2 , it is a schematic structural diagram of an optional embodiment of a system for preventing firmware from being copied provided by the present invention.
该防止固件被非法复制的系统可以通过本发明实施例公开的防止固件被非法复制的方法防止固件被非法复制。The system for preventing firmware from being illegally copied can prevent firmware from being illegally copied through the method for preventing firmware from being illegally copied disclosed in the embodiment of the present invention.
具体的,如图2所示,该防止固件被非法复制的系统包括:控制单元20、与控制单元20通信的加密单元40。Specifically, as shown in FIG. 2 , the system for preventing firmware from being illegally copied includes: a control unit 20 , and an encryption unit 40 that communicates with the control unit 20 .
控制单元20用于:生成第一随机数,并将第一随机数发送给加密单元40,以及基于第一随机数进行计算,获得第二计算结果。The control unit 20 is configured to: generate a first random number, send the first random number to the encryption unit 40, and perform calculation based on the first random number to obtain a second calculation result.
进一步地,本发明实施例中,该控制单元20还用于:判断在预设时间段内是否接收到加密单元40返回的第一计算结果;若接收到第一计算结果,则判断第二计算结果与第一计算结果是否匹配;若匹配,则判定固件合法;若不匹配,则判定固件不合法。Further, in this embodiment of the present invention, the control unit 20 is further configured to: determine whether the first calculation result returned by the encryption unit 40 is received within a preset time period; if the first calculation result is received, determine the second calculation result Whether the result matches the first calculation result; if it matches, it is determined that the firmware is legal; if it does not match, it is determined that the firmware is illegal.
加密单元40用于:接收第一随机数,并对第一随机数进行计算,获得第一计算结果,并返回至控制单元20。The encryption unit 40 is configured to: receive the first random number, calculate the first random number, obtain the first calculation result, and return the result to the control unit 20 .
其中,固件可根据合法性的判断结果继续执行或拒绝执行。Among them, the firmware can continue to execute or refuse to execute according to the judgment result of legitimacy.
进一步地,如图2所示,该防止固件被非法复制的系统还可以包括输出设备50、输入设备60等。Further, as shown in FIG. 2, the system for preventing firmware from being illegally copied may further include an output device 50, an input device 60, and the like.
可选的,一些实施例中,输出设备50可包括显示屏等显示设备,例如,可以包括但不限于液晶显示器、TFT液晶显示器、OLED显示器、AMOLED显示器、扬声器、振动器等。Optionally, in some embodiments, the output device 50 may include a display device such as a display screen, for example, may include but not limited to a liquid crystal display, a TFT liquid crystal display, an OLED display, an AMOLED display, a speaker, a vibrator, and the like.
可选的,一些实施例中,输入设备60可接收输入的数字或字符信息,以及产生与数据保护装置的用户设置以及功能控制有关的键信号输入。其中,输入设备60可以包括但不限于按键、键盘、鼠标、触摸屏、麦克风、摄像头等。或者,输入设备60也可以为检测设备,如传感器等。可选的,本发明实施例中,该防止固件被非法复制的系统可以为嵌入式系统等复杂的系统。Optionally, in some embodiments, the input device 60 may receive input numerical or character information, and generate key signal input related to user settings and function control of the data protection device. The input device 60 may include, but is not limited to, keys, keyboards, mice, touch screens, microphones, cameras, and the like. Alternatively, the input device 60 may also be a detection device, such as a sensor or the like. Optionally, in this embodiment of the present invention, the system for preventing firmware from being illegally copied may be a complex system such as an embedded system.
通过为嵌入式系统添加简单MCU作为加密芯片,并加入适当的算法,可保护固件不被非法拷贝,有效维护了经济利益。这种方式不会给产线带来额外的操作负担,便于产品大规模生产。By adding a simple MCU as an encryption chip to the embedded system and adding an appropriate algorithm, the firmware can be protected from being illegally copied, effectively maintaining economic interests. This method will not bring additional operational burden to the production line, which is convenient for mass production of products.
本发明还提供一种电子设备,包括:存储器30和处理器;存储器30用于存储程序指令,处理器用于根据存储器30所存储的程序指令执行本发明实施例公开的方法的步骤。The present invention further provides an electronic device, including: a memory 30 and a processor; the memory 30 is used for storing program instructions, and the processor is used for executing the steps of the methods disclosed in the embodiments of the present invention according to the program instructions stored in the memory 30 .
本发明还提供一种存储介质,其上存储有计算机程序,计算机程序被处理器执行时实现如本发明实施例公开的方法的步骤。The present invention also provides a storage medium on which a computer program is stored, and when the computer program is executed by a processor, the steps of the method disclosed in the embodiments of the present invention are implemented.
以上实施例只为说明本发明的技术构思及特点,其目的在于让熟悉此项技术的人士能够了解本发明的内容并据此实施,并不能限制本发明的保护范围。凡跟本发明权利要求范围所做的均等变化与修饰,均应属于本发明权利要求的涵盖范围。The above embodiments are only intended to illustrate the technical concept and characteristics of the present invention, and the purpose is to enable those skilled in the art to understand the content of the present invention and implement accordingly, and cannot limit the protection scope of the present invention. All equivalent changes and modifications made with the scope of the claims of the present invention shall fall within the scope of the claims of the present invention.
Claims (6)
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202210622264.5A CN115080998A (en) | 2022-06-02 | 2022-06-02 | Method, system, electronic device and storage medium for preventing firmware from being illegally copied |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202210622264.5A CN115080998A (en) | 2022-06-02 | 2022-06-02 | Method, system, electronic device and storage medium for preventing firmware from being illegally copied |
Publications (1)
Publication Number | Publication Date |
---|---|
CN115080998A true CN115080998A (en) | 2022-09-20 |
Family
ID=83248229
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN202210622264.5A Withdrawn CN115080998A (en) | 2022-06-02 | 2022-06-02 | Method, system, electronic device and storage medium for preventing firmware from being illegally copied |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN115080998A (en) |
Cited By (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN115987589A (en) * | 2022-12-14 | 2023-04-18 | 深圳市富临通实业股份有限公司 | Method for preventing MCU internal program from being copied |
Citations (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US20040025011A1 (en) * | 2002-07-30 | 2004-02-05 | Jerome Azema | Secure management of configuration parameters in a computing platform |
CN106529221A (en) * | 2016-11-22 | 2017-03-22 | 北京中金国信科技有限公司 | FPGA program copying prevention method and PCI-E password card |
CN111901303A (en) * | 2020-06-28 | 2020-11-06 | 北京可信华泰信息技术有限公司 | Device authentication method and apparatus, storage medium, and electronic apparatus |
CN113326484A (en) * | 2021-07-22 | 2021-08-31 | 北京天御云安科技有限公司 | Method for performing authorization protection on FPGA (field programmable Gate array) firmware by using one-way function |
CN114491420A (en) * | 2021-12-30 | 2022-05-13 | 深圳市优必选科技股份有限公司 | Firmware encryption method and device, electronic equipment and storage medium |
-
2022
- 2022-06-02 CN CN202210622264.5A patent/CN115080998A/en not_active Withdrawn
Patent Citations (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US20040025011A1 (en) * | 2002-07-30 | 2004-02-05 | Jerome Azema | Secure management of configuration parameters in a computing platform |
CN106529221A (en) * | 2016-11-22 | 2017-03-22 | 北京中金国信科技有限公司 | FPGA program copying prevention method and PCI-E password card |
CN111901303A (en) * | 2020-06-28 | 2020-11-06 | 北京可信华泰信息技术有限公司 | Device authentication method and apparatus, storage medium, and electronic apparatus |
CN113326484A (en) * | 2021-07-22 | 2021-08-31 | 北京天御云安科技有限公司 | Method for performing authorization protection on FPGA (field programmable Gate array) firmware by using one-way function |
CN114491420A (en) * | 2021-12-30 | 2022-05-13 | 深圳市优必选科技股份有限公司 | Firmware encryption method and device, electronic equipment and storage medium |
Cited By (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN115987589A (en) * | 2022-12-14 | 2023-04-18 | 深圳市富临通实业股份有限公司 | Method for preventing MCU internal program from being copied |
CN115987589B (en) * | 2022-12-14 | 2023-08-29 | 深圳市富临通实业股份有限公司 | Method for preventing MCU internal program from being copied |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
US9582656B2 (en) | Systems for validating hardware devices | |
CN101578609B (en) | Secure booting a computing device | |
US8838950B2 (en) | Security architecture for system on chip | |
EP3678039B1 (en) | Secure startup method and apparatus, and terminal device | |
US8751817B2 (en) | Data processing apparatus and validity verification method | |
JP2021149964A5 (en) | ||
WO2018090818A1 (en) | Version check method, apparatus and terminal device | |
JP6494373B2 (en) | Information processing apparatus, information processing apparatus control method, and computer program | |
CN102929674A (en) | Electronic device and starting method | |
CN103413070B (en) | A kind of method and device of local clock calibration | |
CN107330333A (en) | Ensure the method and device of POS firmware safety | |
US10102089B2 (en) | Input/output (I/O) device configuration signature | |
US7392398B1 (en) | Method and apparatus for protection of computer assets from unauthorized access | |
TWI423064B (en) | A method and apparatus for coupling a computer memory and a motherboard | |
JP2013502664A (en) | Digital copyright management apparatus and method using virtualization technology | |
CN115080998A (en) | Method, system, electronic device and storage medium for preventing firmware from being illegally copied | |
WO2010021269A1 (en) | Storage device, information processing device, and program | |
JP2006309688A (en) | Processor, memory, computer system, system lsi and authentication method | |
CN114579145B (en) | A software deployment method, device, computer equipment, and storage medium | |
US8990921B2 (en) | Apparatus for processing with a secure system manager | |
JP2009517972A5 (en) | ||
JP2013037417A (en) | Memory system, information processor, memory device, and memory system operation method | |
JP2010146401A (en) | Control assistance system, information processing apparatus and computer program | |
EP1635242B1 (en) | Password verification system | |
CN110677242B (en) | Key processing method, key processing device and terminal equipment |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
PB01 | Publication | ||
PB01 | Publication | ||
SE01 | Entry into force of request for substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
WW01 | Invention patent application withdrawn after publication | ||
WW01 | Invention patent application withdrawn after publication |
Application publication date: 20220920 |