# US 2011/0087872 A1 · Firmware Verified Boot

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

- Number: US 2011/0087872 A1
- Document ID: US20110087872A1
- Status: Published application
- Kind: A1
- Application number: 12/903,202
- Filed: 2010-10-12
- Published: 2011-04-14
- Earliest claimed: 2009-10-13
- Assignees: Google Inc.
- Inventors: Gaurav Shah; William Drewry; Randall Spangler; Ryan Tabone; Sumit Gwalani; Luigi Semenzato
- Web page: https://patentgrep.com/patent/US20110087872A1

## CPC

- G06F 21/575: {Secure boot}
- G06F 21/554: {involving event detection and direct action}
- G06F 21/572: {Secure firmware programming, e.g. of basic input output system [BIOS]}
- G06F 21/64: Protecting data integrity, e.g. using checksums, certificates or signatures
- G06F 21/74: operating in dual or compartmented mode, i.e. at least one secure mode
- H04L 9/30: Public key, i.e. encryption algorithm being computationally infeasible to invert or user's encryption keys not requiring secrecy
- H04L 9/3236: {using cryptographic hash functions}
- H04L 9/3247: {involving digital signatures}
- 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

Methods and apparatus for verifying a boot process of a computing system are disclosed. An example computer-implemented method includes reading, by a computing system during a boot process, a header section of a read-write portion of firmware of the computing system. The example method further includes generating, using a first cryptographic hash algorithm, a message digest corresponding with the header. The example method also includes decrypting, using a first public-key, an encrypted signature corresponding with the header. The example method still further includes comparing the message digest corresponding with the header and the decrypted signature corresponding with the header. In the event the message digest corresponding with the header and the decrypted signature corresponding with the header match, the example method includes continuing the boot process. In the event the message digest corresponding with the header and the decrypted signature corresponding with the header do not match, the example method includes halting the boot process.

## Claims

### Claim 1

A computer-implemented method comprising:
reading, by a computing system during a boot process, a header section of a read-write portion of firmware of the computing system;
generating, using a first cryptographic hash algorithm, a message digest corresponding with the header;
decrypting, using a first public-key, an encrypted signature corresponding with the header;
comparing the message digest corresponding with the header and the decrypted signature corresponding with the header;
in the event the message digest corresponding with the header and the decrypted signature corresponding with the header match, continuing the boot process; and
in the event the message digest corresponding with the header and the decrypted signature corresponding with the header do not match, halting the boot process.

### Claim 2 (depends on 1)

The computer-implemented method of claim 1, wherein the reading, generating, decrypting and comparing are performed by the computing system using instructions stored in a read-only portion of the firmware.

### Claim 3 (depends on 1)

The computer-implemented method of claim 1, wherein the first public-key is stored in a read-only portion of the firmware.

### Claim 4 (depends on 1)

The computer-implemented method of claim 1, wherein the encrypted signature corresponding with the header is generated using the first cryptographic hash algorithm and a private-key corresponding with the first public-key.

### Claim 5 (depends on 1)

The computer-implemented method of claim 1, wherein the header comprises a plurality of fields.

### Claim 6 (depends on 5)

The computer-implemented method of claim 5, wherein the plurality of fields includes:
a second public-key, the computing system being configured to use the second-public key to verify a data section of the read-write portion of the firmware; and
a key-version number of the second public-key.

### Claim 7 (depends on 6)

The computer-implemented method of claim 6, wherein the plurality of fields further includes:
a length field indicating a length of the header; and
an algorithm field indicating one or more of:
a key size of the second public-key; and
a cryptographic hash algorithm to use when verifying the data section of the read-write portion of the firmware.

### Claim 8 (depends on 6)

The computer-implemented method of claim 6, wherein the computing system is configured to:
securely store a highest-key-version number observed by the computing system;
compare the key-version number with the highest-key-version number;
in the event the key-version number is less than the highest-key-version number, halt the boot process;
in the event the key-version number is equal to the highest-key-version number, continue the boot process; and
in the event the key-version number is greater than the highest-key-version number, securely store the key-version number as the highest-key-version number.

### Claim 9 (depends on 8)

The computer-implemented method of claim 8, wherein securely storing the highest-key-version number comprises:
storing the highest-key-version number in a non-volatile random-access memory (NVRAM) location of a trusted-platform module; and
locking the NVRAM location based on instructions included in a read-only portion of the firmware.

### Claim 10 (depends on 8)

The computer-implemented method of claim 8, wherein, in the event the key-version number is less than the highest-key-version number, the method further comprises initiating a recovery process to restore the read-write portion of the firmware to a trusted state.

### Claim 11 (depends on 1)

