# US 10,277,393 B2 · System and method for one-time Chinese-Remainder-Theorem exponentiation for cryptographic algorythms

> Agents: this data is available as JSON from the patentgrep API and MCP server — see https://patentgrep.com/llms.txt

- Number: US 10,277,393 B2
- Document ID: US10277393B2
- Status: Granted
- Kind: B2
- Application number: 15/509,310
- Filed: 2015-08-31
- Published: 2017-09-07
- Granted: 2019-04-30
- Earliest claimed: 2014-09-10
- Assignees: Gemalto SA
- Applicants: Gemalto SA
- Inventors: David Vigilant
- Web page: https://patentgrep.com/patent/US10277393B2

## CPC

- H04L 9/004: {for fault attacks}
- G06F 7/556: Logarithmic or exponential functions
- G06F 7/723: {Modular exponentiation (G06F7/724, G06F7/727, G06F7/728 take precedence)}
- H04L 9/003: {for power analysis, e.g. differential power analysis [DPA] or simple power analysis [SPA]}
- H04L 9/302: {involving the integer factorization problem, e.g. RSA or quadratic sieve [QS] schemes}
- G06F 2207/7261: Uniform execution, e.g. avoiding jumps, or using formulae with the same power profile
- H04L: TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION (arrangements common to telegraphic and telephonic communication H04M)
- G06F: ELECTRIC DIGITAL DATA PROCESSING (computer systems based on specific computational models G06N)

## Abstract

A system, method and computer-readable storage medium with instructions for protecting an electronic device against fault attack. The technology includes operating the electronic device to determine two half-size exponents, dp and dq, from the exponent d; to split the base m into two sub-bases mp and mq determined from the base m; and to iteratively compute a decryption result S by repeatedly multiplying an accumulator A by m, mp, mq or 1 depending on the values of the i-th bit of dp and dq for each iteration I′. Other systems and methods are disclosed.

## Claims

### Claim 1

A method for operating a cryptography apparatus to perform a decryption operation having an exponentiation operation X, the method protecting the apparatus from revealing information in regard to the exponentiation operation X when the operation is exposed to a fault attack while being executed on the cryptography apparatus, the method comprising producing a result equivalent to the exponentiation by:
receiving, on the cryptography apparatus, a message m on which to perform a cryptographic operation equivalent to the exponentiation operation S=md mod n;
determining two half-size exponents dp and dq from the exponent d;
splitting the base m into two sub-bases mp and mq determined from the base m;
iteratively computing S by repeatedly multiplying an accumulator A by m, mp, mq or 1 depending on the values of the i-th bit of dp and dq for each iteration i;
returning as the value S the final value of the accumulator A; and completing the cryptographic operation using the value S obtained from the operation.

### Claim 2 (depends on 1)

The method of claim 1 wherein the two half-sized exponents dp and dq are determined from dp=d mod (p−1)and dq=d mod (q−1) where p and q are prime numbers such that n=pq.

### Claim 3 (depends on 1)

The method of claim 1 wherein:
mp=1+q*iq*(m−1)mod n; and
mq=1+(1−q*iq)*(m−1)mod n wherein
iq=q−1 mod p.

### Claim 4 (depends on 1)

The method of claim 1 wherein dp and dq have bits indexed from 0 to k and the iteration is an iteration from 0 to k performing the calculations:
A=A*A mod n
IF (dpi=0 && dqi 0)
A=A*1 mod n
IF (dpi=1&& dqi 0)
A=A*mp mod n
IF (dpi=0 && dqi 1)
A=A*mq mod n
IF (dpi=1 && dqi 1)
A=A*m mod n.

### Claim 5 (depends on 2)

The method of claim 2 wherein:
mp=1+q*iq*(m−1)mod n; and
mq=1+(1−q*iq)*(m−1)mod n wherein
iq=q−1 mod p.

### Claim 6 (depends on 2)

The method of claim 2 wherein dp and dq have bits indexed from 0 to k and the iteration is an iteration from 0 to k performing the calculations:
A=A*A mod n
IF (dpi=0 && dqi 0)
A=A*1 mod n
IF (dpi=1 && dqi 0)
A=A*mp mod n
IF (dpi=0 && dqi 1)
A=A*mq mod n
IF (dpi=1 && dqi 1)
A=A*m mod n.

