# US 2020/0351108 A1 · Semiconductor device, update data-providing method, update data-receiving method, and program

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

- Number: US 2020/0351108 A1
- Document ID: US20200351108A1
- Status: Published application
- Kind: A1
- Application number: 16/955,435
- Filed: 2018-01-19
- Published: 2020-11-05
- Earliest claimed: 2018-01-19
- Assignees: Renesas Electronics Corporation; Mitsubishi Electric Corporation
- Applicants: Renesas Electronics Corporation; Mitsubishi Electric Corporation
- Inventors: Daisuke MORIYAMA; Daisuke SUZUKI
- Web page: https://patentgrep.com/patent/US20200351108A1

## CPC

- H04L 9/3271: {using challenge-response}
- 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/79: in semiconductor storage media, e.g. directly-addressable memories
- H04L 9/0662: {with particular pseudorandom sequence generator}
- H04L 9/0816: {Key establishment, i.e. cryptographic processes or cryptographic protocols whereby a shared secret becomes available to two or more parties, for subsequent use}
- H04L 9/0825: {using asymmetric-key encryption or public key infrastructure [PKI], e.g. key signature or public key certificates}
- H04L 9/0861: {Generation of secret information including derivation or calculation of cryptographic keys or passwords}
- H04L 9/0869: {involving random numbers or seeds}
- H04L 9/0891: {Revocation or update of secret information, e.g. encryption key update or rekeying}
- H04L 63/0435: {wherein the sending and receiving network entities apply symmetric encryption, i.e. same key used for encryption and decryption (cryptographic mechanisms or cryptographic arrangements for symmetric key encryption H04L9/06)}
- H04L: TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION (arrangements common to telegraphic and telephonic communication H04M)
- G06F: ELECTRIC DIGITAL DATA PROCESSING (computer systems based on specific computational models G06N)

## Abstract

A semiconductor device includes a memory, a random number generation circuit, and a control circuit. The memory stores key information, and the random number generation circuit generates first and second random number signals. The control circuit generates sixth and seventh random number signals from the first random number signal and the key information, generates encrypted update data from update data using the seventh random number signal, transmitts the first and second random number signals as request signals to an external terminal device, receives, from the external device, first and second response signals as response signals in response to the request signals, generates an eighth random number signal using the first response signal, the second and the sixth random number signals as input signals, and provides the encrypted update data for the external terminal device when the second response signal coincides with the eighth random number signal.

## Claims

### Claim 1

A semiconductor device comprising a memory, a random number generation circuit, and a control circuit and providing update data for an external terminal device, wherein
the memory stores key information,
the random number generation circuit generates a first random number signal and a second random number signal,
the control circuit generates a sixth random number signal and a seventh random number signal from the first random number signal and the key information,
the control circuit generates encrypted update data from the update data using a seventh random number signal,
the control circuit generates the first random number signal and the second random number signal as request signals to be transmitted to the external terminal device,
the control circuit receives a first response signal and a second response signal from the external terminal device as response signals in response to the request signals,
the control circuit generates an eighth random number signal using the first response signal, the second random number signal, and the sixth random number signal as input signals, and
the control circuit provides the encrypted update data for the external terminal device when the second response signal coincides with the eighth random number signal.

### Claim 2 (depends on 1)

The semiconductor device according to claim 1, wherein the control circuit calculates each of the sixth random number signal, the seventh random number signal, and the eighth random number signal by inputting them into one predetermined pseudorandom function.

### Claim 3 (depends on 1)

The semiconductor device according to claim 1, wherein the control circuit provides, when the second response signal does not coincide with the eighth random number signal, a random number signal whose number of digits is the same as that of the encrypted update data for the external terminal device in place of the encrypted update data.

### Claim 4 (depends on 1)

The semiconductor device according to claim 1, wherein the control circuit determines, when the control circuit has received, from the external terminal device, a third response signal, which is a response signal in response to the encrypted update data that has been provided, whether the third response signal coincides with a tenth random number signal generated using the first response signal, the second random number signal, and the sixth random number signal as input signals, registers that data has been updated when they coincide with each other, and registers that the data has not been updated when they do not coincide with each other.

### Claim 5

A semiconductor device comprising a memory and a control circuit and receiving encrypted update data from an external server device, wherein
the memory stores pre-update data and key information,
the control circuit receives, from the external server device, a first random number signal and a second random number signal as request signals,
the control circuit generates a sixth random number signal and a seventh random number signal from the first random number signal and the key information,
the control circuit generates a ninth random number signal and a tenth random number signal using the second random number signal and the sixth random number signal as input signals,
the control circuit generates a challenge code including a predetermined signal,
the control circuit outputs the ninth random number signal and the challenge code to the external server device as response signals in response to the request signals,
the control circuit receives, from the external server device, an authentication signal and the encrypted update data based on the output response signal, and
the control circuit performs, when the received authentication signal coincides with the tenth random number signal, processing of decryption the encrypted update data received from the external server device.

### Claim 6 (depends on 5)

The semiconductor device according to claim 5, wherein the control circuit calculates each of the sixth random number signal, the seventh random number signal, the ninth random number signal, and the tenth random number signal by inputting them into one predetermined pseudorandom function.

### Claim 7 (depends on 5)

The semiconductor device according to claim 5, wherein the control circuit does not perform, when the received authentication signal does not coincide with the tenth random number signal, processing of decryption the encrypted update data received from the external server device.

### Claim 8 (depends on 5)

