Digital key security authentication method, device, vehicle and digital key equipment

By generating device fingerprints and MAC value verification, a secure channel is established, which solves the problem of unable to confirm the legality of user identities in digital key scenarios, realizes dual identity authentication and secure channels between vehicles and digital key devices, and improves information security and vehicle Protection of data.

CN115690955BActive Publication Date: 2024-09-24CHONGQING CHANGAN TECH CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202211334015.2
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2022-10-28
Publication Date
2024-09-24
Estimated Expiration
2042-10-28

AI Technical Summary

Technical Problem

In the scenario of using digital keys, the legitimacy of the user's identity cannot be ensured, which may cause illegal users to impersonate legitimate users to obtain permissions, resulting in vehicle data being stolen and read during communications, and vehicle control instructions being executed incorrectly.

Method used

By extracting the characteristic value of the wireless communication channel between the vehicle and the digital key device, the device fingerprint is generated, a secure channel is established, and the MAC value is calculated using random numbers and timestamps for verification to ensure the legitimacy of the digital key and realize the communication between the vehicle and the digital key device. Two-factor authentication and secure channel establishment.

Benefits of technology

It improves information security and privacy during the communication process, prevents illegal users from performing vehicle control operations, and ensures the security of vehicle data and legal identity authentication.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN115690955B
    Figure CN115690955B
Patent Text Reader

Abstract

The present application relates to the field of automobile technology, and in particular to a digital key security authentication method, device, vehicle and digital key device, wherein the method includes: extracting channel characteristic values ​​for wireless communication between a vehicle and a digital key device; generating a device fingerprint based on the channel characteristic values, and after verifying that the digital key is a preset legal key based on the device fingerprint, establishing a preset security channel between the vehicle and the digital key device; receiving a session maintenance message sent by the digital key device at a preset time interval, and after verifying that the digital key is a preset legal key based on the session maintenance message, maintaining the preset security channel in a preset session state, otherwise disconnecting the preset security channel. Thus, the problem of being unable to ensure the security and privacy of data in the vehicle when an illegal digital key is connected to the vehicle for vehicle control operations is solved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the field of automobile technology, and in particular to a digital key security authentication method, device, vehicle and digital key device. Background Art

[0002] Car keys have gone through the development stages of mechanical keys, chip keys, remote control keys, and smart keys. Each stage of development is moving towards user convenience and intelligence. Among them, remote control keys, smart start systems, digital key APPs (Applications) and other products based on automotive electronic devices make the use of vehicles more and more convenient.

[0003] As an innovative technology under the intelligent transformation of automobiles, digital car keys allow car owners to unlock their cars through smart phones, wearable devices, etc., and perform related car control operations on the car, thereby improving the convenience of car use. Therefore, they are favored by more and more car companies.

[0004] However, in the current scenario of using digital keys, the legitimacy of the user's identity cannot be ensured, which may allow illegal users to impersonate other legitimate users to obtain relevant permissions, allowing data to be illegally stolen and read during communications, and at the same time, it cannot guarantee the correct execution of vehicle control commands. Summary of the invention

[0005] The present application provides a digital key security authentication method, device, vehicle and digital key device to solve the problems of illegal digital keys connecting to vehicles for vehicle control operations and the inability to ensure the security and privacy of data in the vehicle.

[0006] In a first aspect, an embodiment of the present application provides a method for secure authentication of a digital key. The method is applied to a vehicle and includes the following steps: extracting a channel characteristic value for wireless communication between the vehicle and the digital key device; generating a device fingerprint based on the channel characteristic value, and after verifying that the digital key is a preset legal key based on the device fingerprint, establishing a preset security channel between the vehicle and the digital key device; receiving a session persistence message sent by the digital key device at preset time intervals, and after verifying that the digital key is a preset legal key based on the session persistence message, maintaining the preset security channel in a preset session state, otherwise disconnecting the preset security channel.

[0007] According to the above-mentioned technical means, the embodiment of the present application can generate a device fingerprint based on the channel characteristic value of the wireless communication between the vehicle and the digital key, use the device fingerprint to establish a secure channel, and then perform standard authentication. On the basis of traditional security authentication, an additional layer of secure channel is established to prevent illegal users from performing vehicle control operations, thereby improving the security and privacy of information during the communication process.

[0008] Optionally, the session persistence message includes a random number, a timestamp and an identity verification code MAC value of the digital key. After verifying that the digital key is a preset legal key according to the session persistence message, the preset security channel is kept in a preset session state, otherwise the preset security channel is disconnected. It also includes: checking whether the timestamp meets the preset conditions; if the timestamp meets the preset conditions, performing MAC calculation based on the random number and the timestamp to obtain an actual MAC value; if the actual MAC value is consistent with the MAC value of the session persistence message, verifying that the digital key is a preset legal key, and keeping the preset security channel in a preset session state, otherwise verifying that the digital key is a preset illegal key, and disconnecting the preset security channel.

[0009] According to the above-mentioned technical means, the embodiment of the present application can calculate the MAC (Message Authentication Code) value based on the random number and timestamp, and compare the MAC value with the MAC value of the session maintenance message to determine whether they are consistent, thereby determining whether the digital key is legal, and establishing a secure channel, which can prevent illegal users from connecting to the vehicle to perform vehicle control operations.

[0010] Optionally, after verifying that the digital key is a preset legal key based on the device fingerprint, establishing a preset security channel between the vehicle and the digital key device also includes: encrypting a first identifier of the digital key device using the device fingerprint to obtain key information; sending the key information to the vehicle, wherein the vehicle decrypts the key information according to the device fingerprint to obtain the first identifier, queries a first preset whitelist according to the first identifier, and if the digital key is obtained through the query, encrypts the vehicle identifier of the vehicle with the device fingerprint to obtain vehicle information; receives the vehicle information, and decrypts the vehicle information using the device fingerprint to obtain the vehicle identifier, queries a second preset whitelist according to the vehicle identifier, and if the vehicle is obtained through the query, establishes a preset security channel between the vehicle and the digital key device.

