# US 2013/0159791 A1 · Method and device for fault detection

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

- Number: US 2013/0159791 A1
- Document ID: US20130159791A1
- Status: Published application
- Kind: A1
- Application number: 13/715,157
- Filed: 2012-12-14
- Published: 2013-06-20
- Earliest claimed: 2011-12-15
- Assignees: STMicroelectronics (Rousset) SAS; Proton World International N.V.
- Inventors: Fabrice Marinet; Jean-Louis Modave; Gilles Van Assche; Ronny Van Keer
- Web page: https://patentgrep.com/patent/US20130159791A1

## CPC

- G06F 11/079: {Root cause analysis, i.e. error or fault diagnosis (in a hardware test environment G06F11/22; in a software test environment G06F11/36)}
- G06F 11/006: {Identification (G06F11/2289 takes precedence)}
- G06F 11/073: {in a memory management context, e.g. virtual memory or cache management (memory management G06F12/00; testing of static memory units G11C29/00)}
- G06F 11/0751: {Error or fault detection not based on redundancy (power supply failures G06F1/30; network fault management H04L41/06)}
- G06F 21/554: {involving event detection and direct action}
- G06F 21/755: {with measures against power attack}
- G06F 2207/7219: Countermeasures against side channel or fault attacks
- G06F: ELECTRIC DIGITAL DATA PROCESSING (computer systems based on specific computational models G06N)

## Abstract

The disclosure concerns a method implemented by a processing device. The method includes performing a first execution by the processing device of a computing function based on one or more initial parameters stored in a first memory device. The execution of the computing function generates one or more modified values of at least one of the initial parameters, wherein during the first execution the one or more initial parameters are read from the first memory device and the one or more modified values are stored in a second memory device. The method also includes performing a second execution by the processing device of the computing function based on the one or more initial parameters stored in the first memory device.

## Claims

### Claim 1

A method implemented by a processing device, comprising:
performing a first execution by said processing device of a computing function based on one or more initial parameters stored in a first memory device, the first execution of said computing function generating one or more modified values of at least one of said initial parameters, wherein during said first execution said one or more initial parameters are read from said first memory device and said one or more modified values are stored in a second memory device;
performing a second execution by said processing device of said computing function based on said one or more initial parameters stored in said first memory device, the second execution of said computing function generating one or more second modified values; and
detecting an occurrence of a fault attack based on a difference between the one or more modified values generated during the first execution and the one or more second modified values generated during the second execution.

### Claim 2 (depends on 1)

The method of claim 1, wherein said one or more modified values are stored in said second memory device in response to a write operation targeting a memory address of said one or more initial parameters in said first memory device.

### Claim 3 (depends on 1)

The method of claim 1, wherein said one or more initial parameters are read from said first memory device during said first execution after searching said second memory device for modified values of said one or more initial parameters.

### Claim 4 (depends on 1)

The method of claim 1 wherein during said second execution said one or more initial parameters are read from said first memory device and said one or more second modified values are stored in said first memory device.

### Claim 5 (depends on 1)

The method of claim 1, further comprising:
before performing said first execution, storing said one or more initial parameters in said first memory device.

### Claim 6 (depends on 1)

The method of claim 1, further comprising, during said first execution of said computing function:
receiving by said second memory device a write instruction associated with a first address in said first memory device and with a first data value;
storing said first data value in said second memory device and storing said first address as an indexing value in said second memory device in association with said first data value;
receiving by said second memory device a read instruction associated with said first address;
locating said first data value in said second memory device based on said first address; and
outputting said first data value from said second memory device.

### Claim 7 (depends on 1)

The method of claim 1, further comprising:
comparing at least one value generated during said first execution of said computing function with at least one value generated during said second execution of said computing function.

### Claim 8 (depends on 7)

The method of claim 7 wherein said comparing operation comprises reading said at least one value generated during said first execution from said second memory device and reading said at least one value generated during said second execution from said first memory device.

### Claim 9 (depends on 1)

The method of claim 1, further comprising:
computing a first verification value based on a plurality of values generated by said first execution of said computing function;
computing a second verification value based on a plurality of values generated by said second execution of said computing function; and
comparing said first and second verification values.

