Authentication method and device, digital key system, terminal equipment and storage medium

By deriving the key from the slave module in the digital key system and completing the authentication directly with the key device, the problem of too long communication link during the key data authentication process is solved, the authentication performance is improved, the overhead is reduced, and the user experience is improved. experience.

CN118544987APending Publication Date: 2024-08-27广东银基信息安全技术有限公司
View PDF 0 Cites 1 Cited by

Patent Information

Application Number
CN202410839842.X
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-06-26
Publication Date
2024-08-27

AI Technical Summary

Technical Problem

In the existing digital key system, the key data authentication process requires multiple data interactions, resulting in a long communication link, affecting the user experience and adding unnecessary overhead.

Method used

In the digital key system on the vehicle end, by deriving a key for the slave module, the slave module and the key device can directly complete the authentication, reducing the communication link in the authentication process, thereby improving authentication performance and reducing overhead. The specific method is that the main module derives the second-level master key for the slave module based on the preset first-level master key of the vehicle end and the derivation factor of the slave module, and the digital key end uses the preset first-level master key of the key end and the derivation factor of the slave module. The derivation factor derives the secondary master key corresponding to the slave module. During authentication, the slave module and the digital key end perform authentication based on the secondary master key respectively, canceling the data transfer between the slave module and the master module.

Benefits of technology

By reducing communication links during the authentication process, authentication performance is improved, unnecessary overhead is reduced, and user experience is improved.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118544987A
    Figure CN118544987A
Patent Text Reader

Abstract

The embodiment of the invention relates to the technical field of vehicle safety, and discloses an authentication method and device, a digital key system, terminal equipment and a storage medium. The method comprises the following steps: a master module derives a vehicle end secondary master key for at least one slave module according to a vehicle end primary master key and a derivation factor corresponding to the at least one slave module; correspondingly, the digital key end derives a key end secondary master key corresponding to each slave module according to a preset key end primary master key; the slave module authenticates the digital key end when receiving an authentication request of the digital key end; and the slave module and the digital key end are respectively authenticated based on respective secondary master keys. The key is derived for the slave module, so that the slave module of the in-vehicle infotainment terminal and the key equipment directly complete authentication, communication links in the authentication process are reduced, the authentication performance is improved, and meanwhile unnecessary expenditure can be reduced.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] Embodiments of the present invention relate to the field of vehicle safety technology, and in particular, to an authentication method and apparatus, a digital key system, a terminal device, and a storage medium. Background Art

[0002] Digital car keys are currently developing rapidly. The digital car key system based on NFC (Near Field Communication) can meet different functional requirements. For example, the user can place the digital key device with NFC function on the card reader device outside the car and swipe the card to unlock the door, and place the digital key device on the card reader device inside the car and swipe the card to start the engine.

[0003] The card swiping operation requires the completion of legal authentication between the device and the vehicle to confirm the legitimacy of the device and access control authority. The authentication method is conventionally based on a cryptographic algorithm to confirm whether the device has a legitimate key, which requires key data authentication interaction between the device and the vehicle.

[0004] The digital key system includes a main module and multiple card reader devices. The vehicle's key data is only stored on the main module. During key data authentication interaction, each card reader device is responsible for communicating with the key device and transmitting the interactive data to the key device and the main module. The actual authentication process is completed by the key device and the main module, and the card reader device is responsible for data transmission.

[0005] The key data authentication process often requires multiple data interactions to complete, such as Figure 1 As shown in the figure, the digital key device sends a key authentication request to the card reader device, and the card reader device transparently transmits the key authentication request to the main module. The main module performs key authentication and returns the key authentication result to the card reader device in a transparent manner after the authentication is completed. The card reader device then returns the authentication result to the digital key device. When the key authentication is successful, the main module sends a control instruction to the corresponding control module. The control module executes the control instruction and returns the execution result to the main module. In the actual commonly used two-way authentication process, the number of data exchanges between the main module and the digital key device is not Figure 1 As shown in. Since all communication data between the main module and the digital key device needs to be transmitted through the card reader device, the long communication link will eventually affect the user's functional experience and will also bring unnecessary overhead. Summary of the invention

[0006] The embodiments of the present invention provide an authentication method and apparatus, a digital key system, a terminal device and a storage medium. By deriving a key from a slave module, the slave module on the vehicle side and the key device can directly complete the authentication, thereby reducing the communication link in the authentication process, thereby improving the authentication performance and reducing unnecessary overhead.

