# US 2020/0394287 A1 · Techniques for securely executing code that operates on encrypted data on a public computer

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

- Number: US 2020/0394287 A1
- Document ID: US20200394287A1
- Status: Published application
- Kind: A1
- Application number: 16/955,276
- Filed: 2018-12-17
- Published: 2020-12-17
- Earliest claimed: 2017-12-18
- Assignees: University of Central Florida Research Foundation, Inc.; Trustees of Boston University
- Applicants: University of Central Florida Research Foundation, Inc.; Trustees of Boston University
- Inventors: Eduardo MUCCIOLO; Claudio CHAMON
- Web page: https://patentgrep.com/patent/US20200394287A1

## CPC

- G06F 21/14: against software analysis or reverse engineering, e.g. by obfuscation
- G06F 21/12: Protecting executable software
- G06N 5/01: Dynamic search techniques; Heuristics; Dynamic trees; Branch-and-bound
- 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/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 9/0618: {Block ciphers, i.e. encrypting groups of characters of a plain text message using fixed encryption transformation}
- 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 2221/033: Test or assess software
- H04L 2209/16: Obfuscation or hiding, e.g. involving white box
- G06F: ELECTRIC DIGITAL DATA PROCESSING (computer systems based on specific computational models G06N)
- G06N: COMPUTING ARRANGEMENTS BASED ON SPECIFIC COMPUTATIONAL MODELS
- 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

Techniques, for secure processing of encrypted data on public resources, include receiving first data indicating a sequence of reversible q-bit gates including a first segment for decrypting, a second segment for operating on the decrypted data, and a third segment for encrypting the resulting data. Second data indicates rules for replacing a first sequence of two gates operating on at least one shared bit of an input N-bit word with a different second sequence of one or more gates that produce the same output N-bit word. The second data is used to propagate: a gate from the first segment a distance into the second segment or beyond; and, a gate from the third segment a distance into the second segment or before. This produces an obfuscated sequence of reversible gates. Obfuscated instructions based on the obfuscated sequence of gates are sent to the public resources.

## Claims

### Claim 1

A method operating on a first processor comprising:
receiving first data indicating a sequence of reversible q-bit gates including a first segment for decrypting permutation encrypted data to produce decrypted data, a second segment for operating on the decrypted data to produce one or more resulting decrypted data, and a third segment for encrypting the resulting decrypted data using permutation encryption to produce permutation encrypted resulting data;
storing on a computer-readable medium second data that indicates rules for replacing a first sequence of two q-bit gates operating on at least one shared bit of an input N-bit word with a different second sequence of one or more q-bit gates that produce the same output N-bit word;
using the second data to propagate at least one q-bit gate from the first segment to a number J of gates distance into the q-bit gates for the second segment or beyond and at least one q-bit gate from the third segment to a number K of gates distance into the q-bit gates for the second segment or before to produce an obfuscated sequence of reversible q-bit gates;
sending obfuscated instructions based on the obfuscated sequence of reversible q-bit gates to a second processor for execution.

### Claim 2 (depends on 1)

The method as recited in claim 1, further comprising:
storing on a computer-readable medium third data relating each code instruction in a form executable by the different second processor to one or more reversible q-bit gates operating on an N-bit word; and
using the third data to convert the obfuscated sequence of reversible q-bit gates to obfuscated code instructions in a form executable by the second processor,
wherein sending obfuscated instructions further comprises sending obfuscated code instructions in a form executable by the second processor.

### Claim 3 (depends on 1)

The method as recited in claim 1, wherein:
the method further comprises storing on a computer-readable medium third data relating each code instruction in a form executable by the second processor to one or more reversible q-bit gates operating on an N-bit word; and,
said receiving first data further comprises:
receiving code instructions in a form executable by the second processor for operating on the encrypted data to produce one or more resulting decrypted data; and,
using the third data to convert the code instructions in a form executable by the second processor for operating on the encrypted data to produce one or more resulting decrypted data to the sequence of reversible q-bit gates for operating on the encrypted data to produce one or more resulting decrypted data.

### Claim 4 (depends on 1)

The method as recited in claim 1, further comprising:
storing on a computer-readable medium fusion data that indicates rules for replacing each of one or more sequences reversible q-bit gates operating on an input N-bit word to produce an output N-bit word, with one or more reversible k-bit gates (wherein 3<k≤N) that produce a same output N-bit word; and
using the fusion data to replace a particular sequence of one or more reversible q-bit gates of the obfuscated sequence of reversible q-bit gates with a k-bit gate that can replace the particular sequence.

### Claim 5 (depends on 4)