[0011] According to the above-mentioned technical means, the embodiment of the present application can use the device fingerprint to decrypt the first identification sent by the digital key to obtain the key information. The vehicle device queries the key information in the white list. If it exists, the vehicle identification is encrypting using the device fingerprint, and the vehicle information is decrypted using the device fingerprint. The white list is queried. If it exists, a secure channel is established. The secure channel is established through double encryption and decryption to ensure the security of the vehicle connection.

[0012] Optionally, before receiving the session persistence message sent by the digital key device at preset intervals, it also includes: sending a vehicle-side random number and IV value to the digital key device, and receiving the application identifier of the digital key, the key-side random number, the key information, and the key ciphertext generated based on the vehicle-side random number and the key-side random number sent by the digital key device; calculating the digital key according to the application identifier, the key-side random number and the key information, and deriving the communication key from the digital key, decrypting the key ciphertext using the communication key, and if the decrypted information is consistent with the vehicle-side random number and the key-side random number, encrypting the vehicle-side ciphertext according to the counting information of the key counter of the digital key and the vehicle-side random number; sending the vehicle-side ciphertext to The digital key device, wherein the digital key device derives a communication key from a digital key, uses the communication key to decrypt the vehicle-side ciphertext, and if the decrypted information is consistent with the counting information of the key counter and the vehicle-side random number, the identity security authentication of the vehicle is completed on the key side, and the key-side session key is calculated based on the communication key, the IV value and the hash value of the vehicle-side random number, and the vehicle-side random number is encrypted using the key-side session key to obtain a session ciphertext; the vehicle-side session key is calculated based on the communication key, the IV value and the hash value of the vehicle-side random number, and the vehicle-side session key is used to decrypt the session ciphertext, and if the decrypted information is consistent with the vehicle-side random number, the identity security authentication of the digital key is completed on the vehicle side.

[0013] According to the above-mentioned technical means, the embodiment of the present application can realize two-way identity authentication on the vehicle side and the key side and generate a session key for encryption / decryption of vehicle control commands, thereby realizing identity security authentication of the vehicle and the digital key, preventing illegal users from connecting, improving the security of vehicle data, and ensuring information security at two levels.

[0014] Optionally, before extracting the channel characteristic value for wireless communication between the vehicle and the digital key device, the method further includes: receiving a pairing request from the digital key device; and pairing with the digital key device according to the pairing request.

[0015] According to the above technical means, the embodiment of the present application needs to pair with the digital key device according to the pairing request of the digital key, so as to extract the channel characteristic value of the communication between the vehicle and the digital key device for subsequent security authentication.

[0016] The second aspect of the present application provides a digital key security authentication method, which is applied to a digital key device, and the method includes the following steps: extracting channel characteristic values ​​for wireless communication between a vehicle and the digital key device; generating a device fingerprint based on the channel characteristic values, and after verifying that the vehicle is a preset legal vehicle based on the device fingerprint, establishing a preset security channel between the vehicle and the digital key device; sending a session persistence message to the vehicle at an interval of preset time, wherein after the vehicle verifies that the digital key is a preset legal key based on the session persistence message, the preset security channel is maintained in a preset session state, otherwise the preset security channel is disconnected.

[0017] In a third aspect, an embodiment of the present application provides a digital key security authentication device, which is applied to a vehicle and includes: a first extraction module, used to extract a channel characteristic value for wireless communication between the vehicle and the digital key device; a first establishment module, used to generate a device fingerprint based on the channel characteristic value, and after verifying that the digital key is a preset legal key based on the device fingerprint, establish a preset security channel between the vehicle and the digital key device; a first verification module, used to receive a session persistence message sent by the digital key device at preset time intervals, and after verifying that the digital key is a preset legal key based on the session persistence message, maintain the preset security channel in a preset session state, otherwise disconnect the preset security channel.

[0018] In a fourth aspect, an embodiment of the present application provides a digital key security authentication device, which is applied to a digital key device and includes: a second extraction module, which extracts channel characteristic values ​​for wireless communication between a vehicle and the digital key device; a second establishment module, which generates a device fingerprint based on the channel characteristic value, and after verifying that the vehicle is a preset legal vehicle based on the device fingerprint, establishes a preset security channel between the vehicle and the digital key device; a second verification module, which sends a session maintenance message to the vehicle at a preset time interval, wherein the vehicle maintains the preset security channel in a preset session state after verifying that the digital key is a preset legal key based on the session maintenance message, otherwise disconnects the preset security channel.

[0019] The fifth aspect of the present application provides a vehicle, comprising: a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the processor executes the program to implement the digital key security authentication method as described in the above embodiment.

[0020] The sixth aspect of the present application provides a digital key device, including: a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the processor executes the program to implement the digital key security authentication method described in the above embodiment.

[0021] Therefore, this application has at least the following beneficial effects:

[0022] (1) The embodiments of the present application can generate a device fingerprint based on the channel characteristic value of the wireless communication between the vehicle and the digital key, use the device fingerprint to establish a secure channel, and then perform standard authentication. On the basis of traditional security authentication, an additional layer of secure channel establishment is added to prevent illegal users from performing vehicle control operations, thereby improving the security and privacy of information during the communication process.

[0023] (2) The embodiment of the present application can calculate the MAC value based on the random number and timestamp, and compare the MAC value with the MAC value of the session maintenance message to determine whether they are consistent, thereby determining whether the digital key is legal and establishing a secure channel, which can prevent illegal users from connecting to the vehicle to perform vehicle control operations.