The semiconductor device according to claim 5, wherein the control circuit generates the challenge code by sequentially incrementing the numerical value of a predetermined number of digits.

### Claim 9 (depends on 5)

The semiconductor device according to claim 5, wherein the control circuit generates a twelfth random number signal using the second random number signal and the sixth random number signal as input signals, thereby generating the challenge code.

### Claim 10 (depends on 5)

The semiconductor device according to claim 5, further comprising a random number generation circuit that generates a third random number signal, wherein
the control circuit receives, when it generates the ninth random number signal and the tenth random number signal, the third random number signal in addition to the second random number signal and the sixth random number signal as input signals, and
the control circuit outputs a third random number signal to the external server device as the challenge code.

### Claim 11 (depends on 5)

The semiconductor device according to claim 5, wherein
the control circuit generates a thirteenth random number signal as an output of a pseudorandom function at least including the second random number signal and the sixth random number signal as input signals, and
the control circuit outputs the thirteenth random number signal to the external server device when the processing of decryption the encrypted update data has been successfully performed.

### Claim 12 (depends on 11)

The semiconductor device according to claim 11, wherein the control circuit outputs a random number signal to the external server device in place of the thirteenth random number signal when the processing of decryption the encrypted update data has not been successfully performed.

### Claim 13 (depends on 12)

The semiconductor device according to claim 12, further comprising a true random number generation circuit,
wherein the random number signal is a true random number signal.

### Claim 14

A method for providing update data for an external terminal device, the method comprising:
storing key information;
generating a first random number signal and a second random number signal,
generating a sixth random number signal and a seventh random number signal from the first random number signal and the key information;
generating encrypted update data from the update data using a seventh random number signal;
generating the first random number signal and the second random number signal as request signals to be transmitted to the external terminal device;
receiving a first response signal and a second response signal from the external terminal device as response signals in response to the request signals;
generating an eighth random number signal using the first response signal, the second random number signal, and the sixth random number signal as input signals; and
providing the encrypted update data for the external terminal device when the second response signal coincides with the eighth random number signal.

### Claim 15

A method of receiving encrypted update data from an external server device, the method comprising:
storing pre-update data and key information;
receiving, from the external server device, a first random number signal and a second random number signal as request signals;
generating a sixth random number signal and a seventh random number signal from the first random number signal and the key information;
generating a ninth random number signal and a tenth random number signal using the second random number signal and the sixth random number signal as input signals;
generating a challenge code including a predetermined signal;
outputting the ninth random number signal and the challenge code to the external server device as response signals in response to the request signals;
receiving, from the external server device, an authentication signal and the encrypted update data based on the output response signal; and
performing, when the received authentication signal coincides with the tenth random number signal, processing of decryption the encrypted update data received from the external server device.

### Claim 16

A non-transitory computer readable medium storing a program for causing a computer to execute the following methods, the method being one for providing update data for an external terminal device and comprising:
storing key information;
generating a first random number signal and a second random number signal;
generating a sixth random number signal and a seventh random number signal from the first random number signal and the key information;
generating encrypted update data from the update data using the seventh random number signal;
generating the first random number signal and the second random number signal as request signals to be transmitted to the external terminal device;
receiving a first response signal and a second response signal from the external terminal device as response signals in response to the request signals;
generating an eighth random number signal using the first response signal, the second random number signal, and the sixth random number signal as input signals; and
providing the encrypted update data for the external terminal device when the second response signal coincides with the eighth random number signal.

### Claim 17

A non-transitory computer readable medium storing a program for causing a computer to execute the following method, the method being for receiving encrypted update data from an external server device and comprising:
storing pre-update data and key information;
receiving, from the external server device, a first random number signal and a second random number signal as request signals;
generating a sixth random number signal and a seventh random number signal from the first random number signal and the key information;
generating a ninth random number signal and a tenth random number signal using the second random number signal and the sixth random number signal as input signals;
generating a challenge code including a predetermined signal;
outputting the ninth random number signal and the challenge code to the external server device as response signals in response to the request signals;
receiving, from the external server device, an authentication signal and the encrypted update data based on the output response signal; and
performing, when the received authentication signal coincides with the tenth random number signal, processing of decryption the encrypted update data received from the external server device.

### Claim 18

A semiconductor device comprising a memory, a random number generation circuit, and a control circuit, receiving encrypted update data from an external server device, and providing the received encrypted update data for an external terminal device, wherein
the memory stores a common key that is available between the memory and the external server device,
the control circuit receives, from the external server device, encryption key data including a first random number signal, a second random number signal, and a sixth random number signal encrypted by the common key, and encrypted update data,
the control circuit decrypts the encryption key data by the common key to generate a sixth random number signal,
the control circuit outputs the first random number signal and the second random number signal as request signals to be transmitted to the external terminal device;
the control circuit receives a first response signal and a second response signal from the external terminal device as response signals in response to the request signals,
the control circuit generates an eighth random number signal using the first response signal, the second random number signal, and the sixth random number signal as input signals, and
the control circuit provides the encrypted update data for the external terminal device when the second response signal coincides with the eighth random number signal.

### Claim 19 (depends on 18)

The semiconductor device according to claim 18, wherein each of the sixth random number signal and the eighth random number signal is calculated by inputting them into one predetermined pseudorandom function.

### Claim 20 (depends on 18)

The semiconductor device according to claim 18, wherein the control circuit provides, when the second response signal does not coincide with the eighth random number signal, a random number signal whose number of digits is the same as that of the encrypted update data for the external terminal device in place of the encrypted update data.
