# US 2021/0286902 A1 · Fault detection

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

- Number: US 2021/0286902 A1
- Document ID: US20210286902A1
- Status: Published application
- Kind: A1
- Application number: 17/199,279
- Filed: 2021-03-11
- Published: 2021-09-16
- Earliest claimed: 2020-03-16
- Assignees: STMicroelectronics (Rousset) SAS
- Applicants: Stmicroelectronics (Rousset) SAS
- Inventors: Yanis LINGE; Simon LANDRY
- Web page: https://patentgrep.com/patent/US20210286902A1

## CPC

- G06F 21/72: in cryptographic circuits
- G09C 1/00: Apparatus or methods whereby a given sequence of signs, e.g. an intelligible text, is transformed into an unintelligible sequence of signs by transposing the signs or groups of signs or by replacing them by others according to a predetermined system (cryptographic typewriters G09C3/00)
- H04L 9/003: {for power analysis, e.g. differential power analysis [DPA] or simple power analysis [SPA]}
- H04L 9/004: {for fault attacks}
- H04L 9/0618: {Block ciphers, i.e. encrypting groups of characters of a plain text message using fixed encryption transformation}
- H04L 2209/046: of operations, operands or results of the operations
- G06F: ELECTRIC DIGITAL DATA PROCESSING (computer systems based on specific computational models G06N)
- G09C: CIPHERING OR DECIPHERING APPARATUS FOR CRYPTOGRAPHIC OR OTHER PURPOSES INVOLVING THE NEED FOR SECRECY
- H04L: TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION (arrangements common to telegraphic and telephonic communication H04M)

## Abstract

The present disclosure relates to a method of fault detection in an application, by an electronic circuit, of a first function to a message, including the steps of generating, from the message, a non-zero even number N of different first sets, each including P shares; applying, to the P shares of each first set, one or a plurality of second functions delivering, for each first set, a second set including Q images; and cumulating all the images, starting with at most Q-1 images selected from among the Q images of a same second set.

## Claims

### Claim 1

A method, comprising:
applying, using a cryptographic circuit, an encryption function to a message; and
protecting the cryptographic circuit during the application of the encryption function to the message, the applying the encryption function and the protecting including:
generating, using the message, a non-zero even number of different sets of shares, each set of shares comprising a number P of shares, where P is an integer greater than or equal to 2;
applying one or more functions to each share of each set of shares, generating a plurality of sets of images, each set of images comprising a number Q of images, where Q is an integer greater than or equal to 2; and
accumulating the images of the sets of images, starting with at most Q-1 images selected from among the images of one of the sets of images.

### Claim 2 (depends on 1)

The method according to claim 1, wherein the generating the sets of shares comprises applying masks to the message.

### Claim 3 (depends on 2)

The method of claim 2, comprising randomly selecting masks to apply to the message.

### Claim 4 (depends on 2)

The method according to claim 2, wherein the applying a mask comprises performing an XOR operation.

### Claim 5 (depends on 1)

The method according to claim 1, wherein the accumulation comprises applying XOR operations.

### Claim 6 (depends on 1)

The method according to claim 1, wherein the encryption function is a linear transformation.

### Claim 7 (depends on 6)

The method according to claim 6, wherein each image of one of the sets of images is obtained by applying a same function to each share of a corresponding set of shares.

### Claim 8 (depends on 1)

The method according to claim 1, wherein the encryption function is a non-linear transformation.

### Claim 9 (depends on 8)

The method according to claim 8, wherein each image of one of the sets of images is obtained by applying a function, among a plurality of different functions, to at most P minus one shares of a corresponding set of shares.

### Claim 10 (depends on 1)

The method according to claim 1, comprising verifying whether a result of the accumulation of the images of the sets of images is zero.

### Claim 11 (depends on 1)

The method according to claim 1, wherein the function(s) are applied in a random order to shares of a set of shares.

### Claim 12

