A safe vehicle control method and a safe vehicle control system

By registering vehicles and mobile devices on the cloud platform, a digital key is generated, allowing authorized mobile devices to control the vehicle within a certain range. This solves the convenience and safety problems of traditional digital keys and achieves higher convenience and security. Security, and enhances system security through a key update mechanism.

CN118555069BActive Publication Date: 2024-10-01HEFEI UNIV OF TECH
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202411018382.0
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2024-07-29
Publication Date
2024-10-01
Estimated Expiration
2044-07-29

AI Technical Summary

Technical Problem

Traditional digital keys have convenience and safety issues during use. Car owners need to operate them personally and cannot easily hand over the vehicle to others, resulting in inconvenience and safety risks.

Method used

By registering vehicles and mobile devices on the cloud platform, negotiating and generating digital keys, authorized mobile devices are allowed to control the vehicle within a certain range, achieving safe vehicle control without the need for the owner to personally operate the vehicle.

Benefits of technology

It improves the convenience and security of car control, reduces the risk of car owners borrowing mobile devices, and enhances the security of the system through key update and blacklist mechanisms, making it difficult to be cracked by hackers.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118555069B_ABST
    Figure CN118555069B_ABST
Patent Text Reader

Abstract

The present invention belongs to the technical field of vehicle networking, and in particular, relates to a safe vehicle control method and a safe vehicle control system. A safe vehicle control method comprises the following steps: a vehicle is registered at a cloud platform, a key filling platform fills a first key package into a successfully registered vehicle, and synchronizes the first key package to the cloud platform; after a mobile device is registered at the cloud platform, the vehicle and the cloud platform negotiate to determine the first key used in the current cycle; the vehicle and the cloud platform synchronously negotiate various keys in the current cycle based on the current first key; an authorized mobile device requests various keys in the current cycle from the cloud platform, and generates a digital key based on the various keys in the current cycle to control the target vehicle. The present invention makes the vehicle control process safer and more convenient.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention belongs to the technical field of vehicle networking, and in particular relates to a safe vehicle control method and a safe vehicle control system. Background Art

[0002] With the increasing number of car users, people have gradually discovered that traditional car keys are inconvenient to use: for example, they cannot find their car keys when they are in a hurry to go out, or they find that they have forgotten to bring their car keys in front of the car, which delays their travel time; or they cannot easily use the car keys to open the door when their hands are full.

[0003] However, with the development of intelligent automobile technology, traditional car keys have evolved into today's digital keys. By binding digital keys to mobile phones or smart wearable devices, car owners do not need to carry "car keys" when going out, and can lock and start the car, giving them a better experience.

[0004] However, there are still many inconveniences in the process of using digital keys. For example, in order to ensure vehicle safety, digital keys can only be used by the owner's mobile phone, which means that all vehicle control operations require the owner to carry his or her mobile phone to operate in person, which is very inconvenient. It is also very unsafe to hand over the owner's mobile phone to others to control the vehicle. Therefore, how to use digital keys to unlock, lock, start, turn off, turn on and off the air conditioner, and other vehicle control operations more conveniently and safely has become an urgent problem to be solved in the field of vehicle networking technology. Summary of the invention

[0005] The purpose of the present invention is to overcome the deficiencies of the prior art and provide a safe vehicle control method, so that the vehicle control process is safer and more convenient.

[0006] To achieve the above object, the present invention adopts the following technical solutions:

[0007] A safe vehicle control method comprises the following steps:

[0008] S1, the vehicle is registered at the cloud platform, the key filling platform fills the first key package into the successfully registered vehicle, and synchronizes the first key package to the cloud platform;

[0009] S2, after the mobile device is registered at the cloud platform, the vehicle and the cloud platform negotiate to determine the first key to be used in the current period;

[0010] S3, the vehicle and the cloud platform synchronously negotiate various keys in the current period based on the current first key;

[0011] S4, the authorized mobile device requests various keys in the current cycle from the cloud platform, and generates a digital key based on the various keys in the current cycle to control the target vehicle.

[0012] Preferably, S4 also includes the following sub-steps:

[0013] S41, when the target vehicle is vehicle V and vehicle V needs to be controlled, the mobile device MCD turns on Bluetooth and detects whether there is vehicle V within a set range;

[0014] S42, if vehicle V exists, the mobile device MCD requests the vehicle control key in the current cycle from the cloud platform TSP, and then performs Bluetooth pairing with the vehicle V based on the vehicle control key. After the Bluetooth pairing is successful, the mobile device MCD obtains the digital key and directly controls the vehicle V. Otherwise, the mobile device MCD does not control the vehicle.

[0015] Preferably, S1 further includes the following sub-steps:

[0016] S11, vehicle V is registered at the cloud platform TSP when it leaves the factory. After successful registration, the cloud platform TSP obtains the initial vehicle information of vehicle V. The initial vehicle information includes the vehicle identification code, the hash function used by the vehicle, the key splitting algorithm used by the vehicle, and the key derivation function used by the vehicle. The successfully registered vehicle V stores the cloud platform TSP private key; the cloud platform TSP stores its own pair of public and private keys, and the cloud platform TSP public key is recorded as P b TSP , record the cloud platform TSP private key as P r TSP ;

[0017] S12, the successfully registered vehicle V fills the first key package at the key filling platform DKP, and the key filling platform DKP simultaneously synchronizes the first key package to the cloud platform TSP.

[0018] Preferably, in S2, the following sub-steps are also included:

[0019] S21, after purchasing vehicle V, the car owner brings a mobile device to register at the cloud platform TSP. After successful registration, the cloud platform TSP obtains the mobile device identification code, mobile device account, password, account authority, mobile device private key, and hash function used by the mobile device and binds it with the initial vehicle information of vehicle V to form registration information; after successful registration, the mobile device stores its own account authority, cloud platform TSP private key, and vehicle identification code of vehicle V, and each mobile device stores its own pair of public and private keys;

[0020] S22, the cloud platform TSP sends key negotiation information M0 to the vehicle V: M0=P bTSP [ID V ||N1||FKN],

[0021] Among them, || represents a connector, ID V represents the vehicle identification code of vehicle V, N1 represents the first random number generated when the cloud platform TSP sends the key negotiation information M0, FKN represents the identifier randomly extracted by the cloud platform TSP from the first key package in the registration information of vehicle V, P b TSP [·] indicates the use of the cloud platform TSP public key P b TSP Perform asymmetric encryption;

[0022] At the same time, the cloud platform TSP retrieves the first key FK bound to the identifier FKN from the corresponding registration information as the first key used by the vehicle V in the current cycle;

[0023] S23, vehicle V calls the cloud platform TSP private key P r TSP After asymmetric decryption key negotiation information M0, the first copy of the vehicle identification code ID is obtained V ´, a first random number first copy N1´ and an identifier copy FKN´;

[0024] Vehicle V Verify the current vehicle identification code first copy ID V ´After it is correct, the first key FK´ bound to the current identifier copy FKN´ is called from the first key package to symmetrically encrypt the current first random number first copy N1´ to form the first key confirmation information M1. The vehicle V sends the first key confirmation information M1 to the cloud platform TSP;

[0025] If vehicle V verifies the first copy ID of the current vehicle identification code V ´ error, or the current identifier copy FKN´ does not exist in the first key package, the vehicle V discards the current key negotiation information M0;

[0026] S24, the cloud platform TSP uses the first key FK used by the vehicle V in the current period to symmetrically decrypt the first key confirmation information M1, and obtains the second copy N1´´ of the first random number. If N1´´=N1, the cloud platform TSP sends a message of "enable the current first key" to the vehicle V, and the vehicle V uses the first key FK as the first key used by the vehicle V in the current period; if N1´´≠N1, it returns to S22.

[0027] Preferably, in S3, the following sub-steps are also included:

[0028] S31, the vehicle V uses its own key segmentation algorithm to segment the first key used in the current cycle to obtain the vehicle-side master key K in the current cycle V1 、Communication key K V2 and protection key K V3 The cloud platform TSP retrieves the key segmentation algorithm used by vehicle V from the registration information of vehicle V, performs segmentation processing on the first key used by vehicle V in the current cycle, and synchronously obtains the vehicle-side master key K of vehicle V in the current cycle. V1 、Communication key K V2 and protection key K V3 ;

[0029] S32, the cloud platform TSP retrieves the key derivation function KDF used by vehicle V from the vehicle V registration information V , each mobile device account and account permissions, and then use the key derivation function KDF V Based on the vehicle-side master key K V1 and each mobile device account, derive the device key of each mobile device corresponding to the vehicle V in the current period, and then update the registration information of the vehicle V; at the same time, the cloud platform TSP uses the protection key K V3 After symmetrically encrypting each mobile device account and account authority, the device account information M2 is generated and sent to the vehicle V;

