# US 2020/0396068 A1 · Protection of the execution of cipher algorithms

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

- Number: US 2020/0396068 A1
- Document ID: US20200396068A1
- Status: Published application
- Kind: A1
- Application number: 16/903,209
- Filed: 2020-06-16
- Published: 2020-12-17
- Earliest claimed: 2019-06-17
- Assignees: STMicroelectronics (Rousset) SAS
- Applicants: STMicroelectronics (Rousset) SAS
- Inventors: Thomas SARNO; Yanis LINGE
- Web page: https://patentgrep.com/patent/US20200396068A1

## CPC

- H04L 9/002: {Countermeasures against attacks on cryptographic mechanisms (network architectures or network communication protocols for protection against malicious traffic H04L63/1441)}
- H04L 9/0861: {Generation of secret information including derivation or calculation of cryptographic keys or passwords}
- H04L 9/0625: {with splitting of the data block into left and right halves, e.g. Feistel based algorithms, DES, FEAL, IDEA or KASUMI}
- H04L 9/0819: {Key transport or distribution, i.e. key establishment techniques where one party creates or otherwise obtains a secret value, and securely transfers it to the other(s) (network architectures or network communication protocols for key distribution in a packet data network H04L63/062)}
- H04L 9/0894: {Escrow, recovery or storing of secret information, e.g. secret key escrow or cryptographic key storage}
- H04L 9/06: the encryption apparatus using shift registers or memories for block-wise {or stream} coding, e.g. DES systems {or RC4; Hash functions; Pseudorandom sequence generators}
- H04L 2209/08: Randomization, e.g. dummy operations or using noise
- H04L: TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION (arrangements common to telegraphic and telephonic communication H04M)

## Abstract

Systems and methods for protecting secret or secure information involved in generation of ciphered data by circuitry. The circuitry includes data paths and key paths that operate to perform cipher operations to generate a plurality of key shares and a plurality of data shares using a key and data as input. The data and the key may be masked by at least one mask. The plurality of key shares may be generated using the key and a first mask. The plurality of data shares are generated using key shares, the data, and a second mask.

## Claims

### Claim 1

A method, comprising:
executing cryptographic operations to generate cryptographic information; and
protecting secret data associated with the cryptographic operations, the protecting including:
generating, by a first key path, a first plurality of key shares by performing block cipher operations involving a cryptographic key;
generating, by a second key path, a second plurality of key shares by performing block cipher operations involving a first mask;
generating, by a first data path, a first plurality of data shares by performing block cipher operations involving a data block and the first plurality of key shares; and
generating, by a second data path, a second plurality of data shares by performing block cipher operations involving a second mask and the second plurality of key shares.

### Claim 2 (depends on 1)

The method of claim 1, comprising:
generating the cryptographic information by combining one data share of the first plurality of data shares and one data share of the second plurality of data shares.

### Claim 3 (depends on 1)

The method of claim 1, wherein the cryptographic key is a masked cryptographic key generated using the first mask and an unmasked cryptographic key, and the data block is masked data generated using the second mask.

### Claim 4 (depends on 1)

The method of claim 1, comprising:
generating, by a third key path, a third plurality of key shares by performing block cipher operations involving a third mask; and
generating, by a third data path, a third plurality of data shares by performing block cipher operations involving a fourth mask and the third plurality of key shares.

### Claim 5 (depends on 4)

The method of claim 4, comprising:
generating the cryptographic information by combining one data share of the first plurality of data shares, one data share of the second plurality of data shares, and one data share of the third plurality of data shares.

### Claim 6 (depends on 1)

The method of claim 1, wherein generating the second plurality of key shares is performed subsequent to generating an initial key share of the first plurality of key shares.

### Claim 7 (depends on 6)

The method of claim 6, wherein generating an initial data share of the first plurality of data shares is performed subsequent to generating an initial key share of the second plurality of key shares.

### Claim 8 (depends on 6)

The method of claim 6, wherein generating an initial data share of the first plurality of data shares is performed subsequent to generating the initial key share of the first plurality of key shares.

### Claim 9 (depends on 1)

The method of claim 1, wherein one or more of the second plurality of key shares are generated in parallel with one or more of the first plurality of key shares.

### Claim 10 (depends on 9)