[0007] In a first aspect, an embodiment of the present invention provides an authentication method, which is applied to a digital key system on a vehicle side, wherein the digital key system is used to interact with the digital key side to implement authentication; the digital key system includes a master module and at least one slave module; the master module is communicatively connected to the at least one slave module, and the master module is pre-installed with a vehicle-side primary master key; the method includes:

[0008] When receiving the key activation request from the digital key end, the master module derives the vehicle-end secondary master key for the at least one slave module according to the vehicle-end primary master key and the derivation factor corresponding to the at least one slave module; accordingly, the digital key end derives the key-end secondary master key corresponding to each of the slave modules according to the preset key-end primary master key;

[0009] The master module sends the vehicle-side secondary master key to the corresponding slave module, and the slave module receives and stores the respective vehicle-side secondary master key;

[0010] The slave module performs authentication with the digital key end upon receiving an authentication request from the digital key end; wherein the slave module and the digital key end perform authentication based on their respective secondary master keys.

[0011] As an embodiment, the derivation factor includes a unique identifier of the slave module.

[0012] As an embodiment, the derived factor also includes information of the vehicle terminal or information of the digital key terminal.

[0013] As an embodiment, the vehicle terminal further includes at least one control module, and the at least one slave module is respectively communicatively connected with the corresponding control module;

[0014] The method further comprises: when the authentication is passed, the slave module sends a control instruction to the corresponding control module.

[0015] In a second aspect, an embodiment of the present invention further provides an authentication method, which is applied to a digital key end, wherein the digital key end is used to interact with a digital key system of a vehicle end to achieve authentication; the digital key end is pre-installed with a key end primary master key; the digital key system includes a master module and at least one slave module; the master module is communicatively connected with the at least one slave module, and the master module is pre-installed with a vehicle end primary master key; the method includes:

[0016] The digital key terminal sends a key activation request to the digital key system, so that the master module derives a vehicle-side secondary master key for each slave module according to the vehicle-side primary master key and the derived factors of each slave module, and distributes the derived vehicle-side secondary master key to each slave module for storage;

[0017] The digital key end derives a key end secondary master key corresponding to each slave module according to the key end primary master key and the derived factors corresponding to each slave module, and stores the key end secondary master key;

[0018] When performing authentication, the digital key end and the slave module perform authentication; wherein, the digital key end and the slave module perform authentication based on their respective secondary master keys respectively.

[0019] In a third aspect, an embodiment of the present invention further provides an authentication device, which is configured in a digital key system at a vehicle terminal, and the digital key system is used to interact with the digital key terminal to achieve authentication; the digital key system includes a master module and at least one slave module; the master module is communicatively connected with the at least one slave module, and the master module is pre-installed with a vehicle-side primary master key; the device includes:

[0020] a derivation module, used for the master module to derive the vehicle-side secondary master key for the at least one slave module according to the vehicle-side primary master key and the derivation factor corresponding to the at least one slave module when receiving the key activation request from the digital key end; correspondingly, the digital key end derives the key-side secondary master key corresponding to each of the slave modules according to the preset key-side primary master key;

[0021] A key distribution module, used for the master module to send the vehicle-side secondary master key to the corresponding slave module, and the slave module receives and stores the respective vehicle-side secondary master key;

[0022] An authentication module is used for the slave module to authenticate with the digital key end when receiving an authentication request from the digital key end, and to send a control instruction to the corresponding control module when the authentication is passed; wherein the slave module and the digital key end are authenticated based on their respective secondary master keys.

[0023] In a fourth aspect, an embodiment of the present invention provides an authentication device, which is configured at a digital key end, and the digital key end is used to interact with a digital key system at a vehicle end to achieve authentication; the digital key end is pre-installed with a key end primary master key; the digital key system includes a master module and at least one slave module; the master module is communicatively connected with the at least one slave module, and the master module is pre-installed with a vehicle end primary master key; the device includes:

[0024] An activation request module, used for the digital key end to send a key activation request to the digital key system, so that the master module derives a vehicle-side secondary master key for each slave module according to the vehicle-side primary master key and the derivation factor of each slave module, and distributes the derived vehicle-side secondary master key to each slave module for storage;

[0025] A derivation module, used for the digital key end to derive a key-end secondary master key corresponding to each of the slave modules according to the key-end primary master key and the derivation factors corresponding to each of the slave modules, and store the key-end secondary master key;

[0026] An authentication module is used to authenticate the digital key end and the slave module when authentication is performed, so that the slave module sends a control instruction to the corresponding control module when the authentication is passed; wherein the digital key end and the slave module are authenticated based on their respective secondary master keys.

[0027] In a fifth aspect, an embodiment of the present invention provides a digital key system for interacting with a digital key terminal to achieve authentication, the digital key system comprising a master module and at least one slave module; the master module is communicatively connected with the at least one slave module, and the master module is pre-installed with a vehicle-side primary master key;

