# US 2017/0286721 A1 · Methods and apparatus to initialize enclaves on target processors

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

- Number: US 2017/0286721 A1
- Document ID: US20170286721A1
- Status: Published application
- Kind: A1
- Application number: 15/087,029
- Filed: 2016-03-31
- Published: 2017-10-05
- Earliest claimed: 2016-03-31
- Assignees: Intel Corporation
- Applicants: Intel Corporation
- Inventors: Bin Xing
- Web page: https://patentgrep.com/patent/US20170286721A1

## CPC

- G06F 21/71: to assure secure computing or processing of information
- G06F 9/44505: {Configuring for program initiating, e.g. using registry, configuration files}
- G06F 12/00: Accessing, addressing or allocating within memory systems or architectures (digital input from, or digital output to record carriers, e.g. to disk storage units, G06F3/06)
- G06F 21/74: operating in dual or compartmented mode, i.e. at least one secure mode
- G06F: ELECTRIC DIGITAL DATA PROCESSING (computer systems based on specific computational models G06N)

## Abstract

Methods, apparatus, systems and articles of manufacture are disclosed to initialize enclaves on target processors. An example apparatus includes an image file retriever to retrieve configuration parameters associated with an enclave file, and an address space manager to calculate a minimum virtual address space value for an enclave image layout based on the configuration parameters, and generate an optimized enclave image layout to allow enclave image execution on unknown target processor types by multiplying the minimum address space value with a virtual address factor to determine an optimized virtual address space value for the optimized enclave image layout.

## Claims

### Claim 1

An apparatus to generate a processor agnostic enclave image layout, comprising:
an image file retriever to retrieve configuration parameters associated with an enclave file; and
an address space manager to:
calculate a minimum virtual address space value for an enclave image layout based on the configuration parameters; and
generate an optimized enclave image layout to allow enclave image execution on unknown target processor types by multiplying the minimum address space value with a virtual address factor to determine an optimized virtual address space value for the optimized enclave image layout.

### Claim 2 (depends on 1)

An apparatus as defined in claim 1, wherein the image file retriever is to retrieve a number of candidate threads associated with the enclave file.

### Claim 3 (depends on 2)

An apparatus as defined in claim 2, wherein the configuration parameters include a static heap size associated with the number of candidate threads associated with the enclave file.

### Claim 4 (depends on 3)

An apparatus as defined in claim 3, wherein the address space manager is to calculate the minimum virtual address space value based on the number of candidate threads and the static heap size.

### Claim 5 (depends on 1)

An apparatus as defined in claim 1, wherein the address space manager is to generate the optimized enclave image layout with static enclave components and the optimized virtual address space value prior to an instantiation phase to facilitate a measurement of the optimized enclave image layout.

### Claim 6

(canceled)

### Claim 7 (depends on 1)

An apparatus as defined in claim 1, further including a software guard extension (SGX) identifier to determine a type of a respective one of the unknown processor types.

### Claim 8 (depends on 7)

An apparatus as defined in claim 7, wherein the type of the respective one of the unknown processor types includes at least one of a static SGX processor or a dynamic SGX processor.

### Claim 9

(canceled)

### Claim 10

A method to generate a processor agnostic enclave image layout, comprising:
retrieving configuration parameters associated with an enclave file;
calculating a minimum virtual address space value for an enclave image layout based on the configuration parameters; and
generating an optimized enclave image layout to allow enclave image execution on unknown target processor types by multiplying the minimum address space value with a virtual address factor to determine an optimized virtual address space value for the optimized enclave image layout.

### Claim 11 (depends on 10)

A method as defined in claim 10, further including retrieving a number of candidate threads associated with the enclave file.

### Claim 12 (depends on 11)

A method as defined in claim 11, wherein the configuration parameters include a static heap size associated with the number of candidate threads associated with the enclave file.

### Claim 13 (depends on 12)

A method as defined in claim 12, further including calculating the minimum virtual address space value based on the number of candidate threads and the static heap size.

### Claim 14 (depends on 10)

A method as defined in claim 10, further including generating the optimized enclave image layout with static enclave components and the optimized virtual address space value prior to an instantiation phase to facilitate a measurement of the optimized enclave image layout.

### Claim 15 (depends on 14)

A method as defined in claim 14, wherein the measurement of the optimized enclave image layout is the same for all of the unknown processor types.

### Claim 16 (depends on 10)

A method as defined in claim 10, further including determining a type of a respective one of the unknown processor types.

### Claim 17

(canceled)

### Claim 18

(canceled)

### Claim 19

At least one tangible computer-readable storage disk or storage device comprising instructions which, when executed, cause a processor to at least:
retrieve configuration parameters associated with an enclave file;
calculate a minimum virtual address space value for an enclave image layout based on the configuration parameters; and
generate an optimized enclave image layout to allow enclave image execution on unknown target processor types by multiplying the minimum address space value with a virtual address factor to determine an optimized virtual address space value for the optimized enclave image layout.

### Claim 20 (depends on 19)

A tangible computer-readable storage disk or storage device as defined in claim 19, wherein the instructions, when executed, further cause the processor to retrieve a number of candidate threads associated with the enclave file.

### Claim 21

(canceled)

### Claim 22

(canceled)

### Claim 23 (depends on 19)

A tangible computer-readable storage disk or storage device as defined in claim 19, wherein the instructions, when executed, further cause the processor to generate the optimized enclave image layout with static enclave components and the optimized virtual address space value prior to an instantiation phase to facilitate a measurement of the optimized enclave image layout.

### Claim 24 (depends on 23)

A tangible computer-readable storage disk or storage device as defined in claim 23, wherein the instructions, when executed, further cause the processor to create the measurement of the optimized enclave image layout as the same for all of the unknown processor types.

### Claim 25 (depends on 19)

A tangible computer-readable storage disk or storage device as defined in claim 19, wherein the instructions, when executed, further cause the processor to determine a type of a respective one of the unknown processor types.

### Claim 26 (depends on 25)

A tangible computer-readable storage disk or storage device as defined in claim 25, wherein the instructions, when executed, further cause the processor to associate the optimized enclave image layout with a target enclave instruction set based on the determined type of the respective one of the unknown processor types.