A device, comprising:
a memory; and
cryptographic circuitry coupled to the memory, wherein the cryptographic circuitry, in operation, applies an encryption function to a message, the applying the cryptographic function to the message including:
generating, using the message, a non-zero even number of different sets of shares, each set of shares comprising a number P of shares, where P is an integer greater than or equal to 2;
applying one or more functions to each share of each set of shares, generating a plurality of sets of images, each set of images comprising a number Q of images, where Q is an integer greater than or equal to 2; and
accumulating the images of the sets of images, starting with at most Q-1 images selected from among the images of one of the sets of images.

### Claim 13 (depends on 12)

The device of claim 12, wherein the encryption circuitry, in operation, generates the sets of shares by applying masks to the message.

### Claim 14 (depends on 12)

The device of claim 12, wherein encryption circuitry, in operation, applies XOR operations to accumulate the images.

### Claim 15 (depends on 1)

The device of claim 1, wherein the encryption function is a linear transformation.

### Claim 16 (depends on 15)

The device of claim 15, wherein the encryption circuitry, in operation, generates images of one of the sets of images by applying a same function to each share of a corresponding set of shares.

### Claim 17 (depends on 12)

The device of claim 12, wherein the encryption function is a non-linear transformation.

### Claim 18 (depends on 17)

The device of claim 17, wherein the encryption circuitry, in operation, generates images of one of the sets of images by applying a function, among a plurality of different functions, to at most P-1 shares of a corresponding set of shares.

### Claim 19 (depends on 12)

The device of claim 12, wherein the cryptographic circuitry, in operation, verifies whether a result of the accumulation of the images of the sets of images is zero.

### Claim 20 (depends on 12)

The device of claim 12, wherein the cryptographic circuitry, in operation, randomly applies functions of a set of functions to shares of a set of shares to generate images of a corresponding set of images.

### Claim 21 (depends on 12)

The device of claim 12, wherein the cryptographic circuitry, in operation, stores intermediate results of the accumulating in the memory.

### Claim 22

A system, comprising:
one or more interfaces; and
one or more processing cores coupled to the one or more interfaces, wherein the one or more processing cores include cryptographic circuitry, which, in operation,
generates, using a message, a non-zero even number of different sets of shares, each set of shares comprising a number P of shares, where P is an integer greater than or equal to 2;
applies one or more functions to each share of each set of shares, generating a plurality of sets of images, each set of images comprising a number Q of images, where Q is an integer greater than or equal to 2; and
accumulates the images of the sets of images, starting with at most Q-1 images selected from among the images of one of the sets of images.

### Claim 23 (depends on 22)

The system of claim 22, comprising an integrated circuit including the cryptographic circuitry.

### Claim 24 (depends on 22)

The system of claim 22, wherein the cryptographic circuitry, in operation, applies a linear transformation to the message.

### Claim 25

A non-transitory computer-readable medium having contents which configure cryptographic circuitry to perform a method, the method comprising:
applying an encryption function to a message; and
protecting the cryptographic circuitry during the application of the encryption function to the message, the applying the encryption function and the protecting including:
generating, using the message, a non-zero even number of different sets of shares, each set of shares comprising a number P of shares, where P is an integer greater than or equal to 2;
applying one or more functions to each share of each set of shares, generating a plurality of sets of images, each set of images comprising a number Q of images, where Q is an integer greater than or equal to 2; and
accumulating the images of the sets of images, starting with at most Q-1images selected from among the images of one of the sets of images.

### Claim 26 (depends on 25)

The non-transitory computer-readable medium of claim 25, wherein the encryption function is a linear transformation.

### Claim 27 (depends on 26)

The non-transitory computer-readable medium of claim 26, wherein each image of one of the sets of images is obtained by applying a same function to each share of a corresponding set of shares.

### Claim 28 (depends on 25)

The non-transitory computer-readable medium of claim 25, wherein the contents comprise instructions executed by the cryptographic circuitry.
