control device

By introducing program verification and startup authorization mechanisms into the control device, the security issues during the startup of multiple computing devices are resolved, reducing costs and improving security and efficiency.

CN116569170BActive Publication Date: 2026-11-20ASTEMO LTD
View PDF 2 Cites 0 Cited by

Patent Information

Application Number
CN202180083321.0
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Priority Date
2021-03-02
Filing Date
2021-08-23
Publication Date
2026-11-20
Estimated Expiration
2041-08-23

AI Technical Summary

Technical Problem

In the prior art, the control device for multiple computing devices is difficult to detect program tampering at startup, resulting in insufficient security, and the inclusion of an HSM module increases costs.

Method used

The verification unit of the first processing unit verifies the integrity of the first and second programs, and allows the second processing unit to start after the verification is passed. The security of the program is ensured by obtaining and starting the license notification, and tampering is prevented by using the secure area and the OTP area.

Benefits of technology

It enables the safe startup of multiple computing devices, reduces costs, and improves the safety and startup efficiency of the control device.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN116569170B_ABST
    Figure CN116569170B_ABST
Patent Text Reader

Abstract

The present invention aims at easily achieving the secure start of a control device having a plurality of arithmetic processing devices. The control device (5) has a first microcomputer (1) including a processor that executes a first program, a second microcomputer (2) including a processor that executes a second program, and a storage device (3) that stores the second program. The first microcomputer (1) has a verification section (1221) that verifies whether the first program and the second program are each tampered with, a first acquisition section (1126) that acquires the second program from the storage device (3) in a case where the first program is verified by the verification section (1221) as not being tampered with, and a start permission notification section (1124) that notifies the second microcomputer (2) of the start permission of the second program in a case where the second program is verified by the verification section (1221) as not being tampered with. The second microcomputer (2) has a second acquisition section (222) that acquires the second program from the storage device (3), and a start execution section (221) that causes the second program to start in a case where the start permission is notified.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This invention relates to a control device. Background Technology

[0002] For example, in vehicle control devices, a secure boot function is implemented that verifies the security of the program upon startup using a processing unit such as a microcontroller (hereinafter referred to as a microcomputer). To improve the security of the secure boot function, it is preferable to incorporate a dedicated module such as a Hardware Security Module (HSM) that ensures tamper-proof security into the processing unit. On the other hand, since the control device has multiple processing units, incorporating a security function like an HSM into all of these processing units significantly increases the cost of the control device.

[0003] As a technique for achieving secure startup of a control device without incorporating security features like HSMs into all multiple computing processing units, a known technique disclosed in Patent Document 1 is an example. Patent Document 1 discloses a secure boot technique for a device having two computing processing units, and discloses a technique for one computing processing unit to verify, upon startup, whether a program executed in the other computing processing unit has been tampered with.

[0004] Existing technical documents

[0005] Patent documents

[0006] [Patent Document 1] Japanese Patent Application Publication No. 2020-047064 Summary of the Invention

[0007] The problem the invention aims to solve

[0008] However, Patent Document 1 does not disclose a verification function for the program itself executed within a computing processing device. In the technology disclosed in Patent Document 1, even if the program itself executed within a computing processing device is tampered with, it is difficult to detect. Therefore, the technology disclosed in Patent Document 1 has room for improvement in terms of facilitating secure device startup.

[0009] The present invention was made in view of the above circumstances, and its object is to facilitate the safe startup of a control device having multiple computing processing units.

[0010] Technical means to solve the problem

[0011] To solve the above problems, the control device of the present invention includes: a first processing unit comprising a processor executing a first program; a second processing unit comprising a processor executing a second program; and a storage device storing the second program. The control device is characterized in that the first processing unit comprises: a verification unit that verifies whether the first program and the second program have been tampered with; a first acquisition unit that acquires the second program from the storage device if the verification unit verifies that the first program has not been tampered with; and a startup permission notification unit that, if the verification unit verifies that the second program has not been tampered with, notifies the second processing unit of a startup permission to start the second program. The second processing unit comprises: a second acquisition unit that acquires the second program from the storage device; and a startup execution unit that starts the second program upon notification of the startup permission.

[0012] The effects of the invention

[0013] According to the present invention, the safe startup of a control device having multiple processing units can be easily achieved.

[0014] Other issues, structures, and effects not mentioned above will be clarified through the following description of the implementation methods. Attached Figure Description

[0015] Figure 1 A diagram showing the functional configuration of the control device in Embodiment 1.

[0016] Figure 2 express Figure 1 The timing diagram shows the startup process of the control device.

[0017] Figure 3 express Figure 1 The flowchart shows the update process of the control device.

[0018] Figure 4 A diagram showing the functional configuration of the control device in Embodiment 2.

[0019] Figure 5 express Figure 4 The timing diagram shows the startup process of the control device. Detailed Implementation

[0020] Hereinafter, embodiments of the present invention will be described using the accompanying drawings. Furthermore, unless otherwise specified, components that are given the same reference numerals in each embodiment have the same function in each embodiment, and their descriptions are omitted.

[0021] [Implementation Method 1]

[0022] In this embodiment, an example of a control device equipped with a secure boot function that verifies the security of the program upon startup using a computing device such as a microcomputer is described. However, the technical concept of this invention can be widely applied to information security technologies such as encryption processing and electronic signature verification processing.

[0023] Control device 5 is a device for electrically controlling the controlled object. The controlled object of control device 5 is not particularly limited. The controlled object of control device 5 can also be machinery or equipment with a long product lifespan, such as automobiles. For example, control device 5 can also be composed of an on-board ECU.

[0024] Figure 1 This is a diagram showing the functional configuration of the control device 5 in Embodiment 1.

