Vehicle identity authentication method, device, vehicle, and vehicle identity authentication system

The vehicle identity is verified through the hash algorithm and random numbers, which reduces the calculation amount and delay of vehicle communication authentication, solves the problems of large calculation amount and high delay in PKI authentication method, and realizes efficient vehicle identity authentication.

CN115378602BActive Publication Date: 2024-10-11CHINA FAW CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202210900897.8
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2022-07-28
Publication Date
2024-10-11
Estimated Expiration
2042-07-28

AI Technical Summary

Technical Problem

In the existing vehicle communication authentication method, the number of encryption and decryption operations based on PKI is large, resulting in a large amount of calculation, delay and cost in the authentication process.

Method used

The hash algorithm and random numbers are used for vehicle identity authentication. By receiving and generating request response messages, the preset hash algorithm is used to verify the vehicle identity, reducing symmetric encryption and decryption and asymmetric encryption and decryption operations, and reducing the amount of calculation and delay.

Benefits of technology

It realizes vehicle identity verification with lower calculation amount, delay and cost, and solves the problems of large calculation amount and high delay caused by PKI authentication method.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN115378602B_ABST
    Figure CN115378602B_ABST
Patent Text Reader

Abstract

The present invention discloses a vehicle identity authentication method, device, vehicle and vehicle identity authentication system. The method includes: receiving a first request message sent by a vehicle to be authenticated, and then returning a first response message to the vehicle to be authenticated based on the first request message, and then receiving a second request message sent by the vehicle to be authenticated, and then authenticating the vehicle to be authenticated based on the second request message using challenge information and a preset hash algorithm, and generating a second response message, and finally returning the second response message to the vehicle to be authenticated, thereby achieving the technical effect of verifying whether the identity of the vehicle is successfully authenticated with a lower amount of calculation, lower delay and lower cost. The present invention solves the technical problems in the related art that the authentication process has a large amount of calculation due to the use of a PKI authentication method, and the authentication method has a high delay and cost.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the field of vehicle communication, and in particular to a vehicle identity authentication method, a device, a vehicle and a vehicle identity authentication system. Background Art

[0002] In the related technologies in the field of vehicle communication, vehicle communication authentication usually adopts a public key infrastructure (PKI) system to authenticate the legitimacy of the identities of both communicating parties.

[0003] In the PKI authentication method, based on the digital certificate issued by the Certificate Authority (CA) to the party to be authenticated, the party to be authenticated and the authenticator perform multiple encryption and decryption operations to verify the legitimacy of the identities of both parties. However, due to the large number of encryption and decryption operations in the PKI authentication method, the amount of calculation during the authentication process is large, resulting in high latency and cost of this authentication method.

[0004] To address the above problems, no effective solution has been proposed yet. Summary of the invention

[0005] The embodiments of the present invention provide a vehicle identity authentication method, device, vehicle and vehicle identity authentication system to at least solve the technical problems in the related art that the authentication process has a large amount of calculation due to the use of a PKI authentication method, and the authentication method has a high delay and cost.

[0006] According to one aspect of an embodiment of the present invention, a vehicle identity authentication method is provided, comprising:

[0007] Receive a first request message sent by the vehicle to be authenticated, wherein the first request message is used to request authorization status identification of the vehicle to be authenticated; based on the first request message, return a first response message to the vehicle to be authenticated, wherein the first response message carries challenge information; receive a second request message sent by the vehicle to be authenticated, wherein the second request message is used to request identity authentication of the vehicle to be authenticated; based on the second request message, use the challenge information and a preset hash algorithm to authenticate the vehicle to be authenticated, and generate a second response message, wherein the second response message is used to determine the identity authentication result of the vehicle to be authenticated; return the second response message to the vehicle to be authenticated.

[0008] Optionally, the challenge information is a random number, wherein the random number is used to detect whether a replay attack occurs during the vehicle authentication process.

[0009] Optionally, based on the first request message, returning a first response message to the vehicle to be authenticated includes: determining the vehicle information of the vehicle to be authenticated according to the first request message; based on the vehicle information and a preset database; identifying the authorization status of the vehicle to be authenticated; obtaining an identification result, wherein the authorization information is stored in the preset database; in response to the identification result corresponding to the vehicle to be authenticated being authorized, generating a random number as challenge information, and determining that the first response message carries the challenge information; and returning the first response message to the vehicle to be authenticated.

[0010] Optionally, the information carried by the second request message includes: a first character string; wherein, the first character string is generated by the vehicle to be authenticated based on the challenge information and a preset hash algorithm.

[0011] Optionally, based on the second request message, the vehicle to be authenticated is authenticated using the challenge information and a preset hash algorithm, and generating a second response message includes: obtaining shared key information between the vehicle to be authenticated and the identity authentication center; merging the shared key information with the challenge information to obtain a first merging result; based on the first merging result, generating a second string using a preset hash algorithm; comparing the second string with the first string carried by the second request message; in response to the second string being the same as the first string, generating a second response message, wherein the second response message carries authentication success information; in response to the second string being different from the first string, generating a second response message, wherein the second response message carries authentication failure information.

[0012] Optionally, a vehicle identity authentication method includes: sending a first request message to an identity authentication center, wherein the first request message is used to request the identity authentication center to identify the authorization status of a vehicle to be authenticated; receiving a first response message returned by the identity authentication center, wherein the first response message carries challenge information; based on the challenge information and a preset hash algorithm, sending a second request message to the identity authentication center; wherein the second request message is used to request the identity authentication center to authenticate the vehicle to be authenticated; receiving a second response message returned by the identity authentication center, wherein the second response message is used to determine the identity authentication result of the vehicle to be authenticated.

[0013] Optionally, the challenge information is a random number generated by the identity authentication center. Based on the challenge information and a preset hash algorithm, sending a second request message to the identity authentication center includes: obtaining shared key information between the vehicle to be authenticated and the identity authentication center; merging the shared key information with the random number to obtain a second merged result; generating a second request message using a preset hash algorithm based on the second merged result; and sending the second request message to the identity authentication center.

[0014] According to another aspect of an embodiment of the present invention, a vehicle identity authentication device is also provided, including: a first receiving module, receiving a first request message sent by the vehicle to be authenticated, wherein the first request message is used to request authorization status identification of the vehicle to be authenticated; a first response module, based on the first request message, returning a first response message to the vehicle to be authenticated, wherein the first response message carries challenge information; a second receiving module, receiving a second request message sent by the vehicle to be authenticated, wherein the second request message is used to request identity authentication of the vehicle to be authenticated; an authentication module, based on the second request message, using the challenge information and a preset hash algorithm to authenticate the vehicle to be authenticated, and generating a second response message, wherein the second response message is used to determine the identity authentication result of the vehicle to be authenticated; a second response module, returning the second response message to the vehicle to be authenticated.

[0015] Optionally, in the vehicle identity authentication device, the challenge information is a random number, wherein the random number is used to detect whether a replay attack occurs during the vehicle identity authentication process.

[0016] Optionally, the first response module is also used to: determine the vehicle information of the vehicle to be authenticated according to the first request message; identify the authorization status of the vehicle to be authenticated based on the vehicle information and a preset database to obtain an identification result, wherein the preset database stores the authorization information; in response to the identification result corresponding to the vehicle to be authenticated being authorized, generate a random number as challenge information, and determine that the first response message carries the challenge information; and return the first response message to the vehicle to be authenticated.

[0017] Optionally, in the vehicle identity authentication device, the information carried by the second request message includes: a first character string, wherein the first character string is generated by the vehicle to be authenticated based on challenge information and a preset hash algorithm.

[0018] Optionally, the authentication module is also used to: obtain shared key information between the vehicle to be authenticated and the identity authentication center; merge the shared key information with the challenge information to obtain a first merged result; generate a second string based on the first merged result using a preset hash algorithm; compare the second string with the first string carried by the second request message; in response to the second string being the same as the first string, generate a second response message, wherein the second response message carries authentication success information; in response to the second string being different from the first string, generate a second response message, wherein the second response message carries authentication failure information.

