# US 2022/0292206 A1 · Method and device for transferring a boot code with improved data security

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

- Number: US 2022/0292206 A1
- Document ID: US20220292206A1
- Status: Published application
- Kind: A1
- Application number: 17/608,001
- Filed: 2020-04-29
- Published: 2022-09-15
- Earliest claimed: 2019-05-02
- Assignees: Continental Automotive GmbH
- Applicants: Continental Automotive GmbH
- Inventors: Stefan Bieger
- Web page: https://patentgrep.com/patent/US20220292206A1

## 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 21/606: {by securing the transmission between two devices or processes}
- G06F 9/4401: Bootstrapping (security arrangements therefor G06F21/57)
- H04L 9/0825: {using asymmetric-key encryption or public key infrastructure [PKI], e.g. key signature or public key certificates}
- H04L 9/30: Public key, i.e. encryption algorithm being computationally infeasible to invert or user's encryption keys not requiring secrecy
- 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

A method for transmitting a boot code, with improved data security, from a programming device to a microcontroller, including: a) creating a first public key, a first private key, and a password; b) generating a bootloader binary for execution on the microcontroller, c) estimating a tolerable total processing time, which consists of the processing times of steps d) to f); d) transmitting the bootloader binary from the programming device to the microcontroller; e) executing, by the microcontroller, the bootstrap loader code, the decryption routine, and the decrypted bootloader routines; f) transmitting at least the second public key from the microcontroller to the programming device; g) if the actual processing times of steps d) to f) are outside the tolerable total processing time, terminating the method; and h) otherwise, encrypting, by the programming device, the boot code by the second public key and transmitting an encrypted boot code to the microcontroller.

## Claims

### Claim 1

A method for transmitting a boot code, with improved data security, from a programming device to a microcontroller, having the steps of:
a) creating, by the programming device, a first public key, a first private key and a password;
b) generating, by the programming device, a bootloader binary for execution on the microcontroller the bootloader binary comprising at least:
a bootstrap loader for execution on the microcontroller,
the password,
the first public key encrypted by means of the password,
a set of bootloader routines encrypted by the password for execution on the microcontroller, the set of encrypted bootloader routines comprising:
a generation routine for generating a second public key and a second private key, and
a decryption routine for decrypting the first public key; and
a decryption routine, for execution on the microcontroller, for decrypting the bootloader routines encrypted by the password;
c) estimating, by the programming device, a tolerable total processing time, which consists of the processing times of steps d) to f);
d) transmitting the bootloader binary from the programming device to the microcontroller;
e) executing, by the microcontroller,
the bootstrap loader code,
the decryption routine for decrypting the bootloader routines encrypted by the password, and
the decrypted bootloader routines;
f) transmitting at least the second public key from the microcontroller to the programming device;
g) if the actual processing times of steps d) to f) are outside the tolerable total processing time, terminating the method; and
h) if the actual processing times of steps d) to f) are within the tolerable total processing time,
encrypting, by the programming device, the boot code by the second public key and transmitting an encrypted boot code from the programming device the microcontroller.

### Claim 2 (depends on 1)

The method as claimed in claim 1,
wherein the tolerable total processing time is defined by a maximum total processing time, a minimum total processing time or a time window between the maximum total processing time and the minimum total processing time.

### Claim 3 (depends on 1)

The method as claimed in claim 1,
wherein the set of encrypted bootloader routines further comprises a routine for producing a pause of a predefined duration.

### Claim 4 (depends on 1)

The method as claimed in claim 1,
wherein the set of encrypted bootloader routines further comprises a read protection routine.

### Claim 5 (depends on 1)

The method as claimed in claim 1,
wherein the set of bootloader routines further comprises a routine for reading a serial number of the microcontroller, and
wherein the boot code further comprises the serial number, having the further step of:
f1) additionally transmitting the serial number from the microcontroller to the programming device.

### Claim 6 (depends on 1)

The method as claimed in claim 1, wherein the bootloader binary further comprises the first public key, having the further step of:
f2) if the first public key sent by the microcontroller differs from the first public key sent by the programming device, terminating the method.

### Claim 7

A programming device for transmitting a boot code, with improved data security, to a microcontroller, the programming device being designed to
create a first private key and a password;
generate a bootloader binary for execution on the microcontroller, the bootloader binary comprising at least:
a bootstrap loader,
the password,
the first public key encrypted by the password,
a set of bootloader routines encrypted by the password for execution on the microcontroller, the set of encrypted bootloader routines comprising:
a generation routine for generating a second public key and a second private key, and
a decryption routine for decrypting the first public key; and
a decryption routine, for execution on the microcontroller, for decrypting the bootloader routines encrypted by the password;
estimate a tolerable total processing time;
transmit the bootloader binary from the programming device (10) to the microcontroller;
receive at least one second public key from the microcontroller;
if the actual processing times from the transmitting of the bootloader binary to the receiving of the second public key are outside the tolerable total processing time, terminate the method; and
if the actual processing times from the transmitting of the bootloader binary to the receiving of the second public key are within the tolerable total processing time, encrypt the boot code by the second public key and transmit the encrypted boot code to the microcontroller.

### Claim 8

A microcontroller for transmitting a boot code, with improved data security, from a programming device, the microcontroller being designed to
receive a bootloader binary from the programming device, the bootloader binary comprising at least one bootstrap loader code, the password, a decryption routine for decrypting bootloader routines encrypted by the password, and a set of bootloader routines encrypted by password;
execute the bootstrap loader code, the decryption routine and the decrypted bootloader routines;
transmit at least the second public key to the programming device; and
receive an encrypted boot code from the programming device.

### Claim 9

(canceled)

### Claim 10

(canceled)

### Claim 11

(canceled)