[0025] The control device 5 includes a first microcomputer 1, a second microcomputer 2, and a storage device 3. The storage device 3 is connected to the first microcomputer 1 and the second microcomputer 2 via a communication bus 4. However, the communication bus 4 is physically composed of multiple communication buses. The specifications of the multiple communication buses constituting the communication bus 4 can be all the same or different. The specifications are, for example, SPI (Serial Peripheral Interface) or MII (Media Independent Interface).

[0026] Furthermore, the first microcomputer 1 is an example of a "first arithmetic processing device". The second microcomputer 2 is an example of a "second arithmetic processing device".

[0027] The first microcomputer 1 includes a main control unit 111, a main program storage unit 112, a main data storage unit 113, and a communication unit 114, which are interconnected via a bus 115. In this embodiment, the area to which these components of the first microcomputer 1 belong and the bus 115 are also referred to as the "main area 11".

[0028] Furthermore, the first microcomputer 1 includes a security control unit 123, a security program storage unit 122, and a security data storage unit 121 interconnected via a bus 125. In this embodiment, the area to which these components of the first microcomputer 1 belong and the bus 125 are referred to as the "security area 12".

[0029] Main area 11 is the area in the first microcomputer 1 other than secure area 12. Secure area 12 is a tamper-proof area. That is, the first microcomputer 1 has: a tamper-proof secure area 12 and the area other than secure area 12, namely main area 11. Secure area 12 is the area where programs and data can be rewritten.

[0030] From a security perspective, the bus 115 of the main area 11 and the bus 125 of the security area 12 are not directly connected, but are indirectly connected via the security control unit 123. The transmission and reception of commands and data between the main area 11 and the security area 12 are performed through the security control unit 123.

[0031] The main control unit 111 has a processor (CPU, MPU, or DSP) that executes the program stored in the main program storage unit 112. Furthermore, the main control unit 111 is an example of a "processor" included in a "first arithmetic processing device".

[0032] The main program storage unit 112 stores the program executed by the main control unit 111. The main data storage unit 113 stores the data used by the main control unit 111 when executing the program. Both the main program storage unit 112 and the main data storage unit 113 are composed of non-volatile storage devices such as flash memory, EEPROM, SSD, FRAM (registered trademark), or hard disk. Both the main program storage unit 112 and the main data storage unit 113 can be composed of multiple storage devices. The main program storage unit 112 can also store the program across multiple storage devices. The main data storage unit 113 can also store data across multiple storage devices.

[0033] The main program storage unit 112 and the main data storage unit 113 can each be a memory having a ROM as a non-volatile storage device and a RAM as a volatile storage device. The ROM stores a fixed program. The RAM can also be a high-speed and volatile storage device such as DRAM, capable of temporarily storing the program executed by the main control unit 111 and the data used during the execution of the program. The main program storage unit 112 and the main data storage unit 113 can have some or all of them as constituent elements of each other. Even if there is no clear distinction as a device, the main program storage unit 112 can be the part that stores the program, and the main data storage unit 113 can be the part that stores the data.

[0034] The main program storage unit 112 stores the main control program 1121, the first verification expectation value 1122, the main update unit 1123, the start permission notification unit 1124, the obtain permission notification unit 1125, and the first obtain unit 1126. The main control program 1121, the main update unit 1123, the start permission notification unit 1124, the obtain permission notification unit 1125, and the first obtain unit 1126 are programs executed by the main control unit 111, and are programs used to implement the functions of the first microcomputer 1 in the control device 5.

[0035] In this embodiment, the program executed by the main control unit 111 and stored in the main program storage unit 112 is also referred to as the "first program". The first program includes, for example, the main control program 1121, the main update unit 1123, the startup license notification unit 1124, the license acquisition notification unit 1125, and the first acquisition unit 1126. Additionally, in this embodiment, the program executed by the control unit 21 and stored in the second microcomputer storage area 31 of the storage device 3 is also referred to as the "second program". The second program is, for example, the control program 311.

[0036] The main control program 1121 is a program used by the control device 5 to control the controlled object, and is executed by the main control unit 111 of the first microcomputer 1. To implement multiple control functions as the control device 5, there can be multiple main control programs 1121. The first verification expectation value 1122 is a value expected to be calculated during the process of verifying whether the first program has been tampered with. The first verification expectation value 1122 can be stored in a location that the first microcomputer 1 can read. The first verification expectation value 1122 can be stored in any one of, for example, the main data storage unit 113, the secure data storage unit 121, and the secure program storage unit 122.

[0037] If the verification unit 1221 verifies that the first program has not been tampered with, the first acquisition unit 1126 acquires the second program and the second verification expectation value 312 stored in the second microcomputer storage area 31 from the storage device 3. If the verification unit 1221 verifies that the first program has not been tampered with, the acquisition license notification unit 1125 sends an acquisition license notification to the second microcomputer 2, authorizing the second microcomputer 2 to acquire the second program from the storage device 3. Before the startup license notification unit 1124 sends a startup license notification to the second microcomputer 2, the acquisition license notification unit 1125 sends an acquisition license notification to the second microcomputer 2. If the verification unit 1221 verifies that the second program has not been tampered with, the startup license notification unit 1124 sends a startup license notification to the second microcomputer 2, authorizing the second microcomputer 2 to start the second program.

[0038] If the verification unit 1221 verifies that the update package has not been tampered with, the main update unit 1123 updates the program or data of the update target stored in the main program storage unit 112, the main data storage unit 113, or the second microcomputer storage area 31 of the storage device 3 using the update package. Furthermore, if the verification unit 1221 verifies that the update package has not been tampered with, the main update unit 1123 cooperates with the security update unit 1223 to update the program or data of the update target stored in the secure program storage unit 122 or the secure data storage unit 121 using the update package.

[0039] The update object is a program or data pre-determined as the update object. An update package is a program or data used to update the update object. The update package contains a verification expectation value to be calculated in the process of verifying whether the update package has been tampered with. The update package is sent to control device 5 from an external device such as a central server or terminal.