The method as recited in claim 4, further comprising:
storing on a computer-readable medium third data relating each code instruction in a form executable by the different second processor to one or more reversible q-bit gates operating on an N-bit word;
storing on a computer-readable medium fusion code data relating each of the one or more k-bit gates with one or more code instructions for the different second processor;
using the fusion code data to convert the k-bit gate to at least part of obfuscated code instructions; and
using the third data to convert any remaining reversible q-bit gates of the obfuscated sequence of reversible q-bit gates to any remaining part of the obfuscated code instructions,
wherein sending obfuscated instructions further comprises sending obfuscated code instructions in a form executable by the second processor.

### Claim 6 (depends on 1)

The method as recited in claim 1, wherein J>N and K>N.

### Claim 7 (depends on 1)

The method as recited in claim 1, wherein each reversible q-bit gate is a control gate comprising a single target bit and q−1 control bits that determine a value for the single target bit based on values at the q−1 control bits and values input to the q−1 control bits.

### Claim 8 (depends on 1)

The method as recited in claim 1, wherein q∈{1, 2, 3}).

### Claim 9 (depends on 1)

The method as recited in claim 1, wherein the second processor is different from the first processor.

### Claim 10 (depends on 1)

The method as recited in claim 1, wherein access to the second processor is different from access to the first processor.

### 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 perform the steps of:
receiving first data indicating a sequence of reversible q-bit gates including a first segment for decrypting permutation encrypted data to produce decrypted data, a second segment for operating on the decrypted data to produce one or more resulting decrypted data, and a third segment for encrypting the resulting decrypted data using permutation encryption to produce permutation encrypted resulting data;
storing second data that indicates rules for replacing a first sequence of two reversible q-bit gates operating on at least one shared bit of an input N-bit word with a different second sequence of one or more reversible q-bit gates that produce the same output N-bit word;
using the second data to propagate at least one q-bit gate from the first segment to a number J of gates distance into the q-bit gates for the second segment or beyond and at least one q-bit gate from the third segment to a number K of gates distance into the q-bit gates for the second segment or before to produce an obfuscated sequence of reversible q-bit gates;
sending obfuscated instructions based on the obfuscated sequence of reversible q-bit gates to a second set of one or more processors for execution.

### Claim 12 (depends on 11)

The non-transitory computer-readable medium as recited in claim 11, further comprising:
storing on a computer-readable medium third data relating each code instruction in a form executable by the different second processor to one or more reversible q-bit gates operating on an N-bit word; and
using the third data to convert the obfuscated sequence of reversible q-bit gates to obfuscated code instructions in a form executable by the second processor,
wherein sending obfuscated instructions further comprises sending obfuscated code instructions in a form executable by the second set of one or more processors.

### Claim 13 (depends on 11)

The non-transitory computer-readable medium as recited in claim 11, wherein:
the method further comprises storing on a computer-readable medium third data relating each code instruction in a form executable by the second set of one or more processors to one or more reversible q-bit gates operating on an N-bit word; and,
said receiving first data further comprises:
receiving code instructions in a form executable by the second set of one or more processors for operating on the encrypted data to produce one or more resulting decrypted data; and,
using the third data to convert the code instructions in a form executable by the second set of one or more processors for operating on the encrypted data to produce one or more resulting decrypted data to the sequence of reversible q-bit gates for operating on the encrypted data to produce one or more resulting decrypted data.

### Claim 14 (depends on 11)

The non-transitory computer-readable medium as recited in claim 11, further comprising:
storing on a computer-readable medium fusion data that indicates rules for replacing each of one or more sequences of reversible q-bit gates operating on an input N-bit word to produce an output N-bit word, with one or more k-bit gates (wherein 3<k≤N) that produce a same output N-bit word; and
using the fusion data to replace a particular sequence of one or more reversible q-bit gates of the obfuscated sequence of reversible q-bit gates with a k-bit gate that can replace the particular sequence.

### Claim 15 (depends on 14)

The non-transitory computer-readable medium as recited in claim 14, further comprising:
storing on a computer-readable medium third data relating each code instruction in a form executable by the second set of one or more processors to one or more reversible q-bit gates operating on an N-bit word;
storing on a computer-readable medium fusion code data relating each of the one or more k-bit gates with one or more code instructions for the different second set of one or more processors;
using the fusion code data to convert the k-bit gate to at least part of obfuscated code instructions; and
using the third data to convert any remaining reversible q-bit gates of the obfuscated sequence of reversible q-bit gates to any remaining part of the obfuscated code instructions,
wherein sending obfuscated instructions further comprises sending obfuscated code instructions in a form executable by the second set of one or more processors.

### Claim 16 (depends on 11)

The non-transitory computer-readable medium as recited in claim 11, wherein J>N and K>N.

