Digital key management method, device and vehicle

By generating long-term key aliases for digital keys and constructing long-term digital key certificates, the incompleteness problem caused by the scattered storage of digital key information is solved, enabling fast and accurate tracking of key status and continuity of the authentication chain, thereby improving the stability and adaptability of digital key applications.

CN123164433APending Publication Date: 2026-11-24XIAN YIPU COMM TECH
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202611637429.0
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2026-10-22
Publication Date
2026-11-24

AI Technical Summary

Technical Problem

In existing technologies, the long-term digital key certificate, long-term key, vehicle identifier, and key identifier corresponding to the digital key are stored and managed in a scattered manner, resulting in incomplete information sharing and difficulty in tracking the key status.

Method used

By generating long-term key aliases for digital keys and combining them with superior certificates and authorized key identifiers, long-term digital key certificates are constructed, unifying and associating certificate information, key materials, and vehicle business identifiers, thereby enhancing the integrity and traceability of the authentication chain.

Benefits of technology

It improves the stability and business adaptability of digital keys in practical applications, and ensures fast and accurate tracking of key status and continuity of the authentication chain.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN123164433A_ABST
    Figure CN123164433A_ABST
Patent Text Reader

Abstract

The embodiment of the application provides a kind of digital key control method, equipment and vehicle.It relates to digital key control technical field.The digital key control method is applied to terminal equipment, and terminal equipment is connected with the communication equipment of vehicle, and digital key control method includes: according to digital key identification, generate digital key long-term key alias, and based on digital key long-term key alias, generate digital key long-term key pair in the security key library of terminal equipment;Load upper-level certificate, and the first subject key identifier in upper-level certificate is as authorized key identifier, and authorized key identifier is used to indicate the signing relationship of upper-level certificate to digital key long-term key pair;Based on long-term public key, second subject key identifier is obtained by construction;Based on the vehicle identification of vehicle, digital key identification, authorized key identifier and second subject key identifier, long-term digital key certificate is structured.The application is used to achieve the effect of fast, accurate key state tracking.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This application relates to the field of digital key control technology, and in particular to a digital key control method, device and vehicle. Background Technology

[0002] In scenarios where smart devices and vehicles are interconnected, users can generate digital keys via their mobile phones, in-vehicle systems, or other HarmonyOS terminal devices to enable functions such as keyless start, door lock control, or vehicle status inquiry. When establishing a session between a smart device and a vehicle, authentication is typically completed first based on the long-term digital key certificate and long-term key corresponding to the digital key. Then, a temporary key is dynamically generated for key exchange and session encryption, and the vehicle identifier and key identifier are bound to the session context.

[0003] In related technologies, the long-term digital key certificate, long-term key, vehicle identifier, and key identifier corresponding to a digital key are often stored and managed separately by independent modules. During use, the long-term digital key certificate, long-term key, vehicle identifier, and key identifier corresponding to the digital key are retrieved from the respective independent modules to form the authorized digital key. This method suffers from incomplete information sharing and difficulty in tracking the key status. Summary of the Invention

[0004] This application provides a digital key management method, device, and vehicle to achieve fast and accurate key status tracking.

[0005] In a first aspect, embodiments of this application provide a digital key management method applied to a terminal device, wherein the terminal device is communicatively connected to a vehicle's communication device, and the digital key management method includes:

[0006] A long-term key alias for the digital key is generated based on the digital key identifier, and a long-term key pair for the digital key is generated in the security key store of the terminal device based on the long-term key alias for the digital key. The long-term key pair for the digital key includes a long-term private key and a long-term public key.

[0007] Load the superior certificate and use the first principal key identifier in the superior certificate as the authorization key identifier. The authorization key identifier is used to indicate the issuance relationship of the superior certificate to the long-term key pair of the digital key.

[0008] Based on the long-term public key, a second principal key identifier is constructed;

[0009] A long-term digital key certificate is constructed based on the vehicle identifier, digital key identifier, authorization key identifier, and second principal key identifier.

[0010] In one possible implementation, if the digital key identifier indicates that the type of digital key is a shared key, then the superior certificate is the user certificate management authority that issued the digital key identifier.

[0011] In one possible implementation, if the digital key identifier indicates that the type of digital key is a vehicle owner's key, then the superior certificate is the terminal device certificate management authority.

[0012] In one possible implementation, a second principal key identifier is constructed based on the long-term public key, including:

[0013] The target public key encoding is extracted from the long-term public key. The target public key encoding is either the original public key point or the standard public key encoding.

[0014] Encode the target public key and perform a key identifier calculation operation to obtain the second principal key identifier.

[0015] In one possible implementation, after constructing a long-term digital key certificate based on the vehicle identifier, digital key identifier, authorization key identifier, and second principal key identifier, the digital key management method includes:

[0016] Write the long-term digital key certificate, vehicle certificate, long-term public key, long-term digital key alias, and status field to a local status object to persistently save key identity information and issuance relationship information.

[0017] In one possible implementation, after constructing a long-term digital key certificate based on the vehicle identifier, digital key identifier, authorization key identifier, and second principal key identifier, the digital key management method includes:

[0018] Send a long-term digital key certificate to the vehicle so that the vehicle can verify the key identity information and issuance relationship information of the long-term digital key certificate based on the authorization key identifier in the long-term digital key certificate;

[0019] Receive the vehicle certificate sent after the issuance chain verification of the long-term digital key certificate is passed, and verify the vehicle's identity based on the vehicle certificate;

[0020] After the vehicle certificate verification is successful, the two-way identity authentication is confirmed, and the business link communication between the terminal device and the vehicle is established.

[0021] Secondly, embodiments of this application provide a digital key management method applied to a communication device in a vehicle, wherein the vehicle and the terminal device are communicatively connected, and the digital key management method includes:

[0022] The terminal device receives a long-term digital key certificate, which includes the vehicle identifier, digital key identifier, authorization key identifier, and second principal key identifier. The authorization key identifier is used to indicate the signing relationship between the superior certificate and the long-term key pair of the digital key, and the second principal key identifier is used to identify the long-term public key of the terminal device.