### Claim 7 (depends on 3)

The method of claim 3 wherein dp and dq have bits indexed from 0 to k and the iteration is an iteration from 0 to k performing the calculations:
A=A*A mod n
IF (dpi=0 && dqi 0)
A=A*1 mod n
IF (dpi=1 && dqi 0)
A=A*mp mod n
IF (dpi=0 && dqi 1)
A=A*mq mod n
IF (dpi=1 && dqi 1)
A=A*m mod n.

### Claim 8 (depends on 5)

The method of claim 5 wherein dp and dq have bits indexed from 0 to k and the iteration is an iteration from 0 to k performing the calculations:
A=A*A mod n
IF (dpi=0 && dqi 0)
A=A*1 mod n
IF (dpi=1 && dqi 0)
A=A*mp mod n
IF (dpi=0 && dqi 1)
A=A*mq mod n
IF (dpi=1 && dqi 1)
A=A*m mod n.

### Claim 9

An electronic device protected from fault attack and comprising:
a central processing unit, memory, and an instruction storage wherein the instruction storage contains instructions to cause the central processing unit to perform:
receiving, on by the central processing unit of the electronic device, a message m on which to perform a cryptographic operation equivalent to the exponentiation operation S=md mod n;
determining two half-size exponents dp and dq from the exponent d;
splitting the base m into two sub-bases mp and mq determined from the base m;
iteratively computing S by repeatedly multiplying an accumulator A by m, mp, mq or 1 depending on the values of the i-th bit of dp and dq for each iteration i;
returning as the value S the final value of the accumulator A; and completing the cryptographic operation using the value S obtained from the operation.

### Claim 10 (depends on 9)

The electronic device protected from fault attack of claim 9, wherein the two half-sized exponents dp and dq are determined from dp=d mod (p−1) and dq=d mod (q−1) where p and q are prime numbers such that n=pq.

### Claim 11 (depends on 9)

The electronic device protected from fault attack of claim 9, wherein:
mp=1+q*iq*(m−1)mod n; and
mq=1+(1−q*iq)*(m−1)mod n wherein
iq=q−1 mod p.

### Claim 12 (depends on 10)

The electronic device protected from fault attack of claim 10, wherein:
mp=1+q*iq*(m−1)mod n; and
mq=1+(1−q*iq)*(m−1)mod n wherein
iq=q−1 mod p.

### Claim 13 (depends on 9)

The electronic device protected from fault attack of claim 9, wherein dp and dq have bits indexed from 0 to k and the iteration is an iteration from 0 to k performing the calculations:
A=A*A mod n
IF (dpi=0 && dqi 0)
A=A*1 mod n
IF (dpi=1 && dqi 0)
A=A*mp mod n
IF (dpi=0 && dqi 1)
A=A*mq mod n
IF (dpi=1 && dqi 1)
A=A*m mod n.

### Claim 14 (depends on 10)

The electronic device protected from fault attack of claim 10, wherein dp and dq have bits indexed from 0 to k and the iteration is an iteration from 0 to k performing the calculations:
A=A*A mod n
IF (dpi=0 && dqi 0)
A=A*1 mod n
IF (dpi=1 && dqi 0)
A=A*mp mod n
IF (dpi=0 && dqi 1)
A=A*mq mod n
IF (dpi=1 && dqi 1)
A=A*m mod n.

### Claim 15 (depends on 11)

The electronic device protected from fault attack of claim 11, wherein dp and dq have bits indexed from 0 to k and the iteration is an iteration from 0 to k performing the calculations:
A=A*A mod n
IF (dpi=0 && dqi 0)
A=A*1 mod n
IF (dpi=1 && dqi 0)
A=A*mp mod n
IF (dpi=0 && dqi 1)
A=A*mq mod n
IF (dpi=1 && dqi 1)
A=A*m mod n.

### Claim 16 (depends on 12)

The electronic device protected from fault attack of claim 12, wherein dp and dq have bits indexed from 0 to k and the iteration is an iteration from 0 to k performing the calculations:
A=A*A mod n
IF (dpi=0 && dqi 0)
A=A*1 mod n
IF (dpi=1 && dqi 0)
A=A*mp mod n
IF (dpi=0 && dqi 1)
A=A*mq mod n
IF (dpi=1 && dqi 1)
A=A*m mod n.
