Vehicle electronic control units, gateway units, and the vehicle including them
By introducing an encrypted message verification mechanism into vehicles and utilizing message authentication codes and counter information, the problem of gateway devices being unable to recognize encrypted messages is solved, thereby improving the security and reliability of vehicle networks.
Patent Information
- Application Number
- CN202111360509.3
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Priority Date
- 2021-03-31
- Filing Date
- 2021-11-17
- Publication Date
- 2026-11-17
- Estimated Expiration
- 2041-11-17
AI Technical Summary
The gateway device cannot recognize encrypted messages, which may pose a potential danger to the vehicle due to external intrusion information. Existing technology cannot effectively verify the legitimacy and integrity of encrypted messages.
The vehicle's electronic control unit generates encrypted messages and attaches a message authentication code. The gateway device verifies the identification information and the message authentication code to determine whether to allow routing. The encrypted message contains counter information to prevent replay attacks.
It enables effective verification of encrypted messages, prevents forged messages from intruding, improves the security and reliability of vehicle networks, and prevents replay attacks.
Smart Images

Figure CN115150115B_ABST
Abstract
Description
[0001] Cross-references to related applications
[0002] This application claims the benefit of Korean Patent Application No. 10-2021-0042172, filed with the Korean Intellectual Property Office on March 31, 2021, the entire contents of which are incorporated herein by reference. Technical Field
[0003] This invention relates to electronic control devices for vehicles, gateway devices, and vehicles including the same. Background Technology
[0004] To ensure the confidentiality of messages, the vehicle's electronic controls encrypt important messages. However, because only the electronic controls that receive or send encrypted messages share the decryption key, the gateway device cannot recognize the encrypted messages.
[0005] Consequently, the gateway device cannot perform the decryption process for encrypted messages. When the gateway device routes encrypted messages without verifying them, forged and potentially dangerous external intrusion messages may be permitted on the vehicle network. Consequently, such external intrusion could lead to injury or property damage to vehicle passengers. Summary of the Invention
[0006] One aspect of the present invention provides an electronic control device for a vehicle, a gateway device, and a vehicle including the thereof, which is capable of determining whether to allow or block the routing of encrypted messages by verifying encrypted messages.
[0007] The technical problems to be solved by the present invention are not limited to those described above. Those skilled in the art will clearly understand any other technical problems not mentioned herein through the following description.
[0008] According to one aspect of the present invention, a vehicle may include an electronic control device and a gateway device. The electronic control device encrypts data, generates an encrypted message including encrypted data and a Message Authentication Code (MAC) of the encrypted data, and sends the encrypted message and identification information corresponding to the encrypted message to another device. The gateway device receives the encrypted message and the identification information, determines whether the identification information is the same as pre-stored identification information, generates the MAC of the encrypted data, determines whether the generated MAC is the same as the MAC obtained from the encrypted message, and routes the encrypted message based on the determination result.
[0009] According to one implementation, the vehicle's electronic control unit can generate encrypted messages that further include counter information.
[0010] According to one implementation, when the gateway device determines that the identification information is different from the pre-stored identification information, the gateway device can prevent the routing of encrypted messages.
[0011] According to one implementation, when the gateway device determines that the generated MAC is different from the MAC obtained from the encrypted message, the gateway device can prevent the routing of the encrypted message.
[0012] According to one implementation, when the gateway device determines that the generated MAC is the same as the MAC obtained from the encrypted message, the gateway device routes the encrypted message.
[0013] According to one aspect of the present invention, an electronic control device for a vehicle may include a message generating device and a communication device. The message generating device encrypts data using a first key and generates an encrypted message including encrypted data and a MAC, wherein the MAC is generated using the encrypted data and a second key different from the first key. The communication device transmits the encrypted message and identification information corresponding to the encrypted message to another device.
[0014] According to one implementation, the first key may be a shared secret key (SSK) with another device, and the second key may be a vehicle shared key (VSK).
[0015] According to one implementation, the message generating device can generate an encrypted message that further includes counter information.
[0016] According to one aspect of the present invention, a gateway device may include a communication device, a determination device, and a message processor. The communication device receives an encrypted message including encrypted data and a MAC, and identification information corresponding to the encrypted message. The determination device determines whether the identification information is the same as pre-stored identification information, generates a MAC by using a pre-stored third key and encrypted data obtained from the encrypted message, and determines whether the generated MAC is the same as the MAC obtained from the encrypted message. The message processor routes the encrypted message based on the determination result of the determination device.
[0017] According to one implementation scheme, the third key can be VSK.
[0018] According to one implementation, when the determining device determines that the identification information is different from the pre-stored identification information, the message processor can prevent the routing of the encrypted message.
[0019] According to one implementation, when the determining device determines that the generated MAC is different from the MAC obtained from the encrypted message, the message processor can prevent the routing of the encrypted message.
[0020] According to one implementation, when the determining device determines that the generated MAC is the same as the MAC obtained from the encrypted message, the message processor can route the encrypted message.
[0021] According to one implementation scheme, the encrypted message may further include counter information.
[0022] According to one implementation, when the determining device determines that the counter value included in the encrypted message is greater than the counter value corresponding to the pre-stored identification information, the message processor can route the encrypted message and increment the counter information. Attached Figure Description
[0023] The above and other objects, features, and advantages of the present invention will become more apparent from the following detailed description presented in conjunction with the accompanying drawings:
[0024] Figure 1 This is a block diagram illustrating a vehicle including an electronic control device and a gateway device according to an embodiment disclosed in this specification;
[0025] Figure 2 This is a schematic diagram illustrating the response process to encrypted messages received from the vehicle's electronic control unit according to the embodiments disclosed in this specification.
[0026] Figure 3 This is a schematic diagram illustrating the response process to an encrypted message received from another device in the vehicle according to the embodiment disclosed in this specification;
[0027] Figure 4 This is a schematic diagram illustrating a response process to an encrypted message received from another device in a vehicle, according to another embodiment disclosed in this specification.
[0028] Figure 5 This is a block diagram illustrating an electronic control device for a vehicle according to an embodiment of the present invention;
[0029] Figure 6 This is a block diagram illustrating a gateway device according to an embodiment disclosed in this specification. Detailed Implementation
[0030] It should be understood that the term "vehicle" or "of a vehicle" or other similar terms as used herein generally include motor vehicles, such as passenger vehicles including sport utility vehicles (SUVs), buses, trucks, and various commercial vehicles, vessels including various boats and ships, aircraft, etc., and includes hybrid vehicles, electric vehicles, plug-in hybrid electric vehicles, hydrogen-powered vehicles, and other alternative fuel vehicles (e.g., vehicles derived from non-petroleum fuels). As mentioned herein, a hybrid vehicle is a vehicle with two or more power sources, such as both gasoline power and electric power.
[0031] The terminology used herein is for the purpose of describing particular embodiments only and is not intended to limit the invention. As used herein, unless the context clearly indicates otherwise, the singular forms “a,” “an,” and “the” are intended to also include the plural forms. It will also be understood that when the terms “comprising” and / or “including” are used in this specification, they indicate the presence of the stated features, values, steps, operations, elements, and / or components, but do not exclude the presence or inclusion of one or more other features, values, steps, operations, elements, components, and / or groups thereof. As used herein, the term “and / or” includes any and all combinations of one or more of the associated listed items. Throughout the specification, unless explicitly stated otherwise, the word “comprising” and variations such as “including” or “comprising” should be understood to imply the inclusion of the stated elements, but do not exclude any other elements. Furthermore, the terms “unit,” “device,” “component,” and “module” described in the specification mean a unit for performing at least one function and operation, and can be implemented by hardware components or software components and combinations thereof.
[0032] Furthermore, the control logic of this invention can be embodied in a non-volatile computer-readable medium containing executable program instructions that are executed by a processor, controller, etc. Examples of computer-readable media include, but are not limited to, ROM, RAM, optical disc (CD)-ROM, magnetic tape, floppy disk, flash drive, smart card, and optical data storage device. The computer-readable medium can also be distributed across a network-connected computer system, allowing it to be stored and executed in a distributed manner, for example, via a telematics server or a controller area network (CAN).
[0033] Exemplary embodiments of the invention will now be described in detail with reference to the accompanying drawings. When adding reference numerals to components in each drawing, it should be noted that although the same components are indicated in other drawings, they also have the same reference numerals. In describing embodiments of the invention, detailed descriptions associated with known functions or configurations will be omitted where such descriptions unnecessarily obscure the spirit of the invention.
[0034] In describing elements of exemplary embodiments of the present invention, terms such as first, second, A, B, (a), (b), etc., may be used herein. These terms are used only to distinguish one element from another, but they do not limit the corresponding element or take into account the nature, order, or priority of the corresponding element. Furthermore, unless otherwise defined, all terms used herein (including technical and scientific terms) are to be construed as having their ordinary meaning in the art to which this invention pertains. It will be understood that terms used herein should be construed as having the same meaning as in the context of this invention and in the relevant technical field, and not as having an ideal or overly formal meaning, unless expressly defined herein.
[0035] Figure 1 This is a block diagram illustrating a vehicle according to the embodiment disclosed in the specification.
[0036] Reference Figure 1 The vehicle 1000 may include an electronic control unit 100 and a gateway device 200. The electronic control unit 100 of the vehicle 1000 may generate encrypted messages and may send the encrypted messages to another device (e.g., another electronic control unit). The gateway device 200 may determine whether to route the encrypted messages.
[0037] Electronic control unit 100 and gateway unit 200 can communicate with each other using Controller Area Network (CAN) communication technology. In this document, CAN communication can be defined as a standard communication specification designed for communication between Electronic Control Units (ECUs) of a vehicle that does not have a host computer. CAN communication can utilize a method that assigns CAN identifiers (IDs) to messages based on message priority rather than node addresses, and identifies messages using CAN IDs.
[0038] For example, when any electronic control unit of the vehicle sends a message, each of the other electronic control units of the vehicle can determine whether the message sent by that electronic control unit is a necessary message based on the CAN ID. When the message is a necessary message, each of the other electronic control units of the vehicle can receive the message. When the message is an unnecessary message, each of the other electronic control units of the vehicle can ignore the message.
[0039] The electronic control unit 100 of vehicle 1000 can encrypt data. For example, the electronic control unit 100 of vehicle 1000 can encrypt data by using a shared secret key (SSK) for a secure application, which is a secret key shared only by the respective electronic control units that send and receive the data.
[0040] The electronic control device 100 can generate an encrypted message that includes encrypted data and a Message Authentication Code (MAC). In this document, the MAC can be defined as information sent along with the message to verify message integrity and message authentication. Message integrity indicates that the sent message has not been altered. Message authentication indicates that the sent message came from the correct sender.
[0041] For example, the electronic control unit 100 may generate a MAC in the following ways: by inputting an encrypted message and a vehicle shared key (VSK) into a hash function to generate a hash message authentication code (HMAC), or by inputting a message and a VSK into a symmetric key algorithm to generate a cipher-based message authentication code (CMAC).
[0042] The electronic control device 100 can generate encrypted messages that include encrypted data and MACs generated using the encrypted data.
[0043] The electronic control device 100 can send encrypted messages and corresponding identification information to another device. For example, the identification information corresponding to the encrypted message may be a CAN ID, which serves as the ID of a CAN message.
[0044] The electronic control unit 100 can generate an encrypted message that further includes counter information. Here, a counter can be defined as a register or memory device used to indicate the number of times a specific event has occurred. When the next input signal or input pulse is received in the current state, the counter can store a new value by incrementing the existing value by one. For example, the electronic control unit 100 of vehicle 100 can further include counter information in the encrypted message, incrementing the counter value by one each time a message is sent.
[0045] The gateway device 200 of vehicle 1000 can determine whether the counter value of the encrypted message received from the electronic control device 100 is greater than the counter value of the previously received encrypted message.
[0046] For example, when it is determined that the counter value of a received encrypted message is not greater than the counter value of a previously received encrypted message, the gateway device 200 can determine that the encrypted message is an intrusion signal used to steal the MAC address of previously sent encrypted messages to the gateway device 200, and can then block routing. Accordingly, the vehicle 1000 can further include counter information in the encrypted message using the electronic control device 100. The vehicle 1000 can prevent replay attacks by using the gateway device 200 to verify the counter value of the encrypted message.
[0047] In this paper, a replay attack can mean that during MAC verification, a third party steals network traffic to copy the MAC address and then impersonates a legitimate user by sending the copied MAC address to the network. That is, a replay attack can be defined as illegally accessing a vehicle's MAC address by stealing data packets exchanged by other parties on the network. In this paper, when the counter value of a received encrypted message is not greater than a previously stored counter value, the gateway device 200 can determine that the received encrypted message was generated by stealing data from the counter value of previously received encrypted messages.
[0048] Vehicle 1000 can enable communication between its electronic control devices by utilizing gateway device 200. For example, gateway device 200 can be defined as a software or hardware device that enables communication between networks using different communication protocols in a computer network. That is, a gateway can be defined as a device that connects different networks (heterogeneous networks) and acts as a channel between different networks.
[0049] In this document, gateway device 200 can receive encrypted messages sent by electronic control unit 100 of vehicle 100 to another device that shares a Security Key (SSK) with electronic control unit 100 of vehicle 100. SSK is the security key used to encrypt messages. Gateway device 200 can verify the encrypted messages without requiring a decryption process. When verification is successful, gateway device 200 can route the encrypted message to the other device.
[0050] The gateway device 200 can receive encrypted messages that include encrypted data and a MAC address, as well as identification information corresponding to the encrypted message. In this document, for example, the identification information corresponding to the encrypted message may be a CAN ID.
[0051] Gateway device 200 can determine whether the identification information is the same as previously stored identification information. When it is determined that the identification information is different from the previously stored identification information, gateway device 200 can prevent the routing of encrypted messages. For example, vehicle 1000 can determine whether the CAN ID information of an encrypted message previously obtained by electronic control unit 100 of vehicle 100 is the same as the CAN ID information of the received encrypted message.
[0052] Gateway device 200 can generate a MAC using encrypted data obtained from an encrypted message. For example, gateway device 200 can generate a MAC for encrypted data using encrypted data obtained from an encrypted message and a VSK, where VSK is a vehicle-shared key shared by all electronic control devices in vehicle 1000.
[0053] In this paper, for example, gateway device 200 can generate HMAC by inputting the encrypted message and VSK into a hash function. Alternatively, gateway device 200 of vehicle 1000 can generate CMAC by inputting the encrypted message and VSK into a symmetric key algorithm.
[0054] When it is determined that the generated MAC is different from the MAC obtained from the encrypted message, the gateway device 200 can prevent the routing of the encrypted message.
[0055] When the gateway device 200 determines that the generated MAC is the same as the MAC obtained from the encrypted message, the gateway device 200 can route the encrypted message. In this document, routing can be defined as the process of selecting the optimal path for transmitting given data with the shortest distance or in the shortest time when communication data is transmitted within a network.
[0056] In this document, the gateway device 200 may be a central gateway (CGW). A CGW can be defined as a gateway for exchanging CAN messages between multiple CAN buses (BUS) within a vehicle, such as the body CAN bus, powertrain CAN bus, and chassis CAN bus. That is, a CGW can be defined as a device generated by integrating separate gateways within the vehicle used for each CAN bus.
[0057] Vehicle 1000 can reduce weight and complexity by using the CGW's serial communication lines to replace the complex electrical wiring and relays between the vehicle's electronic control units, and can instantly and rapidly transmit large amounts of multimedia data between the vehicle's electronic control units. Accordingly, Vehicle 1000 can improve transmission / reception speed and reliability.
[0058] In this document, the gateway device 200 may be equipped with an Intrusion Detection System (IDS) as an intrusion detection technology. An IDS can be defined as a network security system that collects and analyzes information about external intrusions, detects intrusion activities, and provides notifications of external intrusions to respond to them. The IDS can detect intrusion signals sent by unauthorized users, such as hackers, by controlling the electronic control unit 100 of the vehicle 100 or the vehicle network.
[0059] The following text will refer to Figures 2 to 4 The operation of the vehicle 1000, including the electronic control unit 100 and the gateway unit 200, will be described in detail.
[0060] Figure 2 This is a schematic diagram illustrating the response process to encrypted messages received from the vehicle's electronic control unit according to the embodiments disclosed in this specification.
[0061] exist Figure 2 In this system, the electronic control unit 100 of vehicle 1000 can generate encrypted data using SSK, and can generate a MAC using the encrypted data and VSK. The electronic control unit 100 of vehicle 1000 can generate an encrypted message including the encrypted data and the MAC, and can send the encrypted message and identification information about the encrypted message.
[0062] exist Figure 2 In this process, the gateway device 200 can determine whether the identification information received from the electronic control unit 100 of the vehicle 100 is the same as the previously stored identification information, and then generate a MAC using VSK and encrypted data. The gateway device 200 can determine whether the MAC received from the electronic control unit 100 of the vehicle 100 is the same as the generated MAC. Subsequently, when the MAC matching verification is successful, the gateway device 200 can allow the routing of encrypted messages.
[0063] Figure 3 This is a schematic diagram illustrating the response process to an encrypted message received from another device in the vehicle, according to the embodiment disclosed in this specification.
[0064] exist Figure 3 In this system, the electronic control unit 100 of vehicle 1000 can generate encrypted data using SSK, and can generate a MAC using the encrypted data and VSK. The electronic control unit 100 of vehicle 1000 can generate an encrypted message including the encrypted data and the MAC, and can send identification information about the encrypted message.
[0065] Reference Figure 3Gateway device 200 can receive encrypted messages and their identification information from another device. Then, gateway device 200 can determine whether the pre-stored identification information is the same as the identification information received from the other device. When verification fails due to mismatched identification information, gateway device 200 can prevent routing of the encrypted message received from the other device.
[0066] Figure 4 This is a schematic diagram illustrating a response process to an encrypted message received from another device in a vehicle, according to another embodiment disclosed in this specification.
[0067] exist Figure 4 In this system, the electronic control unit 100 of vehicle 1000 can generate encrypted data using SSK, and can generate a MAC using the encrypted data and VSK. The electronic control unit 100 of vehicle 1000 can generate an encrypted message including the encrypted data and the MAC, and can send identification information about the encrypted message.
[0068] Reference Figure 4 Gateway device 200 can receive encrypted messages and identification information of the encrypted messages from another device. Then, gateway device 200 can determine whether the pre-stored identification information is the same as the identification information received from the other device, and can then generate a MAC using VSK and encrypted data.
[0069] Gateway device 200 can determine whether the MAC received from the electronic control unit 100 of vehicle 100 is the same as the generated MAC. Subsequently, when verification fails due to MAC mismatch, gateway device 200 can prevent routing of encrypted messages received from another device.
[0070] As described above, the vehicle 1000 according to the embodiment disclosed in this specification can assign a separate CAN ID to encrypted messages and can add a MAC to the VSK, which will be used for common purposes within the vehicle 1000. Accordingly, upon successful authentication, the vehicle 1000 can trust encrypted unknown messages when routing is permitted by the vehicle 1000.
[0071] In addition, Vehicle 1000 can prevent the routing of attack messages disguised as normal messages with a specific CAN ID by adding the MAC address to the encrypted message.
[0072] The operation and configuration of the electronic control unit 100 and the gateway device 200 of the vehicle 1000 constituting the vehicle 1000 will be described in detail below.
[0073] First, refer to Figure 5 To describe the operation of the electronic control device 100 of the vehicle 1000.
[0074] Figure 5 This is a block diagram illustrating an electronic control device for a vehicle according to an embodiment of the present invention.
[0075] Reference Figure 5 The electronic control unit 100 of the vehicle 1000 may include a message generation device 110 and a communication device 120.
[0076] The message generating device 110 can encrypt the data using a first key. In this document, the first key can be an SSK, which is a secret key shared only by the respective electronic control devices that send and receive the data.
[0077] For example, message generation device 110 can encrypt data using SSK.
[0078] The message generation device 110 can generate a MAC using encrypted data and a second key different from the first key. In this document, the MAC can be defined as information sent along with the message to verify message integrity and message authentication. Message integrity indicates that the sent message has not been altered. Message authentication indicates that the sent message came from the correct sender.
[0079] In this article, the second key can be VSK, which is a vehicle-shared key shared by all electronic control devices in vehicle 1000.
[0080] For example, message generation device 110 can generate MAC for encrypted data by utilizing VSK and encrypted data obtained from encrypted messages.
[0081] For example, message generation device 110 can generate MAC in the form of HMAC or CMAC. HMAC is generated by inputting the encrypted message and VSK into a hash function, while CMAC is generated by inputting the message and VSK into a symmetric key algorithm.
[0082] The message generating device 110 can generate encrypted messages that include encrypted data and MACs generated using the encrypted data.
[0083] The message generating device 110 can generate encrypted messages that further include counter information.
[0084] In this paper, a counter can be defined as a register or memory device used to indicate the number of times a specific event has occurred. When the next input signal or input pulse is received in the current state, the counter can store a new value by incrementing the existing value by one.
[0085] For example, message generation device 110 can further include counter information in the encrypted message, incrementing the counter value by one each time a message is sent.
[0086] The communication device 120 can send encrypted messages and corresponding identification information to another device. For example, the identification information corresponding to the encrypted message may be a CAN ID, which serves as the ID of a CAN message.
[0087] In the following text, reference will be made to Figure 6 To describe the operation of gateway device 200.
[0088] Figure 6 This is a block diagram illustrating a gateway device 200 according to an embodiment disclosed in the specification.
[0089] Reference Figure 6 The gateway device 200 may include a communication device 210, a determination device 220, and a message processor 230.
[0090] The communication device 210 can receive encrypted messages that include encrypted data and a MAC address, as well as identification information corresponding to the encrypted message. In this document, for example, the identification information corresponding to the encrypted message can be a CAN ID, which serves as the ID of a CAN message.
[0091] In this article, the encrypted message further includes counter information.
[0092] The determining device 220 can determine whether the identification information of the received encrypted data is the same as the pre-stored identification information.
[0093] When it is determined that the identification information of the received encrypted data is different from the pre-stored identification information, the determining device 220 can prevent the routing of the encrypted message.
[0094] The determining device 220 can generate a MAC by utilizing a pre-stored third key and encrypted data obtained from an encrypted message. In this document, for example, the third key could be a VSK, which is a vehicle-shared key shared by all electronic control units in vehicle 1000.
[0095] For example, device 220 can generate an HMAC by inputting the encrypted message and VSK into a hash function. Alternatively, device 220 can generate a CMAC by inputting the encrypted message and VSK into a symmetric key algorithm.
[0096] Device 220 can determine whether the generated MAC is the same as the MAC obtained from the encrypted message.
[0097] The determining device 220 can determine whether the counter value of the received encrypted message is greater than the counter value of the previously received encrypted message.
[0098] For example, when it is determined that the counter value of the received encrypted message is not greater than the counter value of the previously received encrypted message, the determining device 220 can determine that the encrypted message is an intrusion signal for stealing the MAC of the encrypted message previously sent to the gateway device 200, and then the message processor 230 can block the routing.
[0099] The message processor 230 can route encrypted messages based on the determination result of the determination device 220.
[0100] When the determining device 220 determines that the generated MAC is different from the MAC obtained from the encrypted message, the message processor 230 can prevent the routing of the encrypted message.
[0101] When the determining device 220 determines that the generated MAC is the same as the MAC obtained from the encrypted message, the message processor 230 can route the encrypted message.
[0102] In this paper, routing can be defined as the process of selecting the best path for transmitting given data with the shortest distance or in the shortest time when communication data is transmitted within a network.
[0103] When the determining device 220 determines that the counter value included in the encrypted message is greater than the counter value corresponding to the pre-stored identification information, the message processor 230 can route the encrypted message. When routing is complete, the message processor 230 can increment the counter information.
[0104] Therefore, the embodiments of the present invention are not intended to limit the technical spirit of the invention, but are provided for illustrative purposes only. The scope of protection of the present invention should be interpreted by the appended claims, and all equivalents of the claims should be interpreted as being included within the scope of the present invention.
[0105] The electronic control device, gateway device, and vehicle including the vehicle according to the embodiments disclosed in this specification can determine whether to allow or block the routing of encrypted messages by verifying the encrypted messages, even without a process of decrypting the encrypted messages.
[0106] In the foregoing, although the invention has been described with reference to exemplary embodiments and accompanying drawings, the invention is not limited thereto. Those skilled in the art can make various modifications and changes to the invention without departing from the spirit and scope of the invention as claimed by the appended claims.
Claims
1. A vehicle comprising: The vehicle's electronic control unit is configured to encrypt data, generate an encrypted message including the encrypted data and a message authentication code for the encrypted data, and send the encrypted message and identification information corresponding to the encrypted message to another device. and A gateway device is configured to receive encrypted messages and identification information, determine whether the identification information is the same as pre-stored identification information, generate a message authentication code for encrypted data, determine whether the generated message authentication code is the same as a message authentication code obtained from the encrypted message, and route the encrypted message based on the determination result.
2. The vehicle according to claim 1, wherein, The vehicle's electronic control unit generates an encrypted message that further includes counter information.
3. The vehicle according to claim 1, wherein, When the gateway device determines that the identification information is different from the pre-stored identification information, the gateway device prevents the routing of the encrypted message.
4. The vehicle according to claim 1, wherein, When the gateway device determines that the generated message authentication code is different from the message authentication code obtained from the encrypted message, the gateway device prevents the routing of the encrypted message.
5. The vehicle according to claim 1, wherein, When the gateway device determines that the generated message authentication code is the same as the message authentication code obtained from the encrypted message, the gateway device routes the encrypted message.
6. An electronic control device for a vehicle, the electronic control device comprising: A message generation device is configured to encrypt data using a first key shared with another device but not with a vehicle's gateway device, and to generate an encrypted message including encrypted data and a message authentication code, wherein the message authentication code is generated using the encrypted data and a second key different from the first key, wherein the first key is a shared secret key and the second key is a vehicle-shared key shared with the gateway device, so that the gateway device can verify the message authentication code without decrypting the encrypted data; and A communication device configured to send encrypted messages and identification information corresponding to the encrypted messages to another device and a gateway device.
7. The electronic control device for a vehicle according to claim 6, wherein, The message generating device generates an encrypted message that further includes counter information.
8. A gateway device, comprising: A communication device configured to receive an encrypted message including encrypted data and a message authentication code, as well as identification information corresponding to the encrypted message; The device is configured to determine whether the identification information is the same as the pre-stored identification information, generate a message authentication code by using a pre-stored third key and encrypted data obtained from the encrypted message, and determine whether the generated message authentication code is the same as the message authentication code obtained from the encrypted message. as well as A message processor configured to route encrypted messages based on the determination results of a deterministic device.
9. The gateway device according to claim 8, wherein, The third key is the vehicle-shared key.
10. The gateway device according to claim 8, wherein, When the determining device determines that the identification information is different from the pre-stored identification information, the message processor prevents the routing of the encrypted message.
11. The gateway device according to claim 8, wherein, When the determining device determines that the generated message authentication code is different from the message authentication code obtained from the encrypted message, the message processor prevents the routing of the encrypted message.
12. The gateway device according to claim 8, wherein, When the determining device determines that the generated message authentication code is the same as the message authentication code obtained from the encrypted message, the message processor routes the encrypted message.
13. The gateway device according to claim 8, wherein, The encrypted message further includes counter information.
14. The gateway device according to claim 13, wherein, When the determining device determines that the counter value included in the encrypted message is greater than the counter value corresponding to the pre-stored identification information, the message processor routes the encrypted message and increments the counter information.
Citation Information
Patent Citations
Light guiding plate, surface light source device, display device, and electronic device
KR1020210042172A
Vehicle-mounted Ethernet information security protection method
CN110635893A
Communication method of vehicle-mounted gateway, vehicle-mounted gateway and intelligent vehicle
CN111835627A