[0028] When receiving the key activation request from the digital key end, the master module derives a vehicle-end secondary master key for the at least one slave module according to the vehicle-end primary master key and the derivation factor corresponding to the at least one slave module;

[0029] The master module sends the vehicle-side secondary master key to the corresponding slave module, and the slave module receives and stores the respective vehicle-side secondary master key;

[0030] The slave module performs authentication with the digital key end upon receiving an authentication request from the digital key end; wherein, the slave module and the digital key end perform authentication based on their respective secondary master keys, and the digital key end derives a key end secondary master key corresponding to each slave module based on a preset key end primary master key.

[0031] In a sixth aspect, an embodiment of the present invention provides a terminal device, comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein when the processor executes the program, the authentication method as described in the first aspect or the second aspect is implemented.

[0032] In a seventh aspect, an embodiment of the present invention provides a computer-readable storage medium having a computer program stored thereon, which, when executed by a processor, implements the authentication method as described in the first aspect or the second aspect.

[0033] Compared with the prior art, the technical solution provided by the embodiment of the present invention has at least the following positive effects:

[0034] In the embodiment of the present invention, the main module of the digital key system at the vehicle end derives the vehicle-end secondary master key for each slave module according to the preset vehicle-end primary master key and the derived factor of the slave module. At the same time, the digital key end derives the key-end secondary master key corresponding to each slave module according to the preset key-end primary master key and the derived factor of each slave module. When performing authentication, the digital key end and the slave module perform authentication based on their respective secondary master keys. By canceling the data transmission between the slave module and the main module during the authentication process, the communication link is reduced, which is conducive to improving the authentication performance and reducing the link overhead. BRIEF DESCRIPTION OF THE DRAWINGS

[0035] In order to more clearly illustrate the technical solutions in the embodiments of the present invention, the following briefly introduces the drawings required for use in the description of the embodiments. Obviously, the drawings described below are some embodiments of the present invention. For ordinary technicians in this field, other drawings can be obtained based on these drawings without creative work.

[0036] Figure 1 A flowchart of a prior art authentication method is provided;

[0037] Figure 2 A schematic diagram of the structure of a digital key system provided in Embodiment 1 of the present invention;

[0038] Figure 3 A schematic diagram of a flow chart of an authentication method provided in Embodiment 1 of the present invention;

[0039] Figure 4 A schematic diagram of the authentication process of the authentication method provided in Embodiment 1 of the present invention;

[0040] Figure 5 A schematic diagram of the flow of the authentication method provided in the second embodiment of the present invention;

[0041] Figure 6 A schematic diagram of the structure of an authentication device provided in Embodiment 3 of the present invention;

[0042] Figure 7 A schematic diagram of the structure of an authentication device provided in Embodiment 4 of the present invention;

[0043] Figure 8 A schematic diagram of the structure of a terminal device provided in Embodiment 6 of the present invention. DETAILED DESCRIPTION

[0044] The present invention will be further described in detail below in conjunction with the accompanying drawings and embodiments. It is to be understood that the specific embodiments described herein are only used to explain the present invention, rather than to limit the present invention. It should also be noted that, for ease of description, only parts related to the present invention, rather than all structures, are shown in the accompanying drawings.

[0045] The following describes the authentication method and apparatus, digital key system, terminal device and storage medium of the embodiments of the present application with reference to the accompanying drawings. In view of the problem that the master key of the digital key system on the vehicle side mentioned in the background technology only exists in the main module of the digital key system, and the authentication interaction of the key data between the main module and the digital key side needs to be transmitted through the card reader device, resulting in a long communication link and affecting the authentication performance, the present application provides an authentication method, in which each card reader device is configured as a slave module, which has the ability to complete key data authentication. At the same time, the slave module and each control module on the vehicle side are in the same vehicle body network, and can directly send control instructions to the corresponding control module after authentication. During the key activation stage, the main module derives a vehicle-side secondary master key for each slave module based on the preset vehicle-side primary master key (i.e., master key) and the derived factors of each slave module. The digital key end derives a key-side secondary master key corresponding to the vehicle-side secondary master key of multiple slave modules based on the preset key-side primary master key and the derived factors of each slave module. During authentication, the slave module and the digital key end perform authentication based on their respective secondary master keys, which eliminates the data transmission between the slave module and the main module during the authentication process, shortens the communication link of the authentication process, and is beneficial to improving the authentication performance.