[0030] S33, vehicle V uses the protection key K in the current cycle V3 After symmetrically decrypting the device account information M2, the account permissions corresponding to several mobile device accounts are obtained, and then the key derivation function KDF is used to obtain the corresponding account permissions of several mobile device accounts. V Based on the vehicle-side master key K in the current cycle V1 From each mobile device account, derive the device key of each mobile device corresponding to the vehicle V in the current period, and bind each mobile device account in the current period with the account authority and the corresponding device key.

[0031] Preferably, S42 further includes the following sub-steps:

[0032] S421, after the quantum random number chip built into the mobile device MCD generates the second random number N2, it sends a proximity control key request message M3 to the cloud platform TSP:

[0033] M3={req(M3)||P b TSP [ID MCD ||P b MCD (AC MCD ||PW MCD ||ID V ||N2)]},

[0034] Where req(·) is the message type identifier, ID MCD Indicates the mobile device identification code of the mobile device MCD, P b MCD (·) indicates asymmetric encryption using the public key of the mobile device MCD, AC MCD Indicates the account of the mobile device MCD, PW MCD Indicates the password of the mobile device MCD;

[0035] S422, the cloud platform TSP uses the cloud platform TSP private key P according to req(M3). r TSP right

[0036] P b TSP [ID MCD ||P b MCD (AC MCD ||PW MCD ||ID V ||N2)] to perform asymmetric decryption, and then use the ID obtained by asymmetric decryption MCD Retrieve the private key P of the mobile device MCD in the registration information r MCD , use P r MCD Asymmetric decryption b MCD (AC MCD ||PW MCD ||ID V ||N2) and obtain the mobile device account, password, target vehicle identification code and the second random number copy N2´, verify whether the mobile device account, password and target vehicle identification code exist in the same registration information. If so, the cloud platform TSP returns the vehicle control key information M4 to the mobile device MCD:

[0037] M4={req(M4)||TK[K V2 ||K MCD,V ]},TK=H MCD (PW MCD ||N2´),

[0038] Wherein, req(M4) represents the message type identifier of the vehicle control key information M4, TK represents the temporary key, TK(·) represents the symmetric encryption using the temporary key TK, H MCD represents the hash function used by the mobile device MCD, which is retrieved by the cloud platform TSP from the corresponding registration information in the cloud platform TSP database, K MCD,VIndicates the device key of the mobile device MCD corresponding to the vehicle V in the current cycle;

[0039] If the ID does not exist in the registration information of the cloud platform TSP MCD , or the mobile device account, password and target vehicle identification code decrypted from the vehicle control key request information M3 are not in the same registration information, then the cloud platform TSP discards the current vehicle control key request information M3;

[0040] S423, after receiving the vehicle control key information M4, the mobile device MCD calculates the temporary key copy TK´=(PW MCD ||N2) and then use the temporary key copy TK´ to symmetric decrypt TK[K V2 ||K MCD,V ] and then get the first copy of the communication key K V2 ´ and the first copy of the device key K MCD,V ´;

[0041] S424, after the mobile device MCD generates the third random number N3, it generates the device authentication information M5 and sends it to the vehicle V: M5=K V2 AC MCD ||K MCD,V ´[ID V ||N3||ACR MCD ]},

[0042] Among them, K V2 ´{·} indicates using the first copy of the communication key K V2 ´Perform symmetric encryption, K MCD,V ´[·] indicates using the first copy of the device key K MCD,V ´Perform symmetric encryption, ACR MCD Indicates the account permissions of the mobile device MCD;

[0043] S425, vehicle V uses the communication key K in the current cycle V2 After symmetric decryption of the device authentication information M5, the mobile device account copy AC is obtained MCD ´, then according to AC MCD 'Call the corresponding device key in the current cycle to symmetric decrypt K MCD,V ´[ID V ||N3||ACR MCD ], get the first copy of the third random number N3´, the account authority copy ACR MCD ´ and the second copy of the vehicle identification number ID V ´´, Vehicle V Verification Vehicle Identification Number Second Copy ID V ´´Is it the same as the vehicle identification code of vehicle V itself, account authority copy ACR MCD´ Is it correct? If all are verified, the vehicle V generates the fourth random number N4, then generates the target vehicle authentication information M6 and sends it to the mobile device MCD: M6=K MCD,V [N4||K V2 {N3´||N4}], vehicle V generates digital key DK=K MCD,V [K V2 ],

[0044] Among them, K V2 {·} indicates the use of the communication key K V2 Perform symmetric encryption, K MCD,V [·] indicates using the device key K MCD,V Perform symmetric encryption;

[0045] If the second copy of the vehicle identification number ID V ´´VIN is different from the vehicle V itself and / or the account authority copy ACR MCD If it is incorrect, the verification fails, and the vehicle V sends a message of "Bluetooth pairing error" to the mobile device MCD. If the identity of the mobile device MCD is legal, it returns to S41;

[0046] S426, the mobile device MCD uses the first copy of the device key K MCD,V ' to symmetrically decrypt the target vehicle authentication information M6 to obtain the fourth random number copy N4' and K V2 {N3´||N4}, then use the first copy of the communication key K V2 Symmetric decryption K V2 {N3´||N4}, the second copy of the third random number N3´´ and the second copy of the fourth random number N4´´ are obtained. If N3´´=N3´ and N4´´=N4´, the two-way authentication between the mobile device MCD and the vehicle V is successful, the Bluetooth pairing between the mobile device MCD and the vehicle V is successful, and the mobile device MCD generates a digital key DK=K MCD,V ´[K V2 ´];

[0047] S427, within the validity period of the current digital key DK, the mobile device MCD, based on its own account authority, uses the digital key DK to encrypt the vehicle control command to form vehicle control information, and sends the vehicle control information to the vehicle V via Bluetooth. The vehicle V uses the digital key DK to decrypt the proximity control information and execute the corresponding vehicle control command; the validity period of the digital key DK is within the Δt3 time period from the moment when the vehicle V sends the target vehicle authentication information M6;

[0048] S428, when the validity period of the digital key DK expires, or when the distance between the mobile device MCD and the vehicle V is greater than the first distance, the Bluetooth connection between the vehicle V and the mobile device MCD is automatically disconnected, and the process returns to S41.

[0049] Preferably, performing the first key update includes the following steps:

[0050] Step 1: record the first key and the corresponding identifier in the current period as the old first key and the old identifier FKN old , at the end of the current cycle, the cloud platform TSP moves the old first key and the old identifier from the first key package of the vehicle V registration information into the blacklist;

[0051] Step 2: The cloud platform TSP randomly determines the next cycle length γ of vehicle V, generates a sixth random number N6, and randomly extracts a new identifier FKN from the first key package in the current registration information of vehicle V. new After that, a key update message A1 is generated and sent to the vehicle V, 1 day ≤ γ ≤ 30 days:

[0052] A1={req(A1)||P b TSP [ID V ||FKN old ||N6||FKN new ||MAC]}, MAC=H V (K V3 ||N6||FKN new ),

[0053] Where req(A1) represents the message type identifier of the key update message A1, MAC is the check code, H V (·) represents the hash function used by vehicle V;

[0054] Step 3: Vehicle V uses the platform TSP private key as P r TSP After asymmetric decryption key update message A1, the vehicle identification code, old identifier, verification code, the first copy of the sixth random number N6' and the new identifier copy FKN are obtained. new ´, verify that both the vehicle identification number and the old identifier are correct,

[0055] If all are correct, vehicle V retrieves the protection key K of the current cycle. V3 And hash function, calculate the verification code copy MAC´=H V (K V3 ||N6´||FKN new ´), if MAC´=MAC, then vehicle V is based on the new identifier copy FKN new ', retrieve the corresponding new first key K new , generate new key confirmation information A2 and send it to the cloud platform TSP:

[0056] A2={req(A2)||K old (K new ||N6´)},

[0057] Where req(A2) represents the message type identifier of the new key confirmation information A2, K old Represents the old identifier FKN old The bound old first key, K old (·) indicates using the old first key K old Perform symmetric encryption;

[0058] If any of the vehicle identification number and the old identification number is verified incorrectly, or if the new identifier copy FKN does not exist in the vehicle V new ´, then vehicle V discards the current key update message A1;

