# US 2022/0286270 A1 · Fault attack resistant cryptographic systems and methods

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

- Number: US 2022/0286270 A1
- Document ID: US20220286270A1
- Status: Published application
- Kind: A1
- Application number: 17/824,912
- Filed: 2022-05-26
- Published: 2022-09-08
- Earliest claimed: 2018-10-09
- Assignees: Maxim Integrated Products, Inc.
- Applicants: Maxim Integrated Products, Inc.
- Inventors: Jeremy Dubeuf; Yann Yves Rene Loisel; Frank Lhermet
- Web page: https://patentgrep.com/patent/US20220286270A1

## CPC

- G06F 17/18: for evaluating statistical data {, e.g. average values, frequency distributions, probability functions, regression analysis (forecasting specially adapted for a specific administrative, business or logistic context G06Q10/04)}
- H04L 9/004: {for fault attacks}
- G06F 21/556: {involving covert channels, i.e. data leakage between processes (inhibiting the analysis of circuitry or operation with measures against power attack G06F21/755)}
- H04L 9/0861: {Generation of secret information including derivation or calculation of cryptographic keys or passwords}
- H04L 9/0869: {involving random numbers or seeds}
- G06F 7/588: {Random number generators, i.e. based on natural stochastic processes}
- H04L 2209/08: Randomization, e.g. dummy operations or using noise
- H04L 2209/12: Details relating to cryptographic hardware or logic circuitry
- G06F: ELECTRIC DIGITAL DATA PROCESSING (computer systems based on specific computational models G06N)
- H04L: TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION (arrangements common to telegraphic and telephonic communication H04M)

## Abstract

Described herein are systems and methods that prevent against fault injection attacks. In various embodiments this is accomplished by taking advantage of the fact that an attacker cannot utilize a result that has been faulted to recover a secret. By using infective computation, an error is propagated in a loop such that the faulted value will provide to the attacker no useful information or information from which useful information may be extracted. Faults from a fault attack will be so large that a relatively large number of bits will change. As a result, practically no secret information can be extracted by restoring bits.

## Claims

### Claim 1

A method for carrying out computations, the method comprising:
using a secret in a computation that outputs an expected number, the secret causes the computation to output an incorrect result in the event that the computation has been subject to one or more manipulations such that, in the event of an attack, no information is revealed from which confidential information may be extracted;
comparing the expected number to a number calculated by the computation;
based on the comparison, determining whether the computation is valid;
in response to the computation being invalid, generating an error indicating that the computation has been subject to the one or more manipulations; and
in response to the computation being valid, removing an effect of the secret from the expected number to output a correct result.

### Claim 2 (depends on 1)

The method according to claim 1, wherein the number calculated by the computation is calculated prior to calculating the expected number.

### Claim 3 (depends on 1)

The method according to claim 1, wherein the computation comprises an iteration of a loop.

### Claim 4 (depends on 3)

The method according to claim 3, wherein the one or more manipulations comprise reducing a number of iterations of the loop.

### Claim 5 (depends on 4)

The method according to claim 4, wherein the loop manipulates values related to the secret.

### Claim 6 (depends on 4)

The method according to claim 4, wherein the secret is derived from a random number.

### Claim 7 (depends on 6)

The method according to claim 6, wherein the random number is processed by one or more steps within the loop.

### Claim 8 (depends on 6)

The method according to claim 6, wherein the random number is injected at an initialization step outside of the loop.

### Claim 9 (depends on 6)

The method according to claim 6, wherein the random number is injected into an existing computation to facilitate infective computation.

### Claim 10 (depends on 9)

The method according to claim 9, wherein the infective computation causes the incorrect result to be greater than if the infective computation were not used.

### Claim 11

A non-transitory computer-readable medium or media comprising one or more sequences of instructions which, when executed by at least one processor, causes steps to be performed comprising:
using a secret in a computation that outputs an expected number, the secret causes the computation to output an incorrect result in the event that the computation has been subject to one or more manipulations such that, in the event of an attack, no information is revealed from which confidential information may be extracted;
comparing the expected number to a number calculated by the computation;
based on the comparison, determining whether the computation is valid;
in response to the computation being invalid, generating an error indicating that the computation has been subject to the one or more manipulations; and
in response to the computation being valid, removing an effect of the secret from the expected number to output a correct result.

### Claim 12 (depends on 1)

The non-transitory computer-readable medium or media of claim 1, wherein the number calculated by the computation is calculated prior to calculating the expected number.

### Claim 13 (depends on 11)

The non-transitory computer-readable medium or media of claim 11, wherein the computation comprises an iteration of a loop.

### Claim 14 (depends on 13)

The non-transitory computer-readable medium or media of claim 13, wherein the one or more manipulations comprise reducing a number of iterations of the loop.

### Claim 15 (depends on 13)

The non-transitory computer-readable medium or media of claim 13, wherein the loop manipulates values related to the secret.

### Claim 16 (depends on 13)

The non-transitory computer-readable medium or media of claim 13, wherein the secret is derived from a random number generated by a random number generator.

### Claim 17 (depends on 16)

The non-transitory computer-readable medium or media of claim 16, wherein the random number is processed by one or more steps within the loop.

### Claim 18 (depends on 16)

The non-transitory computer-readable medium or media of claim 16, wherein the random number is injected at an initialization step outside of the loop.

### Claim 19 (depends on 16)

The non-transitory computer-readable medium or media of claim 16, wherein the random number is injected into an existing computation to facilitate infective computation.

### Claim 20 (depends on 19)

The non-transitory computer-readable medium or media of claim 19, wherein the infective computation causes the incorrect result to be greater than if the infective computation were not used.