[0046] Figure 2A schematic diagram of the structure of the digital key system of the vehicle side provided in the first embodiment of the present invention. The digital key system is used to interact with the digital key side to achieve authentication. The digital key system includes a master module 201 and at least one slave module. The vehicle side also includes at least one control module, the master module 201 is connected to the at least one slave module in communication, and at least one slave module is connected to the corresponding control module in communication. As an example but not a limitation, the slave module includes a first slave module 202, a second slave module 203 and a third slave module 204, and the control module includes: a left door controller 205, a right door controller 206 and an engine controller 207. The first slave module 202, the second slave module 203 and the third slave module 204 are all connected to the master module 201 through the vehicle body network. At the same time, the left door controller 205 and the first slave module 202, the right door controller 206 and the second slave module 203, and the engine controller 207 and the third slave module 204 are all connected through the vehicle body network, and the vehicle body network is, for example, a CAN communication network. The slave modules are configured to be able to communicate with the digital key end and interact with the digital key end to complete the authentication. It can be understood that this embodiment does not impose specific restrictions on the type and quantity of slave modules and control modules, and can be configured according to actual needs. The main module 101 is pre-installed with a vehicle-side primary master key. The digital key end can be a portable smart terminal with near-field communication capabilities, such as a smart phone, a smart watch, etc., or an NFC card. Correspondingly, the slave module can be an NFC reader device and have key data authentication capabilities.

[0047] Figure 3 This is a flow chart of an authentication method provided in Embodiment 1 of the present invention, which is used for the vehicle terminal to authenticate the digital key. This method can be applied to Figure 2 The digital key system of the vehicle terminal is shown. The method can be executed by an authentication device provided by an embodiment of the present invention, which can be implemented in software and configured in the digital key system of the vehicle terminal. The embodiment of the present invention specifically includes the following steps:

[0048] Step 301: When receiving a key activation request from a digital key, the master module derives a vehicle-side secondary master key for at least one slave module according to the vehicle-side primary master key and a derivation factor corresponding to at least one slave module.

[0049] The main module is pre-installed with a vehicle-side primary master key, which can be filled into the main module through a filling production line or remotely and securely.

[0050] The vehicle-side secondary master key can be generated using KDF (Key Derivation Function). Exemplarily, the key import function, i.e., the derivation algorithm, can use the HMAC (Hash-based Message Authentication Code) algorithm, such as the SHA-256 function to derive the vehicle-side secondary master key for each slave module. The input parameters of the derivation algorithm include the vehicle-side primary master key and the derivation factor. The derivation factor may include the unique identifier of the slave module, thereby deriving a different vehicle-side secondary master key for each slave module. At the same time, the primary master key cannot be inferred from the derived secondary master key. The key derivation method of slave module 1 and slave module 2 can be expressed as:

[0051] Key data of slave module 1 VehicleSubKey1 = key derivation algorithm (master module key data VehicleKey, derivation factor of slave module 1);

[0052] The key data VehicleSubKey2 of slave module 2 = key derivation algorithm (main module key data VehicleKey, derivation factor of slave module 2).

[0053] Among them, key data VehicleSubKey1 and key data VehicleSubKey2 are the vehicle-side secondary master keys of slave module 1 and slave module 2 respectively, and the master module key data VehicleKey is the vehicle-side primary master key preset by the master module. Similarly, the vehicle-side secondary master keys corresponding to all slave modules can be obtained.

[0054] In other examples, the derived factors may further include a mask to improve key security. Specifically, the mask may include information on the vehicle side or information on the digital key side. The information on the vehicle side may include a vehicle frame number, an engine identification number, etc., and the information on the digital key side may include a mobile phone number, a user name, etc.

[0055] The secondary master key is derived for each slave module through the key derivation algorithm. Even if the secondary master key of the slave module is leaked, the primary master key cannot be deduced from the derived secondary master key, ensuring the security of the primary master key on the vehicle side. At the same time, the unique identifier of each slave module is used as the derivation factor, so that the secondary master key of each slave module is different. Therefore, the leakage of the secondary master key of a slave module will not affect the security of the secondary master keys of other slave modules, and because different slave modules have different access control permissions, it will not affect the security of other aspects of the vehicle computer.

[0056] It is understandable that before receiving the key activation request from the digital key end, the digital key system can also perform preliminary filtering on the digital key end to filter out obviously illegal devices. After preliminary filtering, legal devices can initiate key activation requests. The preliminary filtering process may include receiving a vehicle control operation request from the device from the module, obtaining the identification information of the device from the module, and judging whether the device is legal based on the identification information. The identification information is used to characterize the type of device. For example, when the identification information indicates that the device is a bus IC card, the device is judged to be an illegal device. When the identification information indicates that the device is an NFC tag of the target type, it is judged to be a legal device. It is understandable that when the main module receives the key activation request, it can derive the vehicle-side secondary master key for each slave module in turn, without the user having to perform card swiping operations separately.