[0019] Optionally, the vehicle identity authentication device is also used to: send a first request message to an identity authentication center, wherein the first request message is used to request the identity authentication center to identify the authorization status of the vehicle to be authenticated; receive a first response message returned by the identity authentication center, wherein the first response message carries challenge information; based on the challenge information and a preset hash algorithm, send a second request message to the identity authentication center, wherein the second request message is used to request the identity authentication center to authenticate the vehicle to be authenticated; receive a second response message returned by the identity authentication center, wherein the second response message is used to determine the identity authentication result of the vehicle to be authenticated.

[0020] Optionally, the vehicle identity authentication device is also used to: obtain shared key information between the vehicle to be authenticated and the identity authentication center; merge the shared key information with a random number to obtain a second merged result; generate a second request message based on the second merged result using a preset hash algorithm; and send a second request message to the identity authentication center.

[0021] According to another aspect of an embodiment of the present invention, a vehicle is further provided, the vehicle comprising an on-board memory and an on-board processor. A computer program is stored in the on-board memory, and the on-board processor is configured to run the computer program. The computer program is configured to execute any of the above vehicle identity authentication methods when it is run.

[0022] According to another aspect of an embodiment of the present invention, a vehicle identity authentication system is further provided, comprising a vehicle and a vehicle identity authentication device, wherein the vehicle identity device is connected to the vehicle to perform the following steps:

[0023] Step 1, receiving a first request message sent by the vehicle to be authenticated, wherein the first request message is used to request authorization status identification of the vehicle to be authenticated; Step 2, based on the first request message, returning a first response message to the vehicle to be authenticated, wherein the first response message carries challenge information; Step 3, receiving a second request message sent by the vehicle to be authenticated, wherein the second request message is used to request identity authentication of the vehicle to be authenticated; Step 4, based on the second request message, using the challenge information and a preset hash algorithm, authenticate the vehicle to be authenticated and generate a second response message, wherein the second response message is used to determine the identity authentication result of the vehicle to be authenticated; Step 5, returning a second response message to the vehicle to be authenticated.

[0024] In an embodiment of the present invention, a first request message sent by a vehicle to be authenticated is received, and a first response message is returned to the vehicle to be authenticated based on the first request message, and then a second request message sent by the vehicle to be authenticated is received, and then the identity of the vehicle to be authenticated is authenticated using challenge information and a preset hash algorithm based on the second request message, and a second response message is generated, and finally the second response message is returned to the vehicle to be authenticated, thereby achieving the purpose of first verifying whether the vehicle to be authenticated is authorized, and then further verifying whether the identity of the vehicle to be authenticated is successfully authenticated by sending a challenge message to the vehicle to be authenticated in an authorized state, and receiving a request message returned by the vehicle to be authenticated based on the challenge information and the preset hash algorithm, thereby achieving the technical effect of verifying whether the identity of the vehicle is successfully authenticated with lower computational complexity, lower latency and lower cost, and thereby solving the technical problems in the related technology of large computational complexity of the authentication process, high latency and high cost of the authentication method due to the use of PKI authentication method. BRIEF DESCRIPTION OF THE DRAWINGS

[0025] The drawings described herein are used to provide a further understanding of the present invention and constitute a part of the present invention. The exemplary embodiments of the present invention and their descriptions are used to explain the present invention and do not constitute an improper limitation of the present invention. In the drawings:

[0026] Figure 1 It is a schematic diagram of a sender sending a message based on a PKI authentication method according to the prior art;

[0027] Figure 2 It is a schematic diagram of a receiver receiving a message based on a PKI authentication method according to the prior art;

[0028] Figure 3 is a flow chart of a vehicle identity authentication method according to an embodiment of the present invention;

[0029] Figure 4 is a schematic diagram of a specific implementation process of an optional vehicle identity authentication according to an embodiment of the present invention;

[0030] Figure 5 4 is a structural block diagram of a vehicle identity authentication device according to an embodiment of the present invention. DETAILED DESCRIPTION

[0031] In order to enable those skilled in the art to better understand the scheme of the present invention, the technical scheme in the embodiments of the present invention will be clearly and completely described below in conjunction with the drawings in the embodiments of the present invention. Obviously, the described embodiments are only part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work should fall within the scope of protection of the present invention.

[0032] It should be noted that the terms "first", "second", etc. in the specification and claims of the present invention and the above-mentioned drawings are used to distinguish similar objects, and are not necessarily used to describe a specific order or sequence. It should be understood that the data used in this way can be interchanged where appropriate, so that the embodiments of the present invention described herein can be implemented in an order other than those illustrated or described herein. In addition, the terms "including" and "having" and any variations thereof are intended to cover non-exclusive inclusions, for example, a process, method, system, product or device that includes a series of steps or units is not necessarily limited to those steps or units that are clearly listed, but may include other steps or units that are not clearly listed or inherent to these processes, methods, products or devices.

[0033] Figure 1 It is a schematic diagram of a sender sending a message based on a PKI authentication method according to the prior art, such as Figure 1 As shown, the method comprises the following steps:

[0034] Step T1, sender A obtains the digest value corresponding to the plaintext through the hash algorithm;

[0035] Step T2, sender A obtains the signature value corresponding to the digest value through A's private key;

[0036] Step T3, sender A obtains the plaintext, A's digital certificate, and the ciphertext corresponding to the signature value through the session key with receiver B;

[0037] Step T4, sender A obtains the encrypted file corresponding to the ciphertext through the public key of receiver B;

[0038] Step T5, sender A transmits the encrypted file to receiver B.

[0039] In the above step T1, the plaintext is the information that sender A wants to send to receiver B. Sender A performs a hash operation on the plaintext by using a hash algorithm to obtain a hash value corresponding to the plaintext, and uses the hash value as the summary value.

[0040] In the above step T2, the private key is the private key in a public-private key pair randomly generated by sender A. The public key randomly generated by sender A is transmitted by sender A to the certification center to generate a digital certificate of sender A. Sender A encrypts the digest value with the private key in the above public-private key pair to obtain the signature value. After the signature value is sent to receiver B, receiver B needs to use the public key in the above public-private key pair to perform asymmetric decryption to obtain the digest value.

[0041] When sender A obtains the signature value, it needs to use the private key in the public-private key pair generated by A to asymmetrically encrypt the summary value. This process involves the receiver B needing to decrypt the signature value using the public key corresponding to this private key, which in turn causes the sender A and the receiver B to have increased computational complexity, increased latency, and increased costs due to asymmetric encryption and decryption operations.

[0042] In the above step T3, the session key is the key agreed upon by sender A and receiver B. A digital certificate is a certificate issued by a certification center to a user who has applied for a digital certificate after information verification, which is used to prove the legitimacy of the user's identity information. A user with a digital certificate can communicate with other users in the same PKI system through the digital certificate. Sender A symmetrically encrypts the plaintext, A's digital certificate, and the signature value based on the session key to obtain the corresponding ciphertext.

[0043] The process for sender A to obtain a digital certificate from a certification center is as follows:

[0044] Sender A sends the randomly generated public key, personal information of sender A, and identity information such as certification materials to the authentication center, where the public key corresponds to the private key used to encrypt the digest value in step T2;

[0045] The authentication center verifies the identity information sent by sender A;

[0046] After the authentication center has reviewed and approved the identity information sent by sender A, the authentication center uses its own private key to sign the identity information sent by sender A and generate a digital certificate;

[0047] The certification center sends sender A's digital certificate to sender A.

[0048] When sender A obtains the plaintext, A's digital certificate, and the ciphertext corresponding to the signature value, this process involves asymmetric encryption in which sender A obtains the digital certificate from the authentication center, resulting in receiver B needing to asymmetrically decrypt sender A's digital certificate based on the authentication center's public key. As a result, the communication between sender A and receiver B results in increased computational complexity, increased latency, and higher costs due to asymmetric encryption and decryption operations.

[0049] In the above step T4, sender A uses the public key of receiver B to asymmetrically encrypt the ciphertext to obtain an encrypted file corresponding to the ciphertext.