[0024] (3) The embodiment of the present application can use the device fingerprint to decrypt the first identification sent by the digital key to obtain the key information. The vehicle device queries the white list for the key information. If it exists, the vehicle identification is encrypted using the device fingerprint, and the vehicle information is decrypted using the device fingerprint. The white list is queried. If it exists, a secure channel is established. The secure channel is established through double encryption and decryption, thereby ensuring the security of the vehicle connection.

[0025] (4) The embodiments of the present application can generate a session key for encryption / decryption of vehicle control commands through two-way identity authentication on the vehicle side and the key side, thereby realizing identity security authentication of the vehicle and the digital key, preventing illegal users from connecting, improving the security of vehicle data, and ensuring information security at two levels.

[0026] (5) The embodiment of the present application needs to pair with the digital key device according to the pairing request of the digital key, so as to extract the channel characteristic value of the communication between the vehicle and the digital key device for subsequent security authentication.

[0027] Additional aspects and advantages of the present application will be given in part in the description below, and in part will become apparent from the description below, or will be learned through the practice of the present application. BRIEF DESCRIPTION OF THE DRAWINGS

[0028] The above and / or additional aspects and advantages of the present application will become apparent and easily understood from the following description of the embodiments in conjunction with the accompanying drawings, in which:

[0029] Figure 1 A flowchart of a digital key security authentication method provided according to an embodiment of the present application;

[0030] Figure 2 A flowchart of a digital key security authentication and encryption method provided according to an embodiment of the present application;

[0031] Figure 3 A flowchart of establishing a digital key and a vehicle safety channel according to an embodiment of the present application;

[0032] Figure 4 A flowchart of standard security authentication between a digital key and a vehicle provided in an embodiment of the present application;

[0033] Figure 5 A flowchart of a digital key security authentication method provided according to an embodiment of the present application;

[0034] Figure 6 This is a block diagram of a security authentication device for a digital key provided according to an embodiment of the present application;

[0035] Figure 7 This is a block diagram of a security authentication device for a digital key provided according to an embodiment of the present application;

[0036] Figure 8 It is a schematic diagram of a vehicle structure provided according to an embodiment of the present application. DETAILED DESCRIPTION

[0037] Embodiments of the present application are described in detail below, and examples of the embodiments are shown in the accompanying drawings, wherein the same or similar reference numerals throughout represent the same or similar elements or elements having the same or similar functions. The embodiments described below with reference to the accompanying drawings are exemplary and are intended to be used to explain the present application, and should not be construed as limiting the present application.

[0038] The relevant technology realizes the security authentication of digital keys through the following methods:

[0039] (1) Based on PKI (Public Key Infrastructure) technology, during the verification process between the two parties, a signature algorithm is used to extract the summary of the digital key, and the summary and digital key are encrypted and decrypted using the key pairs of both parties respectively. The correspondence between the summary and the digital key obtained by authentication and decryption is then compared with the digital key recorded in the database of the party concerned to achieve the purpose of identity security authentication.

[0040] (2) Use device fingerprints to protect user passwords and use a message digest algorithm to generate a new local key for network management message authentication and encryption. During message authentication, the new local key is used to calculate the message verification code for the message to complete message signature authentication. During message encryption, the new local key is used to encrypt the message data unit to protect communication privacy.

[0041] However, none of the above methods involve the establishment of a secure channel and the dual verification of the digital key and vehicle identity.

[0042] The following describes the digital key security authentication method, device, vehicle and digital key device of the embodiment of the present application with reference to the accompanying drawings. In view of the problem mentioned in the above background technology that when a user uses a digital key, the legitimacy of the user's identity cannot be confirmed, which may allow illegal users to impersonate legal users to obtain relevant permissions and operate the vehicle, and the security of vehicle data cannot be guaranteed, the present application provides a digital key security authentication method. In this method, after the digital key and the vehicle complete data pairing, the channel characteristic value is used as the device fingerprint, and the device fingerprint is used to establish a secure channel. The legitimacy of the identity of the digital key and the vehicle is verified, and information security is double-layered. As a result, the problem of illegal digital keys connecting to the vehicle and performing vehicle control operations, and the inability to guarantee the security and privacy of vehicle data and information is solved.

[0043] Specifically, Figure 1 A flowchart of a digital key security authentication method provided in an embodiment of the present application.

[0044] like Figure 1 As shown, the digital key security authentication method, applied to a vehicle, includes the following steps:

[0045] In step S101 , a channel characteristic value for wireless communication between a vehicle and a digital key device is extracted.

[0046] In an embodiment of the present application, before extracting the channel characteristic value for wireless communication between the vehicle and the digital key device, it also includes: receiving a pairing request from the digital key device; and pairing with the digital key device according to the pairing request.

[0047] It can be understood that after receiving the pairing request of the digital key, the embodiment of the present application can extract the channel characteristic value of the wireless communication between the vehicle and the digital key device to facilitate subsequent security authentication.

[0048] In step S102, a device fingerprint is generated according to the channel characteristic value, and after the digital key is verified as a preset legitimate key based on the device fingerprint, a preset security channel is established between the vehicle and the digital key device.

[0049] Among them, the device fingerprint extracts the channel characteristic value based on the difference of the signal in the wireless channel to generate a unique identification code, which is unique, inherent and difficult to tamper with.

[0050] It can be understood that the embodiment of the present application verifies the legitimacy of the digital key based on the device fingerprint and then establishes a secure channel.