[0057] Step 302: The master module sends the vehicle-side secondary master key to the corresponding slave module, and the slave module receives and stores its own vehicle-side secondary master key.

[0058] The main module can derive secondary master keys for different slave modules in turn, and transmit the derived secondary master keys to the corresponding slave modules. After receiving the secondary master keys, the slave modules will store the secondary master keys securely locally. After that, the slave modules can authenticate with the digital key end based on the local secondary master keys.

[0059] The digital key derives the key-side secondary master key corresponding to each slave module based on the preset key-side primary master key. The key-side secondary master key and the vehicle-side secondary master key of the slave module are symmetric keys. During the key activation phase, the digital key obtains the derived factors of each slave module, and derives the key-side secondary master key corresponding to each slave module based on the preset key-side master key and the derived factors of each slave module. It should be noted that the derivation method of the key-side secondary master key is the same as the derivation method of the vehicle-side secondary master key of the slave module, which will not be repeated here.

[0060] Step 303: The slave module performs authentication with the digital key end upon receiving the authentication request from the digital key end, wherein the slave module and the digital key end perform authentication based on their respective secondary master keys.

[0061] like Figure 4As shown in the authentication process diagram, the digital key end sends a key authentication request to the slave module, and the slave module executes the key authentication process. When the key authentication is successful, the slave module can send a control instruction to the control module, and the control module executes the control instruction and returns the execution result to the slave module. The slave module returns the key authentication result to the digital key end. Specifically, when the user performs a card swiping operation, the slave module preliminarily filters the digital key end. When it is preliminarily determined that the digital key end is a legal device, the digital key end sends a key authentication request to the slave module, and the slave module and the digital key end can perform two-way authentication based on their respective secondary master keys. Two-way authentication means that the slave module verifies whether the digital key end holds a legal and corresponding key-end secondary master key of the slave module, and at the same time, the digital key end verifies whether the slave module holds a legal vehicle-end secondary master key. During the two-way authentication process, the AES encryption algorithm and the secondary master key can be used for encryption and decryption, thereby realizing key data authentication. The two-way authentication can adopt the authentication process known to those skilled in the art, which will not be repeated here. After the authentication is passed, the slave module sends a control instruction to the corresponding control module to complete the door unlocking or engine starting operations.

[0062] Compared with the prior art, in the embodiment of the present invention, during the key activation stage, the main module derives the secondary master key for each slave module according to the preset primary master key and the derived factor of the slave module, and the digital key end also derives the key-end secondary master key corresponding to each slave module according to the preset primary master key and the derived factor of the slave module; during the authentication stage, the digital key end and the slave module perform authentication based on their respective secondary master keys, thereby canceling the key data transmission link between the slave module and the main module, which not only reduces unnecessary link overhead but also helps to improve authentication performance.

[0063] Figure 5 This is a flow chart of the authentication method provided in the second embodiment of the present invention. The method can be applied to the digital key end, and the digital key end is used to interact with the digital key system on the vehicle end to achieve authentication. The method can be executed by an authentication device provided in the embodiment of the present invention, and the device can be implemented in software and configured in the digital key end application. The digital key end is pre-installed with a key-end primary master key; the digital key system includes a main module and at least one slave module; the vehicle end also includes at least one control module, the main module is communicatively connected to at least one slave module, and at least one slave module is communicatively connected to the corresponding control module, and the main module is pre-installed with a vehicle-end primary master key. The embodiment of the present invention specifically includes the following steps:

[0064] Step 501: The digital key terminal sends a key activation request to the digital key system, so that the main module derives the vehicle-side secondary master key for each slave module based on the vehicle-side primary master key and the derived factors of each slave module, and distributes the derived vehicle-side secondary master key to each slave module for storage.

[0065] Among them, the process of the main module deriving the vehicle-side secondary master key for each slave module and distributing it to each slave module is the same as the corresponding process in Example 1, and will not be repeated here.

[0066] Step 502: The digital key end derives a key end secondary master key corresponding to each slave module according to the key end primary master key and the derived factors corresponding to each slave module, and stores the key end secondary master key.

[0067] In the key activation stage, when the user swipes the card, the digital key end can obtain the derived factor of the slave module. The digital key end uses the derivation algorithm based on the preset key end master key and the derived factor of the slave module to obtain the key end secondary master key corresponding to the slave module. The key end secondary master key and the vehicle end primary master key of the slave module are symmetric keys. The derivation algorithm can use the HMAC algorithm, which is the same as the derivation method of the previous embodiment and will not be repeated here.