[0023] Based on the authorized key identifier, the issuance relationship information of the long-term digital key certificate is verified to obtain the issuance verification result;

[0024] Based on the vehicle identifier, the key identity information of the long-term digital key certificate is verified to obtain the ownership verification result;

[0025] If both the issuance verification result and the attribution verification result indicate that the verification is successful, the vehicle certificate is sent to the terminal device so that the terminal device can verify the vehicle's identity based on the vehicle certificate.

[0026] Thirdly, embodiments of this application provide a digital key control device deployed on a terminal device, the terminal device being communicatively connected to the vehicle's communication equipment. The digital key control device includes:

[0027] The acquisition module is used to generate a long-term key alias for the digital key based on the digital key identifier, and generate a long-term key pair for the digital key in the security key store of the terminal device based on the long-term key alias for the digital key. The long-term key pair for the digital key includes a long-term private key and a long-term public key. The module also loads the superior certificate and uses the first principal key identifier in the superior certificate as the authorization key identifier. The authorization key identifier is used to indicate the signing relationship of the superior certificate to the long-term key pair for the digital key.

[0028] The processing module is used to construct a second principal key identifier based on the long-term public key; and to construct a long-term digital key certificate based on the vehicle identifier, digital key identifier, authorization key identifier, and second principal key identifier.

[0029] In one possible implementation, if the digital key identifier indicates that the type of digital key is a shared key, then the superior certificate is the user certificate management authority that issued the digital key identifier.

[0030] In one possible implementation, if the digital key identifier indicates that the type of digital key is a vehicle owner's key, then the superior certificate is the terminal device certificate management authority.

[0031] In one possible implementation, the processing module is specifically used to: extract a target public key encoding from the long-term public key, wherein the target public key encoding is an original public key point or a standard public key encoding; and perform a key identifier calculation operation on the target public key encoding to obtain a second principal key identifier.

[0032] In one possible implementation, after constructing a long-term digital key certificate based on the vehicle identifier, digital key identifier, authorization key identifier, and second principal key identifier, the processing module is further configured to: write the long-term digital key certificate, vehicle certificate, long-term public key, digital key long-term key alias, and status field into a local status object to persistently save key identity information and issuance relationship information.

[0033] In one possible implementation, after constructing a long-term digital key certificate based on the vehicle identifier, digital key identifier, authorization key identifier, and second principal key identifier, the processing module is further configured to: send the long-term digital key certificate to the vehicle so that the vehicle can verify the key identity information and issuance relationship information of the long-term digital key certificate according to the authorization key identifier in the long-term digital key certificate; receive the vehicle certificate sent by the vehicle after the issuance chain verification of the long-term digital key certificate is passed, and verify the identity of the vehicle according to the vehicle certificate; after the vehicle certificate verification is passed, determine that the two-way identity authentication is passed, and establish the business link communication between the terminal device and the vehicle.

[0034] Fourthly, embodiments of this application provide a digital key control device applied to a communication device in a vehicle, wherein the vehicle and a terminal device are communicatively connected. The digital key control device includes:

[0035] The acquisition module is used to receive the long-term digital key certificate sent by the terminal device. The long-term digital key certificate includes the vehicle identifier, digital key identifier, authorization key identifier, and second principal key identifier. The authorization key identifier is used to indicate the signing relationship of the superior certificate to the long-term key pair of the digital key, and the second principal key identifier is used to identify the long-term public key of the terminal device.

[0036] The processing module is used to verify the issuance relationship information of the long-term digital key certificate based on the authorized key identifier and obtain the issuance verification result; to verify the key identity information of the long-term digital key certificate based on the vehicle identifier and obtain the ownership verification result; if both the issuance verification result and the ownership verification result indicate that the verification is successful, the module sends the vehicle certificate to the terminal device so that the terminal device can verify the vehicle's identity based on the vehicle certificate.

[0037] Fifthly, embodiments of this application provide a terminal device, including: a memory and a processor;

[0038] The memory stores instructions that the computer executes;

[0039] The processor executes computer execution instructions stored in memory, causing the processor to perform the first aspect and / or various possible implementations of the first aspect as described above.

[0040] Sixthly, embodiments of this application provide a communication device, including: a memory and a processor;

[0041] The memory stores instructions that the computer executes;

[0042] The processor executes computer execution instructions stored in memory, causing the processor to perform the second aspect and / or various possible implementations of the second aspect as described above.

[0043] In a seventh aspect, embodiments of this application provide a vehicle in which communication devices as described in the sixth aspect and / or various possible implementations of the sixth aspect are deployed.

[0044] Eighthly, embodiments of this application provide a computer-readable storage medium storing computer-executable instructions, which, when executed by a processor, are used to implement the first aspect and / or various possible implementations of the first aspect, and / or the second aspect and / or various possible implementations of the second aspect.

[0045] Ninthly, embodiments of this application provide a computer program product, including a computer program that, when executed by a processor, implements the first aspect and / or various possible implementations of the first aspect, and / or the second aspect and / or various possible implementations of the second aspect.

[0046] The digital key management method, device, and vehicle provided in this application establish a long-term key alias and generate a long-term key pair based on the digital key identifier, enabling the key materials of the digital key to form a stable identity foundation in the secure key store. Subsequently, by loading the superior certificate and introducing the authorization key identifier, the signing relationship between the superior certificate and the long-term key pair of the digital key can be clearly defined. Then, a second principal key identifier is constructed based on the long-term public key. Combining the vehicle identifier, digital key identifier, authorization key identifier, and second principal key identifier to construct a long-term digital key certificate can uniformly associate certificate information, key materials, and vehicle business identifier, thereby enhancing the integrity, traceability, and continuity of the authentication chain and improving the stability and business adaptability of the digital key in practical applications. Attached Figure Description

[0047] The accompanying drawings, which are incorporated in and form part of this specification, illustrate embodiments consistent with this application and, together with the description, serve to explain the principles of this application.

[0048] Figure 1 A schematic diagram illustrating a scenario for the digital key management method provided in this application embodiment;

[0049] Figure 2 A flowchart illustrating a digital key management method provided in an embodiment of this application;

[0050] Figure 3 A flowchart illustrating step S203 of the digital key management method provided in an embodiment of this application;