[0040] Although not specifically illustrated, the main data storage unit 113 stores control data. This control data is used in the processing of the main control program 1121, main update unit 1123, start permission notification unit 1124, obtain permission notification unit 1125, and first acquisition unit 1126 executed by the main control unit 111, and is used to implement the functions of the first microcomputer 1 in the control device 5. Multiple sets of this control data may exist depending on the application.

[0041] The communication unit 114 has the function of communicating between the first microcomputer 1 and other components of the control device 5, which includes the second microcomputer 2, and the function of communicating with external devices of the control device 5. The communication unit 114 can be composed of communication modules conforming to specifications such as SPI, MII, CAN, CAN FD, Ethernet, or FlexRay. Multiple communication units can also be configured for the communication unit 114 depending on the application and communication method. The communication unit 114 can also be shared with communication modules used for other communications. Furthermore, in the case of wireless communication, the communication unit 114 includes an antenna and a modem circuit. In the case of wired communication, the communication unit 114 includes a connector and a modem circuit.

[0042] The security control unit 123 is composed of a secure microcomputer such as an HSM, SHE, or TPM, or a processor (CPU, MPU, or DSP) referred to as a secure core. The security control unit 123 executes a program stored in the secure program storage unit 122. The security control unit 123 is tamper-proof. Alternatively, the HSM, SHE, or TPM constituting the security control unit 123 may also be configured to include both a secure program storage unit 122 and a secure data storage unit 121.

[0043] The secure program storage unit 122 stores the program executed by the security control unit 123. The secure data storage unit 121 stores the data used by the security control unit 123 when executing the program. Both the secure program storage unit 122 and the secure data storage unit 121 are tamper-proof. Both the secure program storage unit 122 and the secure data storage unit 121 are constructed from non-volatile storage devices such as flash memory, EEPROM, SSD, FRAM, or hard disk. Both the secure program storage unit 122 and the secure data storage unit 121 can be constructed from multiple storage devices. The secure program storage unit 122 can also store programs distributed across multiple storage devices. The secure data storage unit 121 can also store programs distributed across multiple storage devices.

[0044] The secure program storage unit 122 and the secure data storage unit 121 can each be a memory having a ROM as a non-volatile storage device and a RAM as a volatile storage device. The ROM stores a fixed program. The RAM can be a high-speed and volatile storage device such as DRAM, which can temporarily store the program executed by the security control unit 123 and the data used during the execution of the program. The secure program storage unit 122 and the secure data storage unit 121 can have some or all of them as components of each other. Even if there is no clear distinction as a device, the secure program storage unit 122 can be the part that stores the program, and the secure data storage unit 121 can be the part that stores the data.

[0045] The security program storage unit 122 stores the verification unit 1221, the encryption processing unit 1222, and the security update unit 1223. The verification unit 1221, the encryption processing unit 1222, and the security update unit 1223 are programs executed by the security control unit 123, which are programs used to implement the security functions of the control device 5 mounted in the first microcomputer 1.

[0046] The verification unit 1221 verifies whether the program stored in the main area 11 has been tampered with. That is, the verification unit 1221 verifies whether the first program has been tampered with. Specifically, the verification unit 1221 obtains the program corresponding to the verification range information 1212 in the first program. The verification unit 1221 calculates the verification value based on a prescribed algorithm and an encryption key 1211 for calculating the verification value corresponding to the verification range information 1212 to verify whether the program has been tampered with. Then, the verification unit 1221 compares the calculated verification value with the first verification expectation value 1122. When the calculated verification value matches the first verification expectation value 1122, the verification unit 1221 determines that the first program has not been tampered with; when the calculated verification value does not match the first verification expectation value 1122, the verification unit 1221 determines that it cannot be determined that the first program has not been tampered with.

[0047] Furthermore, the verification unit 1221 verifies whether the program stored in the second microcomputer storage area 31 of the storage device 3 has been tampered with. That is, the verification unit 1221 verifies whether the second program has been tampered with. Specifically, the verification unit 1221 obtains the program corresponding to the verification range information 1212 in the second program. The verification unit 1221 calculates the verification value based on a prescribed algorithm for calculating the verification value corresponding to the verification range information 1212 and an encryption key 1211. Then, the verification unit 1221 compares the calculated verification value with the second verification expectation value 312. When the calculated verification value matches the second verification expectation value 312, the verification unit 1221 determines that the second program has not been tampered with; when the calculated verification value does not match the second verification expectation value 312, the verification unit 1221 determines that it cannot be determined that the second program has not been tampered with.

[0048] Next, the verification unit 1221 verifies whether the update package has been tampered with. Specifically, the verification unit 1221 obtains the verification expectation value contained in the update package and obtains the program or data corresponding to the verification range information 1212 in the update package. The verification unit 1221 calculates the verification value based on a prescribed algorithm and encryption key 1211 for calculating the verification value corresponding to the verification range information 1212 and verifying whether the program or data has been tampered with. Then, the verification unit 1221 compares the calculated verification value with the verification expectation value contained in the update package. If the calculated verification value matches the verification expectation value contained in the update package, the verification unit 1221 determines that the update package has not been tampered with; if the calculated verification value does not match the verification expectation value contained in the update package, the verification unit 1221 determines that the update package cannot be determined to be untampered with.

[0049] The verification processes performed by the verification unit 1221 may be MAC (Message Authentication Code) verification processes using a public key, RSA (Rivest-Shamir-Adleman cryptosystem) verification processes using a public key, or ECDSA (Elliptic Curve Digital Signature Algorithm) verification processes using an electronic signature.

[0050] The encryption processing unit 1222 performs encryption processing to encrypt specified data, or decryption processing to decrypt encrypted data. The security update unit 1223, in cooperation with the main update unit 1123, updates the program or data of the update target stored in the secure program storage unit 122 or the secure data storage unit 121 using update packages. Furthermore, the main update unit 1123 and the security update unit 1223, which update update targets stored in the secure area 12, are examples of an "update unit".