[0051] In an embodiment of the present application, after verifying that the digital key is a preset legal key based on the device fingerprint, a preset security channel is established between the vehicle and the digital key device, which also includes: encrypting a first identifier of the digital key device using the device fingerprint to obtain key information; sending the key information to the vehicle, wherein the vehicle decrypts the key information according to the device fingerprint to obtain a first identifier, queries a first preset white list according to the first identifier, and if the digital key is obtained by the query, encrypts the vehicle identifier of the vehicle with the device fingerprint to obtain vehicle information; receives the vehicle information, and decrypts the vehicle information using the device fingerprint to obtain the vehicle identifier, queries a second preset white list according to the vehicle identifier, and if the vehicle is obtained by the query, establishes a preset security channel between the vehicle and the digital key device.

[0052] Among them, the device fingerprint can encrypt the device and decrypt the device information; the first identification refers to the information that can identify the digital key device, which can be set as the ID of the digital key device; the vehicle identification refers to the information that can identify the vehicle device, which can be set as the ID of the vehicle device; the first preset whitelist refers to the list library that stores digital key information; the second preset whitelist refers to the list library that stores vehicle information.

[0053] It can be understood that the embodiment of the present application generates a device fingerprint by collecting the characteristic value of the channel through the vehicle device, uses the device fingerprint as the algorithm key, decrypts the data sent by the digital key, obtains the device ID of the digital key, and the vehicle device queries the key information in the first preset white list. If it exists, the device ID value of the vehicle is encrypted using the device fingerprint as the key and the digital key is sent. Otherwise, the connection is disconnected. The digital key obtains the vehicle device ID and queries whether it exists in the second preset white list. If it exists, a secure channel is established and subsequent operations are performed. Otherwise, the connection is disconnected. The vehicle device and the digital key double-check the digital key information and vehicle information to ensure the legitimacy of the device, thereby building a secure communication channel.

[0054] In step S103, a session maintenance message sent by the digital key device at preset time intervals is received, and after verifying that the digital key is a preset legal key according to the session maintenance message, the preset security channel is maintained in a preset session state, otherwise the preset security channel is disconnected.

[0055] In an embodiment of the present application, before receiving the session maintenance message sent by the digital key device at a preset interval, it also includes: sending a vehicle-side random number and IV value to the digital key device, and receiving the application identifier of the digital key, the key-side random number, the key information, and the key ciphertext generated based on the vehicle-side random number and the key-side random number sent by the digital key device; calculating the digital key according to the application identifier, the key-side random number and the key information, deriving the communication key from the digital key, decrypting the key ciphertext using the communication key, and if the decrypted information is consistent with the vehicle-side random number and the key-side random number, encrypting the vehicle-side ciphertext according to the counting information of the key counter of the digital key and the vehicle-side random number; sending The vehicle-side ciphertext is sent to the digital key device, where the digital key device derives a communication key from the digital key, and uses the communication key to decrypt the vehicle-side ciphertext. If the decrypted information is consistent with the counting information of the key counter and the random number on the vehicle side, the identity security authentication of the vehicle is completed on the key side, and the key-side session key is calculated based on the communication key, IV value and the hash value of the vehicle-side random number, and the vehicle-side random number is encrypted with the key-side session key to obtain the session ciphertext; the vehicle-side session key is calculated based on the communication key, IV value and the hash value of the vehicle-side random number, and the vehicle-side session key is used to decrypt the session ciphertext. If the decrypted information is consistent with the vehicle-side random number, the identity security authentication of the digital key is completed on the vehicle side.

[0056] It can be understood that the embodiment of the present application first obtains a random number from the vehicle for authentication of the digital key. The vehicle side passes the vehicle-side random number and IV value to the key side, obtains the key's application identification, random number, and key information, and at the same time, the key side derives the communication key through the digital key, encrypts the key-side random number and the vehicle-side random number into ciphertext through a symmetric algorithm (AES128), and sends it to the vehicle side. Secondly, the vehicle side adopts a decentralized algorithm to calculate the digital key using the application identification, random number, and key information obtained from the key, derives the communication key from the digital key, decrypts the key ciphertext for comparison, and if the comparison is successful, the key counter and the key random number form a ciphertext and send it to the digital key. Finally, through two-way authentication on the vehicle side and the key side, a session key is generated for encryption / decryption of vehicle control commands. The key uses the communication key to decrypt the vehicle-side ciphertext and compares it. If the data is correct, the communication key is used to decrypt, and the IV value and the hash value of the vehicle-side random number are used to calculate the session key, which is used to encrypt the vehicle-side random number and send it to the vehicle. The vehicle uses the communication key, IV value and the hash value of the vehicle-side random number to calculate the session key, decrypt the key's ciphertext and compare it. If it is correct, it returns a successful security authentication, otherwise the authentication fails. In summary, through two-way identity authentication on the vehicle side and the key side, the legitimacy of digital key access is ensured, illegal digital keys are prevented from accessing the vehicle, and the security of vehicle data is guaranteed.

[0057] In an embodiment of the present application, a session maintenance message includes a random number, a timestamp, and an identity verification code MAC value of a digital key. After verifying that the digital key is a preset legal key according to the session maintenance message, the preset security channel is maintained in a preset session state, otherwise the preset security channel is disconnected. It also includes: checking whether the timestamp meets the preset conditions; if the timestamp meets the preset conditions, performing MAC calculation based on the random number and timestamp to obtain an actual MAC value; if the actual MAC value is consistent with the MAC value of the session maintenance message, verifying that the digital key is a preset legal key, and maintaining the preset security channel in a preset session state, otherwise verifying that the digital key is a preset illegal key, and disconnecting the preset security channel.

[0058] The session persistence message is composed of a random number, a timestamp and a MAC value. The MAC value can be generated by performing MAC calculation on the random number and the timestamp using the session key.

[0059] It can be understood that when the vehicle side obtains the session maintenance message, it verifies the timestamp. If the verification is successful, it uses the random number and timestamp to perform MAC calculation, and compares the received MAC value with the generated MAC value. If they are consistent, the verification is successful, and the digital key is judged to be a legal key. The vehicle side remains connected to the key, otherwise the connection is disconnected.

