# US 2020/0403771 A1 · Encryption engine having randomized round scheduling to prevent side channel attacks

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

- Number: US 2020/0403771 A1
- Document ID: US20200403771A1
- Status: Published application
- Kind: A1
- Application number: 16/446,187
- Filed: 2019-06-19
- Published: 2020-12-24
- Earliest claimed: 2019-06-19
- Assignees: Facebook Technologies, LLC
- Applicants: Facebook Technologies, LLC
- Inventors: Sudhir Satpathy
- Web page: https://patentgrep.com/patent/US20200403771A1

## CPC

- H04L 9/003: {for power analysis, e.g. differential power analysis [DPA] or simple power analysis [SPA]}
- G06F 3/14: Digital output to display device {; Cooperation and interconnection of the display device with other functional units}
- G06F 21/76: in application-specific integrated circuits [ASIC] or field-programmable devices, e.g. field-programmable gate arrays [FPGA] or programmable logic devices [PLD]
- H04L 9/0631: {Substitution permutation network [SPN], i.e. cipher composed of a number of stages or rounds each involving linear and nonlinear transformations, e.g. AES algorithms}
- G06F 21/755: {with measures against power attack}
- 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

In general, this disclosure describes encryption engines that shuffle data segments during decryption. By shuffling the data and using the resulting random permutation for decryption, the engines of this disclosure obfuscate hardware performance information that attackers might access and use in a side channel attack. In one example, an apparatus includes a decryption engine configured to select, for each round of multiple rounds for decrypting the block of encrypted data, a permutation of inputs to the decryption engine from multiple permutations of the inputs. The inputs include encrypted data segments of the block of encrypted data and an inverse cipher key segment, and the selected permutation of the inputs is different for at least two of the rounds. The decryption engine is further configured to iteratively compute a decrypted data segment across the plurality of rounds based on the respective selected permutation of the inputs for each round.

## Claims

### Claim at position 1

1: An artificial reality system comprising:
a decryption engine configured to:
for each round of a plurality of rounds for decrypting a block of encrypted data, select a permutation of inputs to the decryption engine from a plurality of permutations of the inputs, wherein the inputs include encrypted data segments of the block of encrypted data and an inverse cipher key segment, and wherein the selected permutation of the inputs is different for at least two rounds of the plurality of rounds; and
iteratively compute a portion of a decrypted block of data across the plurality of rounds based on the respective selected permutation of the inputs for each round to form a decrypted data segment; and
a head-mounted display (HMID) configured to output artificial reality content that includes the decrypted data segment.

### Claim at position 2 (depends on 1)

2: The artificial reality system of claim 1, wherein to select the permutation of the inputs for a respective round of the plurality of rounds, the decryption engine is configured to:
generate a random number for the respective round; and
select the permutation of the inputs based on the random number being associated with the selected permutation of the inputs.

### Claim at position 3 (depends on 2)

3: The artificial reality system of claim 2, wherein the decryption engine is further configured to, for each round of the plurality of rounds, randomly select the inverse cipher key segment based on the random number being associated with the randomly-selected inverse cipher key segment.

### Claim at position 4 (depends on 1)

4: The artificial reality system of claim 1, wherein to iteratively compute the portion of the decrypted block of data across the plurality of rounds, the decryption engine is configured to, for each respective round of the plurality of rounds, add the encrypted data segments to the inverse cipher key segment.

### Claim at position 5 (depends on 1)

5: The artificial reality system of claim 1, wherein a number of the encrypted data segments included in each respective permutation of the inputs selected from the plurality of permutations of the inputs is four.

### Claim at position 6 (depends on 1)

6: The artificial reality system of claim 1, wherein the plurality of rounds for decrypting the block of encrypted data comprises ten rounds, and wherein the encrypted block of data has a length of sixteen bytes.

### Claim at position 7 (depends on 6)

7: The artificial reality system of claim 6, wherein each respective encrypted data segment included in each respective permutation of the inputs has a length of four bytes.

### Claim at position 8 (depends on 1)

8: The artificial reality system of claim 1, wherein the decryption engine is integrated into the HMD.