[0051] The secure data storage unit 121 stores encryption keys 1211 and verification range information 1212. Encryption key 1211 is data representing the encryption key used in the verification process performed by verification unit 1221. Multiple encryption keys 1211 may exist depending on the application. Verification range information 1212 is information indicating the program or data that verification unit 1221 is verifying. Verification range information 1212 may be address information. For example, verification range information 1212 used for verifying whether a first program has been tampered with is address information specifying the storage destination of a portion or all of the program corresponding to the first program. For example, verification range information 1212 used for verifying whether a second program has been tampered with is address information specifying the storage destination of a portion or all of the program corresponding to the second program. For example, verification range information 1212 used for verifying whether an update package has been tampered with is address information specifying the storage destination of a portion or all of the program or data of the update package.

[0052] Although not specifically illustrated, the security data storage unit 121 stores security control data. This security control data is used in the processing of the verification unit 1221, encryption processing unit 1222, and security update unit 1223 executed by the security control unit 123, and is used to implement the security functions of the control device 5 mounted in the first microcomputer 1. Multiple sets of security control data may exist depending on the application.

[0053] The second microcomputer 2 has a control unit 21, a program storage unit 22, a data storage unit 23, and a communication unit 24 that are interconnected via a bus 25.

[0054] The control unit 21 has a processor (CPU, MPU, or DSP) that executes the program stored in the program storage unit 22 and the control program 311 stored in the second microcomputer storage area 31 of the storage device 3. Furthermore, the control unit 21 is an example of a "processor" included in a "second arithmetic processing device".

[0055] The program storage unit 22 stores the program executed by the control unit 21. The data storage unit 23 stores the data used by the control unit 21 when executing the program. Both the program storage unit 22 and the data storage unit 23 are constructed from non-volatile storage devices such as flash memory, EEPROM, SSD, FRAM, or hard disk. The program storage unit 22 and the data storage unit 23 can each be constructed from multiple storage devices. The program storage unit 22 can also store the program across multiple storage devices. The data storage unit 23 can also store data across multiple storage devices.

[0056] The program storage unit 22 and the data storage unit 23 can each be a memory having a ROM as a non-volatile storage device and a RAM as a volatile storage device. The ROM stores a fixed program. The RAM can also be a high-speed and volatile storage device such as DRAM, capable of temporarily storing the program executed by the control unit 21 and the data used during the execution of the program. The program storage unit 22 and the data storage unit 23 can also have some or all of them as constituent elements of each other. Even if there is no clear distinction as a device, the program storage unit 22 is the part that stores the program, and the data storage unit 23 is the part that stores the data.

[0057] The program storage unit 22 stores the startup execution unit 221 and the second acquisition unit 222. The startup execution unit 221 and the second acquisition unit 222 are programs executed by the control unit 21, which are programs used to implement the functions of the second microcomputer 2 in the control device 5.

[0058] To prevent unauthorized rewriting, the startup execution unit 221 and the second acquisition unit 222 are stored in an OTP (One Time Programmable) area. The OTP area is a storage area where a program can only be written once; once written, it cannot be rewritten to a different program. That is, the second microcomputer 2 has an OTP area in the program storage unit 22 where the program cannot be rewritten. The startup execution unit 221 and the second acquisition unit 222 are stored in the OTP area.

[0059] The second acquisition unit 222 acquires a program stored in the second microcomputer storage area 31 of the storage device 3 at a predetermined time. Specifically, after receiving permission from the first microcomputer 1, the second acquisition unit 222 acquires a second program from the second microcomputer storage area 31 of the storage device 3. The second acquisition unit 222 expands the acquired second program and stores it in a predetermined storage area of ​​the second microcomputer 2. When acquiring the second program from the second microcomputer storage area 31 of the storage device 3, the second acquisition unit 222 can also acquire data stored in the second microcomputer storage area 31.

[0060] The startup execution unit 221 starts the program stored in the second microcomputer storage area 31 of the storage device 3 at a predetermined time. Specifically, when the startup permission is granted by the first microcomputer 1, the startup execution unit 221 starts the second program obtained from the second microcomputer storage area 31 of the storage device 3. Furthermore, after the power to the control device 5 is turned on, the startup execution unit 221 puts the second microcomputer 2 into a standby state until the acquisition permission is granted by the first microcomputer 1. After the second acquisition unit 222 acquires the second program, the startup execution unit 221 puts the second microcomputer 2 into a standby state until the startup permission is granted by the first microcomputer 1.

[0061] Although not specifically illustrated, the data storage unit 23 stores control data. This control data is used in the processing of the control program 311 executed by the control unit 21, the start execution unit 221, and the second acquisition unit 222, and is used to realize the functions of the second microcomputer 2 in the control device 5. Multiple control data sets may exist depending on the application.

[0062] The communication unit 24 has the function of communicating with the second microcomputer 2 and other components of the control device 5 including the first microcomputer 1, and the function of communicating with external devices of the control device 5. The communication unit 24 can also be composed of communication modules conforming to specifications such as SPI, MII, CAN, CANFD, Ethernet, or FlexRay. Multiple communication units can also be configured for the communication unit 24 depending on the application and communication method. The communication unit 24 can also be shared with communication modules used for other communications. Furthermore, in the case of wireless communication, the communication unit 24 includes an antenna and a modem circuit. In the case of wired communication, the communication unit 24 includes a connector and a modem circuit.

[0063] Storage device 3 is composed of a non-volatile storage device such as flash memory, EEPROM, SSD, FRAM, or disk. Storage device 3 has a second microcomputer storage area 31. The second microcomputer storage area 31 stores a control program 311 as a second program and a second verification expectation value 312.

