Terminal device and method processing of data for terminal device
A terminal device includes a communication device, configured to detect whether a native system of the terminal device includes components for adapting a public protocol of a digital vehicle key, and communicating with a target communication party based on the public protocol in case of absence of at least one of the components in the native system, in which the target communication party is a participant of the public protocol.
1 . A terminal device, comprising:
a communication device including a hardware processor, configured to:
detect whether a native system of the terminal device comprises components for adapting a public protocol of a digital vehicle key; and
communicate with a target communication party using the public protocol in case of absence of at least one of the components in the native system;
wherein the target communication party is a participant of the public protocol;
wherein the terminal device including a hardware processor is configured to:
establish a secure channel with a vehicle using a digital key framework in response to initiating a key activating process using the communication device;
obtain a vehicle public key certificate using the secure channel;
verify the vehicle public key certificate using a vehicle server CA (certificate authority) certificate using a key manager of the communication device, and save the vehicle public key certificate after successful verification;
generate a digital-vehicle-key public-private key pair using the key manager, the digital-vehicle-key public-private key pair comprising a digital-vehicle-key public key and a digital-vehicle-key private key;
sign the digital-vehicle-key public key using a key management element certificate, to generate a digital-vehicle-key public key certificate, the key management element certificate comprising a terminal device server CA signature; and
transmit the terminal device server CA certificate, the key management element certificate, and the digital-vehicle-key public key certificate to the vehicle, to enable the vehicle to sequentially verify the terminal device server CA certificate, the key management element certificate, and the digital-vehicle-key public key certificate, and save the digital-vehicle-key public key after successful verification.
2 . The terminal device according to claim 1 , wherein the communication device comprises:
a digital key application, for communicating with a vehicle server, and implementing functions of a vehicle manufacturer application specified in the public protocol;
a local application, for communicating with a terminal device server, and implementing functions of a terminal device manufacturer application specified in the public protocol;
a digital key element including at least one Application Programming Interface (API), for implementing functions of the digital key framework specified in the public protocol; and
the key manager including at least one API, for implementing functions of a digital key program specified in the public protocol.
3 . The terminal device according to claim 2 , wherein the communication device comprises an encryption white box, configured to store data of the digital vehicle key.
4 . The terminal device according to claim 2 , wherein the local application communicate with the terminal device server using a terminal device service element in the vehicle server.
5 . The terminal device according to claim 2 , wherein the public protocol is a public protocol based on certificate authentication, the target communication party comprises the vehicle server and the terminal device server.
6 . The terminal device according to claim 5 , wherein the terminal device, in response to receiving a key sharing request, communicates with the vehicle server via the digital key application and communicate with the terminal device server via the local application, rendering that an authentication step for key sharing is completed, and a shared digital vehicle key is obtained.
7 . The terminal device according to claim 5 , wherein the public protocol is a Car Connectivity Consortium (CCC) protocol or an Intelligent Car Connectivity Open Alliance (ICCOA) protocol.
8 . The terminal device according to claim 1 , wherein the target communication party comprises a vehicle.
9 . The terminal device according to claim 8 , wherein the terminal device establishes a secure channel by performing public protocol based communication with the vehicle through the communication device, and send a target control instruction to the vehicle through the secure channel, wherein the target control instruction is configured to control the vehicle to implement a target action.
10 . A method of processing data for a terminal device, comprising:
detecting whether a native system of the terminal device comprises components for adapting a public protocol of a digital vehicle key; and
communicating with a target communication party using the public protocol in case of absence of at least one of the components in the native system, wherein the target communication party is a participant of the public protocol;
establishing a secure channel with a vehicle using a digital key framework in response to initiating a key activating process using a communication device;
obtaining a vehicle public key certificate using the secure channel;
verifying the vehicle public key certificate using a vehicle server CA (certificate authority) certificate using at least one Application Programming Interface (API) of a key manager of the communication device, and saving the vehicle public key certificate after successful verification;
generating a digital-vehicle-key public-private key pair using the key manager, the digital-vehicle-key public-private key pair comprising a digital-vehicle-key public key and a digital-vehicle-key private key;
signing the digital-vehicle-key public key using a key management element certificate, to generate a digital-vehicle-key public key certificate, the key management element certificate comprising a terminal device server CA signature; and
transmitting the terminal device server CA certificate, the key management element certificate, and the digital-vehicle-key public key certificate to the vehicle, to enable the vehicle to sequentially verify the terminal device server CA certificate, the key management element certificate, and the digital-vehicle-key public key certificate, and saving the digital-vehicle-key public key after successful verification.
11 . The method according to claim 10 , wherein the public protocol is a public protocol based on certificate authentication, the target communication party comprises a vehicle server and a terminal device server.
12 . The method according to claim 11 , wherein communicating with the target communication party using the public protocol comprises:
in response to receiving a key sharing request, communicating with the vehicle server via a digital key application in the communication device, and communicating with the terminal device server via a local application in the communication device, rendering that an authentication step for key sharing is completed, and a shared digital vehicle key is obtained.
13 . The method according to claim 10 , wherein the target communication party comprises a vehicle.
14 . The method according to claim 13 , wherein communicating with the target communication party using the public protocol comprises:
establishing a secure channel by performing public protocol based communication with the vehicle through the communication device; and
sending a target control instruction to the vehicle through the secure channel, wherein the target control instruction is configured to control the vehicle to implement a target action.
15 . The method according to claim 10 , further comprising:
storing data of the digital vehicle key by an encryption white box of the communication device.
16 . A non-transitory computer-readable storage medium having instructions stored thereon, wherein, when the instructions are executed by a processor of a terminal device, a method of processing data is implemented, and the method comprises:
detecting whether a native system of the terminal device comprises components for adapting a public protocol of a digital vehicle key; and
communicating with a target communication party using the public protocol in case of absence of at least one of the components in the native system, wherein the target communication party is a participant of the public protocol;
establishing a secure channel with a vehicle using at least one Application Programming Interface (API) of a digital key framework in response to initiating a key activating process through a communication device;
obtaining a vehicle public key certificate using the secure channel;
verifying the vehicle public key certificate using a vehicle server CA (certificate authority) certificate through at least one API of a key manager of the communication device, and saving the vehicle public key certificate after successful verification;
generating a digital-vehicle-key public-private key pair through the key manager, wherein the digital-vehicle-key public-private key pair comprises a digital-vehicle-key public key and a digital-vehicle-key private key;
signing the digital-vehicle-key public key using a key management element certificate, to generate a digital-vehicle-key public key certificate, wherein the key management element certificate comprises a terminal device server CA signature; and
transmitting the terminal device server CA certificate, the key management element certificate, and the digital-vehicle-key public key certificate to the vehicle, to enable the vehicle sequentially verifies the terminal device server CA certificate, the key management element certificate, and the digital-vehicle-key public key certificate, and saving the digital-vehicle-key public key in a case of successful verification.
17 . The storage medium according to claim 16 , wherein the public protocol is a public protocol based on certificate authentication, the target communication party comprises a vehicle server and a terminal device server, and communicating with the target communication party using the public protocol comprises:
in response to receiving a key sharing request, communicating with the vehicle server via a digital key application in the communication device, and communicating with the terminal device server via a local application in the communication device, rendering that an authentication step for key sharing is completed, and a shared digital vehicle key is obtained.
18 . The storage medium according to claim 16 , wherein the target communication party comprises a vehicle, and communicating with the target communication party using the public protocol comprises:
establishing a secure channel by performing public protocol based communication with the vehicle through a terminal device; and
sending a target control instruction to the vehicle through the secure channel,
wherein the target control instruction is configured to control the vehicle to implement a target action.
19 . The storage medium according to claim 16 , wherein the method further comprises:
storing data of the digital vehicle key by an encryption white box of the communication device.