[0059] Step 4: The cloud platform TSP uses the old first key to symmetrically decrypt the new key confirmation information A2 and obtains the new first key copy K new ´ and the second copy of the sixth random number N6´´, the cloud platform TSP uses the new identifier FKN in step 2 new The corresponding new first key is retrieved from the vehicle V registration information and compared with the first key copy K new ´, and the cloud platform TSP compares the sixth random number N6 with the second copy of the sixth random number N6´´. If the two comparison results are the same, the cloud platform TSP enters the next cycle and starts the countdown for the next cycle, and the new identifier FKN new As the first key in the next cycle, and send it to vehicle V using FKN new The new key of symmetrical encryption replaces the information A3;

[0060] If there is more than one difference between the two comparison results, the cloud platform TSP discards the current new key confirmation information A2;

[0061] Step 5: Vehicle V uses the new first key K new After symmetric decryption of the new key replacement information A3, the old identifier and the old first key are moved to the blacklist, and the vehicle V enters the next cycle and replaces the new first key K new As the first key in the next cycle.

[0062] Preferably, when the last first key in the first key package of vehicle V is used as the first key in the next cycle, vehicle V sends a message information of key filling to the owner's mobile device, and the owner drives vehicle V to the key filling platform and fills the vehicle V with a new first key package, and the key filling platform synchronizes the new first key package to the cloud platform.

[0063] The present invention also provides a mobile device, which uses the above-mentioned safe vehicle control method to control a target vehicle.

[0064] The present invention also provides a safe vehicle control system, comprising: a mobile device, a target vehicle, a cloud platform, and a key charging platform.

[0065] The key filling platform is used to fill the target vehicle with the first key package and synchronize the first key package to the cloud platform; the cloud platform stores the registration information of the mobile device and the target vehicle, receives the information of the mobile device and the target vehicle, or sends information to the mobile device and the target vehicle; the mobile device is used to control the target vehicle;

[0066] Each platform, vehicle, and mobile device is programmed or configured to execute a safe vehicle control method as described above.

[0067] The beneficial effects of the present invention are:

[0068] (1) The present invention provides a safe vehicle control method. After the car owner brings all mobile devices that are intended to use digital keys to the cloud platform for registration, each mobile device can use the digital key to control the target vehicle within the scope of its own account authority. This overcomes the defect of the prior art that digital keys can only be used by the car owner's mobile device and reduces the burden on the car owner's mobile device. This is because when people other than the car owner control the vehicle, there is no need to use the digital key on the car owner's mobile device to complete everything, further reducing the risk brought by the car owner lending the mobile device.

[0069] (2) The present invention provides a safe vehicle control method, which makes vehicle control more convenient and provides passengers with a better experience.

[0070] (3) The vehicle control method of the present invention has extremely high safety throughout the vehicle control process, which ensures the property safety of the vehicle owner, which is mainly reflected in the following aspects:

[0071] ① The update cycle of the first key, which is the basis of the key used in the entire vehicle control method, is randomly determined by the cloud platform when the current first key is selected. No third party knows it except the cloud platform. Each update of the first key is initiated by the cloud platform to the vehicle at the end of the current cycle, and the entire update process does not contain information about the update cycle duration, so there is no possibility that the update cycle duration can be known by hackers.

[0072] ② After the first key package is generated by the key filling platform, it is filled into the vehicle and synchronized to the cloud platform. When updating the first key, the negotiation between the vehicle and the cloud platform is based on the new and old identifiers, and only in the final new key confirmation information is the old first key used to encrypt the new first key. After the new first key is synchronized and updated between the vehicle and the cloud platform, all keys in the previous cycle are moved into the blacklist, and then combined with the spot check mechanism for decrypted information errors, once it is found that the decrypted information errors can be successfully decrypted using the keys in the blacklist, an alarm is issued, so hackers have almost no chance of obtaining the first key in each cycle in the vehicle control method of the present invention, and can well resist replay attacks by hackers. If hackers maliciously tamper with the information in the process of updating the first key, it will cause the cloud platform to fail to verify the new key confirmation information, and the first key will be updated again between the vehicle and the cloud platform, so hackers cannot replace the first key in the new cycle by malicious tampering.

[0073] ③ The vehicle and the cloud platform do not generate the vehicle-side master key, communication key and protection key of the vehicle in the current cycle through one end, and then directly encrypt and decrypt the information and share the vehicle-side master key, communication key and protection key of the current cycle on the other end; instead, the vehicle-side master key, communication key and protection key of the vehicle in the current cycle are generated at each end, and then the protection key of the current cycle is directly used to symmetrically encrypt and decrypt the device account information stored in the cloud platform. The two ends (i.e., the vehicle and the cloud platform) obtain the device key of each mobile device corresponding to the vehicle in the current cycle based on the vehicle-side master key and each mobile device account in the current cycle. That is, in the process of the vehicle and the cloud platform obtaining the device key in the current cycle, there is no situation of sending / receiving the vehicle-side master key, communication key and protection key, so even if the hacker intercepts the information in the process, it is impossible to decrypt the vehicle-side master key, communication key and protection key, let alone obtain the device key in the current cycle. And any malicious tampering of the information in the process by the hacker will cause the operation of synchronizing the device key in the current cycle between the vehicle and the cloud platform to fail, so the hacker cannot replace the device key in the current cycle with the key known to him by malicious tampering.

[0074] ④ There is no first key, vehicle-side master key, communication key, protection key and device key information in a legal mobile device, which also reduces the occupation of storage resources of the mobile device; only when controlling the vehicle, the mobile device will obtain the communication key and device key used to generate the digital key within the current validity period; and from the above analysis of ①~③, once the first key used by the vehicle and the cloud platform changes, the vehicle-side master key, communication key, protection key, device key and the digital key used to control the vehicle in the current period will all change, combined with the limitation of the validity period of the digital key, even if the hacker intercepts the information and cracks a key with great effort, it is impossible to control the target vehicle, let alone threaten the security of the vehicle control method of the present invention. That is, the vehicle control method of the present invention is closely linked, and has extremely high uncertainty for hackers, and is extremely difficult to completely crack, and the entire vehicle control process is extremely safe.

[0075] (4) In the vehicle control method of the present invention, once the vehicle owner needs to add a mobile device with a legitimate identity, or modify the account permissions of some mobile devices, the vehicle owner only needs to bring the mobile device to the cloud platform, and there is no need to update the device account information separately at the vehicle, because during the vehicle control process of the mobile device, the cloud platform will send the latest device account information to the vehicle for synchronization of the device keys of both ends in the current cycle. That is, the vehicle control method of the present invention is comprehensive, and the deletion and modification of the mobile device used for vehicle control and the adjustment of account permissions are very convenient and user-friendly. BRIEF DESCRIPTION OF THE DRAWINGS

[0076] Figure 1 A flow chart of a safe vehicle control method of the present invention;

[0077] Figure 2 The figure is a schematic diagram of the overall architecture of a safe vehicle control system of the present invention. DETAILED DESCRIPTION

[0078] In order to make the technical solution of the present invention clearer and more specific, the present invention is clearly and completely described below in conjunction with the accompanying drawings. Any equivalent replacement of the technical features of the technical solution of the present invention and any solution derived by conventional reasoning by ordinary technicians in the field without making any creative work shall fall within the protection scope of the present invention.

[0079] For the convenience of description, in the present invention, mobile phones, smart wearable devices, etc. used for vehicle control are collectively referred to as mobile devices.

[0080] Vehicle control refers to basic control operations such as unlocking, locking, starting, shutting down, turning on and off the air conditioning, etc., which does not include driving the vehicle.

[0081] Example 1

[0082] like Figure 1FIG. 1 is a flow chart of a safe vehicle control method of the present invention, and the specific steps are as follows:

[0083] S1, the vehicle is registered at the cloud platform, the key filling platform fills the first key package into the successfully registered vehicle, and synchronizes the first key package to the cloud platform;

[0084] S2, after the mobile device is registered at the cloud platform, the vehicle and the cloud platform negotiate to determine the first key to be used in the current period;

[0085] S3, the vehicle and the cloud platform synchronously negotiate various keys in the current period based on the current first key;

[0086] S4, the authorized mobile device requests various keys in the current cycle from the cloud platform, and generates a digital key based on the various keys in the current cycle to control the target vehicle.

[0087] There are also the following sub-steps in S1:

[0088] S11, when the vehicle V leaves the factory, it is registered at the cloud platform TSP through an offline secure channel. After successful registration, the cloud platform TSP database stores the initial vehicle information of the vehicle V. The initial vehicle information includes the vehicle identification code, the hash function used by the vehicle, the key splitting algorithm used by the vehicle, and the key derivation function used by the vehicle. The successfully registered vehicle V stores the cloud platform TSP private key in its own secure internal medium; the cloud platform TSP database stores its own pair of public and private keys, and the cloud platform TSP public key is recorded as P b TSP , record the cloud platform TSP private key as P r TSP ;