[0068] Step 503: When authentication is performed, the digital key end and the slave module perform authentication. The digital key end and the slave module perform authentication based on their respective secondary master keys. In step 503, the digital key end and the slave module perform authentication based on their respective secondary master keys. Specifically, a two-way authentication process can be performed, which will not be repeated here. When the authentication is passed, the slave module sends a control instruction to the corresponding control module to realize vehicle unlocking or engine pneumatic operation.

[0069] Compared with the prior art, in the embodiment of the present invention, during the key activation stage, the main module derives the secondary master key for each slave module according to the preset primary master key and the derived factor of the slave module, and the digital key end also derives the key-end secondary master key corresponding to each slave module according to the preset primary master key and the derived factor of the slave module; during the authentication stage, the digital key end and the slave module perform authentication based on their respective secondary master keys, thereby canceling the key data transmission link between the slave module and the main module, which not only reduces unnecessary link overhead but also helps to improve authentication performance.

[0070] Embodiment 3 of the present invention provides an authentication device, which is configured in a digital key system at the vehicle end, and the digital key system is used to interact with the digital key end to achieve authentication; the digital key system includes a master module and at least one slave module; the vehicle end also includes at least one control module, the master module is connected to the at least one slave module in communication, and the at least one slave module is connected to the corresponding control module in communication, and the master module is pre-installed with a vehicle-end primary master key. Figure 6 As shown, the device 600 includes: a derivation module 602 , a key distribution module 604 and an authentication module 606 .

[0071] The device comprises:

[0072] The derivation module 602 is used for deriving the vehicle-side secondary master key for at least one slave module according to the vehicle-side primary master key and the derivation factor corresponding to at least one slave module when the main module receives a key activation request from the digital key end; accordingly, the digital key end derives the key-side secondary master key corresponding to each slave module according to the preset key-side primary master key.

[0073] The key distribution module 604 is used for the master module to send the vehicle-side secondary master key to the corresponding slave module, and the slave module receives and stores the respective vehicle-side secondary master key.

[0074] The authentication module 606 is used for the slave module to authenticate with the digital key end when receiving the authentication request from the digital key end. The slave module and the digital key end perform authentication based on their respective secondary master keys.

[0075] Optionally, the derivation factor comprises a unique identifier of the slave module.

[0076] Furthermore, the derived factors also include information from the vehicle computer or the digital key.

[0077] Optionally, when the authentication is passed, a control instruction is sent from the module to the corresponding control module.

[0078] Compared with the prior art, the authentication device of the embodiment of the present invention is as follows: during the key activation stage, the main module derives the secondary master key for each slave module according to the preset primary master key and the derived factor of the slave module, and the digital key end also derives the key-end secondary master key corresponding to each slave module according to the preset primary master key and the derived factor of the slave module; during the authentication stage, the digital key end and the slave module perform authentication based on their respective secondary master keys, thereby eliminating the key data transmission link between the slave module and the main module, which not only reduces unnecessary link overhead but also helps to improve authentication performance.

[0079] Embodiment 4 of the present invention provides an authentication device, which is configured at a digital key end, and the digital key end is used to interact with a digital key system at a vehicle end to achieve authentication. The digital key end is pre-installed with a key end primary master key, and the digital key system includes a master module and at least one slave module. The vehicle end also includes at least one control module. The master module is communicatively connected to at least one slave module, and at least one slave module is communicatively connected to a corresponding control module, and the master module is pre-installed with a vehicle end primary master key. Figure 7 As shown, the authentication device 700 includes: an activation request module 702 , a derivation module 704 and an authentication module 706 .

[0080] The activation request module 702 is used for the digital key end to send a key activation request to the digital key system, so that the main module derives the vehicle-side secondary master key for each slave module based on the vehicle-side primary master key and the derived factors of each slave module, and distributes the derived vehicle-side secondary master key to each slave module for storage.

[0081] The derivation module 704 is used for the digital key end to derive the key end secondary master key corresponding to each slave module according to the key end primary master key and the derivation factors corresponding to each slave module, and store the key end secondary master key.

[0082] The authentication module 706 is used for the digital key end and the slave module to authenticate each other based on their own secondary master keys.