[0051] Figure 4 A flowchart illustrating a digital key management method provided in an embodiment of this application;

[0052] Figure 5 This is a schematic diagram of the structure of the digital key control device provided in the embodiments of this application;

[0053] Figure 6 This is a schematic diagram of the structure of the digital key control device provided in the embodiments of this application;

[0054] Figure 7 This is a schematic diagram of the structure of the terminal device provided in the embodiments of this application;

[0055] Figure 8 This is a schematic diagram of the structure of a communication device provided in an embodiment of this application.

[0056] The accompanying drawings illustrate specific embodiments of this application, which will be described in more detail below. These drawings and descriptions are not intended to limit the scope of the concept in any way, but rather to illustrate the concept of this application to those skilled in the art through reference to particular embodiments. Detailed Implementation

[0057] Exemplary embodiments will now be described in detail, examples of which are illustrated in the accompanying drawings. When the following description relates to the drawings, unless otherwise indicated, the same numbers in different drawings represent the same or similar elements. The embodiments described in the following exemplary embodiments do not represent all embodiments consistent with this application. Rather, they are merely examples of apparatuses and methods consistent with some aspects of this application.

[0058] Digital key management technology belongs to the field of vehicle connectivity and terminal security authentication. It is applicable to identity verification, permission verification, and key management between terminal devices and vehicle communication devices. Terminal devices typically generate and use digital keys during remote vehicle control, shared authorization, and cross-device authentication processes, using long-term certificates and session keys to complete access and control of the vehicle.

[0059] In related technologies, long-term key pairs, superior certificates, and service identifiers are maintained separately within the terminal device. During use, information such as the superior certificate and service identifier are retrieved to support certificate chain verification and subsequent authentication processes. However, long-term key pairs, superior certificates, and service identifiers are often managed in different modules, lacking a unified organizational method for associating certificates with service identifiers. The mapping relationship between generated certificates and their local states is also unclear, and the synchronization of materials and the continuity of authentication after temporary key exchange are also prone to disruption.

[0060] The digital key management method provided in this application establishes a long-term key alias and generates a long-term key pair based on the digital key identifier, enabling the key materials of the digital key to form a stable identity foundation in the secure key store. Then, by loading the superior certificate and introducing the authorization key identifier, the signing relationship between the superior certificate and the long-term key pair of the digital key can be clearly defined. Subsequently, a second principal key identifier is constructed based on the long-term public key. Combining the vehicle identifier, digital key identifier, authorization key identifier, and second principal key identifier to construct a long-term digital key certificate can uniformly associate certificate information, key materials, and vehicle business identifier, thereby enhancing the integrity, traceability, and continuity of the authentication chain and improving the stability and business adaptability of the digital key in practical applications.

[0061] Figure 1 This is a schematic diagram illustrating a scenario of the digital key management method provided in the embodiments of this application, such as... Figure 1 As shown, the specific application scenarios of this application embodiment include terminal device 11 and vehicle 12, wherein:

[0062] Terminal device 11 and vehicle 12 are connected in communication. Terminal device 11 maintains a long-term digital key certificate using a digital key management method. When a feasible communication connection is established between terminal device 11 and vehicle 12, the certificate chain is verified using the long-term digital key certificate.

[0063] The technical solution of this application and how it solves the above-mentioned technical problems will be described in detail below with specific embodiments. These specific embodiments can be combined with each other, and the same or similar concepts or processes may not be described again in some embodiments. The embodiments of this application will be described below with reference to the accompanying drawings.

[0064] Figure 2 This is a flowchart illustrating a digital key control method provided in an embodiment of this application. Figure 2 As shown, this digital key control method is applied to a terminal device, which is connected to the vehicle's communication equipment. The digital key control method includes:

[0065] S201. Generate a long-term key alias for the digital key based on the digital key identifier, and generate a long-term key pair for the digital key in the security key store of the terminal device based on the long-term key alias for the digital key. The long-term key pair for the digital key includes a long-term private key and a long-term public key.

[0066] Digital key identifiers are used to identify digital key business objects to be managed.

[0067] Long-term key aliases for digital keys are used to uniquely identify and manage long-term key pairs within the secure key store of a terminal device. This ensures that the long-term private key and long-term public key form a searchable, callable, and distinguishable key entity on the terminal device side. The secure key store is a storage area within the terminal device used for the protected storage and generation of key materials. Long-term key aliases are used within this secure key store to generate long-term key pairs, ensuring the protected storage and manageability of key materials.

[0068] Optionally, the terminal device is a HarmonyOS device.

[0069] A digital key long-term key pair consists of a long-term private key and a long-term public key. The long-term private key is the private key portion of the digital key long-term key pair and is used for key operations related to long-term identity. The long-term public key is the public key portion of the digital key long-term key pair and is used for public key association in certificates and construction of the subject key identifier.

[0070] Optionally, after receiving the digital key identifier, the terminal device first formats or encodes the digital key identifier to generate a long-term key alias that corresponds one-to-one with the digital key identifier. Then, using the long-term key alias as the index name in the security key store, it calls the key generation interface to create a long-term private key and a long-term public key within the security boundary, and establishes a binding relationship between the long-term private key and the long-term public key and the long-term key alias.

[0071] Optionally, the terminal device can first create an alias entry in the local key management module, and then the security key library can create a key pair based on the entry and backfill the storage identifier to ensure that the correspondence between key materials and business objects is solidified in the generation stage.

[0072] Through the above process, the terminal device can perform subsequent key calls and management information maintenance around the long-term key alias of the digital key, so that the long-term key pair always maintains the same identity context as the corresponding digital key.

[0073] S202. Load the superior certificate and use the first principal key identifier in the superior certificate as the authorization key identifier. The authorization key identifier is used to indicate the issuance relationship of the superior certificate to the long-term key pair of the digital key.

[0074] The higher-level certificate is the certificate used to issue long-term key pairs for digital keys. The first principal key identifier (PKI) is the principal key identifier field in the higher-level certificate. When used as an authorization key identifier, the PKI directly transmits the issuing source of the higher-level certificate into the subsequent digital key management chain.