[0089] S12, the successfully registered vehicle V fills the first key package at the key filling platform DKP, and the key filling platform DKP simultaneously synchronizes the first key package to the cloud platform TSP.

[0090] S12 also includes the following sub-steps:

[0091] S121, the successfully registered vehicle V initiates a first key package filling instruction including a vehicle identification code to the key filling platform DKP.

[0092] S122, the SSL gateway in the key injection platform DKP establishes TLS secure channels with the vehicle V and the cloud platform TSP respectively.

[0093] In S122, after a series of operations such as initialization and network access, the vehicle joins the TLS secure channel constructed between the key injection platform DKP. The cloud platform TSP is similar. A series of operations such as initialization and network access are existing technologies and will not be repeated here.

[0094] S123, the key injection platform DKP generates a first key package based on the photon, wherein the first key package includes a plurality of first keys of true random numbers and a true random number identifier bound to each first key one by one;

[0095] S124, the key injection platform DKP injects the first key package into the secure medium on the vehicle V through the TLS secure channel; at the same time, the key injection platform DKP synchronizes the vehicle identification code and the first key package to the cloud platform TSP, and the cloud platform TSP updates the initial vehicle information of the vehicle V according to the vehicle identification code, that is, binds the first key package to the initial vehicle information of the vehicle V and stores it in the cloud platform TSP database.

[0096] Generating true random numbers based on photons is an existing technology and will not be described in detail here.

[0097] After purchasing a car, if the owner does not bring a mobile device to the cloud platform for registration, the owner can only use the traditional car key to control the car, so there is no need for the vehicle and the cloud platform to negotiate and determine the first key to be used in the current cycle too early.

[0098] S2 also includes the following sub-steps:

[0099] S21, after purchasing vehicle V, the car owner brings a mobile device to register at the cloud platform TSP through an offline secure channel. After successful registration, the cloud platform TSP binds the mobile device identification code, mobile device account, password, account authority, mobile device private key, and hash function used by the mobile device with the initial vehicle information of vehicle V to form registration information, which is stored in the cloud platform TSP database; after successful registration, the mobile device stores its own account authority, cloud platform TSP private key, and vehicle identification code of vehicle V, and each mobile device stores its own pair of public and private keys.

[0100] In the present invention, a target vehicle can be controlled by multiple mobile devices, and a mobile device can also control multiple target vehicles. In this embodiment, the mobile device is a mobile phone, and the mobile device account is a mobile phone number. The owner can bring multiple mobile devices to register at the cloud platform TSP. In the subsequent steps, if the owner adds a new mobile device to control the vehicle, it returns to S21 to update the registration information.

[0101] Account permissions are used to limit the specific vehicle control content of mobile devices. For example, the owner's mobile device account has the highest permissions and can issue all vehicle control commands; while the owner's child's mobile device account can only issue vehicle control commands to unlock, lock, and turn the air conditioner on and off, but cannot start the vehicle or shut down the vehicle.

[0102] S22, the cloud platform TSP sends key negotiation information M0 to the vehicle V:

[0103] M0=P b TSP [ID V ||N1||FKN],

[0104] Among them, || represents a connector, ID V represents the vehicle identification code of vehicle V, N1 represents the first random number generated when the cloud platform TSP sends the key negotiation information M0, which is generated by the quantum random number generator built into the cloud platform TSP, FKN represents the identifier randomly extracted by the cloud platform TSP from the first key package in the registration information of vehicle V, P b TSP [·] indicates the use of the cloud platform TSP public key P b TSP Perform asymmetric encryption;

[0105] At the same time, the cloud platform TSP retrieves the first key FK bound to the identifier FKN from the corresponding registration information in its own database as the first key used by the vehicle V in the current cycle;

[0106] S23, vehicle V calls the cloud platform TSP private key P in its own secure medium r TSP After asymmetric decryption key negotiation information M0, the first copy of the vehicle identification code ID is obtained V ´, a first random number first copy N1´ and an identifier copy FKN´;

[0107] Vehicle V Verify the current vehicle identification code first copy ID V After the result is correct, the first key FK' bound to the current identifier copy FKN' is called from the first key package of its own secure medium to symmetrically encrypt the current first random number first copy N1' to form the first key confirmation information M1. The vehicle V sends the first key confirmation information M1 to the cloud platform TSP;

[0108] If vehicle V verifies the first copy ID of the current vehicle identification code V ´ is wrong, or the current identifier copy FKN´ does not exist in the first key package of its own secure medium, the vehicle V discards the current key negotiation information M0.

[0109] S24, the cloud platform TSP uses the first key FK used by the vehicle V in the current period to symmetrically decrypt the first key confirmation information M1, and obtains the second copy N1´´ of the first random number. If N1´´=N1, the cloud platform TSP sends a message to the vehicle V to "enable the current first key", that is, the first key FK´ called by the vehicle V in S23 is FK, and the vehicle V uses the first key FK as the first key used by the vehicle V in the current period; if N1´´≠N1, return to S22.

[0110] Optionally, if the cloud platform TSP does not receive the first key confirmation information M1 sent by the vehicle V within a period greater than the set first time threshold Δt1 after sending the key negotiation information M0, the process returns to S22. In this embodiment, Δt1=20 seconds.

[0111] If network packet loss occurs when vehicle V is sending the first key confirmation information M1 to the cloud platform TSP, or vehicle V discards the key negotiation information M0 that fails verification, or the cloud platform TSP is intercepted by hackers when sending the key negotiation information M0 to vehicle V, these situations may cause the cloud platform TSP to not receive the first key confirmation information M1 sent by the vehicle V cloud platform for more than the set first time threshold Δt1 after sending the key negotiation information M0. Therefore, the present invention can ensure that vehicle V and the cloud platform TSP negotiate and determine the first key to be used in the current cycle as soon as possible.

[0112] The following sub-steps are also included in S3:

[0113] S31, the vehicle V uses its own key segmentation algorithm to segment the first key used in the current cycle to obtain the vehicle-side master key K in the current cycle V1 、Communication key K V2 and protection key K V3 The cloud platform TSP retrieves the key segmentation algorithm used by vehicle V from the registration information of vehicle V, performs segmentation processing on the first key used by vehicle V in the current cycle, and synchronously obtains the vehicle-side master key K of vehicle V in the current cycle. V1 、Communication key K V2 and protection key K V3 .

[0114] In this embodiment, the key splitting algorithm used by vehicle V is the Shamir key sharing algorithm.

[0115] S32, the cloud platform TSP retrieves the key derivation function KDF used by vehicle V from the vehicle V registration information V , each mobile device account and account permissions, and then use the key derivation function KDF V Based on the vehicle-side master key KV1 and each mobile device account, derive the device key of each mobile device corresponding to the vehicle V in the current period, and then update the registration information of the vehicle V; at the same time, the cloud platform TSP uses the protection key K V3 After symmetrically encrypting each mobile device account and account authority, the device account information M2 is generated and sent to the vehicle V.

[0116] S33, vehicle V uses the protection key K in the current cycle V3 After symmetrically decrypting the device account information M2, the account permissions corresponding to several mobile device accounts are obtained, and then the key derivation function KDF is used to obtain the corresponding account permissions of several mobile device accounts. V Based on the vehicle-side master key K in the current cycle V1 And each mobile device account, derive the device key of each mobile device corresponding to the vehicle V in the current period, bind each mobile device account in the current period with the account authority and the corresponding device key, and store them in its own secure medium.

[0117] Using a key derivation function to derive a new key is an existing technology and will not be described in detail here.

[0118] S4 also includes the following sub-steps:

[0119] S41, when the target vehicle is vehicle V and vehicle V needs to be controlled, the mobile device MCD turns on Bluetooth and detects whether there is vehicle V within a range with the mobile device MCD as the center and a diameter as the first distance;

[0120] S42, if there is a vehicle V within the range with the mobile device MCD as the center and the diameter as the first distance, the mobile device MCD requests the vehicle control key in the current period from the cloud platform TSP, and then performs Bluetooth pairing with the vehicle V based on the vehicle control key. After the Bluetooth pairing is successful, the mobile device MCD obtains the digital key and directly controls the vehicle V. Otherwise, the mobile device MCD does not control the vehicle.

[0121] In this embodiment, the first distance is 50 meters, which is also the distance that can be effectively covered by Bluetooth 4.0 and above.

[0122] In S42, the following sub-steps are also included:

[0123] S421, after the quantum random number chip built into the mobile device MCD generates the second random number N2, it sends a proximity control key request message M3 to the cloud platform TSP:

[0124] M3={req(M3)||P b TSP [ID MCD ||P b MCD (ACMCD ||PW MCD ||ID V ||N2)]},