[0083] Compared with the prior art, the authentication device of the embodiment of the present invention is as follows: during the key activation stage, the main module derives the secondary master key for each slave module according to the preset primary master key and the derived factor of the slave module, and the digital key end also derives the key-end secondary master key corresponding to each slave module according to the preset primary master key and the derived factor of the slave module; during the authentication stage, the digital key end and the slave module perform authentication based on their respective secondary master keys, thereby eliminating the key data transmission link between the slave module and the main module, which not only reduces unnecessary link overhead but also helps to improve authentication performance.

[0084] Embodiment 5 of the present invention provides a digital key system, the structure of which is as follows: Figure 2 As shown. The system is used to interact with the digital key end to achieve authentication to control the control module of the vehicle end. The digital key system includes a master module and at least one slave module, and the master module is communicatively connected to the at least one slave module. The at least one slave module is communicatively connected to the corresponding control module. The master module is pre-installed with a vehicle-end primary master key.

[0085] When receiving a key activation request from the digital key, the master module derives a vehicle-side secondary master key for at least one slave module according to the vehicle-side primary master key and the derivation factor corresponding to at least one slave module. The master module sends the vehicle-side secondary master key to the corresponding slave module, and the slave module receives and stores the respective vehicle-side secondary master key.

[0086] The slave module authenticates with the digital key end upon receiving the authentication request from the digital key end. The slave module and the digital key end authenticate based on their respective secondary master keys, and the digital key end derives the key end secondary master key corresponding to each slave module based on the preset key end primary master key.

[0087] Compared with the prior art, the digital key system of the embodiment of the present invention is as follows: during the key activation stage, the main module derives the secondary master key for each slave module according to the preset primary master key and the derived factor of the slave module, and the digital key end also derives the key-end secondary master key corresponding to each slave module according to the preset primary master key and the derived factor of the slave module; during the authentication stage, the digital key end and the slave module perform authentication based on their respective secondary master keys, thereby eliminating the key data transmission link between the slave module and the main module, which is not only beneficial to improving the authentication performance, but also can reduce unnecessary link overhead.

[0088] Figure 8 The terminal device 80 includes a memory 81, a processor 82, and a computer program stored in the memory 81 and executable on the processor 82. When the processor 82 executes the program, the technical solution described in the first or second embodiment is implemented.

[0089] Embodiment 7 of the present invention provides a computer-readable storage medium having a computer program stored thereon. When the computer program is executed by a computer processor, the computer program is used to execute the technical solution of any method embodiment.

[0090] Through the above description of the implementation methods, the technicians in the relevant field can clearly understand that the present invention can be implemented by means of software and necessary general hardware, and of course can also be implemented by hardware, but in many cases the former is a better implementation method. Based on such an understanding, the technical solution of the present invention, in essence or the part that contributes to the prior art, can be embodied in the form of a software product, and the computer software product can be stored in a computer-readable storage medium, such as a computer floppy disk, a read-only memory (ROM), a random access memory (RAM), a flash memory (FLASH), a hard disk or an optical disk, etc., including a number of instructions for a computer device (which can be a personal computer, a server, or a grid device, etc.) to execute the methods described in each embodiment of the present invention.

[0091] It is worth noting that in the embodiment of the above-mentioned device, the various units and modules included are only divided according to functional logic, but are not limited to the above-mentioned division, as long as the corresponding functions can be achieved; in addition, the specific names of the functional units are only for the convenience of distinguishing each other, and are not used to limit the scope of protection of the present invention.

[0092] Note that the above are only preferred embodiments of the present invention and the technical principles used. Those skilled in the art will understand that the present invention is not limited to the specific embodiments described herein, and that various obvious changes, readjustments and substitutions can be made by those skilled in the art without departing from the scope of protection of the present invention. Therefore, although the present invention has been described in more detail through the above embodiments, the present invention is not limited to the above embodiments, and may include more other equivalent embodiments without departing from the concept of the present invention, and the scope of the present invention is determined by the scope of the appended claims.

Claims

1. An authentication method, characterized in that: A digital key system applied to a vehicle terminal, the digital key system being used to interact with the digital key terminal to achieve authentication; the digital key system comprising a master module and at least one slave module, the master module being communicatively connected to the at least one slave module, the master module being pre-installed with a vehicle terminal primary master key; the method comprising: When receiving the key activation request from the digital key end, the master module derives the vehicle-end secondary master key for the at least one slave module according to the vehicle-end primary master key and the derivation factor corresponding to the at least one slave module; accordingly, the digital key end derives the key-end secondary master key corresponding to each of the slave modules according to the preset key-end primary master key; The master module sends the vehicle-side secondary master key to the corresponding slave module, and the slave module receives and stores the respective vehicle-side secondary master key; The slave module performs authentication with the digital key end upon receiving an authentication request from the digital key end; wherein the slave module and the digital key end perform authentication based on their respective secondary master keys.