[0075] The authorization key identifier is used to indicate the signing relationship between the superior certificate and the long-term key pair of the digital key, and thus can reflect the authorization source of the key pair when constructing a long-term digital key certificate.

[0076] Optionally, the terminal device reads the superior certificate from a local certificate store, storage medium, or security key store. Then, it parses the subject of the superior certificate, extracts the first subject key identifier from the superior certificate, and writes the first subject key identifier into the local state as the authorization key identifier.

[0077] Optionally, after loading the superior certificate, the terminal device can also save the authorized key identifier and the corresponding digital key long-term key alias generated in the previous step, so that when processing the same digital key long-term key pair in the future, the source of its superior certificate can be directly traced.

[0078] The authorization key identifier, as a representation field of the signing relationship, together with the long-term private key, long-term public key, and subsequent certificate fields, constitutes a complete certificate chain. The existence of the authorization key identifier allows terminal devices to directly reuse the parsed identification information to complete the binding without having to deduce the upstream source again when generating a long-term digital key certificate.

[0079] S203. Based on the long-term public key, construct the second principal key identifier.

[0080] The second principal key identifier is used to identify the long-term public key, enabling it to participate in the construction of a long-term digital key certificate in a recognizable manner. The second principal key identifier is generated from the long-term public key, typically processed within the terminal device according to predetermined rules, allowing it to work in conjunction with the authorization key identifier to point to the principal public key of the key pair and its superior issuing source, respectively.

[0081] Optionally, the terminal device reads the long-term public key corresponding to the long-term key alias of the digital key in the context of the security key store, performs a predetermined identifier construction operation on the long-term public key, and obtains a second principal key identifier that corresponds one-to-one with the long-term public key.

[0082] Optionally, the second principal key identifier can also be generated and written to a local record immediately after key generation, so that it can be directly called when constructing a certificate later.

[0083] The second principal key identifier maintains consistency with the long-term public key, enabling the terminal device to accurately reflect the principal identity of the current key pair at the certificate level and providing clear public key association information for subsequent vehicle-side verification.

[0084] Based on the above processing, the terminal device generates a referable identifier corresponding to the long-term public key without changing the content of the long-term public key itself, thereby providing a standardized key body field for long-term digital key certificates.

[0085] S204. Construct a long-term digital key certificate based on the vehicle identifier, digital key identifier, authorization key identifier, and second principal key identifier.

[0086] Vehicle identification marks are used to indicate the vehicle's identity.

[0087] The vehicle identifier, digital key identifier, authorization key identifier, and second principal key identifier are written together into the corresponding fields of the long-term digital key certificate to form a certificate structure for digital key management.

[0088] In one possible embodiment, the terminal device fills in the fields of the vehicle identifier, digital key identifier, authorization key identifier, and second principal key identifier according to a predetermined certificate template to generate a long-term digital key certificate containing vehicle identity, key identity, issuing source, and principal public key identifier. Then, the long-term digital key certificate is associated and stored with the long-term digital key alias and the long-term digital key pair.

[0089] Once a long-term digital key certificate is generated, it can be used to represent vehicle identity, key identity, and key certificate issuance information. This enables terminal devices to organize vehicle identity, key identity, and certificate issuance relationships within a verifiable certificate structure, ensuring that subsequent authentication links remain continuous and traceable.

[0090] The digital key management method provided in this application establishes a long-term key alias and generates a long-term key pair based on the digital key identifier, enabling the key materials of the digital key to form a stable identity foundation in the secure key store. Then, by loading the superior certificate and introducing the authorization key identifier, the signing relationship between the superior certificate and the long-term key pair of the digital key can be clearly defined. Subsequently, a second principal key identifier is constructed based on the long-term public key. Combining the vehicle identifier, digital key identifier, authorization key identifier, and second principal key identifier to construct a long-term digital key certificate can uniformly associate certificate information, key materials, and vehicle business identifier, thereby enhancing the integrity, traceability, and continuity of the authentication chain and improving the stability and business adaptability of the digital key in practical applications.

[0091] In one possible implementation, if the digital key identifier indicates that the type of digital key is a shared key, then the superior certificate is the user certificate management authority that issued the digital key identifier.

[0092] Digital key identifiers are used to characterize the type attributes of digital keys and distinguish shared authorization scenarios from other types of digital keys.

[0093] The User Certificate Authority (PCA) is a certificate issuing authority corresponding to the user-side authorization chain. The PCA's issuance results can reflect the source relationship of the shared key.

[0094] Optionally, when the terminal device generates a long-term digital key certificate, the terminal device first parses the type information indicated by the digital key identifier. When the type indicated by the digital key identifier is a shared key, the terminal device selects the certificate corresponding to the user certificate management authority that issued the digital key identifier from the local certificate materials as the superior certificate, and associates and saves the superior certificate with the long-term digital key pair.

[0095] Optionally, the user certificate authority certificate can be provided simultaneously by the vehicle side or the user authorization management side during the issuance of the shared key. The terminal device establishes an issuance link consistent with the shared key based on this, and uses this link as the certificate source basis when constructing long-term digital key certificates in the future.

[0096] By using the above method, the superior certificate corresponding to the shared key is limited to the user certificate management authority that issued the digital key identifier. This enables the terminal device to keep the certificate issuance relationship of the shared key consistent with the user authorization relationship, makes the issuance source of the long-term digital key certificate traceable, and provides a clear superior certificate basis for the certificate chain verification and shared authorization matching process. This makes the certificate management and authentication relationship in the shared key scenario clearer.

[0097] In one possible implementation, if the digital key identifier indicates that the type of digital key is a vehicle owner's key, then the superior certificate is the terminal device certificate management authority.

[0098] In the case of vehicle owner keys, the superior certificate is limited to the terminal device certificate management authority.

[0099] The terminal device certificate management authority is the certificate issuing entity on the terminal device side. The terminal device certificate management authority can be pre-installed in the local certificate storage area of ​​the terminal device, or obtained from the trusted configuration when loading certificate materials, and is associated with the long-term certificate issuance chain corresponding to the vehicle owner key.

