# US 2011/0258423 A1 · Computer processor and method with increased security policies

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

- Number: US 2011/0258423 A1
- Document ID: US20110258423A1
- Status: Published application
- Kind: A1
- Application number: 13/021,683
- Filed: 2011-02-04
- Published: 2011-10-20
- Earliest claimed: 2010-02-11
- Assignees: NXP B.V.
- Inventors: Jan HOOGERBRUGGE
- Web page: https://patentgrep.com/patent/US20110258423A1

## CPC

- G06F 9/30058: {Conditional branch instructions}
- G06F 9/30069: {Instruction skipping instructions, e.g. SKIP}
- G06F 9/3017: {Runtime instruction translation, e.g. macros}
- G06F 9/38585: {with result invalidation, e.g. nullification}
- G06F 21/52: during program execution, e.g. stack integrity {; Preventing unwanted data erasure; Buffer overflow}
- G06F 21/72: in cryptographic circuits
- G06F: ELECTRIC DIGITAL DATA PROCESSING (computer systems based on specific computational models G06N)

## Abstract

A computer processor 100 is provided which hides jump instructions, in particular condition jump instructions, from side-channels. The processor comprises a forward jump detector 254 for detecting a forward jump instruction having a jump target location which lies ahead and a jump inhibitor 262 for inhibiting an execution of the forward jump instruction. The computer processor is configured for executing at least one intermediate computer instruction located between the inhibited forward jump instruction and the jump target location. The processor further comprises a storage destination modifier 260, 262 for modifying the storage destination determined by the at least one intermediate computer instruction to suppress the effects of execution of intermediate instructions. Since the intermediate instruction is executed regardless of the forward jump instruction, the jump is hidden in a side-channel. Secret information, such as cryptographic keys, on which the forward jump may depend, is also hidden.

## Claims

### Claim 1

A computer processor configured for executing a sequence of computer instructions, the processor comprising
a jump handler for determining whether a jump instruction in the sequence of instructions is to be taken and whether the jump instruction is to be inhibited, the jump instruction determining a jump target location in the sequence,
an execution unit for executing a computer instruction to obtain a data result, and
a storage handler for storing the data result to a storage destination determined by the computer instruction,
wherein the computer processor comprises
a forward jump detector for detecting whether the jump target location lies further in the sequence compared to a location in the sequence of the jump instruction,
a jump inhibitor for inhibiting an execution of the jump instruction in dependency on the forward jump detector detecting that the jump target location lies further in the sequence compared to a location in the sequence of the jump instruction, the execution unit being configured for executing at least one intermediate computer instruction of the sequence of computer instructions, the intermediate computer instruction being located in the sequence of computer instructions in between the inhibited jump instruction and the jump target location, and
a storage destination modifier for modifying the storage destination determined by the at least one intermediate computer instruction into a storage destination not forming part of the processor state if the jump instruction is to be taken and to be inhibited.

### Claim 2 (depends on 1)

A computer processor as in claim 1 wherein the jump instruction is a conditional jump configured for causing a jump if a condition is fulfilled, and wherein the storage destination modifier is configured for not modifying the storage destination determined by the at least one intermediate computer instruction if the condition is not fulfilled.

### Claim 3 (depends on 1)

A computer processor as in claim 1 comprising a register file, wherein the storage destination determined by the intermediate computer instruction is a destination register in the register file, and wherein the storage destination modifier is configured for modifying the destination register into a predetermined dummy register.

### Claim 4 (depends on 1)

A computer processor as in claim 1 comprising a memory, wherein the storage destination determined by the intermediate computer instruction is a destination address in the memory, and wherein the storage destination modifier is configured for modifying the destination address into a predetermined dummy address.

### Claim 5 (depends on 1)

A computer processor as in claim 1 wherein the forward jump detector is further configured for detecting whether a difference in location between the jump target location and the location of the jump instruction is less than a predetermined small jump threshold.

### Claim 6 (depends on 1)

A computer processor as in claim 1 wherein the jump inhibitor is further configured to inhibit execution of all further jump instructions being located in the sequence of computer instructions in between the inhibited jump instruction and the jump target location.

### Claim 7 (depends on 1)

A computer processor as in claim 1 wherein the jump inhibitor is further configured to inhibit interrupts occurring during execution of intermediate computer instruction of the sequence of computer instructions located in the sequence of computer instructions in between the inhibited jump instruction and the jump target location.

### Claim 8 (depends on 1)

A computer processor as in claim 1 wherein the power consumption of a jump instruction is independent of its inhibition by the jump inhibitor and/or wherein storing the data result is independent of modification by the storage destination modifier.

### Claim 9 (depends on 1)

A computer processor as in claim 1 wherein the execution unit is configured for executing all intermediate computer instruction of the sequence of computer instructions located in the sequence of computer instructions between the inhibited jump instruction and the jump target location.

### Claim 10 (depends on 9)

A computer processor as in claim 9 comprising a kill register,
the jump inhibitor being configured to set the kill register to a difference in location between the jump target location and the location of the jump instruction on inhibiting the jump instruction,
the computer processor being configured for decreasing the kill register upon executing an intermediate computer instruction
the storage destination modifier being configured for modifying the storage destination determined by the intermediate computer instruction if the kill register is positive.

### Claim 11 (depends on 1)

Smart card comprising a computer processor as in claim 1.

### Claim 12

A method of executing a sequence of computer instructions, the method comprising
determining whether a jump instruction in the sequence of instructions is to be taken and whether the jump instruction is to be inhibited, the jump instruction determining a jump target location in the sequence,
executing a computer instruction to obtain a data result, and
storing the data result to a storage destination determined by the computer instruction,
wherein the method further comprises
detecting whether the jump target location lies further in the sequence compared to a location in the sequence of the jump instruction,
inhibiting an execution of the jump instruction in dependency on the forward jump detector detecting that the jump target location lies further in the sequence compared to a location in the sequence of the jump instruction,
executing at least one intermediate computer instruction of the sequence of computer instructions, the intermediate computer instruction being located in the sequence of computer instructions in between the inhibited jump instruction and the jump target location, and
modifying the storage destination determined by the intermediate computer instruction into a storage destination not forming part of the processor state if the jump instruction is to be taken and to be inhibited.

### Claim 13 (depends on 12)

A microcode program comprising computer program code means adapted to perform all the steps of claim 12 when the microcode program is run on a computer processor.

### Claim 14 (depends on 13)

A microcode program as claimed in claim 13 embodied on a computer readable medium.