[0050] In the process of sender A obtaining the ciphertext file corresponding to the ciphertext based on the public key of receiver B, sender A uses B's public key for asymmetric encryption, which causes receiver B to asymmetricly decrypt the ciphertext file based on his own private key. As a result, the asymmetric encryption and decryption operations for both sender A and receiver B increase the amount of computation, delay and cost.

[0051] In the above step T5, sender A sends the encrypted file to receiver B.

[0052] Figure 2 It is a schematic diagram of a receiver receiving a message based on a PKI authentication method according to the prior art, such as Figure 2 As shown, the method comprises the following steps:

[0053] Step P1, the receiver B receives the encrypted file sent by the sender A;

[0054] Step P2, the receiver B obtains the ciphertext corresponding to the encrypted file through B's private key;

[0055] Step P3, the receiver B obtains the plaintext corresponding to the ciphertext, the digital certificate of the sender A, and the signature value through the session key between the receiver B and the sender A;

[0056] Step P4, the receiver B verifies the legitimacy of the sender A's digital certificate through the public key of the certification center and obtains the sender A's public key;

[0057] Step P5, the receiver B obtains the digest value C corresponding to the signature value through the public key of the sender A;

[0058] Step P6, the receiver B obtains the digest value D corresponding to the plaintext through the hash algorithm;

[0059] Step P7, the receiver B compares the digest value C with the digest value D to determine whether they are consistent, and whether the encrypted file sent by the sender A is complete.

[0060] In the above step P1, the receiver B receives the encrypted file sent by the sender A.

[0061] In the above step P2, the receiver B uses B's private key to asymmetrically decrypt the encrypted file to obtain the ciphertext corresponding to the encrypted file.

[0062] In the process of receiver B obtaining the ciphertext corresponding to the encrypted file through decryption, receiver B is involved in asymmetric decryption operation of the encrypted file, which results in increased computational complexity, increased latency and increased costs.

[0063] In the above step P3, the receiver uses the session key to symmetrically decrypt the ciphertext to obtain the plaintext corresponding to the ciphertext, the digital certificate of sender A, and the signature value.

[0064] In the process of receiver B obtaining the plaintext corresponding to the ciphertext, A's digital certificate and signature value through decryption, receiver B needs to use the session key to symmetrically decrypt the ciphertext, receiver B needs to verify A's digital certificate through asymmetric decryption, and receiver B needs to asymmetrically decrypt the signature value. As a result, receiver B needs to perform symmetric decryption operations and subsequent asymmetric decryption operations, which causes the overall computational complexity, latency and cost to increase.

[0065] In the above step P4, the receiver B uses the public key of the authentication center to asymmetrically decrypt the digital certificate of the sender A. After decryption, the legitimacy of the identity of the sender A is verified according to the content of the digital certificate, and the public key corresponding to the private key used by the sender A to encrypt the summary value is obtained.

[0066] In the process of receiver B verifying the legitimacy of sender A's digital certificate and obtaining sender A's public key, receiver B needs to asymmetric decrypt sender A's digital certificate, which causes receiver B to perform asymmetric decryption operations, resulting in increased computational complexity, increased latency and higher costs.

[0067] In the above step P5, the receiver B uses the public key obtained from the digital certificate of the sender A to asymmetric decrypt the signature value to obtain a digest value corresponding to the signature value, which is recorded as digest value C.

[0068] In the process of receiver B decrypting the signature value to obtain the summary value C, receiver B needs to perform asymmetric decryption on the signature value, which causes receiver B to perform asymmetric decryption operations, resulting in increased computational complexity, increased latency, and increased costs.

[0069] In the above step P6, the receiver B uses a hash algorithm to perform a hash operation on the plaintext obtained in step P3, and the obtained hash value is used as the summary value D, wherein the hash algorithm is consistent with the hash algorithm used by the sender A for the plaintext.

[0070] In the process of the receiver B performing hash operation on the plaintext to obtain the digest value D, it is necessary to subsequently determine whether the digest value D generated by the receiver B is consistent with the digest value C obtained by parsing the message sent by the sender A, and then determine whether the information has been tampered with during the process of the sender A sending the message to the receiver B. As a result, the receiver B needs to make more judgments, resulting in increased calculation amount, increased latency and higher costs.

[0071] In the above step P7, the receiver B compares the digest value C and the digest value D. If the digest value C and the digest value D are consistent, it indicates that the information has not been tampered with during the process of sending the message from the sender A to the receiver B, that is, it indicates that the encrypted file sent by the sender A to the receiver B is complete; if the digest value C and the digest value D are inconsistent, it indicates that the information has been tampered with during the process of sending the message from the sender A to the receiver B, that is, it indicates that the encrypted file sent by the sender A to the receiver B is not complete.

[0072] When receiver B compares digest value C with digest value D, receiver B needs to determine whether the encrypted file sent by sender A is complete, which increases the overall computational complexity, delay, and cost. In addition, in the communication process based on PKI authentication, if receiver B wants to identify and prevent replay attacks, the operation process is more complicated and the logic is more complex, which results in increased computational complexity, increased delay, and increased cost.

[0073] According to one embodiment of the present invention, an embodiment of a vehicle identity authentication method is provided. It should be noted that the steps shown in the flowchart of the accompanying drawings can be executed in a computer system such as a set of computer executable instructions, and although a logical order is shown in the flowchart, in some cases, the steps shown or described can be executed in an order different from that shown here.

[0074] Figure 3 is a flow chart of a vehicle identity authentication method according to an embodiment of the present invention. Figure 3 As shown, the method comprises the following steps:

[0075] Step S1, receiving a first request message sent by a vehicle to be authenticated, wherein the first request message is used to request authorization status identification of the vehicle to be authenticated;

[0076] Step S2, based on the first request message, returning a first response message to the vehicle to be authenticated, wherein the first response message carries challenge information;

[0077] Step S3, receiving a second request message sent by the vehicle to be authenticated, wherein the second request message is used to request identity authentication of the vehicle to be authenticated;

[0078] Step S4, based on the second request message, using the challenge information and a preset hash algorithm, performing identity authentication on the vehicle to be authenticated, and generating a second response message, wherein the second response message is used to determine the identity authentication result of the vehicle to be authenticated;

[0079] Step S5: Return a second response message to the vehicle to be authenticated.

[0080] As in step S1 above, the vehicle to be authenticated is a vehicle that has yet to be judged by the identity authentication center as being authenticated successfully or unsuccessfully. The identity authentication center is a device or system that receives a first request message sent by the vehicle to be authenticated. For example, the identity authentication center is an electronic toll collection system (ETC). The first request message is a message requesting the identity authentication center to identify the authorization status of the vehicle to be authenticated. Authorization status identification is to determine whether the vehicle to be authenticated is in an authorized state at the identity authentication center.

[0081] The identity authentication center receives a first request message sent by the vehicle to be authenticated, wherein the first request message is used to request the identity authentication center to determine the authorization status of the vehicle to be authenticated.

[0082] The identity authentication center determines whether the vehicle to be authenticated is in an authorized state based on the first request message. This process involves the question of whether the vehicle to be authenticated and the identity authentication center can complete the generation and parsing of the first request message with a smaller amount of calculation, lower latency and lower cost. In response to this problem, the present invention solves it by having the vehicle to be authenticated not perform encryption operations on the message content of the first request message, thereby avoiding the identity authentication center and the vehicle to be authenticated from performing complex symmetric encryption and decryption operations on the message content of the first request message, thereby reducing the overall amount of calculation, thereby reducing latency and cost.

[0083] As in step S2 above, the first response message is a message returned by the identity authentication center to the vehicle to be authenticated, indicating whether the vehicle is authorized or not, including whether the vehicle is authorized or not. When the first response message indicates that the vehicle is authorized, the identity authentication center also encapsulates the challenge information into the first response message. The challenge information is a random number, which is used by the identity authentication center to verify whether the message sent again by the vehicle to be authenticated has been tampered with, and to verify whether the identity authentication center has been subjected to a replay attack.