### Claim 10 (depends on 9)

The method of claim 9 wherein said first verification value comprises a sum of said plurality of values generated by said first execution and said second verification value comprises a sum of said plurality of values generated by said second execution.

### Claim 11 (depends on 9)

The method of claim 9 wherein said first verification value is computed as a cyclic redundancy check based on said plurality of values generated by said first execution, and said second verification value is computed as a cyclic redundancy check based on said plurality of values generated by said second execution.

### Claim 12

A computing device comprising:
a processing device configured to perform first and second executions of a computing function based on one or more initial parameters, said computing function generating one or more modified values of at least one of said initial parameters;
a first memory device configured to store said at least one initial parameter; and
a second memory device coupled to said processing device and to said first memory device;
wherein said processing device is configured to read, during said first execution, said one or more initial parameters from said first memory device and to store, during said first execution, said one or more modified values in said second memory device.

### Claim 13 (depends on 12)

The computing device of claim 12 wherein said processing device is configured to store said one or more modified values in said second memory device in response to a write operation targeting a memory address of said one or more initial parameters in said first memory device.

### Claim 14 (depends on 12)

The computing device of claim 12 wherein, before reading said one or more initial parameters from said first memory device during said first execution, said processing device is configured to search said second memory device for modified values of said one or more initial parameters.

### Claim 15 (depends on 12)

The computing device of claim 12 wherein said processing device is configured to read, during said second execution, said one or more initial parameters from said first memory device and to store, during said second execution, said one or more modified values in said first memory device.

### Claim 16 (depends on 12)

The computing device of claim 12 wherein said second memory device comprises an enable input coupled to said processing device, and wherein said second memory device is configured to forward, when disabled, all write and read instructions to said first memory device.

### Claim 17 (depends on 12)

The computing device of claim 12 wherein said second memory device is configured to receive, during said second execution, read instructions from said processing device and to forward said read instructions to said first memory device if they relate to one of said initial parameters.

### Claim 18 (depends on 12)

The computing device of claim 12, further comprising:
a verification block adapted to compare at least one value generated during said first execution of said computing function with at least one value generated during said second execution of said computing function.

### Claim 19

A memory configured to store computing instructions, the computing instructions configured to direct a processor in a computing device to perform a method of detecting an occurrence of a fault attack, the method comprising:
storing at least one initial parameter in a first memory device;
reading the least one initial parameter from the first memory device;
executing a computing function a first time, the computing function arranged to direct execution based on the at least one initial parameter;
generating in the computing function at least one modified initial parameter;
storing the at least one modified initial parameter in a second memory device;
executing the computing function a second time, the computing function arranged to direct execution based on the at least one initial parameter;
generating in the computing function at least one second modified initial parameter; and
detecting an occurrence of a fault attack based on a difference between the at least one modified initial parameter generated during the first execution of the computing function and the at least one second modified initial parameter generated during the second execution of the computing function.

### Claim 20 (depends on 19)

The memory of claim 19 wherein the computing instructions are configured to direct the processor to perform the method, the method further comprising:
receiving by the second memory device a first instruction associated with a first address in the first memory device and with a first data value;
storing the first data value in the second memory device;
storing the first address as an indexing value in the second memory device in association with the first data value;
receiving by the second memory device a second instruction associated with the first address;
locating the first data value in the second memory device based on the first address; and
outputting the first data value from the second memory device.

### Claim 21 (depends on 19)

The memory of claim 19 wherein detecting the occurrence of the fault attack includes combining a plurality of modified initial parameters using a certain algorithm and combining a plurality of second modified initial parameters using the certain algorithm.

### Claim 22 (depends on 21)

The memory of claim 21 wherein the certain algorithm is a summation algorithm or a cyclic redundancy algorithm.

### Claim 23 (depends on 19)

The memory of claim 19 wherein storing the at least one initial parameter in the first memory device and storing the at least one modified initial parameter in the second memory device comprise storing the parameters in a single non-volatile memory device.

### Claim 24 (depends on 19)

The memory of claim 19 wherein the computing instructions are configured to direct the processor to perform the method, the method further comprising:
asserting a fault indication signal when an occurrence of a fault attack is detected.