The computer-implemented method of claim 1, wherein in the event the message digest corresponding with the header and the decrypted signature corresponding with the header do not match, the method further comprises initiating a recovery process to restore the read-write portion of the firmware to a trusted state.

### Claim 12 (depends on 1)

The computer-implemented method of claim 1, wherein continuing the boot process comprises:
obtaining a second public-key from the header;
determining a key-size of the second public-key from the header;
determining an indicator of a second cryptographic hash algorithm from the header;
reading a first data portion of the read-write portion of the firmware;
generating, using the second cryptographic hash algorithm, a message digest corresponding with the first data portion;
decrypting, using the second public-key and the key-size, an encrypted signature corresponding with the first data portion;
comparing the message digest corresponding with the first data portion and the decrypted signature corresponding with the first data portion;
in the event the message digest corresponding with the first data portion and the decrypted signature corresponding with the first data portion match, continuing the boot process; and
in the event the message digest corresponding with the first data portion and the decrypted signature corresponding with the first data portion do not match, halting the boot process.

### Claim 13 (depends on 12)

The computer-implemented method of claim 12, wherein the encrypted signature corresponding with the first data portion is generated using the second cryptographic hash algorithm and a private-key corresponding with the second public-key.

### Claim 14 (depends on 12)

The computer-implemented method of claim 12, wherein, in the event the message digest corresponding with the first data portion and the decrypted signature corresponding with the first data portion do not match, the method further comprises initiating a recovery process to restore the read-write portion of the firmware to a trusted state.

### Claim 15 (depends on 12)

The computer-implemented method of claim 12, wherein, in the event the message digest corresponding with the first data portion and the decrypted signature corresponding with the first data portion match, continuing the boot process comprises:
reading a second data portion of the read-write portion of the firmware;
generating, using the second cryptographic hash algorithm, a message digest corresponding with the second data portion;
decrypting, using the second public-key, an encrypted signature corresponding with the second data portion;
comparing the message digest corresponding with the second data portion and the decrypted signature corresponding with the second data portion;
in the event the message digest corresponding with the second data portion and the decrypted signature corresponding with the second data portion match, continuing the boot process; and
in the event the message digest corresponding with the second data portion and the decrypted signature corresponding with the second data portion do not match, halting the boot process.

### Claim 16 (depends on 15)

The computer-implemented method of claim 15, wherein, in the event the message digest corresponding with the second data portion and the decrypted signature corresponding with the second data portion match, continuing the boot process comprises:
reading, by the computing system, a first portion of an operating system kernel of the computing system;
generating, using the second cryptographic hash algorithm, a message digest corresponding with the first portion of the operating system kernel;
decrypting, using the second public-key, an encrypted signature corresponding with the first portion of the operating system kernel;
comparing the message digest corresponding with the first portion of the operating system kernel and the decrypted signature corresponding with the first portion of the operating system kernel;
in the event the message digest corresponding with the first portion of the operating system kernel and the decrypted signature corresponding with the first portion of the operating system kernel match, continuing the boot process; and
in the event the message digest corresponding with the first portion of the operating system kernel and the decrypted signature corresponding with the first portion of the operating system kernel do not match, halting the boot process.

### Claim 17 (depends on 12)

The computer-implemented method of claim 12, wherein the first data portion includes a firmware-version number of the read-write portion of the firmware, and
wherein the computing system is configured to:
securely store a highest-firmware-version number observed by the computing system;
compare the firmware-version number with the highest-firmware-version number;
in the event the firmware-version number is less than the highest-firmware-version number, halt the boot process;
in the event the firmware-version number is equal to the highest-firmware-version number, continue the boot process; and
in the event the firmware-version number is greater than the highest-firmware-version number, securely store the firmware-version number as the highest-firmware-version number.

### Claim 18 (depends on 17)

The computer-implemented method of claim 17, wherein securely storing the highest-firmware-version number comprises:
storing the highest-firmware-version number in a non-volatile random-access memory (NVRAM) location of a trusted-platform module; and
locking the NVRAM location based on instructions included in a read-only portion of the firmware.

### Claim 19 (depends on 17)

The computer-implemented method of claim 17, wherein in the event the firmware-version number is less than the highest-firmware-version number, the method further comprises initiating a recovery process to restore the read-write portion of the firmware to a trusted state.

### Claim 20 (depends on 12)

