# US 2021/0281390 A1 · Substitute Box, Substitute Method and Apparatus Thereof

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

- Number: US 2021/0281390 A1
- Document ID: US20210281390A1
- Status: Published application
- Kind: A1
- Application number: 16/809,567
- Filed: 2020-03-05
- Published: 2021-09-09
- Earliest claimed: 2020-03-05
- Assignees: Novatek Microelectronics Corp.
- Applicants: NOVATEK Microelectronics Corp.
- Inventors: Wei Chiang; Hsi-Chia Chang; Chen-Yi Lee
- Web page: https://patentgrep.com/patent/US20210281390A1

## CPC

- H04L 9/003: {for power analysis, e.g. differential power analysis [DPA] or simple power analysis [SPA]}
- G06F 7/588: {Random number generators, i.e. based on natural stochastic processes}
- G06F 21/72: in cryptographic circuits
- G06F 21/755: {with measures against power attack}
- H04L 9/0618: {Block ciphers, i.e. encrypting groups of characters of a plain text message using fixed encryption transformation}
- H04L 9/0869: {involving random numbers or seeds}
- G06F 2207/7223: Randomisation as countermeasure against side channel attacks
- H04L 2209/08: Randomization, e.g. dummy operations or using noise
- H04L 2209/16: Obfuscation or hiding, e.g. involving white box
- 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 substitute box includes a target input terminal, an obfuscation input terminal, a first output terminal and a second output terminal. The target input terminal is configured to receive a target input data. The obfuscation input terminal is configured to receive an obfuscation input data unrelated to a plaintext. The first output terminal is configured to output a first output data. The second output terminal is configured to output a second output data associated with the first output data. The first output data and the second output data are generated according to both the target input data and the obfuscation input data.

## Claims

### Claim 1

A substitute box (Sbox), comprising:
a target input terminal, configured to receive a target input data;
an obfuscation input terminal, configured to receive an obfuscation input data unrelated to a plaintext;
a first output terminal, configured to output a first output data; and
a second output terminal, configured to output a second output data associated with the first output data, wherein the first output data and the second output data are generated according to both the target input data and the obfuscation input data.

### Claim 2 (depends on 1)

The substitute box of claim 1, further comprising:
a first logic circuit, coupled to the target input terminal, configured to perform an inverse operation on the target input data to generate an inversion data;
a second logic circuit, coupled to the first logic circuit and the obfuscation input terminal, configured to combine the inversion data with the obfuscation input data into a combination data; and
a third logic circuit, coupled to the second logic circuit and the obfuscation input terminal, configured to perform an affine operation on the obfuscation input data and the combination data to generate the first output data and the second output data.

### Claim 3 (depends on 2)

The substitute box of claim 2, wherein the inverse operation is performed according to Galois Field, wherein a generator polynomial of the inverse operation differs from x8+x7+x6+x5+x4+x2+1.

### Claim 4 (depends on 1)

The substitute box of claim 1, wherein the obfuscation input data is randomly generated from a random number generation circuit.

### Claim 5 (depends on 1)

The substitute box of claim 1, wherein the first output data and the second output data are randomized and associated with the plaintext or an encryption key.

### Claim 6 (depends on 1)

The substitute box of claim 1, wherein a number of bits in the target input data, a number of bits in the obfuscation input data, a number of bits in the first output data and a number of bits in the second output data are equal.

### Claim 7

An apparatus, comprising:
four substitute boxes, each of the four substitute boxes comprising:
a target input terminal, configured to receive one of four target input data;
an obfuscation input terminal, configured to receive one of four obfuscation input data unrelated to a plaintext;
a first output terminal, configured to output one of four first output data; and
a second output terminal, configured to output one of four second output data associated with the first output data, wherein the first output data and the second output data are generated according to both the target input data and the obfuscation input data.

### Claim 8 (depends on 7)

The apparatus of claim 7, wherein a first generator polynomial of a first substitute box of the four substitute boxes differs from a second generator polynomial of a second substitute box of the four substitute boxes.

### Claim 9 (depends on 7)

The apparatus of claim 7, wherein a first inverse operation or a first affine operation of a first substitute box of the four substitute boxes differs from a second inverse operation or a second affine operation of a second substitute box of the four substitute boxes.

### Claim 10 (depends on 7)

The apparatus of claim 7, further comprising:
a reordering circuit, coupled to the four substitute boxes, wherein an input data is divided into a first target input data, a second target input data, a third target input data, and a fourth target input data of the four target input data, wherein the reordering circuit is configured to reorder the four target input data and assign the four target input data to the four substitute boxes.

### Claim 11 (depends on 10)

The apparatus of claim 10, wherein the input data is randomized before divided into the four target input data.

### Claim 12 (depends on 10)

The apparatus of claim 10, further comprising:
a recovery circuit, coupled to the four substitute boxes, wherein the four target input data ordered in a first sequence are reordered in a second sequence by the reordering circuit, wherein the four first output data ordered in the second sequence are reordered in the first sequence by the recovery circuit, wherein the four second output data ordered in the second sequence are reordered in the first sequence by the recovery circuit.

### Claim 13 (depends on 7)

The apparatus of claim 7, wherein the four obfuscation input data are randomly generated from a random number generation circuit.

### Claim 14 (depends on 7)

The apparatus of claim 7, wherein the four first output data and the four second output data are randomized and associated with the plaintext or an encryption key.

### Claim 15

A substitute method, comprising:
receiving one of four target input data and one of four obfuscation input data unrelated to a plaintext; and
generating one of four first output data and one of four second output data associated with the first output data, wherein the first output data and the second output data are generated according to both the target input data and the obfuscation input data.

### Claim 16 (depends on 15)

The substitute method of claim 15, further comprising:
performing, at a first logic circuit, an inverse operation on the target input data to generate an inversion data, wherein a generator polynomial of the inverse operation differs from x8+x7+x6+x5+x4+x2+1;
combining, at a second logic circuit coupled to the first logic circuit, the inversion data with the obfuscation input data into a combination data; and
performing, at a third logic circuit coupled to the second logic circuit, an affine operation on the obfuscation input data and the combination data to generate the first output data and the second output data.

### Claim 17 (depends on 15)

The substitute method of claim 15, further comprising:
performing inverse operations on the four target input data to generate four inversion data respectively;
combining the four inversion data with the four obfuscation input data into four combination data respectively; and
performing affine operations on the four obfuscation input data and the four combination data to generate the four first output data and the four second output data respectively, wherein a first inverse operation or a first affine operation differs from a second inverse operation or a second affine operation.

### Claim 18 (depends on 15)

The substitute method of claim 15, further comprising:
reordering the four target input data and assigning the four target input data to four substitute boxes.

### Claim 19 (depends on 15)

The substitute method of claim 15, further comprising:
reordering the four target input data ordered in a first sequence in a second sequence;
reordering the four first output data ordered in the second sequence in the first sequence; and
reordering the four second output data ordered in the second sequence in the first sequence.

### Claim 20 (depends on 15)

The substitute method of claim 15, wherein the four first output data and the four second output data are randomized and associated with the plaintext or an encryption key.
