Vehicle-mounted device
The on-board unit with a separate security processing unit and secure update mechanism addresses the inefficiencies and vulnerabilities in updating security software, ensuring continuous security through encrypted updates without full unit replacement.
Patent Information
- Application Number
- PCT/JP2025/018376
- Authority / Receiving Office
- WO · WO
- Patent Type
- Applications
- Current Assignee / Owner
- Filing Date
- 2025-05-21
- Publication Date
- 2026-11-26
AI Technical Summary
The existing on-board units in automatic toll collection systems face challenges in updating security software efficiently, leading to potential security vulnerabilities due to the need for replacing the entire unit, high costs, and the risk of encryption algorithms becoming outdated, which compromises security functions over time.
The on-board unit is designed with a separate second CPU and non-volatile memory for security processing, a unidirectional I/F circuit for secure software updates, and a programming I/O that encrypts new software using previous version algorithms, ensuring secure and efficient updates without direct bus connection to prevent unauthorized access.
This configuration allows secure and efficient updating of security software, preventing unauthorized access and maintaining security functions during updates, while avoiding the need for complete unit replacement and reducing vulnerability from outdated encryption algorithms.
Smart Images

Figure JP2025018376_26112026_PF_FP_ABST
Abstract
Description
On-board unit
[0001] The present disclosure relates to an on-board unit.
[0002] On toll roads, an automatic toll collection system (for example, the ETC (registered trademark) system (Electronic Toll Collection System) in Japan) is used, which performs wireless communication with an on-board unit mounted on a vehicle at a tollgate to automatically collect tolls. Due to changes in processing content in the automatic toll collection system, it may be necessary to update the program for toll collection processing of the on-board unit (for example, see Patent Document 1).
[0003] Japanese Unexamined Patent Application Publication No. 2001-118096
[0004] The on-board unit performs security processing (authentication, encryption, decryption, etc. using an encryption algorithm or the like) on some data used in the toll collection processing to prevent tampering and protect privacy. This security processing is performed by a dedicated chip different from the toll collection processing in order to prevent unauthorized access or tampering from the outside. Currently, in order to support the latest security algorithms, the user needs to replace the on-board unit. However, it takes time for all users to replace their on-board units, so it may take several years to update the system in terms of security. In addition, it is necessary to take measures such as informing users and promoting replacement, and the cost burden for these measures is large.
[0005] In addition, when updating software, measures such as encryption are required to prevent the content of the software from being analyzed. However, encryption algorithms and the like are also used in the security mechanism used for these software update processes. If the same encryption algorithm is used continuously, it will become vulnerable over time.
[0006] An object of the present disclosure is to provide an on-board unit capable of suppressing compromise of security functions when updating software for security processing of the on-board unit.
[0007] According to one aspect of the present disclosure, the in-vehicle device is an in-vehicle device that performs security processing on data to be transmitted and received, and comprises a second CPU for performing the security processing, a second non-volatile memory for storing security software for the security processing, an I / F circuit that is communicably connected to a programming device for updating the security software, and a programming I / O that outputs software input from the programming device via the I / F circuit to the second bus, wherein the new version of the security software updated by the programming device is encrypted with an encryption algorithm included in the security software of the previous version.
[0008] According to the above embodiment, when updating the software for security processing of an in-vehicle device, it is possible to suppress the compromise of security functions.
[0009] This figure shows the configuration of the update system and in-vehicle device according to the first embodiment. This figure shows an example of the transmission path between the I / F circuit and programming I / O according to the first embodiment. This figure shows an example of the operation of the in-vehicle device according to the first embodiment. This figure shows the configuration of the update system and in-vehicle device according to the second embodiment. This flowchart shows an example of the processing of the programming device according to the second embodiment. This figure shows an example of the operation of the in-vehicle device according to the third embodiment.
[0010] <First Embodiment> The first embodiment will be described in detail below with reference to Figures 1 to 3.
[0011] (Configuration of the update system and in-vehicle unit) Figure 1 is a diagram showing the configuration of the update system and in-vehicle unit according to the first embodiment. As shown in Figure 1, the update system 1 comprises an in-vehicle unit 10 and a programming device 80.
[0012] The in-vehicle unit 10 comprises a first processing unit 20, a second processing unit 30, and an I / F circuit 40.
[0013] The first processing unit 20 comprises a first CPU 21, a first working memory 22, a first non-volatile memory 23, a wireless communication control unit 24, and an IC card communication control unit 25. Each component of the first processing unit 20 is connected to the first bus B1.
[0014] The first CPU 21 performs normal processing other than security processing for the in-vehicle device 10. In this embodiment, an example will be described in which the first CPU 21 performs toll collection processing at a toll booth as normal processing. The toll collection processing performed by the first CPU 21 is the same as the processing performed in a conventional automatic toll collection system.
[0015] The first working memory 22 is a volatile memory that temporarily stores software and data for processing by the first CPU 21. When the in-vehicle device 10 is started up, the software for toll collection processing stored in the first non-volatile memory 23 is loaded into the first working memory 22.
[0016] The first non-volatile memory 23 stores software for processing toll collection.
[0017] The wireless communication control unit 24 communicates wirelessly with the roadside antenna of the automatic toll collection system and sends and receives data used in the toll collection process.
[0018] The IC card communication control unit 25 reads and writes data used for toll collection processing to the IC card (for example, an "ETC card" used in Japan's ETC system) inserted into the in-vehicle unit 10.
[0019] The second processing unit 30 comprises a second CPU 31, a second working memory 32, a second non-volatile memory 33, an application I / O 34, and a programming I / O 35. Each component of the second processing unit 30 is connected to a second bus B2, which is provided independently of the first bus B1.
[0020] The second CPU 31 performs security processing on the data transmitted and received by the in-vehicle device 10. This security processing includes, for example, encrypting and decrypting data containing confidential information transmitted and received between the in-vehicle device 10 and the roadside antenna.
[0021] The second working memory 32 is a volatile memory in which software and data for processing by the second CPU 31 are temporarily stored. Security processing software (hereinafter also referred to as "security software") stored in the second non-volatile memory 33 is deployed to the second working memory 32.
[0022] The second non-volatile memory 33 stores security software, encryption keys, and the like.
[0023] Application I / O 34 is connected to both the first bus B1 and the second bus B2, and handles the exchange of encrypted and decrypted data between the first CPU 21 and the second CPU 31. In other words, the first processing unit 20 and the second processing unit 30 are connected only by application I / O 34. The application I / O is controlled so that only specific data can be read and written from the first CPU 21 to the first processing unit 20.
[0024] The programming I / O 35 is connected to the second bus B2 and the I / F circuit 40. When a programming device 80 for updating security software is connected to the in-vehicle unit 10, the programming I / O 35 receives update software and data (such as encryption keys) transmitted from the programming device 80 via the I / F circuit 40. The programming I / O 35 includes, for example, an input unit (RX) 351 and a data buffer 352, as shown in Figure 1. The input unit 351 receives data input from the I / F circuit 40. The data received by the input unit 351 is temporarily recorded in the data buffer 352 and then written to the second non-volatile memory 33 via the second bus B2.
[0025] The I / F circuit 40 is a wired connection interface such as USB or Ethernet, or a wireless connection interface such as Bluetooth® or Wi-Fi®, to which the programming device 80 is connected. The I / F circuit 40 is not connected to either the first bus B1 or the second bus B2, and is connected only to the programming I / O 35. The I / F circuit 40 includes a controller 401, a data buffer 402, an output unit (TX) 403, etc., as shown in Figure 1, for example. The controller 401 controls the transmission and reception of data to and from the programming device 80. The data buffer 402 temporarily records the data received from the programming device 80, and this data is output to the programming I / O 35 via the output unit 403.
[0026] The programming device 80 can be anything, such as a smartphone, a personal computer, or a dedicated software update device.
[0027] Figure 2 shows an example of a transmission path between an I / F circuit and a programming I / O according to the first embodiment. Figure 2 shows the transmission path between the output section 403 of the I / F circuit 40, indicated by the dashed line A in Figure 1, and the input section 351 of the programming I / O 35. As shown in the example in Figure 2, the output section 403 of the I / F circuit 40 switches transistor T1 based on data (signals) input from the programming device 80. This switches transistor T2 of the programming I / O 35, which is connected to the collector-side output terminal of transistor T1, and transmits data from the I / F circuit 40 to the input section 351 of the programming I / O 35. As shown in Figures 1 and 2, the programming I / O 35 has only a unidirectional transmission path that can transmit data from the I / F circuit 40 to the second bus B2, and does not have a data transmission path from the second bus B2 to the I / F circuit 40. This allows the programming I / O 35 to write update software and data transmitted from the programming device 80 via the I / F circuit 40 to the second non-volatile memory 33, while preventing unauthorized reading of information (security software, encryption keys, etc.) stored in the second non-volatile memory 33 from external devices connected to the I / F circuit 40.
[0028] (Operation of the in-vehicle device) Figure 3 is a diagram showing an example of the operation of the in-vehicle device according to the first embodiment. Referring to Figure 3, the operation of the security software (referred to as "security SW" in the figure) of the second processing unit 30 of the in-vehicle device 10 during an update will be explained.
[0029] [At the time of shipment] At the time of shipment, the second non-volatile memory 33 of the second processing unit 30 has security software 1 pre-written by the manufacturer. Also, the second working memory 32 is empty.
[0030] [Normal startup] When the in-vehicle unit 10 is started up, the control application of the second CPU 31 loads the security software 1 stored in the second non-volatile memory 33 into the second working memory 32. From then until the power to the in-vehicle unit 10 is turned off, the second CPU 31 executes security processing using the security software 1 loaded into the second working memory 32.
[0031] [During the first update] When performing the first update of the security software, the programming device 80 is connected to the I / F circuit 40. The programming device 80 stores the security software 2, which is the update software. The security software 2 transmitted from the programming device 80 is written to the second non-volatile memory 33 via the I / F circuit 40 and the programming I / O 35. As a result, the security software in the second non-volatile memory 33 is replaced from the current version (security software 1) to the new version (security software 2).
[0032] For enhanced security, the update software may be encrypted. The shaded areas in Figure 3 indicate encrypted software. In this case, for example, the security software 2, which is the update software, is encrypted using the encryption algorithm included in the security software 1 of the previous version (current version). The update software (security software 2) transmitted from the programming device 80 is decrypted using the security software 1 loaded into the second working memory 32 when the in-vehicle unit 10 is started, and then written to the second non-volatile memory 33.
[0033] [Startup after the first update] After the first security software update, when the power to the in-vehicle unit 10 is turned off, the second working memory 32 becomes empty. Then, when the in-vehicle unit 10 is started up, the control application for the second CPU 31 loads the security software 2 stored in the second non-volatile memory 33 into the second working memory 32. From then on, until the power to the in-vehicle unit 10 is turned off, the second CPU 31 executes security processing using the security software 2 loaded into the second working memory 32.
[0034] [Second Update] When performing a second update of the security software, the programming device 80 is connected to the I / F circuit 40, just as in the first update. The programming device 80 stores the security software 3, which is the update software. The security software 3 transmitted from the programming device 80 is written to the second non-volatile memory 33 via the I / F circuit 40 and the programming I / O 35. As in the first update, the security software 3 may be encrypted. In this case, the security software 3, which is the update software, is encrypted using the encryption algorithm included in the security software 2 of the pre-update (current version). The update software (security software 3) transmitted from the programming device 80 is decrypted using the security software 2 loaded into the second working memory 32, and then written to the second non-volatile memory 33.
[0035] [Startup after the second update] After the second security software update, when the power to the in-vehicle unit 10 is turned off, the second working memory 32 becomes empty. Then, when the in-vehicle unit 10 is started up, the control application for the second CPU 31 loads the security software 3 stored in the second non-volatile memory 33 into the second working memory 32. From then on, until the power to the in-vehicle unit 10 is turned off, the second CPU 31 executes security processing using the security software 3 loaded into the second working memory 32.
[0036] (Effects) As described above, the in-vehicle device 10 according to this embodiment includes a first bus B1, a second bus B2 provided independently of the first bus B1, a first CPU 21 connected to the first bus B1 and performing normal processing (fare collection processing), a second CPU 31 connected to the second bus B2 and performing security processing, a second non-volatile memory 33 connected to the second bus B2 and storing security software, an application I / O 34 connected to the first bus B1 and the second bus B2 and performing data transfer between the first CPU 21 and the second CPU 31, an I / F circuit 40 that is not connected to the first bus B1 and the second bus B2 and is communicably connected to a programming device 80 that updates the security software, and a programming I / O 35 connected to the second bus B2 and the I / F circuit 40 and outputting software input from the programming device 80 via the I / F circuit 40 to the second bus B2.
[0037] With this configuration, the in-vehicle unit 10 can keep security software and data (such as encryption keys) secret by separating the second non-volatile memory 33, which stores security processing software, and the second CPU 31, which performs security processing, from the first bus B1, to which the first CPU 21 and other components that perform normal processing are connected. Furthermore, by connecting the programming device 80 to the I / F circuit 40, the security software can be updated, thereby suppressing the compromise of the security functions of the in-vehicle unit 10. In this case, since the I / F circuit 40 is not directly connected to the second bus B2 to which the second non-volatile memory 33 is connected, it is difficult for external devices other than the programming device 80 to gain unauthorized access to the second non-volatile memory 33 from the I / F circuit 40.
[0038] Furthermore, the programming I / O 35 has only a unidirectional transmission path capable of transmitting data from the I / F circuit 40 to the second bus B2.
[0039] With this configuration, the in-vehicle unit 10 can prevent unauthorized reading of information (software, encryption keys, and other data) from the second non-volatile memory 33 via the I / F circuit 40 by external devices other than the programming device 80.
[0040] Furthermore, the in-vehicle unit 10 is connected to the second bus B2 and includes a second working memory 32 into which the security software read from the second non-volatile memory 33 is deployed when the in-vehicle unit 10 is started. When the programming device 80 is connected to the I / F circuit 40 in a communicative manner, a new version of the security software transmitted from the programming device 80 is written to the second non-volatile memory 33. While the new version of the security software is being written to the second non-volatile memory 33, the second CPU 31 performs security processing according to the previous version (current version) of the software deployed in the second working memory 32.
[0041] With this configuration, the in-vehicle unit 10 can continue to execute security processing using the previous version of the security software even while the security software is being updated. Furthermore, after restarting, the in-vehicle unit 10 deploys the new version of the security software written to the second non-volatile memory 33 to the second working memory, and thereafter can execute security processing using the new version.
[0042] Furthermore, the new version of the security software is encrypted using the encryption algorithm included in the previous version of the security software. After being decrypted using the previous version of the security software deployed in the second working memory 32, it is written to the second non-volatile memory 33.
[0043] In this way, by making the new version of security software (update software) decryptable using the encryption algorithm included in the immediately preceding version of the security software, rather than using an encryption algorithm common to all versions, there is no need to update the decryption software for the update software separately from the update software itself. This facilitates the updating of security software. Furthermore, each time the security software is rewritten with the update software, the encryption algorithm used for security processing and for decrypting the next version of update software is also updated, thereby suppressing the degradation of security performance caused by reusing old encryption algorithms. In other words, it is possible to suppress the compromise of security over time.
[0044] <Second Embodiment> Next, the second embodiment will be described in detail with reference to FIGS. 4 to 5. Components common to the above-described embodiments are assigned the same reference numerals, and detailed descriptions thereof are omitted.
[0045] (Configuration of Update System and On-Board Unit) FIG. 4 is a diagram illustrating the configuration of an update system and an on-board unit according to the second embodiment. As shown in FIG. 4, the on-board unit 10 according to the present embodiment further includes a security information storage unit 50.
[0046] The security information storage unit 50 is, for example, a non-volatile memory. The security information storage unit 50 is not connected to either the first bus B1 or the second bus B2, and is provided independently of the first processing unit 20 and the second processing unit 30. The security information storage unit 50 stores on-board unit information (model number, identification information, etc.), version information of the security software, and information related to updates (update provider information, update date and time information, etc.). The initial values are written by the manufacturer of the on-board unit 10.
[0047] The programming device 80 is connected to the security information storage unit 50 via a communication path (communication cable) different from that of the I / F circuit 40, so as to enable bidirectional communication.
[0048] (Processing Example of Programming Device) FIG. 5 is a flowchart illustrating an example of processing of the programming device according to the second embodiment. The flow of software update processing of the present embodiment will be described with reference to FIG. 5.
[0049] When updating security software, the programming device 80 first reads information stored in the security information storage unit 50 (step S101).
[0050] The programming device 80 determines whether or not the on-board device information and the like read from the security information storage unit 50 match information specified in advance corresponding to the update software (step S102). If the on-board device information and the like do not match (step S102; NO), the programming device 80 terminates the processing without updating the software. The programming device 80 may notify an operator that the on-board device information and the like do not match the update software via a display device (not illustrated) or the like.
[0051] On the other hand, if the on-board device information and the like match correctly (step S102; YES), the programming device 80 writes the update software via the I / F circuit 40 (step S103). When the writing of the update software is completed, the programming device 80 updates the information in the security information storage unit 50 (step S104).
[0052] The information stored in the security information storage unit 50 may be encrypted by an encryption algorithm included in the security software before update (current version). In this case, the programming device 80 decrypts the information read from the security information storage unit 50 using the encryption algorithm of the current version, and writes the update software via the I / F circuit 40 if the decrypted information is correct. After the writing is completed, information encrypted by the encryption algorithm of the new version of the update software is written into the security information storage unit 50 to update the information.
[0053] (Effects) As described above, in the update system 1 according to this embodiment, the in-vehicle unit 10 is not connected to the first bus B1 and the second bus B2, and further includes a security information storage unit 50 that stores information about the in-vehicle unit 10 and information about the security software. The programming device 80 updates the security software via the I / F circuit 40 when the information read from the security information storage unit 50 matches information predetermined to correspond to a new version of the security software.
[0054] With this configuration, the update system 1 can update the security software only when the information stored in the security information storage unit 50 of the in-vehicle unit 10 matches the information predetermined for the update software. This prevents, for example, the accidental writing of the update software to an in-vehicle unit 10 of a model number that is not covered by the update software, which would cause the security functions of the in-vehicle unit 10 to malfunction. It also prevents an error that occurs when attempting to write the latest update software to an in-vehicle unit 10 that has an older version of security software written on it, resulting in a version mismatch of the encryption algorithm.
[0055] <Third Embodiment> Next, the third embodiment will be described in detail with reference to Figure 6. Components common to the above embodiments are denoted by the same reference numerals and their detailed descriptions are omitted.
[0056] In this embodiment, the second non-volatile memory 33 of the in-vehicle unit 10 stores the startup software and security software. The security software is stored in the second non-volatile memory 33 in an encrypted state using the encryption algorithm included in the startup software. The startup software is stored in the second non-volatile memory 33 in plain text. When the in-vehicle unit 10 is started up, the startup software is loaded into the second working memory 32, and the security software stored in the second non-volatile memory 33 is decrypted and loaded into the second working memory 32.
[0057] (Operation of the in-vehicle unit) Figure 6 is a diagram showing an example of the operation of the in-vehicle unit according to the third embodiment. Referring to Figure 6, the operation of the startup software and security software (referred to as "startup SW" and "security SW" in the figure) of the second processing unit 30 of the in-vehicle unit 10 during updates will be explained.
[0058] [At the time of shipment] At the time of shipment, the second non-volatile memory 33 of the second processing unit 30 is pre-written by the manufacturer with the startup software 1 in plain text and the security software 1 encrypted. The second working memory 32 is empty.
[0059] [Normal startup] When the in-vehicle unit 10 is started, first the control application of the second CPU 31 loads the startup software 1 stored in the second non-volatile memory 33 into the second working memory 32. Next, the second CPU 31 uses the startup software 1 loaded into the second working memory 32 to decrypt the security software 1 stored in the second non-volatile memory 33 and load it into the second working memory 32. The second CPU 31 also uses the loaded security software 1 to erase the startup software 1 in the second working memory 32. From then until the power to the in-vehicle unit 10 is turned off, the second CPU 31 uses the security software 1 loaded into the second working memory 32 to perform security processing.
[0060] [During the first update] When performing the first update of the security software, the programming device 80 is connected to the I / F circuit 40. The programming device 80 stores the security software 2, which is the update software. Security software 2 is encrypted using the encryption algorithm included in the current version of security software 1. Security software 2 transmitted from the programming device 80 is written to the second non-volatile memory 33 via the I / F circuit 40 and programming I / O 35 while remaining encrypted. As a result, the security software in the second non-volatile memory 33 is replaced from the current version (security software 1) to the new version (security software 2).
[0061] Furthermore, when a new version of the security software 2 is written to the second CPU 31, it writes the current version of the security software 1 to the second non-volatile memory 33 as the new boot software 2. As a result, the boot software 1 is updated to boot software 2 (security software 1).
[0062] [Startup after the first update] After the first security software update, when the power to the in-vehicle unit 10 is turned off, the second working memory 32 becomes empty. When the in-vehicle unit 10 is then started up, the control application of the second CPU 31 loads the startup software 2 stored in the second non-volatile memory 33 into the second working memory 32. Next, the second CPU 31 uses the startup software 2 loaded into the second working memory 32 to decrypt the security software 2 stored in the second non-volatile memory 33 and load it into the second working memory 32. The second CPU 31 also uses the loaded security software 2 to erase the startup software 2 in the second working memory 32. From then until the power to the in-vehicle unit 10 is turned off, the second CPU 31 uses the security software 2 loaded into the second working memory 32 to perform security processing.
[0063] The in-vehicle unit 10 operates in the same way for subsequent updates as it did for the first update.
[0064] (Effects) As described above, in the in-vehicle device 10 according to this embodiment, the second non-volatile memory 33 further stores startup software that can decrypt the security software stored in an encrypted state. The startup software is updated together with the security software by the programming device 80.
[0065] With this configuration, the in-vehicle device 10 can store the security software in the second non-volatile memory 33 without decrypting it, thereby further improving security. In addition, since the startup software is updated along with the security software, vulnerability due to aging can be suppressed.
[0066] Furthermore, when the in-vehicle device 10 is started, the startup software stored in plain text is unpacked into the second working memory 32. The second CPU 31 uses the startup software unpacked into the second working memory 32 to decrypt the security software stored in the second non-volatile memory 33 and unpack it into the second working memory 32.
[0067] With this configuration, the in-vehicle unit 10 can automatically use the startup software to decrypt the security software stored in an encrypted state when it starts up, and then use it.
[0068] Furthermore, the startup software is the previous version of the security software.
[0069] In this way, by making it possible to decrypt new versions of security software (update software) using the previous version of the security software (boot software) rather than using a common encryption algorithm across all versions, updating the boot software becomes easier. Furthermore, each time the update software is rewritten, the encryption algorithm used for security processing and decryption of the next version of the update software is also updated, thus suppressing the decrease in security caused by reusing old encryption algorithms. In other words, it suppresses vulnerability due to aging.
[0070] <Other Embodiments> Although one embodiment has been described in detail above with reference to the drawings, the specific configuration is not limited to that described above, and various design changes can be made. In other embodiments, the order of the above-described processes may be changed as appropriate. Also, some processes may be executed in parallel.
[0071] <Note> The above-described embodiment can be understood, for example, as follows.
[0072] (1) According to the first embodiment, the in-vehicle device 10 is an in-vehicle device 10 that performs security processing on data to be transmitted and received, and comprises a second CPU 31 that performs security processing, a second non-volatile memory 33 that stores security software for security processing, an I / F circuit 40 that is communicably connected to a programming device 80 that updates the security software, and a programming I / O 35 that outputs software input from the programming device 80 via the I / F circuit 40 to a second bus B2 to which the second CPU 31 and the second non-volatile memory 33 are connected, wherein the new version of security software updated by the programming device 80 is encrypted with the encryption algorithm included in the previous version of security software.
[0073] In this way, by making it possible to decrypt new versions of security software (update software) using the encryption algorithm included in the previous version of the security software, rather than a common encryption algorithm across all versions, there is no need to update the decryption software for the update software separately from the update software itself. This makes updating security software easier. Furthermore, each time the software is rewritten with an update, the encryption algorithm used for security processing and decryption of the next version of the update software is also updated, thus suppressing the decrease in security caused by reusing old encryption algorithms. In other words, it suppresses vulnerability due to aging.
[0074] (2) According to the second embodiment, the in-vehicle device 10 according to the first embodiment further comprises a second working memory 32 connected to the second bus B2, into which the security software read from the second non-volatile memory 33 is deployed when the in-vehicle device 10 is started, and a new version of the security software is decrypted by the previous version of the security software deployed in the second working memory 32 and then written to the second non-volatile memory 33.
[0075] With this configuration, the in-vehicle device 10 can store the decrypted (plaintext) security software in the second non-volatile memory 33.
[0076] (3) According to the third embodiment, in the in-vehicle device 10 according to the first embodiment, the second non-volatile memory 33 further stores startup software that can decrypt the security software stored in an encrypted state, and the startup software is updated together with the security software by the programming device 80.
[0077] With this configuration, the in-vehicle device 10 can store the security software in the second non-volatile memory 33 without decrypting it, thereby further improving security. In addition, since the startup software is updated along with the security software, vulnerability due to aging can be suppressed.
[0078] (4) According to the fourth embodiment, the in-vehicle device 10 according to the third embodiment further comprises a second working memory 32 connected to the second bus B2, in which the startup software and security software read from the second non-volatile memory 33 are expanded. When the in-vehicle device 10 is started, the startup software stored in plain text is expanded into the second working memory 32. The second CPU 31 decrypts the security software stored in the second non-volatile memory 33 using the startup software expanded into the second working memory 32 and expands it into the second working memory 32.
[0079] With this configuration, the in-vehicle unit 10 can automatically use the startup software to decrypt the security software stored in an encrypted state when it starts up, and then use it.
[0080] (5) According to the fifth aspect, in the in-vehicle device 10 according to the fourth aspect, the startup software is the security software in the previous version.
[0081] In this way, by making it possible to decrypt new versions of security software (update software) using the previous version of the security software (boot software) rather than using a common encryption algorithm across all versions, updating the boot software becomes easier. Furthermore, each time the update software is rewritten, the encryption algorithm used for security processing and decryption of the next version of the update software is also updated, thus suppressing the decrease in security caused by reusing old encryption algorithms. In other words, it suppresses vulnerability due to aging.
[0082] According to the above embodiment, when updating the software for security processing of an in-vehicle device, it is possible to suppress the compromise of security functions.
[0083] 1 Update System 10 In-vehicle Unit 20 First Processing Unit 21 First CPU 22 First Working Memory 23 First Non-volatile Memory 24 Wireless Communication Control Unit 25 IC Card Communication Control Unit 30 Second Processing Unit 31 Second CPU 32 Second Working Memory 33 Second Non-volatile Memory 40 I / F Circuit 50 Security Information Storage Unit 80 Programming Device B1 First Bus B2 Second Bus
Claims
1. An in-vehicle device that performs security processing on data to be transmitted and received, comprising: a second CPU for performing the security processing; a second non-volatile memory for storing security software for the security processing; an I / F circuit that is communicably connected to a programming device for updating the security software; and a programming I / O that outputs the security software input from the programming device via the I / F circuit to a second bus to which the second CPU and the second non-volatile memory are connected, wherein the new version of the security software updated by the programming device is encrypted with the encryption algorithm included in the previous version of the security software.
2. The in-vehicle device according to claim 1, further comprising a second working memory connected to the second bus, wherein the security software read from the second non-volatile memory is expanded when the in-vehicle device is started, and a new version of the security software is decrypted by the previous version of the security software expanded in the second working memory and then written to the second non-volatile memory.
3. The in-vehicle device according to claim 1, wherein the second non-volatile memory further stores startup software capable of decrypting the security software stored in an encrypted state, and the startup software is updated together with the security software by the programming device.
4. The in-vehicle device according to claim 3, further comprising a second working memory connected to the second bus, into which the startup software and security software read from the second non-volatile memory are expanded, wherein the startup software stored in plain text is expanded into the second working memory when the in-vehicle device is started, and the second CPU decrypts the security software stored in the second non-volatile memory using the startup software expanded into the second working memory and expands it into the second working memory.
5. The in-vehicle device according to claim 4, wherein the startup software is a version of the security software prior to the update.