[0100] Optionally, after receiving the digital key identifier, the terminal device can first parse the encoded content of the digital key identifier to identify whether the current digital key belongs to the vehicle owner key type. When the parsing result shows that the current digital key belongs to the vehicle owner key, the terminal device will determine the terminal device certificate management authority as the superior certificate, and accordingly load the certificate chain material matching the terminal device certificate management authority to continue to complete the construction and verification of the long-term private key, long-term public key, and long-term digital key certificate.

[0101] Since the issuing entity corresponding to the vehicle owner's key is fixed to the terminal device certificate management authority, the terminal device can directly confirm the certificate source and trace the issuing relationship based on the superior certificate, and keep the vehicle owner's key consistent with the trust system on the terminal device side.

[0102] In this approach, the issuance of vehicle owner keys is uniformly handled by the terminal device certificate management authority, establishing a clear mapping between the digital key identifier and the higher-level certificate. When generating and verifying long-term digital key certificates, the terminal device can directly use this mapping for certificate matching and identity verification, thus making the certificate organization in the vehicle owner key scenario clearer and maintaining the consistency of authentication materials.

[0103] Figure 3 This is a flowchart illustrating step S203 of a digital key control method provided in an embodiment of this application. Figure 3 As shown, in this embodiment... Figure 2 Based on the embodiments, the digital key management method is described in detail, which includes:

[0104] In one possible implementation, step S203 may further include:

[0105] S2031. Extract the target public key encoding from the long-term public key. The target public key encoding is either the original public key point or the standard public key encoding.

[0106] The target public key encoding is a public key representation extracted from the long-term public key for computation.

[0107] Optionally, when the long-term public key is stored directly as elliptic curve point data, the target public key can be encoded as the original public key points. The original public key points can directly reflect the point coordinate information of the long-term public key.

[0108] Optionally, when the long-term public key has already been encoded and encapsulated, the target public key encoding can be a standard public key encoding. Standard public key encoding standardizes the public key data representation, facilitating consistency across different storage and transmission formats.

[0109] Optionally, after loading the long-term public key, the terminal device first parses the data structure of the long-term public key, extracts the point coordinate information in the long-term public key, obtains the original public key points, and forms the target public key code.

[0110] Optionally, after loading the long-term public key, the terminal device first parses the data structure of the long-term public key, extracts the encoded field information in the long-term public key, and obtains the standard public key encoding to form the target public key encoding.

[0111] S2032. Encode the target public key and perform a key identifier calculation operation to obtain the second principal key identifier.

[0112] When the target public key code is the original public key point, the target public key code can be directly used as the input for key identifier calculation.

[0113] When the target public key encoding is a standard public key encoding, it can be directly used as the computation input without needing to be restored again.

[0114] Optionally, the terminal device performs a key identifier calculation operation on the target public key encoding. The calculation operation can use a predetermined digest rule to map the public key encoding into a fixed-length identifier value, and output the identifier value as the second principal key identifier.

[0115] Optionally, the second principal key identifier can be written into the principal-related fields of the long-term digital key certificate for use in subsequent certificate chain verification and identity matching.

[0116] Optionally, if the long-term public key is stored in a different encoding format, the terminal device can still obtain a consistent second principal key identifier by extracting the target public key encoding and executing the same calculation rule.

[0117] Through the above processing, the second principal key identifier can establish a correspondence with the long-term public key and be used in conjunction with other identification information in the long-term digital key certificate, making the principal identification object clear and consistent when constructing the certificate, thereby improving the integrity of the binding between the issuing relationship and the public key identity in the long-term certificate.

[0118] Since the identifier is directly calculated from the long-term public key, the terminal device can identify the corresponding relationship based on the same identifier value during subsequent authentication and verification processes, thereby ensuring the stability of certificate generation and identity association.

[0119] In one possible implementation, after constructing a long-term digital key certificate based on the vehicle identifier, digital key identifier, authorization key identifier, and second principal key identifier, the digital key management method includes: writing the long-term digital key certificate, vehicle certificate, long-term public key, long-term digital key alias, and status field into a local status object to persistently save key identity information and issuance relationship information.

[0120] The vehicle certificate records the vehicle's identity and the association information between the vehicle and the digital key. The long-term digital key alias uniquely identifies the long-term digital key certificate locally on the terminal device. The status field records the current storage status, availability status, or binding status of the digital key.

[0121] A local state object is a persistent state record entity within a terminal device. Internally, the local state object can store the aforementioned certificate and identification information using structured data fields, enabling the terminal device to directly locate the corresponding key record during subsequent readings.

[0122] Optionally, after constructing the long-term digital key certificate, the terminal device can encapsulate the certificate object, vehicle certificate object, long-term public key data, long-term digital key alias, and status field, and then write them to a local status object. This writing can be accomplished through a secure storage interface, ensuring the data remains valid even after the terminal device restarts, applications are updated, or the temporary session ends.

[0123] Optionally, the long-term key alias for the digital key can be a string identifier, establishing a one-to-one correspondence with the long-term digital key certificate. The status field can be an enumerated or integer field to record the current status, thus allowing the local status object to store both the certificate content and the issuance association information between the certificate and the vehicle.

[0124] In this solution, the local state object serves as a unified persistent carrier, centrally storing long-term digital key certificates, vehicle certificates, long-term public keys, long-term digital key aliases, and state fields. This enables terminal devices to directly read the corresponding information during subsequent authentication, query, and management processes, and thereby restore the key identity and issuance relationship.

[0125] Because the certificate and vehicle association information are synchronously written to the same state object, the terminal device can complete identity verification and record retrieval locally without re-parsing the scattered data.

[0126] By adopting this method, key identity information and issuance relationship information are continuously recorded locally, which can support the continuous management and authentication of digital keys.

[0127] In one possible implementation, after constructing a long-term digital key certificate based on the vehicle identifier, digital key identifier, authorization key identifier, and second principal key identifier, the digital key management method includes: sending the long-term digital key certificate to the vehicle so that the vehicle can verify the key identity information and issuance relationship information of the long-term digital key certificate according to the authorization key identifier in the long-term digital key certificate; receiving the vehicle certificate sent by the vehicle after the issuance chain verification of the long-term digital key certificate is passed, and verifying the vehicle's identity according to the vehicle certificate; after the vehicle certificate verification is passed, determining that the two-way identity authentication is passed, and establishing the business link communication between the terminal device and the vehicle.