2. The authentication method according to claim 1, characterized in that: The derivation factor includes a unique identifier of the slave module.

3. The authentication method according to claim 2, characterized in that: The derived factors also include information from the vehicle terminal or information from the digital key terminal.

4. The authentication method according to claim 1, characterized in that: The vehicle terminal further comprises at least one control module, and the at least one slave module is respectively connected to the corresponding control module for communication; The method further comprises: when the authentication is passed, the slave module sends a control instruction to the corresponding control module.

5. An authentication method, characterized in that: Applied to a digital key end, the digital key end is used to interact with a digital key system at a vehicle end to achieve authentication; the digital key end is pre-installed with a key end primary master key; the digital key system includes a master module and at least one slave module; The master module is in communication connection with the at least one slave module, and the master module is pre-installed with a vehicle-side primary master key; the method comprises: The digital key terminal sends a key activation request to the digital key system, so that the master module derives a vehicle-side secondary master key for each slave module according to the vehicle-side primary master key and the derived factors of each slave module, and distributes the derived vehicle-side secondary master key to each slave module for storage; The digital key end derives a key end secondary master key corresponding to each slave module according to the key end primary master key and the derived factors corresponding to each slave module, and stores the key end secondary master key; When performing authentication, the digital key end and the slave module perform authentication; wherein, the digital key end and the slave module perform authentication based on their respective secondary master keys.

6. An authentication device, characterized in that: A digital key system configured at the vehicle terminal, the digital key system is used to interact with the digital key terminal to achieve authentication; the digital key system includes a master module and at least one slave module; The master module is in communication connection with the at least one slave module, and the master module is pre-installed with a vehicle-side primary master key; the device comprises: a derivation module, used for the master module to derive the vehicle-side secondary master key for the at least one slave module according to the vehicle-side primary master key and the derivation factor corresponding to the at least one slave module when receiving the key activation request from the digital key end; correspondingly, the digital key end derives the key-side secondary master key corresponding to each of the slave modules according to the preset key-side primary master key; A key distribution module, used for the master module to send the vehicle-side secondary master key to the corresponding slave module, and the slave module receives and stores the respective vehicle-side secondary master key; An authentication module is used for the slave module to authenticate with the digital key end when receiving an authentication request from the digital key end; wherein the slave module and the digital key end perform authentication based on their respective secondary master keys.

7. An authentication device, characterized in that: Configured at the digital key end, the digital key end is used to interact with the digital key system at the vehicle end to achieve authentication; the digital key end is pre-installed with a key end primary master key; the digital key system includes a master module and at least one slave module; The master module is in communication connection with the at least one slave module, and the master module is pre-installed with a vehicle-side primary master key; the device comprises: An activation request module, used for the digital key end to send a key activation request to the digital key system, so that the master module derives a vehicle-side secondary master key for each slave module according to the vehicle-side primary master key and the derivation factor of each slave module, and distributes the derived vehicle-side secondary master key to each slave module for storage; A derivation module, used for the digital key end to derive a key-end secondary master key corresponding to each of the slave modules according to the key-end primary master key and the derivation factors corresponding to each of the slave modules, and store the key-end secondary master key; An authentication module is used for authenticating the digital key end and the slave module when performing authentication; wherein the digital key end and the slave module are authenticated based on their respective secondary master keys.

8. A digital key system, characterized in that: Used to interact with a digital key end to achieve authentication, the digital key system includes a master module and at least one slave module; the master module is communicatively connected with the at least one slave module, and the master module is pre-installed with a vehicle-end primary master key; When receiving the key activation request from the digital key end, the master module derives a vehicle-end secondary master key for the at least one slave module according to the vehicle-end primary master key and the derivation factor corresponding to the at least one slave module; The master module sends the vehicle-side secondary master key to the corresponding slave module, and the slave module receives and stores the respective vehicle-side secondary master key; The slave module performs authentication with the digital key end upon receiving an authentication request from the digital key end; wherein, the slave module and the digital key end perform authentication based on their respective secondary master keys, and the digital key end derives a key end secondary master key corresponding to each slave module based on a preset key end primary master key.

9. A terminal device, characterized in that: The invention comprises a memory, a processor and a computer program stored in the memory and executable on the processor, wherein the processor implements the authentication method according to claim 5 when executing the program.

10. A computer-readable storage medium having a computer program stored thereon, characterized in that: When the program is executed by a processor, the authentication method as claimed in any one of claims 1 to 5 is implemented.

Citation Information

Cited By

  • Authentication method and device, digital key system, terminal equipment and storage medium

    CN118828504A