# US 2013/0254906 A1 · Hardware and Software Association and Authentication

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

- Number: US 2013/0254906 A1
- Document ID: US20130254906A1
- Status: Published application
- Kind: A1
- Application number: 13/427,148
- Filed: 2012-03-22
- Published: 2013-09-26
- Earliest claimed: 2012-03-22
- Assignees: Cavium, Inc.
- Inventors: Richard E. Kessler; Muhammad Raghib Hussain; Ethan Frederick Robbins
- Web page: https://patentgrep.com/patent/US20130254906A1

## CPC

- 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: ELECTRIC DIGITAL DATA PROCESSING (computer systems based on specific computational models G06N)

## Abstract

Authentication and association of hardware and software is accomplished by loading a secure code from an external memory at startup time and authenticating the program code using an authentication key. Access to full hardware and software functionality may be obtained upon authentication of the secure code. However, if the authentication of the secure code fails, an unsecure code that provides limited functionality to hardware and software resources is executed.

## Claims

### Claim 1

A method for authenticating and associating a secure code with an equipment, the method comprising:
loading the secure code from an external memory at startup time; and
authenticating the secure code using an authentication key associated with the equipment and in an event authentication of the secure code fails, executing an unsecure code.

### Claim 2 (depends on 1)

The method of claim 1 wherein the external memory is at least one of an unsecure memory, a reprogrammable flash memory, or a read-only memory (ROM).

### Claim 3 (depends on 1)

The method of claim 1 further comprising storing the secure code in an internal memory of the equipment.

### Claim 4 (depends on 3)

The method of claim 3 further including partitioning a cache memory to include the internal memory, the internal memory residing at an address within the cache memory and having a dynamically variable size.

### Claim 5 (depends on 4)

The method of claim 4 further including executing the unsecure code from at least one of the internal memory and the external memory.

### Claim 6 (depends on 4)

The method of claim 4 further including executing the secure code from the internal memory in an event the secure code is authenticated.

### Claim 7 (depends on 6)

The method of claim 6 further including continuing to authenticate procedures triggered by execution of the secure code in an event the secure code is authenticated.

### Claim 8 (depends on 3)

The method of claim 3 further including storing the secure code using instructions from the internal memory of the equipment.

### Claim 9 (depends on 1)

The method of claim 1 further including executing the secure code in an event the secure code is authenticated.

### Claim 10 (depends on 9)

The method of claim 9 further including copying the secure code into a secure internal writable memory using instructions from a read-only memory (ROM), the secure internal memory being a partition of a cache memory, and executing the secure code from the secure internal writable memory.

### Claim 11 (depends on 10)

The method of claim 10 further including loading secure keys associated with the equipment from the external memory using the secure code.

### Claim 12 (depends on 11)

The method of claim 11 wherein the secure keys include at least one of a device authentication key, a redundant device authentication key, a chip encryption key, image authentication key, a memory protection key, and a secure storage key.

### Claim 13 (depends on 11)

The method of claim 11 wherein the secure keys are encrypted.

### Claim 14 (depends on 11)

The method of claim 11 further including authenticating the secure keys using the secure code.

### Claim 15 (depends on 11)

The method of claim 11 further including determining if updates to the secure keys are available using the secure code.

### Claim 16 (depends on 15)

The method of claim 15 further including updating the secure keys using an update code.

### Claim 17 (depends on 11)

The method of claim 11, wherein a secure code authenticator is a function of the authentication key and the secure code, the authentication key being a function of a Master Authentication Key (MAK) associated with the equipment.

### Claim 18 (depends on 17)

The method of claim 17 wherein the authentication key is encrypted.

### Claim 19 (depends on 17)

The method of claim 17 further including executing the secure earliest boot code from the secure internal writable memory.

### Claim 20 (depends on 17)

The method of claim 17 further authenticating the authentication key and in an event the authentication fails, executing the unsecure code with an appropriate error indication.

### Claim 21 (depends on 11)

The method of claim 11 further including comparing the secure keys to a secret key using the secure code and in an event the comparison fails, issuing an error indication.

### Claim 22 (depends on 1)

The method of claim 1 further including generating an error signal in an event authentication of the secure code fails.

### Claim 23 (depends on 1)

The method of claim 1 wherein the unsecure code includes limited functionality.

### Claim 24 (depends on 23)

The method of claim 23 wherein having limited functionality includes having limited access to structures of the equipment.

### Claim 25 (depends on 23)

The method of claim 23 wherein having limited functionality includes having limited access to software stored on the equipment.

### Claim 26 (depends on 23)

The method of claim 23 wherein the unsecure code is unencrypted and alterable.

### Claim 27 (depends on 23)

The method of claim 23 further including providing the limited functionality for a predetermined period of time.

### Claim 28 (depends on 1)

The method of claim 1 further including determining the authentication key as a function of a Master Authentication Key (MAK) associated with the equipment.

### Claim 29 (depends on 1)

The method of claim 1 wherein the secure code includes an authenticator, the authenticator being a function of the authentication key.

### Claim 30 (depends on 1)

The method of claim 1 wherein the authentication key is an Advanced Encryption Standard (AES) Key.

### Claim 31 (depends on 1)

