# US 2021/0200873 A1 · Method and system for continuously verifying integrity of secure instructions during runtime

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

- Number: US 2021/0200873 A1
- Document ID: US20210200873A1
- Status: Published application
- Kind: A1
- Application number: 17/125,208
- Filed: 2020-12-17
- Published: 2021-07-01
- Earliest claimed: 2019-12-31
- Assignees: Renesas Electronics America Inc.
- Applicants: Renesas Electronics America Inc.
- Inventors: Taimour Wehbe; Marc Adas
- Web page: https://patentgrep.com/patent/US20210200873A1

## CPC

- G06F 21/52: during program execution, e.g. stack integrity {; Preventing unwanted data erasure; Buffer overflow}
- G06F 21/57: Certifying or maintaining trusted computer platforms, e.g. secure boots or power-downs, version controls, system software checks, secure updates or assessing vulnerabilities
- G06F 21/554: {involving event detection and direct action}
- H04L 9/0643: {Hash functions, e.g. MD5, SHA, HMAC or f9 MAC}
- G06F 2221/034: Test or assess a computer or a system
- H04L 9/3236: {using cryptographic hash functions}
- 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

Example implementations include a method of requesting an instruction block associated with one or more instructions and located at one or more addresses of a system memory, obtaining the instruction block from the system memory, generating a hash of the instruction block, obtaining an expected hash associated with the instruction block, comparing the expected hash with the generated hash, in accordance with a determination that the expected hash matches the generated hash, generating a first validation response associated with the instruction block. Example implementations also include a method of obtaining a secure instruction image including an expected hash associated with an instruction block, the instruction block associated with one or more instructions and located at one or more addresses of a system memory, storing the secure instruction image at a configuration register, and enabling the hardware controller to perform one or more hashing operations associated with the instruction block during runtime of a system processor.

## Claims

### Claim 1

A method of checking integrity of a secure computing device, the method comprising:
requesting an instruction block associated with one or more instructions and located at one or more addresses of a system memory;
obtaining the instruction block from the system memory;
generating a hash of the instruction block;
obtaining an expected hash associated with the instruction block;
comparing the expected hash with the generated hash;
in accordance with a determination that the expected hash matches the generated hash, generating a first validation response associated with the instruction block.

### Claim 2 (depends on 1)

The method of claim 1, wherein the first validation response comprises loading a status register with at least one of the instructions associated with the instruction block.

### Claim 3 (depends on 1)

The method of claim 1, wherein the first validation response comprises loading a status register with an indication that the expected hash matches the generated hash.

### Claim 4 (depends on 1)

The method of claim 1, wherein the first validation response comprises sending a first interrupt signal to a system processor.

### Claim 5 (depends on 1)

The method of claim 1, further comprising:
in accordance with a determination that the expected hash does not match the generated hash, generating a second validation response associated with the instruction block.

### Claim 6 (depends on 5)

The method of claim 5, wherein the second validation response comprises sending a second interrupt signal to a system processor.

### Claim 7 (depends on 1)

The method of claim 1, further comprising:
repeating the requesting the instruction block, the obtaining the instruction block, the generating the hash of the instruction block, the obtaining the expected hash, and the comparing the expected hash with the generated hash.

### Claim 8 (depends on 1)

The method of claim 1, further comprising:
obtaining a secure instruction image including an expected hash associated with the instruction block; and
storing the secure instruction image at a configuration register.

### Claim 9 (depends on 8)

The method of claim 8, further comprising:
enabling the hardware controller to perform the requesting the instruction block, the obtaining the instruction block, the generating the hash of the instruction block, the obtaining the expected hash, and the comparing the expected hash with the generated hash, subsequent to the storing the secure instruction image.

### Claim 10 (depends on 1)

The method of claim 1, further comprising:
enabling the hardware controller to perform the requesting the instruction block, the obtaining the instruction block, the generating the hash of the instruction block, the obtaining the expected hash, and the comparing the expected hash with the generated hash during runtime of a system processor.

### Claim 11 (depends on 1)

The method of claim 1, further comprising:
obtaining a plurality of secure instruction images, each of the plurality of secure instruction images including a respective expected hash associated with a respective instruction block of a plurality of instruction blocks; and
storing each of the secure instruction images at a configuration register,
wherein the instruction block is one of the plurality of instruction blocks.

### Claim 12 (depends on 11)

The method of claim 11, further comprising:
repeating, for each of the plurality of instruction blocks, the requesting the instruction block, the obtaining the instruction block, the generating the hash of the instruction block, the obtaining the expected hash, and the comparing the expected hash with the generated hash.

### Claim 13 (depends on 1)

The method of claim 1, further comprising:
buffering the instruction block at a buffer memory.

### Claim 14 (depends on 1)

The method of claim 1, wherein the generating the hash of the instruction block comprises generating the hash of the instruction block during runtime of a system processor.

### Claim 15

A method of enabling checking integrity of a secure computing device, the method comprising:
obtaining a secure instruction image including an expected hash associated with an instruction block, the instruction block associated with one or more instructions and located at one or more addresses of a system memory;
storing the secure instruction image at a configuration register; and
enabling the hardware controller to perform one or more hashing operations associated with the instruction block during runtime of a system processor.

### Claim 16 (depends on 15)

The method of claim 15, further comprising:
enabling a bootloader to modify the configuration register.

### Claim 17 (depends on 16)

The method of claim 16, wherein the enabling the bootloader occurs at a configuration time separate from the runtime of the system processor.

### Claim 18

A system for checking integrity of a secure computing device, the system comprising:
a hardware controller including an enable input node and an interrupt input node, and configured to request an instruction block associated with one or more instructions and located at one or more addresses of a system memory, obtain an expected hash associated with the instruction block, and, in accordance with a determination that the expected hash matches a generated hash, generating a first validation response associated with the instruction block;
a bus master engine operatively coupled to the hardware controller, and configured to obtain the instruction block from the system memory, and buffer the obtained instruction block to a buffer memory;
a hash engine operatively coupled to the buffer memory, and configured to generate the generated hash of the instruction block; and
a comparator operatively coupled to the hardware controller and the hash engine, and configured to compare the expected hash with the generated hash.

### Claim 19 (depends on 18)

The system of claim 18, further comprising:
a configuration register operatively coupled to the hardware controller, and configured to store the address and the expected hash.

### Claim 20 (depends on 18)

The system of claim 18, wherein the hardware controller is further configured to perform one or more hashing operations associated with the instruction block during runtime of a system processor.