The computer-implemented method of claim 12, wherein, in the event the message digest corresponding with the first data portion and the decrypted signature corresponding with the first data portion match, continuing the boot process comprises:
reading, by the computing system, a first portion of an operating system kernel of the computing system;
generating, using the second cryptographic hash algorithm, a message digest corresponding with the first portion of the operating system kernel;
decrypting, using the second public-key, an encrypted signature corresponding with the first portion of the operating system kernel;
comparing the message digest corresponding with the first portion of the operating system kernel and the decrypted signature corresponding with the first portion of the operating system kernel;
in the event the message digest corresponding with the first portion of the operating system kernel and the decrypted signature corresponding with the first portion of the operating system kernel match, continuing the boot process; and
in the event the message digest corresponding with the first portion of the operating system kernel and the decrypted signature corresponding with the first portion of the operating system kernel do not match, halting the boot process.

### Claim 21 (depends on 20)

The computer-implemented method of claim 20, wherein in the event the message digest corresponding with the first portion of the operating system kernel and the decrypted signature corresponding with the first portion of the operating system kernel do not match, the method further comprises initiating a recovery process to restore the operating system kernel to a trusted state.

### Claim 22 (depends on 20)

The computer-implemented method of claim 20, wherein the first portion of the operating system kernel includes:
a third public-key, the computing system being configured to use the third-public key to verify a second portion of the operating system kernel; and
a key-version number of the third public-key.

### Claim 23 (depends on 22)

The computer-implemented method of claim 22, wherein the computing system is configured to:
securely store a highest-key-version number of the third public-key observed by the computing system;
compare the key-version number of the third public-key with the highest-key-version number of the third public-key;
in the event the key-version number of the third public-key is less than the highest-key-version number of the third public-key, halt the boot process;
in the event the key-version number of the third public-key is equal to the highest-key-version number of the third public-key, complete the boot process; and
in the event the key-version number of the third public-key is greater than the highest-key-version number of the third public-key, securely store the key-version number of the third public-key as the highest-key-version number of the third public-key.

### Claim 24 (depends on 20)

The computer-implemented method of claim 20, wherein, in the event the message digest corresponding with the first portion of the operating system kernel and the decrypted signature corresponding with the first portion of the operating system kernel match, continuing the boot process comprises:
obtaining a third public-key from the first portion of the operating system kernel;
determining a key-size of the third public-key from the first portion of the operating system kernel;
determining an indicator of a third cryptographic hash algorithm from the first portion of the operating system kernel;
reading a second portion of the operating system kernel;
generating, using the third cryptographic hash algorithm, a message digest corresponding with the second portion of the operating system kernel;
decrypting, using the third public-key and the key-size of the third public-key, an encrypted signature corresponding with the second portion of the operating system kernel;
comparing the message digest corresponding with the second portion of the operating system kernel and the decrypted signature corresponding with the second portion of the operating system kernel;
in the event the message digest corresponding with the second portion of the operating system kernel and the decrypted signature corresponding with the second portion of the operating system kernel match, completing the boot process; and
in the event the message digest corresponding with the second portion of the operating system kernel and the decrypted signature corresponding with the second portion of the operating system kernel do not match, halting the boot process.

### Claim 25

A computer-implemented boot process for a computing system, the boot process comprising:
verifying, by a processor of the computing system, an encrypted signature corresponding with a first portion of a read-write portion of firmware of the computing system using a first public-key and a first cryptographic hash algorithm, wherein the computing system halts the boot process if the verification of the encrypted signature corresponding with the first portion of the read only firmware fails;
verifying, by the processor, an encrypted signature corresponding with a second portion of the read-write portion of the firmware using a second public-key and a second cryptographic hash algorithm, wherein the computing system halts the boot process if the verification of the encrypted signature corresponding with the second portion of the read-write firmware fails;
verifying, by the processor, an encrypted signature corresponding with a third portion of the read-write portion of the firmware using the second public-key and the second cryptographic hash algorithm, wherein the computing system halts the boot process if the verification of the encrypted signature corresponding with the third portion of the read-write firmware fails;
verifying, by the processor, an encrypted signature corresponding with a first portion of an operating-system kernel using the second public-key and the second cryptographic hash algorithm, wherein the computing system halts the boot process if the verification of the encrypted signature corresponding with the first portion of the operating-system kernel fails; and
verifying, by the processor, an encrypted signature corresponding with a second portion of an operating-system kernel using a third public-key and a third cryptographic hash algorithm, wherein the computing system halts the boot process if the verification of the encrypted signature corresponding with the second portion of the operating-system kernel fails.

### Claim 26 (depends on 25)

