# US 2008/0301468 A1 · Cryptographic Secure Program Overlays

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

- Number: US 2008/0301468 A1
- Document ID: US20080301468A1
- Status: Published application
- Kind: A1
- Application number: 11/754,649
- Filed: 2007-05-29
- Published: 2008-12-04
- Earliest claimed: 2007-05-29
- Assignees: International Business Machines Corporation
- Inventors: Masana Murase; Wilfred E. Plouffe, JR.; Kanna Shimizu; Masaharu Sakamoto; Vladimir Zbarsky
- Web page: https://patentgrep.com/patent/US20080301468A1

## CPC

- G06F 12/1458: {by checking the subject access rights}
- G06F 21/52: during program execution, e.g. stack integrity {; Preventing unwanted data erasure; Buffer overflow}
- G06F 21/575: {Secure boot}
- G06F 21/79: in semiconductor storage media, e.g. directly-addressable memories
- G06F 2221/2143: Clearing memory, e.g. to prevent the data from being stolen
- G06F: ELECTRIC DIGITAL DATA PROCESSING (computer systems based on specific computational models G06N)

## Abstract

A method, computer program product, and data processing system for executing larger-than-physical-memory applications while protecting sensitive program code (and also data) from unauthorized access in a memory space not subject to protection fault or page fault detection are disclosed. Large applications are accommodated by providing a mechanism for secure program overlays, in which a single large application is broken into two or more smaller applications (overlays) that can be executed from the same memory space by overwriting one of the smaller applications with another of the smaller applications when the latter needs to be executed. So that the data may be shared among these smaller applications, each of the applications contains embedded cryptographic keys, which may be used to encrypt or decrypt information to be stored persistently while control is transferred from one application to the other.

## Claims

### Claim 1

A computer-performed method of supporting program code overlays in a data processing system, comprising:
executing a first application in the data processing system, wherein the first application is associated with an encryption key and wherein executing the first application includes
encrypting input data for a second application using the encryption key, and
writing the encrypted input data to data storage in the data processing system;
decrypting, using initialization hardware, an encrypted copy of an operating kernel into the data storage;
executing the operating kernel, wherein the operating kernel decrypts the second application into the data storage;
transferring control of the data processing system to the second application from the operating kernel;
deleting the one or more cryptographic secrets prior to transferring control of the data processing system to the second application;
executing the decrypted second application in the data processing system, wherein the second application is associated with a decryption key and wherein executing the second application includes
reading the encrypted input data from the data storage;
decrypting the encrypted input data; and
performing additional computation on the decrypted input data.

### Claim 2 (depends on 1)

The method of claim 1, wherein the input data is state information regarding a computational state of the first application.

### Claim 3 (depends on 1)

The method of claim 1, wherein the decryption key is contained within the second application.

### Claim 4 (depends on 1)

The method of claim 1, wherein the encryption key is a public key in a public-key cryptosystem and the decryption key is a private key in the public-key cryptosystem.

### Claim 5 (depends on 1)

The method of claim 1, wherein the encryption key and decryption key are identical.

### Claim 6 (depends on 1)

The method of claim 1, wherein the writing includes writing an error detection code associated with the input data, and wherein the additional computation includes verifying the decrypted input data against the error detection code.

### Claim 7 (depends on 1)

The method of claim 1, further comprising:
decrypting the first application from an encrypted copy of the first application prior to executing the first application in the data processing system.

### Claim 8 (depends on 1)

The method of claim 1, wherein the data storage includes memory, registers, or secondary data storage.

### Claim 9

A computer program product in one or more computer-readable media, comprising functional descriptive material that, when executed by a computer, causes the computer to perform actions of:
executing a first application in the data processing system, wherein the first application is associated with an encryption key and wherein executing the first application includes
encrypting input data for a second application using the encryption key, and
writing the encrypted input data to data storage of the data processing system;
decrypting, using initialization hardware, an encrypted copy of an operating kernel into the data storage;
executing the operating kernel, wherein the operating kernel decrypts the second application into the data storage;
transferring control of the data processing system to the second application from the operating kernel;
deleting the one or more cryptographic secrets prior to transferring control of the data processing system to the second application;
executing the decrypted second application in the data processing system, wherein the second application is associated with a decryption key and wherein executing the second application includes
reading the encrypted input data from the data storage;
decrypting the encrypted input data; and
performing additional computation on the decrypted input data.

### Claim 10 (depends on 9)

The computer program product of claim 9, wherein the input data is state information regarding a computational state of the first application.

### Claim 11 (depends on 9)

The computer program product of claim 9, wherein the decryption key is contained within the second application.

### Claim 12 (depends on 9)

The computer program product of claim 9, wherein the encryption key is a public key in a public-key cryptosystem and the decryption key is a private key in the public-key cryptosystem.

### Claim 13 (depends on 9)

The computer program product of claim 9, wherein the encryption key and decryption key are identical.

### Claim 14 (depends on 9)

The computer program product of claim 9, wherein the writing includes writing an error detection code associated with the input data, and wherein the additional computation includes verifying the decrypted input data against the error detection code.

### Claim 15 (depends on 9)

The computer program product of claim 9, comprising functional descriptive material that, when executed by a computer, causes the computer to perform the additional action of:
decrypting the first application from an encrypted copy of the first application prior to executing the first application in the data processing system.

### Claim 16 (depends on 9)

The computer program product of claim 9, wherein the data storage includes memory, registers, or secondary data storage.

### Claim 17

A data processing system comprising:
at least one processor;
initialization hardware, wherein the initialization hardware is configured to initialize a state of the at least one processor;
memory accessible to the at least one processor;
data storage accessible to the at least one processor;
an encrypted operating kernel stored in the data storage, wherein the encrypted operating kernel contains one or more cryptographic secrets;
a first application stored in the data storage, wherein the first application is associated with an encryption key; and
a second application stored in encrypted form in the data storage, wherein the second application is associated with a decryption key,
wherein the at least one processor loads the first application into the data storage and performs additional actions including
executing the first application, wherein executing the first application includes
encrypting input data for the second application using the encryption key, and
writing the encrypted input data to the data storage;
decrypting, using the initialization hardware, the encrypted operating kernel into the data storage;
executing the decrypted operating kernel, wherein the decrypted operating kernel, using the one or more cryptographic secrets, decrypts the second application into the data storage so as to overwrite in memory at least a portion of the first application;
transferring control of the at least one processor to the second application from the operating kernel;
deleting the one or more cryptographic secrets prior to transferring control of the at least one processor to the second application;
executing the decrypted second application, wherein executing the second application includes
reading the encrypted input data from the data storage; and
decrypting the encrypted input data.

### Claim 18 (depends on 15)

The data processing system of claim 15, wherein the input data is state information regarding a computational state of the first application.

### Claim 19 (depends on 15)

The data processing system of claim 15, wherein the encryption key is a public key in a public-key cryptosystem and the decryption key is a private key in the public-key cryptosystem.

### Claim 20 (depends on 15)

The data processing system of claim 15, wherein the first application is stored in encrypted form in the data storage, and wherein loading the first application into the memory includes decrypting the first application from the data storage into the memory.
