Digital key sharing method, system, and terminal
By introducing the third device role and anti-theft token mechanism, multi-level sharing of digital keys is realized, solving the problem of Friend devices being unable to share digital keys, improving user experience and security, and enriching usage scenarios.
Patent Information
- Application Number
- PCT/CN2024/089371
- Authority / Receiving Office
- WO · WO
- Patent Type
- Applications
- Current Assignee / Owner
- Priority Date
- 2023-04-25
- Filing Date
- 2024-04-23
- Publication Date
- 2024-10-31
AI Technical Summary
In the existing digital key standard, Friend devices cannot share digital keys with other devices, which limits the usage scenarios and user experience of digital keys.
By introducing the third device role, multi-level sharing of digital keys is achieved, allowing the second device to share the digital key obtained from the first device to the third device, and using mechanisms such as anti-theft tokens and slot identification to improve the security and safety of sharing. Availability.
It enriches the scenarios of digital key sharing, solves the problem that Friend devices can no longer share digital keys, improves user experience, and ensures the security and reasonable use of digital keys by adding trust mechanisms and permission configurations.
Smart Images

Figure CN2024089371_31102024_PF_FP_ABST
Abstract
Description
A method, system and terminal for sharing digital keys
[0001] CROSS-REFERENCE TO RELATED APPLICATIONS
[0002] This application claims priority to the Chinese patent application filed with the State Intellectual Property Office of the People's Republic of China on April 25, 2023, with application number 202310457929.6 and invention name "A method, system and terminal for sharing digital keys", the entire contents of which are incorporated by reference into this application. Technical Field
[0003] The present disclosure relates to the field of vehicle networking technology, and in particular to a method, system, and terminal for sharing a digital key. Background Art
[0004] In the technological development of smart vehicles, digital keys have become a major trend in the future. Digital keys are usually integrated into mobile devices such as smartphones. Mobile devices establish connections with vehicles through communication technologies such as NFC (Near Field Communication), BLE (Bluetooth Low Energy), and UWB (Ultra Wide Band), thereby controlling the vehicle to perform operations such as unlocking and locking doors and starting the vehicle. Mobile devices can also share the unlocking and driving permissions of digital keys with relatives and friends.
[0005] Existing digital keys include two categories: one is the digital key of the Owner Device, and the other is the digital key of the Friend Device. The Owner Device can share its own digital key with the Friend Device, but the Friend Device cannot share its own digital key with other devices. For example, when a friend needs to repair or wash the car, the digital key needs to be shared with the service personnel, and the Friend Device cannot share the digital key. As a result, the digital key of the Friend Device needs to be left at the repair or car wash location and cannot be carried with the person, affecting the user experience.
[0006] Summary of the Invention
[0007] The present disclosure provides a method, system, and terminal for sharing digital keys, which solve the problem of a single sharing object in key sharing scenarios by adding device roles other than friend devices and setting based on digital key standards.
[0008] In a first aspect, an embodiment of the present disclosure provides a method for sharing a digital key, the method comprising:
[0009] The second device sends a key creation request to the third device, for instructing the third device to generate information to be authenticated, wherein the second device has a digital key, and the digital key of the second device is obtained by sharing the digital key with the first device;
[0010] The second device receives the key signature request sent by the third device, authenticates the information to be authenticated in the key signature request, and generates key authentication information;
[0011] The second device sends a key import request to the third device, for instructing the third device to save the key authentication information in the key import request, wherein the key authentication information is used to determine the digital key of the third device.
[0012] In a second aspect, an embodiment of the present disclosure provides a method for sharing a digital key, which is applied to a third device. The method includes:
[0013] The third device receives the key creation request sent by the second device and generates information to be authenticated; wherein the second device has a digital key, and the digital key of the second device is obtained by sharing the digital key with the first device;
[0014] The third device sends a key signature request to the second device, where the key signature request includes the information to be authenticated, and is used to instruct the second device to authenticate the information to be authenticated in the key signature request and generate key authentication information; where the key authentication information is used to determine the digital key of the third device;
[0015] The third device receives the key import request sent by the second device, and saves the key authentication information in the key import request.
[0016] In a third aspect, an embodiment of the present disclosure provides a method for sharing a digital key, the method comprising:
[0017] The second device sends a key creation request to the third device; wherein the second device has a digital key, and the digital key of the second device is obtained by sharing the digital key with the first device;
[0018] The third device generates information to be authenticated according to the key creation request, and sends a key signature request to the second device, where the key signature request includes the information to be authenticated;
[0019] The second device authenticates the information to be authenticated in the key signature request, generates key authentication information, and sends a key import request to the third device, the key import request including the key authentication information; wherein the key authentication information is used to determine the digital key of the third device;
[0020] The third device stores the key authentication information in the key import request.
[0021] In a fourth aspect, an embodiment of the present disclosure further provides a terminal, comprising a processor and a memory, wherein the memory is configured to store a program executable by the processor, and the processor is configured to read the program in the memory and perform the following steps:
[0022] The terminal sends a key creation request to the third device, for instructing the third device to generate information to be authenticated, wherein the terminal has a digital key, and the digital key of the terminal is obtained by sharing the digital key with the first device;
[0023] The terminal receives the key signature request sent by the third device, authenticates the information to be authenticated in the key signature request, and generates key authentication information;
[0024] The terminal sends a key import request to the third device, for instructing the third device to save the key authentication information in the key import request, wherein the key authentication information is used to determine the digital key of the third device.
[0025] In a fifth aspect, an embodiment of the present disclosure further provides a terminal, comprising a processor and a memory, wherein the memory is configured to store a program executable by the processor, and the processor is configured to read the program in the memory and perform the following steps:
[0026] The terminal receives a key creation request sent by a second device and generates information to be authenticated; wherein the second device has a digital key, and the digital key of the second device is obtained by sharing the digital key with the first device;
[0027] The terminal sends a key signature request to the second device, the key signature request including the information to be authenticated, for instructing the second device to authenticate the information to be authenticated in the key signature request and generate key authentication information; wherein the key authentication information is used to determine the digital key of the terminal;
[0028] The terminal receives the key import request sent by the second device, and saves the key authentication information in the key import request.
[0029] In a sixth aspect, an embodiment of the present disclosure provides a digital key sharing system, the system including a second device and a third device, wherein:
[0030] The second device sends a key creation request to the third device; wherein the second device has a digital key, and the digital key of the second device is obtained by sharing the digital key with the first device;
[0031] The third device generates information to be authenticated according to the key creation request, and sends a key signature request to the second device, where the key signature request includes the information to be authenticated;
[0032] The second device authenticates the information to be authenticated in the key signature request, generates key authentication information, and sends a key import request to the third device, the key import request including the key authentication information; wherein the key authentication information is used to determine the digital key of the third device;
[0033] The third device stores the key authentication information in the key import request.
[0034] In a seventh aspect, an embodiment of the present disclosure further provides a computer storage medium on which a computer program is stored, which, when executed by a processor, is used to implement the steps of the method described in the first aspect, the second aspect, or the third aspect above.
[0035] These and other aspects of the present disclosure will become more readily apparent from the following description of the embodiments. BRIEF DESCRIPTION OF THE DRAWINGS
[0036] In order to more clearly illustrate the technical solutions in the embodiments of the present disclosure, the following briefly introduces the drawings required for use in the description of the embodiments. Obviously, the drawings described below are only some embodiments of the present disclosure. For ordinary technicians in this field, other drawings can be obtained based on these drawings without any creative work.
[0037] FIG1 is a flowchart of a method for sharing a digital key according to an embodiment of the present disclosure;
[0038] FIG2 is a schematic diagram of a method for distributing anti-theft tokens according to an embodiment of the present disclosure;
[0039] FIG3 is a schematic diagram of a method for distributing anti-theft tokens according to an embodiment of the present disclosure;
[0040] 4A-4B are schematic diagrams of a storage space field for allocating anti-theft tokens according to an embodiment of the present disclosure;
[0041] FIG5 is a flow chart of allocating anti-theft tokens and slot identifiers according to an embodiment of the present disclosure;
[0042] FIG6 is a schematic structural diagram of a digital key of a third device provided by an embodiment of the present disclosure;
[0043] FIG7 is a flow chart of a method for improving the security of digital key sharing by sharing a key according to an embodiment of the present disclosure;
[0044] FIG8 is an interactive flow chart of digital key sharing provided by an embodiment of the present disclosure;
[0045] FIG9 is a flowchart of a method for implementing a digital key sharing method according to an embodiment of the present disclosure;
[0046] FIG10 is a flowchart of a method for implementing a digital key sharing method according to an embodiment of the present disclosure;
[0047] FIG11 is a schematic diagram of a terminal provided in an embodiment of the present disclosure;
[0048] FIG12 is a schematic diagram of a digital key sharing system provided in an embodiment of the present disclosure. DETAILED DESCRIPTION
[0049] To make the objectives, technical solutions, and advantages of the present disclosure more clear, the present disclosure will be further described in detail below with reference to the accompanying drawings. It is apparent that the embodiments described are only a portion of the embodiments of the present disclosure, rather than all of them. All other embodiments derived by persons of ordinary skill in the art based on the embodiments of the present disclosure without creative effort are intended to fall within the scope of protection of the present disclosure.
[0050] In the embodiments of the present disclosure, the term "and / or" describes the association relationship between associated objects, indicating that three relationships can exist. For example, A and / or B can represent three situations: A exists alone, A and B exist simultaneously, and B exists alone. The character " / " generally indicates that the associated objects are in an "or" relationship.
[0051] The application scenarios described in the embodiments of the present disclosure are intended to more clearly illustrate the technical solutions of the embodiments of the present disclosure and do not constitute a limitation on the technical solutions provided by the embodiments of the present disclosure. Persons skilled in the art will appreciate that, as new application scenarios emerge, the technical solutions provided by the embodiments of the present disclosure will also be applicable to similar technical problems. In the description of the present disclosure, unless otherwise specified, "multiple" means two or more.
[0052] In the technological development of smart vehicles, digital keys have become a major trend in the future, and in-vehicle applications for controlling smart homes are becoming increasingly popular. Digital keys, also known as Bluetooth keys or virtual keys, mainly use near-field communication technology (NFC), allowing users to unlock and lock car doors and start the vehicle through smart terminals or wearable smart devices with NFC functions, such as smart watches and bracelets. They can unlock the vehicle, start the engine, and monitor the number of times the vehicle is opened. They can also share the unlocking and driving permissions of the digital key with relatives and friends. The digital key standard in the existing digital key standard (such as the CCC standard) defines two categories: Owner Device and Friend Device. The owner device can share the digital key with the friend device, but the friend device cannot continue to share the digital key with other devices.
[0053] The CCC standard also defines a standard process for key sharing. The owner's device can share the digital key with a friend's device. The sharing process mainly includes the following steps:
[0054] (1) The owner device creates a sharing invitation (Sharing Invitation);
[0055] (2) The Owner device sends a Key Creation Request;
[0056] (3) The Friend device sends a Key Signing Request;
[0057] (4) The Owner device sends a Key Import Request.
[0058] The existing digital key standard defines two types of devices: Owner devices (Device) and Friend devices (Device). Owner devices can share digital keys with Friend devices, but Friend devices cannot continue to share digital keys with other people. However, in some scenarios, Friend devices also need to share digital keys with other people's devices. For example, in a car wash scenario, Friend users need to share digital keys with car wash staff through Friend devices; in a hotel scenario, Friend users need to share digital keys with hotel receptionists through Friend devices; in a repair shop scenario, Friend users need to share digital keys with maintenance personnel through Friend devices.
[0059] In order to enrich the scenarios of digital key sharing, this embodiment provides a method for sharing digital keys, which uses a second device that has obtained a digital key through sharing to share the digital key with a third device, thereby realizing multi-level sharing of digital keys and solving the current problem of the singleness of digital keys in sharing, that is, solving the problem that digital keys can only be shared from the owner's device to the friend's device and cannot be further shared by the friend's device.
[0060] As shown in FIG1 , the implementation process of a digital key sharing method provided in this embodiment is as follows:
[0061] Step 100: The second device sends a key creation request to the third device, instructing the third device to generate information to be authenticated, wherein the second device has a digital key, and the digital key of the second device is obtained by sharing the digital key with the first device;
[0062] During implementation, the second device creates a configuration file and sends the configuration file to the third device along with a key creation request. The configuration file includes configuration information related to the shared digital key.
[0063] Optionally, before the second device shares the digital key with the third device, it needs to create a configuration file related to the digital key. The configuration file includes configuration information related to the shared digital key. The configuration file can be carried in the key creation request and sent to the third device, that is, the second device sends a key creation request carrying the configuration file to the third device, so that the third device can generate and sign the node.
[0064] In some embodiments, the key creation request includes second authentication information obtained by the second device from the first device; the key creation request is used to instruct the third device to generate the information to be authenticated based on the second authentication information and the third authentication information of the third device.
[0065] Optionally, the key creation request in this embodiment includes a configuration file, which includes second authentication information, including but not limited to the certificate chain of the first device, the certificate chain of the second device, and the IMtoken (anti-theft token) assigned by the first device to the second device.
[0066] Optionally, the third authentication information in this embodiment includes but is not limited to the certificate chain of the third device. The information to be authenticated in this embodiment includes but is not limited to the certificate chain of the first device, the certificate chain of the second device, the certificate chain of the third device, and the IMtoken assigned by the first device to the second device.
[0067] During implementation, the second device carries the second authentication information in a key creation request and sends it to the third device. The third device generates information to be authenticated based on the certificate chain of the first device, the certificate chain of the second device, the IMtoken assigned by the first device to the second device, and the certificate chain of the third device, and sends it to the second device.
[0068] In some embodiments, the second authentication information includes first authentication information of at least one digital key obtained from the first device, and the first authentication information includes an anti-theft token and / or a slot identifier, wherein the anti-theft token and the slot identifier are in one-to-one correspondence.
[0069] In some embodiments, the second device determines the maximum number of digital keys for sharing based on the number of first authentication information included in the second authentication information.
[0070] In implementation, if the number of first authentication information included in the second authentication information of the second device is K, where K is an integer greater than or equal to 1, the second device can share the digital key with a maximum of K third devices, and one third device obtains one digital key, where the first authentication information is used to generate the digital key.
[0071] In some embodiments, the key creation request further includes an anti-theft token assigned by the second device to the third device from among the anti-theft tokens included in the first authentication information;
[0072] The second device adds the anti-theft token assigned to the third device to the key authentication information, so that the third device determines the digital key according to the anti-theft token;
[0073] The second device comprises anti-theft tokens of different levels, and the anti-theft tokens of the second device are allocated by the first device.
[0074] In some embodiments, the level of the anti-theft token in this embodiment is used to determine whether the device that owns the anti-theft token has the function of sharing the anti-theft token with other devices again; wherein, the different levels of anti-theft tokens include any of the following:
[0075] The first type includes a primary anti-theft token and at least one secondary anti-theft token, wherein the primary anti-theft token is used by the second device, and the secondary anti-theft token is allocated by the second device to the third device.
[0076] In practice, security tokens are divided into two categories: primary and secondary. From the multiple assignable tokens, a certain number of secondary tokens can be selected for secondary sharing. When a first device shares a digital key with a second device, it can assign one primary token to the second device for use, and one or more secondary tokens to the second device for secondary sharing. The first device can also determine whether the second device has secondary sharing capabilities based on whether it assigns a secondary token to the second device.
[0077] In some embodiments, when a second device allocates the secondary anti-theft token to a third device, other second devices cannot allocate the allocated secondary anti-theft token to other third devices again.
[0078] In some embodiments, if the second device only includes one level of anti-theft token, the second device cannot assign its own anti-theft token to the third device.
[0079] In implementation, when the first device allocates a first-level anti-theft token to the second device and does not allocate a second-level anti-theft token, the second device cannot share the anti-theft token, and further cannot share the digital key.
[0080] As shown in Figure 2, this embodiment provides a schematic diagram of the distribution method of anti-theft tokens, wherein ImTok in the figure represents ImToken, Owner represents the first device, Friend represents the second device, and Other represents the third device. Among the 7 anti-theft tokens ImToken that can be distributed, a certain number (such as 4) are selected as secondary ImTokens that can be shared twice. When sharing with the second device, the first device can share one primary ImToken with the second device for its use, and share multiple secondary ImTokens with the second device for its secondary sharing. For example, the first device distributes one primary ImTokA and three secondary ImTok B, ImTok C, and ImTok D to the second device 1, and the second device 1 distributes ImTok B, ImTok C, and ImTok D to the third device 1, the third device 2, and the third device 3, respectively. It should be noted that when the first device allocates ImToken to the second device, one way is that it can repeatedly allocate the same ImToken to different second devices. For example, it can allocate ImTok D to the second device 1 and the second device 2. However, when the second device 1 allocates ImTok D to the third device 3, the second device 2 can no longer allocate ImTok D to other third devices. Another way is that when the first device allocates ImToken to the second device, it does not allocate it repeatedly. That is, if the first device has already allocated a certain ImToken to the second device, it can no longer allocate the ImToken to other second devices. For example, if the first device allocates ImTok D to the second device 1, the first device will no longer allocate ImTok D to other second devices, such as no longer allocating ImTok D to the second device 2.
[0081] In practice, the first device can also determine whether the second device has the secondary sharing function by assigning a level of ImToken to the second device. For example, if the first device only assigns one ImToken G to the second device 3, regardless of whether ImToken G is level 2 or level 1, the second device 3 does not have the authority to assign ImTokens again. In addition, when the second device 1 shares ImToken D with the third device 3, the second device 2 cannot share ImToken D with the third device 3. It should be noted that each ImToken in this embodiment corresponds to a Slot Identifier.
[0082] The second type, this embodiment includes anti-theft tokens of different levels, wherein the anti-theft tokens of different levels include at least one first-level anti-theft token and at least one second-level anti-theft token, wherein one first-level anti-theft token corresponds to one second-level anti-theft token, and different first-level anti-theft tokens correspond to different second-level anti-theft tokens, the first-level anti-theft token is used for the second device, and the second-level anti-theft token is used by the second device and allocated to the third device.
[0083] During implementation, anti-theft tokens are divided into two categories, namely, first-level anti-theft tokens and second-level anti-theft tokens; among the multiple anti-theft tokens that can be allocated, one first-level anti-theft token can only be paired with one second-level anti-theft token, so that for each second device, only one secondary sharing can be performed, and the second-level anti-theft tokens shared by different second devices are different, which will not cause sharing conflicts.
[0084] In some embodiments, when a second device assigns the secondary anti-theft token to a third device, other second devices cannot assign the secondary anti-theft token to other third devices again.
[0085] In some embodiments, if the second device only includes one level of anti-theft token, the second device cannot assign its own anti-theft token to the third device.
[0086] In practice, when the first device assigns a secondary anti-theft token to the second device, the second device cannot share the digital key. In practice, the first device can only share the secondary anti-theft token with the second device, and the second device does not have the authority to share the digital key again.
[0087] As shown in Figure 3, this embodiment provides a schematic diagram of the distribution method of anti-theft tokens, which divides the anti-theft token ImToken into multiple first-level ImTokens and multiple second-level ImTokens. However, the redistribution is that one first-level ImToken can only be paired with one second-level ImToken, so that for each second device, only one sharing can be performed, and the second-level ImTokens shared by different second devices are different, and there will be no sharing conflicts. For example, the first device is assigned to the second device 1, a first-level ImTok A, a second-level ImTok B, and the second device 1 assigns ImTok B to the third device 1. At the same time, the first device can only share one level of ImToken with the second device, and the second device has no right to share it again. For example, the first device is assigned to the second device 4, an ImTok G, and the second device 4 has no right to assign ImTok G to the third device. It should be noted that each ImToken in this embodiment corresponds to a Slot Identifier.
[0088] In some embodiments, the different levels of anti-theft tokens contained in the second device are stored in different fields, wherein the different fields include a first field and a second field;
[0089] The second device determines the anti-theft token allocated to the third device from the anti-theft token stored in the second field.
[0090] As shown in Figures 4A and 4B, this embodiment provides a schematic diagram of a storage space field for allocating anti-theft tokens, wherein the storage space in this embodiment includes a private mailbox and an authentication mailbox, and new fields can be added to the private mailbox, such as adding second fields SubSlotIdentBmp and SubSlotIdentList for indicating and storing secondary ImTokens, respectively. In this way, the first device can allocate the secondary ImToken in the second field when sharing with the second device, and the second device can select the secondary ImToken from the second field for allocation when sharing the digital key (anti-theft token) with the third device.
[0091] During implementation, the second device receives the immobilizer tokens of different levels assigned by the first device, and determines the immobilizer token assigned to the third device and the slot identifier corresponding to the assigned immobilizer token from the immobilizer tokens of different levels; wherein the slot identifier is used to locally identify the key used; and the immobilizer token is used to enable the vehicle engine to authenticate the shared digital key based on the immobilizer token. The vehicle engine is able to authenticate the digital key of the third device through the immobilizer token assigned by the second device to the third device and the slot identifier corresponding to the assigned immobilizer token. The immobilizer token can be used to start the car engine.
[0092] In some embodiments, the key creation request further includes a key parameter, and the key parameter is used by the third device to generate a shared key;
[0093] The key signature request also includes the shared key, which is used by the second device to authenticate the shared key of the third device. If the authentication is successful and key authentication information is generated after authenticating the information to be authenticated in the key signature request, a key import request is sent to the third device.
[0094] In some embodiments, to increase security, key parameters required to generate a shared key may be added to the configuration file. The key parameters in this embodiment include, but are not limited to, any one or more of the following:
[0095] Long-term shared key (long_term_shared_secret);
[0096] sharing_password_length;
[0097] sharing_password_seed.
[0098] Optionally, a shared_key_seed may be included in the attestation package of the digital key structure.
[0099] In practice, generating a shared key depends on three inputs:
[0100] (1) Long-term shared secret (long_term_shared_secret);
[0101] (2) sharing_password_length;
[0102] (3) Sharing_password_seed.
[0103] The shared key can be calculated by the vehicle and the first device (such as the owner's device) based on the sharing_password_seed in the digital key of the second device. If the shared keys (sharing password) calculated by the vehicle and the first device are consistent, it means that the shared key is valid.
[0104] In the current solution, since the second device does not have the long_term_shared_secret and sharing_password_length information, when the second device shares the digital key with the third device, the shared key cannot be calculated from the second device and still needs to be calculated by the first device, which is a cumbersome process. Therefore, in this embodiment, when the first device shares the digital key with the second device, the node configuration file (endpoint_configure) in the key creation request message sent to the second device is added with the following information:
[0105] (1)endpoint_configuration.sharingSecret=long_term_shared_secret;
[0106] (2)endpoint_configuration.sharingLength=sharing_password_length;
[0107] (3)endpoint_configuration.sharingSeed=sharing_password_seed.
[0108] Optionally, the second authentication information also includes an authorized public key; the third device uses the authorized public key for authentication, and after the authentication is passed, signs the certificate information of the third device to generate a certificate chain for the third device.
[0109] In some embodiments, the certificate chain includes but is not limited to an external certificate, an instance certificate, and a node certificate, etc.; the third device uses the authorized public key to authenticate the external certificate, signs the instance certificate with the authenticated external certificate, and signs the node certificate with the signed instance certificate to obtain the certificate chain of the third device.
[0110] During implementation, the configuration file includes a key configuration file and a node configuration file, wherein the key configuration file includes an anti-theft token (IMtoken), the key configuration file also includes an authority configuration file of the digital key of the third device, and the node configuration file includes the second authentication information (the certificate chain of the first device, the certificate chain of the second device, external certificate information, the anti-theft token assigned to the third device, etc.).
[0111] The permission profile of the digital key of the third device is as follows: RestrictedProfiles::=ENUMERATED {full(0),--full access and drive capabilities accessOnly(1),--only car access,no drive capabilities accessAndDriveRestricted(2),--access and drive with restrictions carDelivery(3),--car delivery profile valet(4),--valet parking key vehicleService(5)-service key}
[0112] During implementation, after receiving the configuration file, the third device uses the authorized public key PK in the node configuration file to authenticate the external CA certificate. It then uses the external CA certificate to sign the instance CA certificate. It then uses the instance CA certificate to sign the node endpoint certificate. The third device then sends the signed certificate chain to the second device. Optionally, when sending the signed certificate chain to the second device, the third device also sends the key certificate encrypted with the node private key to the second device.
[0113] In practice, the digital key of the second device is obtained by sharing the digital key with the first device. Optionally, the first device can be the vehicle owner's device or a friend's device with digital key sharing permission. This embodiment does not impose any restrictions on the first device. After the first device shares the digital key with the second device, the second device can continue to share the digital key with a third device, achieving multi-level digital key sharing.
[0114] In some embodiments, the key creation request includes the authority configuration information of the digital key of the third device, and the authority configuration information is used to indicate the control scope of the digital key over the vehicle in terms of time and / or space. The lower the authority level in the authority configuration information, the smaller the control scope of the digital key over the vehicle; wherein, the authority level of the third device is lower than that of the digital key of the second device, and the authority level of the second device is lower than that of the digital key of the first device.
[0115] In practice, before sending a key creation request to the third device, the second device needs to set the vehicle access permissions in the configuration file and generate permission configuration information. Sharing permissions can be set to be restricted level by level. If the second device has the lowest permission level, it will no longer be able to share the digital key.
[0116] In some embodiments, the permission configuration information of the digital key of the third device in this embodiment includes:
[0117] The authority level of the shared digital key of the third device is lower than the authority level of the digital key of the second device; the authority level of the digital key of the second device is lower than the authority level of the digital key of the first device; the higher the authority level of the digital key, the greater the scope of use of the vehicle.
[0118] In some embodiments, if the permission level of the digital key of the second device is the lowest level, the second device does not have the permission to share the digital key with the third device.
[0119] In practice, the first device, when the owner is the vehicle owner, has full access permissions. The second device can have full or partial permissions based on the settings of the owner or first device. These settings are determined by the permission configuration information included in the key creation request during the digital key sharing process. The third device, however, cannot have full permissions and can only have permissions less than the vehicle access permissions of the second device. If the second device already has the lowest permission level, it cannot share the digital key with the third device.
[0120] When configuring the car use permissions in the configuration file, a configuration interface can be provided for the user to select the digital key sharing object according to the configuration interface (UI interface) of the device / terminal, and to refine the permission configuration parameters of the shared digital key. The specific settings can be based on actual needs, and this embodiment does not impose too many restrictions on this. Optionally, the user can also select the level of the sharing object in the configuration interface, including friend level and other levels, where the friend level permissions are higher than or equal to the permissions of other levels; different levels correspond to different car use permission configurations. When the user selects a level of sharing object, the user permission configuration corresponding to the level is automatically matched to generate the corresponding configuration file. Optionally, after selecting the sharing object, the user can also modify the specific car use permission configuration parameters in the configuration interface to suit actual needs.
[0121] In some embodiments, the authority configuration information of the digital key of the third device is determined based on the vehicle usage scenario; wherein, the authority configuration information corresponding to different vehicle usage scenarios is different, and different authority configuration information is used to perform different controls on the vehicle.
[0122] In practice, the permission configuration information in the configuration file is used to grant a user permission to use the vehicle, where the user and device / terminal are bound. For example, in this embodiment, the configuration file sent by the second device to the third device contains the permission information of the user of the third device to use the vehicle. Optionally, the permission configuration information configured for users of different levels may be different, and the permission configuration information configured for users of the same level in different vehicle usage scenarios may also be different. This embodiment does not impose too many restrictions on this. Specifically, the higher the user level, the greater the scope of the vehicle usage permission.
[0123] In some embodiments, the permission configuration information of the shared digital key in this embodiment includes any one or more of the following:
[0124] The first type is the vehicle's speed;
[0125] The second type is the driving range of the vehicle;
[0126] The third type is the vehicle's trajectory;
[0127] Type 4: Sharing duration of the digital key, where the sharing duration indicates the length of time the third device holds the digital key;
[0128] The fifth type is the digital key's control over the vehicle;
[0129] The sixth type is a recycling condition of a digital key, wherein the recycling condition indicates a condition for determining that the digital key is invalid.
[0130] During implementation, by limiting the vehicle's driving speed, driving range, driving trajectory, etc., as well as limiting the sharing duration, control authority and recovery conditions of digital keys, the permission configuration scheme for digital key sharing in different vehicle usage scenarios was refined, and a digital key recovery mechanism was set up to prevent the abuse of shared digital keys.
[0131] Optionally, the second device in this embodiment can provide a scenario selection interface for the sharing user to select a vehicle usage scenario. Each vehicle usage scenario matches a set of permission configuration information. When the user selects a vehicle usage scenario, the permission configuration information can be automatically matched to it and a configuration file can be generated. Optionally, after selecting a vehicle usage scenario, the user can also configure more detailed permission parameters for each vehicle usage scenario, or modify the automatically matched permission configuration information to better suit the needs of the current usage scenario.
[0132] Optionally, in different vehicle usage scenarios, you can set the permission configuration information related to the scenario, as shown below:
[0133] Scenario 1: The vehicle usage scenario is valet parking.
[0134] In this scenario, the permission configuration information that can be set for the digital key of the third device includes:
[0135] The vehicle's travel speed is less than a first speed threshold and / or a range threshold;
[0136] When the vehicle enters the parking space and remains parked for a period exceeding a first time threshold, the vehicle's driving function is disabled. When the vehicle enters the parking space and remains parked for a period exceeding a second time threshold, the shared digital key is retrieved, where the second time threshold is greater than the first time threshold.
[0137] During implementation, a speed limit can be set in the configuration file, that is, the vehicle's driving speed is set to be less than a first speed threshold. When it is detected that the vehicle's driving speed is greater than or equal to the first speed threshold, the shared digital key shared with the third device is recovered.
[0138] The parking detection function can also be combined to determine the conditions for car key recovery:
[0139] When it is detected that the vehicle enters the parking space and parks, the first time threshold is exceeded and the vehicle driving function is turned off; when the second time threshold is exceeded, the shared digital key is recovered.
[0140] In this embodiment, after the shared digital key is recovered, the third device no longer holds the digital key, or the shared digital key held by the third device becomes invalid.
[0141] The key recovery conditions can also be determined based on the vehicle's driving range:
[0142] When the vehicle's driving range is greater than or equal to the range threshold, the shared digital key of the third device is recovered. Optionally, after the shared digital key of the third device is recovered, the speed limit function is turned on and the driver is reminded to stop as soon as possible.
[0143] Scenario 2: The vehicle usage scenario is a maintenance scenario.
[0144] In this scenario, the permission configuration information includes:
[0145] The sharing duration of the shared digital key is less than a duration threshold. When the sharing duration is greater than or equal to the duration threshold, the shared digital key is recovered.
[0146] During implementation, a time threshold related to the maintenance scenario can be set. When the sharing time of the shared digital key exceeds or equals the time threshold, the shared digital key of the third device is reclaimed, and the user of the third device no longer has the authority to use the vehicle; the sharing time is used to indicate the time period during which the third device holds the shared digital key and the shared digital key is valid.
[0147] Scenario 3: The vehicle usage scenario is a car wash scenario.
[0148] In this scenario, the permission configuration information includes:
[0149] When the vehicle's driving speed is less than a second speed threshold, the vehicle display screen is turned off and the vehicle rearview mirror remains open. During implementation, a speed limit can be set in the configuration file, and the vehicle enters a car wash mode. In the car wash mode, the vehicle display screen is automatically turned off, and the rearview mirror does not automatically retract, that is, the vehicle rearview mirror remains open.
[0150] Determine digital key recovery conditions based on vehicle driving range:
[0151] When the vehicle's speed is greater than or equal to the second speed threshold, the shared digital key is retrieved. Optionally, after the shared digital key is retrieved, a speed limit function may be enabled to remind the driver to stop as soon as possible.
[0152] Scenario 4: The vehicle usage scenario is refueling.
[0153] In this scenario, the permission configuration information includes:
[0154] When the vehicle's speed is less than a third speed threshold, the vehicle is turned off and the fuel port or charging port is opened. During implementation, a speed limit can be set in the configuration file, and the vehicle enters a refueling mode. In the refueling mode, the vehicle is automatically turned off and the fuel port or charging port is opened.
[0155] Determine digital key recovery conditions based on vehicle driving range:
[0156] When the vehicle's speed is greater than or equal to the third speed threshold, the shared digital key is retrieved. Optionally, after the shared digital key is retrieved, a speed limit function may be enabled to remind the driver to stop as soon as possible.
[0157] Scenario 5: The vehicle usage scenario is to pick up or return the vehicle for a customer.
[0158] In this scenario, the permission configuration information includes:
[0159] The degree to which the vehicle's driving trajectory deviates from the preset trajectory is less than a trajectory threshold. When the degree to which the vehicle's driving trajectory deviates from the preset trajectory is greater than or equal to the trajectory threshold, the shared digital key is recovered.
[0160] During implementation, the vehicle's driving trajectory can be monitored in real time, and a reminder will be given when the driving trajectory deviates from the preset trajectory in the navigation. If the degree of deviation from the preset trajectory is greater than or equal to the trajectory threshold, the shared digital key will be recovered.
[0161] Scenario 6: The vehicle is used to pick up or put down items.
[0162] In this scenario, the permission configuration information includes:
[0163] The shared digital key only has the authority to open the car door or trunk; in implementation, the user of the third device only has the authority to open the trunk / car door and cannot start the vehicle.
[0164] When a door or trunk is opened and closed once, or an item is detected to be taken from the vehicle or placed in the vehicle, the shared digital key is recovered.
[0165] Step 101: The second device receives a key signature request sent by the third device, authenticates the information to be authenticated in the key signature request, and generates key authentication information;
[0166] Optionally, after the third device sends the information to be authenticated to the second device, the second device can perform authentication. After the authentication is passed, the first device can continue to perform authentication again to improve the security of the shared digital key.
[0167] In some embodiments, the third device may also carry a key certificate encrypted with the node private key of the third device in the key signing request.
[0168] In some embodiments, in order to improve the security of digital key re-sharing, this embodiment may also add additional trust endorsement information when the third device generates a device certificate, and use the second device and / or the first device for authentication.
[0169] In some embodiments, the key signature request sent by the third device further includes trust endorsement information, where the trust endorsement information is used to provide the third device with a valid basis for using the digital key;
[0170] The second device and / or the first device confirms the trust endorsement information and determines whether the digital key of the third device is valid based on the confirmation result.
[0171] Optionally, the third device may add the trust endorsement information to the information to be authenticated to generate new information to be authenticated.
[0172] In some embodiments, the trust endorsement information in the key signing request is confirmed by any one or more of the following methods:
[0173] Method a: When generating a key import request, the second device confirms the trust endorsement information in the key signature request;
[0174] Mode b: During the process of registering the digital key of the third device with the vehicle server, upon receiving the key confirmation request sent by the vehicle server, the first device confirms the trust endorsement information in the key confirmation request.
[0175] In some embodiments, the trust endorsement information includes any one or more of the following:
[0176] (1)Contract information.
[0177] Optionally, using a contract as a trust endorsement, the third device adds contract information to the information to be authenticated, such as a maintenance contract, including compensation clauses for vehicles used for non-maintenance purposes.
[0178] The contract information can also be authenticated when the second device generates a key import request (Generate Import Request). The authentication process can be automatic or generate a user interface, and the authentication is passed after the second device or the first device verifies the verification.
[0179] (2) Server authentication information obtained by authenticating the third authentication information of the third device through a trusted server.
[0180] During implementation, the third authentication information including the certificate chain of the third device is generated on the third device, and the certificate chain of the third device is sent to a trusted server (such as a repair shop or hotel), which is signed by the trusted server and returned to the third device; the third device sends the certificate chain signed by the trusted server to the second device, which performs certificate chain authentication and generates a key import request.
[0181] (3) Pre-signed information of the first device.
[0182] During implementation, the third device adds the pre-signed information of the first device to the information to be authenticated (the pre-trust endorsement of the first device - such as a hotel or car wash shop where the first device has a membership card); when the second device generates a key import request, the pre-signed information of the first device is authenticated.
[0183] Optionally, the generated trust endorsement information can be authenticated by the second device when generating a key import request, or by the first device, or can be dual-authenticated by the second device and the first device (i.e., the first device authenticates again after the second device authenticates).
[0184] In some embodiments, the first device further authenticates the information to be authenticated and / or the trust endorsement information of the third device through the following steps:
[0185] After the third device registers the digital key with the vehicle server, the vehicle server sends an authentication request message to the first device, where the authentication request message includes the information to be authenticated;
[0186] The first device authenticates the information to be authenticated in the authentication request message, and when the authentication is successful, sends an authentication success response message to the vehicle server, so that the third device and the vehicle are connected and the vehicle is controlled using the digital key.
[0187] It should be noted that the information to be authenticated in this embodiment may or may not contain trust endorsement information. When the information to be authenticated does not contain trust endorsement information, the second device and / or the first device authenticate the information to be authenticated. When the information to be authenticated contains trust endorsement information, one method is for the second device to authenticate the information other than the trust endorsement information in the information to be authenticated, and for the first device to authenticate the trust endorsement information; another method is for the second device to authenticate the information other than the trust endorsement information in the information to be authenticated, and for the first device to authenticate all the information to be authenticated; and the last method is for the second device to authenticate the information to be authenticated, and for the first device to continue authenticating the information to be authenticated.
[0188] Optionally, when authenticating the trust endorsement information, the first device may confirm the information in a check key request (checkKey request) sent by the vehicle server to the first device server after the digital key of the third device is generated. In implementation, after the third device obtains the digital key, it registers the digital key with the third device server. The third device server sends a digital key tracking record to the vehicle server. The vehicle server sends a check key request to the first device server. The first device server forwards the check key request to the first device. The first device authenticates and confirms the trust endorsement information carried in the check key request, and the first device server receives the confirmation from the first device.
[0189] In some embodiments, after the third device registers the shared digital key on the vehicle server, the vehicle server determines the total number of digital keys currently allocated to the third device; the vehicle server determines whether the shared digital key is valid based on the total number.
[0190] During implementation, the third device server sends the digital key tracking record to the vehicle server. The vehicle server can confirm the total number of digital keys currently assigned to the third device. If the total number of digital keys assigned to the third device is greater than the quantity threshold (such as 1), a register key response (error) (registerKeyResponse(Error)) is sent to the third device server, thereby invalidating the digital key assigned to the third device.
[0191] Step 102: The second device sends a key import request to the third device, instructing the third device to save the key authentication information in the key import request, wherein the key authentication information is used to determine the digital key of the third device.
[0192] During implementation, the second device authenticates the received information to be authenticated and generates key authentication information after successful authentication. The third device then determines the digital key based on the key authentication information. The key authentication information includes, but is not limited to, the digital key's permission configuration information, the anti-theft token, and the slot identifier corresponding to the anti-theft token.
[0193] In some embodiments, during the digital key sharing process, the key creation request includes multiple tags, including:
[0194] The values of DAh are as follows:
[0195] 00h: used to indicate that the anti-theft token and slot identifier are obtained from the vehicle through the vehicle owner's device;
[0196] 01h is used to indicate online retrieval of anti-theft tokens and slot identifiers;
[0197] 02h is used to indicate that no anti-theft token is required and the slot identifier is obtained from the vehicle through the owner's device;
[0198] 03h is used to indicate that no anti-theft token is required and the slot identifier is retrieved online.
[0199] As shown in FIG5 , this embodiment further provides a process for allocating an anti-theft token and a slot identifier. The specific implementation process of the process is as follows:
[0200] Step 500: The second device selects an anti-theft token assigned to the third device from the second authentication information obtained by the first device, saves the slot identifier corresponding to the assigned anti-theft token, and sets the length of the second device authentication mailbox for storing one anti-theft token;
[0201] The storage space in this embodiment includes an authentication mailbox and a private mailbox. Each device has a storage space. The authentication mailbox is used to store the anti-theft token, and the private mailbox is used to store the slot identifier corresponding to the anti-theft token.
[0202] Step 501: The second device sends a key creation request to the third device;
[0203] The key creation request includes second authentication information, the second authentication information includes the first authentication information, and the first authentication information includes the anti-theft token and a slot identifier;
[0204] Step 502: The third device generates information to be authenticated based on the second authentication information.
[0205] Step 503: The third device sends a key signature request to the second device, where the key signature request includes information to be authenticated.
[0206] Step 504: The second device authenticates the information to be authenticated, generates key authentication information, and writes the anti-theft token and slot identifier assigned to the third device into the key authentication information;
[0207] Step 505: The second device sends a key import request to the third device, where the key import request includes key authentication information.
[0208] Step 506: The third device saves the key authentication information for determining the digital key.
[0209] This embodiment also provides a digital key storage space, wherein a first device's private mailbox is used to store plaintext for retrieval by the digital key application, and the first device's authentication mailbox is used to store ciphertext for vehicle authentication. Similarly, a second device's private mailbox is used to store plaintext for retrieval by the digital key application, and the second device's authentication mailbox is used to store ciphertext for vehicle authentication.
[0210] In some embodiments, the digital key of the third device includes the first information of the digital key of the first device, the second information of the digital key of the second device, and the third information of the third device;
[0211] The first information is used to authenticate the validity of the digital key of the first device, the second information is used to authenticate the validity of the digital key of the second device, and the third information is used to authenticate the validity of the digital key of the third device.
[0212] In some embodiments, the first information and the second information are determined based on information carried in the key creation request; and the third information is determined based on information carried in the key import request.
[0213] In implementation, the first information includes information such as the certificate chain of the first device, permission configuration information of the digital key of the first device, and the validity period of the digital key of the first device;
[0214] The second information includes information such as the certificate chain of the second device, permission configuration information of the digital key of the second device, and the validity period of the digital key of the second device;
[0215] The third information includes the certificate chain of the third device, the permission configuration information of the digital key of the third device, the validity period of the digital key of the third device, and other information;
[0216] The validity period of the digital key of the third device is within the validity period of the digital key of the second device, and the validity period of the digital key of the second device is within the validity period of the digital key of the first device.
[0217] As shown in FIG6 , this embodiment provides a structural diagram of a digital key of a third device, including first information of the digital key of the first device, second information of the digital key of the second device, and third information of the third device.
[0218] The first information includes vehicle authentication information (Vehicle Identifier); node authentication information (Endpoint Identifier); digital key authentication information (Digital Key Identifier); slot identifier (Slot Identifier); internal CA authentication information (Instance CA Identifier); key options (Key Options); device public key (Device Public Key); vehicle public key (Vehicle Public Key); authorized public keys (Authorized Public) #1, #2, #3, #4, #5; private mailbox (Private Mailbox); authentication mailbox (Confidential Mailbox).
[0219] The second information specifically includes: the second device public key (Friend Public Key); the device public key (Device Public Key); profile information (Profile); shared password information (Sharing Password Information); slot identifier (Slot Identifier); validity start / end period (Validity Start / End); key name (Key Friendly Name); and the first device's owner signature (Owner Signature). The device public key (Device Public Key) in the first information and the second device public key (Friend Public Key) in the second information are identical.
[0220] The third information specifically includes: the third device public key (Others Public Key); profile information (Profile); shared password information (Sharing Password Information); slot identifier (Other Slot Identifier); validity period (Other Validity Start / End); key name (Key Friendly Name); and the second device's signature (Friend Signature). The device public key (Device Public Key) in the second information and the third device public key (Others Public Key) in the third information are identical.
[0221] As shown in FIG7 , this embodiment further provides a process for improving the security of digital key sharing by sharing a key, wherein the digital key sharing process is initiated by the second device. The specific implementation of the process is as follows:
[0222] Step 700: The second device sends a sharing session (generateSharingSession) to the second device server.
[0223] The shared session carries the key information (friendKeyId) of the second device;
[0224] Step 701: The second device server sends a shared session to the vehicle server;
[0225] The shared session also carries key information of the second device;
[0226] Step 702: The vehicle server generates a session identifier and a shared key, and binds the session identifier and the key information of the second device;
[0227] Step 703: The vehicle server sends a shared session response to the second device server;
[0228] The shared session response carries the shared session and the shared key;
[0229] Step 704: The second device server forwards the sharing session response to the second device;
[0230] Step 705: The second device generates a privacy-preserving symmetric key (prKey);
[0231] Step 706: The second device sends a sharing session invitation to the third device;
[0232] The shared session invitation includes but is not limited to carOEMUrl, sessionID, prKey, shared key and other data, which is used to be displayed in URL format on WhatsApp, SMS or other channels.
[0233] Step 707: The third device decodes the URL and saves the shared key.
[0234] Step 708: The third device sends the sharing session and third device information to the third device server.
[0235] Step 709: The third device server binds the shared session and the third device information;
[0236] Step 710: The third device server sends the sharing session and third device information to the vehicle server;
[0237] Step 711: The vehicle server binds the session identifier, the key information of the second device, and the third device information;
[0238] Step 712: The vehicle server sends a shared session response to the third device server.
[0239] Step 713: The third device server forwards the sharing session response to the third device.
[0240] Step 714: The vehicle server sends an event notification to the second device server;
[0241] The event notification carries the sharing invitation and shared key;
[0242] Step 715: The second device server pushes a session ready confirmation message to the second device.
[0243] The shared session is carried in the confirmation session ready message;
[0244] Step 716: The second device server sends an event notification response to the vehicle server.
[0245] In this embodiment, the digital key sharing method involves sharing a digital key with a second device after a first device has shared it with a third device. During this process, the second device authenticates the third device's device certificate. Once authenticated, the shared digital key is generated, resolving the trust issue between the second device and the third device. Optionally, the second device also requires confirmation from the first device or the first device's server during this process. The digital key shared by the second device with the third device is only valid after confirmation from the first device or the first device's server.
[0246] As shown in FIG8 , this embodiment further provides an interactive process for sharing a digital key. The specific implementation of the interactive process is as follows:
[0247] Step 800: The second device creates a sharing invitation and generates second authentication information.
[0248] Among them, the second authentication information includes the certificate chain of the second device, the certificate chain and IMtoken of the first device, and the permission configuration information of the digital key of the second device.
[0249] Step 801: The second device sends a key creation request (Key Creation Request) to the third device, carrying the second authentication information;
[0250] Step 802: The third device generates information to be authenticated based on the second authentication information in the key creation request and its own third authentication information.
[0251] Step 803: The third device sends a key signature request to the second device, carrying the information to be authenticated.
[0252] During implementation, the second authentication information also includes an authorized public key PK. The third device uses the authorized PK to authenticate the external CA certificate, and then uses the external CA certificate to sign the instance CA certificate, and then uses the instance CA certificate to sign the node certificate to generate the certificate chain of the third device. The information to be authenticated is generated based on the certificate chain of the first device, the certificate chain of the second device, the certificate chain of the third device and the IMtoken contained in the second authentication information, and sent to the second device.
[0253] Optionally, the third device sends the key certificate encrypted with the node private key to the second device at the same time as sending the information to be authenticated to the second device.
[0254] Step 804: The second device uses the authorized public key (PK) of the third device to authenticate the received information to be authenticated and generate key authentication information;
[0255] Step 805: The second device sends an import request (Import Request) to the third device, carrying key authentication information; wherein the key authentication information includes Imtoken.
[0256] During implementation, the second device uses the PK authentication node certificate of the third device to generate an entitlement data file (entitlement_data field), where the entitlement data file includes key_slot (key snapshot), vehicle_identifier (vehicle identifier), key_configuration (key configuration); optionally, it also includes sharing_password_seed (sharing_password_seed); the second device exports the anti-theft token Imtoken; performs authorization and generates bytes_attestation (bytes_attestation).
[0257] Step 806: The third device saves the key authentication information;
[0258] During implementation, the key authentication (key_attestation) is written into the private mailbox of the second device, and the anti-theft token (Imtoken) is written into the encrypted mailbox of the second device.
[0259] Step 807: The third device registers the digital key with the third device server;
[0260] Step 808: The third device server sends the key tracking record to the vehicle server;
[0261] Optionally, in step 808a, the vehicle server sends a key check (checkKey) request to the vehicle owner device server;
[0262] Step 808b: The vehicle owner device server forwards the checkKey request to the vehicle owner device for receiving confirmation from the vehicle owner device.
[0263] Step 809: The vehicle server sends a key tracking response (trackKeyResponse) to the third device server;
[0264] Step 810: The third device server sends a key registration response to the third device.
[0265] Step 811: The vehicle server sends an event notification to the second device server;
[0266] Step 812: The second device server sends an event notification response to the vehicle server.
[0267] Step 813: The third device is connected to the vehicle for the first time.
[0268] The digital key sharing method provided in this embodiment addresses the problems of unclear sharing permissions and lack of further secondary sharing in existing digital key sharing standards, refines the permission configuration schemes for digital key sharing in different scenarios, and sets up a key recovery mechanism to prevent the abuse of friends' keys; at the same time, by adding the role of a third device and completing a series of standard-based settings, it enriches the problem of single key sharing scenarios, and solves a series of problems existing in the digital key sharing of third devices. For example, in the digital key sharing process of the third device, a trust mechanism is added, and by sharing anti-theft tokens and slot identifiers, the vehicle engine can authenticate the digital key of the third device, thereby improving the security and availability of digital key re-sharing; a secondary anti-theft token ImToken that can be assigned to the third device is defined to achieve secondary sharing of the digital key; a structure of the digital key of the third device is also proposed, and by constructing the digital key of the third device, the vehicle can complete the authentication of the digital key of the third device; the shared key is authenticated by the second backup, thereby solving the problem of establishing a connection between the third device and the digital key, and optimizing the shared key (Share password) sharing mechanism in the digital key sharing process.
[0269] Based on the same inventive concept, the embodiment of the present disclosure also provides a method for sharing a digital key, which is applied to a third device. The implementation of this method can refer to the implementation of the above method, and the repeated parts will not be repeated.
[0270] As shown in Figure 9, the implementation process of this method is as follows:
[0271] Step 900: The third device receives a key creation request sent by the second device and generates information to be authenticated; wherein the second device has a digital key, and the digital key of the second device is obtained by sharing the digital key with the first device;
[0272] Step 901: The third device sends a key signature request to the second device. The key signature request includes the information to be authenticated, which is used to instruct the second device to authenticate the information to be authenticated in the key signature request and generate key authentication information. The key authentication information is used to determine the digital key of the third device.
[0273] Step 902: The third device receives the key import request sent by the second device, and saves the key authentication information in the key import request.
[0274] As an optional implementation, the key creation request includes second authentication information obtained by the second device from the first device;
[0275] The key creation request is used to instruct the third device to generate the information to be authenticated according to the second authentication information and the third authentication information of the third device.
[0276] As an optional embodiment, the second authentication information includes first authentication information of at least one digital key obtained from the first device, and the first authentication information includes an anti-theft token and / or a slot identifier, wherein the anti-theft token and the slot identifier are one-to-one corresponding.
[0277] As an optional implementation, the key creation request further includes an anti-theft token assigned by the second device to the third device from the anti-theft token included in the first authentication information;
[0278] The third device determines the digital key according to the anti-theft token in the key authentication information;
[0279] The second device comprises anti-theft tokens of different levels, and the anti-theft tokens of the second device are allocated by the first device.
[0280] As an optional implementation, the level of the anti-theft token is used to determine whether the device that owns the anti-theft token has the function of sharing the anti-theft token with other devices again; the different levels of anti-theft tokens include:
[0281] a primary anti-theft token and at least one secondary anti-theft token, wherein the primary anti-theft token is used by the second device and the secondary anti-theft token is allocated by the second device to the third device; or
[0282] At least one first-level anti-theft token and at least one second-level anti-theft token, wherein one first-level anti-theft token corresponds to one second-level anti-theft token, and different first-level anti-theft tokens correspond to different second-level anti-theft tokens, the first-level anti-theft token is used for the second device, and the second-level anti-theft token is allocated by the second device to the third device for use.
[0283] As an optional implementation manner, the key creation request further includes a key parameter, and the key parameter is used by the third device to generate a shared key;
[0284] The key signature request also includes the shared key, which is used by the second device to verify the shared key of the third device. If the verification is successful and the key authentication information is generated after authenticating the information to be authenticated in the key signature request, a key import request is sent to the third device.
[0285] As an optional implementation manner, the key creation request includes permission configuration information of the digital key of the third device, where the permission configuration information is used to indicate the control range of the digital key over the vehicle in terms of time and / or space, and a lower permission level in the permission configuration information indicates a smaller control range of the digital key over the vehicle;
[0286] The third device has a lower authority level than the digital key of the second device, and the second device has a lower authority level than the digital key of the first device.
[0287] As an optional implementation,
[0288] The authority configuration information of the digital key of the third device is determined based on the vehicle usage scenario; wherein, the authority configuration information corresponding to different vehicle usage scenarios is different, and different authority configuration information is used to control the vehicle differently.
[0289] As an optional implementation, the permission configuration information includes any one or more of the following:
[0290] The speed of the vehicle;
[0291] The vehicle's driving range;
[0292] The vehicle's trajectory;
[0293] The sharing duration of the shared digital key, where the sharing duration indicates the length of time the third device can use the shared digital key;
[0294] Shared digital keys provide control over the vehicle;
[0295] The reclaiming condition of the shared digital key indicates the condition for determining that the shared digital key is invalid.
[0296] As an optional implementation,
[0297] If the vehicle usage scenario is a valet parking scenario, the permission configuration information includes: the vehicle's driving speed is less than a first speed threshold and / or a range threshold; when the vehicle enters the parking space and parks for more than a first time threshold, the vehicle's driving function is turned off; when the vehicle enters the parking space and parks for more than a second time threshold, the shared digital key is reclaimed, wherein the second time threshold is greater than the first time threshold; or,
[0298] If the vehicle usage scenario is a maintenance scenario, the permission configuration information includes: the sharing duration of the shared digital key is less than a duration threshold, and when the sharing duration is greater than or equal to the duration threshold, the shared digital key is reclaimed; or,
[0299] If the vehicle usage scenario is a car wash scenario, the permission configuration information includes: when the vehicle's driving speed is less than a second speed threshold, turning off the vehicle display screen; when the vehicle's driving speed is greater than or equal to the second speed threshold, reclaiming the shared digital key; or,
[0300] If the vehicle usage scenario is a refueling scenario, the permission configuration information includes: when the vehicle's driving speed is less than a third speed threshold, the vehicle is turned off and the refueling port or charging port is opened; when the vehicle's driving speed is greater than or equal to the third speed threshold, the shared digital key is recovered; or,
[0301] If the vehicle usage scenario is a valet vehicle pickup or return scenario, the permission configuration information includes: when the degree to which the vehicle's driving trajectory deviates from the preset trajectory is less than a trajectory threshold, when the degree to which the vehicle's driving trajectory deviates from the preset trajectory is greater than or equal to the trajectory threshold, the shared digital key is recovered; or,
[0302] If the vehicle usage scenario is to pick up or put items on behalf of others, the permission configuration information includes: the shared digital key only has the permission to open the vehicle door or trunk; when the vehicle door or trunk is opened and closed once, or when an item is detected to be taken away from the vehicle or placed in the vehicle, the shared digital key is recovered.
[0303] As an optional implementation manner, the key signature request sent by the third device further includes trust endorsement information, and the trust endorsement information is used to provide the third device with a valid basis for using the digital key;
[0304] The second device and / or the first device determines whether the digital key of the third device is valid based on a confirmation result of the trust endorsement information.
[0305] As an optional implementation, the trust endorsement information includes any one or more of the following:
[0306] Contract information;
[0307] Server authentication information obtained by authenticating the third authentication information of the third device through a trusted server;
[0308] Pre-signed information of the first device.
[0309] As an optional implementation manner, the digital key of the third device includes the first information of the digital key of the first device, the second information of the digital key of the second device, and the third information of the third device;
[0310] The first information is used to authenticate the validity of the digital key of the first device, the second information is used to authenticate the validity of the digital key of the second device, and the third information is used to authenticate the validity of the digital key of the third device.
[0311] As an optional implementation manner, the first information and the second information are determined according to information carried in the key creation request;
[0312] The third information is determined according to the information carried in the key import request.
[0313] Based on the same inventive concept, the embodiment of the present disclosure also provides a method for sharing a digital key. The implementation of this method can refer to the implementation of the above method, and the repeated parts will not be repeated.
[0314] As shown in Figure 10, the implementation process of this method is as follows:
[0315] Step 1000: The second device sends a key creation request to the third device; wherein the second device has a digital key, and the digital key of the second device is obtained by sharing the digital key with the first device;
[0316] Step 1001: The third device generates information to be authenticated according to the key creation request, and sends a key signature request to the second device, where the key signature request includes the information to be authenticated.
[0317] Step 1002: The second device authenticates the information to be authenticated in the key signature request, generates key authentication information, and sends a key import request to the third device, the key import request including the key authentication information; wherein the key authentication information is used to determine the digital key of the third device;
[0318] Step 1003: The third device saves the key authentication information in the key import request.
[0319] As an optional implementation, the key creation request includes second authentication information obtained by the second device from the first device;
[0320] The key creation request is used to instruct the third device to generate the information to be authenticated according to the second authentication information and the third authentication information of the third device.
[0321] As an optional embodiment, the second authentication information includes first authentication information of at least one digital key obtained from the first device, and the first authentication information includes an anti-theft token and / or a slot identifier, wherein the anti-theft token and the slot identifier are one-to-one corresponding.
[0322] As an optional implementation, the second device determines the maximum number of digital keys for sharing based on the number of first authentication information included in the second authentication information.
[0323] As an optional implementation, the key creation request further includes an anti-theft token assigned by the second device to the third device from the anti-theft token included in the first authentication information;
[0324] The second device adds the anti-theft token assigned to the third device to the key authentication information, so that the third device determines the digital key according to the anti-theft token;
[0325] The second device comprises anti-theft tokens of different levels, and the anti-theft tokens of the second device are allocated by the first device.
[0326] As an optional implementation, the level of the anti-theft token is used to determine whether the device that owns the anti-theft token has the function of sharing the anti-theft token with other devices again; the different levels of anti-theft tokens include:
[0327] a primary anti-theft token and at least one secondary anti-theft token, wherein the primary anti-theft token is used by the second device and the secondary anti-theft token is allocated by the second device to the third device; or
[0328] At least one first-level anti-theft token and at least one second-level anti-theft token, wherein one first-level anti-theft token corresponds to one second-level anti-theft token, and different first-level anti-theft tokens correspond to different second-level anti-theft tokens, the first-level anti-theft token is used for the second device, and the second-level anti-theft token is allocated by the second device to the third device for use.
[0329] As an optional implementation,
[0330] When a second device distributes the secondary anti-theft token to a third device, other second devices cannot distribute the secondary anti-theft token to other third devices again.
[0331] As an optional implementation,
[0332] If the second device only includes one level of anti-theft token, the second device cannot distribute its own anti-theft token to the third device.
[0333] As an optional implementation,
[0334] Different levels of anti-theft tokens contained in the second device are stored in different fields, where the different fields include a first field and a second field;
[0335] The second device determines the anti-theft token allocated to the third device from the anti-theft token stored in the second field.
[0336] As an optional implementation manner, the key creation request further includes a key parameter, and the key parameter is used by the third device to generate a shared key;
[0337] The key signature request also includes the shared key, which is used by the second device to verify the shared key of the third device. If the verification is successful and the key authentication information is generated after authenticating the information to be authenticated in the key signature request, a key import request is sent to the third device.
[0338] As an optional implementation manner, the key creation request includes permission configuration information of the digital key of the third device, where the permission configuration information is used to indicate the control range of the digital key over the vehicle in terms of time and / or space, and a lower permission level in the permission configuration information indicates a smaller control range of the digital key over the vehicle;
[0339] The third device has a lower authority level than the digital key of the second device, and the second device has a lower authority level than the digital key of the first device.
[0340] As an optional implementation, the method further includes:
[0341] If the permission level of the digital key of the second device is the lowest level, the second device does not have the permission to share the digital key with the third device.
[0342] As an optional implementation,
[0343] The authority configuration information of the digital key of the third device is determined based on the vehicle usage scenario; wherein, different vehicle usage scenarios correspond to different authority configuration information, and different authority configuration information is used to control the vehicle differently.
[0344] As an optional implementation, the permission configuration information includes any one or more of the following:
[0345] The speed of the vehicle;
[0346] The vehicle's driving range;
[0347] The vehicle's trajectory;
[0348] The sharing duration of the shared digital key, where the sharing duration indicates the length of time the third device can use the shared digital key;
[0349] Shared digital keys provide control over the vehicle;
[0350] The reclaiming condition of the shared digital key indicates the condition for determining that the shared digital key is invalid.
[0351] As an optional implementation,
[0352] If the vehicle usage scenario is a valet parking scenario, the permission configuration information includes: the vehicle's driving speed is less than a first speed threshold and / or a range threshold; when the vehicle enters the parking space and parks for more than a first time threshold, the vehicle's driving function is turned off; when the vehicle enters the parking space and parks for more than a second time threshold, the shared digital key is reclaimed, wherein the second time threshold is greater than the first time threshold; or,
[0353] If the vehicle usage scenario is a maintenance scenario, the permission configuration information includes: the sharing duration of the shared digital key is less than a duration threshold, and when the sharing duration is greater than or equal to the duration threshold, the shared digital key is reclaimed; or,
[0354] If the vehicle usage scenario is a car wash scenario, the permission configuration information includes: when the vehicle's driving speed is less than a second speed threshold, turning off the vehicle display screen; when the vehicle's driving speed is greater than or equal to the second speed threshold, reclaiming the shared digital key; or,
[0355] If the vehicle usage scenario is a refueling scenario, the permission configuration information includes: when the vehicle's driving speed is less than a third speed threshold, the vehicle is turned off and the refueling port or charging port is opened; when the vehicle's driving speed is greater than or equal to the third speed threshold, the shared digital key is recovered; or,
[0356] If the vehicle usage scenario is a valet vehicle pickup or return scenario, the permission configuration information includes: when the degree to which the vehicle's driving trajectory deviates from the preset trajectory is less than a trajectory threshold, when the degree to which the vehicle's driving trajectory deviates from the preset trajectory is greater than or equal to the trajectory threshold, the shared digital key is recovered; or,
[0357] If the vehicle usage scenario is to pick up or put items on behalf of others, the permission configuration information includes: the shared digital key only has the permission to open the vehicle door or trunk; when the vehicle door or trunk is opened and closed once, or when an item is detected to be taken away from the vehicle or placed in the vehicle, the shared digital key is recovered.
[0358] As an optional implementation manner, the key signature request sent by the third device further includes trust endorsement information, and the trust endorsement information is used to provide the third device with a valid basis for using the digital key;
[0359] The second device and / or the first device confirms the trust endorsement information and determines whether the digital key of the third device is valid based on the confirmation result.
[0360] As an optional implementation,
[0361] The second device confirms the trust endorsement information in the key signature request when generating the key import request; and / or,
[0362] During the process of registering the digital key of the third device with the vehicle server, upon receiving the key confirmation request sent by the vehicle server, the first device confirms the trust endorsement information in the key confirmation request.
[0363] As an optional implementation, the trust endorsement information includes any one or more of the following:
[0364] Contract information;
[0365] Server authentication information obtained by authenticating the third authentication information of the third device through a trusted server;
[0366] Pre-signed information of the first device.
[0367] As an optional implementation manner, the digital key of the third device includes the first information of the digital key of the first device, the second information of the digital key of the second device, and the third information of the third device;
[0368] The first information is used to authenticate the validity of the digital key of the first device, the second information is used to authenticate the validity of the digital key of the second device, and the third information is used to authenticate the validity of the digital key of the third device.
[0369] As an optional implementation manner, the first information and the second information are determined according to information carried in the key creation request;
[0370] The third information is determined according to the information carried in the key import request.
[0371] Based on the same inventive concept, an embodiment of the present disclosure provides a terminal that can implement the functions of any digital key sharing method discussed above. Please refer to Figure 11. The device includes a processor 1100 and a memory 1101, and the memory 1101 is used to store program instructions; the processor 1100 is used to call the program instructions stored in the memory 1101, and execute the steps included in any digital key sharing method in the above embodiments according to the obtained program instructions.
[0372] The embodiments of the present disclosure do not limit the specific connection medium between the memory 1101 and the processor 1100. For example, the memory 1101 and the processor 1100 are connected via a bus, which can be divided into an address bus, a data bus, a control bus, and the like.
[0373] The memory 1101 may include a read-only memory (ROM) and a random access memory (RAM), and may also include a non-volatile memory (NVM), such as at least one disk storage. Alternatively, the memory may be at least one storage device located away from the processor.
[0374] The processor 1100 may be a general-purpose processor, including a central processing unit (CPU), a network processor (NP), etc.; it may also be a digital signal processing (DSP), an application-specific integrated circuit (ASIC), a field programmable gate array (FPGA) or other programmable logic device, a discrete gate or transistor logic device, a discrete hardware component, etc.
[0375] Based on the same inventive concept, the embodiment of the present disclosure also provides a system for sharing digital keys. Since the system is the system in the method in the embodiment of the present disclosure, and the principle of solving the problem by the system is similar to that of the method, the implementation of the system can refer to the implementation of the method, and the repeated parts will not be repeated.
[0376] As shown in FIG12 , the system includes a second device 1200 and a third device 1201 , wherein:
[0377] The second device 1200 sends a key creation request to the third device 1201; wherein the second device 1200 has a digital key, and the digital key of the second device 1200 is obtained by sharing the digital key with the first device;
[0378] The third device 1201 generates information to be authenticated according to the key creation request, and sends a key signature request to the second device 1200, where the key signature request includes the information to be authenticated;
[0379] The second device 1200 authenticates the information to be authenticated in the key signature request, generates key authentication information, and sends a key import request to the third device 1201, where the key import request includes the key authentication information; wherein the key authentication information is used to determine the digital key of the third device 1201;
[0380] The third device 1201 saves the key authentication information in the key import request.
[0381] Based on the same inventive concept, embodiments of the present disclosure provide a computer storage medium comprising computer program code. When executed on a computer, the computer program code causes the computer to execute any of the digital key sharing methods discussed above. Because the principles underlying the problem solved by the computer storage medium are similar to those of the digital key sharing method, the implementation of the computer storage medium can be referenced to the implementation of the method, and any repetitions will not be repeated.
[0382] In a specific implementation process, computer storage media may include: Universal Serial Bus Flash Drive (USB), mobile hard disk, Read-Only Memory (ROM), Random Access Memory (RAM), magnetic disk or optical disk, and other storage media that can store program code.
[0383] Based on the same inventive concept, embodiments of the present disclosure further provide a computer program product comprising computer program code that, when executed on a computer, causes the computer to execute any of the digital key sharing methods discussed above. Because the principles underlying the problems solved by the aforementioned computer program products are similar to those of the digital key sharing methods, the implementation of the aforementioned computer program products can be referenced to the implementation of the methods, and any repetitions will not be repeated.
[0384] The computer program product can employ any combination of one or more readable media. The readable medium can be a readable signal medium or a readable storage medium. The readable storage medium can be, for example, but not limited to, an electrical, magnetic, optical, electromagnetic, infrared, or semiconductor system, device or component, or any combination thereof. More specific examples (non-exhaustive list) of readable storage media include: an electrical connection with one or more wires, a portable disk, a hard disk, a random access memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disk read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination thereof.
[0385] Those skilled in the art will appreciate that the embodiments of the present disclosure may be provided as methods, systems, or computer program products. Therefore, the present disclosure may take the form of a complete hardware embodiment, a complete software embodiment, or an embodiment combining software and hardware. Furthermore, the present disclosure may take the form of a computer program product implemented on one or more computer-usable storage media (including but not limited to magnetic disk storage and optical storage, etc.) containing computer-usable program code.
[0386] The present disclosure is described with reference to the flowcharts and / or block diagrams of the methods, devices (systems), and computer program products according to the embodiments of the present disclosure. It should be understood that each process and / or box in the flowchart and / or block diagram, as well as the combination of the processes and / or boxes in the flowchart and / or block diagram, can be implemented by computer program instructions. These computer program instructions can be provided to a processor of a general-purpose computer, a special-purpose computer, an embedded processor, or other programmable data processing device to produce a machine, so that the instructions executed by the processor of the computer or other programmable data processing device produce a device for implementing the functions specified in one or more processes in the flowchart and / or one or more boxes in the block diagram.
[0387] These computer program instructions may also be stored in a computer-readable memory that can direct a computer or other programmable data processing device to operate in a specific manner, so that the instructions stored in the computer-readable memory produce a manufactured product including an instruction device that implements the functions specified in one or more processes in the flowchart and / or one or more boxes in the block diagram.
[0388] These computer program instructions can also be loaded onto a computer or other programmable data processing device so that a series of operating steps are executed on the computer or other programmable device to produce a computer-implemented process, so that the instructions executed on the computer or other programmable device provide steps for implementing the functions specified in one or more processes in the flowchart and / or one or more boxes in the block diagram.
[0389] Obviously, those skilled in the art may make various changes and modifications to the present disclosure without departing from the spirit and scope of the present disclosure. Thus, if these modifications and variations of the present disclosure fall within the scope of the claims of the present disclosure and their equivalents, the present disclosure is intended to include these modifications and variations.
Claims
1. A method for sharing digital keys. in, The method includes: The second device sends a key creation request to the third device, for instructing the third device to generate information to be authenticated, wherein the second device has a digital key, and the digital key of the second device is obtained by sharing the digital key with the first device; The second device receives the key signature request sent by the third device, authenticates the information to be authenticated in the key signature request, and generates key authentication information; The second device sends a key import request to the third device to instruct the third device to save the key authentication information in the key import request, wherein the key authentication information is used to determine the digital key of the third device.
2. The method according to claim 1, in, The key creation request includes second authentication information obtained by the second device from the first device; The key creation request is used to instruct the third device to generate the information to be authenticated according to the second authentication information and the third authentication information of the third device.
3. The method according to claim 2, in, The second authentication information includes first authentication information of at least one digital key obtained from the first device, and the first authentication information includes an anti-theft token and / or a slot identifier, wherein the anti-theft token and the slot identifier are in one-to-one correspondence.
4. The method according to claim 3, in, The second device determines a maximum number of digital keys for sharing according to the number of first authentication information included in the second authentication information.
5. The method according to claim 3, in, The key creation request also includes an anti-theft token assigned by the second device to the third device from the anti-theft token included in the first authentication information; The second device adds the anti-theft token assigned to the third device to the key authentication information, so that the third device determines the digital key according to the anti-theft token; The second device includes anti-theft tokens of different levels, and the anti-theft tokens of the second device It is allocated by the first device.
6. The method according to claim 5, in, The level of the anti-theft token is used to determine whether the device that owns the anti-theft token has the function of sharing the anti-theft token with other devices again; the different levels of anti-theft tokens include: a primary anti-theft token and at least one secondary anti-theft token, wherein the primary anti-theft token is used by the second device and the secondary anti-theft token is used by the second device and is allocated to the third device; or, At least one first-level anti-theft token and at least one second-level anti-theft token, wherein one first-level anti-theft token corresponds to one second-level anti-theft token, different first-level anti-theft tokens correspond to different second-level anti-theft tokens, the first-level anti-theft token is used for the second device, and the second-level anti-theft token is allocated by the second device to the third device for use.
7. The method according to claim 6, in, When a second device distributes the secondary anti-theft token to a third device, other second devices cannot distribute the secondary anti-theft token to other third devices again.
8. The method according to claim 5, in, If the second device only includes one level of anti-theft token, the second device cannot distribute its own anti-theft token to the third device.
9. The method according to claim 5, in, Different levels of anti-theft tokens contained in the second device are stored in different fields, wherein the different fields include a first field and a second field; The second device determines the anti-theft token assigned to the third device from the anti-theft token stored in the second field.
10. The method according to any one of claims 1 to 9, in, The key creation request further includes a key parameter, and the key parameter is used by the third device to generate a shared key; The key signature request also includes the shared key, which is used by the second device to authenticate the shared key of the third device. If the authentication is successful and the key authentication information is generated after authenticating the information to be authenticated in the key signature request, a key import request is sent to the third device.
11. The method according to any one of claims 1 to 9, in, The key creation request includes permission configuration information of the digital key of the third device, where the permission configuration information is used to indicate the control range of the digital key over the vehicle in terms of time and / or space, and the lower the permission level in the permission configuration information, the smaller the control range of the digital key over the vehicle; The third device has a lower authority level than the digital key of the second device, and the second device has a lower authority level than the digital key of the first device.
12. The method according to claim 11, in, The method further includes: If the permission level of the digital key of the second device is the lowest level, the second device does not have the permission to share the digital key with the third device.
13. The method according to claim 11, in, The authority configuration information of the digital key of the third device is determined based on the vehicle usage scenario; wherein, different vehicle usage scenarios correspond to different authority configuration information, and different authority configuration information is used to perform different controls on the vehicle.
14. The method according to claim 11, in, The permission configuration information includes any one or more of the following: The speed of the vehicle; The vehicle's driving range; The vehicle's trajectory; The sharing duration of the shared digital key, where the sharing duration indicates the duration during which the third device can use the shared digital key; The shared digital key controls the vehicle; The reclaiming condition of the shared digital key indicates the condition for determining that the shared digital key is invalid.
15. The method according to claim 14, in, If the vehicle usage scenario is a valet parking scenario, the permission configuration information includes: the vehicle's driving speed is less than a first speed threshold and / or a range threshold; when the vehicle enters the parking space and parks for more than a first time threshold, the vehicle's driving function is turned off; when the vehicle enters the parking space and parks for more than a second time threshold, the vehicle's driving function is turned off; When the second time threshold is reached, the shared digital key is recovered, wherein the second time threshold is greater than the first time threshold; or If the vehicle usage scenario is a maintenance scenario, the permission configuration information includes: the sharing time of the shared digital key is less than the time threshold, and when the sharing time is greater than or equal to the time threshold, the shared digital key is recovered; or, If the vehicle usage scenario is a car wash scenario, the permission configuration information includes: when the vehicle's driving speed is less than a second speed threshold, the vehicle display screen is turned off; when the vehicle's driving speed is greater than or equal to the second speed threshold, the shared digital key is recovered; or, If the vehicle usage scenario is a refueling scenario, the permission configuration information includes: when the vehicle's driving speed is less than a third speed threshold, the vehicle is turned off and the refueling port or charging port is opened; when the vehicle's driving speed is greater than or equal to the third speed threshold, the shared digital key is recovered; or, If the vehicle usage scenario is a valet vehicle pickup or return scenario, the permission configuration information includes: the degree to which the vehicle's driving trajectory deviates from the preset trajectory is less than a trajectory threshold, and when the degree to which the vehicle's driving trajectory deviates from the preset trajectory is greater than or equal to the trajectory threshold, the shared digital key is recovered; or, If the vehicle usage scenario is to pick up or put items on behalf of others, the permission configuration information includes: the shared digital key only has the permission to open the door or trunk; when the door or trunk is opened and closed once, or when an item is detected to be taken away from the vehicle or placed in the vehicle, the shared digital key is recovered.
16. The method according to any one of claims 1 to 9 and 12 to 15, in, The key signature request sent by the third device also includes trust endorsement information, where the trust endorsement information is used to provide the third device with a valid basis for using the digital key; The second device and / or the first device confirms the trust endorsement information, and determines whether the digital key of the third device is valid according to the confirmation result.
17. The method according to claim 16, in, The second device confirms the trust endorsement information in the key signature request when generating the key import request; and / or, During the process of registering the digital key of the third device with the vehicle server, the first When receiving the key confirmation request sent by the vehicle server, the device confirms the trust endorsement information in the key confirmation request.
18. The method according to claim 16, in, The trust endorsement information includes any one or more of the following: Contract information; Server authentication information obtained by authenticating the third authentication information of the third device through a trusted server; Pre-signed information of the first device.
19. The method according to any one of claims 1 to 9 and 12 to 15, in, The digital key of the third device includes the first information of the digital key of the first device, the second information of the digital key of the second device, and the third information of the third device; The first information is used to authenticate the validity of the digital key of the first device, the second information is used to authenticate the validity of the digital key of the second device, and the third information is used to authenticate the validity of the digital key of the third device.
20. The method according to claim 19, in, The first information and the second information are determined according to the information carried in the key creation request; The third information is determined according to the information carried in the key import request.
21. A method for sharing a digital key. in, The method includes: The third device receives the key creation request sent by the second device and generates information to be authenticated; wherein the second device has a digital key, and the digital key of the second device is obtained by sharing the digital key with the first device; The third device sends a key signature request to the second device, wherein the key signature request includes the information to be authenticated, and is used to instruct the second device to authenticate the information to be authenticated in the key signature request and generate key authentication information; wherein the key authentication information is used to determine the digital key of the third device; The third device receives the key import request sent by the second device, and saves the key authentication information in the key import request.
22. A method for sharing a digital key. in, The method includes: The second device sends a key creation request to the third device; wherein the second device has a digital key, and the digital key of the second device is obtained by sharing the digital key with the first device; The third device generates information to be authenticated according to the key creation request, and sends a key signature request to the second device, wherein the key signature request includes the information to be authenticated; The second device authenticates the information to be authenticated in the key signature request, generates key authentication information, and sends a key import request to the third device, wherein the key import request includes the key authentication information; wherein the key authentication information is used to determine the digital key of the third device; The third device stores the key authentication information in the key import request.
23. A terminal, in, The terminal comprises a processor and a memory, wherein the memory is used to store a program executable by the processor, and the processor is used to read the program in the memory and execute the steps of any one of the methods according to claims 1 to 20.
24. A terminal, in, The terminal includes a processor and a memory, wherein the memory is used to store a program executable by the processor, and the processor is used to read the program in the memory and execute the steps of the method as claimed in claim 21.
25. A digital key sharing system, in, The system includes a second device and a third device, wherein: The second device sends a key creation request to the third device; wherein the second device has a digital key, and the digital key of the second device is obtained by sharing the digital key with the first device; The third device generates information to be authenticated according to the key creation request, and sends a key signature request to the second device, wherein the key signature request includes the information to be authenticated; The second device authenticates the information to be authenticated in the key signature request, generates key authentication information, and sends a key import request to the third device, wherein the key import request includes the key authentication information; wherein the key authentication information is used to determine the digital key of the third device; The third device stores the key authentication information in the key import request.
26. A computer storage medium having a computer program stored thereon, in, When the program is executed by a processor, the steps of the method according to any one of claims 1 to 22 are implemented.
Citation Information
Patent Citations
Authorization method, device and system, electronic lock, digital key, and storage medium
CN109166200A
Delegation secret key sharing method of digital automobile secret key system
CN114785489A
Digital key sharing method and device based on hosting, equipment and medium
CN115426197A
Cascade key delegation system for sharing digital keys associated with vehicles
CN117335966A
Friend Key Sharing
US20210250355A1
Cited By
Digital key sharing method, system and equipment based on trust chain and medium
CN119110289A