[0084] The identity authentication center determines whether the vehicle to be authenticated is in an authorized state according to the first request message. If the vehicle to be authenticated is in an authorized state, the vehicle authorization information and challenge information are encapsulated into a first response message and returned to the vehicle to be authenticated. If the vehicle to be authenticated is in an unauthorized state, the vehicle unauthorized information is encapsulated into the first response message and returned to the vehicle to be authenticated.

[0085] The identity authentication center returns a first response message to the vehicle to be authenticated. This process involves the question of whether the identity authentication center and the vehicle to be authenticated can complete the generation and parsing of the first response message with a smaller amount of calculation, lower latency and less cost. In response to this problem, the present invention solves it by having the identity authentication center not perform encryption operations on the message content of the first response message, thereby avoiding the identity authentication center and the vehicle to be authenticated from performing complex symmetric encryption and decryption operations on the message content of the first response message, thereby reducing the overall amount of calculation, thereby reducing latency and cost.

[0086] As in step S3 above, the second request message is a message from the vehicle to be authenticated to the identity authentication center requesting identity authentication.

[0087] After receiving the first response message returned by the identity authentication center, the vehicle to be authenticated parses the message to determine whether the first response message indicates that the vehicle is authorized. If the first response message indicates that the vehicle is authorized, the vehicle to be authenticated obtains the corresponding hash value after integration based on the shared key information and challenge information negotiated in advance with the identity authentication center according to the preset hash algorithm, encapsulates the hash value into the second request message, and sends the second request message to the identity authentication center. The identity authentication center receives the second request message sent by the vehicle to be authenticated. The preset hash algorithm is a hash algorithm specified by the designer according to actual conditions. For example, the designer selects the preset hash algorithm as the message digest algorithm (Message Digest Algorithm MD5, referred to as MD5) according to actual conditions.

[0088] The vehicle to be authenticated generates a second request message and sends the second request message to the identity authentication center. This process involves the question of whether the vehicle to be authenticated and the identity authentication center can complete the generation and parsing of the second request message with a smaller amount of calculation, lower latency and less cost. In response to this problem, the present invention solves the problem by not performing encryption operations on the message content of the second request message by the vehicle to be authenticated, thereby avoiding the vehicle to be authenticated and the identity authentication center from performing complex encryption and decryption and asymmetric encryption and decryption operations on the message content of the second request message, thereby reducing the overall amount of calculation, thereby reducing latency and cost.

[0089] As in step S4 above, the second response message is a message returned by the identity authentication center to the vehicle to be authenticated whether the vehicle authentication is successful, including vehicle authentication success and vehicle authentication failure. The identity authentication result is vehicle authentication success or vehicle authentication failure.

[0090] The identity authentication center parses the second request message sent by the vehicle to be authenticated and obtains the hash value transmitted by the vehicle to be authenticated. Based on the challenge information and the shared key information, the identity authentication center obtains the corresponding hash value after they are integrated according to the preset hash algorithm, wherein the preset hash algorithm is consistent with the preset hash algorithm selected in step S3. The identity authentication center compares whether the hash value sent by the vehicle to be authenticated is consistent with the hash value generated by itself. If they are consistent, it is determined that the second request message sent by the vehicle to be authenticated has not been tampered with. If they are inconsistent, it is determined that the second request message sent by the vehicle to be authenticated has been tampered with. If the second request message sent by the vehicle to be authenticated has not been tampered with, the identity authentication center continues to determine whether the hash value sent by the vehicle to be authenticated is consistent with the received hash value recorded in a certain period of time in the past. If they are consistent, it indicates that the identity authentication center has been subjected to a replay attack. If they are inconsistent, it indicates that the identity authentication center has not been subjected to a replay attack. The specific time period in the certain period of time in the past is set by the designer according to the actual situation. When the identity authentication center determines that the second request message sent by the vehicle to be authenticated has not been tampered with and has not been subjected to a replay attack, the information of successful authentication is encapsulated into the second response message, otherwise the information of failed authentication is encapsulated into the second response message.

[0091] The identity authentication center performs identity authentication on the vehicle to be authenticated and generates a second response message. This process involves the issue of whether the identity authentication center and the vehicle to be authenticated can complete the generation and parsing of the second response message with less computational effort, lower latency and less cost. To address this issue, the present invention solves the problem by having the identity authentication center not perform encryption operations on the message content of the second response message, thereby avoiding complex symmetric and asymmetric encryption and decryption operations on the message content of the second response message by the identity authentication center, thereby reducing the overall computational effort, thereby reducing latency and cost.

[0092] As in step S5 above, the identity authentication center returns a second response message to the vehicle to be authenticated.

[0093] The identity authentication center returns a second response message to the vehicle to be authenticated. This process involves the question of whether the subsequent vehicle to be authenticated should parse the second response message with less computational effort, lower latency and less cost after receiving the second response message. To address this problem, the present invention solves this problem by having the identity authentication center not perform encryption operations on the message content of the second response message, thereby avoiding symmetric or asymmetric decryption operations when the vehicle to be authenticated parses the message content of the second response message, thereby reducing the computational effort of the vehicle to be authenticated in parsing the second response message, thereby reducing the overall latency and cost.

[0094] Through the above steps S1 to S5, by receiving the first request message sent by the vehicle to be authenticated, and then returning a first response message to the vehicle to be authenticated based on the first request message, and then receiving the second request message sent by the vehicle to be authenticated, and then using the challenge information and the preset hash algorithm to authenticate the identity of the vehicle to be authenticated based on the second request message, and generating a second response message, and finally returning the second response message to the vehicle to be authenticated, the purpose of first verifying whether the vehicle to be authenticated is authorized, and then further verifying whether the identity of the vehicle to be authenticated is successfully authenticated by sending challenge information to the authorized vehicle to be authenticated, and receiving the request message returned by the vehicle to be authenticated based on the challenge information and the preset hash algorithm, is achieved. The technical effect of verifying whether the identity of the vehicle is successfully authenticated with lower computational complexity, lower latency and lower cost is achieved, and the technical problems in the related technology of large computational complexity of the authentication process, high latency and high cost of the authentication method due to the use of PKI authentication method are solved.

[0095] Optionally, the challenge information is a random number, wherein the random number is used to detect whether a replay attack occurs during the vehicle authentication process.

[0096] Optionally, in step S2, based on the first request message, returning a first response message to the vehicle to be authenticated further includes the following method steps:

[0097] Step S21, determining the vehicle information of the vehicle to be authenticated according to the first request message;

[0098] Step S22, identifying the authorization status of the vehicle to be authenticated based on the vehicle information and a preset database, and obtaining an identification result, wherein the preset database stores the authorization information;

[0099] Step S23, in response to the recognition result corresponding to the vehicle to be authenticated being authorized, generating a random number as challenge information, and determining that the first response message carries the challenge information;

[0100] Step S24: Return a first response message to the vehicle to be authenticated.

[0101] As described in step S21 above, the vehicle information is the vehicle identification information obtained by the identity authentication center parsing the first request message sent by the vehicle to be authenticated.

[0102] The identity authentication center parses the first request message to obtain vehicle information of the vehicle to be authenticated.

[0103] In an optional embodiment of the present invention, the identity authentication center parses the first request message to obtain the vehicle information of the vehicle to be authenticated. This process involves the question of whether the identity authentication center parses the first request message with less computational effort, lower latency, and lower cost. To address this problem, the present invention solves this problem by not performing encryption operations on the message content of the first message by the vehicle to be authenticated, and then not performing decryption operations when the identity authentication center parses the first request message, thereby avoiding the identity authentication center from performing complex symmetric decryption and asymmetric decryption operations when parsing the message content of the first request message, thereby reducing the computational effort of the identity authentication center in parsing the first request message, thereby reducing latency and cost.

[0104] As mentioned above in step S22, the preset database is a database that stores the authorization information of each vehicle. The way in which the preset database stores the authorization information of each vehicle is specified by the designer, such as only storing the authorization information of authorized vehicles, or storing the authorization information of authorized and unauthorized vehicles, or storing the authorization information of all authorized and some unauthorized vehicles. The preset database can be updated online. The authorization status is two states: authorized and unauthorized. The specific meaning of authorized is set by the designer according to the actual situation. For example, authorized indicates that the vehicle has been registered at the identity authentication center. The recognition result is the preliminary judgment of the identity authentication center on the vehicle to be authenticated, which is the result of whether it is authorized. The authorization information is the information on whether each vehicle is authorized stored in the preset database.