The boot process of claim 25, wherein:
the encrypted signature corresponding with the first portion of the read-write portion of the firmware is generated using the first cryptographic hash algorithm and a private-key corresponding with the first public-key;
the encrypted signature corresponding with the second portion of the read-write portion of the firmware is generated using the second cryptographic hash algorithm and a private-key corresponding with the second public-key;
the encrypted signature corresponding with the third portion of the read-write portion of the firmware is generated using the second cryptographic hash algorithm and the private-key corresponding with the second public-key;
the encrypted signature corresponding with the first portion of the operating-system kernel is generated using the second cryptographic hash algorithm and the private-key corresponding with the second public-key; and
the encrypted signature corresponding with the second portion of the operating-system kernel is generated using the third cryptographic hash algorithm and a private-key corresponding with the third public-key.

### Claim 27 (depends on 25)

The boot process of claim 25, wherein the second cryptographic algorithm and the third cryptographic algorithm are the same.

### Claim 28 (depends on 25)

The boot process of claim 25, wherein the first cryptographic algorithm is stronger than the second cryptographic algorithm and the third cryptographic algorithm.

### Claim 29 (depends on 25)

The boot process of claim 25, wherein the first public-key is larger than the second public-key and the third public-key.

### Claim 30 (depends on 25)

The boot process of claim 25, wherein the second public-key is larger than the third public-key.

### Claim 31

A computing system comprising one or more machine readable storage media having instructions stored thereon, the instructions, when executed by a processor of the computing system, cause the computing system to:
read, during a boot process, a header section of a read-write portion of firmware of the computing system;
generate, using a first cryptographic hash algorithm, a message digest corresponding with the header;
decrypt, using a first public-key, an encrypted signature corresponding with the header;
compare the message digest corresponding with the header and the decrypted signature corresponding with the header;
in the event the message digest corresponding with the header and the decrypted signature corresponding with the header match, continue the boot process; and
in the event the message digest corresponding with the header and the decrypted signature corresponding with the header do not match, halt the boot process.

### Claim 32 (depends on 31)

The computer system of claim 31, wherein, in the event the message digest corresponding with the header and the decrypted signature corresponding with the header match, the instructions, when executed by the processor, further cause the computing system to:
obtain a second public-key from the header;
determine a key-size of the second public-key from the header;
determine an indicator of a second cryptographic hash algorithm from the header;
read a first data portion of the read-write portion of the firmware;
generate, using the second cryptographic hash algorithm, a message digest corresponding with the first data portion;
decrypt, using the second public-key and the key-size, an encrypted signature corresponding with the first data portion;
compare the message digest corresponding with the first data portion and the decrypted signature corresponding with the first data portion;
in the event the message digest corresponding with the first data portion and the decrypted signature corresponding with the first data portion match, continue the boot process; and
in the event the message digest corresponding with the first data portion and the decrypted signature corresponding with the first data portion do not match, halt the boot process.

### Claim 33 (depends on 32)

The computer system of claim 32, wherein, in the event the message digest corresponding with the first data portion and the decrypted signature corresponding with the first data portion match, the instructions, when executed by the processor, further cause the computing system to:
read a second data portion of the read-write portion of the firmware;
generate using the second cryptographic hash algorithm, a message digest corresponding with the second data portion;
decrypt, using the second public-key, an encrypted signature corresponding with the second data portion;
compare the message digest corresponding with the second data portion and the decrypted signature corresponding with the second data portion;
in the event the message digest corresponding with the second data portion and the decrypted signature corresponding with the second data portion match, continue the boot process; and
in the event the message digest corresponding with the second data portion and the decrypted signature corresponding with the second data portion do not match, halt the boot process.

### Claim 34 (depends on 33)

The computer system of claim 33, wherein, in the event the message digest corresponding with the second data portion and the decrypted signature corresponding with the second data portion match, the instructions, when executed by the processor, further cause the computing system to:
read a first portion of an operating system kernel of the computing system;
generate, using the second cryptographic hash algorithm, a message digest corresponding with the first portion of the operating system kernel;
decrypt, using the second public-key, an encrypted signature corresponding with the first portion of the operating system kernel;
compare the message digest corresponding with the first portion of the operating system kernel and the decrypted signature corresponding with the first portion of the operating system kernel;
in the event the message digest corresponding with the first portion of the operating system kernel and the decrypted signature corresponding with the first portion of the operating system kernel match, continue the boot process; and
in the event the message digest corresponding with the first portion of the operating system kernel and the decrypted signature corresponding with the first portion of the operating system kernel do not match, halt the boot process.

### Claim 35 (depends on 34)