[0125] Wherein, req(·) is the message type identifier, req(M3) represents the message type identifier of the vehicle control key request information M3, ID MCD Indicates the mobile device identification code of the mobile device MCD, P b MCD (·) indicates asymmetric encryption using the public key of the mobile device MCD, AC MCD Indicates the mobile device account of the mobile device MCD, PW MCD Indicates the password of the mobile device MCD.

[0126] The message type identifier is used to assist the information receiver (such as mobile devices, cloud platforms, etc.) to understand the purpose of the message and perform corresponding operations.

[0127] S422, the cloud platform TSP uses the cloud platform TSP private key P according to req(M3). r TSP P b TSP [ID MCD ||P b MCD (AC MCD ||PW MCD ||ID V ||N2)] to perform asymmetric decryption, and then use the ID obtained by asymmetric decryption MCD Retrieve the private key P of the mobile device MCD from the registration information in the cloud platform TSP database r MCD , use P r MCD Asymmetric decryption b MCD (AC MCD ||PW MCD ||ID V ||N2) and obtain the mobile device account, password, target vehicle identification code and the second random number copy N2´, verify whether the mobile device account, password and target vehicle identification code exist in the same registration information in the cloud platform TSP database. If so, the cloud platform TSP returns the vehicle control key information M4 to the mobile device MCD:

[0128] M4={req(M4)||TK[K V2 ||K MCD,V ]},TK=H MCD (PW MCD ||N2´),

[0129] Wherein, req(M4) represents the message type identifier of the vehicle control key information M4, TK represents the temporary key, TK(·) represents the symmetric encryption using the temporary key TK, H MCD represents the hash function used by the mobile device MCD, which is retrieved by the cloud platform TSP from the corresponding registration information in the cloud platform TSP database, K MCD,V Indicates that the device key of the mobile device MCD corresponding to the vehicle V in the current cycle is obtained in S32;

[0130] If the ID does not exist in the registration information of the cloud platform TSP database MCD , or the mobile device account, password and target vehicle identification code decrypted from the vehicle control key request information M3 are not in the same registration information, the cloud platform TSP discards the current vehicle control key request information M3.

[0131] Optionally, if the mobile device MCD does not receive the vehicle control key information M4 sent by the cloud platform TSP for more than the set second time threshold Δt2 after sending the vehicle control key request information M3, then the process returns to S41. In this embodiment, Δt2=2 seconds.

[0132] S423, after receiving the vehicle control key information M4, the mobile device MCD calculates the temporary key copy TK´=(PW MCD ||N2) and then use the temporary key copy TK´ to symmetric decrypt TK[K V2 ||K MCD,V ] and then get the first copy of the communication key K V2 ´ and the first copy of the device key K MCD,V ´.

[0133] S424, after the mobile device MCD generates the third random number N3, it generates the device authentication information M5 and sends it to the vehicle V: M5=K V2 AC MCD ||K MCD,V ´[ID V ||N3||ACR MCD ]},

[0134] Among them, K V2 ´{·} indicates using the first copy of the communication key K V2 ´Perform symmetric encryption, K MCD,V ´[·] indicates using the first copy of the device key K MCD,V ´Perform symmetric encryption, ACR MCD Indicates the account permissions of the mobile device MCD.

[0135] S425, vehicle V uses the communication key K in the current cycle V2After symmetric decryption of the device authentication information M5, the mobile device account copy AC is obtained MCD ´, then according to AC MCD ´ Retrieve the corresponding device key in the current period from the secure medium to symmetric decrypt K MCD,V ´[ID V ||N3||ACR MCD ], get the first copy of the third random number N3´, the account authority copy ACR MCD ´ and the second copy of the vehicle identification number ID V ´´, Vehicle V Verification Vehicle Identification Number Second Copy ID V ´´Is it the same as the vehicle identification code of vehicle V itself, account authority copy ACR MCD ´ Is it correct? If all are verified, the vehicle V generates the fourth random number N4, then generates the target vehicle authentication information M6 and sends it to the mobile device MCD: M6=K MCD,V [N4||K V2 {N3´||N4}], vehicle V generates digital key DK=K MCD,V [K V2 ],

[0136] Among them, K V2 {·} indicates the use of the communication key K V2 Perform symmetric encryption, K MCD,V [·] indicates using the device key K MCD,V Symmetric encryption is performed. In S425, if the verification is successful, it means that the first copy of the device key K MCD,V ´ is the device key K MCD,V , the first copy of the communication key K V2 ´ is the communication key K V2 ;

[0137] If the second copy of the vehicle identification number ID V ´´VIN is different from the vehicle V itself and / or the account authority copy ACR MCD If it is incorrect, the verification fails, and the vehicle V sends a message of "Bluetooth pairing error" to the mobile device MCD. If the identity of the mobile device MCD is legal, it returns to S41.

[0138] A legal identity means that the user has been registered with the cloud platform TSP.

[0139] Optionally, when the same target vehicle sends a "Bluetooth pairing error" message for α times in succession, an alarm message is directly sent to the cloud platform TSP, and the cloud platform TSP sends the alarm message to the owner's mobile device to inform the owner.

[0140] In this embodiment, α=10.

[0141] S426, the mobile device MCD uses the first copy of the device key K MCD,V ' to symmetrically decrypt the target vehicle authentication information M6 to obtain the fourth random number copy N4' and K V2 {N3´||N4}, then use the first copy of the communication key K V2 Symmetric decryption K V2 {N3´||N4}, the second copy of the third random number N3´´ and the second copy of the fourth random number N4´´ are obtained. If N3´´=N3´ and N4´´=N4´, the two-way authentication between the mobile device MCD and the vehicle V is successful, the Bluetooth pairing between the mobile device MCD and the vehicle V is successful, and the mobile device MCD generates a digital key DK=K MCD,V ´[K V2 ´].

