# US 2024/0411937 A1 · Securely executing on a public computer code that operates on encrypted data based on one contiguous stage of linear 3-bit gates and a different stage of non-linear gates

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

- Number: US 2024/0411937 A1
- Document ID: US20240411937A1
- Status: Published application
- Kind: A1
- Application number: 18/703,394
- Filed: 2022-11-01
- Published: 2024-12-12
- Earliest claimed: 2021-11-01
- Assignees: USEncryption Inc.
- Applicants: USEncryption Inc.
- Inventors: Claudio CHAMON; Jonathan JAKES-SCHAUER; Andrei RUCKENSTEIN
- Web page: https://patentgrep.com/patent/US20240411937A1

## CPC

- 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/75: by inhibiting the analysis of circuitry or operation
- H04L 9/008: {involving homomorphic encryption}
- H04L 9/0894: {Escrow, recovery or storing of secret information, e.g. secret key escrow or cryptographic key storage}
- G06F: ELECTRIC DIGITAL DATA PROCESSING (computer systems based on specific computational models G06N)
- H04L: TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION (arrangements common to telegraphic and telephonic communication H04M)

## Abstract

Data is encrypted using only first and second stages of only 3-bit gates, that are linear, and non-linear, respectively. Each 3-bit gate for a function is conjugated by the first stage, i.e., straddled with the first stage and its inverse, to form a set of gates that are replaced using a finite set of substitution rules to form an ordered set of daughter gates. The daughter gates are conjugated by the second stage to form for each output bit of each layer of a daughter gate, a binary decision diagram (BDD). A module chip is formed by combining all BDDs for each daughter gate. The obfuscated module is configured by combining the module chips. The obfuscated module is sent to an unsecured device for execution thereon.

## Claims

### Claim 1

A method operating on a first processor comprising:
a. configuring a permutation encryption module for n-bit words comprising only a first stage that can be decomposed into only linear 3-bit gates and a second stage that can be decomposed into k-bit gates including at least one non-linear k-bit gate, wherein k is not less than 3;
b. receiving first data that indicates a first function to be implemented as a first obfuscated module operating on and producing only encrypted data formed according to the permutation encryption module;
c. configuring the first obfuscated module by
determining a first plurality of 3-bit gates that implement the first function,
straddling each gate in the first plurality with the first stage in reverse order and the first stage to form a linear expanded set of gates,
replacing the linear expanded set of gates using a finite set of substitution rules to form an ordered set of daughter gates,
concatenating the ordered set of daughter gates produced for each gate in the first plurality,
straddling each gate in the concatenated ordered set of daughter gates with the second stage in reverse order and the second stage to form a non-linear expanded set of gates for each daughter gate,
for each output bit of the non-linear expanded set of gates for each daughter gate, forming a binary decision diagram (BDD) that indicates a value based on 3 or more input bits of the non-linear expanded set of gates for each daughter gate,
generating a module chip by combining all BDDs, and
configuring the first obfuscated module by including the module chip; and
d. sending to an unsecured device the first obfuscated module for execution by the unsecured device.

### Claim 2 (depends on 1)

The method as recited in claim 1, said configuring the first obfuscated module further comprising for the linear expanded set for each daughter gate, collect successively each layer of contiguous gates that can be operated in parallel in the second stage, wherein:
said forming a binary decision tree (BDD) further comprises forming a BDD for each bit in each layer; and
said generating a module chip by combining all BDDs further comprises generating a module chip by combining all BDDs for all layers of the non-linear expanded set for each daughter gate; and
said configuring the first obfuscated module further comprises including the module chip for each daughter gate.

### Claim 3 (depends on 1)

The method as recited in claim 1, wherein the first stage comprises only one or more of 144 inflationary linear 3-bit gates.

### Claim 4 (depends on 3)

The method as recited in claim 3, wherein each inflationary linear 3-bit gate in the first stage is decomposed into a set of three or four 2-bit CNOT gates.

### Claim 5 (depends on 2)

The method as recited in claim 2, wherein the number of layers in the second stage is on the order of log3 n.

### Claim 6 (depends on 1)