[0064] Control program 311 is a program used by control device 5 to control the controlled object, and is executed by control unit 21 of second microcomputer 2. Control program 311 is deployed in a designated storage area of ​​second microcomputer 2 and executed by control unit 21 according to start execution unit 221. Control program 311 can be stored in a location that can be read by both first microcomputer 1 and second microcomputer 2. Second verification expectation value 312 is a value expected to be calculated in the process of verifying whether the second program has been tampered with. Second verification expectation value 312 can be stored in a location that can be read by first microcomputer 1. Second verification expectation value 312 can be stored in any of, for example, main data storage unit 113, secure data storage unit 121, and secure program storage unit 122.

[0065] Alternatively, the control device 5 may also include multiple microcomputers with the same configuration as the second microcomputer 2. In this case, the storage device 3 stores multiple control programs 311 and multiple second verification expectation values ​​312.

[0066] Figure 2 It means Figure 1 The timing diagram shows the startup process of the control device 5.

[0067] exist Figure 2 In this description, it is assumed that the main control unit 111 is the execution entity of the program stored in the main program storage unit 112, and the security control unit 123 is the execution entity of the program stored in the security program storage unit 122. It is also assumed that the control unit 21 is the execution entity of the program stored in the program storage unit 22 and the second microcomputer storage area 31.

[0068] Figure 2 The arrows shown represent the conceptual flow of commands and data, rather than specifying the direction of communication or instructions. Figure 2 The startup process shown may include, except Figure 2 The flow of commands and data beyond the arrows shown.

[0069] Figure 2 The startup process shown begins after the power to the control device 5 is turned on. The power to the control device 5 is turned on, for example, by turning on the ignition switch of the vehicle or other object controlled by the control device 5.

[0070] In step S101, the first microcomputer 1 uses the verification unit 1221 to verify whether the program stored in the main area 11 has been tampered with. For example, the first microcomputer 1 obtains the program corresponding to the address represented by the verification range information 1212, calculates the verification value, and compares it with the first verification expectation value 1122. If the calculated verification value matches the first verification expectation value 1122, the first microcomputer 1 determines that the first program has not been tampered with and determines that the verification is OK (verification successful). On the other hand, if the calculated verification value does not match the first verification expectation value 1122, the first microcomputer 1 cannot determine that the first program has not been tampered with and determines that the verification is NG (verification unsuccessful).

[0071] In step S102, if the first microcomputer 1 determines that the verification is OK in step S101, it proceeds to step S104. On the other hand, if the first microcomputer 1 determines that the verification is NG in step S101, it proceeds to step S103.

[0072] In step S103, the first microcomputer 1 uses the verification unit 1221 to perform predetermined error handling. For example, as error handling, the first microcomputer 1 may re-execute the verification process of step S101, or be set to perform inefficient operation that restricts specific functions of the first microcomputer 1, or completely stop the start of the control device 5. In addition, the first microcomputer 1 may report verification failure or perform these error handling actions.

[0073] In step S104, the first microcomputer 1 uses the first acquisition unit 1126 to acquire the second program and the second verification expectation value 312 stored in the second microcomputer storage area 31 from the storage device 3.

[0074] In step S105, the first microcomputer 1 uses the license acquisition notification unit 1125 to send a license acquisition notification for the second program to the second microcomputer 2.

[0075] In step S106, the first microcomputer 1 uses the verification unit 1221 to verify whether the second program obtained in step S104 has been tampered with. For example, the first microcomputer 1 obtains the program corresponding to the address represented by the verification range information 1212, calculates the verification value, and compares it with the second verification expectation value 312. If the calculated verification value matches the second verification expectation value 312, the first microcomputer 1 determines that the second program has not been tampered with and determines that the verification is OK (verification successful). On the other hand, if the calculated verification value does not match the second verification expectation value 312, the first microcomputer 1 cannot determine that the second program has not been tampered with and determines that the verification is NG (verification unsuccessful).

[0076] In step S107, if the first microcomputer 1 determines that the verification is OK in step S106, it proceeds to step S109. On the other hand, if the first microcomputer 1 determines that the verification is NG in step S106, it proceeds to step S108.

[0077] In step S108, the first microcomputer 1 uses the verification unit 1221 to perform predetermined error handling. For example, as error handling, the first microcomputer 1 may re-execute the verification process of step S106, or be set to perform inefficient operation that restricts specific functions of the second microcomputer 2, or completely stop the start of the control device 5. In addition, the first microcomputer 1 may report verification failure or perform these error handling actions.

[0078] In step S109, the first microcomputer 1 uses the startup permission notification unit 1124 to notify the second microcomputer 2 of the startup permission.

[0079] In step S201, the second microcomputer 2 uses the startup execution unit 221 to switch to standby mode until the first microcomputer 1 notifies the second program of the permission to obtain permission.

[0080] In step S202, if the first microcomputer 1 notifies the second microcomputer 2 of the permission to acquire the second program, the second microcomputer 2 uses the second acquisition unit 222 to acquire the second program stored in the storage area 31 of the second microcomputer from the storage device 3. Then, the second microcomputer 2 uses the startup execution unit 221 to switch to a standby state until the first microcomputer 1 notifies the second microcomputer 1 of the permission to start the second program.

[0081] In step S203, after the first microcomputer 1 has been notified of the permission to start the second program, the second microcomputer 2 uses the startup execution unit 221 to start the second program obtained in step S202.

[0082] In step S204, if the startup of the second program is complete, the second microcomputer 2 uses the startup execution unit 221 to notify the first microcomputer 1 that the startup of the second microcomputer 2 is complete. Figure 2 As shown in the diagram, control device 5 can be safely started.

[0083] in addition, Figure 2 Step S105 only needs to be executed after step S102 and before step S109, and does not need to be executed between steps S104 and S106. For example, step S105 can be executed between steps S102 and S104, or between steps S107 and S109.

[0084] Figure 3 It means Figure 1 The flowchart shows the update process of the control device 5.

[0085] Figure 3 The update process shown begins when an update request for the program or data of the control device 5 is sent from an external device of the control device 5.