[0128] Two-way authentication means that the terminal device and the vehicle have completed mutual identity verification and reached a consistent confirmation state. Business link communication is the transmission channel for subsequent digital key control data.

[0129] Optionally, after generating a long-term digital key certificate, the terminal device sends the certificate to the vehicle's communication device via Bluetooth, Wi-Fi Direct, cellular network, or in-vehicle near-field communication link. Upon receiving the certificate, the vehicle reads the authorization key identifier from the certificate and, in conjunction with the locally pre-installed root of trust, upper-level certificate cache, or certificate chain verification module, matches and verifies the key identity information and issuance relationship information.

[0130] Optionally, when the authorization key identifier is consistent with the issuing entity in the certificate chain and the key identity information is consistent with the vehicle-side binding relationship, the vehicle determines that the long-term digital key certificate is valid and returns the vehicle certificate to the terminal device.

[0131] Optionally, the vehicle certificate can be in X.509 format or a compatible vehicle-specific certificate format, containing the vehicle identifier, vehicle public key, and validity period information. Upon receiving the certificate, the terminal device verifies the signature correctness of the vehicle certificate using a local root of trust or a pre-stored public key, and then checks the consistency between the vehicle identifier and the target vehicle, thereby completing vehicle identity verification.

[0132] Optionally, after the vehicle certificate verification is successful, the terminal device will associate the vehicle-side verification result with the local sending status of the long-term digital key certificate to determine that both parties have completed the confirmation of each other's identity, thereby establishing a two-way identity authentication result.

[0133] Optionally, an open business link communication is established between the terminal device and the vehicle to carry digital key business data such as remote unlocking, locking, start authorization, shared key interaction, or status query. The business link communication can reuse an established secure session, or form an encrypted communication channel after further negotiating a session key based on the two-way authentication result. In practical applications, other communication bearer methods can also be selected for this link; this application does not limit this.

[0134] Through the above methods, the verification of the issuance relationship of long-term digital key certificates, the verification of vehicle certificate return, and the establishment of business links are linked into a continuous authentication process, enabling terminal devices and vehicles to complete mutual confirmation in the same authentication context, and directly establish a usable communication channel after confirmation, thereby providing a consistent identity verification and communication access foundation for the digital key management process.

[0135] Figure 4 This is a flowchart illustrating a digital key control method provided in an embodiment of this application. Figure 4 As shown, this digital key control method is applied to a terminal device, which is connected to the vehicle's communication equipment. The digital key control method is also applied to the vehicle's communication equipment, which is connected to the terminal device. The digital key control method includes:

[0136] S401. Receive a long-term digital key certificate sent by the terminal device. The long-term digital key certificate includes the vehicle identifier, digital key identifier, authorization key identifier, and second principal key identifier. The authorization key identifier is used to indicate the signing relationship between the superior certificate and the long-term key pair of the digital key. The second principal key identifier is used to identify the long-term public key of the terminal device.

[0137] The receiving terminal device sends a long-term digital key certificate. By simultaneously carrying the vehicle identifier, digital key identifier, authorization key identifier, and second principal key identifier in the long-term digital key certificate, the vehicle communication device can uniformly associate the certificate issuance link with the key ownership relationship, thereby reducing the verification breaks caused by the dispersion of certificate information.

[0138] S402. Based on the authorized key identifier, verify the issuance relationship information of the long-term digital key certificate to obtain the issuance verification result.

[0139] The vehicle verifies the certificate's issuance relationship information based on the authorization key identifier in the long-term digital key certificate, and obtains an issuance verification result.

[0140] The issuance verification result confirms whether the superior certificate has indeed legitimately issued the long-term key pair for this digital key, whether the certificate chain is complete, and whether the certificate was issued by a legitimate superior authority. Verifying the issuance relationship based on the authorized key identifier confirms the legitimate issuance of the long-term key pair by the superior certificate, making the origin of the long-term digital key trustworthy. If the issuance verification fails, it indicates that the certificate may be forged, tampered with, or have a broken certificate chain, and subsequent procedures should not continue.

[0141] S403. Based on the vehicle identifier, verify the key identity information of the long-term digital key certificate to obtain the ownership verification result.

[0142] Based on the vehicle identifier in the long-term digital key certificate, the key identity information of the certificate is verified to obtain an ownership verification result. This ownership verification result confirms whether the long-term digital key certificate truly belongs to the current vehicle and whether the key identity information bound to the certificate matches the current vehicle. Even if a certificate's issuance relationship is legitimate, it does not guarantee that it belongs to the current vehicle, as an attacker could use a legitimate certificate from another vehicle to impersonate it. Therefore, it is necessary to confirm the ownership relationship between the certificate and the vehicle through the vehicle identifier. If the ownership verification fails, it indicates that the certificate may not belong to the current vehicle, posing a risk of cross-vehicle reuse or impersonation.

[0143] S404. If both the issuance verification result and the attribution verification result indicate that the verification is successful, send the vehicle certificate to the terminal device so that the terminal device can verify the vehicle's identity based on the vehicle certificate.

[0144] The vehicle certificate is sent only after both the issuance verification result and the ownership verification result are passed, enabling the terminal device to continue to complete the vehicle identity verification, thus improving the continuity of digital key authentication and the security of vehicle access control.

[0145] Figure 5 This is a schematic diagram of the structure of the digital key control device provided in an embodiment of this application. Figure 4 As shown, the digital key control device 50 provided in this embodiment is deployed on a terminal device, which is communicatively connected to the vehicle's communication equipment. The digital key control device 50 includes:

[0146] The acquisition module 501 is used to generate a long-term key alias for the digital key based on the digital key identifier, and generate a long-term key pair for the digital key in the security key store of the terminal device based on the long-term key alias for the digital key. The long-term key pair for the digital key includes a long-term private key and a long-term public key. The module also loads the superior certificate and uses the first principal key identifier in the superior certificate as the authorization key identifier. The authorization key identifier is used to indicate the signing relationship between the superior certificate and the long-term key pair for the digital key.