[0060] It should be noted that after passing the security authentication, the vehicle will periodically receive and verify the session persistence messages sent by the digital key until the connection is closed to prevent the simulation of a legitimate key from sending illegal vehicle control commands after the authentication is passed.

[0061] The following will describe the security authentication method of the digital key through a specific embodiment. Figure 2 As shown, the steps are as follows:

[0062] Step S11: Preparation for pairing the digital key with the vehicle

[0063] When using the digital key, the APP can extract the Bluetooth pairing information of the target vehicle within BLEDKINFO and search for the target vehicle's Bluetooth device. Once the target vehicle is found, the mobile phone APP will automatically complete the Bluetooth data pairing.

[0064] Step S12: Establishing a secure channel between the digital key and the vehicle

[0065] like Figure 3 As shown, a secure channel is established between the digital key and the vehicle, including:

[0066] Step S21: The digital key generates a device fingerprint and sends key information

[0067] The digital key collects the characteristic values ​​of the channel to generate a device fingerprint, uses the device fingerprint as the symmetric algorithm key, encrypts the device ID, and sends the ciphertext to the vehicle device.

[0068] Step S22: The vehicle generates a device fingerprint and obtains key information

[0069] The vehicle equipment collects the characteristic values ​​of the channel to generate a device fingerprint, uses the device fingerprint as the algorithm key, decrypts the data sent by the digital key, and obtains the device ID of the digital key.

[0070] Step S23: Vehicle equipment verifies digital key information

[0071] The vehicle device queries the device whitelist for key information. If the key information exists, it uses the device fingerprint as the key to encrypt its own ID value and send the digital key. Otherwise, the connection is disconnected.

[0072] Step S24: Digital key verifies vehicle information

[0073] The digital key obtains the vehicle device ID and checks whether it exists in the whitelist. If it exists, the secure channel is established and standard security authentication is performed. Otherwise, the connection is disconnected.

[0074] Step S13: Digital key and vehicle undergo standard safety authentication

[0075] like Figure 4 As shown, based on the authentication request, the digital key and the vehicle undergo standard security authentication, including:

[0076] Step S31: Select the vehicle's safety application

[0077] Select is used to select the security application in the vehicle-side container through AID.

[0078] Step S32: Select the key security application

[0079] Select is used to select a security application in a key container by AID.

[0080] Step S33: GetChallenge

[0081] GetChallenge is used to obtain a random number (ReaderRnd) from the security application for authentication of the digital key.

[0082] Step S34: Get Process Data

[0083] GetProcessData is used to obtain one or more basic objects from the key. In this process, the vehicle side passes the vehicle side random number and IV value to the key side, obtains the key application identification, random number, and key information, and the key side derives the communication key through the digital key, encrypts the key side random number and the vehicle side random number into ciphertext through the symmetric algorithm (AES128), and sends it to the vehicle side.

[0084] Step S35: Verify Process Data

[0085] VerifyProcessData is used to verify the processed data returned by the key side. In this process, the vehicle side uses a decentralized algorithm to calculate the digital key using the application identifier, random number, and key information obtained from the key, derive the communication key from the digital key, decrypt the key ciphertext for comparison, and if the comparison is successful, send the key counter count information and the key random number as a ciphertext to the digital key.

[0086] Step S36: Get Authentication Data-GetAuthData

[0087] GetAuthData is used to complete the two-way identity authentication on the vehicle side and the key side, and generate a session key for encryption / decryption of vehicle control commands. In this process, the key uses the communication key to decrypt the vehicle-side ciphertext and compares it. If the data is correct, the communication key, IV finger and the hash value of the vehicle-side random number are used to calculate the session key, which is used to encrypt the vehicle-side random number and send it to the vehicle side.

[0088] Step S37: Verify Authentication Data-VerifyAuthData

[0089] VerifyAuthData is used to complete the two-way identity authentication on the vehicle side and the key side, and generate a session key for encryption / decryption of vehicle control commands. In this process, the vehicle side uses the communication key, IV finger and the hash value of the vehicle side random number to calculate the session key, decrypt the key ciphertext and compare it. If it is correct, it returns a successful security authentication, otherwise the session ends.

[0090] Step S14: After successful authentication, the session between the digital key and the vehicle is maintained.

[0091] After passing the security authentication, the vehicle will periodically receive the session persistence messages sent by the Bluetooth digital key and perform verification until the connection is closed.

[0092] According to the security authentication method for a digital key proposed in an embodiment of the present application, a device fingerprint can be generated according to a channel characteristic value for wireless communication between a vehicle and a digital key, a secure channel can be established using the device fingerprint, and then standard authentication can be performed. An additional layer of secure channel establishment is provided on the basis of traditional security authentication to prevent illegal users from performing vehicle control operations, thereby improving the security and privacy of information during communication. A MAC value can be calculated according to a random number and a timestamp, and the MAC value can be compared with the MAC value of a session retention message to determine whether they are consistent, thereby determining whether the digital key is legal, and establishing a secure channel, thereby preventing illegal users from connecting to the vehicle to perform vehicle control operations. The device fingerprint can be used to decrypt the first identifier sent by the digital key to obtain key information, and the vehicle device can query the white list for key information. If the key information exists, the vehicle identifier is encrypted using the device fingerprint, and the vehicle information is decrypted using the device fingerprint, and the white list is queried. If the key information exists, a secure channel is established, and a secure channel is established through double encryption and decryption to ensure the security of the vehicle connection. Two-way identity authentication can be performed on the vehicle side and the key side, and a session key can be generated for encryption / decryption of vehicle control commands, thereby achieving identity security authentication of the vehicle and the digital key, preventing illegal users from connecting, improving the security of vehicle data, and ensuring information security at two levels.

