[go: up one dir, main page]

CN104200178B - A kind of double method driving logical system and opposing power analysis along triggering - Google Patents

A kind of double method driving logical system and opposing power analysis along triggering Download PDF

Info

Publication number
CN104200178B
CN104200178B CN201410382777.9A CN201410382777A CN104200178B CN 104200178 B CN104200178 B CN 104200178B CN 201410382777 A CN201410382777 A CN 201410382777A CN 104200178 B CN104200178 B CN 104200178B
Authority
CN
China
Prior art keywords
signal
driving logic
circuit
input
gate
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.)
Expired - Fee Related
Application number
CN201410382777.9A
Other languages
Chinese (zh)
Other versions
CN104200178A (en
Inventor
荆继武
屠晨阳
刘泽艺
刘宗斌
马原
高能
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Institute of Information Engineering of CAS
Original Assignee
Institute of Information Engineering of CAS
Priority date (The priority date 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 date listed.)
Filing date
Publication date
Application filed by Institute of Information Engineering of CAS filed Critical Institute of Information Engineering of CAS
Priority to CN201410382777.9A priority Critical patent/CN104200178B/en
Publication of CN104200178A publication Critical patent/CN104200178A/en
Application granted granted Critical
Publication of CN104200178B publication Critical patent/CN104200178B/en
Expired - Fee Related legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • GPHYSICS
    • G06COMPUTING OR CALCULATING; COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F21/00Security arrangements for protecting computers, components thereof, programs or data against unauthorised activity
    • G06F21/50Monitoring users, programs or devices to maintain the integrity of platforms, e.g. of processors, firmware or operating systems
    • G06F21/55Detecting local intrusion or implementing counter-measures
    • G06F21/556Detecting local intrusion or implementing counter-measures involving covert channels, i.e. data leakage between processes

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Security & Cryptography (AREA)
  • Software Systems (AREA)
  • Theoretical Computer Science (AREA)
  • Computer Hardware Design (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Logic Circuits (AREA)

Abstract

本发明公开了一种双沿触发驱动逻辑系统及抵抗能量分析攻击的方法,包括信号源、控制单元和驱动逻辑电路和驱动逻辑补偿电路,并由该系统代替标准信号源及驱动逻辑电路的方式,在提高了安全性的同时,通过控制单元产生长度为半个时钟周期的复位信号,从而把输出一组数据的两个时钟周期压缩为一个时钟周期,从而不会降低整个芯片硬件设备的工作效率。

The invention discloses a double-edge trigger drive logic system and a method for resisting energy analysis attacks, including a signal source, a control unit, a drive logic circuit and a drive logic compensation circuit, and the system replaces the standard signal source and the drive logic circuit. , while improving security, the control unit generates a reset signal with a length of half a clock cycle, thereby compressing two clock cycles for outputting a set of data into one clock cycle, so as not to reduce the work of the entire chip hardware device efficiency.

Description

一种双沿触发驱动逻辑系统及抵抗能量分析攻击的方法A dual-edge trigger-driven logic system and a method for resisting energy analysis attacks

技术领域technical field

本发明涉及计算机安全领域,特别涉及一种双沿触发驱动逻辑系统及抵抗能量分析攻击的方法。The invention relates to the field of computer security, in particular to a double-edge trigger driving logic system and a method for resisting energy analysis attacks.

背景技术Background technique

当前,随着科技的进步,各种各样的芯片硬件设备以其体积小、计算速度快、外形多样、可以应用于多种电子商务场景和使用寿命长等特点,得到了广泛应用,拥有广阔的市场前景。At present, with the advancement of science and technology, various chip hardware devices have been widely used due to their small size, fast computing speed, diverse shapes, applicable to various e-commerce scenarios and long service life. market prospects.

伴随着芯片硬件设备的广泛应用,其侧信道安全问题也逐渐暴露出来,通过芯片能量消耗的分析,可以探知芯片所处理的信息,从而导致信息泄漏事故。With the wide application of chip hardware devices, its side channel security issues are gradually exposed. Through the analysis of chip energy consumption, the information processed by the chip can be detected, which leads to information leakage accidents.

在信息论中,两个等长比特串之间的汉明距离(HD)是两个比特串对应位置的比特不同的个数;汉明重量(HW)是比特串相对于同样长度的全零比特串的汉明距离,即比特串中非零的比特个数。对于芯片硬件设备中所使用的驱动逻辑电路而言,一个时钟周期的HW值表示该驱动逻辑电路在该时钟周期所输出的作为计算结果的比特串中1的个数;相邻两个时钟周期的HD值表示该驱动逻辑电路在这两个时钟周期所输出的作为计算结果的两个比特串对应位置的比特值(0或1)不同的个数。根据能量分析理论,在工作状态下,如果驱动逻辑电路的HW和HD值不是恒定的,则该驱动逻辑电路的能量消耗也会产生变化,可以通过能量分析攻击技术恢复出芯片硬件设备中计算的信息。In information theory, the Hamming distance (HD) between two equal-length bit strings is the number of different bits in the corresponding positions of the two bit strings; The Hamming distance of the string, that is, the number of non-zero bits in the bit string. For the driving logic circuit used in the chip hardware device, the HW value of a clock cycle represents the number of 1s in the bit string output by the driving logic circuit in the clock cycle as the calculation result; two adjacent clock cycles The HD value of represents the number of different bit values (0 or 1) in the corresponding positions of the two bit strings output by the driving logic circuit in the two clock cycles as the calculation results. According to the energy analysis theory, in the working state, if the HW and HD values of the driving logic circuit are not constant, the energy consumption of the driving logic circuit will also change, and the energy analysis attack technology can be used to restore the calculated value of the chip hardware device. information.

因此,需要对芯片硬件设备中的驱动逻辑电路进行特定的保护,使其具备抵抗能量分析攻击的能力,具体实现方式如下。Therefore, it is necessary to provide specific protection for the driving logic circuit in the chip hardware device, so that it has the ability to resist energy analysis attacks, and the specific implementation method is as follows.

在芯片硬件设备上均使用特定的抵抗能量分析攻击驱动逻辑系统,比如用双栅预充电结构(DPL)实现的驱动逻辑系统,这种驱动逻辑系统由两组功能相同的驱动逻辑电路构成。当一个时钟周期开始、数据输入到该驱动逻辑电路组中时,输入数据存储到第一组驱动逻辑电路,输入数据取反后输入到第二组驱动逻辑电路;当下一个时钟周期开始时,将两组驱动逻辑电路置零。On the chip hardware devices, a specific anti-energy analysis attack is used to drive the logic system, such as the drive logic system implemented with a double-gate precharge structure (DPL). This drive logic system is composed of two groups of drive logic circuits with the same function. When a clock cycle starts and data is input into the driving logic circuit group, the input data is stored in the first group of driving logic circuits, and the input data is reversed and then input to the second group of driving logic circuits; when the next clock cycle starts, the Two sets of driving logic circuits are set to zero.

上述方式虽然可以在一定程度上防止驱动逻辑电路中计算的信息通过能量分析方式泄漏,但该方式在实际应用中也会存在一定的问题,如标准驱动逻辑电路每个时钟周期都会输出一组数据,而DPL驱动逻辑电路必须每两个时钟周期才能输出一组数据,这使得整个芯片硬件设备的吞吐率降低50%。如图7所示的DPL结构驱动逻辑系统被赋值为序列“1,0,0,1,1”时的时序图,虽然DPL结构驱动逻辑系统也具有抵抗能量分析攻击的能力,但需要2个时钟周期才能输出序列中的1个值,即5个序列值需要10个时钟周期才能全部输出,如图7所示。这种方法导致驱动逻辑系统乃至整个芯片硬件设备的吞吐率降为原来的一半。Although the above method can prevent the information calculated in the driving logic circuit from leaking through the energy analysis method to a certain extent, this method also has certain problems in practical applications. For example, the standard driving logic circuit will output a set of data every clock cycle , and the DPL drive logic circuit must output a set of data every two clock cycles, which reduces the throughput rate of the entire chip hardware device by 50%. As shown in Figure 7, the timing diagram of the DPL structure-driven logic system is assigned the sequence "1,0,0,1,1". Although the DPL structure-driven logic system also has the ability to resist energy analysis attacks, it requires two It takes only one clock cycle to output one value in the sequence, that is, it takes 10 clock cycles to output all five sequence values, as shown in Figure 7. This approach results in half the throughput rate of the driving logic system and even the entire chip hardware device.

发明内容Contents of the invention

有鉴于此,本发明的主要目的在于提供一种双沿触发驱动逻辑系统及抵抗能量分析攻击的方法,以实现在不降低芯片硬件设备吞吐率、提高工作效率的同时,保持抵抗能量分析攻击能力,提高了安全性。In view of this, the main purpose of the present invention is to provide a dual-edge trigger driving logic system and a method for resisting energy analysis attacks, so as to maintain the ability to resist energy analysis attacks without reducing the throughput rate of chip hardware devices and improving work efficiency. , improving security.

为实现上述目的,本发明提供了一种双沿触发驱动逻辑系统,包括信号源、控制单元和驱动逻辑电路和驱动逻辑补偿电路;To achieve the above object, the present invention provides a dual-edge trigger drive logic system, including a signal source, a control unit, a drive logic circuit and a drive logic compensation circuit;

所述控制单元用于接收外部复位信号和时钟信号,并当外部复位信号有效时使所述信号源、驱动逻辑电路和驱动逻辑补偿电路处于复位状态;当外部复位信号无效且时钟信号为上升沿时,所述信号源、驱动逻辑电路和驱动逻辑补偿电路处于工作状态,当外部复位信号无效且时钟信号为下降沿时,使所述信号源、驱动逻辑电路和驱动逻辑补偿电路处于复位状态;The control unit is used to receive an external reset signal and a clock signal, and when the external reset signal is valid, the signal source, the driving logic circuit and the driving logic compensation circuit are in a reset state; when the external reset signal is invalid and the clock signal is a rising edge , the signal source, the drive logic circuit and the drive logic compensation circuit are in the working state, and when the external reset signal is invalid and the clock signal is a falling edge, the signal source, the drive logic circuit and the drive logic compensation circuit are in the reset state;

所述信号源用于在处于工作状态时向所述驱动逻辑电路提供第一输入信号,向所述驱动逻辑补偿电路提供第二输入信号,所述第一输入信号与所述第二输入信号互补;The signal source is used to provide a first input signal to the driving logic circuit and a second input signal to the driving logic compensation circuit when it is in an operating state, and the first input signal is complementary to the second input signal ;

所述驱动逻辑电路用于接收第一输入信号,并根据所述第一输入信号计算生成第一输出信号;所述驱动逻辑补偿电路用于接收所述第二输入信号,并根据所述第二输入信号计算生成第二输出信号;所述第一输出信号与所述第二输出信号互补。The drive logic circuit is used to receive the first input signal, and calculate and generate the first output signal according to the first input signal; the drive logic compensation circuit is used to receive the second input signal, and calculate and generate the first output signal according to the second input signal The input signal is calculated to generate a second output signal; the first output signal is complementary to the second output signal.

进一步,所述控制单元包括外部时钟信号输入端CLK、外部复位信号输入端RST、低电平端、时钟信号输出端Work、复位信号输出端PreC以及或非门、第一、第二、第三或门;Further, the control unit includes an external clock signal input terminal CLK, an external reset signal input terminal RST, a low level terminal, a clock signal output terminal Work, a reset signal output terminal PreC, and a NOR gate, first, second, third or Door;

其中,外部时钟信号输入端CLK与低电平端分别连接或非门的输入端和第一或门OR1的输入端;所述或非门输出端与外部复位信号输入端RST连接第二或门OR2的输入端;所述第一或门OR1的输出端与低电平端连接第三或门OR3的输入端;所述第二或门OR2的输出端连接所述复位信号输出端PreC;所述第三或门OR3的输出端连接所述时钟信号输出端Work。Wherein, the external clock signal input terminal CLK and the low level terminal are respectively connected to the input terminal of the NOR gate and the input terminal of the first OR gate OR1; the output terminal of the NOR gate and the external reset signal input terminal RST are connected to the second OR gate OR2 the input terminal of the first OR gate OR1; the output terminal of the first OR gate OR1 is connected to the input terminal of the third OR gate OR3; the output terminal of the second OR gate OR2 is connected to the reset signal output terminal PreC; the first OR gate OR2 is connected to the output terminal PreC of the reset signal; The output end of the three-OR gate OR3 is connected to the clock signal output end Work.

进一步,所述信号源包括用于产生所述第一输入信号的第一信号源和用于产生所述第二输入信号的第二信号源;Further, the signal source includes a first signal source for generating the first input signal and a second signal source for generating the second input signal;

所述第一信号源包括第一复位信号接收端RST1、第一时钟信号接收端CLK1和第一输入信号输出端LS,所述第一复位信号接收端RST1与所述复位信号输出端PreC连接,所述第一时钟信号接收端CLK1与所述时钟信号输出端Work连接;The first signal source includes a first reset signal receiving terminal RST1, a first clock signal receiving terminal CLK1 and a first input signal output terminal LS, the first reset signal receiving terminal RST1 is connected to the reset signal output terminal PreC, The first clock signal receiving end CLK1 is connected to the clock signal output end Work;

所述第二信号源包括第二复位信号接收端RST2、第二时钟信号接收端CLK2和第二输入信号输出端CLS,所述第二复位信号接收端RST2与所述复位信号输出端PreC连接,所述第二时钟信号接收端CLK2与所述时钟信号输出端Work连接。The second signal source includes a second reset signal receiving terminal RST2, a second clock signal receiving terminal CLK2 and a second input signal output terminal CLS, the second reset signal receiving terminal RST2 is connected to the reset signal output terminal PreC, The second clock signal receiving end CLK2 is connected to the clock signal output end Work.

进一步,所述驱动逻辑电路包括第一输入信号接收端LCin、第三复位信号接收端RST3和驱动逻辑电路输出端LCout;所述驱动逻辑补偿电路包括第二输入信号接收端CLCin、第四复位信号接收端RST4和驱动逻辑电路输出端CLCout;Further, the driving logic circuit includes a first input signal receiving terminal LCin, a third reset signal receiving terminal RST3 and a driving logic circuit output terminal LCout; the driving logic compensation circuit includes a second input signal receiving terminal CLCin, a fourth reset signal receiving terminal The receiving end RST4 and the driving logic circuit output end CLCout;

所述第一输入信号接收端LCin与所述第一输入信号输出端LS连接;所述第二信号输入信号接收端CLCin与所述第二输入信号输出端CLS连接;所述第三复位信号接收端RST3与所述复位信号输出端PreC连接;所述第四复位信号接收端RST4与所述复位信号输出端PreC连接。The first input signal receiving end LCin is connected to the first input signal output end LS; the second signal input signal receiving end CLCin is connected to the second input signal output end CLS; the third reset signal receiving Terminal RST3 is connected to the reset signal output terminal PreC; the fourth reset signal receiving terminal RST4 is connected to the reset signal output terminal PreC.

进一步,所述驱动逻辑电路为异或门电路时,所述驱动逻辑补偿电路为异或非门电路。Further, when the driving logic circuit is an exclusive OR gate circuit, the driving logic compensation circuit is an exclusive NOR gate circuit.

进一步,所述驱动逻辑电路为非门电路时,所述驱动逻辑补偿电路为非门电路。Further, when the driving logic circuit is a NOT gate circuit, the driving logic compensation circuit is a NOT gate circuit.

进一步,所述驱动逻辑电路为与门电路时,所述驱动逻辑补偿电路为与非门电路。Further, when the driving logic circuit is an AND gate circuit, the driving logic compensation circuit is a NAND gate circuit.

进一步,所述驱动逻辑电路为或门电路时,所述驱动逻辑补偿电路为或非门电路。Further, when the driving logic circuit is an OR gate circuit, the driving logic compensation circuit is a NOR gate circuit.

本发明还提供了一种基于上述系统的抵抗能量分析攻击的方法,其特征在于,包括:The present invention also provides a method for resisting energy analysis attacks based on the above system, which is characterized in that it includes:

当外部复位信号有效时,控制单元向信号源、驱动逻辑电路和驱动逻辑补偿电路发送有效的复位信号;When the external reset signal is valid, the control unit sends a valid reset signal to the signal source, the driving logic circuit and the driving logic compensation circuit;

当外部复位信号无效时,在时钟信号为上升沿时,所述控制单元向信号源、驱动逻辑电路和驱动逻辑补偿电路发送时钟信号和无效的复位信号;所述信号源处于工作状态,向所述驱动逻辑补偿电路提供第二输入信号,所述第一输入信号与所述第二输入信号互补;所述驱动逻辑电路接收第一输入信号,并根据所述第一输入信号生成第一输出信号;所述驱动逻辑补偿电路接收第二输入信号,并根据所述第二输入信号计算生成第二输出信号;所述第一输出信号与所述第二输出信号互补;When the external reset signal is invalid, when the clock signal is a rising edge, the control unit sends the clock signal and an invalid reset signal to the signal source, the driving logic circuit and the driving logic compensation circuit; The driving logic compensation circuit provides a second input signal, the first input signal is complementary to the second input signal; the driving logic circuit receives the first input signal, and generates a first output signal according to the first input signal ; The driving logic compensation circuit receives a second input signal, and calculates and generates a second output signal according to the second input signal; the first output signal is complementary to the second output signal;

当外部复位信号无效时,在时钟信号为下降沿时,控制单元向信号源、驱动逻辑电路和驱动逻辑补偿电路发送时钟信号和有效的复位信号。When the external reset signal is invalid, the control unit sends a clock signal and an effective reset signal to the signal source, the driving logic circuit and the driving logic compensation circuit when the clock signal is at a falling edge.

采用本发明提供的双沿触发驱动逻辑系统代替标准信号源及驱动逻辑电路的方式,在提供了驱动逻辑电路抵抗能量分析攻击的能力的同时,通过控制单元产生长度为半个时钟周期的复位信号,从而把输出一组数据的两个时钟周期压缩为一个时钟周期,从而不会降低整个芯片硬件设备的吞吐率。Using the dual-edge trigger driving logic system provided by the present invention to replace the standard signal source and driving logic circuit, while providing the ability of the driving logic circuit to resist energy analysis attacks, the control unit generates a reset signal with a length of half a clock cycle , so that the two clock cycles for outputting a set of data are compressed into one clock cycle, so that the throughput rate of the entire chip hardware device will not be reduced.

附图说明Description of drawings

图1为本发明双沿触发驱动逻辑系统的结构示意图;Fig. 1 is a schematic structural diagram of a dual-edge trigger drive logic system of the present invention;

图2为本发明双沿触发驱动逻辑系统的控制单元的结构示意图;Fig. 2 is the structural representation of the control unit of the double-edge trigger driving logic system of the present invention;

图3为图2中控制单元各管脚时序示意图;FIG. 3 is a schematic diagram of the timing sequence of each pin of the control unit in FIG. 2;

图4为本发明双沿触发驱动逻辑系统中驱动逻辑电路与驱动逻辑补偿电路对应关系示意图;4 is a schematic diagram of the corresponding relationship between the driving logic circuit and the driving logic compensation circuit in the double-edge trigger driving logic system of the present invention;

图5为标准驱动逻辑输入的时序示意图;FIG. 5 is a schematic diagram of a timing sequence of a standard drive logic input;

图6本发明双沿触发驱动逻辑系统的驱动逻辑电路输入和驱动逻辑补偿电路输入的时序示意图;Fig. 6 is a timing schematic diagram of the input of the driving logic circuit and the input of the driving logic compensation circuit of the double-edge trigger driving logic system of the present invention;

图7为现有技术中DPL驱动逻辑电路的时序示意图。FIG. 7 is a timing diagram of a DPL driving logic circuit in the prior art.

具体实施方式detailed description

为了使本发明的目的、技术方案及优点更加清楚明白,以下参照附图并举实施例,对本发明作进一步详细说明。In order to make the purpose, technical solution and advantages of the present invention more clear, the present invention will be further described in detail below with reference to the accompanying drawings and examples.

本发明提供了一种双沿触发驱动逻辑系统,包括信号源、控制单元和驱动逻辑电路和驱动逻辑补偿电路;The invention provides a double-edge trigger drive logic system, including a signal source, a control unit, a drive logic circuit and a drive logic compensation circuit;

所述控制单元用于接收外部复位信号和时钟信号,并当外部复位信号有效时使所述信号源、驱动逻辑电路和驱动逻辑补偿电路处于复位状态;当外部复位信号无效且时钟信号为上升沿时,所述信号源、驱动逻辑电路和驱动逻辑补偿电路处于工作状态,当外部复位信号无效且时钟信号为下降沿时,使所述信号源、驱动逻辑电路和驱动逻辑补偿电路处于复位状态;The control unit is used to receive an external reset signal and a clock signal, and when the external reset signal is valid, the signal source, the driving logic circuit and the driving logic compensation circuit are in a reset state; when the external reset signal is invalid and the clock signal is a rising edge , the signal source, the drive logic circuit and the drive logic compensation circuit are in the working state, and when the external reset signal is invalid and the clock signal is a falling edge, the signal source, the drive logic circuit and the drive logic compensation circuit are in the reset state;

所述信号源用于在处于工作状态时向所述驱动逻辑电路提供第一输入信号,向所述驱动逻辑补偿电路提供第二输入信号,所述第一输入信号与所述第二输入信号互补;The signal source is used to provide a first input signal to the driving logic circuit and a second input signal to the driving logic compensation circuit when it is in an operating state, and the first input signal is complementary to the second input signal ;

所述驱动逻辑电路用于接收第一输入信号,并根据所述第一输入信号计算生成第一输出信号;所述驱动逻辑补偿电路用于接收所述第二输入信号,并根据所述第二输入信号计算生成第二输出信号;所述第一输出信号与所述第二输出信号互补。The drive logic circuit is used to receive the first input signal, and calculate and generate the first output signal according to the first input signal; the drive logic compensation circuit is used to receive the second input signal, and calculate and generate the first output signal according to the second input signal The input signal is calculated to generate a second output signal; the first output signal is complementary to the second output signal.

作为本发明的一种典型实施例,结合附图1和附图2,本发明提供的双沿触发驱动逻辑系统包括信号源、控制单元和驱动逻辑电路和驱动逻辑补偿电路;As a typical embodiment of the present invention, with reference to accompanying drawings 1 and 2, the double-edge trigger driving logic system provided by the present invention includes a signal source, a control unit, a driving logic circuit and a driving logic compensation circuit;

如图2所示,控制单元包括外部时钟信号输入端CLK、外部复位信号输入端RST、低电平端、时钟信号输出端Work、复位信号输出端PreC以及或非门、第一、第二、第三或门;As shown in Figure 2, the control unit includes an external clock signal input terminal CLK, an external reset signal input terminal RST, a low level terminal, a clock signal output terminal Work, a reset signal output terminal PreC, and NOR gates, first, second, second Three OR gate;

外部时钟信号输入端CLK与低电平端分别连接或非门的输入端和第一或门OR1的输入端;所述或非门输出端与外部复位信号输入端RST连接第二或门OR2的输入端;所述第一或门OR1的输出端与低电平端连接第三或门OR3;所述第二或门OR2的输出端连接所述复位信号输出端PreC;所述第三或门OR3的输出端连接所述时钟信号输出端Work。The external clock signal input terminal CLK and the low level terminal are respectively connected to the input terminal of the NOR gate and the input terminal of the first OR gate OR1; the output terminal of the NOR gate and the external reset signal input terminal RST are connected to the input of the second OR gate OR2 terminal; the output terminal of the first OR gate OR1 is connected to the third OR gate OR3 with the low level terminal; the output terminal of the second OR gate OR2 is connected to the reset signal output terminal PreC; the output terminal of the third OR gate OR3 The output terminal is connected to the clock signal output terminal Work.

需要说明的是,如图1中所示的第一信号源输出的第一输入信号为第二信号源输出的第二输入信号的取反,因此,在工作状态下有在复位状态下有LCin=CLCin={0,0,...,0},其中,第一输入信号和第二输入信号的位数可根据驱动逻辑电路需要的信号位数确定,驱动逻辑电路的输入信号的位数与驱动逻辑补偿电路的输入信号位数相同,因此,设第一、第二输入信号的位数均为n,则有LCin={LS1,LS2,...,LSn},CLCin={CLS1,CLS2,...,CLSn};驱动逻辑电路的输出LCout为驱动逻辑电路的输入LCin通过驱动逻辑电路所执行的函数计算出的结果,驱动逻辑补偿电路的输出CLCout为驱动逻辑补偿电路的输入CLCin通过驱动逻辑补偿电路所执行的函数计算出的结果,在工作状态下驱动逻辑补偿电路的输出CLCout为驱动逻辑电路的输出LCout取反,在复位状态下驱动逻辑补偿电路的输出和驱动逻辑电路的输出均置零,记驱动逻辑电路执行布尔函数F1,驱动逻辑补偿电路执行布尔函数F2,驱动逻辑电路的输出为LCout,驱动逻辑补偿电路的输入为CLCout,则LCout=F1(LCin)=F1(LS1,LS2,...,LSn)、CLCout=F2(CLCin)=F2(CLS1,CLS2,...,CLSn),在工作状态下有在复位状态下有LCout=CLCout;控制单元接收的外部时钟信号CLK和复位信号RST分别为所述驱动逻辑电路系统的时钟信号和复位信号,控制单元产生的工作信号Work分别为第一、第二信号源的时钟信号,控制单元产生的复位信号PreC分别为第一信号源、第二信号源、驱动逻辑电路和驱动逻辑补偿电路的复位信号;由上述结构可以看出,驱动逻辑电路系统连接到整个电路中的连接方式与原有的标准驱动逻辑电路完全相同,因此在使用时可以符合标准的电路元件库要求,可以正常地与芯片硬件设备电路接合,具有很好的兼容性。It should be noted that, as shown in FIG. 1, the first input signal output by the first signal source is the inversion of the second input signal output by the second signal source. Therefore, in the working state, there is In the reset state, there is LC in =CLC in ={0,0,...,0}, wherein, the number of bits of the first input signal and the second input signal can be determined according to the number of signal bits required by the driving logic circuit, and the driving The number of bits of the input signal of the logic circuit is the same as the number of bits of the input signal of the drive logic compensation circuit, therefore, assuming that the number of bits of the first and second input signals are both n, then LC in ={LS 1 ,LS 2 ,. ..,LS n }, CLC in ={CLS 1 ,CLS 2 ,...,CLS n }; the output LC out of the driving logic circuit is the input LC in of the driving logic circuit and is calculated by the function executed by the driving logic circuit The result, the output CLC out of the driving logic compensation circuit is the result calculated by the input CLC in of the driving logic compensation circuit through the function performed by the driving logic compensation circuit, and the output CLC out of the driving logic compensation circuit is the driving logic circuit in the working state The output of LC out is reversed, and the output of the driving logic compensation circuit and the output of the driving logic circuit are both set to zero in the reset state. Note that the driving logic circuit executes the Boolean function F 1 , the driving logic compensation circuit executes the Boolean function F 2 , and the driving logic circuit The output of the drive logic compensation circuit is LC out , and the input of the driving logic compensation circuit is CLC out , then LC out = F 1 (LC in ) = F 1 (LS 1 ,LS 2 ,...,LS n ), CLC out =F 2 ( CLC in )=F 2 (CLS 1 ,CLS 2 ,...,CLS n ), there is There is LC out =CLC out in the reset state; the external clock signal CLK and the reset signal RST received by the control unit are respectively the clock signal and the reset signal of the drive logic circuit system, and the working signals Work produced by the control unit are respectively the first, The clock signal of the second signal source and the reset signal PreC produced by the control unit are respectively the reset signals of the first signal source, the second signal source, the driving logic circuit and the driving logic compensation circuit; as can be seen from the above structure, the driving logic circuit system The connection mode connected to the whole circuit is exactly the same as the original standard drive logic circuit, so it can meet the requirements of the standard circuit component library when used, and can be normally connected with the chip hardware device circuit, and has good compatibility.

以下以第一、第二输入信号为1位的驱动逻辑系统为例,假定复位信号高电平有效,参照附图3至图6,对本发明上述实施例中驱动逻辑系统工作过程进行进一步地详细说明。In the following, the drive logic system with the first and second input signals being 1 bit is taken as an example, assuming that the reset signal is active at a high level, referring to the accompanying drawings 3 to 6, the working process of the drive logic system in the above-mentioned embodiment of the present invention is further detailed illustrate.

图3为控制单元产生的5个时钟周期中各管脚时序示意图。可以看出:FIG. 3 is a schematic diagram of the timing of each pin in five clock cycles generated by the control unit. As can be seen:

A、当第1个时钟周期时,RST为高电平,即此时驱动逻辑系统处于复位状态,而PreC为高电平,即所有信号源和驱动逻辑电路、驱动逻辑补偿电路均处于复位阶段。A. When the first clock cycle, RST is high level, that is, the drive logic system is in the reset state at this time, and PreC is high level, that is, all signal sources, drive logic circuits, and drive logic compensation circuits are in the reset stage .

B、当第2~5个时钟周期时,RST为低电平,即此时驱动逻辑系统处于工作阶段,而系统中每个信号源和驱动逻辑电路、驱动逻辑补偿电路所处的阶段,包括:B. When the 2nd to 5th clock cycle, RST is low level, that is, the driving logic system is in the working stage at this time, and each signal source in the system, the driving logic circuit, and the driving logic compensation circuit are in the stage, including :

B1、在每个时钟周期上升沿,Work为上升沿,PreC为低电平,第一信号源、第二信号源、驱动逻辑电路和驱动逻辑补偿电路进入工作阶段;B1. On the rising edge of each clock cycle, Work is a rising edge, PreC is a low level, and the first signal source, the second signal source, the driving logic circuit and the driving logic compensation circuit enter the working stage;

B2、在每个时钟周期下降沿,PreC为高电平,第一信号源、第二信号源、驱动逻辑电路和驱动逻辑补偿电路进入复位阶段。B2. On the falling edge of each clock cycle, PreC is at a high level, and the first signal source, the second signal source, the driving logic circuit and the driving logic compensation circuit enter a reset phase.

综上所述,第一、第二信号源及驱动逻辑电路、驱动逻辑补偿电路进入的阶段符合双沿触发驱动逻辑系统的CLK管脚和RST管脚的定义。To sum up, the stage entered by the first and second signal sources, the driving logic circuit, and the driving logic compensation circuit conforms to the definition of the CLK pin and the RST pin of the double-edge trigger driving logic system.

由图3还可以发现,当所述的双沿触发驱动逻辑系统处于工作阶段时,PreC信号为对应的Work信号取反,Work信号与所述的双沿触发驱动逻辑系统的CLK信号相同,因此仅已知所述的双沿触发驱动逻辑系统的CLK信号就可以计算出双沿触发驱动逻辑系统中每个信号源及驱动逻辑电路、驱动逻辑补偿电路所处的阶段,下文中所有的CLK均表示双沿触发驱动逻辑系统的CLK信号。It can also be found from FIG. 3 that when the double-edge trigger driving logic system is in the working phase, the PreC signal is the inversion of the corresponding Work signal, and the Work signal is the same as the CLK signal of the double-edge trigger driving logic system, so Only knowing the CLK signal of the double-edge trigger driving logic system can calculate the stages of each signal source, driving logic circuit, and driving logic compensation circuit in the double-edge trigger driving logic system. All CLKs in the following are Indicates the CLK signal of the double-edge trigger driving logic system.

由于驱动逻辑电路是实现电路信号计算功能的电路部件,因此驱动逻辑电路可以抽象为一个布尔函数,记布尔函数为F,函数输入为LCin,函数输出为LCout,则驱动逻辑可以定义为LCout=F(LCin)。因此,在本文后续讨论驱动逻辑电路时,由于输出为输入的函数,只需要讨论驱动逻辑电路的输入即可。Since the driving logic circuit is a circuit component that realizes the circuit signal calculation function, the driving logic circuit can be abstracted as a Boolean function, denoted as F, the function input is LC in , and the function output is LC out , then the driving logic can be defined as LC out = F(LC in ). Therefore, when discussing the driving logic circuit later in this article, since the output is a function of the input, only the input of the driving logic circuit needs to be discussed.

在信息论中,两个等长比特串之间的汉明距离(HD)是两个比特串对应位置的比特不同的个数;汉明重量(HW)是比特串相对于同样长度的全零比特串的汉明距离,即比特串中非零的比特个数。对于芯片硬件设备中所使用的驱动逻辑而言,一个时钟周期的HW值表示该驱动逻辑在该时钟周期所计算的比特串中1的个数;相邻两个时钟周期的HD值表示该驱动逻辑在这两个时钟周期所计算的两个比特串对应位置的比特值(0或1)不同的个数。根据能量分析理论,在工作状态下,如果标准驱动逻辑的HW和HD值不是恒定的,则该驱动逻辑的能量消耗也会产生变化,可以通过能量分析攻击技术恢复出标准驱动逻辑乃至芯片硬件设备中所计算、存储的信息。In information theory, the Hamming distance (HD) between two equal-length bit strings is the number of different bits in the corresponding positions of the two bit strings; The Hamming distance of the string, that is, the number of non-zero bits in the bit string. For the driving logic used in the chip hardware device, the HW value of a clock cycle represents the number of 1s in the bit string calculated by the driving logic in this clock cycle; the HD value of two adjacent clock cycles represents the number of 1s in the drive logic The number of different bit values (0 or 1) at the corresponding positions of the two bit strings calculated by the logic in the two clock cycles. According to the energy analysis theory, in the working state, if the HW and HD values of the standard driving logic are not constant, the energy consumption of the driving logic will also change, and the standard driving logic and even chip hardware devices can be recovered through energy analysis attack technology The information calculated and stored in the

根据所述驱动逻辑系统的定义和连线可以发现,驱动逻辑电路和驱动逻辑补偿电路的输入输出值均互补,记驱动逻辑电路抽象的布尔函数为F1,函数输入为LCin,函数输出为LCout,补偿驱动逻辑电路抽象的布尔函数为F2,函数输入为CLCin,函数输出为CLCout,则有由此可知,在讨论所述的驱动逻辑系统的HW值和HD值时,考察所述驱动逻辑系统的输入或输出是等价的。因此,在本文后续的讨论中仅考察驱动逻辑系统的输入。According to the definition and wiring of the driving logic system, it can be found that the input and output values of the driving logic circuit and the driving logic compensation circuit are complementary. Note that the abstract Boolean function of the driving logic circuit is F 1 , the function input is LC in , and the function output is LC out , the abstract Boolean function of the compensation drive logic circuit is F 2 , the function input is CLC in , and the function output is CLC out , then It can be seen that when discussing the HW value and HD value of the driving logic system, it is equivalent to consider the input or output of the driving logic system. Therefore, only the inputs driving the logic system are considered in the remainder of this paper.

图4为本发明驱动逻辑系统的驱动逻辑补偿电路设计示意图。所述的驱动逻辑系统与标准驱动逻辑相同,均由标准逻辑元件构成。最基本的3类标准逻辑元件分别是1输入非门(NOT),2输入与门(AND),2输入或门(OR)。由于其它复杂电路均由这3类标准逻辑元件构成,因此当获得这3类标准逻辑元件的驱动逻辑补偿电路设计,即可获得复杂驱动逻辑电路对应的驱动逻辑补偿电路设计。对NOT而言,根据输入输出构造真值表,可以发现对应的驱动逻辑电路为NOT。对AND和OR而言,根据2输入构造卡诺图,可以进行逻辑化简,进而发现AND对应的驱动逻辑补偿电路为OR,OR对应的驱动逻辑补偿电路为AND,如图4所示。基于相同原理的推导,进一步延伸举例,驱动逻辑电路为异或门电路时,驱动逻辑补偿电路为异或非门电路;在此需要说明的是,对于其他复杂单路,由于均由非门、与门、或门组成,可依据相同的原则推导符合本实施例要求的驱动逻辑电路和驱动逻辑补偿电路。FIG. 4 is a schematic diagram of the design of the driving logic compensation circuit of the driving logic system of the present invention. The drive logic system is the same as the standard drive logic, and is composed of standard logic elements. The most basic three types of standard logic elements are 1-input NOT gate (NOT), 2-input AND gate (AND), and 2-input OR gate (OR). Since other complex circuits are composed of these three types of standard logic elements, when the drive logic compensation circuit design of these three types of standard logic elements is obtained, the drive logic compensation circuit design corresponding to the complex drive logic circuit can be obtained. For NOT, the truth table is constructed according to the input and output, and it can be found that the corresponding driving logic circuit is NOT. For AND and OR, the logic can be simplified according to the 2-input Karnaugh map, and then it is found that the driving logic compensation circuit corresponding to AND is OR, and the driving logic compensation circuit corresponding to OR is AND, as shown in Figure 4. Based on the derivation of the same principle, the example is further extended. When the driving logic circuit is an XOR gate circuit, the driving logic compensation circuit is an XNOR gate circuit; Composed of AND gates and OR gates, the drive logic circuit and drive logic compensation circuit meeting the requirements of this embodiment can be derived based on the same principle.

图5为在驱动逻辑电路、驱动逻辑补偿电路、第一、第二信号源处于工作状态下,驱动逻辑电路输入(图中名称为LCin)在5个连续时钟周期(周期1~5)的HW值和HD值的变化,其中所有输入的初始状态均置零。如图5所示,驱动逻辑电路输入在周期1~5被赋值为序列“1,0,0,1,1”。通过观察图5中对应的HW和HD的值,可以发现每个时钟周期对应的HW和HD值都不是恒定的,根据能量分析理论,在工作阶段下,如果驱动逻辑电路输入的HW和HD值不是恒定的,可以通过能量分析攻击技术恢复出标准驱动逻辑乃至芯片硬件设备中存储、计算的信息。Figure 5 shows the input of the driving logic circuit (named LC in in the figure) in 5 consecutive clock cycles (cycles 1 to 5) when the driving logic circuit, the driving logic compensation circuit, and the first and second signal sources are in the working state. Changes in HW and HD values, where the initial state of all inputs is set to zero. As shown in FIG. 5 , the input of the driving logic circuit is assigned the sequence "1,0,0,1,1" in cycles 1-5. By observing the corresponding HW and HD values in Figure 5, it can be found that the HW and HD values corresponding to each clock cycle are not constant. According to the energy analysis theory, in the working stage, if the driving logic circuit input HW and HD values It is not constant, and the information stored and calculated in standard drive logic and even chip hardware devices can be recovered through energy analysis attack technology.

图6为本发明双沿触发驱动逻辑系统时序图。假设驱动逻辑电路输入在周期1~5仍将被赋值为序列“1,0,0,1,1”。根据图2的控制单元结构和图3的时序分析,可以分析出驱动逻辑电路输入在周期1~5的上升沿将被赋值为序列“1,0,0,1,1”,而在周期1~5的后半周期将被置零;另外,由图1可知驱动逻辑补偿电路输入(图中名称为CLCin)的值与驱动逻辑电路输入互补,则驱动逻辑补偿电路输入在周期1~5的上升沿将被赋值为序列“0,1,1,0,0”,而在周期1~5的后半周期将被置零。这个分析与图6所示的时序相一致。由于驱动逻辑补偿电路输入的取值是由驱动逻辑电路输入决定的,即在工作阶段两组输入值互补,所以此时应当考虑驱动逻辑电路输入和驱动逻辑补偿电路输入的HW与HD的总和,如图6所示。其中,在每个工作阶段,HW的总和时钟为1;在每个复位阶段,HW的总和时钟为0;在每次阶段变换时,HD的总和时钟为1。这样就达到了保持HW和HD值恒定的目的,使这个驱动逻辑电路系统具有抵抗能量分析攻击的能力。FIG. 6 is a timing diagram of the dual-edge trigger driving logic system of the present invention. Assume that the drive logic circuit input will still be assigned the sequence "1,0,0,1,1" in cycles 1-5. According to the structure of the control unit in Figure 2 and the timing analysis in Figure 3, it can be analyzed that the input of the driving logic circuit will be assigned the sequence "1,0,0,1,1" at the rising edge of cycle 1 to 5, and in cycle 1 The second half cycle of ~5 will be set to zero; in addition, it can be seen from Figure 1 that the value of the input of the driving logic compensation circuit (named CLC in in the figure) is complementary to the input of the driving logic circuit, so the input of the driving logic compensation circuit is in the cycle 1~5 The rising edge of will be assigned the sequence "0,1,1,0,0", and the second half period of period 1~5 will be set to zero. This analysis is consistent with the timing shown in Figure 6. Since the value of the input of the driving logic compensation circuit is determined by the input of the driving logic circuit, that is, the two sets of input values are complementary in the working stage, so the sum of HW and HD of the driving logic circuit input and the driving logic compensation circuit input should be considered at this time, As shown in Figure 6. Among them, in each working phase, the sum clock of HW is 1; in each reset phase, the sum clock of HW is 0; when changing each phase, the sum clock of HD is 1. In this way, the purpose of keeping the HW and HD values constant is achieved, so that the driving logic circuit system has the ability to resist energy analysis attacks.

当然,上述仅为1位输入的驱动逻辑系统举例说明,在实际应用中,多位输入驱动逻辑系统可以视为1位输入驱动逻辑系统的推广,本发明所提供的技术方案仍然有效。Of course, the above-mentioned driving logic system with only 1-bit input is an example. In practical applications, the multi-bit input driving logic system can be regarded as a generalization of the 1-bit input driving logic system, and the technical solution provided by the present invention is still valid.

本发明基于上述系统构成还提供了一种抵抗能量分析攻击的方法,包括:Based on the above system composition, the present invention also provides a method for resisting energy analysis attacks, including:

当外部复位信号有效时,控制单元向信号源、驱动逻辑电路和驱动逻辑补偿电路发送有效的复位信号;When the external reset signal is valid, the control unit sends a valid reset signal to the signal source, the driving logic circuit and the driving logic compensation circuit;

当外部复位信号无效时,在时钟信号为上升沿时,所述控制单元向信号源、驱动逻辑电路和驱动逻辑补偿电路发送时钟信号和无效的复位信号;所述信号源处于工作状态,向所述驱动逻辑补偿电路提供第二输入信号,所述第一输入信号与所述第二输入信号互补;所述驱动逻辑电路接收第一输入信号,并根据所述第一输入信号生成第一输出信号;所述驱动逻辑补偿电路接收第二输入信号,并根据所述第二输入信号计算生成第二输出信号;所述第一输出信号与所述第二输出信号互补;When the external reset signal is invalid, when the clock signal is a rising edge, the control unit sends the clock signal and an invalid reset signal to the signal source, the driving logic circuit and the driving logic compensation circuit; The driving logic compensation circuit provides a second input signal, the first input signal is complementary to the second input signal; the driving logic circuit receives the first input signal, and generates a first output signal according to the first input signal ; The driving logic compensation circuit receives a second input signal, and calculates and generates a second output signal according to the second input signal; the first output signal is complementary to the second output signal;

当外部复位信号无效时,在时钟信号为下降沿时,控制单元向信号源、驱动逻辑电路和驱动逻辑补偿电路发送时钟信号和有效的复位信号。When the external reset signal is invalid, the control unit sends a clock signal and an effective reset signal to the signal source, the driving logic circuit and the driving logic compensation circuit when the clock signal is at a falling edge.

综上所述,通过采用双沿触发驱动逻辑系统代替标准驱动逻辑的方式,提供了驱动逻辑系统抵抗能量分析攻击的能力;同时通过支持双沿触发的标准驱动逻辑系统实现,从而把输出一组数据的两个时钟周期压缩为一个时钟周期,提高了整个芯片硬件设备的吞吐率;而且,本发明所述方法实现起来简单方便,便于普及;再有,本发明所述方法中的双沿触发驱动逻辑系统所使用的元件符合标准的电路元件库要求,可以正常地与芯片硬件设备电路接合,具有很好的兼容性。To sum up, by using the double-edge trigger driving logic system to replace the standard driving logic, the ability of the driving logic system to resist energy analysis attacks is provided; at the same time, the standard driving logic system that supports double-edge triggering is implemented, so that the output of a group Two clock cycles of data are compressed into one clock cycle, which improves the throughput rate of the whole chip hardware device; moreover, the method of the present invention is simple and convenient to implement, and is easy to popularize; moreover, the double-edge trigger in the method of the present invention The components used in the drive logic system meet the requirements of the standard circuit component library, and can be normally connected with the chip hardware device circuit, and have good compatibility.

以上所述仅为本发明的较佳实施例而已,并不用以限制本发明,凡在本发明的精神和原则之内,所做的任何修改、等同替换、改进等,均应包含在本发明保护的范围之内。The above descriptions are only preferred embodiments of the present invention, and are not intended to limit the present invention. Any modifications, equivalent replacements, improvements, etc. made within the spirit and principles of the present invention shall be included in the present invention. within the scope of protection.

Claims (9)

1.一种双沿触发驱动逻辑系统,其特征在于,包括信号源、控制单元和驱动逻辑电路和驱动逻辑补偿电路;1. A double-edge trigger driving logic system is characterized in that, comprising a signal source, a control unit, a driving logic circuit and a driving logic compensation circuit; 所述控制单元用于接收外部复位信号和时钟信号,并当外部复位信号有效时使所述信号源、驱动逻辑电路和驱动逻辑补偿电路处于复位状态;当外部复位信号无效且时钟信号为上升沿时,所述信号源、驱动逻辑电路和驱动逻辑补偿电路处于工作状态,当外部复位信号无效且时钟信号为下降沿时,使所述信号源、驱动逻辑电路和驱动逻辑补偿电路处于复位状态;The control unit is used to receive an external reset signal and a clock signal, and when the external reset signal is valid, the signal source, the driving logic circuit and the driving logic compensation circuit are in a reset state; when the external reset signal is invalid and the clock signal is a rising edge , the signal source, the drive logic circuit and the drive logic compensation circuit are in the working state, and when the external reset signal is invalid and the clock signal is a falling edge, the signal source, the drive logic circuit and the drive logic compensation circuit are in the reset state; 所述信号源用于在处于工作状态时向所述驱动逻辑电路提供第一输入信号,向所述驱动逻辑补偿电路提供第二输入信号,所述第一输入信号与所述第二输入信号互补;The signal source is used to provide a first input signal to the driving logic circuit and a second input signal to the driving logic compensation circuit when it is in an operating state, and the first input signal is complementary to the second input signal ; 所述驱动逻辑电路用于接收第一输入信号,并根据所述第一输入信号计算生成第一输出信号;所述驱动逻辑补偿电路用于接收所述第二输入信号,并根据所述第二输入信号计算生成第二输出信号;所述第一输出信号与所述第二输出信号互补。The drive logic circuit is used to receive the first input signal, and calculate and generate the first output signal according to the first input signal; the drive logic compensation circuit is used to receive the second input signal, and calculate and generate the first output signal according to the second input signal The input signal is calculated to generate a second output signal; the first output signal is complementary to the second output signal. 2.根据权利要求1所述的系统,其特征在于,所述控制单元包括外部时钟信号输入端CLK、外部复位信号输入端RST、低电平端、时钟信号输出端Work、复位信号输出端PreC以及或非门、第一或门、第二或门、第三或门;2. The system according to claim 1, wherein the control unit comprises an external clock signal input terminal CLK, an external reset signal input terminal RST, a low level terminal, a clock signal output terminal Work, a reset signal output terminal PreC and NOR gate, first OR gate, second OR gate, third OR gate; 其中,外部时钟信号输入端CLK与低电平端分别连接或非门的输入端和第一或门OR1的输入端;所述或非门输出端与外部复位信号输入端RST连接第二或门OR2的输入端;所述第一或门OR1的输出端与低电平端连接第三或门OR3的输入端;所述第二或门OR2的输出端连接所述复位信号输出端PreC;所述第三或门OR3的输出端连接所述时钟信号输出端Work。Wherein, the external clock signal input terminal CLK and the low level terminal are respectively connected to the input terminal of the NOR gate and the input terminal of the first OR gate OR1; the output terminal of the NOR gate and the external reset signal input terminal RST are connected to the second OR gate OR2 the input terminal of the first OR gate OR1; the output terminal of the first OR gate OR1 is connected to the input terminal of the third OR gate OR3; the output terminal of the second OR gate OR2 is connected to the reset signal output terminal PreC; the first OR gate OR2 is connected to the output terminal PreC of the reset signal; The output end of the three-OR gate OR3 is connected to the clock signal output end Work. 3.根据权利要求2所述的系统,其特征在于,所述信号源包括用于产生所述第一输入信号的第一信号源和用于产生所述第二输入信号的第二信号源;3. The system according to claim 2, wherein the signal source comprises a first signal source for generating the first input signal and a second signal source for generating the second input signal; 所述第一信号源包括第一复位信号接收端RST1、第一时钟信号接收端CLK1和第一输入信号输出端LS,所述第一复位信号接收端RST1与所述复位信号输出端PreC连接,所述第一时钟信号接收端CLK1与所述时钟信号输出端Work连接;The first signal source includes a first reset signal receiving terminal RST1, a first clock signal receiving terminal CLK1 and a first input signal output terminal LS, the first reset signal receiving terminal RST1 is connected to the reset signal output terminal PreC, The first clock signal receiving end CLK1 is connected to the clock signal output end Work; 所述第二信号源包括第二复位信号接收端RST2、第二时钟信号接收端CLK2和第二输入信号输出端CLS,所述第二复位信号接收端RST2与所述复位信号输出端PreC连接,所述第二时钟信号接收端CLK2与所述时钟信号输出端Work连接。The second signal source includes a second reset signal receiving terminal RST2, a second clock signal receiving terminal CLK2 and a second input signal output terminal CLS, the second reset signal receiving terminal RST2 is connected to the reset signal output terminal PreC, The second clock signal receiving end CLK2 is connected to the clock signal output end Work. 4.根据权利要求3所述的系统,其特征在于,所述驱动逻辑电路包括第一输入信号接收端LCin、第三复位信号接收端RST3和驱动逻辑电路输出端LCout;所述驱动逻辑补偿电路包括第二输入信号接收端CLCin、第四复位信号接收端RST4和驱动逻辑电路输出端CLCout;4. The system according to claim 3, wherein the driving logic circuit comprises a first input signal receiving terminal LCin, a third reset signal receiving terminal RST3 and a driving logic circuit output terminal LCout; the driving logic compensation circuit It includes a second input signal receiving terminal CLCin, a fourth reset signal receiving terminal RST4 and a drive logic circuit output terminal CLCout; 所述第一输入信号接收端LCin与所述第一输入信号输出端LS连接;所述第二信号输入信号接收端CLCin与所述第二输入信号输出端CLS连接;所述第三复位信号接收端RST3与所述复位信号输出端PreC连接;所述第四复位信号接收端RST4与所述复位信号输出端PreC连接。The first input signal receiving end LCin is connected to the first input signal output end LS; the second signal input signal receiving end CLCin is connected to the second input signal output end CLS; the third reset signal receiving Terminal RST3 is connected to the reset signal output terminal PreC; the fourth reset signal receiving terminal RST4 is connected to the reset signal output terminal PreC. 5.根据权利要求4所述的系统,其特征在于,所述驱动逻辑电路为异或门电路时,所述驱动逻辑补偿电路为异或非门电路。5 . The system according to claim 4 , wherein when the driving logic circuit is an exclusive OR gate circuit, the driving logic compensation circuit is an exclusive NOR gate circuit. 6.根据权利要求4所述的系统,其特征在于,所述驱动逻辑电路为非门电路时,所述驱动逻辑补偿电路为非门电路。6. The system according to claim 4, wherein when the driving logic circuit is a NOT gate circuit, the driving logic compensation circuit is a NOT gate circuit. 7.根据权利要求4所述的系统,其特征在于,所述驱动逻辑电路为与门电路时,所述驱动逻辑补偿电路为与非门电路。7. The system according to claim 4, wherein when the driving logic circuit is an AND gate circuit, the driving logic compensation circuit is a NAND gate circuit. 8.根据权利要求4所述的系统,其特征在于,所述驱动逻辑电路为或门电路时,所述驱动逻辑补偿电路为或非门电路。8. The system according to claim 4, wherein when the driving logic circuit is an OR gate circuit, the driving logic compensation circuit is a NOR gate circuit. 9.一种基于权利要求1-8任一项所述系统的抵抗能量分析攻击的方法,其特征在于,包括:9. A method for resisting energy analysis attacks based on the system according to any one of claims 1-8, characterized in that it comprises: 当外部复位信号有效时,控制单元向信号源、驱动逻辑电路和驱动逻辑补偿电路发送有效的复位信号;When the external reset signal is valid, the control unit sends a valid reset signal to the signal source, the driving logic circuit and the driving logic compensation circuit; 当外部复位信号无效时,在时钟信号为上升沿时,所述控制单元向信号源、驱动逻辑电路和驱动逻辑补偿电路发送时钟信号和无效的复位信号;所述信号源处于工作状态,向所述驱动逻辑补偿电路提供第二输入信号,所述第一输入信号与所述第二输入信号互补;所述驱动逻辑电路接收第一输入信号,并根据所述第一输入信号生成第一输出信号;所述驱动逻辑补偿电路接收第二输入信号,并根据所述第二输入信号计算生成第二输出信号;所述第一输出信号与所述第二输出信号互补;When the external reset signal is invalid, when the clock signal is a rising edge, the control unit sends the clock signal and an invalid reset signal to the signal source, the driving logic circuit and the driving logic compensation circuit; The driving logic compensation circuit provides a second input signal, the first input signal is complementary to the second input signal; the driving logic circuit receives the first input signal, and generates a first output signal according to the first input signal ; The driving logic compensation circuit receives a second input signal, and calculates and generates a second output signal according to the second input signal; the first output signal is complementary to the second output signal; 当外部复位信号无效时,在时钟信号为下降沿时,控制单元向信号源、驱动逻辑电路和驱动逻辑补偿电路发送时钟信号和有效的复位信号。When the external reset signal is invalid, the control unit sends a clock signal and an effective reset signal to the signal source, the driving logic circuit and the driving logic compensation circuit when the clock signal is at a falling edge.
CN201410382777.9A 2014-08-06 2014-08-06 A kind of double method driving logical system and opposing power analysis along triggering Expired - Fee Related CN104200178B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201410382777.9A CN104200178B (en) 2014-08-06 2014-08-06 A kind of double method driving logical system and opposing power analysis along triggering

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201410382777.9A CN104200178B (en) 2014-08-06 2014-08-06 A kind of double method driving logical system and opposing power analysis along triggering

Publications (2)

Publication Number Publication Date
CN104200178A CN104200178A (en) 2014-12-10
CN104200178B true CN104200178B (en) 2017-03-08

Family

ID=52085469

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201410382777.9A Expired - Fee Related CN104200178B (en) 2014-08-06 2014-08-06 A kind of double method driving logical system and opposing power analysis along triggering

Country Status (1)

Country Link
CN (1) CN104200178B (en)

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US5663685A (en) * 1996-03-29 1997-09-02 Bull Hn Information Systems Inc. Dual flip-flop detector type phase locked loop incorporating dynamic phase offset correction
US6255870B1 (en) * 1998-12-30 2001-07-03 Hyundai Electronics Industries Co., Ltd. Apparatus for compensating locking error in high speed memory device with delay locked loop
CN102354291A (en) * 2011-06-10 2012-02-15 中国航天科技集团公司第九研究院第七七一研究所 Reset value controllable circuit for asynchronous register and reset value controllable operation method for asynchronous register
CN103593627A (en) * 2013-11-06 2014-02-19 中国科学院信息工程研究所 Double-layer composite register system and method for resisting energy analysis attack
CN103593628A (en) * 2013-11-07 2014-02-19 中国科学院信息工程研究所 Logic combined register system and resistance energy analysis attack method

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US5663685A (en) * 1996-03-29 1997-09-02 Bull Hn Information Systems Inc. Dual flip-flop detector type phase locked loop incorporating dynamic phase offset correction
US6255870B1 (en) * 1998-12-30 2001-07-03 Hyundai Electronics Industries Co., Ltd. Apparatus for compensating locking error in high speed memory device with delay locked loop
CN102354291A (en) * 2011-06-10 2012-02-15 中国航天科技集团公司第九研究院第七七一研究所 Reset value controllable circuit for asynchronous register and reset value controllable operation method for asynchronous register
CN103593627A (en) * 2013-11-06 2014-02-19 中国科学院信息工程研究所 Double-layer composite register system and method for resisting energy analysis attack
CN103593628A (en) * 2013-11-07 2014-02-19 中国科学院信息工程研究所 Logic combined register system and resistance energy analysis attack method

Also Published As

Publication number Publication date
CN104200178A (en) 2014-12-10

Similar Documents

Publication Publication Date Title
CN103227635A (en) High-speed and low-power-consumption CMOS full adder and operation method thereof
CN103235710A (en) Reversible-logic-based 16-bit carry look-ahead adder
Frustaci et al. Designing high-speed adders in power-constrained environments
CN104200178B (en) A kind of double method driving logical system and opposing power analysis along triggering
Zhang et al. Transient fault tolerant QDI interconnects using redundant check code
CN104184456A (en) Low-frequency multiphase differential clock tree type serializer with high speed and low power consumption for IO interface
CN103593628B (en) A kind of method of logic compound register system and opposing power analysis
CN102955682B (en) Modular(23n-2n)multiplier
CN104734691A (en) Single-track input and double-track output adiabatic logic circuit and one-bit full adder
Nepal et al. Optimizing noise-immune nanoscale circuits using principles of Markov random fields
Yan et al. A transient pulse dually filterable and online self-recoverable latch
CN102394637A (en) Anti-differential power attack ternary counter based on sense amplification logic
Lakshmi et al. Performance comparison of various clock gating techniques
CN103593627B (en) A kind of double-layer composite register system and the method for opposing power analysis
CN107425841B (en) A timing error detection unit based on transition error detection structure
Shirakol et al. Design and implementation of 16-bit carry skip adder using efficient low power high performance full adders
Pandey et al. Mapping Based Low Power Arithmetic and Logic Unit Design with Efficient HDL Coding
Bhandari et al. Fpga based high performance asynchronous alu based on modified 4 phase handshaking protocol with tapered buffers
Chetan et al. Performance Enhancement of 32-bit Carry Select Adder by employing RTL optimization techniques
Thoti et al. Design Of Low Power Bcd Adder Using 14-T Full Adder
CN102929575A (en) Modular multiplier
CN202218216U (en) Low-power-consumption asynchronous comparison gate for low density parity check (LDPC) decoder
Pattar et al. Static Timing Analysis on Pipelined $8\times 8$ Approximate Multiplier with Truncation
Kharwar et al. Design & Comparison of 32-bit CSLA with Hybrid Logic
Boppana et al. Low-power and high speed CPL-CSA adder

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: 20170308

Termination date: 20200806

CF01 Termination of patent right due to non-payment of annual fee