[0147] The processing module 502 is used to construct a second principal key identifier based on the long-term public key; and to construct a long-term digital key certificate based on the vehicle identifier, digital key identifier, authorization key identifier, and second principal key identifier.

[0148] In one possible implementation, if the digital key identifier indicates that the type of digital key is a shared key, then the superior certificate is the user certificate management authority that issued the digital key identifier.

[0149] In one possible implementation, if the digital key identifier indicates that the type of digital key is a vehicle owner's key, then the superior certificate is the terminal device certificate management authority.

[0150] In one possible implementation, the processing module 502 is specifically used to: extract a target public key code from the long-term public key, wherein the target public key code is an original public key point or a standard public key code; and perform a key identifier calculation operation on the target public key code to obtain a second principal key identifier.

[0151] In one possible implementation, after constructing a long-term digital key certificate based on the vehicle identifier, digital key identifier, authorization key identifier, and second principal key identifier, the processing module 502 is further configured to: write the long-term digital key certificate, vehicle certificate, long-term public key, digital key long-term key alias, and status field into a local status object to persistently save key identity information and issuance relationship information.

[0152] In one possible implementation, after constructing a long-term digital key certificate based on the vehicle identifier, digital key identifier, authorization key identifier, and second principal key identifier, the processing module 502 is further configured to: send the long-term digital key certificate to the vehicle so that the vehicle can verify the key identity information and issuance relationship information of the long-term digital key certificate according to the authorization key identifier in the long-term digital key certificate; receive the vehicle certificate sent by the vehicle after the issuance chain verification of the long-term digital key certificate is passed, and verify the identity of the vehicle according to the vehicle certificate; after the vehicle certificate verification is passed, determine that the two-way identity authentication is passed, and establish the business link communication between the terminal device and the vehicle.

[0153] Figure 6 This is a schematic diagram of the structure of the digital key control device provided in an embodiment of this application. Figure 4 As shown, the digital key management device 60 provided in this embodiment is applied to the communication equipment in a vehicle. The vehicle and the terminal device are connected for communication. The digital key management device 60 includes:

[0154] The acquisition module 601 is used to receive a long-term digital key certificate sent by the terminal device. The long-term digital key certificate includes the vehicle identifier, digital key identifier, authorization key identifier, and second principal key identifier. The authorization key identifier is used to indicate the signing relationship between the superior certificate and the long-term key pair of the digital key. The second principal key identifier is used to identify the long-term public key of the terminal device.

[0155] The processing module 602 is used to verify the issuance relationship information of the long-term digital key certificate based on the authorization key identifier to obtain the issuance verification result; to verify the key identity information of the long-term digital key certificate based on the vehicle identifier to obtain the ownership verification result; if both the issuance verification result and the ownership verification result indicate that the verification is successful, the module sends the vehicle certificate to the terminal device so that the terminal device can verify the identity of the vehicle based on the vehicle certificate.

[0156] The digital key control device provided in this embodiment can execute the method provided in the above method embodiment. Its implementation principle and technical effect are similar, and will not be described in detail here.

[0157] Figure 7 This is a schematic diagram of the structure of a terminal device provided in an embodiment of this application. Figure 7 As shown, the terminal device 70 provided in this embodiment includes at least one processor 701 and a memory 702. Optionally, the terminal device 70 further includes a communication component 703. The processor 701, memory 702, and communication component 703 are connected via a bus 704.

[0158] In a specific implementation, at least one processor 701 executes computer execution instructions stored in memory 702, causing at least one processor 701 to perform the above-described method.

[0159] The specific implementation process of processor 701 can be found in the above method embodiments, and its implementation principle and technical effect are similar. It will not be repeated here.

[0160] Figure 8 This is a schematic diagram of the structure of a communication device provided in an embodiment of this application. Figure 8 As shown, the communication device 80 provided in this embodiment includes at least one processor 801 and a memory 802. Optionally, the communication device 80 further includes a communication component 803. The processor 801, memory 802, and communication component 803 are connected via a bus 804.

[0161] In a specific implementation, at least one processor 801 executes computer execution instructions stored in memory 802, causing at least one processor 801 to perform the above-described method.

[0162] The specific implementation process of processor 801 can be found in the above method embodiments, and its implementation principle and technical effect are similar. It will not be repeated here.

[0163] In the above embodiments, it should be understood that the processor can be a Central Processing Unit (CPU), or other general-purpose processors, digital signal processors (DSPs), application-specific integrated circuits (ASICs), etc. The general-purpose processor can be a microprocessor or any conventional processor. The steps of the method disclosed in this invention can be directly implemented by a hardware processor, or implemented by a combination of hardware and software modules within the processor.

[0164] The memory may include random access memory (RAM) and may also include non-volatile memory (NVM), such as at least one disk storage device.

[0165] The bus can be an Industry Standard Architecture (ISA) bus, a Peripheral Component Interconnect (PCI) bus, or an Extended Industry Standard Architecture (EISA) bus, etc. Buses can be categorized as address buses, data buses, control buses, etc. For ease of illustration, the buses shown in the accompanying drawings are not limited to a single bus or a single type of bus.

[0166] This application also provides a computer program product, including a computer program that, when executed by a processor, implements the above-described method.

[0167] This application also provides a computer-readable storage medium storing computer-executable instructions, which, when executed by a processor, implement the above-described method.

[0168] The aforementioned readable storage medium can be implemented by any type of volatile or non-volatile storage device or a combination thereof, such as Static Random-Access Memory (SRAM), Electrically Erasable Programmable Read-Only Memory (EEPROM), Erasable Programmable Read-Only Memory (EPROM), Programmable Read-Only Memory (PROM), Read-Only Memory (ROM), magnetic storage, flash memory, magnetic disk, or optical disk. The readable storage medium can be any available medium accessible to a general-purpose or special-purpose computer.

[0169] An exemplary readable storage medium is coupled to a processor, enabling the processor to read information from and write information to the readable storage medium. Of course, the readable storage medium can also be a component of the processor. The processor and the readable storage medium can reside in an application-specific integrated circuit (ASIC). Alternatively, the processor and the readable storage medium can exist as discrete components in the device.