[0093] Based on the digital key security authentication method described in the above embodiment, a digital key security authentication method will be described below, which is applied to a digital key device, such as Figure 5 As shown, the method comprises the following steps:

[0094] In step S201 , a channel characteristic value for wireless communication between a vehicle and a digital key device is extracted.

[0095] In step S202, a device fingerprint is generated according to the channel characteristic value, and after the vehicle is verified as a preset legal vehicle based on the device fingerprint, a preset security channel is established between the vehicle and the digital key device.

[0096] The device fingerprint has been described in the above embodiments and will not be described again here.

[0097] It is understandable that the embodiments of the present application need to verify the legitimacy of the vehicle based on the device fingerprint. When the vehicle is a legal vehicle, a preset security channel is established between the vehicle and the digital key device to prevent an erroneous connection when the vehicle is an illegal vehicle, and the security of the information in the vehicle cannot be guaranteed.

[0098] In step S203, a session maintenance message is sent to the vehicle at a preset time interval, wherein the vehicle verifies that the digital key is a preset legal key according to the session maintenance message and maintains the preset security channel in the preset session state, otherwise the preset security channel is disconnected.

[0099] It can be understood that the digital key sends a session maintenance message to the vehicle at a preset interval, and the vehicle verifies the legitimacy of the key based on the session maintenance message. The verification method has been explained in the above embodiment and will not be repeated here.

[0100] According to the digital key security authentication method proposed in the embodiment of the present application, the channel characteristic value can be used as the device fingerprint according to the differences in the wireless communication channel, and the legitimacy of the digital key access can be verified based on the device fingerprint to prevent illegal digital keys from accessing the vehicle and performing illegal operations, etc., and when the digital key authentication is passed, it is necessary to periodically send session maintenance messages to the vehicle for continuous identity verification to prevent the simulation of legal keys to send illegal vehicle control commands after the verification is passed.

[0101] Next, a security authentication device for a digital key according to an embodiment of the present application will be described with reference to the accompanying drawings.

[0102] Figure 6 It is a block diagram of a security authentication device for a digital key according to an embodiment of the present application.

[0103] like Figure 6 As shown, the digital key security authentication device 10 is applied to a vehicle and includes: a first extraction module 101 , a first establishment module 102 and a first verification module 103 .

[0104] Among them, the first extraction module 101 is used to extract the channel characteristic value for wireless communication between the vehicle and the digital key device; the first establishment module 102 is used to generate a device fingerprint based on the channel characteristic value, and after verifying that the digital key is a preset legal key based on the device fingerprint, establish a preset security channel between the vehicle and the digital key device; the first verification module 103 is used to receive the session persistence message sent by the digital key device at a preset time interval, and after verifying that the digital key is a preset legal key based on the session persistence message, keep the preset security channel in a preset session state, otherwise disconnect the preset security channel.

[0105] It should be noted that the aforementioned explanation of the embodiment of the digital key security authentication method is also applicable to the digital key security authentication device of this embodiment, and will not be repeated here.

[0106] According to the security authentication device for a digital key proposed in the embodiment of the present application, a device fingerprint can be generated according to the channel characteristic value of wireless communication between the vehicle and the digital key, a secure channel can be established using the device fingerprint, and then standard authentication can be performed. On the basis of traditional security authentication, an additional layer of secure channel establishment is provided to prevent illegal users from performing vehicle control operations, thereby improving the security and privacy of information during communication; a MAC value can be calculated according to a random number and a timestamp, and the MAC value can be compared with the MAC value of a session retention message to determine whether they are consistent, thereby determining whether the digital key is legal, and establishing a secure channel, thereby preventing illegal users from connecting to the vehicle to perform vehicle control operations; the device fingerprint can be used to decrypt the first identifier sent by the digital key to obtain key information, and the vehicle device can query the white list for key information. If the key information exists, the vehicle identifier is encrypted using the device fingerprint, and the vehicle information is decrypted using the device fingerprint, and the white list is queried. If the key information exists, a secure channel is established, and a secure channel is established through double encryption and decryption to ensure the security of the vehicle connection; two-way identity authentication can be performed on the vehicle side and the key side, and a session key can be generated for encryption / decryption of vehicle control commands, thereby achieving identity security authentication of the vehicle and the digital key, preventing illegal users from connecting, improving the security of vehicle data, and ensuring information security at two levels.

[0107] Figure 7 It is a block diagram of a security authentication device for a digital key according to an embodiment of the present application.

[0108] like Figure 7 As shown, the digital key security authentication device 20 is applied to the digital key and includes: a second extraction module 201 , a second establishment module 202 and a second verification module 203 .

[0109] Among them, the second extraction module 201 extracts the channel characteristic value for wireless communication between the vehicle and the digital key device; the second establishment module 202 generates a device fingerprint according to the channel characteristic value, and after verifying that the vehicle is a preset legal vehicle based on the device fingerprint, establishes a preset security channel between the vehicle and the digital key device; the second verification module 203 sends a session maintenance message to the vehicle at an interval of a preset time, wherein the vehicle verifies that the digital key is a preset legal key according to the session maintenance message, and maintains the preset security channel in a preset session state, otherwise disconnects the preset security channel.

[0110] It should be noted that the aforementioned explanation of the embodiment of the digital key security authentication method is also applicable to the digital key security authentication device of this embodiment, and will not be repeated here.

[0111] According to the digital key security authentication device proposed in the embodiment of the present application, the channel characteristic value can be used as the device fingerprint according to the differences in the wireless communication channel, and the legitimacy of the digital key access can be verified based on the device fingerprint to prevent illegal digital keys from accessing the vehicle and performing illegal operations, etc., and when the digital key authentication is passed, it is necessary to periodically send session maintenance messages to the vehicle for continuous identity verification to prevent the simulation of legal keys to send illegal vehicle control commands after the verification is passed.

