On-board device, encrypted communication method, and encrypted communication program
The in-vehicle device employs a dual-key generation method to enhance communication security and stability in vehicle networks by using a private key and public key pair initially, then switching to a cryptographic hash function for faster key updates, addressing the limitations of existing systems.
Patent Information
- Application Number
- JP2022556402
- Authority / Receiving Office
- JP · JP
- Patent Type
- Patents
- Current Assignee / Owner
- Priority Date
- 2020-10-22
- Filing Date
- 2021-07-05
- Publication Date
- 2024-10-29
- Estimated Expiration
- 2041-07-05
AI Technical Summary
Existing in-vehicle network systems in connected cars lack effective methods to enhance communication security, speed, and stability, particularly in vehicle-to-vehicle and vehicle-to-infrastructure communications.
An in-vehicle device generates first key derivation information using a method that combines a private key and public key, followed by switching to a faster cryptographic hash function to generate second key information for encrypting packets, allowing for secure and efficient communication by periodically updating keys based on predetermined conditions.
This approach ensures secure and efficient communication by reducing the need for long-term management of unique keys, enabling faster key generation and switching, thereby enhancing communication security and stability in vehicle networks.
Smart Images

Figure 0007574856000001 
Figure 0007574856000002 
Figure 0007574856000003
Abstract
Description
[Technical field]
[0001] The present disclosure relates to an in-vehicle device, an encrypted communication method, and an encrypted communication program. This application claims priority based on Japanese Patent Application No. 2020-177070, filed on October 22, 2020, the disclosure of which is incorporated herein in its entirety. [Background technology]
[0002] Non-Patent Document 1 (Takemori Keisuke, "Security of Connected Cars," Journal of the International Society for Traffic Safety, Vol. 42, No. 2, 2017) discloses the following in-vehicle network system. That is, the in-vehicle network system discloses an in-vehicle network system that encrypts communication data using a key when uploading the vehicle's driving log to a server, etc. [Prior art documents] [Non-patent literature]
[0003] [Non-Patent Document 1] Keisuke Takemori, "Security of Connected Cars," Journal of the International Society for Traffic Safety, Vol. 42, No. 2, 2017 Summary of the Invention
[0004] The on-board device of the present disclosure is an on-board device mounted on a vehicle, and includes a processing unit that generates first key derivation information in accordance with a first method, generates first key information using the first key derivation information, and encrypts a packet using the first key information, and a communication unit that transmits the packet encrypted by the processing unit to another vehicle, wherein the processing unit encrypts the packet using the first key information, and then generates second key derivation information in accordance with a second method in which the time required to generate key information is shorter than that of the first method, generates second key information using the second key derivation information, and encrypts a packet to be newly transmitted by the communication unit using the second key information instead of the first key information.
[0005] The encrypted communication method disclosed herein is an encrypted communication method in an on-board device mounted in a vehicle, and includes the steps of generating first key derivation information according to a first scheme, generating first key information using the first key derivation information, and encrypting a packet using the first key information, transmitting the encrypted packet to another vehicle, and after encrypting the packet using the first key information, generating second key derivation information according to a second scheme in which the time required to generate key information is shorter than that of the first scheme, generating second key information using the second key derivation information, and encrypting a newly transmitted packet using the second key information instead of the first key information.
[0006] The encrypted communication program disclosed herein is an encrypted communication program used in an on-board device mounted in a vehicle, and is a program for causing a computer to function as a processing unit that generates first key derivation information in accordance with a first method, generates first key information using the first key derivation information, and encrypts a packet using the first key information, and a communication unit that transmits the packet encrypted by the processing unit to another vehicle, wherein the processing unit encrypts the packet using the first key information, and then generates second key derivation information in accordance with a second method that requires a shorter time to generate key information than the first method, generates second key information using the second key derivation information, and encrypts a packet that is newly to be transmitted by the communication unit using the second key information instead of the first key information.
[0007] One aspect of the present disclosure can be realized not only as an in-vehicle device having such a characteristic processing unit, but also as an in-vehicle communication system having the in-vehicle device, or as a semiconductor integrated circuit that realizes a part or all of the in-vehicle device. [Brief description of the drawings]
[0008] [Figure 1] FIG. 1 is a diagram illustrating a configuration of a vehicle management system according to an embodiment of the present disclosure. [Diagram 2]FIG. 2 is a diagram showing a configuration of an in-vehicle communication system according to an embodiment of the present disclosure. [Diagram 3] FIG. 3 is a diagram showing a configuration of an in-vehicle device in an in-vehicle communication system according to an embodiment of the present disclosure. [Figure 4] FIG. 4 is a diagram illustrating a configuration of a processing unit in an in-vehicle device according to an embodiment of the present disclosure. [Diagram 5] FIG. 5 is a diagram showing the first half of a sequence illustrating the encrypted communication process in a vehicle management system according to an embodiment of the present disclosure. [Figure 6] FIG. 6 is a diagram showing the second half of the sequence illustrating the encrypted communication process in the vehicle management system according to the embodiment of the present disclosure. DETAILED DESCRIPTION OF THE PREFERRED EMBODIMENTS
[0009] Conventionally, development has been carried out regarding the security of in-vehicle network systems in connected cars that can be connected to the Internet.
[0010] [Problem that this disclosure aims to solve] There is a need for a technology that goes beyond the technology of Non-Patent Document 1 and is capable of improving the security, speed, stability, etc. of communications in an in-vehicle network system.
[0011] The present disclosure has been made to solve the above-mentioned problems, and its purpose is to provide an in-vehicle device, an encryption method, and a program that can provide better communication in an in-vehicle network.
[0012] [Effects of this disclosure] According to the present disclosure, better communication can be provided in an in-vehicle network.
[0013] [Description of the embodiments of the present disclosure] First, the contents of the embodiments of the present disclosure will be listed and described.
[0014] (1) An in-vehicle device according to an embodiment of the present disclosure is an in-vehicle device mounted on a vehicle, and includes a processing unit that generates first key derivation information in accordance with a first scheme, generates first key information using the first key derivation information, and encrypts a packet using the first key information, and a communication unit that transmits the packet encrypted by the processing unit to another vehicle, wherein the processing unit encrypts the packet using the first key information, and then generates second key derivation information in accordance with a second scheme that requires a shorter time to generate key information than the first scheme, generates second key information using the second key derivation information, and encrypts a packet to be newly transmitted by the communication unit using the second key information instead of the first key information.
[0015] In this way, by generating key information in the vehicle and using it for packet encryption, it is not necessary to use and manage a unique key stored in advance in each vehicle for a long period of time. Also, for example, by first using an encryption method with a certain degree of security and then switching to an encryption method with a short generation time, encrypted communication can be effectively performed according to the characteristics of each method. Therefore, better communication can be provided in the in-vehicle network.
[0016] (2) The processing unit may encrypt the second key derivation information using the first key information, and the communication unit may transmit the second key derivation information encrypted by the processing unit to the other vehicle.
[0017] With this configuration, for example, the second key derivation information can be transmitted to other vehicles using a first method which has high security, and encrypted communication can be started using a second method which has a short generation time while ensuring security through simple processing.
[0018] (3) In the first method, the processing unit may generate a pair of a private key and a public key as the first key derivation information and use the pair to generate a common key as the first key information; in the second method, the processing unit may generate a hash value as the second key derivation information using a first cryptographic hash function and generate a common key from the hash value using a second cryptographic hash function; and the communication unit may transmit the hash value generated by the processing unit to the other vehicle.
[0019] A shared key using a cryptographic hash function can be generated faster than a private / public key pair, which allows data to be encrypted in a shorter time and allows more encrypted packets to be exchanged between vehicles.
[0020] (4) When a predetermined condition is satisfied, the processing unit may generate the second key information and use the second key information instead of the first key information to encrypt a packet to be newly transmitted by the communication unit, the predetermined condition being a condition related to an elapsed time or an amount of communication with the other vehicle since starting to use the first key information.
[0021] With this configuration, encrypted communication using the first key information can be switched to encrypted communication using the second key information at an appropriate timing.
[0022] (5) When a predetermined condition is satisfied, the processing unit generates the second key information and uses the second key information instead of the first key information to encrypt a packet to be newly transmitted by the communication unit, and the predetermined condition may be a condition related to a driving state of the vehicle.
[0023] With this configuration, for example, encrypted communication using the first key information can be switched to encrypted communication using the second key information at an appropriate timing depending on the speed difference between the vehicle and another vehicle, i.e., change in the distance between the vehicles.
[0024] (6) The processing unit may update the second key information.
[0025] With this configuration, even if encrypted communication using the second key information is intercepted and decrypted, the updated second key information can be used for subsequent encrypted communication, thereby reducing the possibility of the encrypted communication being decrypted. Also, by repeatedly updating the second key information, which takes a short time to generate, the security of the encrypted communication can be further improved. Furthermore, when the second key information is generated when a predetermined condition is satisfied, the second key information can be updated at an appropriate timing that conforms to the predetermined condition.
[0026] (7) In at least one of the first method and the second method, the processing unit may use time information and a random number to generate key derivation information.
[0027] In this way, by using the time information, it is possible to change the key derivation information over time. Furthermore, if the key derivation information is generated simply by using the time information, there is a possibility that the time information may be guessed and the key derivation information may be decrypted. However, by using a random number in addition to the time information, it is possible to prevent the key derivation information from being decrypted even if the time information is guessed. Therefore, it is possible to further improve the security of encrypted communication.
[0028] (8) The processing unit may decrypt the encrypted packet received from the other vehicle according to the first method or the second method, and the communication unit may transmit data stored in the decrypted packet to an infrastructure side device.
[0029] With this configuration, for example, even if communication between the vehicle and the infrastructure device is unstable or impossible, if another vehicle can communicate with the infrastructure device, the vehicle data can be uploaded to the infrastructure device. Then, the infrastructure side can analyze the vehicle data in detail, and even if a malfunction occurs in the vehicle, it can respond appropriately.
[0030] (9) An encrypted communication method according to an embodiment of the present disclosure is an encrypted communication method in an in-vehicle device mounted on a vehicle, and includes the steps of generating first key derivation information in accordance with a first scheme, generating first key information using the first key derivation information, and encrypting a packet using the first key information, transmitting the encrypted packet to another vehicle, and after encrypting the packet using the first key information, generating second key derivation information in accordance with a second scheme in which the time required to generate key information is shorter than that of the first scheme, generating second key information using the second key derivation information, and encrypting a newly transmitted packet using the second key information instead of the first key information.
[0031] In this way, by generating key information in the vehicle and using it for packet encryption, it is not necessary to use and manage a unique key stored in advance in each vehicle for a long period of time. Also, for example, by first using an encryption method with a certain degree of security and then switching to an encryption method with a short generation time, encrypted communication can be effectively performed according to the characteristics of each method. Therefore, better communication can be provided in the in-vehicle network.
[0032] (10) An encrypted communication program according to an embodiment of the present disclosure is an encrypted communication program used in an in-vehicle device mounted in a vehicle, the program causing a computer to function as a processing unit that generates first key derivation information in accordance with a first scheme, generates first key information using the first key derivation information, and encrypts a packet using the first key information, and a communication unit that transmits the packet encrypted by the processing unit to another vehicle, wherein the processing unit encrypts the packet using the first key information, and then generates second key derivation information in accordance with a second scheme that requires a shorter time to generate key information than the first scheme, generates second key information using the second key derivation information, and encrypts a packet to be newly transmitted by the communication unit using the second key information instead of the first key information.
[0033] In this way, by generating key information in the vehicle and using it for packet encryption, it is not necessary to use and manage a unique key stored in advance in each vehicle for a long period of time. Also, for example, by first using an encryption method with a certain degree of security and then switching to an encryption method with a short generation time, encrypted communication can be effectively performed according to the characteristics of each method. Therefore, better communication can be provided in the in-vehicle network.
[0034] Hereinafter, embodiments of the present disclosure will be described with reference to the drawings. In the drawings, the same or corresponding parts are denoted by the same reference numerals, and the description thereof will not be repeated. In addition, at least some of the embodiments described below may be arbitrarily combined.
[0035] [Configuration and basic operation] FIG. 1 is a diagram illustrating a configuration of a vehicle management system according to an embodiment of the present disclosure.
[0036] Referring to FIG. 1, the vehicle management system 1 includes a server 11, an infrastructure device 12, an in-vehicle communication system 13 mounted on a vehicle 10A, an in-vehicle communication system 14 mounted on another vehicle 10B, and multiple MECs (Mobile Edge Computing) 15.
[0037] The vehicle management system 1 enables various data to be exchanged between the vehicles 10A, 10B and the server 11. For example, the vehicle management system 1 enables camera images and videos captured in the vehicles 10A, 10B to be uploaded to the server 11. The vehicle management system 1 also enables update programs for various software installed in the vehicles 10A, 10B to be transmitted from the server 11 to the vehicles 10A, 10B. In this embodiment, as an example, it is assumed that the vehicle 10A uploads log information including logs of various software in the vehicle 10A to the server 11 via the vehicle 10B.
[0038] Vehicle 10A transmits log information to vehicle 10B. Vehicle 10B transmits the log information received from vehicle 10A to infrastructure side device 12 that is close to vehicle 10B or has a good communication environment with vehicle 10B. Infrastructure side device 12 is, for example, a wireless base station device. Infrastructure side device 12 transmits the log information received from vehicle 10B to MEC 15. Note that infrastructure side device 12 may be a beacon. Furthermore, infrastructure side device 12 may include MEC 15.
[0039] The MEC 15 analyzes the log information received from the infrastructure side device 12, shares the log information with other MECs 15, and complements each other's log information. For example, when the MEC 15 acquires emergency information such as accident information from the log information, the MEC 15 issues an alarm to the vehicles 10A and 10B. The MEC 15 may issue an alarm directly to the vehicles 10A and 10B, or may issue an alarm via the vehicle 10B to the vehicle 10A, or may issue an alarm via the vehicle 10A to the vehicle 10B. The MEC 15 also transmits the log information to the server 11.
[0040] The server 11 analyzes the log information received from the MEC 15 in more detail and takes necessary measures.
[0041] Fig. 2 is a diagram showing a configuration of an in-vehicle communication system according to an embodiment of the present disclosure. Fig. 2 shows a configuration of an in-vehicle communication system 13 in a vehicle 10A as an example, but the configuration of an in-vehicle communication system 14 in another vehicle 10B is also the same.
[0042] 2, the vehicle-mounted communication system 13 includes vehicle-mounted devices 131 to 134 and a relay device 135. The vehicle-mounted communication system 13 includes vehicle-mounted devices 131 to 134 and a relay device 135.
[0043] The in-vehicle communication system 13 is not limited to a configuration including four in-vehicle devices 131 to 134, but may be a configuration including three or less, or five or more in-vehicle devices. The in-vehicle communication system 13 is not limited to a configuration including one relay device 135, but may be a configuration including two or more relay devices.
[0044] The in-vehicle device 131 is, for example, a TCU (Telematics Communication Unit).
[0045] The in-vehicle devices 133 and 134 are, for example, an automatic driving ECU (Electronic Control Unit), a sensor, a navigation device, a human-machine interface, a camera, etc. The in-vehicle device 132 will be described later.
[0046] In the in-vehicle communication system 13, the in-vehicle devices 131 to 134 are connected to a relay device 135 via an Ethernet (registered trademark) cable.
[0047] The relay device 135 is, for example, a switch device. The relay device 135 may be a gateway device. The relay device 135 relays Ethernet frames in accordance with the Ethernet communication standard.
[0048] Specifically, relay device 135 relays, for example, Ethernet frames exchanged among on-vehicle devices 131 to 134. An IP packet is stored in the Ethernet frame.
[0049] In addition, the in-vehicle communication system 13 is not limited to a configuration in which Ethernet frames are relayed in accordance with the Ethernet communication standard, but may be a configuration in which data is relayed in accordance with communication standards such as CAN (Controller Area Network) (registered trademark), FlexRay (registered trademark), MOST (Media Oriented Systems Transport) (registered trademark), and LIN (Local Interconnect Network).
[0050] 1 and 2, the TCU 131 is capable of communicating with the infrastructure side device 12. In particular, the TCU 131 is capable of communicating with the server 11 via the infrastructure side device 12 according to, for example, the IP protocol.
[0051] More specifically, the TCU 131 is capable of wirelessly communicating with the infrastructure side device 12 in accordance with a communication standard such as LTE (Long Term Evolution) or 5G.
[0052] Specifically, when TCU 131 receives, for example, a wireless frame containing an IP packet from an IP server from infrastructure side device 12, it obtains the IP packet from the received wireless frame, stores the obtained IP packet in an Ethernet frame, and transmits the frame to relay device 135.
[0053] Furthermore, when the TCU 131 receives an Ethernet frame from the relay device 135 , it acquires an IP packet from the received Ethernet frame, stores the acquired IP packet in a wireless frame, and transmits the wireless frame to the infrastructure side device 12 .
[0054] In addition, the TCU 131 is capable of wirelessly communicating with a TCU in another vehicle 10B, for example, by short-range wireless communication or the like.
[0055] 3 is a diagram showing a configuration of an in-vehicle device in an in-vehicle communication system according to an embodiment of the present disclosure, in which the configuration of an in-vehicle device 132 in a vehicle 10A is shown as an example.
[0056] 3, the in-vehicle device 132 includes a communication unit 1321, a processing unit 1322, and a storage unit 1323. The communication unit 1321 is realized by a communication circuit such as a communication IC (Integrated Circuit). The processing unit 1322 is realized by a CPU or a DSP (Digital Signal Processor The storage unit 1323 is, for example, a non-volatile memory.
[0057] The communication unit 1321 exchanges data with the vehicle 10B and the infrastructure side device 12 via the TCU 131. The communication unit 1321 also exchanges data with the other in-vehicle devices 131, 133, and 134 via the relay device 135.
[0058] The processing unit 1322, for example, divides data into a plurality of IP packets, stores the packets, and performs processes such as encryption and decryption of the data portion of each IP packet.
[0059] 4 is a diagram showing the configuration of a processing unit in an in-vehicle device according to an embodiment of the present disclosure, and illustrates the configuration of a processing unit 1322 in a vehicle 10A as an example.
[0060] With reference to FIG. 4, the processing unit 1322 includes a timer 1324 , an encryption unit 1325 , a decryption unit 1326 , and a vehicle information acquisition unit 1327 .
[0061] The timer 1324 periodically stores time information indicating the current time in the storage unit 1323 .
[0062] The vehicle information acquisition unit 1327 acquires information indicating the traveling state of the vehicle 10 A, such as the speed, from other in-vehicle devices via the relay device 135 and the communication unit 1321 , and outputs the information to the encryption unit 1325 .
[0063] The encryption unit 1325 receives information indicating the driving condition from the vehicle information acquisition unit 1327, and if the information satisfies certain conditions as described below, it acquires time information from the memory unit 1323 and encrypts the IP packet using the time information and a random number.
[0064] As described later, when the decryption unit 1326 receives an encrypted IP packet from the other vehicle 10B via the TCU 131, the relay device 135, and the communication unit 1321, the decryption unit 1326 decrypts the IP packet.
[0065] [Operation flow] Each device in the vehicle management system 1 is equipped with a computer, and a processor such as a CPU in the computer reads out from a memory (not shown) and executes a program including some or all of the steps in the sequence diagrams or flowcharts below. Each of the programs for the multiple devices can be installed from outside. Each of the programs for the multiple devices is distributed in a state where it is stored on a recording medium.
[0066] FIG. 5 is a diagram showing the first half of a sequence illustrating the encrypted communication process in a vehicle management system according to an embodiment of the present disclosure.
[0067] 3 to 5, first, the infrastructure side device 12 periodically transmits time information to the vehicle 10A and the other vehicle 10B (step S101).
[0068] Next, the vehicle 10A and the other vehicle 10B receive time information from the infrastructure device 12 and perform time synchronization. Network The Time Protocol is used (step S102).
[0069] Next, the vehicle 10A and the other vehicle 10B periodically broadcast a communication available notification indicating that they have entered the communication range of their own vehicles. Then, when the other vehicle 10B enters the communication range, the processing unit 1322 in the vehicle 10A receives the communication available notification from the other vehicle 10B via the TCU 131, the relay device 135, and the communication unit 1321 (step S103).
[0070] When the processing unit 1322 receives a communication possible notification from the other vehicle 10B for the first time, the processing unit 1322 generates first key derivation information according to the first scheme, and generates first key information using the first key derivation information.
[0071] The first method is, for example, an encryption method that combines a private key and public key encryption method with a common key encryption method.
[0072] More specifically, in the first method, processing unit 1322 generates a pair of a private key and a public key as first key derivation information by using the time information and a random number stored in storage unit 1323. Processing unit 1322 stores the generated pair of a private key and a public key in storage unit 1323 (steps S104 and S105).
[0073] Next, the processing unit 1322 generates a digital certificate for the generated public key, and stores it in the storage unit 1323 (step S106).
[0074] Next, similar to vehicle 10A, processing unit 1322 in other vehicle 10B also generates a pair of a private key and a public key as first key derivation information using the time information and a random number in the first scheme. In other vehicle 10B, processing unit 1322 generates a digital certificate for the generated public key and stores it in memory unit 1323 (steps S107 to S109).
[0075] Next, the processing unit 1322 in the vehicle 10A transmits the public key and the electronic certificate stored in the storage unit 1323 together with a key exchange request to the other vehicle 10B via the communication unit 1321 and the TCU 131 (step S110).
[0076] Next, in the other vehicle 10B, when the processing unit 1322 receives the public key, the electronic certificate, and the key exchange request from the vehicle 10A via the TCU 131 and the communication unit 1321, the processing unit 1322 verifies the electronic certificate (step S111).
[0077] Next, in the other vehicle 10B, when the processing unit 1322 confirms that the received public key was generated in the vehicle 10A, it transmits the generated public key and electronic certificate together with a key exchange response to the vehicle 10A via the communication unit 1321 and the TCU 131 (step S112).
[0078] Next, when the processing unit 1322 in the vehicle 10A receives the public key, the electronic certificate, and the key exchange response from the other vehicle 10B via the TCU 131 and the communication unit 1321, the processing unit 1322 verifies the electronic certificate (step S113).
[0079] Next, when the processing unit 1322 in vehicle 10A confirms that the received public key was generated in the other vehicle 10B, it sends a key exchange result notification indicating this to the other vehicle 10B via the communication unit 1321 and the TCU 131 (step S114).
[0080] Next, in the vehicle 10A, the processing unit 1322 generates a common key K1 as first key information using the generated private key and the public key received from the other vehicle 10B (step S115).
[0081] Next, similar to vehicle 10A, in other vehicle 10B, when the processing unit 1322 receives a key exchange result notification from vehicle 10A via TCU 131 and communication unit 1321, it generates a common key K1 using the private key generated in the other vehicle 10B and the public key received from vehicle 10A (step S116).
[0082] Next, the processing unit 1322 in the other vehicle 10B generates the common key K1 and transmits a common key confirmation request encrypted using the common key K1 to the vehicle 10A via the communication unit 1321 and the TCU 131 (step S117).
[0083] Next, in vehicle 10A, when the processing unit 1322 receives a common key confirmation request via the TCU 131 and the communication unit 1321, it decrypts the received common key confirmation request using the common key K1 and transmits a common key confirmation response to the other vehicle 10B via the communication unit 1321 and the TCU 131 (step S118).
[0084] Next, in the vehicle 10A, the processing unit 1322 encrypts the IP packet storing the data using the common key K1, which is the first key information. More specifically, the processing unit 1322 divides and stores log information of various software installed in the in-vehicle devices 131, 133, and 134 into a plurality of IP packets. Then, the processing unit 1322 encrypts the data portion of the IP packet using the common key K1, and outputs the IP packet to the communication unit 1321 (step S119).
[0085] Next, the communication unit 1321 in the vehicle 10A receives the encrypted IP packet from the processing unit 1322, and transmits the IP packet to the other vehicle 10B via the TCU 131 (step S120).
[0086] Next, in the other vehicle 10B, when the processing unit 1322 receives the encrypted IP packet from the vehicle 10A via the TCU 131 and the communication unit 1321, it decrypts the data portion of the IP packet using the common key K1. The processing unit 1322 transmits the IP packet storing a part of the log information acquired by the decryption to the infrastructure side device 12 via the communication unit 1321 and the TCU 131. At this time, the processing unit 1322 encrypts the part of the log information and transmits it to the infrastructure side device 12. The encryption method at this time is not particularly limited, and may be a well-known encryption method (step S121).
[0087] FIG. 6 is a diagram showing the second half of the sequence illustrating the encrypted communication process in the vehicle management system according to the embodiment of the present disclosure.
[0088] 6, the processing unit 1322 in the vehicle 10A encrypts an IP packet using the first key information, and then generates second key derivation information according to a second method that requires a shorter time to generate key information than the first method when a first predetermined condition is satisfied, and generates second key information using the second key derivation information. Then, the processing unit 1322 encrypts an IP packet that stores a part of the log information and is to be newly transmitted by the communication unit 1321, using the second key information instead of the first key information.
[0089] The first predetermined condition is, for example, a condition related to an elapsed time or an amount of communication with another vehicle 10B since the start of use of the first key information. More specifically, the condition related to the elapsed time is, for example, when the duration of the encrypted communication using the common key K1 is equal to or longer than a predetermined time. The condition related to the amount of communication is, for example, when the amount of communication of the encrypted communication using the common key K1 is equal to or longer than a predetermined amount.
[0090] However, the first predetermined condition is not limited to the above condition, and may be, for example, a condition related to the traveling state of the vehicle 10A. More specifically, the first predetermined condition is a condition in which the difference in speed or acceleration between the vehicle 10A and the other vehicle 10B is equal to or greater than a predetermined value.
[0091] The second method is, for example, an encryption method using a cryptographic hash function.
[0092] More specifically, in the second method, the processing unit 1322 uses the time information and random numbers stored in the memory unit 1323 to generate a hash value as second key derivation information using a first cryptographic hash function, and generates a common key K2, which is second key information, from the generated hash value using a second cryptographic hash function (steps S122 to S124).
[0093] Next, the processing unit 1322 encrypts the hash value, which is the second key derivation information, using the common key K1, which is the first key information (step S125).
[0094] Next, the processing unit 1322 transmits the encrypted second key derivation information together with a key update request to the other vehicle 10B via the communication unit 1321, the relay device 135, and the TCU 131 (step S126).
[0095] Next, when the processing unit 1322 in the other vehicle 10B receives a key update request and a hash value, which is the encrypted second key derivation information, from vehicle 10A via TCU 131, relay device 135 and communication unit 1321, it decrypts the hash value using the common key K1, which is the first key information (step S127).
[0096] Next, the processing unit 1322 in the other vehicle 10B generates a common key K2 from the hash value, which is the decrypted second key derivation information, using a second cryptographic hash function (step S128).
[0097] Next, the processing unit 1322 in vehicle 10A transmits a common key confirmation request to the other vehicle 10B via the communication unit 1321, the relay device 135 and the TCU 131 a predetermined time after transmitting the encrypted second key derivation information to the other vehicle 10B (step S129).
[0098] Next, when the processing unit 1322 in the other vehicle 10B receives a common key confirmation request from the vehicle 10A via the TCU 131, the relay device 135, and the communication unit 1321 and has completed generation of the common key K2, it switches the key information used to encrypt the IP packets from the common key K1 to the common key K2. Then, the processing unit 1322 transmits a common key confirmation response to the vehicle 10A via the communication unit 1321, the relay device 135, and the TCU 131, and discards the common key K1, which is the first key information (steps S130 and S131).
[0099] Next, when the processing unit 1322 in the vehicle 10A receives a common key confirmation response from the other vehicle 10B via the TCU 131 and the communication unit 1321, the processing unit 1322 switches the key information used for encrypting the IP packet from the common key K1 to the common key K2. Then, the processing unit 1322 discards the common key K1, which is the first key information (step S132).
[0100] Next, the processing unit 1322 in the vehicle 10A encrypts the data portion of an IP packet that has not yet been transmitted to another vehicle 10B, for example an IP packet that stores a portion of the log information divided in step S119 of FIG. 5, using the common key K2, and outputs the IP packet to the communication unit 1321 (step S133).
[0101] Next, the communication unit 1321 in the vehicle 10A receives the encrypted IP packet from the processing unit 1322, and transmits the IP packet to the other vehicle 10B via the TCU 131 (step S134).
[0102] Next, in another vehicle 10B, when the processing unit 1322 receives the encrypted IP packet from vehicle 10A via the TCU 131 and the communication unit 1321, it sends a packet reception response to vehicle 10A via the communication unit 1321 and the TCU 131, and decrypts the data portion of the IP packet using the common key K2 (steps S135 and S136).
[0103] Next, the processing unit 1322 in the other vehicle 10B transmits a part of the log information acquired by decryption to the infrastructure side device 12 via the communication unit 1321 and the TCU 131. At this time, the processing unit 1322 encrypts an IP packet storing the part of the log information and transmits it to the infrastructure side device 12. The encryption method at this time is not particularly limited, and may be a well-known encryption method (step S137).
[0104] Next, when the second predetermined condition is satisfied, the processing unit 1322 in the vehicle 10A generates new second key derivation information according to the second method, and generates new second key information using the new second key derivation information. Then, the processing unit 1322 encrypts an IP packet storing a part of the log information, which is newly transmitted by the communication unit 1321, using the new second key information. More specifically, when a predetermined time has elapsed from the start of encrypted communication using the common key K2, the processing unit 1322 generates a new cryptographic hash function as the second key derivation information using time information and a random number, generates a new common key K2 using the generated cryptographic hash function, and starts encrypted communication with another vehicle 10B using the common key K2. After starting encrypted communication using the new common key K2, the processing unit 1322 discards the old common key K2. In this way, when the second predetermined condition is satisfied, by updating the common key K2, security can be ensured even if the amount of log information increases due to a change in the state of the vehicle 10A, for example. The second predetermined condition is not limited to a predetermined elapsed time from the start of encrypted communication using the common key K2, and may be a condition related to the traveling state of the vehicle 10A, or the like.
[0105] In this way, the processing unit 1322 performs encrypted communication in the second scheme while sequentially updating the second key information.
[0106] If the processing unit 1322 in vehicle 10A sends an IP packet encrypted using the second key information, which is the common key, to the other vehicle 10B and does not receive a packet reception response from the other vehicle 10B within a predetermined time, it discards the second key information, which is the common key, the private key and public key pair, which is the first key derivation information, and the electronic certificate for the public key, and terminates the encrypted communication with the other vehicle 10B (step S138).
[0107] The vehicle 10A may transmit log information of the software in the other vehicle 10B to the infrastructure side device 12. More specifically, when the processing unit 1322 in the other vehicle 10B receives an encrypted IP packet from the vehicle 10A via the TCU 131 and the communication unit 1321, the processing unit 1322 may encrypt the IP packet in which part of the log information of various software installed in each in-vehicle device in the other vehicle 10B is stored, using the common key K1 or K2, and transmit the IP packet together with a packet reception response to the vehicle 10A via the communication unit 1321 and the TCU 131. In this case, the processing unit 1322 in the vehicle 10A decrypts the IP packet received via the TCU 131 and the communication unit 1321 using the common key K1 or K2, and transmits the IP packet in which part of the log information of the other vehicle 10B obtained by the decryption is stored to the infrastructure side device 12.
[0108] If the vehicle 10A and the other vehicle 10B do not satisfy the first predetermined condition within a predetermined time during encrypted communication using the common key K1, which is the first key information, the vehicle 10A and the other vehicle 10B end the encrypted communication using the common key K1. More specifically, if a predetermined time has elapsed since the vehicle 10A and the other vehicle 10B started using the common key K1 and the first predetermined condition is not satisfied, the vehicle 10A and the other vehicle 10B discard the common key K1 and end the encrypted communication. However, the vehicle 10A and the other vehicle 10B may end the encrypted communication using the common key K1 regardless of the passage of time, for example, when one of the vehicles stops traveling or when the ignition or power is turned off.
[0109] Furthermore, the other vehicle 10B is not limited to a configuration in which it switches the key information used to encrypt IP packets from the common key K1 to the common key K2 when it receives a common key confirmation request from the vehicle 10A and completes the generation of the common key K2. The other vehicle 10B may switch the key information used to encrypt IP packets from the common key K1 to the common key K2 when it receives an Ethernet frame including specific content such as a flag from the vehicle 10A. In this case, the vehicle 10A switches the key information used to encrypt IP packets from the common key K1 to the common key K2 when it transmits an Ethernet frame including the above-mentioned specific content.
[0110] Incidentally, data such as log information of various software in a vehicle is stored, for example, in an EDR (Event Data Recorder) mounted in the vehicle. However, due to limitations in the storage capacity of the EDR, the amount of log information that can be stored in the EDR is limited. Therefore, in order to collect more data, it is conceivable to upload the vehicle log information to a server at any time. In this case, data is exchanged between the vehicle and the server using wireless communication, so the data needs to be encrypted.
[0111] However, in order for a vehicle to perform encrypted communication with other equipment such as a server, information such as an electronic certificate and an encryption key required for encryption must be stored and managed in the vehicle in advance from an external system such as a certificate authority and a key generation authority. Since management of the information required for encryption is performed for each individual vehicle, it becomes complicated and difficult as the number of vehicles increases.
[0112] In contrast, in the vehicle management system, the in-vehicle device, the encryption communication method, and the encryption communication program according to the present embodiment, the common keys K1 and K2 are generated in the vehicle and used to encrypt the IP packets storing data. The common keys K1 and K2 are discarded when a predetermined time has passed or the wireless connection is cut off. Thereafter, when uploading the IP packets to the server 11 again, a new common key is generated and used to encrypt the IP packets. In this way, the common keys K1 and K2 used to encrypt the IP packets are generated in the vehicle and are time-limited to be used only for a certain period of time, so that it is not necessary to use and manage the unique key previously stored in each vehicle for a long period of time. In addition, by using a time-limited common key, even if the encrypted communication using the common keys K1 and K2 is intercepted and decrypted, the subsequent encrypted communication uses a common key different from the common keys K1 and K2. Therefore, it is possible to reduce the possibility that the subsequent encrypted communication will be decrypted again by the decryption method of the previous encrypted communication. Therefore, it is possible to provide better communication in the in-vehicle network.
[0113] In addition, when the vehicle 10A communicates with the infrastructure device 12 using a standard such as LTE or 5G, depending on the location of the vehicle 10A or the communication environment, the communication may become unstable, making it difficult to upload data to the server 11.
[0114] In contrast, in the vehicle management system, in-vehicle device, encrypted communication method, and encrypted communication program according to the present embodiment, vehicle 10A uploads data to server 11 via other vehicle 10B and infrastructure side device 12. Therefore, even if communication between vehicle 10A and infrastructure side device 12 is unstable or impossible, if other vehicle 10B can communicate with infrastructure side device 12, it is possible to upload log information of vehicle 10A to server 11. Therefore, better communication can be provided in the in-vehicle network.
[0115] In addition, in general, encrypted communication using a common key has the possibility of being decrypted if the common key becomes known to a third party when it is handed over to the communication partner. On the other hand, encrypted communication using a pair of a private key and a public key only passes the public key to the communication partner, and even if this public key becomes known to a third party, the possibility of decrypting the encryption is low. For this reason, it is desirable to adopt encrypted communication using a pair of a private key and a public key for vehicle-to-vehicle communication.
[0116] However, generating a pair of private and public keys requires a lot of processing and takes a long time. Because vehicles are moving, vehicle-to-vehicle communication may be unintentionally cut off due to the distance between the vehicles, obstacles, etc. Therefore, in vehicle-to-vehicle communication, it is desirable to generate keys quickly.
[0117] In contrast, in the vehicle management system, in-vehicle device, encrypted communication method, and encrypted communication program according to the present embodiment, the vehicles 10A and 10B first generate a common key K1 using a pair of a private key and a public key, which is a first method, but then generate a common key K2 using a cryptographic hash function, which is a second method, and use it for encryption. The common key K2 using a cryptographic hash function can be generated faster than a pair of a private key and a public key. Therefore, IP packets can be encrypted in a short time, and more encrypted IP packets can be exchanged in vehicle-to-vehicle communication. Therefore, better communication can be provided in the in-vehicle network.
[0118] The above-described embodiments should be considered as illustrative and not restrictive in all respects. The scope of the present invention is defined by the claims, not the above description, and is intended to include all modifications within the meaning and scope of the claims.
[0119] The above description includes the following additional features.
[0120] [Appendix 1] An in-vehicle device mounted in a vehicle, a processing unit that generates first key derivation information according to a first scheme, generates first key information using the first key derivation information, and encrypts a packet using the first key information; a communication unit that transmits the packet encrypted by the processing unit to another vehicle, the processing unit generates second key derivation information according to a second scheme in which a time required for generating key information is shorter than that of the first scheme, generates second key information using the second key derivation information, and encrypts a packet to be newly transmitted by the communication unit using the second key information instead of the first key information; an in-vehicle device, wherein when a second predetermined condition is satisfied, the processing unit generates new second key derivation information according to the second method, generates new second key information using the new second key derivation information, and uses the new second key information to encrypt a packet to be newly transmitted by the communication unit. [Explanation of symbols]
[0121] 1 Vehicle management system 10A Vehicle 10B Other vehicles 11 Server 12 Infrastructure equipment 13. In-vehicle communication systems 131~134 In-vehicle equipment 1321 Communications Department 1322 Processing section 1323 Storage section 1324 Timer 1325 Encryption section 1326 Decoding section 1327 Vehicle Information Acquisition Department 135 Relay Device 14 In-vehicle communication systems (other vehicles) 15 MEC
Claims
1. An in-vehicle device mounted in a vehicle, a processing unit that generates first key derivation information according to a first scheme, generates first key information using the first key derivation information, and encrypts a packet using the first key information; a communication unit that transmits the packet encrypted by the processing unit to another vehicle, the processing unit encrypts the packet using the first key information, and then generates second key derivation information according to a second scheme in which a time required for generating key information is shorter than that of the first scheme, generates second key information using the second key derivation information, and encrypts a packet to be newly transmitted by the communication unit using the second key information instead of the first key information; The processing unit encrypts the second key derivation information using the first key information; The communication unit transmits the second key derivation information encrypted by the processing unit to the other vehicle.
2. An in-vehicle device mounted in a vehicle, a processing unit that generates first key derivation information according to a first scheme, generates first key information using the first key derivation information, and encrypts a packet using the first key information; a communication unit that transmits the packet encrypted by the processing unit to another vehicle, the processing unit encrypts the packet using the first key information, and then generates second key derivation information according to a second scheme in which a time required for generating key information is shorter than that of the first scheme, generates second key information using the second key derivation information, and encrypts a packet to be newly transmitted by the communication unit using the second key information instead of the first key information; The processing unit generates a pair of a private key and a public key as the first key derivation information in the first scheme, and generates a common key as the first key information using the pair; the processing unit, in the second scheme, generates a hash value as the second key derivation information by using a first cryptographic hash function, and generates a common key from the hash value by using a second cryptographic hash function; The communication unit transmits the hash value generated by the processing unit to the other vehicle.
3. When a predetermined condition is satisfied, the processing unit generates the second key information and uses the second key information instead of the first key information to encrypt a packet to be newly transmitted by the communication unit; The in-vehicle device according to claim 1 , wherein the predetermined condition is a condition related to an elapsed time or an amount of communication with the other vehicle since the use of the first key information started.
4. When a predetermined condition is satisfied, the processing unit generates the second key information and uses the second key information instead of the first key information to encrypt a packet to be newly transmitted by the communication unit; The in-vehicle device according to claim 1 , wherein the predetermined condition is a condition related to a running state of the vehicle.
5. The in-vehicle device according to claim 1 , wherein the processing unit updates the second key information.
6. The in-vehicle device according to claim 1 , wherein the processing unit uses time information and a random number to generate key derivation information in at least one of the first method and the second method.
7. the processing unit decrypts the encrypted packet received from the other vehicle according to the first scheme or the second scheme; The in-vehicle device according to claim 1 , wherein the communication unit transmits the data stored in the decrypted packet to an infrastructure device.
8. An encryption communication method for an in-vehicle device mounted in a vehicle, comprising: generating first key derivation information according to a first scheme, generating first key information using the first key derivation information, and encrypting a packet using the first key information; transmitting the encrypted packet to another vehicle; generating second key derivation information according to a second scheme in which a time required for generating key information is shorter than that of the first scheme after encrypting the packet using the first key information, generating second key information using the second key derivation information, and encrypting a packet to be newly transmitted using the second key information instead of the first key information; encrypting the second key derivation information using the first key information; and transmitting the encrypted second key derivation information to the other vehicle.
9. An encrypted communication program for use in an in-vehicle device mounted in a vehicle, Computer, a processing unit that generates first key derivation information according to a first scheme, generates first key information using the first key derivation information, and encrypts a packet using the first key information; a program for causing the vehicle to function as a communication unit that transmits the packet encrypted by the processing unit to another vehicle, the processing unit encrypts the packet using the first key information, and then generates second key derivation information according to a second scheme in which a time required for generating key information is shorter than that of the first scheme, generates second key information using the second key derivation information, and encrypts a packet to be newly transmitted by the communication unit using the second key information instead of the first key information; The processing unit encrypts the second key derivation information using the first key information; The communication unit transmits the second key derivation information encrypted by the processing unit to the other vehicle.
Citation Information
Patent Citations
Cryptographic key updating method
JP2003110540A
Storage device and data management method
JP2009064178A
Communication device and communication control method
JP2011087249A
Vehicle information transmitting device, vehicle information receiving device, vehicle information communication method, and computer program
JP2020017805A
Terminal device
WO2012008158A1