[0086] In step S301, the control device 5 receives an update request from an external device via communication unit 114 or communication unit 24. The control device 5 then uses the main update unit 1123 to transition to a standby state, which remains in standby until an update packet is received. The control device 5 may also perform a pre-defined device authentication before transitioning to this standby state to verify that the external device sending the update request is a legitimate device.

[0087] In step S302, the control device 5 receives an update package from an external device using the main update unit 1123 and stores it in a designated storage area. The designated storage area for storing the update package may, for example, be located in either or both of the main data storage unit 113 and the storage device 3. The designated storage area for storing the update package may be located in a volatile storage device or a non-volatile storage device.

[0088] In step S303, the first microcomputer 1 uses the verification unit 1221 to verify whether the update packet received in step S302 has been tampered with. For example, the first microcomputer 1 obtains the program corresponding to the address represented by the verification range information 1212, calculates the verification value, and compares it with the verification expectation value used for the update packet. If the calculated verification value matches the verification expectation value, the first microcomputer 1 determines that the update packet has not been tampered with and determines that the verification is OK (verification successful). On the other hand, if the calculated verification value does not match the verification expectation value, the first microcomputer 1 cannot determine that the update packet has not been tampered with and determines that the verification is NG (verification unsuccessful).

[0089] In step S304, if the first microcomputer 1 determines that the verification is OK in step S303, it proceeds to step S306. On the other hand, if the first microcomputer 1 determines that the verification is NG in step S303, it proceeds to step S305.

[0090] In step S305, the first microcomputer 1 uses the verification unit 1221 to perform a predetermined error handling. For example, as an error handling step, the first microcomputer 1 may re-execute the verification process of step S303, or set to restrict updates of specific functions of the first microcomputer 1 or the second microcomputer 2, or completely stop updates of the control device 5. Furthermore, the first microcomputer 1 may report a verification failure or perform these error handling steps.

[0091] In step S306, the first microcomputer 1 uses the encryption processing unit 1222 to decrypt the update package based on the encryption key 1211 used for confidentiality purposes and a prescribed algorithm. For example, the first microcomputer 1 can also perform encryption and decryption processing using AES-CBC. Furthermore, the first microcomputer 1 can perform decryption processing based on the encryption key 1211 used for the update package, which is stored in the secure data storage unit 121 accessible only to the security control unit 123.

[0092] In step S307, the first microcomputer 1 uses the main update unit 1123 (and the security update unit 1223) to store the update package decrypted in step S306 to the storage destination of the program or data to be updated, thus updating the object. The update package may contain address information specifying the storage destination of the updated object. The update package may consist of multiple update programs or update data. Each of these multiple update programs or update data may be assigned an ID corresponding to its storage destination. For example, if the update package consists of an update program targeting the verification unit 1221 and update data targeting the encryption key 1211, the update program may be assigned an ID corresponding to the address information of the verification unit 1221, and the update data may be assigned an ID corresponding to the address information of the encryption key 1211. Figure 3 As shown in the diagram, control device 5 can safely update the update object.

[0093] As described above, the control device 5 in Embodiment 1 is a control device comprising a first microcomputer 1 including a processor executing a first program; a second microcomputer 2 including a processor executing a second program; and a storage device 3 storing the second program. The first microcomputer 1 includes: a verification unit 1221 that verifies whether the first program and the second program have been tampered with; and a first acquisition unit 1126 that acquires the second program from the storage device 3 if the verification unit 1221 verifies that the first program has not been tampered with. Furthermore, the first microcomputer 1 includes a startup permission notification unit 1124 that, if the verification unit 1221 verifies that the second program has not been tampered with, notifies the second microcomputer 2 of a startup permission to start the second program. The second microcomputer 2 includes: a second acquisition unit 222 that acquires the second program from the storage device 3; and a startup execution unit 221 that starts the second program upon notification of the startup permission.

[0094] With this configuration, when the control device 5 of Embodiment 1 is started, the first microcomputer 1, which has a program verification function, can verify not only the second program executed in the second microcomputer 2, which does not have a program verification function, but also the first program executed in the first microcomputer 1 itself. Then, the first microcomputer 1 can verify the second program based on the function of the first program, which has been confirmed to be untampered with, and allow the start of the second program, which has been confirmed to be untampered with. Therefore, even if the program verification function is not integrated into both the first microcomputer 1 and the second microcomputer 2, the control device 5 of Embodiment 1 can properly detect and respond to the possibility of tampering with either the first program or the second program. Therefore, the control device 5 of Embodiment 1 can easily realize the secure start-up of a control device equipped with multiple processing units.

[0095] Furthermore, in the control device 5 of Embodiment 1, the first microcomputer 1 has a secure area 12 that is tamper-proof, and the second microcomputer 2 has an OTP area that cannot be rewritten. The verification unit 1221 is stored in the secure area 12, and the second acquisition unit 222 and the startup execution unit 221 are stored in the OTP area.

[0096] With this configuration, the first microcomputer 1 of Embodiment 1 can verify the first program upon startup based on the verification unit 1221 stored in a tamper-proof secure area 12 (such as an HSM). Then, the first microcomputer 1 can verify the second program based on the functionality of the first program, which has been confirmed to be untampered with, and permit the startup of the second program, which has been confirmed to be untampered with. On the other hand, the second microcomputer 2 of Embodiment 1 can acquire the second program using the second acquisition unit 222 stored in an untamperable OTP area. Then, if the startup of the second program is permitted, the second microcomputer 2 can start the second program using the startup execution unit 221 stored in the untamperable OTP area. Therefore, the control device 5 of Embodiment 1 can reliably prevent the verification unit 1221, which implements the security functions of the control device 5, the second acquisition unit 222 related to the startup of the second program, and the startup execution unit 221 from being tampered with. Therefore, even if the control device 5 of Embodiment 1 does not incorporate high-security features such as HSM into all of the first microcomputer 1 and the second microcomputer 2, it can further improve the security of the control device with multiple computing devices when it is started.