[0112] Figure 8 A schematic diagram of the structure of a vehicle provided in an embodiment of the present application. The vehicle may include:

[0113] A memory 801 , a processor 802 , and a computer program stored in the memory 801 and executable on the processor 802 .

[0114] When the processor 802 executes the program, the digital key security authentication method provided in the above embodiment is implemented.

[0115] Furthermore, the vehicle also includes:

[0116] The communication interface 803 is used for communication between the memory 801 and the processor 802 .

[0117] The memory 801 is used to store computer programs that can be executed on the processor 802 .

[0118] The memory 801 may include a high-speed RAM (Random Access Memory) memory, and may also include a non-volatile memory, such as at least one disk memory.

[0119] If the memory 801, the processor 802 and the communication interface 803 are implemented independently, the communication interface 803, the memory 801 and the processor 802 can be connected to each other through a bus and communicate with each other. The bus can be an ISA (Industry Standard Architecture) bus, a PCI (Peripheral Component Interconnect) bus or an EISA (Extended Industry Standard Architecture) bus, etc. The bus can be divided into an address bus, a data bus, a control bus, etc. For ease of representation, Figure 8 Only one thick line is used in the diagram, but this does not mean that there is only one bus or only one type of bus.

[0120] Optionally, in a specific implementation, if the memory 801, the processor 802 and the communication interface 803 are integrated on a chip, the memory 801, the processor 802 and the communication interface 803 can communicate with each other through an internal interface.

[0121] The processor 802 may be a CPU (Central Processing Unit), or an ASIC (Application Specific Integrated Circuit), or one or more integrated circuits configured to implement the embodiments of the present application.

[0122] The embodiment of the present application also provides a digital key device, characterized by comprising: a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the processor executes the program to implement the digital key security authentication method of the above embodiment.

[0123] In the description of this specification, the description with reference to the terms "one embodiment", "some embodiments", "example", "specific example", or "some examples" etc. means that the specific features, structures, materials or characteristics described in conjunction with the embodiment or example are included in at least one embodiment or example of the present application. In this specification, the schematic representations of the above terms are not necessarily directed to the same embodiment or example. Moreover, the specific features, structures, materials or characteristics described may be combined in any one or N embodiments or examples in a suitable manner. In addition, those skilled in the art may combine and combine the different embodiments or examples described in this specification and the features of the different embodiments or examples, without contradiction.

[0124] In addition, the terms "first" and "second" are used for descriptive purposes only and should not be understood as indicating or implying relative importance or implicitly indicating the number of technical features indicated. Therefore, a feature defined as "first" or "second" may explicitly or implicitly include at least one of the features. In the description of this application, "N" means at least two, such as two, three, etc., unless otherwise clearly and specifically defined.

[0125] Any process or method description in a flowchart or otherwise described herein may be understood to represent a module, fragment or portion of code comprising one or more executable instructions for implementing the steps of a custom logical function or process, and the scope of the preferred embodiments of the present application includes alternative implementations in which functions may not be performed in the order shown or discussed, including performing functions in a substantially simultaneous manner or in reverse order depending on the functions involved, which should be understood by technicians in the technical field to which the embodiments of the present application belong.

[0126] It should be understood that the various parts of the present application can be implemented by hardware, software, firmware or a combination thereof. In the above-mentioned embodiment, the N steps or methods can be implemented by software or firmware stored in a memory and executed by a suitable instruction execution system. For example, if implemented by hardware, as in another embodiment, it can be implemented by any one of the following technologies known in the art or their combination: a discrete logic circuit having a logic gate circuit for implementing a logic function for a data signal, a dedicated integrated circuit having a suitable combination of logic gate circuits, a programmable gate array, a field programmable gate array, etc.

[0127] A person skilled in the art may understand that all or part of the steps in the method for implementing the above-mentioned embodiment may be completed by instructing related hardware through a program, and the program may be stored in a computer-readable storage medium, which, when executed, includes one or a combination of the steps of the method embodiment.

[0128] Although the embodiments of the present application have been shown and described above, it can be understood that the above embodiments are exemplary and cannot be understood as limitations on the present application. Ordinary technicians in this field can change, modify, replace and modify the above embodiments within the scope of the present application.

Claims