The method as recited in claim 1, wherein. the first stage comprises separate layers each layer comprising only a set of contiguous gates that do not repeat any input bit of an n-bit word input to the layer.

### Claim 7 (depends on 6)

The method as recited in claim 6, wherein the number of layers in the first stage is on the order of log2 n.

### Claim 8 (depends on 2)

The method as recited in claim 2, said configuring the first obfuscated module further comprises inserting logical identities as a complimentary pair of sets of one or more logic gates, each set, respectively, into corresponding randomly chosen bits of successive levels of iteration through the layers of the second stage.

### Claim 9 (depends on 8)

The method as recited in claim 8, said inserting logical identities includes adding a NOT gate to one output bit of the non-linear expanded bits of one daughter gate and adding a second NOT gate at a corresponding input bit of the non-linear expanded bits of a successive daughter gate.

### Claim 10 (depends on 1)

The method as recited in claim 1, further comprising repeating steps b, c and d for a second different function to be implemented as a second obfuscated module operating on and producing only encrypted data formed according to the permutation encryption module.

### Claim 11

A non-transitory computer-readable medium carrying one or more sequences of instructions, wherein execution of the one or more sequences of instructions by a first set of one or more processors causes the first set of one or more processors to:
a. configure a permutation encryption module for n-bit words comprising only a first stage that can be decomposed into only linear 3-bit gates and a second stage that can be decomposed into k-bit gates including at least one non-linear 3-bit gate, wherein k is not less than 3;
b. receive first data that indicates a first function to be implemented as a first obfuscated module operating on and producing only encrypted data formed according to the permutation encryption module;
c. configure the first obfuscated module by
determining a first plurality of 3-bit gates that implement the first function,
straddling each gate in the first plurality with the first stage in reverse order and the first stage to form a linear expanded set of gates,
replacing the linear expanded set of gates using a finite set of substitution rules to form an ordered set of daughter gates,
concatenating the ordered set of daughter gates produced for each gate in the first plurality,
straddling each gate in the concatenated ordered set of daughter gates with the second stage in reverse order and the second stage to form a non-linear expanded set of gates for each daughter gate,
for each output bit of the non-linear expanded set of gates for each daughter gate, forming a binary decision diagram (BDD) that indicates a value based on 3 or more input bits of the non-linear expanded set of gates for each daughter gate,
generating a module chip by combining all BDDs, and
configuring the first obfuscated module by including the module chip; and
d. send to an unsecured device the first obfuscated module for execution by the unsecured device

### Claim 12 (depends on 11)

The computer-readable medium as recited in claim 11, to configure the first obfuscated module further comprising for the linear expanded set for each daughter gate, collect successively each layer of contiguous gates that can be operated in parallel in the second stage, wherein:
said forming a binary decision tree (BDD) further comprises forming a BDD for each bit in each layer; and
said generating a module chip by combining all BDDs further comprises generating a module chip by combining all BDDs for all layers of the non-linear expanded set for each daughter gate; and
said configuring the first obfuscated module further comprises including the module chip for each daughter gate.

### Claim 13 (depends on 11)

The computer-readable medium as recited in claim 11, wherein the first stage comprises only one or more of 144 inflationary linear 3-bit gates.

### Claim 14 (depends on 13)

The computer-readable medium as recited in claim 13, wherein each inflationary linear 3-bit gate in the first stage is decomposed into a set of three or four 2-bit CNOT gates.

### Claim 15 (depends on 12)

The computer-readable medium as recited in claim 12, wherein the number of layers in the second stage is on the order of log3 n.

### Claim 16 (depends on 11)

The computer-readable medium as recited in claim 11, wherein. the first stage comprises separate layers each layer comprising only a set of contiguous gates that do not repeat any input bit of an n-bit word input to the layer.

### Claim 17 (depends on 16)

The computer-readable medium as recited in claim 16, wherein the number of layers in the first stage is on the order of log2 n.

### Claim 18 (depends on 12)

The computer-readable medium as recited in claim 12, to configure the first obfuscated module further comprises to insert logical identities as a complimentary pair of sets of one or more logic gates, each set, respectively, into corresponding randomly chosen bits of successive levels of iteration through the layers of the second stage.

### Claim 19 (depends on 18)

