CN111010267A - Method for encrypting internal security detection sensor signal of chip based on random number - Google Patents
Method for encrypting internal security detection sensor signal of chip based on random number Download PDFInfo
- Publication number
- CN111010267A CN111010267A CN201911110555.0A CN201911110555A CN111010267A CN 111010267 A CN111010267 A CN 111010267A CN 201911110555 A CN201911110555 A CN 201911110555A CN 111010267 A CN111010267 A CN 111010267A
- Authority
- CN
- China
- Prior art keywords
- random number
- signal
- sensor
- detection sensor
- encryption
- 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.)
- Pending
Links
Images
Classifications
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L9/00—Cryptographic mechanisms or cryptographic arrangements for secret or secure communications; Network security protocols
- H04L9/08—Key distribution or management, e.g. generation, sharing or updating, of cryptographic keys or passwords
- H04L9/0861—Generation of secret information including derivation or calculation of cryptographic keys or passwords
- H04L9/0869—Generation of secret information including derivation or calculation of cryptographic keys or passwords involving random numbers or seeds
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L2209/00—Additional information or applications relating to cryptographic mechanisms or cryptographic arrangements for secret or secure communication H04L9/00
- H04L2209/12—Details relating to cryptographic hardware or logic circuitry
Abstract
The invention discloses a method for encrypting a signal of a security detection sensor in a chip based on a random number. The encryption method realizes the data encryption of the output signal of the sensor by carrying out the XOR of the output signal of the sensor and the random number signal generated by the random source module at the sending end of the security detection sensor; and performing XOR operation on the received encrypted data and the random number for encryption at the receiving end, thereby realizing the restoration of the sensor data. The method can effectively prevent external malicious attacks on the detection circuit of the security sensor, and ensures that the chip is used more safely and reliably.
Description
Technical Field
The invention belongs to the technical field of integrated circuits, and particularly relates to a method for encrypting a signal of a detection circuit of a security sensor in a chip by using a random number so as to effectively prevent external malicious attacks on the security sensor.
Background
In the information industry, an integrated circuit is an important component, whether the integrated circuit is designed to be safe or not directly determines whether the information industry is safe or not, and the information safety can be intuitively and importantly influenced, which is expressed in the aspects of the safety of the integrated circuit and the safety of information processing. However, more and more attack ways are available for chips, and chip security design protection measures are required to be continuously improved by chip design manufacturers in order to prevent malicious attacks from cracking the chips and prevent security characteristics such as hardware tamper-proof detection circuits, for example, once a security sensor on a chip detects illegal detection, the chip stops working to play a role in protection, but detection signals output by the security sensor may also be an attacked object.
Disclosure of Invention
The technical problem to be solved by the invention is to provide a method for encrypting the signal of the safety detection sensor based on the random number, which can effectively prevent external malicious attack, thereby ensuring that the use of the chip is safer and more reliable.
To solve the above technical problem, the encryption scheme of the present invention includes:
and the random number module is used for generating a random number signal and setting a certain turnover rate. The random number is continuously turned over to ensure the correctness of the encrypted signal data path.
And the exclusive-OR gate is used for carrying out exclusive-OR encryption on the required encrypted data and the random number. When the chip is laid out and wired, the chip should be placed near an output port of a signal to be encrypted so as to ensure that the path of the signal is encrypted.
And the decryption module is used for inverting the signal output by the exclusive-OR gate and then sending the inverted signal and the random number into the exclusive-OR gate.
By adopting the encryption method, external malicious attacks on the detection circuit of the internal security sensor of the chip can be more effectively prevented, so that the chip is more safely and reliably used.
Drawings
FIG. 1 is a schematic diagram of a method for encrypting a signal of a security sensor according to the present invention;
Detailed Description
The invention will be described in further detail with reference to the following detailed description and accompanying drawings:
referring to fig. 1, an encryption scheme for outputting an alarm signal and a path to a security detection sensor module mainly includes: the device comprises a true random number generation module, an exclusive-OR gate, a safety detection sensor and a decryption module.
The random number and Rand signal generated by the random number and the alarm signal S0 output by the safety detection sensor are subjected to an exclusive-OR gate output signal S1, and the exclusive-OR gate selected during the layout and wiring of the chip is placed at the alarm signal output end of the electric safety detection sensor as far as possible.
The S1 signal is sent to the input of the inverter of the decryption block, which inverts the signal to generate the S2 signal, and the S2 signal and the Rand signal are sent to the OR gate to output the S _ OUT signal.
In the above processing, it can be seen that if the transmission path L1 of the alarm signal output by the security detection sensor is attacked and cracked maliciously, an error occurs in the decryption module at a later stage, and the chip can perform corresponding processing at this time. Thus, the safety protection of the signal can be realized.
Although the present invention has been described with reference to specific examples, the description of the examples does not limit the scope of the present invention. Those skilled in the art can easily make various modifications or combinations of the embodiments without departing from the spirit and scope of the invention by referring to the description of the invention, which should also be construed as the scope of the invention.
Claims (3)
1. A method for encrypting a signal of a security detection sensor in a chip based on a random number is characterized by mainly comprising the following steps:
firstly, carrying out XOR on a sensor output signal and a random number signal generated by a random source module at the output end of a safety detection sensor to realize data encryption of the sensor output signal; and then carrying out exclusive OR operation on the received encrypted data and the random number signal for encryption at the using end, thereby realizing the recovery of the output data of the sensor.
2. The method of claim 1, wherein: when the chip is laid out and wired, the exclusive-or encryption circuit is placed near an output port of a signal to be encrypted so as to ensure the encryption protection of a signal path.
3. The method of claim 1 or 2, wherein: the random number signal generated by the random source module needs to set a certain turnover rate.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201911110555.0A CN111010267A (en) | 2019-11-14 | 2019-11-14 | Method for encrypting internal security detection sensor signal of chip based on random number |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201911110555.0A CN111010267A (en) | 2019-11-14 | 2019-11-14 | Method for encrypting internal security detection sensor signal of chip based on random number |
Publications (1)
Publication Number | Publication Date |
---|---|
CN111010267A true CN111010267A (en) | 2020-04-14 |
Family
ID=70112109
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201911110555.0A Pending CN111010267A (en) | 2019-11-14 | 2019-11-14 | Method for encrypting internal security detection sensor signal of chip based on random number |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN111010267A (en) |
Cited By (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN112148103A (en) * | 2020-09-09 | 2020-12-29 | 北京中电华大电子设计有限责任公司 | Circuit for protecting power supply attack implemented from PAD |
Citations (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US20040012502A1 (en) * | 2000-10-26 | 2004-01-22 | Rasmussen John Olav | Alarm chip and use of the alarm chip |
CN201477600U (en) * | 2009-07-29 | 2010-05-19 | 深圳国微技术有限公司 | Tampered detecting circuit for protecting chip |
CN105095795A (en) * | 2014-05-14 | 2015-11-25 | 国民技术股份有限公司 | Anti-probe-attack chip signal processing method and system |
CN107462827A (en) * | 2017-08-31 | 2017-12-12 | 北京智芯微电子科技有限公司 | Power supply burr detection circuit with internal voltage regulator |
CN109992959A (en) * | 2017-12-29 | 2019-07-09 | 国民技术股份有限公司 | Direct fault location resists method and device, chip and computer readable storage medium |
-
2019
- 2019-11-14 CN CN201911110555.0A patent/CN111010267A/en active Pending
Patent Citations (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US20040012502A1 (en) * | 2000-10-26 | 2004-01-22 | Rasmussen John Olav | Alarm chip and use of the alarm chip |
CN201477600U (en) * | 2009-07-29 | 2010-05-19 | 深圳国微技术有限公司 | Tampered detecting circuit for protecting chip |
CN105095795A (en) * | 2014-05-14 | 2015-11-25 | 国民技术股份有限公司 | Anti-probe-attack chip signal processing method and system |
CN107462827A (en) * | 2017-08-31 | 2017-12-12 | 北京智芯微电子科技有限公司 | Power supply burr detection circuit with internal voltage regulator |
CN109992959A (en) * | 2017-12-29 | 2019-07-09 | 国民技术股份有限公司 | Direct fault location resists method and device, chip and computer readable storage medium |
Cited By (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN112148103A (en) * | 2020-09-09 | 2020-12-29 | 北京中电华大电子设计有限责任公司 | Circuit for protecting power supply attack implemented from PAD |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
US8909932B2 (en) | Method and apparatus for security over multiple interfaces | |
CN110149209B (en) | Internet of things equipment and method and device for improving data transmission safety of Internet of things equipment | |
AU2022100184B4 (en) | System for and method of authenticating a component of an electronic device | |
WO2018090563A1 (en) | Bus security protection method and apparatus | |
CN209803788U (en) | PCIE credible password card | |
CN1509546A (en) | Platform and method for securely transmitting authorization data | |
TWI809292B (en) | Data encryption and decryption method, device, storage medium and encrypted file | |
CN110245466B (en) | Software integrity protection and verification method, system, device and storage medium | |
CN112311718A (en) | Method, device and equipment for detecting hardware and storage medium | |
JP2005157930A (en) | Confidential information processing system and lsi | |
US20200235910A1 (en) | Lightweight mitigation against first-order probing side-channel attacks on block ciphers | |
WO2019243299A1 (en) | Improved detection of laser fault injection attacks on cryptographic devices | |
CN111010267A (en) | Method for encrypting internal security detection sensor signal of chip based on random number | |
CN101996285A (en) | Electronic equipment | |
TWI517655B (en) | Cryptographic device and secret key protection method | |
CN112968774B (en) | Method, device storage medium and equipment for encrypting and decrypting configuration file | |
CN111294199A (en) | Encryption/decryption system, encryption device, decryption device, and encryption/decryption method | |
CN113228012A (en) | Method and apparatus for authenticating FPGA configuration | |
JP2007325219A (en) | Encryption processing system and encryption processing apparatus | |
Zachos | Securing J1939 communications using strong encryption with FIPS 140-2 | |
CN113553125B (en) | Method, device and equipment for calling trusted application program and computer storage medium | |
KR20050033780A (en) | Active shield removal detector improving core chip preservation and method thereof | |
CN207070061U (en) | A kind of encrypting module | |
CN105554033A (en) | Trusted authentication method for image input equipment, and image input equipment thereof | |
KR20230108594A (en) | Method of controlling the secure key of the vehicle |
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 | ||
WD01 | Invention patent application deemed withdrawn after publication | ||
WD01 | Invention patent application deemed withdrawn after publication |
Application publication date: 20200414 |