The method of claim 1 wherein the equipment is at least one of a network processor, a general purpose processor system-on-chip, and a mother board.

### Claim 32 (depends on 1)

The method of claim 1 wherein the secure code is unencrypted.

### Claim 33 (depends on 1)

The method of claim 1 further comprising updating secure keys associated with the equipment using an authentication key.

### Claim 34

An apparatus for authenticating and associating a secure code with an equipment, the apparatus comprising:
a loader that loads the secure code from an external memory at startup time; and
an authenticator that authenticates the secure code using an authentication key associated with the equipment and in an event authentication of the secure code fails, executes an unsecure code.

### Claim 35 (depends on 34)

The apparatus of claim 34 wherein the external memory is at least one of an unsecure memory, a reprogrammable flash memory, or a read-only memory (ROM).

### Claim 36 (depends on 34)

The apparatus of claim 34 wherein the equipment further includes an internal memory configured to store the secure code.

### Claim 37 (depends on 36)

The apparatus of claim 36 wherein a cache memory is partitioned to include the internal memory, the internal memory being arranged to reside at an address within the cache memory and including a dynamically variable size.

### Claim 38 (depends on 37)

The apparatus of claim 37 wherein the unsecure code is executed from at least one of the internal memory and the external memory.

### Claim 39 (depends on 37)

The apparatus of claim 37 wherein the secure code is executed from the internal memory in an event the secure code is authenticated.

### Claim 40 (depends on 39)

The apparatus of claim 39 wherein procedures triggered by execution of the secure code are continued to be authenticated in an event the secure code is authenticated.

### Claim 41 (depends on 36)

The apparatus of claim 36 wherein the secure code is stored using instructions from a read-only memory (ROM).

### Claim 42 (depends on 34)

The apparatus of claim 34 wherein the secure code is executed in an event the secure code is authenticated.

### Claim 43 (depends on 42)

The apparatus of claim 42 wherein the secure code is copied into a secure internal writable memory using instructions from a read-only memory (ROM), the secure internal writable memory being a partition of a cache memory, and wherein the secure code is executed from the secure internal writable memory.

### Claim 44 (depends on 43)

The apparatus of claim 43 wherein secure keys associated with the equipment is loaded from the external memory using the secure code.

### Claim 45 (depends on 44)

The apparatus of claim 44 wherein the secure keys include at least one of a device authentication key, a redundant device authentication key, a chip encryption key, an image authentication key, a memory protection key, and a secure storage key.

### Claim 46 (depends on 44)

The apparatus of claim 44 wherein the secure keys are encrypted.

### Claim 47 (depends on 44)

The apparatus of claim 44 wherein the secure keys are authenticated using the secure code.

### Claim 48 (depends on 44)

The apparatus of claim 44 further including an updater that determines if updates to the secure keys are available using the secure code.

### Claim 49 (depends on 48)

The apparatus of claim 48 wherein the updater updates the secure keys using an update code.

### Claim 50 (depends on 48)

The apparatus of claim 48 wherein a secure code authenticator is a function of the authentication key and the secure code, the authentication key being a function of a Master Authentication Key (MAK) associated with the equipment.

### Claim 51 (depends on 50)

The apparatus of claim 50 wherein the authentication key is encrypted.

### Claim 52 (depends on 50)

The apparatus of claim 50 wherein the secure earliest boot code is executed from the secure internal writable memory.

### Claim 53 (depends on 50)

The apparatus of claim 50 wherein the authenticator authenticates the authentication key and in an event the authentication fails, executes the unsecure code with an appropriate error indication.

### Claim 54 (depends on 44)

The apparatus of claim 44 further including a comparer that compares the secure keys to a secret key using the secure code and in an event the comparison fails, issues an error indication.

### Claim 55 (depends on 34)

The apparatus of claim 34 wherein an error signal is generated in an event authentication of the secure code fails.

### Claim 56 (depends on 34)

The apparatus of claim 34 wherein the unsecure code includes limited functionality.

### Claim 57 (depends on 56)

The apparatus of claim 56 wherein the unsecure code has limited access to structures of the equipment.

### Claim 58 (depends on 56)

The apparatus of claim 56 wherein the unsecure code has limited access to software stored on the equipment.

### Claim 59 (depends on 56)

The apparatus of claim 56 wherein the unsecure code is unencrypted and alterable.

### Claim 60 (depends on 56)

The apparatus of claim 56 wherein the limited functionality is provided for a predetermined period of time.

### Claim 61 (depends on 34)

The apparatus of claim 34 wherein the authentication key is determined as a function of a Master Authentication Key (MAK) associated with the equipment.

### Claim 62 (depends on 34)

The apparatus of claim 34 wherein the secure code includes an authenticator, the authenticator being a function of the authentication key.

### Claim 63 (depends on 34)

The apparatus of claim 34 wherein the authentication key is an Advanced Encryption Standard (AES) Key.

### Claim 64 (depends on 34)

The apparatus of claim 34 wherein the equipment is at least one of a network processor, a general purpose processor system-on-chip, and a mother board.

### Claim 65 (depends on 34)

The apparatus of claim 34 wherein the secure code is unencrypted.

### Claim 66 (depends on 34)

The apparatus of claim 34 wherein secure keys associated with the equipment is updated using an authentication key.