The method of claim 9, wherein one or more of the second plurality of data shares are generated in parallel with one or more of the first plurality of data shares.

### Claim 11 (depends on 1)

The method of claim 1, comprising:
performing, by the second key path in parallel with generating a key share of the first plurality of key shares by the first key path, a first dummy operation.

### Claim 12 (depends on 11)

The method of claim 11, comprising:
performing, by the second data path in parallel with generating a data share of the first plurality of data shares by the first data path, a second dummy operation.

### Claim 13 (depends on 1)

The method of claim 1, wherein the first plurality of key shares and the second plurality of key shares are generated by randomly selected key paths of the first key path and the second key path, and wherein the first plurality of data shares and the second plurality of data shares are generated by randomly selected data paths of the first data path and the second data path.

### Claim 14

A system, comprising:
memory; and
circuitry including a plurality of data paths and a plurality of key paths, the circuitry, in operation:
executes cryptographic operations to generate cryptographic information; and
protects secret data associated with the cryptographic operations, the circuitry configured, as part of protection of the secret data, to:
generate a first plurality of key shares by performing block cipher operations involving a masked cryptographic key;
generate a second plurality of key shares by performing block cipher operations involving a first mask;
generate a first plurality of data shares by performing block cipher operations involving masked data and the first plurality of key shares; and
generate a second plurality of data shares by performing block cipher operations involving a second mask and the second plurality of key shares.

### Claim 15 (depends on 14)

The system of claim 14, wherein the circuitry is configured to:
generate a third plurality of key shares by performing block cipher operations involving a third mask; and
generate a third plurality of data shares by performing block operations involving a fourth mask and the third plurality of key shares.

### Claim 16 (depends on 14)

The system of claim 14, wherein the first plurality of key shares and the second plurality of key shares are generated by randomly selected key paths of the plurality of key paths, and the first plurality of data shares and the second plurality of data shares are generated by randomly selected data paths of the plurality of data paths.

### Claim 17 (depends on 14)

The system of claim 14, wherein the first plurality of key shares, the second plurality of key shares, the first plurality of data shares, and the second plurality of data shares are generated via a plurality of block cipher operations, and wherein one or more individual paths of the circuitry are configured to perform a dummy operation in parallel with performance of a block cipher operation by at least one other path of the circuitry.

### Claim 18 (depends on 14)

The system of claim 14, wherein the first plurality of key shares are generated by a first key path of the plurality of key paths, the second plurality of key shares are generated by a second key path of the plurality of key paths, the first plurality of data shares are generated by a third data path of the plurality of data paths, and the second plurality of data shares are generated by a fourth data path of the plurality of data paths.

### Claim 19 (depends on 14)

The system of claim 14, wherein a first key share of the first plurality of key shares is generated in parallel with a second key share of the second plurality of key shares, and a first data share of the first plurality of data shares is generated in parallel with a second data share of the second plurality of data shares.

### Claim 20

A device, comprising:
processing circuitry including a plurality of key paths and a plurality of data paths; and
output circuitry configured to output ciphered data of a data block,
the plurality of key paths configured to operate in parallel to:
generate a plurality of key shares using a cryptographic key as input to a first plurality of iterative cipher operations and using a first mask as input to a second plurality of iterative cipher operations; and
the plurality of data paths configured to operate in parallel to:
generate a first plurality of data shares using the data block and a first key of the plurality of key shares as input to a third plurality of iterative cipher operations; and
generate a second plurality of data shares using a second mask and a second key the plurality of key shares as input to a fourth plurality of iterative cipher operations.

### Claim 21 (depends on 20)

The device of claim 20, wherein, for each cycle of iterative cipher operations in which one or more paths of the processing circuitry perform cipher operations, remaining paths of the processing circuitry perform dummy operations in parallel with performance of the cipher operations by one or more paths.

### Claim 22 (depends on 20)

The device of claim 20, wherein the first plurality of key shares and the second plurality of key shares are generated by randomly selected key paths of the plurality of key paths, and wherein the first plurality of data shares and the second plurality of data shares are generated by randomly selected data paths of the plurality of data paths.

### Claim 23 (depends on 20)

The device of claim 20, wherein the output circuitry is configured to combine one data share of the first plurality of data shares and one data share of the second plurality of data shares to generate the ciphered data.