[0105] The identity authentication center obtains the authorization status of the vehicle to be authenticated by searching the preset database for an authorized vehicle with the same vehicle information, and then obtains the identification result of whether the vehicle to be authenticated is authorized. If the vehicle information of an authorized vehicle that is consistent with the vehicle to be authenticated can be found in the preset database, the vehicle to be authenticated is authorized, otherwise it is unauthorized.

[0106] In an optional embodiment of the present invention, the identity authentication center identifies the authorization status of the vehicle to be authenticated. This process involves the question of whether the identity authentication center can identify the authorization status of the vehicle to be authenticated with less computation, lower latency and lower cost. In response to this problem, the present invention solves it by having the identity authentication center search in a preset database to see whether the vehicle information of an authorized vehicle is consistent with that of the vehicle to be authenticated, thereby avoiding the identity authentication center from performing other complex logical operations due to identifying the authorization status of the vehicle to be authenticated, and the designer can select a suitable search algorithm according to the actual situation, thereby reducing the computation, thereby reducing latency and cost.

[0107] As described in step S23 above, the challenge information is information used by the identity authentication center to subsequently verify the identity of the vehicle to be authenticated.

[0108] In response to the identification result of the vehicle to be authenticated being authorized, the identity authentication center generates a random number as challenge information and encapsulates the challenge information into the first response message.

[0109] In an optional embodiment of the present invention, the identity authentication center encapsulates the challenge message into the first response message. This process involves the question of whether the identity authentication center generates the first response message with less computational effort, lower latency, and lower cost. In response to this problem, the present invention solves it by having the identity authentication center not perform encryption operations on the message content of the first response message, thereby avoiding the identity authentication center from performing complex symmetric encryption and asymmetric encryption operations on the message content of the first response message, thereby reducing the computational effort of the identity authentication center to generate the first response message, thereby reducing latency and cost.

[0110] As in step S24 above, the identity authentication center returns a first response message to the vehicle to be authenticated.

[0111] In an optional embodiment of the present invention, the identity authentication center returns a first response message to the vehicle to be authenticated. This process involves the question of whether the subsequent vehicle to be authenticated will parse the first response message with a smaller amount of calculation, lower latency and lower cost after receiving the first response message. In response to this problem, the present invention solves it by having the identity authentication center not perform encryption operations on the message content of the first response message, thereby avoiding complex symmetric decryption operations or asymmetric decryption operations when the vehicle to be authenticated parses the message content of the first response message, thereby reducing the amount of calculation for the vehicle to be authenticated to parse the first response message, thereby reducing the overall latency and cost.

[0112] Optionally, the information carried by the second request message includes: a first character string, wherein the first character string is generated by the vehicle to be authenticated based on the challenge information and a preset hash algorithm. The vehicle to be authenticated obtains the challenge information returned by the identity authentication center to the vehicle to be authenticated by parsing the first response message received from the identity authentication center. Shared key information is the shared key information negotiated between the vehicle to be authenticated and the identity authentication center. The vehicle to be authenticated integrates the shared key information with the challenge information returned by the identity authentication center to obtain an integrated result, and performs a hash operation on the integrated result using a preset hash algorithm to obtain the first character string.

[0113] Optionally, in step S4, based on the second request message, using the challenge information and a preset hash algorithm, the identity of the vehicle to be authenticated is authenticated, and generating the second response message further includes the following method steps:

[0114] Step S41, obtaining shared key information between the vehicle to be authenticated and the identity authentication center;

[0115] Step S42, merging the shared key information and the challenge information to obtain a first merging result;

[0116] Step S43, generating a second character string using a preset hash algorithm according to the first merging result;

[0117] Step S44, comparing the second character string with the first character string carried in the second request message;

[0118] Step S45, in response to the second character string being the same as the first character string, generating a second response message, wherein the second response message carries authentication success information;

[0119] Step S46: In response to the second character string being different from the first character string, a second response message is generated, wherein the second response message carries authentication failure information.

[0120] As in step S41 above, the identity authentication center obtains the shared key information negotiated with the vehicle to be authenticated.

[0121] In an optional embodiment of the present invention, the identity authentication center obtains shared key information. This process involves the question of whether the identity authentication center performs other additional logical operations when obtaining the key information, resulting in an increase in the amount of calculation. In response to this problem, the present invention solves the problem by not performing other additional logical operations when the identity authentication center obtains the shared key information, thereby avoiding an increase in the amount of calculation.

[0122] As described in step S42 above, the first merging result is information formed by the identity authentication center integrating the shared key information and the challenge information in a certain manner.

[0123] The identity authentication center integrates the shared key information and the challenge information to generate a first combined result.

[0124] In an optional embodiment of the present invention, the identity authentication center generates the first merged result, and this process involves the problem of how to integrate the shared key information and the challenge information. In response to this problem, the present invention solves it by allowing designers to set the integration method of the two according to actual conditions, and flexibly design the most efficient integration method for each application scenario to reduce the amount of calculation in subsequent steps. For example, the shared key information is placed in front and the challenge information is placed in the back to form a string integrated as the first merged result.

[0125] As in step S43 above, the second character string is a result obtained by the identity authentication center performing a hash operation on the first combined result according to a preset hash algorithm.

[0126] The identity authentication center uses a preset hash algorithm to perform a hash operation on the first merge result to generate a second character string. The preset hash algorithm used by the identity authentication center to generate the second character string is consistent with the preset hash algorithm used to generate the first character string for the vehicle to be authenticated. The identity authentication center compares the second character string with a second character string recorded within a certain period of time in the past. The second character string recorded by the identity authentication center within a certain period of time in the past is a time period specified by the designer based on actual conditions. In response to the second character string being the same as a second character string recorded in the past, it indicates that the identity authentication center has failed to authenticate the vehicle to be authenticated, and the identity authentication center has suffered a replay attack on the vehicle to be authenticated; in response to the second character string being different from a second character string recorded in the past, it indicates that the identity authentication center has not suffered a replay attack on the vehicle to be authenticated, and the identity authentication center records the second character string.

[0127] In an optional embodiment of the present invention, the identity authentication center generates a second string based on a preset hash algorithm and the first merging result. This process involves the problem of selecting a preset hash algorithm. To address this problem, the present invention solves it by allowing designers to set the preset hash algorithm according to actual conditions, and flexibly select the most efficient hash algorithm for each application scenario to reduce the amount of calculation. For example, the preset hash algorithm is selected as the MD5 algorithm.

[0128] As in step S44 above, the identity authentication center compares the second string with the first string carried in the second request message. The identity authentication center compares the second string with the first string, and the second string with the previously recorded second string. The order of comparison between the two is determined by the designer according to the actual situation.

[0129] If the second string is compared with the previously recorded second string first, if the identity authentication center is attacked by a replay attack, the comparison between the second string and the first string does not need to be performed, and the identity authentication center returns an authentication failure to the vehicle to be authenticated. If the identity authentication center is not attacked by a replay attack, the second string is compared with the first string. If the second string is the same as the first string, the authentication is successful, otherwise the authentication fails.

[0130] If the second string is compared with the first string first, and the result is that the second string is the same as the first string, the second string is then compared with the previously recorded second string. If the identity authentication center is not attacked by a replay attack, the identity authentication is successful. Otherwise, the identity authentication fails.

[0131] In an optional embodiment of the present invention, the identity authentication center compares the second string with the first string. This process involves the question of whether the comparison algorithm selected by the identity authentication center has a small amount of calculation to achieve high efficiency. In response to this problem, the present invention solves it by allowing designers to set an efficient algorithm with a small amount of calculation according to actual conditions, thereby avoiding the problem of increased calculation amount due to inappropriate algorithm selection.

[0132] As in step S45 above, the identity authentication center generates a second response message in response to the second character string being identical to the first character string, and encapsulates the authentication success information into the second response message.