1. A digital key security authentication method, characterized in that: The method is applied to a vehicle, wherein the method comprises the following steps: Extracting a channel characteristic value for wireless communication between the vehicle and the digital key device; Generate a device fingerprint according to the channel characteristic value, and after verifying that the digital key is a preset legal key based on the device fingerprint, establish a preset security channel between the vehicle and the digital key device; receiving a session maintenance message sent by the digital key device at a preset time interval, and after verifying that the digital key is a preset legal key according to the session maintenance message, maintaining the preset security channel in a preset session state, otherwise disconnecting the preset security channel; the session maintenance message includes a random number, a timestamp, and an identity verification code MAC value of the digital key, and after verifying that the digital key is a preset legal key according to the session maintenance message, maintaining the preset security channel in a preset session state, otherwise disconnecting the preset security channel, further comprising: Checking whether the timestamp meets a preset condition; If the timestamp satisfies the preset condition, a MAC calculation is performed according to the random number and the timestamp to obtain an actual MAC value; If the actual MAC value is consistent with the MAC value of the session holding message, verifying that the digital key is a preset legal key and maintaining the preset security channel in a preset session state; otherwise, verifying that the digital key is a preset illegal key and disconnecting the preset security channel; after verifying that the digital key is a preset legal key based on the device fingerprint, establishing a preset security channel between the vehicle and the digital key device, further includes: Encrypting the first identification of the digital key device using the device fingerprint to obtain key information; Sending the key information to the vehicle, wherein the vehicle decrypts the key information according to the device fingerprint to obtain the first identifier, queries a first preset whitelist according to the first identifier, and if the digital key is obtained by the query, encrypts the vehicle identifier of the vehicle with the device fingerprint to obtain vehicle information; receiving the vehicle information, decrypting the vehicle information using the device fingerprint to obtain the vehicle identification, querying a second preset whitelist according to the vehicle identification, and if the vehicle is obtained through the query, establishing a preset security channel between the vehicle and the digital key device; before receiving a session maintenance message sent by the digital key device at a preset interval, further comprising: Sending a vehicle-side random number and an IV value to the digital key device, and receiving an application identifier of the digital key, a key-side random number, key information, and a key ciphertext encrypted based on the vehicle-side random number and the key-side random number sent by the digital key device; Calculate a digital key according to the application identifier, the key-side random number and the key information, derive a communication key from the digital key, decrypt the key ciphertext using the communication key, and if the decrypted information is consistent with the vehicle-side random number and the key-side random number, encrypt and generate a vehicle-side ciphertext according to the count information of the key counter of the digital key and the vehicle-side random number; Send the vehicle-side ciphertext to the digital key device, wherein the digital key device derives a communication key from a digital key, and uses the communication key to decrypt the vehicle-side ciphertext. If the decrypted information is consistent with the count information of the key counter and the vehicle-side random number, the identity security authentication of the vehicle is completed on the key side, and a key-side session key is calculated based on the communication key, the IV value and the hash value of the vehicle-side random number, and the vehicle-side random number is encrypted using the key-side session key to obtain a session ciphertext; The vehicle-side session key is calculated based on the communication key, the IV value and the hash value of the vehicle-side random number, and the vehicle-side session key is used to decrypt the session ciphertext. If the decrypted information is consistent with the vehicle-side random number, the identity security authentication of the digital key is completed on the vehicle side.

2. The method according to claim 1, characterized in that Before extracting the channel characteristic value of wireless communication between the vehicle and the digital key device, the method further includes: Receive a pairing request from a digital key device; Pairing is performed with the digital key device according to the pairing request.

3. A digital key security authentication device, characterized in that: The device is applied to a vehicle, wherein the device comprises: A first extraction module, used to extract a channel characteristic value for wireless communication between the vehicle and the digital key device; A first establishing module, configured to generate a device fingerprint according to the channel characteristic value, and after verifying that the digital key is a preset legal key based on the device fingerprint, establish a preset security channel between the vehicle and the digital key device; A first verification module is configured to receive a session maintenance message sent by the digital key device at a preset time interval, and after verifying that the digital key is a preset legal key according to the session maintenance message, maintain the preset security channel in a preset session state, otherwise disconnect the preset security channel; the session maintenance message includes a random number, a timestamp, and an identity verification code MAC value of the digital key, and after verifying that the digital key is a preset legal key according to the session maintenance message, maintain the preset security channel in a preset session state, otherwise disconnect the preset security channel, and further includes: Checking whether the timestamp meets a preset condition; If the timestamp satisfies the preset condition, a MAC calculation is performed according to the random number and the timestamp to obtain an actual MAC value; If the actual MAC value is consistent with the MAC value of the session holding message, verifying that the digital key is a preset legal key and maintaining the preset security channel in a preset session state; otherwise, verifying that the digital key is a preset illegal key and disconnecting the preset security channel; after verifying that the digital key is a preset legal key based on the device fingerprint, establishing a preset security channel between the vehicle and the digital key device, further includes: Encrypting the first identification of the digital key device using the device fingerprint to obtain key information; Sending the key information to the vehicle, wherein the vehicle decrypts the key information according to the device fingerprint to obtain the first identifier, queries a first preset whitelist according to the first identifier, and if the digital key is obtained by the query, encrypts the vehicle identifier of the vehicle with the device fingerprint to obtain vehicle information; receiving the vehicle information, decrypting the vehicle information using the device fingerprint to obtain the vehicle identification, querying a second preset whitelist according to the vehicle identification, and if the vehicle is obtained through the query, establishing a preset security channel between the vehicle and the digital key device; before receiving a session maintenance message sent by the digital key device at a preset interval, further comprising: Sending a vehicle-side random number and an IV value to the digital key device, and receiving an application identifier of the digital key, a key-side random number, key information, and a key ciphertext encrypted based on the vehicle-side random number and the key-side random number sent by the digital key device; Calculate a digital key according to the application identifier, the key-side random number and the key information, derive a communication key from the digital key, decrypt the key ciphertext using the communication key, and if the decrypted information is consistent with the vehicle-side random number and the key-side random number, encrypt and generate a vehicle-side ciphertext according to the count information of the key counter of the digital key and the vehicle-side random number; Send the vehicle-side ciphertext to the digital key device, wherein the digital key device derives a communication key from a digital key, and uses the communication key to decrypt the vehicle-side ciphertext. If the decrypted information is consistent with the count information of the key counter and the vehicle-side random number, the identity security authentication of the vehicle is completed on the key side, and a key-side session key is calculated based on the communication key, the IV value and the hash value of the vehicle-side random number, and the vehicle-side random number is encrypted using the key-side session key to obtain a session ciphertext; The vehicle-side session key is calculated based on the communication key, the IV value and the hash value of the vehicle-side random number, and the vehicle-side session key is used to decrypt the session ciphertext. If the decrypted information is consistent with the vehicle-side random number, the identity security authentication of the digital key is completed on the vehicle side.

4. A vehicle, characterized in that: include: A memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the processor executes the program to implement a digital key security authentication method as described in any one of claims 1 to 2.

5. A digital key device, characterized in that: include: A memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the processor executes the program to implement a digital key security authentication method as described in any one of claims 1 to 2.