[0170] The division of units is merely a logical functional division; in actual implementation, there may be other division methods. For example, multiple units or components may be combined or integrated into another system, or some features may be ignored or not executed. Furthermore, the coupling or direct coupling or communication connection shown or discussed may be indirect coupling or communication connection through some interfaces, devices, or units, and may be electrical, mechanical, or other forms.

[0171] The units described as separate components may or may not be physically separate. The components shown as units may or may not be physical units; that is, they may be located in one place or distributed across multiple network units. Some or all of the units can be selected to achieve the purpose of this embodiment according to actual needs.

[0172] In addition, the functional units in the various embodiments of this application can be integrated into one processing unit, or each unit can exist physically separately, or two or more units can be integrated into one unit.

[0173] If a function is implemented as a software functional unit and sold or used as an independent product, it can be stored in a computer-readable storage medium. Based on this understanding, the technical solution of this application, in essence, or the part that contributes to the prior art, or a part of the technical solution, can be embodied in the form of a software product. This computer software product is stored in a storage medium and includes several instructions to cause a computer device (which may be a personal computer, server, or network device, etc.) to execute all or part of the steps of the methods of the various embodiments of this application. The aforementioned storage medium includes various media capable of storing program code, such as USB flash drives, portable hard drives, read-only memory (ROM), random access memory (RAM), magnetic disks, or optical disks.

[0174] Those skilled in the art will understand that all or part of the steps of the above-described method embodiments can be implemented by hardware related to program instructions. The aforementioned program can be stored in a computer-readable storage medium. When executed, the program performs the steps of the above-described method embodiments; and the aforementioned storage medium includes various media capable of storing program code, such as ROM, RAM, magnetic disks, or optical disks.

[0175] Finally, it should be noted that other embodiments of this application will readily conceive of by those skilled in the art upon consideration of the specification and practice of the invention disclosed herein. This application is intended to cover any variations, uses, or adaptations of this application that follow the general principles of this application and include common knowledge or customary techniques in the art not disclosed herein, and is not limited to the precise structures described above and shown in the accompanying drawings, and various modifications and changes may be made without departing from its scope.

Claims

1. A digital key control method, characterized in that, The digital key management method is applied to a terminal device that is communicatively connected to the vehicle's communication equipment. A long-term key alias for a digital key is generated based on the digital key identifier, and a long-term key pair for a digital key is generated in the security key store of the terminal device based on the long-term key alias for the digital key. The long-term key pair for a digital key includes a long-term private key and a long-term public key. Load the superior certificate and use the first principal key identifier in the superior certificate as the authorization key identifier, which is used to indicate the issuance relationship of the superior certificate to the long-term key pair of the digital key; Based on the long-term public key, a second principal key identifier is constructed; A long-term digital key certificate is constructed based on the vehicle identifier, the digital key identifier, the authorization key identifier, and the second principal key identifier.

2. The digital key control method according to claim 1, characterized in that, If the digital key identifier indicates that the type of the digital key is a shared key, then the superior certificate is the user certificate management authority that issued the digital key identifier.

3. The digital key control method according to claim 1, characterized in that, If the digital key identifier indicates that the type of digital key is a vehicle owner's key, then the superior certificate is a terminal device certificate management authority.

4. The digital key control method according to any one of claims 1 to 3, characterized in that, The second principal key identifier, constructed based on the long-term public key, includes: The target public key encoding is extracted from the long-term public key, and the target public key encoding is either the original public key point or the standard public key encoding. The target public key is encoded, and a key identifier calculation operation is performed to obtain the second principal key identifier.

5. The digital key control method according to any one of claims 1 to 3, characterized in that, After constructing a long-term digital key certificate based on the vehicle identifier, the digital key identifier, the authorization key identifier, and the second principal key identifier, the digital key management method includes: The long-term digital key certificate, vehicle certificate, long-term public key, long-term digital key alias, and status field are written to a local status object to persistently save key identity information and issuance relationship information.

6. The digital key control method according to any one of claims 1 to 3, characterized in that, After constructing a long-term digital key certificate based on the vehicle identifier, the digital key identifier, the authorization key identifier, and the second principal key identifier, the digital key management method includes: Send a long-term digital key certificate to the vehicle so that the vehicle can verify the key identity information and issuance relationship information of the long-term digital key certificate based on the authorization key identifier in the long-term digital key certificate; Receive the vehicle certificate sent by the vehicle after the verification of the issuance chain of the long-term digital key certificate is passed, and verify the identity of the vehicle based on the vehicle certificate; After the vehicle certificate verification is successful, the two-way identity authentication is confirmed to be successful, and the business link communication between the terminal device and the vehicle is established.

7. A digital key control method, characterized in that, The communication device is used in a vehicle, wherein the vehicle is communicatively connected to a terminal device, and the digital key control method includes: The terminal device receives a long-term digital key certificate, which includes the vehicle identifier, digital key identifier, authorization key identifier, and second principal key identifier. The authorization key identifier is used to indicate the issuance relationship of the long-term key pair of the digital key by the superior certificate, and the second principal key identifier is used to identify the long-term public key of the terminal device. Based on the authorized key identifier, the issuance relationship information of the long-term digital key certificate is verified to obtain the issuance verification result; Based on the vehicle identifier, the key identity information of the long-term digital key certificate is verified to obtain the ownership verification result; If both the issuance verification result and the attribution verification result indicate that the verification is successful, the vehicle certificate of the vehicle is sent to the terminal device so that the terminal device can verify the identity of the vehicle based on the vehicle certificate.

8. A terminal device, characterized in that, include: Memory, processor; The memory stores computer-executed instructions; The processor executes computer execution instructions stored in the memory, causing the processor to perform the digital key control method as described in any one of claims 1-6.

9. A communication device, characterized in that, include: Memory, processor; The memory stores computer-executed instructions; The processor executes computer execution instructions stored in the memory, causing the processor to perform the digital key control method as described in claim 7.

10. A vehicle, characterized in that, The vehicle is equipped with the communication device as described in claim 9.