[0133] In an optional embodiment of the present invention, the identity authentication center generates a second response message indicating successful authentication information. This process involves the question of whether the identity authentication center generates the second response message with a smaller amount of calculation, lower latency, and less cost. In response to this problem, the present invention solves the problem by preventing the identity authentication center from performing complex symmetric encryption and asymmetric encryption operations on the message content of the second response message, thereby reducing the amount of calculation for the identity authentication center to generate the second response message, thereby reducing latency and cost.

[0134] As in step S46 above, in response to the second character string being different from the first character string, the identity authentication center generates a second response message and encapsulates the authentication failure information into the second response message.

[0135] In an optional embodiment of the present invention, the identity authentication center generates a second response message indicating authentication failure information. This process involves the question of whether the identity authentication center generates the second response message with a smaller amount of calculation, lower latency, and less cost. In response to this problem, the present invention solves the problem by having the identity authentication center not perform encryption operations on the message content of the second response message, thereby avoiding the identity authentication center from performing complex symmetric encryption and asymmetric encryption operations on the message content of the second response message, thereby reducing the amount of calculation for the identity authentication center to generate the second response message, thereby reducing latency and cost.

[0136] Optionally, the above method may further include the following steps:

[0137] Step S61, sending a first request message to an identity authentication center, wherein the first request message is used to request the identity authentication center to identify the authorization status of the vehicle to be authenticated;

[0138] Step S62, receiving a first response message returned by the identity authentication center, wherein the first response message carries challenge information;

[0139] Step S63, based on the challenge information and the preset hash algorithm, sending a second request message to the identity authentication center, wherein the second request message is used to request the identity authentication center to perform identity authentication on the vehicle to be authenticated;

[0140] Step S64, receiving a second response message returned by the identity authentication center, wherein the second response message is used to determine the identity authentication result of the vehicle to be authenticated.

[0141] As described above, steps S61 to S64 are operations performed by the vehicle to be authenticated to obtain the identity authentication result of the identity authentication center.

[0142] As in step S61 above, the vehicle to be authenticated sends a first request message to the identity authentication center. The first request message is used to request the identity authentication center to identify the authorization status of the vehicle to be authenticated.

[0143] In an optional embodiment of the present invention, the vehicle to be authenticated generates a first request message. This process involves whether the vehicle to be authenticated generates the first request message with a smaller amount of calculation, lower delay and lower cost. In response to this problem, the present invention solves the problem by not performing encryption operations on the message content of the first request message by the vehicle to be authenticated, thereby avoiding the vehicle to be authenticated from performing complex symmetric encryption and asymmetric encryption operations on the message content of the first request message, thereby reducing the amount of calculation for the vehicle to be authenticated to generate the first request message, thereby reducing delay and cost.

[0144] As in step S62 above, the vehicle to be authenticated receives the first response message returned by the identity authentication center. The vehicle to be authenticated parses the first response message. The first response message carries the challenge information.

[0145] In an optional embodiment of the present invention, the vehicle to be authenticated receives the first response message. This process involves whether the vehicle to be authenticated parses the first response message with a smaller amount of calculation, lower latency, and less cost. To address this problem, the present invention solves this problem by having the identity authentication center not perform encryption operations on the message content of the first response message, thereby avoiding complex symmetric decryption and asymmetric decryption operations when the vehicle to be authenticated parses the message content of the first response message, thereby reducing the amount of calculation required for the vehicle to be authenticated to parse the first response message, thereby reducing latency and cost.

[0146] As in step S63 above, the vehicle to be authenticated generates a first string based on the challenge information, the shared key information and the preset hash algorithm, and then generates and sends a second request message to the identity authentication center, and encapsulates the first string into the second request message. The second request message is used to request the identity authentication center to authenticate the vehicle to be authenticated.

[0147] In an optional embodiment of the present invention, the vehicle to be authenticated sends a second request message to the identity authentication center. This process involves the question of whether the vehicle to be authenticated generates the second request message with a smaller amount of calculation, lower latency, and less cost. In response to this problem, the present invention solves it by preventing the vehicle to be authenticated from performing complex symmetric encryption operations or asymmetric encryption operations on the message content of the second request message, thereby reducing the amount of calculation for the vehicle to be authenticated to generate the second request message, thereby reducing latency and cost.

[0148] As in step S64 above, the vehicle to be authenticated receives the second response message returned by the identity authentication center, and parses the second response message to obtain the identity authentication result.

[0149] In an optional embodiment of the present invention, the vehicle to be authenticated receives a second response message. This process involves whether the vehicle to be authenticated parses the second response message with a smaller amount of calculation, lower delay and less cost. To address this problem, the present invention solves this problem by having the identity authentication center not perform encryption operations on the message content of the second response message, thereby avoiding complex symmetric decryption and asymmetric decryption operations when the vehicle to be authenticated parses the message content of the second response message, thereby reducing the amount of calculation required for the vehicle to be authenticated to parse the second response message, thereby reducing delay and cost.

[0150] Optionally, in step S63, the challenge information is a random number generated by the identity authentication center, and based on the challenge information and a preset hash algorithm, sending the second request message to the identity authentication center further includes the following method steps:

[0151] Step S631, obtaining shared key information between the vehicle to be authenticated and the identity authentication center;

[0152] Step S632, combining the shared key information and the random number to obtain a second combined result;

[0153] Step S633: Generate a second request message using a preset hash algorithm according to the second merging result;

[0154] Step S634: Send a second request message to the identity authentication center.

[0155] As in step S631 above, the vehicle to be authenticated obtains the shared key information negotiated with the identity authentication center.

[0156] In an optional embodiment of the present invention, the process in which the to-be-authenticated vehicle obtains shared key information involves the question of whether to perform other additional logical operations when the to-be-authenticated vehicle obtains the key information, thereby increasing the amount of calculation. In view of this problem, the present invention solves the problem by not performing other additional logical operations when the to-be-authenticated vehicle obtains the shared key information, thereby avoiding increasing the amount of calculation.

[0157] As in step S632 above, the second combined result is the result generated by the vehicle to be authenticated integrating the shared key information and the random number in a certain manner.

[0158] The vehicle to be authenticated integrates the shared key information and the random number to generate a second combined result. The integration method of the vehicle to be authenticated to generate the second combined result is consistent with the integration method of the identity authentication center to generate the first combined result.

[0159] In an optional embodiment of the present invention, the vehicle to be authenticated generates a second merged result, and this process involves the problem of how to integrate the shared key information and the challenge information. In response to this problem, the present invention solves it by allowing designers to set the integration method of the two according to actual conditions, and flexibly designing the most efficient integration method for each application scenario to reduce the amount of calculation in subsequent steps. For example, the shared key information is placed in front and the challenge information is placed in the back to form a string integrated as the second merged result.

[0160] As in step S633 above, the vehicle to be authenticated uses a preset hash algorithm to perform a hash operation on the second combined result to obtain a first string, and generates a second request message, and encapsulates the first string into the second request message.

[0161] In an optional embodiment of the present invention, the vehicle to be authenticated generates a second request message. This process involves the question of whether the vehicle to be authenticated generates the second request message with a smaller amount of calculation, lower delay, and lower cost. In response to this problem, the present invention solves the problem by not performing encryption operations on the message content of the second request message by the vehicle to be authenticated, thereby avoiding the vehicle to be authenticated from performing complex symmetric decryption and asymmetric encryption operations on the message content of the second request message, thereby reducing the amount of calculation for the vehicle to be authenticated to generate the second request message, thereby reducing delay and cost.

[0162] As in step S634 above, the vehicle to be authenticated sends a second request message to the identity authentication center.

[0163] In an optional embodiment of the present invention, the vehicle to be authenticated sends a second request message to the identity authentication center. This process involves the question of whether the identity authentication center will parse the second request message with a smaller amount of calculation, lower delay and lower cost after receiving the second request message. In response to this problem, the present invention solves it by having the vehicle to be authenticated not perform encryption operations on the message content of the second request message, thereby avoiding complex symmetric decryption operations or asymmetric decryption operations when the identity authentication center parses the message content of the second request message, thereby reducing the amount of calculation required by the identity authentication center to parse the second request message, thereby reducing delays and costs.

