# US 2015/0039905 A1 · System for processing an encrypted instruction stream in hardware

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

- Number: US 2015/0039905 A1
- Document ID: US20150039905A1
- Status: Published application
- Kind: A1
- Application number: 13/954,487
- Filed: 2013-07-30
- Published: 2015-02-05
- Earliest claimed: 2013-07-30
- Assignees: Battelle Memorial Institute
- Inventors: Richard L. Griswold; William K. Nickless; Ryan C. Conrad
- Web page: https://patentgrep.com/patent/US20150039905A1

## CPC

- G06F 21/602: {Providing cryptographic facilities or services}
- G06F 21/72: in cryptographic circuits
- 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]
- G06F: ELECTRIC DIGITAL DATA PROCESSING (computer systems based on specific computational models G06N)

## Abstract

A system and method of processing an encrypted instruction stream in hardware is disclosed. Main memory stores the encrypted instruction stream and unencrypted data. A central processing unit (CPU) is operatively coupled to the main memory. A decryptor is operatively coupled to the main memory and located within the CPU. The decryptor decrypts the encrypted instruction stream upon receipt of an instruction fetch signal from a CPU core. Unencrypted data is passed through to the CPU core without decryption upon receipt of a data fetch signal.

## Claims

### Claim 1

A system for processing an encrypted instruction stream in hardware comprising:
a. a main memory for storing the encrypted instruction stream and unencrypted data;
b. a central processing unit (CPU) operatively coupled to the main memory via a unified instruction and data bus; and
c. a decryptor coupled to the unified instruction and data bus, wherein the decryptor decrypts the encrypted instruction stream upon receipt of an instruction fetch signal from a CPU core and wherein the decryptor passes the unencrypted data through without decryption upon receipt of a data fetch signal from the CPU core.

### Claim 2 (depends on 1)

The system of claim 1 further comprising a cache for receiving the decrypted instruction stream from the decryptor, wherein the decryptor is coupled between the cache and the main memory.

### Claim 3 (depends on 2)

The system of claim 2 wherein the cache is not directly accessible from instructions executing on the CPU.

### Claim 4 (depends on 2)

The system of claim 2 further comprising a memory controller coupled between the cache and the CPU core, wherein the memory controller receives the decrypted stream and the unencrypted data.

### Claim 5 (depends on 1)

The system of claim 1 further comprising a boot controller for initializing the CPU to start executing the encrypted instruction stream immediately without requiring an unencrypted software boot strapping routing.

### Claim 6 (depends on 5)

The system of claim 5 wherein during the initialization the CPU reads a cryptographic key from dedicated storage and a nonce value from a dedicated address in the instruction stream.

### Claim 7 (depends on 6)

The system of claim 6 wherein a key used by the decryptor is derived from at least one of the following: the cryptographic key, the nonce, and a CPU program counter.

### Claim 8 (depends on 6)

The system of claim 6 wherein the nonce is located at the beginning of the instruction stream.

### Claim 9 (depends on 8)

The system of claim 8 wherein the nonce is generated anew each time the instruction stream is encrypted.

### Claim 10 (depends on 6)

The system of claim 6 wherein the cryptographic key is contained within an internal register of the decryptor.

### Claim 11 (depends on 10)

The system of claim 10 wherein the internal register is not software or user accessible.

### Claim 12 (depends on 1)

The system of claim 1 wherein the instruction stream is periodically re-encrypted at intervals during operation of the CPU.

### Claim 13 (depends on 1)

The system of claim 1 wherein the CPU is implemented in a field-programmable gate array (FPGA).

### Claim 14 (depends on 1)

The system of claim 1 wherein the CPU is at least one of the following: a MIPS CPU, an ARM-based CPU, and an x86 CPU.

### Claim 15 (depends on 1)

The system of claim 1 wherein the decryptor uses an Advanced Encryption Standard (AES) algorithm in counter mode (AES-CTR) with a 128-bit key length.

### Claim 16 (depends on 1)

The system of claim 1 wherein the main memory is a random-access memory.

### Claim 17 (depends on 16)

The system of claim 16 wherein the random-access memory is a synchronous dynamic random-access memory (SDRAM).

### Claim 18 (depends on 1)

The system of claim 1 wherein the decryptor utilizes a checksum or a hash value to detect an improperly decrypted instruction stream.

### Claim 19 (depends on 18)

The system of claim 18 wherein the system re-initializes the CPU to a predefined state when the improperly decrypted instruction stream is detected.

### Claim 20 (depends on 18)

The system of claim 18 wherein the system sets a CPU program counter to a non-sequential value when the improperly decrypted instruction stream is detected.

### Claim 21

