# US 11,120,140 B2 · Secure operations on encrypted data

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

- Number: US 11,120,140 B2
- Document ID: US11120140B2
- Status: Granted
- Kind: B2
- Application number: 16/019,624
- Filed: 2018-06-27
- Published: 2020-01-02
- Granted: 2021-09-14
- Earliest claimed: 2018-06-27
- Assignees: International Business Machines Corporation
- Applicants: International Business Machines Corporation
- Inventors: Oliver Benke; Tobias U. Bergmann
- Web page: https://patentgrep.com/patent/US11120140B2

## CPC

- G06F 21/602: {Providing cryptographic facilities or services}
- G06F 21/71: to assure secure computing or processing of information
- G06F 21/6245: {Protecting personal data, e.g. for financial or medical purposes}
- H04L 63/0428: {wherein the data content is protected, e.g. by encrypting or encapsulating the payload}
- 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

Secure operations are performed on encrypted code. A processor in a first operating mode obtains encrypted code. The processor switches from the first operating mode to a second operating mode, and decrypts the encrypted code to obtain decrypted code. The decrypted code is executed, based on the processor being in the second operating mode, to provide a result. The result is encrypted, and the encrypted result is sent to a user, based on the processor switching back to the first operating mode.

## Claims

### Claim 1

A computer program product for facilitating processing within a computing environment, the computer program product comprising:
at least one computer readable storage medium readable by at least one processing circuit and storing instructions for performing a method comprising:
obtaining, by a processor in a first operating mode, encrypted code, the processor to execute clear text instructions based on being in the first operating mode;
switching the processor from the first operating mode to a second operating mode, the second operating mode being different from the first operating mode, wherein the switching the processor from the first operating mode to the second operating mode includes deactivating one or more communication connections of the processor to external components of the processor to place the processor in the second operating mode, and the deactivating the one or more communication connections of the processor to external components of the processor to place the processor in the second operating mode comprises fencing physical wires to and from the processor to fence data signals to and from the processor;
decrypting the encrypted code to obtain decrypted code, based on the processor being in the second operating mode;
executing the decrypted code, based on the processor being in the second operating mode; and
ending the second operating mode, the ending the second operating mode including restoring the one or more communications connections of the processor placing the processor in the first operating mode.

### Claim 2 (depends on 1)

The computer program product of claim 1, wherein the executing the decrypted code comprises:
performing one or more operations using the decrypted code to provide a result;
encrypting the result to provide an encrypted result; and
providing the encrypted result to a client, based on the processor switching from the second operating mode to the first operating mode.

### Claim 3 (depends on 2)

The computer program product of claim 2, wherein the ending the second operating mode includes switching from the second operating mode to the first operating mode enabling communications from the processor to external components of the processor, the switching including deleting unencrypted data from one or more caches of the processor.

### Claim 4 (depends on 2)

The computer program product of claim 2, wherein the method further comprises decrypting input data to provide decrypted data, and wherein the one or more operations are performed on the decrypted data to provide the result.

### Claim 5 (depends on 4)

The computer program product of claim 4, wherein the decrypting the input data comprises using at least one data key for decrypting the input data, the at least one data key being provided by the decrypted code.

### Claim 6 (depends on 1)

The computer program product of claim 1, wherein the decrypting the encrypted code comprises decrypting the encrypted code using a private key unique to the processor.

### Claim 7 (depends on 1)

The computer program product of claim 1, wherein the encrypted code is encrypted using a public key associated with a unique identifier of the processor.

### Claim 8 (depends on 1)

The computer program product of claim 1, wherein the processor is provided by a cloud service provider.

### Claim 9 (depends on 8)

The computer program product of claim 8, wherein the method further comprises:
providing, by the cloud service provider, based on a request for the processor, a unique identifier of the processor and a public key associated with the unique identifier of the processor;
encrypting code using the public key to provide the encrypted code; and
sending the encrypted code to the processor.

### Claim 10

A computer system for facilitating processing within a computing environment, the computer system comprising:
a memory; and
a processor in communication with the memory, wherein the computer system is configured to perform a method, said method comprising:
obtaining, by the processor in a first operating mode, encrypted code, the processor to execute clear text instructions based on being in the first operating mode;
switching the processor from the first operating mode to a second operating mode, the second operating mode being different from the first operating mode, wherein the switching the processor from the first operating mode to the second operating mode includes deactivating one or more communication connections of the processor to external components of the processor to place the processor in the second operating mode, and the deactivating the one or more communication connections of the processor to external components of the processor to place the processor in the second operating mode comprises fencing physical wires to and from the processor to fence data signals to and from the processor;
decrypting the encrypted code to obtain decrypted code, based on the processor being in the second operating mode;
executing the decrypted code, based on the processor being in the second operating mode; and
ending the second operating mode, the ending the second operating mode including restoring the one or more communications connections of the processor placing the processor in the first operating mode.

### Claim 11 (depends on 10)

The computer system of claim 10, wherein the executing the decrypted code comprises:
performing one or more operations using the decrypted code to provide a result;
encrypting the result to provide an encrypted result; and
providing the encrypted result to a client, based on the processor switching from the second operating mode to the first operating mode.

### Claim 12 (depends on 10)

The computer system of claim 10, wherein the encrypted code is encrypted using a public key associated with a unique identifier of the processor.

### Claim 13 (depends on 10)

The computer system of claim 10, wherein the processor is provided by a cloud service provider.

### Claim 14

A computer-implemented method of facilitating processing within a computing environment, the computer-implemented method comprising:
obtaining, by a processor in a first operating mode, encrypted code, the processor to execute clear text instructions based on being in the first operating mode;
switching the processor from the first operating mode to a second operating mode, the second operating mode being different from the first operating mode, wherein the switching the processor from the first operating mode to the second operating mode includes deactivating one or more communication connections of the processor to external components of the processor to place the processor in the second operating mode, and the deactivating the one or more communication connections of the processor to external components of the processor to place the processor in the second operating mode comprises fencing physical wires to and from the processor to fence data signals to and from the processor;
decrypting the encrypted code to obtain decrypted code, based on the processor being in the second operating mode;
executing the decrypted code, based on the processor being in the second operating mode; and
ending the second operating mode, the ending the second operating mode including restoring the one or more communications connections of the processor placing the processor in the first operating mode.

### Claim 15 (depends on 14)

The computer-implemented method of claim 14, wherein the executing the decrypted code comprises:
performing one or more operations using the decrypted code to provide a result;
encrypting the result to provide an encrypted result; and
providing the encrypted result to a client, based on the processor switching from the second operating mode to the first operating mode.

### Claim 16 (depends on 14)

The computer-implemented method of claim 14, wherein the encrypted code is encrypted using a public key associated with a unique identifier of the processor.

### Claim 17 (depends on 14)

The computer-implemented method of claim 14, wherein the processor is provided by a cloud service provider.