[0097] Furthermore, in the control device 5 of Embodiment 1, after the second acquisition unit 222 acquires the second program, the execution unit 221 is activated to transfer the second microcomputer 2 to a standby state until permission to start the second program is notified.

[0098] With this configuration, in the control device 5 of Embodiment 1, during the period from obtaining the second program to notifying the start permission, it is possible to reliably prevent an improper situation such as the second microcomputer 2 starting an illegal program. Therefore, the control device 5 of Embodiment 1 can further improve the security of the control device equipped with multiple processing units during startup.

[0099] Furthermore, in the control device 5 of Embodiment 1, the first microcomputer 1 has an acquisition permission notification unit 1125. This acquisition permission notification unit 1125, upon verification by the verification unit 1221 that the first program has not been tampered with, notifies the second microcomputer 2 of permission to acquire the second program from the storage device 3. The acquisition permission notification unit 1125 notifies the second microcomputer 2 of the acquisition permission before the launch permission notification unit 1124 notifies the second microcomputer 2 of the launch permission. Upon receiving the acquisition permission notification, the second acquisition unit 222 acquires the second program from the storage device 3.

[0100] With this configuration, if the second microcomputer 2 in Embodiment 1 confirms that the first program has not been tampered with, it acquires the second program before notifying the second program of its startup permission; if startup permission is granted, the second program can be started immediately. Therefore, the control device 5 in Embodiment 1 can easily achieve safe and high-speed startup of a control device equipped with multiple processing units.

[0101] Furthermore, in the control device 5 of Embodiment 1, after the power to the control device 5 is turned on, the execution unit 221 is activated to transfer the second microcomputer 2 to a standby state until the second program is notified of the permission to obtain permission.

[0102] With this configuration, in the control device 5 of Embodiment 1, during the period from the power-on of the control device 5 to the notification of permission acquisition, it is possible to reliably prevent an improper situation such as the second microcomputer 2 starting a tampered program. Therefore, the control device 5 of Embodiment 1 can further improve the security of the control device equipped with multiple processing units during startup.

[0103] Furthermore, in the control device 5 of Embodiment 1, the secure area 12 is an area where the program can be rewritten. The first microcomputer 1 has a main update unit 1123 and a security update unit 1223 that update update objects stored in the secure area 12 using update packages. The verification unit 1221 verifies whether the update package has been tampered with. If the verification unit 1221 verifies that the update package has not been tampered with, the main update unit 1123 and the security update unit 1223 use the update package to update the update object.

[0104] With this configuration, in the control device 5 of Embodiment 1, the algorithm of the verification unit 1221 and the data of the encryption key 1211 stored in the secure area 12 can be updated.

[0105] Here, the control device 5 can also be a control device for machinery or equipment with a long product lifespan, such as automobiles. For example, if the control device 5 is composed of an on-board ECU, since the driving control of the automobile involves human lives, the control device 5 must continuously ensure the safety of driving control for a long period of more than 10 years. On the other hand, during the long-term use of the control device 5, there is a possibility that the algorithms or data constituting the verification function of the program related to driving control may become dangerous. In the case of such dangerous algorithms or data, they should be updated to safe algorithms or data. However, if the program verification is stored in the OTP area as in Patent Document 1, these dangerous algorithms or data cannot be updated to safe algorithms or data. Therefore, in a control device like Patent Document 1 where the program verification function is stored in the OTP area, it is difficult to achieve long-term safe start-up during the product lifespan when the controlled object is machinery with a long product lifespan.

[0106] In contrast, in the control device 5 of Embodiment 1, the data of the verification unit 1221, which is stored in a secure area 12 such as an HSM that ensures tamper-proof security, can be updated. Therefore, the control device 5 of Embodiment 1 can update the data of the verification unit 1221's algorithm or encryption key 1211 to secure algorithms or data before they become dangerous. Thus, even if the controlled object is a machine with a long product lifespan, the control device 5 of Embodiment 1 can achieve long-term secure startup throughout the product's lifespan.

[0107] [Implementation Method 2]

[0108] use Figure 4 and Figure 5 The control device 5 of Embodiment 2 will be described. In the control device 5 of Embodiment 2, the same configuration and operation as in Embodiment 1 will be omitted from the description.

[0109] Figure 4 This is a diagram showing the functional configuration of the control device 5 in Embodiment 2. Figure 5 It means Figure 4 The timing diagram shows the startup process of control device 5. Additionally, Figure 5 The startup process shown is Figure 2 The startup process shown begins after the power to the control device 5 is turned on.

[0110] In the control device 5 of Embodiment 2, similarly to Embodiment 1, the verification unit 1221 is stored in the secure area 12, and the second acquisition unit 222 and the start execution unit 221 are stored in the OTP area of ​​the second microcomputer 2.

[0111] In the control device 5 of Embodiment 2, unlike in Embodiment 1, the storage device 3 can store not only the second program but also the first program. Specifically, as shown in the figure... Figure 4 As shown, the main control program 1121, main update unit 1123, startup license notification unit 1124, and license acquisition notification unit 1125 of Embodiment 2 can also be stored as a first program in the first microcomputer storage area 32 of the storage device 3. The first verification expectation value 1122 of Embodiment 2 can also be stored in the first microcomputer storage area 32 of the storage device 3.

[0112] Furthermore, in the control device 5 of Embodiment 2, unlike Embodiment 1, the main program storage unit 112 may have an OTP area where the program cannot be rewritten, and the first acquisition unit 1126 is stored in this OTP area. Moreover, in Embodiment 2, the first acquisition unit 1126 can acquire not only the second program and the second verification expectation value 312 from the storage device 3, but also the first program and the first verification expectation value 1122.