[0164] Figure 4is a schematic diagram of a specific implementation process of an optional vehicle identity authentication according to an embodiment of the present invention, such as Figure 4 As shown, the process includes the following steps:

[0165] Step N1, the vehicle networking system (Telematics box, referred to as Tbox) initiates an authentication request to ETC;

[0166] Step N2, ETC verifies the legitimacy of the Tbox user;

[0167] Step N3: If the ETC verifies that the Tbox is illegal, that is, the verification fails, the user authentication failure information is returned to the Tbox;

[0168] Step N4: If the verification result of ETC on Tbox is legal, that is, the verification is successful, ETC randomly generates a random number;

[0169] Step N5, ETC returns a random number to the successfully authenticated Tbox;

[0170] Step N6, Tbox generates a response signal based on the random number returned by ETC;

[0171] Step N7, Tbox returns a response signal to ETC;

[0172] Step N8, ETC verifies the response signal of Tbox and obtains the verification result of Tbox. There are two verification results of Tbox response signal from ETC, verification success and verification failure, which respectively indicate that ETC successfully authenticates Tbox and fails to authenticate it;

[0173] Step N9, ETC returns the verification result to Tbox, that is, authentication success or failure.

[0174] As shown in steps N1 to N9 above: Tbox is the vehicle to be authenticated; the authentication request is the first request message; ETC is the identity authentication center; the legitimacy of the user is the authorization status, legal means authorized, illegal means unauthorized; the random number is the challenge information; the response signal is the second request message.

[0175] Tbox will initiate an authentication request to ETC. ETC queries the vehicle authorization information in the preset database based on Tbox's authentication request. If ETC finds the vehicle information in the authentication request among the authorized vehicles in the preset database, the user of Tbox is legal, otherwise it is illegal. If the result of ETC's verification of Tbox is illegal, that is, the verification fails, and the user authentication failure information is returned to Tbox. If the result of ETC's verification of Tbox is legal, that is, the verification is successful, ETC randomly generates a random number. ETC returns a random number to the successfully authenticated Tbox. Tbox integrates the random number returned by ETC and the shared key information negotiated with ETC to generate a second merged result, and uses a preset hash algorithm to perform a hash operation on the second merged result to obtain a first string. Tbox generates a response signal and encapsulates the first string into the response signal. ETC receives and verifies the response signal returned by Tbox. ETC integrates the shared key information negotiated with Tbox and the random number sent to Tbox to generate a first merged result, and uses a preset hash algorithm to perform a hash operation on the first merged result to obtain a second string. ETC compares whether the first string and the second string are the same. If they are not the same, the authentication of Tbox fails. If they are the same, the second string will be compared with the second string recorded in the past. If the second string is the same as a second string recorded in the past, the authentication fails, indicating that ETC has been attacked by Tbox. Otherwise, the authentication succeeds. ETC returns the authentication success or failure to Tbox based on the authentication result of Tbox.

[0176] Figure 5 is a structural block diagram of an optional vehicle identity authentication device according to an embodiment of the present invention, such as Figure 5 As shown, the vehicle identity authentication device 500 includes:

[0177] The first receiving module 501 receives a first request message sent by a vehicle to be authenticated, wherein the first request message is used to request authorization status identification of the vehicle to be authenticated.

[0178] The first response module 502 returns a first response message to the vehicle to be authenticated based on the first request message, wherein the first response message carries challenge information.

[0179] The second receiving module 503 receives a second request message sent by the vehicle to be authenticated, wherein the second request message is used to request identity authentication of the vehicle to be authenticated.

[0180] The authentication module 504 performs identity authentication on the vehicle to be authenticated based on the second request message, using the challenge information and a preset hash algorithm, and generates a second response message, wherein the second response message is used to determine the identity authentication result of the vehicle to be authenticated.

[0181] The second response module 505 returns a second response message to the vehicle to be authenticated.

[0182] Optionally, in the vehicle identity authentication device 500, the challenge information is a random number, wherein the random number is used to detect whether a replay attack occurs during the vehicle identity authentication process.

[0183] Optionally, the first response module 502 is also used to: determine the vehicle information of the vehicle to be authenticated according to the first request message; identify the authorization status of the vehicle to be authenticated based on the vehicle information and a preset database to obtain an identification result, wherein the authorization information is stored in the preset database; in response to the identification result corresponding to the vehicle to be authenticated being authorized, generate a random number as challenge information, and determine that the first response message carries the challenge information; and return the first response message to the vehicle to be authenticated.

[0184] Optionally, in the vehicle identity authentication device 500, the information carried by the second request message includes: a first character string, wherein the first character string is generated by the vehicle to be authenticated based on challenge information and a preset hash algorithm.

[0185] Optionally, the authentication module 504 is also used to: obtain shared key information between the vehicle to be authenticated and the identity authentication center; merge the shared key information with the challenge information to obtain a first merged result; generate a second string based on the first merged result using a preset hash algorithm; compare the second string with the first string carried by the second request message; in response to the second string being the same as the first string, generate a second response message, wherein the second response message carries authentication success information; in response to the second string being different from the first string, generate a second response message, wherein the second response message carries authentication failure information.

[0186] Optionally, the vehicle identity authentication device 500 is also used to: send a first request message to an identity authentication center, wherein the first request message is used to request the identity authentication center to identify the authorization status of the vehicle to be authenticated; receive a first response message returned by the identity authentication center, wherein the first response message carries challenge information; based on the challenge information and a preset hash algorithm, send a second request message to the identity authentication center, wherein the second request message is used to request the identity authentication center to authenticate the vehicle to be authenticated; receive a second response message returned by the identity authentication center, wherein the second response message is used to determine the identity authentication result of the vehicle to be authenticated.

[0187] Optionally, the vehicle identity authentication device 500 is also used to: obtain shared key information between the vehicle to be authenticated and the identity authentication center; merge the shared key information with a random number to obtain a second merged result; generate a second request message based on the second merged result using a preset hash algorithm; and send a second request message to the identity authentication center.

[0188] An embodiment of the present invention further provides a vehicle, the vehicle comprising an onboard memory and an onboard processor. The onboard memory stores a computer program, and the onboard processor is configured to run the computer program. The computer program implements the steps in any of the above method embodiments when executed by the onboard processor.

[0189] Optionally, in this embodiment, the vehicle-mounted processor may be configured to perform the following steps through a computer program:

[0190] Step 1, receiving a first request message sent by a vehicle to be authenticated, wherein the first request message is used to request authorization status identification of the vehicle to be authenticated;

[0191] Step 2: Based on the first request message, a first response message is returned to the vehicle to be authenticated, wherein the first response message carries the challenge information;

[0192] Step 3, receiving a second request message sent by the vehicle to be authenticated, wherein the second request message is used to request identity authentication of the vehicle to be authenticated;

[0193] Step 4: Based on the second request message, use the challenge information and the preset hash algorithm to authenticate the identity of the vehicle to be authenticated, and generate a second response message, wherein the second response message is used to determine the identity authentication result of the vehicle to be authenticated;

[0194] Step 5: Return a second response message to the vehicle to be authenticated.

[0195] An embodiment of the present invention further provides a vehicle identity authentication system, the system comprising a vehicle and a vehicle identity authentication device, wherein the vehicle identity authentication device is connected to the vehicle to perform the following identity authentication steps:

[0196] Step 1, receiving a first request message sent by a vehicle to be authenticated, wherein the first request message is used to request authorization status identification of the vehicle to be authenticated;

[0197] Step 2: Based on the first request message, a first response message is returned to the vehicle to be authenticated, wherein the first response message carries the challenge information;

[0198] Step 3, receiving a second request message sent by the vehicle to be authenticated, wherein the second request message is used to request identity authentication of the vehicle to be authenticated;

[0199] Step 4: Based on the second request message, use the challenge information and the preset hash algorithm to authenticate the identity of the vehicle to be authenticated, and generate a second response message, wherein the second response message is used to determine the identity authentication result of the vehicle to be authenticated;