The computer system of claim 34, wherein, in the event the message digest corresponding with the first portion of the operating system kernel and the decrypted signature corresponding with the first portion of the operating system kernel match, the instructions, when executed by the processor, further cause the computing system to:
obtain a third public-key from the first portion of the operating system kernel;
determine a key-size of the third public-key from the first portion of the operating system kernel;
determine an indicator of a third cryptographic hash algorithm from the first portion of the operating system kernel;
read a second portion of the operating system kernel;
generate, using the third cryptographic hash algorithm, a message digest corresponding with the second portion of the operating system kernel;
decrypt, using the third public-key and the key-size of the third public-key, an encrypted signature corresponding with the second portion of the operating system kernel;
compare the message digest corresponding with the second portion of the operating system kernel and the decrypted signature corresponding with the second portion of the operating system kernel;
in the event the message digest corresponding with the second portion of the operating system kernel and the decrypted signature corresponding with the second portion of the operating system kernel match, complete the boot process; and
in the event the message digest corresponding with the second portion of the operating system kernel and the decrypted signature corresponding with the second portion of the operating system kernel do not match, halt the boot process.

### Claim 36

A computing system comprising one or more machine readable storage media having instructions stored thereon, the instructions, when executed by a processor of the computing system, cause the computing system to:
verify an encrypted signature corresponding with a first portion of a read-write portion of firmware of the computing system using a first public-key and a first cryptographic hash algorithm, wherein the instructions cause the computing system to halt the boot process if the verification of the encrypted signature corresponding with the first portion of the read only firmware fails;
verify an encrypted signature corresponding with a second portion of the read-write portion of the firmware using a second public-key and a second cryptographic hash algorithm, wherein the instructions cause the computing system to halt the boot process if the verification of the encrypted signature corresponding with the second portion of the read-write firmware fails;
verify an encrypted signature corresponding with a third portion of the read-write portion of the firmware using the second public-key and the second cryptographic hash algorithm, wherein the instructions cause the computing system to halt the boot process if the verification of the encrypted signature corresponding with the third portion of the read-write firmware fails;
verify an encrypted signature corresponding with a first portion of an operating-system kernel using the second public-key and the second cryptographic hash algorithm, wherein the instructions cause the computing system to halt the boot process if the verification of the encrypted signature corresponding with the first portion of the operating-system kernel fails; and
verify an encrypted signature corresponding with a second portion of an operating-system kernel using a third public-key and a third cryptographic hash algorithm, wherein the instructions cause the computing system to halt the boot process if the verification of the encrypted signature corresponding with the second portion of the operating-system kernel fails.

### Claim 37

A computer-implemented boot process for a computing system, the boot process comprising:
verifying, by a processor of the computing system, an encrypted signature corresponding with a first portion of a read-write portion of firmware of the computing system using a first public-key and a first cryptographic hash algorithm, wherein the computing system halts the boot process if the verification of the encrypted signature corresponding with the first portion of the read only firmware fails;
verifying, by the processor, an encrypted signature corresponding with a second portion of the read-write portion of the firmware using a second public-key and a second cryptographic hash algorithm, wherein the computing system halts the boot process if the verification of the encrypted signature corresponding with the second portion of the read-write firmware fails;
verifying, by the processor, an encrypted signature corresponding with a first portion of an operating-system kernel using the second public-key and the second cryptographic hash algorithm, wherein the computing system halts the boot process if the verification of the encrypted signature corresponding with the first portion of the operating-system kernel fails; and
verifying, by the processor, an encrypted signature corresponding with a second portion of an operating-system kernel using a third public-key and a third cryptographic hash algorithm, wherein the computing system halts the boot process if the verification of the encrypted signature corresponding with the second portion of the operating-system kernel fails.

### Claim 38

A computer-implemented boot process for a computing system, the boot process comprising:
verifying, by a processor of the computing system, an encrypted signature corresponding with a first portion of a read-write portion of firmware of the computing system using a first public-key and a first cryptographic hash algorithm;
if the verification of the encrypted signature corresponding with the first portion of the read-write portion of the firmware is successful, verifying, by the processor, an encrypted signature corresponding with a second portion of the read-write portion of the firmware using a second public-key and a second cryptographic hash algorithm;
if the verification of the encrypted signature corresponding with the second portion of the read-write portion of the firmware is successful, verifying, by the processor, an encrypted signature corresponding with a third portion of the read-write portion of the firmware using the second public-key and the second cryptographic hash algorithm;
if the verification of the encrypted signature corresponding with the third portion of the read-write portion of the firmware is successful, verifying, by the processor, an encrypted signature corresponding with a first portion of an operating-system kernel using the second public-key and the second cryptographic hash algorithm; and
if the verification of the encrypted signature corresponding with the first portion of an operating-system kernel is successful, verifying, by the processor, an encrypted signature corresponding with a second portion of an operating-system kernel using a third public-key and a third cryptographic hash algorithm.
