The present invention relates generally to processors and controllers and standard cells for arithmetic logic units (ALUs) in such processors and controllers.
A standard cell for ALUs in microcontrollers may be implemented using a semi-custom design style. Chip card controllers have to meet high requirements in terms of resistance to invasive probing and/or non-invasive differential power analysis (DPA) of security-critical information. One prior art device uses bitwise XOR masking of all data using time-variant masks, so-called “one-time pad (OTP)” masks.
co—n=
s—n=
The mirror adder thus logically combines the two operand bits a and b and the carry-in bit ci in order to obtain the inverted carry-out bit co_n and the inverted sum bit s_n. In a standard-cell implementation of the mirror adder, co_n and s_n are usually additionally inverted by two inverters, respectively, one per output, such that the outputs of the mirror adder cell are usually the carry bit co and the sum bit s.
When output signals produced by a conventional full adder are supplied with masked input data, the equations
y=a·b+b·c+c·a (3)
z=a⊕b⊕c (4)
are transformed under the “masking operation”, that is, the XOR combination
{circumflex over (x)}=x⊕k (5)
of x=a, b and c with an OTP bit k.
One then obtains â·{circumflex over (b)}+{circumflex over (b)}·ĉ+ĉ·â=(a·b+b·c+c·a)⊕k=y⊕k=ŷ and â⊕{circumflex over (b)}⊕ĉ=a⊕b⊕c⊕k=z⊕k={circumflex over (z)}. The “full adder equations” are form-invariant (covariant) under the “masking operation”: from input data masked with k, the full adder computes output data which is also obtained when output data from unmasked input data is masked with k.
The present invention will be described with respect to a preferred embodiment, in which:
Attempts to implement OTP masked ALU's using conventional standard cells have led to unacceptable values for the computing speed and energy expenditure. Because of this, commercial implementation of OTP-masked computation has been difficult.
One embodiment of the present invention provides a cell for an arithmetic logic unit comprising:
A further embodiment of the present invention provides control circuitry for an ALU cell comprising:
A further embodiment of the present invention also provides control circuitry for an ALU cell comprising:
In a further embodiment, the present invention provides a masked ALU cell comprising:
In yet another embodiment, the present invention provides a masked ALU cell comprising:
The present invention also provides a method for logically combining two inputs in a masked ALU cell comprising:
The present invention provides a mirror adder, control circuitry and methods suited especially well for standard cell implementation. The ALU cell of the present invention not only provides the arithmetic function of (one-bit) addition of two binary numbers (the two operands), but also is programmable by suitable control signals so as to perform logical operations, namely bitwise XNOR or NAND or NOR operations, on the two operands. When suitably inverting the operands or the result, it is then possible to implement any possible bitwise logical operations as well as arithmetic operations. Moreover, all these operations are intended to be performed such that all data (operands, carries (carry-ins/carry-outs), and results) are XOR-masked using time-variant OTP masks.
Compared to an OTP implementation using conventional standard cells, this means significantly higher computing speeds (by more than 100%) and significantly lower energy expenditure.
From this, it follows that the relationship between co*_n and a*, b* and ci* in
co*—n=
and, secondly, that the equation for s*_n in
Other values for xe1 and xe0 are not needed in this embodiment.
With the definition
y*=y⊕kp, (9)
(where kp denotes the mask bit for bit position p) for masked data, it follows from the covariance of the full adder equations under the masking operation, first of all, that the circuit specified in
As for the inverted sum bit s*_n, i.e., the equations (7) and (8), (7) represents the conventional (covariant) full adder equation for the inverted sum bit if ci* denotes the carry bit masked with kp of bit position p−1.
However, if it is provided that the carry-in bit ci* for bit position p is set to the inverse to mask bit kp (
Alternatively to equation (7), or to the ADD, and XNOR operations, as described above, the operations NAND and NOR can be implemented by (8). To this end, in addition to the conditions xe1=1, xe0=0 for the validity of (8), it should again be provided that the carry-in bit ci* for bit position p is equal to mask bit kp or to its inverse
The following table summarizes the generation of xe1, xe0 and ci*:
by means of an inverter (INVC 40), as well as the interconnection of the subcircuits 20, 30 shown in
All circuit elements included
This application is a continuation-in-part of application Ser. No. 11/501,305, filed Aug. 9, 2006, now U.S. Pat. No. 7,921,148 entitled STANDARD CELL FOR ARITHMETIC LOGIC UNIT AND CHIP CARD CONTROLLER, hereby incorporated by reference.
| Number | Name | Date | Kind |
|---|---|---|---|
| 6476634 | Bilski | Nov 2002 | B1 |
| 6973551 | Walton | Dec 2005 | B1 |
| 6995555 | Graf | Feb 2006 | B2 |
| 7034559 | Frankowsky et al. | Apr 2006 | B2 |
| 7921148 | Kuenemund | Apr 2011 | B2 |
| 20050036618 | Gammel et al. | Feb 2005 | A1 |
| Number | Date | Country |
|---|---|---|
| 1 008 033 | Jun 2000 | DE |
| 102 01 449 | Aug 2003 | DE |
| WO03060694 | Jul 2003 | WO |
| Number | Date | Country | |
|---|---|---|---|
| 20080040414 A1 | Feb 2008 | US |
| Number | Date | Country | |
|---|---|---|---|
| Parent | 11501305 | Aug 2006 | US |
| Child | 11890966 | US |