### Claim 17 (depends on 11)

The non-transitory computer-readable medium as recited in claim 11, wherein each reversible q-bit gate is a control gate comprising a single target bit and q−1 control bits that determine a value for the single target bit based on values at the q−1 control bits and values input to the q−1 control bits.

### Claim 18 (depends on 11)

The non-transitory computer-readable medium as recited in claim 11, wherein q␣{1, 2, 3}).

### Claim 19 (depends on 11)

The non-transitory computer-readable medium as recited in claim 11, wherein the second set of one or more processors is different from the first set of one or more processors.

### Claim 20 (depends on 11)

The non-transitory computer-readable medium as recited in claim 11, wherein access to the second set of one or more processors is different from access to the first set of one or more processors.

### 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 perform at least the following,
receiving first data indicating a sequence of reversible q-bit gates including a first segment for decrypting permutation encrypted data to produce decrypted data, a second segment for operating on the decrypted data to produce one or more resulting decrypted data, and a third segment for encrypting the resulting decrypted data using permutation encryption to produce permutation encrypted resulting data;
storing on the computer-readable medium second data that indicates rules for replacing a first sequence of two q-bit gates operating on at least one shared bit of an input N-bit word with a different second sequence of one or more q-bit gates that produce the same output N-bit word;
using the second data to propagate at least one q-bit gate from the first segment to a number J of gates distance into the q-bit gates for the second segment or beyond and at least one q-bit gate from the third segment to a number K of gates distance into the q-bit gates for the second segment or before to produce an obfuscated sequence of reversible q-bit gates;
sending obfuscated instructions based on the obfuscated sequence of reversible q-bit gates to a second set of at least one processor for execution.

### Claim 22 (depends on 21)

The system as recited in claim 21, further comprising:
storing on a computer-readable medium third data relating each code instruction in a form executable by the second set of at least one processor to one or more reversible q-bit gates operating on an N-bit word; and
using the third data to convert the obfuscated sequence of reversible q-bit gates to obfuscated code instructions in a form executable by the second set of at least one processor,
wherein sending obfuscated instructions further comprises sending obfuscated code instructions in a form executable by the second set of at least one processor.

### Claim 23 (depends on 21)

The system as recited in claim 21, wherein:
the method further comprises storing on a computer-readable medium third data relating each code instruction in a form executable by the second set of at least one processor to one or more reversible q-bit gates operating on an N-bit word; and,
said receiving first data further comprises:
receiving code instructions in a form executable by the second set of at least one processor for operating on the encrypted data to produce one or more resulting decrypted data; and,
using the third data to convert the code instructions in a form executable by the second set of at least one processor for operating on the encrypted data to produce one or more resulting decrypted data to the sequence of reversible q-bit gates for operating on the encrypted data to produce one or more resulting decrypted data.

### Claim 24 (depends on 21)

The system as recited in claim 21, further comprising:
storing on a computer-readable medium fusion data that indicates rules for replacing each of one or more sequences of reversible q-bit gates operating on an input N-bit word to produce an output N-bit word, with one or more k-bit gates (wherein 3<k≤N) that produce a same output N-bit word; and
using the fusion data to replace a particular sequence of one or more q-bit gates of the obfuscated sequence of q-bit gates with a k-bit gate that can replace the particular sequence.

### Claim 25 (depends on 24)

The system as recited in claim 24, further comprising:
storing on a computer-readable medium third data relating each code instruction in a form executable by the second set of at least one processor to one or more reversible q-bit gates operating on an N-bit word;
storing on a computer-readable medium fusion code data relating each of the one or more k-bit gates with one or more code instructions for the second set of at least one processor;
using the fusion code data to convert the k-bit gate to at least part of obfuscated code instructions; and
using the third data to convert any remaining reversible q-bit gates of the obfuscated sequence of reversible q-bit gates to any remaining part of the obfuscated code instructions,
wherein sending obfuscated instructions further comprises sending obfuscated code instructions in a form executable by the second set of at least one processor.

### Claim 26 (depends on 21)

The system as recited in claim 21, wherein J>N and K>N.

### Claim 27 (depends on 21)

The system as recited in claim 21, wherein each reversible q-bit gate is a control gate comprising a single target bit and q−1 control bits that determine a value for the single target bit based on values at the q−1 control bits and values input to the q−1 control bits.

### Claim 28 (depends on 21)

The system as recited in claim 21, wherein q∈{1, 2, 3}).

### Claim 29 (depends on 21)

The system as recited in claim 21, wherein the second set of at least one processor is different from the first set of at least one processor.

### Claim 30 (depends on 21)

The system as recited in claim 21, wherein access to the second set of at least one processor is different from access to the first set of at least one processor.
