CN101063993A - Protective system of program of complicated programmable logic module and method thereof - Google Patents
Protective system of program of complicated programmable logic module and method thereof Download PDFInfo
- Publication number
- CN101063993A CN101063993A CNA2006100352608A CN200610035260A CN101063993A CN 101063993 A CN101063993 A CN 101063993A CN A2006100352608 A CNA2006100352608 A CN A2006100352608A CN 200610035260 A CN200610035260 A CN 200610035260A CN 101063993 A CN101063993 A CN 101063993A
- Authority
- CN
- China
- Prior art keywords
- program code
- programmable logic
- module
- logic module
- protection system
- 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.)
- Granted
Links
Images
Landscapes
- Storage Device Security (AREA)
Abstract
This invention relates to one complex program logic parts codes protection system and its method applied in imbed device, wherein the device is set with safety test codes to read the program codes after accurately inputting keywords; after user inputs start keyword, count module can start different number in different of safety test codes; when different times achieve to one error tolerant value, process module instantly sends out signals to burst or delete module to make it delete the program codes from complex programmable logic parts.
Description
Technical field
The present invention relates to a kind of protection system and method thereof of program code, particularly relate to a kind of protection system and method thereof of program code of complicated programmable logic module.
Background technology
In embedded system, complicated programmable logic module (Complex Programmable LogicDevice; CPLD) the inside often stores important program information, and this program information is generally company's topmost key of making a profit, and can be used to the running of simulation hardware circuit, saves many hardware spendings, and owing to need not install too much hardware additional, can make the product microminiaturization.
Therefore, for complicated programmable logic module (Complex Programmable Logic Device; CPLD) Li Tou program code; need be furnished with a safety protecting mechanism; can avoiding intentionally, the personage steals other people product; if owner's machine has been lost; picked up away by other people, if no safety protecting mechanism is protected, the data of chip the inside can be used by other people fully so; developer's painstaking effort throw to the winds so, and are quite unfortunate.
Summary of the invention
Fundamental purpose of the present invention is to provide a kind of protection system and method thereof of program code of complicated programmable logic module; be applied to embedded equipment; the user is on device after the setting code; system can note the number of times of password input error; number of times arrival fault tolerant value when input password mistake; or do not input password and promptly carry out the shutdown action; just the program code in the middle of the complicated programmable logic module (CPLD) is erased; reach a kind of mechanism of protection, use the existing problem of prior art that solves.
Therefore, for reaching above-mentioned purpose, the protection system of the program code of the disclosed a kind of complicated programmable logic module of the present invention, be applied to embedded equipment, this embedded equipment is preset with the safety verification password, the user needs correct input safety verification password could start embedded equipment, and this protection system includes complicated programmable logic module (Complex Programmable Logic Device; CPLD), input crypto module, counting module, processing module and the burning/module of erasing.
Complicated programmable logic module is to have executable program code, and this program code has critical function, is the program code of simulation hardware circuit.
The input crypto module is used for the user and is inputed the startup password.
Counting module is different from the number of times of safety verification password in order to the startup password of counting user input, promptly calculates the number of times of input password mistake.
Processing module when starting number of times that password is different from the safety verification password and reach the fault tolerant value, is promptly sent the signal of erasing, this fault tolerant value is a default value, for example be set at three, when the number of times of inputing the password mistake as the user arrived three times, processing module was promptly sent the signal of erasing.
Burning/the module of erasing, the signal of erasing that receiving processing module sends is to erase the program code in the middle of the complicated programmable logic module.
On the other hand; the guard method of the program code of a kind of complicated programmable logic module of the present invention; be applied to be preset with the embedded equipment of safety verification password; be to have executable program code in the middle of the complicated programmable logic module in this embedded equipment, the user needs correct input safety verification password just can read and carry out this program code.
At first, the user need input the startup password, then, whether the startup password of check user input is identical with default safety verification password, if it is different, need to calculate the number of times that the startup password of importing is different from the safety verification password, when different number of times arrives a fault tolerant value, the program code in the middle of the complicated programmable logic module of then erasing.
In addition, when the user does not correctly input password, promptly desire is closed system and device, then postpones the unused time, after immediately the program code in the middle of the complicated programmable logic module being erased, and row shutdown again.
Description of drawings
Fig. 1 is the protection system Organization Chart of the program code of complicated programmable logic module of the present invention;
Fig. 2 is the guard method process flow diagram of the program code of complicated programmable logic module of the present invention;
Fig. 3 is the protection system initialization flowchart of the program code of complicated programmable logic module of the present invention.
Embodiment
Seeing also Fig. 1, is for the protection system Organization Chart of the program code of complicated programmable logic module of the present invention, is applied to embedded equipment, for example personal digital assistant (Personal Digital Assistant; PDA); this embedded equipment is preset with a safety verification password; the user needs correct input safety verification password could start embedded equipment, and this protection system includes complicated programmable logic module 160, input crypto module 110, counting module 120, processing module 130 and the burning/module 150 of erasing.
Complicated programmable logic module 160 have executable program code, but this program code is the simulation hardware circuit, includes many critical functions, as control cycle length or the like.
Burning/the module 150 of erasing, can be and engage testing action group (Joint Test Action Group, JTAG) unit, the signal of erasing that sends in order to receiving processing module 130, so that the program code in the middle of the complicated programmable logic module is erased, this burning/module of erasing 150 can be integrated into complicated programmable logic module in, promptly be contained in complicated programmable logic module the inside, in addition, between processing module 130 and burning/module of erasing 150, can see through a plurality of general I/O mouth (General Purpose Input/Output; GPIO) be connected and mutual transmitting signals, these a plurality of general I/O mouths include at least four pin positions, these four pin positions include three from handling the output port of module 130 toward burning/module of erasing 150, the input port from the burning/module of erasing 150 past processing modules 130.
Except that this, the protection system of the program code of complicated programmable logic module of the present invention more can include power supply module 180, start/shutdown module 170, Postponement module 190 and memory module 140.
Start/shutdown module 170 is used for user operation to start power supply module 180 or powered-down supply module 180, and this start/shutdown module 170 can be a button, and the user presses that this button is opened or the power supply of stopping device.
Memory module 140, can be flash memory (flash memory), the inside stores program code, this program code is encrypted, when this system carries out initialization action, promptly in complicated programmable logic module 160 the insides, never burned program code, or system shakiness in pass reaches when machine, desire in complicated programmable logic module 160 burning program code again, processing module 130 program code read and program code carried out decryption acts in memory module 140 sees through burning/module of erasing 150 again program code is burned onto in the complicated programmable logic module 160.
In this, still can include a reserve battery in this system, when power supply module 180 is unable to supply power supply, promptly replace the function of power supply module 180 with reserve battery, avoiding when power supply module 180 is removed, system's unregulated power can be carried out the program code mechanism of erasing.
Please refer to Fig. 2 again, is the guard method process flow diagram for the program code of complicated programmable logic module of the present invention, is applied to be preset with the embedded equipment of a safety verification password, as personal digital assistant (Personal Digital Assistant; PDA), be to have executable program code in the middle of the complicated programmable logic module in this embedded equipment, the user needs correct input safety verification password just can read and the executive routine code.
At first, the user inputs and starts password (step 210), do you judge that then the startup password is identical with the safety verification password? (step 220), if it is identical with the safety verification password to start password, just read and executive routine code (step 230), if it is inequality to start password and safety verification password, so just calculate to start the number of times that password is different from the safety verification password and reach the fault tolerant value? (step 250), if inputing the mistake of password, the user reached the fault tolerant value, the program code (step 270) in the middle of the complicated programmable logic module of promptly erasing.
In addition, if it is inequality to start password and safety verification password, does does can detect the user carry out and close embedded equipment action? (step 240), if promptly do not desire stopping device as yet by the password check, then delay the shut-in time (step 260) of embedded equipment, the central program code (step 270) of complicated programmable logic module so that system and device has sufficient time to erase.
Wherein, the step of the program code in the middle of the complicated programmable logic module of erasing, can see through one and engage testing action group (Joint Test Action Group, JTAG) unit is to carry out, this engages the testing action group, and (Joint Test Action Group, JTAG) unit can be integrated in the complicated programmable logic module.
Please refer to Fig. 3 at last; it is protection system initialization flowchart for the program code of complicated programmable logic module of the present invention; embedded equipment has a memory module with store program code; this memory module can be flash memory (flash memory); when system carries out initialization action; program code read (step 310) in memory module at first; central program code is encrypted for process; then; with program code deciphering (step 320); at last, the program code after the deciphering is burned onto in the complicated programmable logic module (step 330), so promptly finishes the action of system initialization.
Claims (20)
1. the protection system of the program code of a complicated programmable logic module; be applied to an embedded equipment; this embedded equipment is preset with a safety verification password, and the user needs correct this safety verification password of input could start this embedded equipment, and this protection system includes:
One complicated programmable logic module is to have an executable program code;
One input crypto module is used for the user and is inputed a startup password;
One counting module is different from the number of times of this safety verification password in order to this startup password of counting user input;
One processing module when the number of times that is different from this safety verification password when this startup password reaches a fault tolerant value, is promptly sent the signal of erasing;
One burning/the module of erasing receives this signal of erasing and erases with this program code in the middle of should complexity programmable logic module.
2. the protection system of the program code of complicated programmable logic module according to claim 1 is characterized in that, described embedded equipment is to be a personal digital assistant (Personal DigitalAssistant; PDA).
3. the protection system of the program code of complicated programmable logic module according to claim 1 is characterized in that, the described burning/module of erasing is to be joint testing action group (Joint Test ActionGroup, a JTAG) unit.
4. the protection system of the program code of complicated programmable logic module according to claim 1 is characterized in that, the described burning/module of erasing can be integrated in this complexity programmable logic module.
5. the protection system of the program code of complicated programmable logic module according to claim 1 is characterized in that, described processing module is to be a system single chip (SOC).
6. the protection system of the program code of complicated programmable logic module according to claim 1, it is characterized in that, described processing module and this burning/erase between the module, be to utilize a plurality of general I/O mouth (General Purpose Input/Output; GPIO) be connected and mutual transmitting signals.
7. the protection system of the program code of complicated programmable logic module according to claim 1 more includes:
One power supply module is in order to the required power supply of the running of supplying this protection system;
One start/shutdown module is used for user's operation to start this power supply module or to close this power supply module;
One Postponement module is in order to delay the time that this power supply module is closed;
Wherein, when correctly inputing this safety verification password, the user promptly do not operate this start/when the shutdown module desires to close this protection system; this start/shutdown module is promptly sent a notice signal to this processing module; then this processing module is sent one and is delayed signal to this Postponement module and send one and erase signal to this burning/module of erasing; see through this Postponement module to delay the time that this power supply module is closed, make that this burning/module of erasing is able to should erase by this central program code of complexity programmable logic module in real time.
8. the protection system of the program code of complicated programmable logic module according to claim 7; it is characterized in that; this protection system more can include a reserve battery, when this power supply module is unable to supply power supply, promptly replaces the function of this power supply module with this reserve battery.
9. the protection system of the program code of complicated programmable logic module according to claim 1 is characterized in that, this protection system more includes a memory module, in order to store this program code.
10. the protection system of the program code of complicated programmable logic module according to claim 9 is characterized in that, described memory module is to be a flash memory (flash memory).
11. the protection system of the program code of complicated programmable logic module according to claim 10; it is characterized in that; when this protection system is carried out an initialization action; this processing module reads this program code and this program code is carried out decryption acts in this memory module, see through this burning/module of erasing again this program code is burned onto in this complexity programmable logic module.
12. the protection system of the program code of complicated programmable logic module according to claim 11; it is characterized in that; in this complexity programmable logic module, this program code is not arranged, or when the protection system shakiness reaches when machine, can carry out this initialization action.
13. the guard method of the program code of a complicated programmable logic module; be applied to an embedded equipment that is preset with a safety verification password; in the middle of the complicated programmable logic module in this embedded equipment is to have an executable program code; the user needs correct this safety verification password of input just can read and carry out this program code, and this method includes the following step:
Input one starts password;
This startup password of counting input is different from the number of times of this safety verification password;
When the number of times that is different from this safety verification password when this startup password reaches a fault tolerant value, this program code in the middle of this complexity programmable logic module of erasing.
14. the guard method of the program code of complicated programmable logic module according to claim 13 is characterized in that, described embedded equipment is to be a personal digital assistant (Personal DigitalAssistant; PDA).
15. the guard method of the program code of complicated programmable logic module according to claim 13; it is characterized in that; the step of this program code in the middle of described this complexity programmable logic module of erasing; be that (Joint Test Action Group, JTAG) unit is to carry out through a joint testing action group.
16. the guard method of the program code of complicated programmable logic module according to claim 15; it is characterized in that; (Joint Test Action Group, JTAG) unit can be integrated in this complexity programmable logic module described joint testing action group.
17. the guard method of the program code of complicated programmable logic module according to claim 13; it is characterized in that; when correctly not inputing this safety verification password and promptly desire to close this embedded equipment; be the shut-in time that delays this embedded equipment, make this central program code of this complexity programmable logic module be able to be erased in real time.
18. the guard method of the program code of complicated programmable logic module according to claim 13; it is characterized in that; described embedded equipment has a memory module to store this program code, when this embedded equipment is carried out an initialization action, includes the following step:
In this memory module, read this program code;
With this program code deciphering;
This program code after the deciphering is burned onto in this complexity programmable logic module.
19. the guard method of the program code of complicated programmable logic module according to claim 18; it is characterized in that; in this complexity programmable logic module, this program code is not arranged, or when the protection system shakiness reaches when machine, can carry out this initialization action.
20. the guard method of the program code of complicated programmable logic module according to claim 18 is characterized in that, described memory module is to be a flash memory (flash memory).
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CNB2006100352608A CN100474322C (en) | 2006-04-28 | 2006-04-28 | Protective system of program of complicated programmable logic module and method thereof |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CNB2006100352608A CN100474322C (en) | 2006-04-28 | 2006-04-28 | Protective system of program of complicated programmable logic module and method thereof |
Publications (2)
Publication Number | Publication Date |
---|---|
CN101063993A true CN101063993A (en) | 2007-10-31 |
CN100474322C CN100474322C (en) | 2009-04-01 |
Family
ID=38965013
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CNB2006100352608A Expired - Fee Related CN100474322C (en) | 2006-04-28 | 2006-04-28 | Protective system of program of complicated programmable logic module and method thereof |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN100474322C (en) |
Cited By (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101404577B (en) * | 2008-10-30 | 2010-04-21 | 南京大学 | Secret communication method for amalgamating multi-secrecy technology |
CN102236333A (en) * | 2010-04-30 | 2011-11-09 | 深圳市合信自动化技术有限公司 | Programmable logic controller program uploading device and method |
CN102270284A (en) * | 2010-06-03 | 2011-12-07 | 元太科技工业股份有限公司 | Electronic reading device and data protection method thereof |
CN107527085A (en) * | 2017-08-16 | 2017-12-29 | 河南顺达鸽具有限公司 | A kind of method and device for preventing from replicating miniature inductive chip |
-
2006
- 2006-04-28 CN CNB2006100352608A patent/CN100474322C/en not_active Expired - Fee Related
Cited By (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101404577B (en) * | 2008-10-30 | 2010-04-21 | 南京大学 | Secret communication method for amalgamating multi-secrecy technology |
CN102236333A (en) * | 2010-04-30 | 2011-11-09 | 深圳市合信自动化技术有限公司 | Programmable logic controller program uploading device and method |
CN102236333B (en) * | 2010-04-30 | 2015-04-15 | 深圳市合信自动化技术有限公司 | Programmable logic controller program uploading device and method |
CN102270284A (en) * | 2010-06-03 | 2011-12-07 | 元太科技工业股份有限公司 | Electronic reading device and data protection method thereof |
CN107527085A (en) * | 2017-08-16 | 2017-12-29 | 河南顺达鸽具有限公司 | A kind of method and device for preventing from replicating miniature inductive chip |
Also Published As
Publication number | Publication date |
---|---|
CN100474322C (en) | 2009-04-01 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
US7904775B2 (en) | Microprocessor comprising signature means for detecting an attack by error injection | |
EP2734903B1 (en) | Transition between states in a procesor | |
US9360522B2 (en) | Methods and apparatus for automatic fault detection | |
CN104331363A (en) | Automatic testing method for Android device | |
US7822995B2 (en) | Apparatus and method for protecting diagnostic ports of secure devices | |
CN102541729A (en) | Detection device and method for security vulnerability of software | |
US9152749B2 (en) | Management system, method and apparatus for licensed delivery and accounting of electronic circuits | |
CN101063993A (en) | Protective system of program of complicated programmable logic module and method thereof | |
EP2608102A1 (en) | Appparatus for protecting against external attack for processor based on arm core and method using the same | |
US20090205054A1 (en) | Process for protecting stored operating data of machinery or similar equipment | |
CN104777761B (en) | Realize the method and circuit of MCU securities | |
CN101021885B (en) | Method for protecting chip internal information security based on JTAG port control | |
CN100476851C (en) | Protection system for data security transmission between computer and disc | |
CN109684795A (en) | The method, apparatus and electronic equipment of application program anti-debug | |
CN101114249A (en) | I2C bus testing apparatus of mainboard and method thereof | |
Nisarga et al. | System-level tamper protection using MSP MCUs | |
CN107204206A (en) | A kind of electrical fuse programming method, terminal and computer-readable recording medium | |
CN116723123B (en) | Method, terminal and storage medium for checking and managing safety configuration of industrial control host | |
CN110865936B (en) | White box plug FPGA prototype verification method oriented to integrated circuit safety function | |
CN103942059A (en) | Electronic device with multiple starting modes | |
CN101088094A (en) | Protecting privacy of networked devices containing management subsystems | |
CN102353386A (en) | Ground security detection device aiming at space camera | |
CN115460609B (en) | Detection device for password card and password card | |
US20140181584A1 (en) | Debugging system of integrated circuit and debugging method thereof | |
CN102375943A (en) | Identification code generation method, memory management method, controller and storage system |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
C06 | Publication | ||
PB01 | Publication | ||
C10 | Entry into substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
C14 | Grant of patent or utility model | ||
GR01 | Patent grant | ||
CF01 | Termination of patent right due to non-payment of annual fee |
Granted publication date: 20090401 Termination date: 20160428 |