[0113] Specifically, such as Figure 5 As shown in step S111, in Embodiment 2, the first microcomputer 1 uses the first acquisition unit 1126 to acquire the first program from the first microcomputer storage area 32 of the storage device 3 after the power to the control device 5 is turned on and before step S101. Afterwards, the first microcomputer 1 of Embodiment 2 can also execute the same steps S101 to S109 as in Embodiment 1. The second microcomputer 2 of Embodiment 2 can also execute the same steps S201 to S204 as in Embodiment 1.

[0114] In addition, Figure 5 In step S111, the first microcomputer 1 of Embodiment 2 can also use the first acquisition unit 1126 to acquire both the first program and the second program. In this case, step S104 can be omitted from the first microcomputer 1 of Embodiment 2. In addition, in this case, the first microcomputer 1 of Embodiment 2 can immediately execute step S105 after verifying that the first program has not been tampered with (after step S102: "Yes"), and notify the second microcomputer 2 of the permission to acquire the second program.

[0115] Thus, in the control device 5 of Embodiment 2, the verification unit 1221 is stored in the secure area 12, and the first acquisition unit 1126, the second acquisition unit 222, and the startup execution unit 221 are stored in the OTP area. Similar to Embodiment 1, the control device 5 of Embodiment 2 can reliably prevent tampering with the verification unit 1221, which enables the security functions of the control device 5, and the first acquisition unit 1126, the second acquisition unit 222, and the startup execution unit 221, which are related to the startup of the first and second programs. Furthermore, in the control device 5 of Embodiment 2, even if the capacity of the first program increases in the future, it can be easily accommodated by replacing the storage device 3, which has higher expandability than the first microcomputer 1, with a storage device of larger capacity. Therefore, the control device 5 of Embodiment 2 can easily and continuously achieve secure startup of a control device equipped with multiple processing units.

[0116] [other]

[0117] Furthermore, the present invention is not limited to the embodiments described above, but also includes various modifications. For example, the embodiments described above are detailed in order to facilitate understanding of the present invention, and are not necessarily limited to having all the described configurations. In addition, a part of the configuration of some embodiments can be replaced with the configuration of other embodiments, and the configuration of other embodiments can be added to the configuration of some embodiments. Furthermore, for a part of the configuration of each embodiment, other configurations can be added, deleted, or replaced.

[0118] Furthermore, the aforementioned components, functions, processing units, and processing methods can also be implemented in hardware, for example, by designing some or all of them using integrated circuits. Alternatively, the aforementioned components and functions can be implemented in software by a processor interpreting and executing programs that perform their respective functions. The programs, tables, files, and other information implementing these functions can be stored in recording devices such as memory, hard disks, and SSDs, or in recording media such as IC cards, SD cards, and DVDs.

[0119] Furthermore, while the designation of control lines and information lines is considered necessary in the specifications, not all control lines and information lines are necessarily represented on the product itself. In practice, it can be assumed that almost all components are interconnected.

[0120] Symbol Explanation

[0121] 1…First microcomputer (first arithmetic processing unit), 111…Main control unit (processor), 1123…Main update unit, 1124…Launch license notification unit, 1125…Launch license notification unit, 1126…First acquisition unit, 12…Security zone, 1221…Verification unit, 1223…Security update unit, 2…Second microcomputer (second arithmetic processing unit), 21…Control unit (processor), 221…Launch execution unit, 222…Second acquisition unit, 3…Storage device, 5…Control device.

Claims

1. A control device comprising: The first arithmetic processing unit includes a processor that executes the first program; The second processing unit includes a processor that executes the second program; and Storage device, which stores the second program, The control device is characterized in that... The first processing unit has: The verification department verifies whether the first program and the second program have been tampered with. The first acquisition unit acquires the second program from the storage device if the verification unit verifies that the first program has not been tampered with; and The startup permission notification unit, after verification by the verification unit that the second program has not been tampered with, sends a startup permission notification to the second processing device, authorizing the second processing device to start the second program. The second processing unit has: The second acquisition unit acquires the second program from the storage device; and The startup execution unit, having been notified of the startup permission, causes the second program to start. The first processing unit has a secure area, which is tamper-proof. The second processing unit has an OTP area that cannot be rewritten. The verification unit is stored in the secure area. The second acquisition unit and the startup execution unit are stored in the OTP area.

2. The control device according to claim 1, characterized in that, After the second acquisition unit acquires the second program, the startup execution unit causes the second processing device to switch to a standby state until the startup permission is notified.

3. The control device according to claim 1, characterized in that, The secure zone is the area where the program can be rewritten. The first processing unit includes an update unit that updates update objects stored in the secure area via update packages. The verification unit verifies whether the update package has been tampered with. If the verification unit verifies that the update package has not been tampered with, the update unit updates the update object using the update package.

4. The control device according to claim 1, characterized in that, The first processing unit includes a license acquisition notification unit. If the verification unit verifies that the first program has not been tampered with, the license acquisition notification unit sends a license acquisition notification to the second processing unit, granting permission for the second processing unit to acquire the second program from the storage device. The license acquisition notification unit sends the license acquisition notification to the second processing device before the launch license notification unit sends the launch license notification to the second processing device. Upon notification of the permission to obtain the application, the second acquisition unit acquires the second program from the storage device.

5. The control device according to claim 4, characterized in that, After the power to the control device is turned on, the startup execution unit causes the second processing unit to switch to a standby state until the permission is granted.

6. The control device according to claim 1, characterized in that, The first processing unit has a secure area and an OTP area whose program cannot be rewritten; the secure area is tamper-proof. The second processing unit has an OTP area that cannot be rewritten. The storage device stores the first program and the second program. The verification unit is stored in the secure area. The first acquisition unit is stored in the OTP area of ​​the first processing device, and acquires the first program from the storage device. The second acquisition unit and the startup execution unit are stored in the OTP area of ​​the second computing device.

Citation Information

Patent Citations

  • Information processing apparatus, control method thereof, and program

    JP2020047064A

  • Information processing device and its control method, and program

    JP2020154601A