[0142] Of course, at this time K MCD,V ´[K V2 =K MCD,V [K V2 ].

[0143] S427, within the validity period of the current digital key DK, the mobile device MCD, based on its own account authority, uses the digital key DK to encrypt the vehicle control instructions to form vehicle control information, and sends the vehicle control information to the vehicle V via Bluetooth. The vehicle V uses the digital key DK to decrypt the proximity control information and execute the corresponding vehicle control instructions; the validity period of the digital key DK is within the Δt3 time period from the moment when the vehicle V sends the target vehicle authentication information M6.

[0144] In this embodiment, Δt3=2min.

[0145] S428, when the validity period of the digital key DK expires, or when the distance between the mobile device MCD and the vehicle V is greater than the first distance, the Bluetooth connection between the vehicle V and the mobile device MCD is automatically disconnected, and the process returns to S41.

[0146] In the vehicle control method of the present invention, for the cloud platform TSP and the vehicle V, performing the first key update further includes the following steps:

[0147] Step 1: record the first key and the corresponding identifier in the current period as the old first key and the old identifier FKN old , at the end of the current cycle, the cloud platform TSP moves the old first key and the old identifier from the first key package of the vehicle V registration information into the blacklist;

[0148] Step 2: The cloud platform TSP randomly determines the next cycle length γ of vehicle V, generates a sixth random number N6, and randomly extracts a new identifier FKN from the first key package in the current registration information of vehicle V. newAfter that, a key update message A1 is generated and sent to the vehicle V, 1 day ≤ γ ≤ 30 days:

[0149] A1={req(A1)||P b TSP [ID V ||FKN old ||N6||FKN new ||MAC]}, MAC=H V (K V3 ||N6||FKN new ),

[0150] Where req(A1) represents the message type identifier of the key update message A1, MAC is the check code, H V (·) represents the hash function used by vehicle V.

[0151] Step 3: Vehicle V uses the platform TSP private key as P r TSP After asymmetric decryption key update message A1, the vehicle identification code, old identifier, verification code, the first copy of the sixth random number N6' and the new identifier copy FKN are obtained. new ´, verify that both the vehicle identification number and the old identifier are correct,

[0152] If all are correct, the vehicle V retrieves the protection key K of the current cycle from its own secure medium. V3 And hash function, calculate the verification code copy MAC´=H V (K V3 ||N6´||FKN new ´), if MAC´=MAC, then vehicle V is based on the new identifier copy FKN new ', retrieve the corresponding new first key K from its own secure medium new , generate new key confirmation information A2 and send it to the cloud platform TSP:

[0153] A2={req(A2)||K old (K new ||N6´)},

[0154] Where req(A2) represents the message type identifier of the new key confirmation information A2, K old Represents the old identifier FKN old The bound old first key, K old (·) indicates using the old first key K old Perform symmetric encryption;

[0155] If any of the vehicle identification number and the old identification is verified incorrectly, or the new identifier copy FKN does not exist in the vehicle V's own security medium new ´, then vehicle V discards the current key update message A1.

[0156] Step 4: The cloud platform TSP uses the old first key to symmetrically decrypt the new key confirmation information A2 and obtains the new first key copy K new ´ and the second copy of the sixth random number N6´´, the cloud platform TSP uses the new identifier FKN in step 2 new The corresponding new first key is retrieved from the vehicle V registration information and compared with the first key copy K new ´, and the cloud platform TSP compares the sixth random number N6 with the second copy of the sixth random number N6´´. If the two comparison results are the same, the cloud platform TSP enters the next cycle and starts the countdown for the next cycle, and the new identifier FKN new As the first key in the next cycle, and send it to vehicle V using FKN new The new key of symmetrical encryption replaces the information A3;

[0157] If there is more than one difference between the two comparison results, the cloud platform TSP discards the current new key confirmation information A2.

[0158] Optionally, when the cloud platform TSP does not receive the new key confirmation information A2 sent by the vehicle V for more than the set sixth time threshold Δt6 after sending the key update message A1, it returns to step 2.

[0159] In this embodiment, Δt6=1 second.

[0160] Step 5: Vehicle V uses the new first key K obtained in step 3 new After symmetric decryption of the new key replacement information A3, the old identifier and the old first key in the vehicle's own security medium are moved to the blacklist, and the vehicle V enters the next cycle and replaces the new first key K new As the first key in the next cycle.

[0161] Repeat steps 1 to 5 until the last first key in the first key package in vehicle V is used as the first key in the next cycle. Vehicle V sends a key charging message to the owner's mobile device. The owner drives vehicle V to the key charging platform and charges the vehicle V with a new first key package. The key charging platform synchronizes the new first key package to the cloud platform.

[0162] After the first key is updated, the corresponding keys in the next cycle will also be updated, that is, the various keys mentioned in S3~S4 and sub-steps will be updated.

[0163] Optionally, all old keys in the previous cycle are moved to the blacklist. In the subsequent vehicle control process, the vehicle V and / or the cloud platform TSP conducts a spot check on the information with decryption errors, that is, uses the keys in the blacklist to try to decrypt. Once it is found that the information with decryption errors can be successfully decrypted using the keys in the blacklist, the vehicle V and / or the cloud platform TSP sends an attack alarm to the vehicle manufacturer to inform the vehicle manufacturer that hackers are attacking the vehicle control method of the present invention, and the hackers have stolen the abandoned keys, and it is necessary to improve the defense mechanism as soon as possible. The safe vehicle control method of the present invention can well resist the replay attack by hackers.

[0164] The present invention provides a safe vehicle control method. After the car owner brings all mobile devices that use digital keys to the cloud platform TSP for registration, each mobile device can use the digital key to control the target vehicle within the scope of its own account authority, which overcomes the defect that the digital key can only be used by the car owner's mobile device in the prior art, and also reduces the burden on the car owner's mobile device, because when people other than the car owner control the car, there is no need to complete everything through the digital key on the car owner's mobile device, which further reduces the risk brought by the car owner lending the mobile device. An example of "reducing the risk brought by the car owner lending the mobile device" is given: the car owner drives to work in the company, but the vehicle is parked in the wrong position, affecting the entry and exit of surrounding vehicles. The car owner is in a meeting at this time and cannot leave. The mobile phone of the car owner's friend who is also in the company can control the car owner's vehicle and has the authority to start the vehicle. After the security guard contacts the car owner, the car owner's friend can move the car, and the car owner does not need to lend his own mobile phone.

[0165] The present invention provides a safe vehicle control method, which makes vehicle control more convenient and provides passengers with a better experience. Specific examples are as follows:

[0166] (1) In the hot summer, the car owner parks his car in the open-air parking lot downstairs of the company. The car owner can control the target vehicle through the mobile phone 15 minutes before getting off work and start the vehicle air conditioning. In this way, when the car owner enters the vehicle after get off work, the interior of the vehicle is already very cool, and the car owner has a better experience in the subsequent driving process.

[0167] (2) On a hot summer day, if the child arrives at the vehicle first, the child can use a smart watch to unlock the vehicle and turn on the air conditioner. The child then waits for the owner in the cool car. The child's smart watch does not have permission to start the vehicle, so it is possible to avoid accidents caused by the child accidentally starting the vehicle while playing in the car.

[0168] (3) The vehicle control method of the present invention facilitates the management of vehicles being tested in a car shop / cars provided by the organizer of a car race. The car shop / organizer does not need to replicate multiple traditional car keys, nor does it require staff to follow the test drivers / participants throughout the entire process. It only needs to hand over the mobile devices used to control the vehicles to the test drivers / participants and set the account permissions of these mobile devices (such as being able to unlock and start the vehicle only during the test drive / race). This can avoid the problem of excessive permissions of traditional car keys and the problem of vehicle theft that may be caused by handing over traditional car keys.

[0169] The vehicle control method of the present invention has extremely high safety in the entire vehicle control process, which ensures the property safety of the vehicle owner, which is mainly reflected in the following aspects:

[0170] ① The update cycle duration γ of the first key, which is the basis of the key used in the entire vehicle control method, is randomly determined by the cloud platform TSP when selecting the current first key. No third party knows it except the cloud platform TSP. Each update of the first key is initiated by the cloud platform TSP to the vehicle V at the end of the current cycle, and the information of the update cycle duration γ is not included in the entire update process. Therefore, there is no possibility that the update cycle duration γ can be known by hackers.

[0171] ② After the first key package is generated by the key filling platform, it is filled into the vehicle V and synchronized to the cloud platform TSP. When updating the first key, the negotiation between the vehicle V and the cloud platform TSP is based on the new and old identifiers, and only in the last new key confirmation information A2, the old first key is used to encrypt the new first key. After the vehicle V and the cloud platform TSP have synchronized and updated the new first key, all the keys in the previous cycle are moved into the blacklist, and then combined with the spot check mechanism for decrypted information errors, once it is found that the decrypted information errors can be successfully decrypted using the keys in the blacklist, an alarm is issued, so hackers have almost no possibility of obtaining the first key in each cycle in the vehicle control method of the present invention. If the hacker maliciously tampers with the information in the process of updating the first key, it will cause the cloud platform TSP to fail to verify the new key confirmation information A2, and the first key will be updated again between the vehicle V and the cloud platform TSP, so the hacker cannot replace the first key in the new cycle by malicious tampering.

[0172] ③ Vehicle V and cloud platform TSP do not generate the vehicle-side master key K for the current cycle of vehicle V on one end V1 、Communication key K V2 and protection key K V3 , the other end directly encrypts and decrypts the information and shares the vehicle-side master key K in the current cycle V1 、Communication key K V2 and protection key K V3; Instead, the vehicle-side master key K for the current cycle of vehicle V is generated at each end V1 、Communication key K V2 and protection key K V3 After that, the protection key K in the current cycle is directly used V3 Symmetrically encrypt and decrypt the device account information stored in the cloud platform TSP. Both ends (i.e., vehicle V and cloud platform TSP) use the vehicle master key K in the current cycle to encrypt and decrypt the device account information stored in the cloud platform TSP. V1 The device key of each mobile device corresponding to the vehicle V in the current cycle is obtained from each mobile device account. That is, in the process of vehicle V and cloud platform TSP obtaining the device key in the current cycle, there is no sending / receiving of the vehicle-side master key K V1 、Communication key K V2 and protection key K V3 Therefore, even if hackers intercept the information in the process, they cannot decrypt the vehicle-side master key K V1 、Communication key K V2 and protection key K V3 , let alone get the device key in the current cycle. And any malicious tampering of the information in the process by hackers will cause the failure of synchronizing the device key in the current cycle between the vehicle V and the cloud platform TSP, so hackers cannot replace the device key in the current cycle with the key they know by malicious tampering.

[0173] ④ There is no first key or vehicle-side master key K in the legal mobile device. V1 、Communication key K V2 , protect the key K V3 As well as the device key information, this also reduces the occupation of mobile device storage resources; only when controlling the vehicle will the mobile device obtain the communication key K used to generate the digital key within the current validity period V2 and device key; and from the above analysis ①~③, once the first key used by the vehicle V and the cloud platform TSP changes, the vehicle-side master key K in the current cycle V1 、Communication key K V2 , protect the key K V3 , device key, and the digital key DK used to control the vehicle will all change. Combined with the validity period of the digital key, even if a hacker intercepts the information and cracks a key with great difficulty, he or she will not be able to control the target vehicle, let alone threaten the security of the vehicle control method of the present invention. That is, the vehicle control method of the present invention is closely linked, and has extremely high uncertainty for hackers, making it extremely difficult to completely crack, and the entire vehicle control process is extremely safe.

[0174] In the vehicle control method of the present invention, once the vehicle owner needs to add a mobile device with a legitimate identity, or modify the account permissions of some mobile devices, the vehicle owner only needs to take the mobile device to the cloud platform TSP, and there is no need to update the device account information separately at the vehicle V, because during the vehicle control process of the mobile device, the cloud platform TSP will send the latest device account information to the vehicle V for synchronizing the device keys of both ends in the current cycle. That is, the vehicle control method of the present invention is comprehensive, and the deletion and modification of the mobile device used for vehicle control and the adjustment of account permissions are very convenient and humane.

[0175] Example 2

[0176] The present invention also provides a mobile device, which uses a safe vehicle control method as described in Example 1 to control a target vehicle.

[0177] like Figure 2 As shown, the present invention also provides a safe vehicle control system, including: a mobile device, a target vehicle, a cloud platform, and a key injection platform.

[0178] The key filling platform is used to fill the target vehicle with the first key package and synchronize the first key package to the cloud platform; the cloud platform stores the registration information of the mobile device and the target vehicle, receives the information of the mobile device and the target vehicle, or sends information to the mobile device and the target vehicle; the mobile device is used to control the target vehicle;

[0179] Each platform, vehicle, and mobile device is programmed or configured to execute a safe vehicle control method as described in Example 1.

[0180] In order to distinguish them easily, Figure 2 In the figure, the key filling platform is used to fill the target vehicle with the first key package and synchronize the first key package to the cloud platform. The information flow in the process is represented by a thick solid line, the information exchange between the mobile device and the target vehicle when controlling the vehicle is represented by a thin solid line, and the information exchange between the cloud platform and the mobile device / target vehicle in the process of negotiating the key is represented by a dotted solid line.

[0181] The technology, shape, and structure parts not described in detail in the present invention are all well-known technologies. It should also be pointed out that the above are only preferred embodiments of the present invention and are not intended to limit the present invention. The components or steps in the embodiments of the present invention can be decomposed and / or recombined, and these decompositions and / or recombinations should be regarded as equivalent solutions of the present application and should fall within the protection scope of the present invention.

Claims

1. A safe vehicle control method, characterized in that: The following steps are involved: S1, the vehicle is registered at the cloud platform, the key filling platform fills the first key package into the successfully registered vehicle, and synchronizes the first key package to the cloud platform; S2, after the mobile device is registered at the cloud platform, the vehicle and the cloud platform negotiate to determine the first key to be used in the current period; S3, the vehicle and the cloud platform synchronously negotiate various keys in the current period based on the current first key; S4, the authorized mobile device requests various keys in the current cycle from the cloud platform, and generates a digital key based on the various keys in the current cycle to control the target vehicle; In S2, the following sub-steps are also included: S21, after purchasing vehicle V, the car owner brings a mobile device to register at the cloud platform TSP. After successful registration, the cloud platform TSP obtains the mobile device identification code, mobile device account, password, account authority, mobile device private key, and hash function used by the mobile device and binds it with the initial vehicle information of vehicle V to form registration information; after successful registration, the mobile device stores its own account authority, cloud platform TSP private key, and vehicle identification code of vehicle V, and each mobile device stores its own pair of public and private keys; S22, the cloud platform TSP sends key negotiation information M0 to the vehicle V: M0=P b TSP [ID V ||N1||FKN], Among them, || represents a connector, ID V represents the vehicle identification code of vehicle V, N1 represents the first random number generated when the cloud platform TSP sends the key negotiation information M0, FKN represents the identifier randomly extracted by the cloud platform TSP from the first key package in the registration information of vehicle V, P b TSP [·] indicates the use of the cloud platform TSP public key P b TSP Perform asymmetric encryption; At the same time, the cloud platform TSP retrieves the first key FK bound to the identifier FKN from the corresponding registration information as the first key used by the vehicle V in the current cycle; S23, vehicle V calls the cloud platform TSP private key P r TSP After asymmetric decryption key negotiation information M0, the first copy of the vehicle identification code ID is obtained V ´, a first random number first copy N1´ and an identifier copy FKN´; Vehicle V Verify the current vehicle identification code first copy ID V ´After it is correct, the first key FK´ bound to the current identifier copy FKN´ is called from the first key package to symmetrically encrypt the current first random number first copy N1´ to form the first key confirmation information M1. The vehicle V sends the first key confirmation information M1 to the cloud platform TSP; If vehicle V verifies the first copy ID of the current vehicle identification code V ´ error, or the current identifier copy FKN´ does not exist in the first key package, the vehicle V discards the current key negotiation information M0; S24, the cloud platform TSP uses the first key FK used by the vehicle V in the current period to symmetrically decrypt the first key confirmation information M1, and obtains the second copy of the first random number N1´´. If N1´´=N1, the cloud platform TSP sends a message "enable the current first key" to the vehicle V, and the vehicle V uses the first key FK as the first key used by the vehicle V in the current period; if N1´´≠N1, return to S22; In S3, the following sub-steps are also included: S31, the vehicle V uses its own key segmentation algorithm to segment the first key used in the current cycle to obtain the vehicle-side master key K in the current cycle V1 、Communication key K V2 and protection key K V3 The cloud platform TSP retrieves the key segmentation algorithm used by vehicle V from the registration information of vehicle V, performs segmentation processing on the first key used by vehicle V in the current cycle, and synchronously obtains the vehicle-side master key K of vehicle V in the current cycle. V1 、Communication key K V2 and protection key K V3 ; S32, the cloud platform TSP retrieves the key derivation function KDF used by vehicle V from the vehicle V registration information V , each mobile device account and account permissions, and then use the key derivation function KDF V Based on the vehicle-side master key K V1 and each mobile device account, derive the device key of each mobile device corresponding to the vehicle V in the current period, and then update the registration information of the vehicle V; at the same time, the cloud platform TSP uses the protection key K V3 After symmetrically encrypting each mobile device account and account authority, the device account information M2 is generated and sent to the vehicle V; S33, vehicle V uses the protection key K in the current cycle V3 After symmetrically decrypting the device account information M2, the account permissions corresponding to several mobile device accounts are obtained, and then the key derivation function KDF is used to obtain the corresponding account permissions of several mobile device accounts. V Based on the vehicle-side master key K in the current cycle V1 From each mobile device account, derive the device key of each mobile device corresponding to the vehicle V in the current period, and bind each mobile device account in the current period with the account authority and the corresponding device key.

2. A safe vehicle control method according to claim 1, characterized in that: S4 also includes the following sub-steps: S41, when the target vehicle is vehicle V and vehicle V needs to be controlled, the mobile device MCD turns on Bluetooth and detects whether there is vehicle V within a set range; S42, if vehicle V exists, the mobile device MCD requests the vehicle control key in the current cycle from the cloud platform TSP, and then performs Bluetooth pairing with the vehicle V based on the vehicle control key. After the Bluetooth pairing is successful, the mobile device MCD obtains the digital key and directly controls the vehicle V. Otherwise, the mobile device MCD does not control the vehicle.

3. A safe vehicle control method according to claim 2, characterized in that: There are also the following sub-steps in S1: S11, vehicle V is registered at the cloud platform TSP when it leaves the factory. After successful registration, the cloud platform TSP obtains the initial vehicle information of vehicle V. The initial vehicle information includes the vehicle identification code, the hash function used by the vehicle, the key splitting algorithm used by the vehicle, and the key derivation function used by the vehicle. The successfully registered vehicle V stores the cloud platform TSP private key; the cloud platform TSP stores its own pair of public and private keys, and the cloud platform TSP public key is recorded as P b TSP , record the cloud platform TSP private key as P r TSP ; S12, the successfully registered vehicle V fills the first key package at the key filling platform DKP, and the key filling platform DKP simultaneously synchronizes the first key package to the cloud platform TSP.

4. A safe vehicle control method according to claim 3, characterized in that: S42 also includes the following sub-steps: S421, after the quantum random number chip built into the mobile device MCD generates the second random number N2, it sends a proximity control key request message M3 to the cloud platform TSP: M3={req(M3)||P b TSP [ID MCD ||P b MCD (AC MCD ||PW MCD ||ID V ||N2)]}, Where req(·) is the message type identifier, ID MCD Indicates the mobile device identification code of the mobile device MCD, P b MCD (·) indicates asymmetric encryption using the public key of the mobile device MCD, AC MCD Indicates the account of the mobile device MCD, PW MCD Indicates the password of the mobile device MCD; S422, the cloud platform TSP uses the cloud platform TSP private key P according to req(M3). r TSP P b TSP [ID MCD ||P b MCD (AC MCD ||PW MCD ||ID V ||N2)] to perform asymmetric decryption, and then use the ID obtained by asymmetric decryption MCD Retrieve the private key P of the mobile device MCD in the registration information r MCD , use P r MCD Asymmetric decryption b MCD (AC MCD ||PW MCD ||ID V ||N2) and obtain the mobile device account, password, target vehicle identification code and the second random number copy N2´, verify whether the mobile device account, password and target vehicle identification code exist in the same registration information. If so, the cloud platform TSP returns the vehicle control key information M4 to the mobile device MCD: M4={req(M4)||TC[K V2 ||K MCD,V ]},TK=H MCD (PW MCD ||N2´), Wherein, req(M4) represents the message type identifier of the vehicle control key information M4, TK represents the temporary key, TK(·) represents the symmetric encryption using the temporary key TK, H MCD represents the hash function used by the mobile device MCD, which is retrieved by the cloud platform TSP from the corresponding registration information in the cloud platform TSP database, K MCD,V Indicates the device key of the mobile device MCD corresponding to the vehicle V in the current cycle; If the ID does not exist in the registration information of the cloud platform TSP MCD , or the mobile device account, password and target vehicle identification code decrypted from the vehicle control key request information M3 are not in the same registration information, then the cloud platform TSP discards the current vehicle control key request information M3; S423, after receiving the vehicle control key information M4, the mobile device MCD calculates the temporary key copy TK´=(PW MCD ||N2) and then use the temporary key copy TK´ to symmetric decrypt TK[K V2 ||K MCD,V ] and then obtain the first copy of the communication key K V2 ´ and the first copy of the device key K MCD,V ´; S424, after the mobile device MCD generates the third random number N3, it generates the device authentication information M5 and sends it to the vehicle V: M5=K V2 AC MCD ||K MCD,V ´[ID V ||N3||ACR MCD ]}, Among them, K V2 ´{·} indicates using the first copy of the communication key K V2 ´Perform symmetric encryption, K MCD,V ´[·] indicates using the first copy of the device key K MCD,V ´Perform symmetric encryption, ACR MCD Indicates the account permissions of the mobile device MCD; S425, vehicle V uses the communication key K in the current cycle V2 After symmetric decryption of the device authentication information M5, the mobile device account copy AC is obtained MCD ´, then according to AC MCD 'Call the corresponding device key in the current cycle to symmetric decrypt K MCD,V ´[ID V ||N3||ACR MCD ], get the first copy of the third random number N3´, the account authority copy ACR MCD ´ and the second copy of the vehicle identification number ID V ´´, Vehicle V Verification Vehicle Identification Number Second Copy ID V ´´Is it the same as the vehicle identification code of vehicle V itself, account authority copy ACR MCD ´ Is it correct? If all are verified, the vehicle V generates the fourth random number N4, then generates the target vehicle authentication information M6 and sends it to the mobile device MCD: M6=K MCD,V [N4||K V2 {N3´||N4}], vehicle V generates digital key DK=K MCD,V [K V2 ], Among them, K V2 {·} indicates the use of the communication key K V2 Perform symmetric encryption, K MCD,V [·] indicates using the device key K MCD,V Perform symmetric encryption; If the second copy of the vehicle identification number ID V ´´VIN is different from the vehicle V itself and / or the account authority copy ACR MCD If it is incorrect, the verification fails, and the vehicle V sends a "Bluetooth pairing error" message to the mobile device MCD. If the identity of the mobile device MCD is legal, it returns to S41; S426, the mobile device MCD uses the first copy of the device key K MCD,V ' to symmetrically decrypt the target vehicle authentication information M6 to obtain the fourth random number copy N4' and K V2 {N3´||N4}, then use the first copy of the communication key K V2 Symmetric decryption K V2 {N3´||N4}, the second copy of the third random number N3´´ and the second copy of the fourth random number N4´´ are obtained. If N3´´=N3´ and N4´´=N4´, the two-way authentication between the mobile device MCD and the vehicle V is successful, the Bluetooth pairing between the mobile device MCD and the vehicle V is successful, and the mobile device MCD generates a digital key DK=K MCD,V ´[K V2 ´]; S427, within the validity period of the current digital key DK, the mobile device MCD, based on its own account authority, uses the digital key DK to encrypt the vehicle control command to form vehicle control information, and sends the vehicle control information to the vehicle V via Bluetooth. The vehicle V uses the digital key DK to decrypt the proximity control information and execute the corresponding vehicle control command; the validity period of the digital key DK is within the Δt3 time period from the moment when the vehicle V sends the target vehicle authentication information M6; S428, when the validity period of the digital key DK expires, or when the distance between the mobile device MCD and the vehicle V is greater than the first distance, the Bluetooth connection between the vehicle V and the mobile device MCD is automatically disconnected, and the process returns to S41.

