Vehicle parts authentication method, device, storage medium and vehicle
The certification of vehicle parts through symmetric encryption technology solves the threat of illegally installed parts to automotive network security, realizes the legality verification and safety certification of vehicle equipment, and improves certification efficiency and security.
Patent Information
- Application Number
- CN202111474861.X
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2021-12-06
- Publication Date
- 2024-10-22
- Estimated Expiration
- 2041-12-06
AI Technical Summary
There are illegally installed parts in cars that threaten vehicle data and permissions, leading to network security issues. Especially in the context of the development of intelligence and networking, an effective authentication method is needed to ensure the legality and security of vehicle equipment. .
Using a vehicle parts authentication method based on symmetric encryption, it authenticates by receiving the vehicle wake-up signal, digital signature and encrypted authentication request, uses the digital certificate and symmetric decryption algorithm to verify the legality of the authentication request, and returns the authentication result within the specified time. Prevent the installation and operation of illegal equipment.
It improves the authentication efficiency and security of vehicle equipment and certification centers, prevents unauthorized equipment from monitoring and maliciously controlling vehicle data, and enhances the safety and reliability of vehicles.
Smart Images

Figure CN116233801B_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the automotive field, and in particular to a vehicle-mounted parts authentication method, device, storage medium and vehicle based on symmetric encryption. Background Art
[0002] On the one hand, with the development of automobile technology, people's requirements for driving experience are getting higher and higher, and a wide variety of additional parts have emerged. At the same time, there may be illegal devices in the uneven additional parts, which can illegally extract or use vehicle data or permissions, thus causing network security problems.
[0003] On the other hand, as cars develop towards intelligence and networking, their functions continue to increase. The networking of vehicles not only allows car manufacturers to understand and track the status of vehicles, but also brings more convenience to users' daily lives. However, illegal users can penetrate into the networked car system through the network to operate and control the vehicle, which will pose a great threat to vehicle safety. To this end, certain measures need to be taken to ensure that the additional parts installed on the vehicle are legal equipment, so as to prevent the installation of unauthorized equipment to monitor the vehicle data and send malicious and false instructions and data to interfere with and damage the vehicle functions. Summary of the invention
[0004] The vehicle-mounted parts authentication method, device, storage medium and vehicle according to the present invention can realize secure authentication based on symmetric encryption between the vehicle-mounted device and the authentication center, thereby improving the authentication efficiency of the authentication center platform and the vehicle-mounted device, and also improving the reliability and security of the authentication.
[0005] To achieve one or more of the above purposes, the present invention provides the following technical solutions. Specifically:
[0006] According to a first aspect of the present invention, a vehicle-mounted part authentication method based on symmetric encryption is provided, characterized in that it includes the following steps: receiving a vehicle wake-up signal; receiving a first authentication request from a vehicle-mounted part; authenticating the first authentication request within a first time period from the receipt of the vehicle wake-up signal; and returning the authentication result to the vehicle-mounted part.
[0007] According to the method of an embodiment of the present invention, the first authentication request is a digitally signed and encrypted authentication request.
[0008] According to a method of another embodiment or any one of the above embodiments of the present invention, authenticating the first authentication request includes: authenticating the signature of the first authentication request using a digital certificate; if the signature is legal, decrypting the first authentication request using a symmetric decryption algorithm; and comparing the decrypted information with preset information.
[0009] The method according to another embodiment of the present invention or any one of the above embodiments further includes: if the first authentication request is received after the first time period, returning authentication rejection information to the vehicle-mounted component.
[0010] The method according to another embodiment of the present invention or any of the above embodiments further includes: if the number of times the first authentication request is received within the first time is greater than a first threshold, returning authentication rejection information to the vehicle-mounted component.
[0011] According to a second aspect of the present invention, there is provided a vehicle-mounted part authentication device based on symmetric encryption, characterized in that the vehicle-mounted part authentication device is configured to: receive a whole vehicle wake-up signal; receive a first authentication request from a vehicle-mounted part; authenticate the first authentication request within the first time of receiving the whole vehicle wake-up signal; and return the authentication result to the vehicle-mounted part.
[0012] According to the device of an embodiment of the present invention, the first authentication request is a digitally signed and encrypted authentication request.
[0013] According to another embodiment of the present invention or any one of the above embodiments, the vehicle parts authentication device is also configured to: authenticate the signature of the first authentication request using a digital certificate; if the signature is legal, decrypt the first authentication request using a symmetric decryption algorithm; and compare the decrypted information with preset information.
[0014] According to another embodiment of the present invention or any one of the above embodiments, the vehicle-mounted part authentication device is further configured to return authentication rejection information to the vehicle-mounted part if the first authentication request is received after the first time period.
[0015] According to another embodiment of the present invention or any of the above embodiments, the vehicle-mounted part authentication device is further configured to return authentication rejection information to the vehicle-mounted part if the number of times the first authentication request is received within the first time is greater than a first threshold.
[0016] According to a third aspect of the present invention, there is provided a computer-readable storage medium, wherein instructions are stored in the computer-readable storage medium, wherein when the instructions are executed by a processor, the processor is caused to perform the method according to the first aspect of the present invention.
[0017] According to a fourth aspect of the present invention, there is provided a vehicle, characterized in that it comprises the device according to the second aspect of the present invention. BRIEF DESCRIPTION OF THE DRAWINGS
[0018] The above and / or other aspects and advantages of the present invention will become clearer and easier to understand through the following description in conjunction with the accompanying drawings, in which the same or similar elements are represented by the same reference numerals. The accompanying drawings include:
[0019] Figure 1 A flowchart showing a vehicle-mounted parts authentication method 100 according to an embodiment of the present invention; and
[0020] Figure 2 FIG. 2 shows a schematic block diagram of a vehicle parts authentication system 200 according to an embodiment of the present invention. DETAILED DESCRIPTION
[0021] In this specification, the present invention is more fully described with reference to the accompanying drawings in which exemplary embodiments of the present invention are illustrated. However, the present invention may be implemented in different forms and should not be construed as being limited to the embodiments given herein. The embodiments given are intended to make the disclosure herein comprehensive and complete, so as to more fully convey the scope of the present invention to those skilled in the art.
[0022] Terms such as "comprising" and "including" indicate that in addition to the units and steps directly and clearly stated in the specification and claims, the technical solution of the present invention does not exclude the situation of having other units and steps that are not directly or clearly stated. Terms such as "first" and "second" do not indicate the order of units in terms of time, space, size, etc., but are only used to distinguish each unit.
[0023] The present invention is described below with reference to the flow chart explanation, block diagram and / or flow chart of the method and system according to an embodiment of the present invention.It will be understood that each frame of these flow chart explanations and / or block diagrams and the combination of flow chart explanations and / or block diagrams can be realized by computer program instructions.These computer program instructions can be provided to the processor of a general-purpose computer, a special-purpose computer or other programmable data processing device to form a machine, so that these instructions performed by the processor of a computer or other programmable data processing device create parts for implementing the function / operation specified in these flow charts and / or frames and / or one or more flow charts.It should also be noted that in some alternative implementations, the function / operation shown in the frame may not occur in the order shown in the flow chart.For example, the two frames shown in sequence can actually be performed substantially simultaneously or these frames can sometimes be performed in reverse order, specifically depending on the function / operation involved.
[0024] These computer program instructions can be loaded onto a computer or other programmable data processor so that a series of operating steps are performed on the computer or other programmable processor to form a computer-implemented process so that these instructions performed on the computer or other programmable data processor provide steps for implementing the functions or operations specified in one or more frames of this flow chart and / or block diagram. It should also be noted that in some alternative implementations, the functions / operations shown in the frames may not occur in the order shown in the flow chart. For example, the two frames shown in sequence can actually be performed substantially simultaneously or these frames can sometimes be performed in reverse order, depending on the functions / operations involved.
[0025] The term "vehicle" or other similar terms herein includes general motor vehicles, such as passenger cars (including sports utility vehicles, buses, trucks, etc.), various commercial vehicles, etc., and includes hybrid electric vehicles, electric vehicles, plug-in hybrid electric vehicles, etc. A hybrid electric vehicle is a vehicle that has two or more power sources, such as gasoline-powered and electric vehicles.
[0026] In the secure communication of the vehicle intranet, the legitimacy of the identity of the vehicle-mounted parts ECU (Electronic Control Unit) and the gateway is the premise and guarantee of secure communication. If there is no effective authentication mechanism between the vehicle-mounted parts and the gateway, they will be vulnerable to forgery attacks and replay attacks.
[0027] Reference now Figure 1 , Figure 1 A flow chart of a vehicle parts authentication method 100 according to an embodiment of the present invention is shown.
[0028] In step 110, a vehicle wake-up signal may be received. Exemplarily, when a user inserts a key into an ignition device or brings a smart authentication into a vehicle, the key may send an electronic code (i.e., authentication information) stored therein to a vehicle control device such as a body controller. The vehicle control device may then determine whether the received electronic code matches the information preset in the vehicle control device. If the vehicle control device determines that the electronic code matches the preset information, it indicates that the key is valid, and the vehicle control device may send a vehicle wake-up signal to wake up the basic functions or ignition functions of the vehicle. If the vehicle control device determines that the received electronic code does not match the preset information, it indicates that the key is invalid, and the key authentication process fails and ends the process. Optionally, in the event that the key authentication process fails, the vehicle control device may issue an alarm message to alert the vehicle that it has been illegally approached or entered.
[0029] In step 120, a first authentication request from an in-vehicle part may be received. Exemplarily, the "in-vehicle part" described herein may be an original in-vehicle part (e.g., various sensors in the vehicle, such as millimeter wave radar, laser radar, single / binocular camera, and satellite navigation), or an installed in-vehicle part (e.g., an external speaker, an external mobile terminal device, etc.).
[0030] Optionally, the first authentication request from the vehicle-mounted part is a digitally signed and encrypted authentication request. Exemplarily, the vehicle-mounted part is pre-distributed with first authentication information and authentication signature information by the authentication management system, and the first authentication information and authentication signature information can be stored in the configuration file of the vehicle-mounted part. Exemplarily, the authentication management system pre-distributes preset information corresponding to the first authentication information and a digital certificate corresponding to the authentication signature information in the vehicle-mounted part authentication device (e.g., a gateway), and the preset information and the digital certificate can be stored in the configuration file of the vehicle-mounted part authentication device.
[0031] Exemplarily, the above-mentioned authentication management system may be the vehicle-mounted parts authentication device (eg, a gateway) itself.
[0032] Exemplarily, the vehicle-mounted part may encrypt the first authentication information using a symmetric encryption algorithm, and send the ciphertext with the signature to the vehicle-mounted part authentication device (eg, a gateway).
[0033] In step 130 , the first authentication request is authenticated within a first time period from when the vehicle wake-up signal is received.
[0034] Optionally, in step 130, if the first authentication request is received after the first time period, authentication rejection information is returned to the vehicle-mounted component.
[0035] Exemplarily, the received authentication request is authenticated only within a specified time (eg, a preset time period) after the entire vehicle is awakened.
[0036] For example, assuming that a vehicle wake-up signal is received at a first time T1, and a first authentication request is received from a vehicle-mounted component at a second time T2, if T2-T1≤T TH , where T TH is a preset time period (for example, 10 minutes), the first authentication request will be authenticated; if T2-T1>T TH , where T TH If the time period is a preset time period (for example, 10 minutes), the first authentication request will not be authenticated, and authentication rejection information will be returned to the vehicle-mounted component.
[0037] Optionally, in step 130, if the number of times the first authentication request is received within the first time is greater than a first threshold, authentication rejection information is returned to the vehicle-mounted component.
[0038] Exemplarily, for a specific vehicle-mounted part, only a limited number of authentication requests (for example, three times) sent within a specified time period may be authenticated, while for authentication requests sent continuously exceeding a threshold number of times, no operation may be performed, or authentication rejection information may be returned to the vehicle-mounted part.
[0039] Optionally, in the authentication operation in step 130, the signature of the first authentication request may be first authenticated using a digital certificate.
[0040] Exemplarily, the received authentication request can be signed and authenticated using a digital certificate corresponding to the authentication signature information that is pre-distributed by the authentication management system. As described above, the digital certificate can be stored in the configuration file of the vehicle-mounted part authentication device. If the authentication signature information in the received authentication request matches the information in the digital certificate, the signature authentication is passed, and the following decryption authentication is continued; if the authentication signature information in the received authentication request does not match the information in the digital certificate, the signature authentication fails, and authentication rejection information can be returned to the vehicle-mounted part.
[0041] Optionally, in the authentication operation in step 130, the received authentication request may then be decrypted using a decryption algorithm corresponding to the encryption algorithm of the first authentication information. If the decrypted authentication request matches the preset information, the decryption authentication is passed, and step 140 is continued; if the decrypted authentication request does not match the preset information, the decryption authentication fails, and authentication rejection information may be returned to the vehicle-mounted component.
[0042] Optionally, the above text introduces the authentication operation in step 130 by taking simple one-way authentication as an example. It should be understood that the authentication operation in step 130 may be a two-way authentication operation to further improve the security of the authentication.
[0043] In a two-way authentication operation, if the authentication signature information in the received authentication request matches the information in the digital certificate, the two-way authentication will be triggered. For example, the authentication management system may pre-store electronic codes for identifying vehicle parts, such as vehicle part identification codes (IDs), in the vehicle parts and the vehicle part authentication device (e.g., gateway). The following is an introduction to two-way authentication using the gateway as an example.
[0044] The vehicle-mounted component first generates the first authentication information and sends it to the vehicle gateway. Exemplarily, the vehicle-mounted component may generate and store the first random number (RND1), the first seed (Seed1), and encrypt it together with the vehicle-mounted component identification code (e.g., the last 8 bytes of the ID) and send it to the gateway. Exemplarily, a seed sequence may be randomly generated during the authentication process and a seed may be generated from the seed sequence.
[0045] After receiving the first authentication information, the gateway decrypts it and extracts the first valid data from the first authentication information to perform the first authentication. Exemplarily, the gateway can extract Seed1+ID from RND1+Seed1+ID and authenticate it using the ID information pre-stored by the authentication management system. If the extracted ID information matches the stored ID, the first authentication is passed.
[0046] The gateway sends the second authentication information to the vehicle-mounted component after the first authentication is passed. For example, the gateway may generate and store a second random number (RND2) and a second seed (Seed2), and encrypt them together with the first seed (Seed1) and send them to the vehicle-mounted component.
[0047] After receiving the second authentication information, the vehicle-mounted component decrypts it and extracts the second valid data from the second authentication information for the second authentication. For example, the gateway can extract Seed2+Seed1 from RND2+Seed2+Seed1 and authenticate it using the previously stored Seed1. If the extracted Seed1 matches the stored Seed1, the second authentication is successful.
[0048] The vehicle-mounted component sends the third authentication information to the gateway after the second authentication is passed. Exemplarily, the vehicle-mounted component can generate a third random number (RND3), encrypt it together with Seed2, and send it to the gateway.
[0049] After receiving the third authentication information, the gateway decrypts it and extracts the third valid data from the third authentication information to perform the third authentication. For example, the gateway can extract Seed2 from RND3+Seed2 and authenticate it using the previously stored Seed2. If the extracted Seed2 matches the stored Seed2, the third authentication is passed and the two-way authentication process ends.
[0050] In step 140, the authentication result is returned to the vehicle-mounted component. Exemplarily, if the authentication is successful, authentication success information is returned to the vehicle-mounted component to authorize the vehicle-mounted component to perform further operations (e.g., read sensor data); if the authentication fails, authentication rejection information is returned to the vehicle-mounted component to prohibit the vehicle-mounted component from performing further operations.
[0051] Continue to refer to Figure 2 , Figure 2 FIG. 2 shows a schematic block diagram of a vehicle parts authentication system 200 according to an embodiment of the present invention.
[0052] like Figure 2 As shown, the vehicle-mounted parts authentication system 200 may include a vehicle-mounted parts authentication device 210 and one or more vehicle-mounted parts 220. Exemplarily, the vehicle-mounted parts 220 may be original vehicle-mounted parts (e.g., various sensors in the vehicle, such as millimeter-wave radar, laser radar, single / binocular camera, and satellite navigation), or may be added vehicle-mounted parts (e.g., external speakers, external mobile terminal devices, etc.).
[0053] The vehicle-mounted part 220 can be configured to send a first authentication request to the vehicle-mounted part after the vehicle is powered on or receives a vehicle wake-up signal. Exemplarily, the vehicle-mounted part 220 can encrypt the first authentication information using a symmetric encryption algorithm, and send the ciphertext with the signature to the vehicle-mounted part authentication device 210 (e.g., a gateway). Exemplarily, the vehicle-mounted part 220 is pre-distributed with the first authentication information and the authentication signature information by the authentication management system, and the first authentication information and the authentication signature information can be stored in the configuration file of the vehicle-mounted part 220. Exemplarily, the preset information corresponding to the first authentication information and the digital certificate corresponding to the authentication signature information are pre-distributed in the vehicle-mounted part authentication device 210 (e.g., a gateway) by the authentication management system, and the preset information and the digital certificate can be stored in the configuration file of the vehicle-mounted part authentication device 210. Exemplarily, the above-mentioned authentication management system can be the vehicle-mounted part authentication device (e.g., a gateway) itself.
[0054] The vehicle-mounted part authentication device 210 may be configured to receive a vehicle wake-up signal and a first authentication request from a vehicle-mounted part. The vehicle-mounted part authentication device 210 may also be configured to authenticate the first authentication request within a first time period from the receipt of the vehicle wake-up signal. Optionally, if the vehicle-mounted part authentication device 210 receives the first authentication request after the first time period, it returns authentication rejection information to the vehicle-mounted part 220.
[0055] Exemplarily, the vehicle-mounted part authentication device 210 authenticates the received authentication request only within a specified time (e.g., a preset time period) after the vehicle wakes up. For example, the vehicle-mounted part authentication device 210 assumes that it receives a vehicle wake-up signal at a first time T1 and receives a first authentication request from the vehicle-mounted part at a second time T2. If T2-T1≤T TH , where T THis a preset time period (eg, 10 minutes), the vehicle-mounted parts authentication device 210 will authenticate the first authentication request; if T2-T1>T TH , where T TH If the time period is a preset time period (for example, 10 minutes), the vehicle-mounted part authentication device 210 will not authenticate the first authentication request and return authentication rejection information to the vehicle-mounted part 220.
[0056] Optionally, the vehicle-mounted part authentication device 210 may also be configured to return authentication rejection information to the vehicle-mounted part 220 if the number of first authentication requests received within the first time is greater than a first threshold. Exemplarily, for a specific vehicle-mounted part, the vehicle-mounted part authentication device 210 may only authenticate a limited number of authentication requests (for example, three times) sent within a specified time, and for authentication requests sent continuously for more than the threshold number of times, no operation may be performed, or authentication rejection information may be returned to the vehicle-mounted part.
[0057] Optionally, the vehicle-mounted part authentication device 210 may also be configured to first authenticate the signature of the first authentication request using a digital certificate. Exemplarily, the received authentication request may be authenticated using a digital certificate corresponding to the authentication signature information that is pre-distributed by the authentication management system. As described above, the digital certificate may be stored in a configuration file of the vehicle-mounted part authentication device 210. If the authentication signature information in the received authentication request matches the information in the digital certificate, the signature authentication passes, and the following decryption authentication continues; if the authentication signature information in the received authentication request does not match the information in the digital certificate, the signature authentication fails, and a rejection authentication message may be returned to the vehicle-mounted part 220.
[0058] Optionally, the vehicle-mounted part authentication device 210 may also be configured to decrypt the received authentication request using a decryption algorithm corresponding to the encryption algorithm of the first authentication information. If the decrypted authentication request matches the preset information, the decryption authentication is passed; if the decrypted authentication request does not match the preset information, the decryption authentication fails, and the vehicle-mounted part authentication device 210 may return authentication rejection information to the vehicle-mounted part.
[0059] Optionally, the authentication operation between the vehicle-mounted part authentication device 210 and the vehicle-mounted part 220 may be a two-way authentication operation to further improve the security of the authentication.
[0060] According to a third aspect of the present invention, there is provided a computer-readable storage medium, wherein the computer-readable storage medium stores instructions, wherein when the instructions are executed by a processor, the processor executes Figure 1 The method described.
[0061] According to a fourth aspect of the present invention, there is provided a vehicle having Figure 2 The system.
[0062] The foregoing disclosure is not intended to limit the disclosure to the precise form disclosed or to the particular field of use. Therefore, it is contemplated that various alternative embodiments and / or modifications of the disclosure are possible in view of the present disclosure, whether explicitly described or implied herein. Having thus described embodiments of the disclosure, it will be appreciated by those of ordinary skill in the art that changes may be made in form and detail without departing from the scope of the disclosure. Therefore, the disclosure is limited only by the claims.
Claims
1. A vehicle parts authentication method based on symmetric encryption, It is characterized in that The following steps are involved: Receiving a vehicle wake-up signal from a vehicle control device, wherein the vehicle wake-up signal is sent when the key is verified to be valid; Receiving a first authentication request from a vehicle-mounted part, wherein the vehicle-mounted part includes an original vehicle-mounted part and / or an added vehicle-mounted part; Authenticating the first authentication request within a first time period from receiving the vehicle wake-up signal; as well as The authentication result is returned to the vehicle-mounted component.
2. The method according to claim 1, in, The first authentication request is a digitally signed and encrypted authentication request.
3. The method according to claim 1, in, Authenticating the first authentication request includes: authenticating the signature of the first authentication request using a digital certificate; If the signature is legal, decrypting the first authentication request using a symmetric decryption algorithm; and Compare the decrypted information with the preset information.
4. The method according to claim 1, further comprising: include: If the first authentication request is received after the first time period, authentication rejection information is returned to the in-vehicle component.
5. The method according to claim 1, further comprising: include: If the number of times the first authentication request is received within the first time is greater than a first threshold, authentication rejection information is returned to the in-vehicle component.
6. A vehicle parts authentication device based on symmetric encryption, It is characterized in that The vehicle parts authentication device is configured to: Receiving a vehicle wake-up signal from a vehicle control device, wherein the vehicle wake-up signal is sent when the key is verified to be valid; Receiving a first authentication request from a vehicle-mounted part, wherein the vehicle-mounted part includes an original vehicle-mounted part and / or an added vehicle-mounted part; Authenticating the first authentication request within the first time of receiving the vehicle wake-up signal; as well as The authentication result is returned to the vehicle-mounted component.
7. The device according to claim 6, in, The first authentication request is a digitally signed and encrypted authentication request.
8. The device according to claim 6, in, The vehicle parts authentication device is further configured to: authenticating the signature of the first authentication request using a digital certificate; If the signature is legal, decrypting the first authentication request using a symmetric decryption algorithm; as well as Compare the decrypted information with the preset information.
9. The device according to claim 6, in, The vehicle-mounted parts authentication device is further configured to: If the first authentication request is received after the first time period, authentication rejection information is returned to the in-vehicle component.
10. The device according to claim 6, in, The vehicle parts authentication device is further configured to: If the number of times the first authentication request is received within the first time is greater than a first threshold, authentication rejection information is returned to the in-vehicle component.
11. A computer-readable storage medium having stored therein instructions, It is characterized in that When the instructions are executed by a processor, the processor is caused to execute the vehicle parts authentication method according to any one of claims 1 to 5.
12. A vehicle, It is characterized in that A vehicle-mounted parts authentication device comprising any one of claims 6 to 10.
13. A computer program product, It is characterized in that The invention comprises a computer program, which, when executed by a processor, implements the vehicle-mounted parts authentication method according to any one of claims 1 to 5.