The computer-readable medium as recited in claim 18, said to insert logical identities includes adding a NOT gate to one output bit of the non-linear expanded bits of one daughter gate and adding a second NOT gate to a successive layer of the second stage at a corresponding input bit of the non-linear expanded bits of a successive daughter gate.

### Claim 20 (depends on 11)

The computer-readable medium as recited in claim 11, the execution of the one or more sequences of instructions further causes the apparatus to repeating steps b, c and d for a second different function to be implemented as a second obfuscated module operating on and producing only encrypted data formed according to the permutation encryption module.

### Claim 21

A system comprising:
a first set of at least one processor; and
at least one memory including one or more sequences of instructions,
the at least one memory and the one or more sequences of instructions configured to, with the at least one processor, cause an apparatus to
a. configure a permutation encryption module for n-bit words comprising only a first stage that can be decomposed into only linear 3-bit gates and a second stage that can be decomposed into k-bit gates including at least one non-linear k-bit gate wherein k is not less than 3;
b. receive first data that indicates a first function to be implemented as a first obfuscated module operating on and producing only encrypted data formed according to the permutation encryption module;
c. configure the first obfuscated module by
determining a first plurality of 3-bit gates that implement the first function,
straddling each gate in the first plurality with the first stage in reverse order and the first stage to form a linear expanded set of gates,
replacing the linear expanded set of gates using a finite set of substitution rules to form an ordered set of daughter gates,
concatenating the ordered set of daughter gates produced for each gate in the first plurality,
straddling each gate in the concatenated ordered set of daughter gates with the second stage in reverse order and the second stage to form a non-linear expanded set of gates for each daughter gate,
for each output bit of non-linear expanded set of gates for each daughter gate, forming a binary decision diagram (BDD) that indicates a value based on 3 or more input bits of the non-linear expanded set of gates for each daughter gate,
generating a module chip by combining all BDDs, and
configuring the first obfuscated module by including the module chip; and
d. send to an unsecured device the first obfuscated module for execution by the unsecured device.

### Claim 22 (depends on 21)

The system as recited in claim 21, to configure the first obfuscated module further comprising for the linear expanded set for each daughter gate, collect successively each layer of contiguous gates that can be operated in parallel in the second stage, wherein:
said forming a binary decision tree (BDD) further comprises forming a BDD for each bit in each layer; and
said generating a module chip by combining all BDDs further comprises generating a module chip by combining all BDDs for all layers of the non-linear expanded set for each daughter gate; and
said configuring the first obfuscated module further comprises including the module chip for each daughter gate.

### Claim 23 (depends on 21)

The system as recited in claim 21, wherein the first stage comprises only one or more of 144 inflationary linear 3-bit gates.

### Claim 24 (depends on 23)

The system as recited in claim 23, wherein each inflationary linear 3-bit gate in the first stage is decomposed into a set of three or four 2-bit CNOT gates.

### Claim 25 (depends on 22)

The system as recited in claim 22, wherein the number of layers in the second stage is on the order of log3 n.

### Claim 26 (depends on 21)

The system as recited in claim 21, wherein. the first stage comprises separate layers each layer comprising only a set of contiguous gates that do not repeat any input bit of an n-bit word input to the layer.

### Claim 27 (depends on 26)

The system as recited in claim 26, wherein the number of layers in the first stage is on the order of log2 n.

### Claim 28 (depends on 22)

The system as recited in claim 22, to configure the first obfuscated module further comprises to insert logical identities as a complimentary pair of sets of one or more logic gates, each set, respectively, into corresponding randomly chosen bits of successive levels of iteration through the layers of the second stage.

### Claim 29 (depends on 28)

The system as recited in claim 28, said to insert logical identities includes adding a NOT gate to one output bit of the non-linear expanded bits of one daughter gate and adding a second NOT gate at a corresponding input bit of the non-linear expanded bits of a successive daughter gate.

### Claim 30 (depends on 21)

The system as recited in claim 21, the execution of the one or more sequences of instructions further causes the apparatus to repeating steps b, c and d for a second different function to be implemented as a second obfuscated module operating on and producing only encrypted data formed according to the permutation encryption module.