5. A safe vehicle control method according to any one of claims 1 to 4, characterized in that: Performing the first key update includes the following steps: Step 1: record the first key and the corresponding identifier in the current period as the old first key and the old identifier FKN old , at the end of the current cycle, the cloud platform TSP moves the old first key and the old identifier from the first key package of the vehicle V registration information into the blacklist; Step 2: The cloud platform TSP randomly determines the next cycle length γ of vehicle V, generates a sixth random number N6, and randomly extracts a new identifier FKN from the first key package in the current registration information of vehicle V. new After that, a key update message A1 is generated and sent to the vehicle V, 1 day ≤ γ ≤ 30 days: A1={req(A1)||P b TSP [ID V ||FKN old ||N6||FKN new ||MAC]},MAC=H V (K V3 ||N6||FKN new ), Where req(A1) represents the message type identifier of the key update message A1, MAC is the check code, H V (·) represents the hash function used by vehicle V; Step 3: Vehicle V uses the platform TSP private key as P r TSP After asymmetric decryption key update message A1, the vehicle identification code, old identifier, verification code, the first copy of the sixth random number N6' and the new identifier copy FKN are obtained. new ´, verify that both the vehicle identification number and the old identifier are correct, If all are correct, vehicle V retrieves the protection key K of the current cycle. V3 And hash function, calculate the verification code copy MAC´=H V (K V3 ||N6´||FKN new ´), if MAC´=MAC, then vehicle V is based on the new identifier copy FKN new ', retrieve the corresponding new first key K new , generate new key confirmation information A2 and send it to the cloud platform TSP: A2={req(A2)||K old (K new ||N6´)}, Where req(A2) represents the message type identifier of the new key confirmation information A2, K old Represents the old identifier FKN old The bound old first key, K old (·) indicates using the old first key K old Perform symmetric encryption; If any of the vehicle identification number and the old identification number is verified incorrectly, or if the new identifier copy FKN does not exist in the vehicle V new ´, then vehicle V discards the current key update message A1; Step 4: The cloud platform TSP uses the old first key to symmetrically decrypt the new key confirmation information A2 and obtains the new first key copy K new ´ and the second copy of the sixth random number N6´´, the cloud platform TSP uses the new identifier FKN in step 2 new The corresponding new first key is retrieved from the vehicle V registration information and compared with the first key copy K new ´, and the cloud platform TSP compares the sixth random number N6 with the second copy of the sixth random number N6´´. If the two comparison results are the same, the cloud platform TSP enters the next cycle and starts the countdown for the next cycle, and the new identifier FKN new As the first key in the next cycle, and send it to vehicle V using FKN new The new key of symmetrical encryption replaces the information A3; If one or both of the two comparison results are different, the cloud platform TSP discards the current new key confirmation information A2; Step 5: Vehicle V uses the new first key K new After symmetric decryption of the new key replacement information A3, the old identifier and the old first key are moved to the blacklist, and the vehicle V enters the next cycle and replaces the new first key K new As the first key in the next cycle.

6. A safe vehicle control method according to claim 5, characterized in that: When the last first key in the first key package of vehicle V is used as the first key in the next cycle, vehicle V sends a key filling message to the owner's mobile device. The owner drives vehicle V to the key filling platform and fills the vehicle V with a new first key package. The key filling platform synchronizes the new first key package to the cloud platform.

7. A mobile device, characterized in that: A target vehicle is controlled by using a safe vehicle control method as described in any one of claims 1 to 6.

8. A safe vehicle control system, characterized in that: include: Mobile devices, target vehicles, cloud platforms, key injection platforms, The key filling platform is used to fill the target vehicle with the first key package and synchronize the first key package to the cloud platform; the cloud platform stores the registration information of the mobile device and the target vehicle, receives the information of the mobile device and the target vehicle, or sends information to the mobile device and the target vehicle; the mobile device is used to control the target vehicle; Each platform, vehicle, and mobile device is programmed to execute a safe vehicle control method as described in any one of claims 1-6.