### Claim at position 9

9: An apparatus for data decryption, the apparatus comprising:
an interface configured to receive an encrypted block of data; and
a decryption engine in communication with the interface, the decryption engine being configured to:
for each round of a plurality of rounds for decrypting the block of encrypted data, select a permutation of inputs to the decryption engine from a plurality of permutations of the inputs, wherein the inputs include encrypted data segments of the block of encrypted data and an inverse cipher key segment, and wherein the selected permutation of the inputs is different for at least two rounds of the plurality of rounds; and
iteratively compute a portion of a decrypted block of data across the plurality of rounds based on the respective selected permutation of the inputs for each round to form a decrypted data segment.

### Claim at position 10 (depends on 9)

10: The apparatus of claim 9, wherein to select the permutation of the inputs for a respective round of the plurality of rounds, the decryption engine is configured to:
generate a random number for the respective round; and
select the permutation of the inputs based on the random number being associated with the selected permutation of the inputs.

### Claim at position 11 (depends on 10)

11: The apparatus of claim 10, wherein the decryption engine is further configured to, for each round of the plurality of rounds, randomly select the inverse cipher key segment based on the random number being associated with the randomly-selected inverse cipher key segment.

### Claim at position 12 (depends on 9)

12: The apparatus of claim 9, wherein to iteratively compute the portion of the decrypted block of data across the plurality of rounds, the decryption engine is configured to, for each respective round of the plurality of rounds, add the encrypted data segments to the inverse cipher key segment.

### Claim at position 13 (depends on 9)

13: The apparatus of claim 9, wherein a number of the encrypted data segments included in each respective permutation of the inputs selected from the plurality of permutations of the inputs is four.

### Claim at position 14 (depends on 9)

14: The apparatus of claim 9, wherein the plurality of rounds for decrypting the block of encrypted data comprises ten rounds, and wherein the encrypted block of data has a length of sixteen bytes.

### Claim at position 15 (depends on 14)

15: The apparatus of claim 14, wherein each respective encrypted data segment included in each respective permutation of the inputs has a length of four bytes.

### Claim at position 16 (depends on 9)

16: The apparatus of claim 9, wherein the apparatus is a system on a chip (SoC).

### Claim at position 17 (depends on 16)

17: The apparatus of claim 16, wherein the SoC is configured to support an artificial reality application.

### Claim at position 18

18: A method of decrypting encrypted data, the method comprising:
selecting, for each round of a plurality of rounds for decrypting a block of encrypted data, by a decryption engine, a permutation of inputs to the decryption engine from a plurality of permutations of the inputs, wherein the inputs include encrypted data segments of the block of encrypted data and an inverse cipher key segment, and wherein the selected permutation of the inputs is different for at least two rounds of the plurality of rounds; and
iteratively computing, by the decryption engine, a portion of a decrypted block of data across the plurality of rounds based on the respective selected permutation of the inputs for each round to form a decrypted data segment.

### Claim at position 19 (depends on 18)

19: The method of claim 18, wherein selecting the permutation of the inputs for a respective round of the plurality of rounds comprises:
generating, by the decryption engine, a random number for the respective round; and
selecting, by the decryption engine, the permutation of the inputs based on the random number being associated with the selected permutation of the inputs.

### Claim at position 20 (depends on 19)

20: The method of claim 19, further comprising randomly selecting, for each round of the plurality of rounds, the inverse cipher key segment based on the random number being associated with the randomly-selected inverse cipher key segment.

### Claim at position 21

21: An artificial reality system comprising:
an encryption engine configured to:
for each round of a plurality of rounds for encrypting a block of input data, select a permutation of inputs to the encryption engine from a plurality of permutations of the inputs, wherein the inputs include data segments of the block of input data and a cipher key segment, and wherein the selected permutation of the inputs is different for at least two rounds of the plurality of rounds; and
iteratively compute an encrypted block of data across the plurality of rounds based on the respective selected permutation of the inputs for each round to form an encrypted data segment; and
a head-mounted display (HMID) configured to output the encrypted data segment.