[0200] Step 5: Return a second response message to the vehicle to be authenticated.

[0201] The serial numbers of the above embodiments of the present invention are only for description and do not represent the advantages or disadvantages of the embodiments.

[0202] In the above embodiments of the present invention, the description of each embodiment has its own emphasis. For parts that are not described in detail in a certain embodiment, reference can be made to the relevant descriptions of other embodiments.

[0203] In the several embodiments provided by the present invention, it should be understood that the disclosed technical content can be implemented in other ways. Among them, the device embodiments described above are only schematic. For example, the division of the units can be a logical function division. There may be other division methods in actual implementation. For example, multiple units or components can be combined or integrated into another system, or some features can be ignored or not executed. Another point is that the mutual coupling or direct coupling or communication connection shown or discussed can be through some interfaces, indirect coupling or communication connection of units or modules, which can be electrical or other forms.

[0204] The units described as separate components may or may not be physically separated, and the components shown as units may or may not be physical units, that is, they may be located in one place or distributed on multiple units. Some or all of the units may be selected according to actual needs to achieve the purpose of the present embodiment.

[0205] In addition, each functional unit in each embodiment of the present invention may be integrated into one processing unit, or each unit may exist physically separately, or two or more units may be integrated into one unit. The above-mentioned integrated unit may be implemented in the form of hardware or in the form of software functional units.

[0206] If the integrated unit is implemented in the form of a software functional unit and sold or used as an independent product, it can be stored in a computer-readable storage medium. Based on this understanding, the technical solution of the present invention, in essence, or the part that contributes to the prior art, or all or part of the technical solution can be embodied in the form of a software product, and the computer software product is stored in a storage medium, including a number of instructions for a computer device (which can be a personal computer, a server or a network device, etc.) to perform all or part of the steps of the method described in each embodiment of the present invention. The aforementioned storage medium includes: U disk, read-only memory (ROM, Read-Only Memory), random access memory (RAM, Random Access Memory), mobile hard disk, magnetic disk or optical disk and other media that can store program codes.

[0207] The above is only a preferred embodiment of the present invention. It should be pointed out that for ordinary technicians in this technical field, several improvements and modifications can be made without departing from the principle of the present invention. These improvements and modifications should also be regarded as the scope of protection of the present invention.

Claims

1. A vehicle identity authentication method, It is characterized in that include: Receiving a first request message sent by a vehicle to be authenticated, wherein the first request message is used to request authorization status identification of the vehicle to be authenticated; Based on the first request message, returning a first response message to the vehicle to be authenticated, wherein the first response message carries challenge information; Receiving a second request message sent by the vehicle to be authenticated, wherein the second request message is used to request identity authentication of the vehicle to be authenticated, and information carried by the second request message includes a first string, which is generated by the vehicle to be authenticated based on the challenge information and a preset hash algorithm; Acquiring shared key information between the vehicle to be authenticated and the identity authentication center; Merging the shared key information with the challenge information to obtain a first merged result; Generate a second string using the preset hash algorithm according to the first merging result; Compare the second character string with the first character string carried in the second request message; In response to the second character string being the same as the first character string, generating a second response message, wherein the second response message carries authentication success information; In response to the second character string being different from the first character string, generating the second response message, wherein the second response message carries authentication failure information; The second response message is returned to the vehicle to be authenticated.

2. The method according to claim 1, It is characterized in that The challenge information is a random number, wherein the random number is used to detect whether a replay attack occurs during the vehicle identity authentication process.

3. The method according to claim 2, It is characterized in that Based on the first request message, returning the first response message to the vehicle to be authenticated includes: Determining vehicle information of the vehicle to be authenticated according to the first request message; Based on the vehicle information and a preset database, identifying the authorization status of the vehicle to be authenticated, and obtaining an identification result, wherein the preset database stores authorization information; In response to the recognition result corresponding to the vehicle to be authenticated being authorized, generating a random number as the challenge information, and determining that the first response message carries the challenge information; The first response message is returned to the vehicle to be authenticated.

4. A vehicle identity authentication method, It is characterized in that include: Sending a first request message to an identity authentication center, wherein the first request message is used to request the identity authentication center to identify the authorization status of the vehicle to be authenticated; Receiving a first response message returned by the identity authentication center, wherein the first response message carries challenge information; Based on the challenge information and the preset hash algorithm, a second request message is sent to the identity authentication center, wherein the second request message is used to request the identity authentication center to authenticate the vehicle to be authenticated, and the information carried by the second request message includes a first string, which is generated by the vehicle to be authenticated based on the challenge information and the preset hash algorithm; Receiving a second response message returned by the identity authentication center, wherein the second response message is used to determine the identity authentication result of the vehicle to be authenticated; Generating the second response message includes the following steps: obtaining the shared key information between the vehicle to be authenticated and the identity authentication center; merging the shared key information with the challenge information to obtain a first merging result; generating a second string based on the first merging result using the preset hash algorithm; comparing the second string with the first string carried by the second request message; in response to the second string being the same as the first string, generating a second response message, wherein the second response message carries authentication success information; in response to the second string being different from the first string, generating a second response message, wherein the second response message carries authentication failure information.

5. The method according to claim 4, It is characterized in that The challenge information is a random number generated by the identity authentication center, and based on the challenge information and the preset hash algorithm, sending the second request message to the identity authentication center includes: Acquiring shared key information between the vehicle to be authenticated and the identity authentication center; Combining the shared key information with the random number to obtain a second combined result; Generate the second request message using the preset hash algorithm according to the second merging result; Send the second request message to the identity authentication center.

6. A vehicle identity authentication device, It is characterized in that include: A first receiving module, configured to receive a first request message sent by a vehicle to be authenticated, wherein the first request message is used to request authorization status identification of the vehicle to be authenticated; A first response module, configured to return a first response message to the vehicle to be authenticated based on the first request message, wherein the first response message carries challenge information; A second receiving module is used to receive a second request message sent by the vehicle to be authenticated, wherein the second request message is used to request identity authentication of the vehicle to be authenticated, and the information carried by the second request message includes a first string, which is generated by the vehicle to be authenticated based on the challenge information and a preset hash algorithm; An authentication module, used to: obtain shared key information between the vehicle to be authenticated and the identity authentication center; merge the shared key information with the challenge information to obtain a first merge result; generate a second string using the preset hash algorithm according to the first merge result; compare the second string with the first string carried by the second request message; in response to the second string being the same as the first string, generate a second response message, wherein the second response message carries authentication success information; in response to the second string being different from the first string, generate a second response message, wherein the second response message carries authentication failure information; The second response module is used to return the second response message to the vehicle to be authenticated.

7. A vehicle comprising an onboard memory and an onboard processor, It is characterized in that A computer program is stored in the vehicle-mounted memory, and the vehicle-mounted processor is configured to run the computer program to execute the vehicle identity authentication method described in any one of claims 4 to 5.

8. A vehicle identity authentication system, It is characterized in that include: A vehicle and a vehicle identity authentication device, wherein the vehicle identity authentication device is connected to the vehicle to perform the following vehicle identity authentication steps: Step 1, receiving a first request message sent by a vehicle to be authenticated, wherein the first request message is used to request authorization status identification of the vehicle to be authenticated; Step 2: Based on the first request message, return a first response message to the vehicle to be authenticated, wherein the first response message carries challenge information; Step 3, receiving a second request message sent by the vehicle to be authenticated, wherein the second request message is used to request identity authentication of the vehicle to be authenticated, and the information carried by the second request message includes a first string, which is generated by the vehicle to be authenticated based on the challenge information and a preset hash algorithm; Step 4, obtaining the shared key information between the vehicle to be authenticated and the identity authentication center; merging the shared key information with the challenge information to obtain a first merging result; generating a second string using the preset hash algorithm according to the first merging result; comparing the second string with the first string carried by the second request message; in response to the second string being the same as the first string, generating a second response message, wherein the second response message carries authentication success information; in response to the second string being different from the first string, generating a second response message, wherein, The second response message carries authentication failure information; Step 5: Return the second response message to the vehicle to be authenticated.