A system for processing an encrypted instruction stream in hardware comprising:
a. a main memory for storing the encrypted instruction stream and unencrypted data;
b. a central processing unit (CPU) operatively coupled to the main memory via a separate instruction bus and data bus; and
c. a decryptor coupled to the instruction bus but not the data bus, wherein the decryptor decrypts the encrypted instruction stream upon receipt of an instruction via the instruction bus.

### Claim 22 (depends on 21)

The system of claim 21 further comprising a cache for receiving the decrypted instruction stream from the decryptor, wherein the decryptor is coupled between the cache and the main memory.

### Claim 23 (depends on 22)

The system of claim 22 wherein the cache is not directly accessible from instructions executing on the CPU.

### Claim 24 (depends on 22)

The system of claim 22 further comprising a memory controller coupled between the cache and the CPU core, wherein the memory controller receives the decrypted stream and the unencrypted data.

### Claim 25 (depends on 21)

The system of claim 21 further comprising a boot controller for initializing the CPU to start executing the encrypted instruction stream immediately without requiring an unencrypted software boot strapping routing.

### Claim 26 (depends on 25)

The system of claim 25 wherein during the initialization the CPU reads a cryptographic key from dedicated storage and a nonce value from a dedicated address in the instruction stream.

### Claim 27 (depends on 26)

The system of claim 26 wherein a key used by the decryptor is derived from at least one of the following: the cryptographic key, the nonce value, and a CPU program counter.

### Claim 28 (depends on 26)

The system of claim 26 wherein the nonce value is located at the beginning of the instruction stream.

### Claim 29 (depends on 28)

The system of claim 28 wherein the nonce value is generated anew each time the instruction stream is encrypted.

### Claim 30 (depends on 26)

The system of claim 26 wherein the cryptographic key is contained within an internal register of the decryptor.

### Claim 31 (depends on 30)

The system of claim 30 wherein the internal register is not software or user accessible.

### Claim 32 (depends on 21)

The system of claim 21 wherein the instruction stream is periodically re-encrypted at intervals during operation of the CPU.

### Claim 33 (depends on 21)

The system of claim 21 wherein the CPU is implemented in a field-programmable gate array (FPGA).

### Claim 34 (depends on 21)

The system of claim 21 wherein the CPU is at least one of the following: a MIPS CPU, an ARM-based CPU, and an x86 CPU.

### Claim 35 (depends on 21)

The system of claim 21 wherein the decryptor is a 128-bit Advanced Encryption Standard (AES) decryptor.

### Claim 36 (depends on 21)

The system of claim 21 wherein the main memory is a random-access memory.

### Claim 37 (depends on 36)

The system of claim 36 wherein the random-access memory is a synchronous dynamic random-access memory (SDRAM).

### Claim 38 (depends on 21)

The system of claim 21 wherein the decryptor utilizes a checksum or a hash value to detect an improperly decrypted instruction stream.

### Claim 39 (depends on 38)

The system of claim 38 wherein the system re-initializes the CPU to a predefined state when the improperly decrypted instruction stream is detected.

### Claim 40 (depends on 38)

The system of claim 38 wherein the system sets a CPU program counter to a non-sequential value when the improperly decrypted instruction is detected.

### Claim 41

A system for processing an encrypted instruction stream in hardware, comprising:
a. a main memory for storing the encrypted instruction stream and unencrypted data;
b. a central processing unit (CPU) operatively coupled to the main memory; and
c. a decryptor operatively coupled to the main memory and located within the CPU, wherein the decryptor decrypts the encrypted instruction stream upon receipt of an instruction fetch signal from a CPU core, and wherein unencrypted data is passed through to the CPU core without decryption upon receipt of a data fetch signal.

### Claim 42 (depends on 41)

The system of claim 41 further comprising a unified instruction and data bus coupled between the decryptor and the CPU core, wherein the decryptor decrypts the encrypted instruction stream upon receipt of an instruction fetch signal from the CPU core and passes the unencrypted data through without decryption upon receipt of a data fetch signal from the CPU core.

### Claim 43

The system of 41 further comprising a data bus coupled between the CPU core and the main memory and an instruction bus coupled between the CPU core and the main memory via the decryptor, the decryptor being coupled to the instruction bus but not the data bus, wherein the decryptor decrypts the encrypted instruction stream upon receipt of an instruction via the instruction bus.

### Claim 44

A method of initializing a decryptor comprising: pausing a CPU, wherein a program counter does not increment, while a boot controller performs the following:
a. reading a nonce value from a first predetermined location;
b. storing the nonce value in a first hardware register of the decryptor;
c. reading a cryptographic key from a second predetermined location;
d. storing the cryptographic key in a second hardware register of the decryptor;
e. forming an initial counter value from the nonce value; and
f. sending the initial counter value to the decryptor, wherein the CPU resumes operations after the decryptor initializes.
