Method, device and vehicle for generating encryption key based on key derivation model

Through the key derivation model and key derivation parameters, it solves the expansion needs of large enterprise groups for vehicle key management systems, realizes flexible management and secure update of keys, reduces storage and management overhead, and ensures the retention of new and old keys. Differentiation and safety.

CN112448813BActive Publication Date: 2024-09-24VOLKSWAGEN AG
View PDF 17 Cites 0 Cited by

Patent Information

Application Number
CN202010883431.2
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Priority Date
2019-08-28
Filing Date
2020-08-28
Publication Date
2024-09-24
Estimated Expiration
2040-08-28

AI Technical Summary

Technical Problem

The existing key management system is difficult to meet the expanded needs of large enterprise groups for vehicle keys, including separate vehicle keys, different defined key types, completely different keys before and after key updates, and control device keys after key updates. The communication key is the same and cannot be reversibly calculated.

Method used

Using the key derivation model, a separate encryption key is derived through the master key and key derivation parameters (such as key type identification, key type learning counter, product type serial number, identity counter, etc.), reducing key storage and Manage overhead and update keys when needed, making sure old and new keys are different.

Benefits of technology

It achieves flexible management of vehicle keys on a global scale, reduces key storage and management overhead, improves security and flexibility, avoids the risk of key inverse calculation, and reduces database security requirements.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN112448813B_ABST
    Figure CN112448813B_ABST
Patent Text Reader

Abstract

The present invention relates to a method and device for generating encryption keys according to a key derivation model and a vehicle. In one design, the method for generating encryption keys according to a key derivation model has the following steps: ‑ defining a master key for different models of a product type of a manufacturer, ‑ defining a set of key derivation parameters for the key derivation model, ‑ detecting the key derivation parameters of the model from which the encryption key is to be derived, ‑ deriving a separate encryption key or a set of encryption keys from the master key according to the key derivation model and taking into account the key derivation parameters, characterized in that ‑ the step of defining a set of key derivation parameters includes at least the following parameters: ‑ key type identification, ‑ key type learning counter.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The invention relates to a method and a device for generating a cryptographic key according to a key derivation model and a vehicle equipped accordingly. Background Art

[0002] The present invention relates to the field of data security in the digital age. From the field of cryptography, various technologies for encrypting data and for securely exchanging data are known. The main goals of protecting a database are confidentiality (access protection), integrity (change protection), authenticity / forgery protection, and binding force (non-repudiation). The present invention is explained by taking a general key provision system as an example. The provided key is an encryption key.

[0003] The following requirements exist for a universal key provisioning system: Firstly, it must be possible to avoid having to store all keys individually. In addition, there is a requirement for the keys to be disposable. The keys must differ between vehicles, but also between control units and / or control unit groups. The keys for different functions must also be completely different. Changing the keys must be efficient, but the new keys must also be completely distinguishable.

[0004] Here, there are solutions that rely entirely on asymmetric encryption and use asymmetric keys. However, this solution has some disadvantages: it leads to a key database that grows continuously (to keep track) with the corresponding confidentiality requirements. When the keys are simply generated normally as random numbers (the standard way), a continuously growing key database is generated. Therefore, since it is desirable to generate as few keys as possible, the number of keys must be reduced (by the number of keys or by less frequent updating of the keys), which reduces flexibility.

[0005] There is no simple possibility to generate or understand the version of the key set of the vehicle. In addition, asymmetric encryption is slow, expensive, memory-intensive, and leads to great complexity in production and subsequent maintenance.

[0006] However, there is the following problem in symmetric encryption, that is, the same key must also be given to the corresponding back-end server in a known manner, and when necessary, for example, dealers and factories must also obtain keys from them. This is required, for example, when selling vehicles. There are different regulations in the corresponding countries, and this may lead to the need to re-enter data using keys when the country or region changes. There are countries that require the keys to be disclosed to national government departments. Therefore, when selling to other regions / countries, keys need to be updated. In vehicles, keys are needed for different purposes. This is not just about opening and closing the vehicle. Now, keys have been assigned to individual control devices. Even multiple functions can be implemented in one control device, and these functions all require their own keys. Here, the same encryption key can also be used in multiple control devices. This may be meaningful, for example, for communication between control devices and for external communication. Therefore, for modern vehicles, about 50 different keys may have been set up, especially now. Storing all of this for each individual vehicle is associated with greater overhead. In order to solve this problem, the concept of key derivation has been developed. This is set to assign so-called master keys to different back-end servers. In the backend server, it is also stored for each vehicle which key types are present in which control devices. In addition, vehicle-specific characteristics are stored. This is necessary so that vehicle-specific keys can also be generated during key derivation. There are vehicle-independent universal key generation methods in which vehicle-specific characteristics are used. With this information, keys can be generated again and again for individual vehicles.

[0007] A key generation method is known from patent application US 2019 / 0028267 A1. This method uses a master key and a control device ID to generate a key. This key is used for authentication. Here, the master key is only used to ensure secure introduction into the hardware security module HSM.

[0008] DE 10 2007 058 975 A1 discloses an onboard network system for a motor vehicle having control devices which communicate with one another via a data bus. In this case, provision is made to derive a communication key generated by a master security module and encrypted with a transmission key from a symmetric AES key, wherein the AES key is a master key and at least for a major part of the client security modules, a separate communication key is derived in each case. This prevents manipulation of the onboard network of the motor vehicle, in particular of the software of the control devices of the onboard network.

[0009] A key derivation method is also known from EP 2 629 450 A2. This key derivation method is based on the “Secure Hash Algorithm” SHA-1, in which a certain number of keys are derived from a master key.

[0010] A method for protected communication of vehicles is known from EP 3 157 281 A1. Here, vehicle-specific keys are also derived from a master key. This master key serves as the basis for the derivation of all keys for all vehicles or for a specific group of vehicles (e.g. a model or a model series of a manufacturer). In the described key derivation method, the vehicle identification number VIN or FIN of the circle of trust is also used. This allows derived keys to be generated for individual vehicles.

[0011] The previously known solutions have the problem that not all of the conditions currently imposed on the key derivation model are met. Summary of the invention

[0012] The technical problem to be solved by the present invention is to provide an improved key management system which can meet the extended list of tasks imposed on large corporate groups with locations and fleets around the world.

[0013] Large corporate groups that manufacture and sell vehicles, for example, place several or all of the following requirements on the key management system:

[0014] - The keys for each vehicle must be different.

[0015] - The key types defined differently.

[0016] - When performing a key update, the new key must be completely different from the previous key in the same vehicle.

[0017] In the same control device or in a complex (network) of control devices, the new key assigned to the control device must also be completely different from the previous key.

[0018] The key of the secure communication complex (network) is identical (n control units can use the same key for communicating with one another), which also applies after an update of this key, wherein the new key must also differ from the previous key.

[0019] - By reading the metadata (key type identifier and key type learning counter), it is not possible to calculate the current key without knowing the parent keys, even if the previous key is known.

[0020] - In contrast, knowing the metadata and parent keys of the vehicle, all keys can be derived, so that the keys do not need to be stored permanently in the backend. The metadata itself is not confidential, only the master key and possible parent keys are confidential, so the database storing the metadata does not need to meet increased security requirements, such as not needing to be backed up.

[0021] The above technical problem is solved by a method according to the invention for generating a cryptographic key according to a key derivation model, a device according to the invention for generating a cryptographic key according to a key derivation model, and a vehicle according to the invention.

[0022] Corresponding to the following description of these measures, the following description contains advantageous embodiments and improvements of the invention.

[0023] In a first variant, the solution according to the invention consists in a method for generating a cryptographic key according to a key derivation model, in which the following steps are performed:

[0024] - define master keys for different models of a product type from a manufacturer,

[0025] - define a set of key derivation parameters for the key derivation model,

[0026] - detect key derivation parameters of the model from which the encryption key is to be derived,

[0027] - deriving a separate encryption key or a set of encryption keys from a master key according to a key derivation model, taking into account key derivation parameters, characterized in that

[0028] - The step of defining a set of key derivation parameters includes at least the following parameters:

[0029] -Key type identifier,

[0030] -Key type learning counter.

[0031] Using a key derivation model that can be used to derive a separate encryption key or a whole set of encryption keys from a master key provides the following advantages, namely, it is no longer necessary to distribute a large number of encryption keys that are also very confidential to different locations where keys are needed, and the encryption keys are stored there securely. For large corporate groups with a large number of products, this may mean a huge reduction in overhead. For example, in the applicant's corporate group, 10 million vehicles are manufactured each year. At present, about 50 different keys are required in a vehicle. The trend is that more and more, and significantly more keys may be required in the future. If, instead of encryption keys, only the master key must be stored in the manufacturer's back-end server, this overhead can be reduced many times. Multiple different keys can also be derived from a master key. Depending on the brand and sales country, separate master keys may be required for different vehicle models. But this number is then limited to dozens of master keys. The advantage that the key derivation parameters contain a key type identifier and a key type learning counter provides the following advantages, namely, even if a "hacker" successfully obtains the key type ID and the key type learning counter by reading metadata, even if the previous key is known, the current key cannot be calculated without knowing the master key or the intermediate parent key. However, these keys are not stored in the vehicle at all, but are only stored securely in the backend server. In this case, a previous key is a key that was previously used in the vehicle for the corresponding purpose and is now to be updated. A parent key can be a key that is itself derived from a master key, from which one or more encryption keys are derived.

[0032] On the other hand, knowing the master key or parent key and the metadata of the vehicle, the key can be derived again, so that the key does not need to be permanently and securely stored in the backend server. Even the metadata of the key does not necessarily have to be protected (instead, the master key and parent key must be protected!), so the database with the metadata does not need to meet the increased security requirements, such as the need to set up backups regularly.

[0033] A very advantageous extension of the method is that the step of defining a set of key derivation parameters further comprises one or more of the following parameters:

[0034] - serial number of the product type,

[0035] - the need to update one or more keys,

[0036] -Identity Counter

[0037] In this context, the identity counter has the meaning of a counter suitable for a key complex (network) of a product. It should be noted here that, strictly speaking, this is just one instance of a product. In theory, multiple instances can be provided in a product, each of which maintains its own set of key derivation parameters with an identity counter. By increasing the identity counter by 1, it is possible to change all keys of the key complex (network) during key derivation. This enables special application cases, for example:

[0038] a) Import / export of products to countries with different legal requirements for encryption;

[0039] b) In the case of applications where the product is a vehicle, it may be necessary to change the key in the future when the vehicle is sold for data protection reasons. This can thus be implemented simply.

[0040] Taking into account the serial number, the derived key can be individualized for the product being sold. If the product is a vehicle, for example, the vehicle identification number (FIN or VIN in English) can be used for this purpose.

[0041] The parameter "update requirement" is also of interest. This parameter makes it easier to replace control devices in a product. All key type learning counters for keys marked as requiring update in the control device are then increased, so that when keys are derived for a new control device, they are also updated. This has the advantage that the same key is also changed in other control devices. This makes invasive attack scenarios that destroy the hardware of the control device in order to release the keys from the protected storage area meaningless, because once the control device has been replaced, the keys become worthless.

[0042] According to another advantageous measure, a reference to the master key used to derive the encryption key is stored in the product. This reference can then be transmitted in a message to the location where the key is derived.

[0043] The method can be used particularly advantageously when the product is a vehicle. Modern vehicles are equipped with a large number of control devices, some of which use their own keys. Therefore, many different keys must be provided in the vehicle. It is advantageous for the vehicle to include the type of control device in the key derivation as a further key derivation parameter.

[0044] For key management, it is advantageous in the method that the master keys of a manufacturer's vehicles differ according to one or more of the following criteria: vehicle brand, vehicle model, year of manufacture and country or region of sale. Thus, it is not necessary to manage all key sets in each computing center of different service providers.

[0045] In order to introduce the derived key into the vehicle, it is advantageous that, after the key derivation is performed in the backend server of the cryptographic service provider or manufacturer, the derived key or the derived set of keys is provided to the product via a download link container, together with the master key reference and the reading of the identity counter. The product can then download the download link container via a protected connection when an Internet connection is present.

[0046] Here, separate download link containers can be provided for different control devices of the product. This improves security and makes it easier to handle the downloaded download link containers in the product.

[0047] Furthermore, it is advantageous that the key type, represented by the key type identifier, determines the properties and the derivation path of the key. Here, the derivation path specifies which intermediate parent key is derived from which master key, and which encryption key is derived from which parent key.

[0048] In the method described, it is assumed that there is a secure process for data entry into the backend system, which enables the key to be entered into the backend system without compromising the confidentiality of the key. This process is used to enter the (domain) master key into service centers distributed throughout the world.

[0049] Corresponding to the method according to the present invention, for the device for generating encryption keys, it is advantageous that the device includes a key derivation module, using which the encryption key is derived from a stored master key, and in a received message, the stored master key is selected by a master key reference given therein, wherein the key derivation is performed according to a key derivation model, and a set of key derivation parameters is used in the key derivation model, and the set of key derivation parameters includes at least the following key derivation parameters: a key type identifier and a key type learning counter.

[0050] It is further advantageous here that the device is designed so that, for the key derivation, it also takes into account one or more of the following key derivation parameters:

[0051] - serial number of the product type,

[0052] - the need to update one or more keys,

[0053] -Identity counter.

[0054] In another variant, the invention relates to a vehicle equipped with at least one computing unit, wherein the computing unit has a protected storage area in a memory, in which at least one cryptographic key is stored. It is also advantageous if the computing unit has a further storage area in which at least one master key reference and a key derivation parameter set are stored, the key derivation parameter set having at least the following key derivation parameters: an identity counter reading regarding the state of a key of the vehicle.

[0055] Unless stated otherwise in individual cases, the various embodiments of the invention mentioned in this application can be advantageously combined with one another. BRIEF DESCRIPTION OF THE DRAWINGS

[0056] Hereinafter, the present invention will be described in detail with reference to the accompanying drawings in the following embodiments.

[0057] Figure 1 The basic system architecture for mobile radio based communications in a vehicle is shown;

[0058] Figure 2 A block diagram of the onboard electronics of a vehicle is shown;

[0059] Figure 3 The principle of deriving a key from a master key during a key update of a specific control device of a vehicle is shown;

[0060] Figure 4 A schematic diagram showing a data container downloaded from a backend server in order to introduce a key update into a vehicle; and

[0061] Figure 5 The format of a request message sent by the vehicle to a backend server to request a new key when a control device is replaced is shown. DETAILED DESCRIPTION

[0062] This specification illustrates the principle of disclosure according to the present invention. Therefore, it should be understood that those skilled in the art can design different arrangements, although these arrangements are not explicitly described here, but these arrangements implement the principle of disclosure according to the present invention, and should also be protected within the scope of disclosure according to the present invention.

[0063] As modern communication technology enters the vehicles of the future, vehicles are increasingly developing into communication centers from which various types of services can be used. Here, more and more additional services provided by the manufacturer of the vehicle are also integrated into the vehicle. Examples of these services are navigation services, safety services, such as accident warning messages and rescue calls, remote operation services for programming the charging process of electric vehicles, air conditioning, vehicle data and vehicle location calls, etc. It is also possible to bind the factory and, for example, recall the vehicle to the factory during a product recall. During this period, there is also the possibility of improving some functions of the vehicle implemented by software from time to time, which can be done by software updates. Now, this is often done in the factory. But in the future, this will also be performed more and more online, that is, downloaded from a server in the Internet, which is also called Download Over the Air (OTA). The process of such services and software updates must be protected by keys. Here, encryption keys are not only used for processes related to access to online services, but also for anti-theft (entering the vehicle) purposes, and for activating other functions provided in particular in the control device of the vehicle, for access to diagnostic and accident data, and so on.

[0064] first, Figure 1 A system architecture for vehicle communication by means of mobile radio is shown. Reference numeral 10 denotes a vehicle. The vehicle shown is implemented as a car. This is not intended to be restrictive and may relate to any vehicle type. Examples of other vehicle types are: commercial vehicles, in particular trucks, buses, motorcycles, bicycles, scooters, campers, agricultural machinery, construction machinery, rail vehicles, etc. The invention can generally be applied to land vehicles, rail vehicles, water vehicles and aircraft, including robots and drones. The vehicle 10 is equipped with an on-board communication module 160 with a corresponding antenna unit, so that the vehicle 10 can participate in different types of vehicle communications, such as vehicle-to-vehicle (V2V) and vehicle-to-everything (V2X). Figure 1 It is shown that vehicle 10 can communicate with a mobile radio base station 210 of a mobile radio operator.

[0065] Such a base station 210 may be an eNodeB base station of an LTE mobile radio operator (Long Term Evolution). The base station 210 and corresponding equipment are part of a mobile radio communication network having a plurality of mobile radio cells, wherein each cell is served by a base station 210 .

[0066] The base station 210 is located near the main road on which the vehicle 10 travels. In the term LTE, a mobile terminal device corresponds to a user equipment UE, which enables a user to access network services, wherein the user is connected to the UTRAN or Evolved-UTRAN via a radio interface. Such user equipment generally corresponds to a smartphone. Passengers in the vehicle 10 use these mobile terminal devices. The vehicles 10 are additionally equipped with an on-board communication module 160, respectively. The on-board communication module 160 corresponds, for example, to an LTE communication module, with which the vehicle 10 can receive mobile data (downlink) and can send these data in the uplink direction (uplink). The on-board communication module 160 can also be equipped with a WLAN p module so that it can participate in the Ad-hoc-V2X communication mode.

[0067] Regarding the LTE mobile radio communication system, the Evolved UMTS Terrestrial Radio Access Network (Evolved UMTS Terrestrial Radio Access-Netzwerk, E-UTRAN) of LTE is composed of multiple eNodeBs, which provide E-UTRA user level (PDCP / RLC / MAC / PHY) and control level (RRC). These eNodeBs are connected to each other via the so-called X2 interface. These eNodeBs are also connected to the EPC (Evolved Packet Core) 200 via the so-called S1 interface.

[0068] According to this general framework, Figure 1 It is shown that the base station 210 is connected to the EPC 200 via the S1 interface, and the EPC 200 is connected to the Internet 300. The backend server 320 is also connected to the Internet 300, and the vehicle 10 can send messages to the backend server 320 and receive messages from the backend server 320. Finally, the road infrastructure station 310 is also shown. The road infrastructure station 310 can be shown, for example, by a road side unit, which is often also referred to as RoadSide Unit RSU 310 in the technical field. In order to simplify the implementation, it is assumed that an Internet address is assigned to all components, generally in the form of an IPv6 address, so that data packets and messages can be transmitted and correspondingly routed between the components. The different interfaces mentioned are standardized. In this regard, reference is made to the corresponding LTE specifications that have been published.

[0069] With regard to the key management system that is still to be described in detail, the basic principle is that a new key group is requested from the vehicle side to the back-end server 320, wherein the vehicle does not send the actual key data to the back-end server 320, but the corresponding back-end server 320 only obtains the provided reference to the master key and additional information about one or more key states, from which the corresponding back-end server 320 can derive one or more actual keys. The key regenerated in the back end is transmitted to the vehicle and safely introduced into the vehicle 10. This is usually done in a factory environment. Here, a computer (diagnostic computer) can be connected to the vehicle 10, and the key replacement process is performed by the computer. Here, the back-end server 320 can be located in the computing center of the vehicle manufacturer, or it can also be located at an encryption service provider commissioned by the manufacturer for this purpose.

[0070] When the vehicle 10 is manufactured, all keys required to enable access to the various services authorized for the vehicle 10 are collected and programmed into the vehicle 10 .

[0071] First, in Figure 2 Also shown in the figure are examples of on-board electronic devices of a vehicle. The on-board electronic devices include an infotainment system. In motor vehicles, especially cars, the infotainment system represents a collection of other functions in the car radio, navigation system, hands-free device, driver assistance system and central operating unit. The term infotainment is a compound word composed of the words Information and Entertainment. The infotainment system includes components connected to the bus line 100. These components include a computing device 40, a touch-sensitive display unit 20, an input unit 50 and a memory 60. The display unit 20 includes not only a display screen for displaying variable graphic information, but also an operating surface (touch-sensitive layer) arranged on the display surface, and the operating surface is used for inputting commands by the user.

[0072] The display unit 20 is connected to the computing device 40 via a data line 70. The data line can be designed according to the LVDS standard (corresponding to Low Voltage Differential Signalling). The display unit 20 receives control data for controlling the display screen of the touch screen 20 from the computing device 40 via the data line 70. The control data of the input command is also transmitted from the touch screen 20 to the computing device 40 via the data line 70. The input unit 50 includes the operating elements mentioned above, such as buttons, rotary regulators, slide regulators or rotary button regulators, which belong to the input unit 50, with the help of which the operator can input via menu guidance. Input is generally understood as the selection of the selected menu option and the change of parameters, the opening and closing of functions, etc.

[0073] The memory device 60 is connected to the computing device 40 via a data line 80. In the memory 60, a list of pictograms and / or a list of symbols as well as pictograms and / or symbols for the incorporation of possible information on the display unit 20 are stored.

[0074] The other parts of the infotainment system, namely the camera 150, the radio 140, the navigation device 120, the telephone 120 and the instrument cluster 110, are connected to the device for operating the infotainment system via the data bus 100. As the data bus 100, a high-speed solution of the CAN bus according to ISO standard 11898-2 is considered. Alternatively, for example, a bus system based on Ethernet technology, such as IEEE802.03cg, can also be used. A bus system for data transmission via an optical waveguide can also be used. As an example, the MOST bus (Media Oriented System Transport) or the D2B bus (Domestic Digital Bus) is mentioned. It should also be mentioned here that the camera 150 can be designed as a traditional video camera. In this case, it records 25 full images / s, which corresponds to 50 half images (Halbbild) / s in the interlaced recording mode. Alternatively, a special camera that records more images / s can be used to improve the accuracy of object recognition in the case of rapid object movement. Multiple cameras can be used for environmental observation. In addition, RADAR or LIDAR systems (corresponding to Radio Detection and Ranging and Light Detection and Ranging) can also be used in addition or alternatively to perform or expand environmental observation. In order to wirelessly communicate internally and externally, the vehicle 10 is equipped with a communication module 160. This module is also often referred to as an on-board unit (On-Board Unit). It can be designed for mobile radio communication, for example, according to the LTE standard (corresponding to Long Term Evolution). It can also be designed for WLAN communication (corresponding to Wireless LAN, wireless LAN), or it can be designed for communication with devices of passengers in the vehicle, or for vehicle-to-vehicle communication, etc.

[0075] The communication bus 100 of the infotainment system is connected to the gateway 30. Other parts of the automotive electronic equipment are also connected to it. On the one hand, there is the communication bus 104 of the drive system, which is generally implemented in the form of a CAN bus. As an example, the control device of the drive system, namely the engine control device 172, the ESP control device 174 and the transmission control device 176 are mentioned and shown. In addition, there is a communication bus 102 for the driver assistance system, which can be constructed in the form of a FlexRay bus. Two driver assistance systems are shown here: a driver assistance system 182 for automatic distance adjustment ACC (corresponding to Adaptive Cruise Control), and a control device 184 for automatic adjustment of the travel mechanism. In addition, the communication bus 106 is also connected to the gateway 30. The communication bus 106 connects the gateway 30 with the on-board diagnostic interface 190. The task of the gateway 30 is to perform format conversion for different communication systems 100, 102, 104, 106 so that data can be exchanged with each other.

[0076] Figure 3 The general principle of key derivation from the master key MK to a set of encryption keys for the vehicle 10 is also shown. In this case, two types of keys can be derived, namely a key for each individual control device and a key distributed within the vehicle to a plurality of control devices. The derived keys can also be derived for other components of the vehicle, such as other computing units and other components of the infotainment system.

[0077] A plurality of keys assigned to the control devices 30, 172, 174, 176 of the vehicle are shown. Figure 2 . In actual implementation, other control devices 182, 184 and components of the infotainment system will also be provided with their own keys. In this example, the gateway 30 is used as a master control device for communication and / or encryption. The gateway 30 has a memory with two different storage areas. In a specially protected storage area 32, the encryption keys required for the gateway are stored. In another storage area 34, the master key reference (MKR) and the key derivation parameter group (MKR, IDC, KID, KIDUC, KIDUR, VIN, ECUIN) are stored. As will be described in detail below, the data stored there can be transmitted to the back-end server 320. The master control device can be used as an encryption unit inside the vehicle to sign the symmetric keys of other control devices of the vehicle, or as a time master node (Zeitmaster) of the CAN bus 104. Each control device can also contain its own encryption unit inside the control device.

[0078] Each control device contains an initial key IK which was introduced by the supplier or manufacturer of the control device. The initial key IK is used to encrypt and sign the download link container (Download-Link-Container) during the first data input of the control device. During the data input process, the initial key IK can be replaced by a key specific to the control device. This key specific to the control device can then be used to encrypt and sign all other key data sets and for other management functions involving the control device in terms of the circle of trust.

[0079] The data entry by the supplier takes place in a protected environment, preventing the initial key IK from becoming known.

[0080] From the perspective of the vehicle manufacturer, a master key MK is first generated. The master key MK is stored in the database of the manufacturer's backend server 320. Other keys for all vehicles or a group of vehicles are derived from the master key MK. The master keys can be assigned to different economic regions based on one or more of the following criteria: vehicle brand, vehicle model, year of manufacture, and country or region of sale.

[0081] A master communication key CMK is derived from the master key MK. The master communication key CMK is used to use a common key for communication with various control units and other components of the vehicle, so that master control unit 30 can communicate with the other components in a protected manner.

[0082] For communication between the control units, further communication keys CCK for control units 30 , 172 , 174 , 176 can be derived from a master communication key CMK and assigned to control units 30 , 172 , 174 , 176 .

[0083] From the master key MK, further individual keys for the control devices 30, 172, 174, 176 are generated. In the vehicle, only this one control device knows one such key ECUIK. Individual keys can also be derived for individual functions of the control device. Each function that requires such a key receives its own key ECUIK. The key is preferably created with a length of 256 bits so that it is still considered secure in the future. For the encryption algorithm and the decryption algorithm, the AES method (corresponding to the Advanced Encryption Standard) is used. The method is known to those skilled in the art from relevant publications, and the AES method is also standardized.

[0084] Furthermore, keys ECUGK for cross-control device functions are generated from the master key MK. These keys ECUGK are derived from the vehicle identification code VIN or FIN of the circle of trust. Unlike the individual keys ECUIK for control devices, the cross-control device keys ECUGK are distributed over multiple control devices, thus enabling distributed functions to access the same key material. Thus, for example, the cross-control device keys ECUGK can be used for function-related protected communications within the vehicle. Different key groups for control devices can be provided in the backend server 320 in the form of download containers. The vehicle will download these download containers via a secure connection and, if necessary, also in an encrypted manner. This process will be shown in more detail further later.

[0085] All data entry processes are recorded in the backend server 320 and are therefore traceable. The backend keeps a history of the installed participants for each vehicle 10, which contains all information in order to be able to generate the keys contained in the participants. The data entry process includes not only the first data entry, but also multiple data entry, i.e., the re-entry of data for vehicles that have already undergone data entry. For example, if a control device that has already undergone data entry must be replaced and is to be installed in another vehicle after repair, multiple data entry is required. Another general application scenario involves selling vehicles to other sales areas with different key distribution regulations. It is assumed that the key derivation model is known. Reference is made to the solution of the prior art already described at the beginning.

[0086] exist Figure 4The process of key update of control devices 30, 172, 174, 176 is shown in more detail. Download link containers (Download-Link-Container, DLC) for control devices 30, 172, 174 and 176 are shown therein. As described, in the back-end server 320, all keys are derived from the relevant master key MK. In the first data input, the master key MK is not stored in the vehicle 10 either. The master key MK is only provided to the back-end server 320 of the trust circle and is securely stored there. However, a master key reference MKR is assigned and registered in the download link container for control devices 30, 172, 174, 176. An identity counter reading IDC is also registered, which gives the frequency of re-entering data for all keys of the control device. Therefore, the derived encryption key set for the corresponding control device and its key type identifier KID are given in the download link container. In the master control device 30, keys with key type identifiers 01, 02, 03, 05, 06, 21, 22, 23, 30, 31, 40 are listed. The meaning of the different key types is not specified in detail. In the control device 172, keys of key types 01, 04, 22, 41, 47 are listed. In the control device 174, keys of key types 01, 02, 03, 05, 06, 20, 23, 30, 31, 40 are listed. In the control device 176, keys of key types 01, 24, 40, 41 are listed. In addition, initial values ​​of different key derivation parameters are listed in the download link container.

[0087] The following are the key derivation parameters listed in the DLC:

[0088] Key derivation parameters Master Key Reference Maker: 5 Identity Counter IDC: 1 Key type identifier KID

[0089] Other key derivation parameters, such as the corresponding key update requirement and the key type learning counter, are already stored during the first data entry And these key derivation parameters are not changed in the key update shown.

[0090] Here, a key type learning counter CKLC is used to change each key in a targeted manner. The key types associated with the key type learning counter CKLC can have different entries from each other over time. By increasing the key type learning counter of the key type of a control device, the "same" key is also changed in the corresponding other control devices of the vehicle, and its key type learning counter is increased by 1 accordingly. Using the key derivation parameter of the update requirement CKUR, when replacing the control device of the vehicle, all keys in the keys that have been updated and marked as needing to be updated in the replaced control device are updated and replaced, and their key type learning counter is increased by 1. Therefore, the same key is also changed in other control devices. This eliminates the invasive attack scenario of destroying the hardware of the control device in order to read the key, because once the destroyed control device is replaced, the key will become worthless afterwards. In the newly installed control device, for the key marked as needing to be updated, the key type learning counter is increased, thereby also replacing the corresponding keys of the remaining control devices in the vehicle, so that the old key of the destroyed control device becomes worthless.

[0091] Figure 5 The message format of the following message is also shown, which is generated by the vehicle 10 and sent to the backend server 320 through the communication module 160 to request a key update. The key update request message contains an identifier KURQID for identifying the key update request message. This is followed by different key derivation parameters MKR, KID, CKLC, CKUR, VIN and ECUIN. Here, the key derivation parameters have the following meanings:

[0092] MKR Master Key Reference IDC Identity Counter KID Key type identifier CKLC Key Type Learning Counter CKUR Key update requirements VIN Vehicle Identification Number ECUIN Control device identification code

[0093] The key update process operates as follows: Figure 5 As shown in the figure, the vehicle transmits its complete status. This also includes the control unit identification code ECUIN. The backend is even informed of the current state of the vehicle. The backend evaluates the transmitted information and decides for itself whether and which keys must be updated. For example, the backend recognizes which control unit has been replaced with the help of the changed control unit identification code and recalculates the required encryption keys.

[0094] The backend server 320 evaluates the items of the key update request message and regenerates the requested key. The derived key is again provided in a download link container and transmitted to the vehicle 10 via protected communication.

[0095] The need to update all keys of a vehicle can be identified by using a key update request message, wherein the status has not changed, that is, a control device has not been replaced, etc.

[0096] The present disclosure is not limited to the embodiments described herein. There is room for various adjustments and variations, which those skilled in the art will also consider as belonging to the present disclosure based on their professional knowledge.

[0097] All examples and conditional statements mentioned here should be understood as not limiting the examples specifically listed. Therefore, for example, it is recognized by those skilled in the art that the block diagram shown here is a conceptual view of an exemplary circuit arrangement. It should be recognized in a similar manner that the flowcharts, state transition diagrams, pseudocodes, etc. shown are different variations for illustrating the process, which can be stored in a computer-readable medium and can therefore be implemented by a computer or a processor.

[0098] It should be understood that the proposed method and associated device can be implemented in different forms by hardware, software, firmware, special processors or combinations thereof. Special processors may include application specific integrated circuits (ASICs), reduced instruction set computers (RISCs) and / or field programmable gate arrays (FPGAs). The proposed method and device are preferably implemented as a combination of hardware and software. The software is preferably installed as an application program on a program memory device. It is generally a device based on a computer platform, and the device has hardware, such as one or more central units (CPUs), random access memories (RAMs) and one or more input / output (I / O) interfaces. In addition, an operating system is generally installed on the computer platform. The different processes and functions described here may be part of an application program, or may be a part implemented via an operating system.

[0099] Reference numerals list

[0100] 10 Vehicles

[0101] 18 Snap-in

[0102] 20 Touch-sensitive display unit

[0103] 30 Gateway

[0104] 40 computing units

[0105] 50 Input Units

[0106] 60 memory cells

[0107] 70 Data line to display unit

[0108] 80 Data lines to memory cells

[0109] 90 Data line to input unit

[0110] 100 First data bus

[0111] 102 Second data bus

[0112] 104 Third data bus

[0113] 106 Fourth data bus

[0114] 110 Instrument cluster

[0115] 120 Phone

[0116] 130 Navigation equipment

[0117] 140 Radio

[0118] 150 Camera

[0119] 160 Communication module

[0120] 172 Engine control equipment

[0121] 174 ESP control equipment

[0122] 176 Transmission control equipment

[0123] 182 Distance adjustment control equipment

[0124] 184 Travelling mechanism control equipment

[0125] 190 On-Board Diagnostic Connector

[0126] 200 Evolved Packet Core

[0127] 210 Mobile radio base stations

[0128] 300 Internet

[0129] 310 Roadside Unit

[0130] 320 Backend Server

[0131] CCK Communication Key

[0132] CKLC Key Type Learning Counter

[0133] CKUR key update requirements

[0134] CMK Communication Master Key

[0135] ECUIK Control device individual key

[0136] ECUGK Cross-control device key

[0137] IK Initial Key

[0138] KID Key Type Identifier

[0139] MK Master Key

[0140] MKR master key reference

Claims

1. A method for generating an encryption key according to a key derivation model, the method comprising the following steps: - define master keys for different models of a manufacturer's product type, - define a set of key derivation parameters for the key derivation model, - detect the key derivation parameters of the model from which the encryption key is to be derived, - deriving a separate encryption key or a set of encryption keys from the master key according to a key derivation model, taking into account key derivation parameters, - The step of defining a set of key derivation parameters includes at least the following parameters: - key type identifier, - Key type learning counter; where, The key type indicated by the key type identifier at least provides a derivation path of the key.

2. The method according to claim 1, characterized in that The step of defining a set of key derivation parameters may further include one or more of the following key derivation parameters: - serial number of the product type, - the need to update one or more keys, - Identity counter.

3. The method according to claim 1, characterized in that A reference to a master key that is used to derive encryption keys is stored in the product.

4. The method according to claim 1, characterized in that: The product is a vehicle having a certain number of control devices, and a control device identification code is introduced into the key derivation as a further key derivation parameter.

5. The method according to claim 4, characterized in that The master key for a manufacturer's vehicles differs according to one or more of the following criteria: vehicle make, vehicle model, year of manufacture, and country of sale.

6. The method according to claim 3, characterized in that The key derivation is performed in the backend server of the cryptographic service provider or manufacturer, and the derived key or a set of derived keys is provided to the product by downloading a link container, together with a master key reference and an identity counter.

7. The method according to claim 6, characterized in that For different control devices of the product, separate download link containers are provided.

8. The method according to any one of the preceding claims 1 to 7, characterized in that The vehicle identification number is used to derive the encryption key for each vehicle.

9. The method according to claim 5, characterized in that The characteristics and derivation path of the key are determined by the key type indicated by the key type identifier.

10. A device for generating an encryption key, characterized in that The device comprises a key derivation module, by means of which an encryption key is derived from a stored master key, wherein in a received message, the stored master key is selected by a master key reference given therein, wherein the key derivation is performed according to a key derivation model, in which a set of key derivation parameters is used, the set of key derivation parameters comprising at least the following key derivation parameters: a key type identifier and a key type learning counter; wherein, The key type indicated by the key type identifier at least provides a derivation path of the key.

11. The device according to claim 10, wherein: The device is further designed to introduce one or more of the following key derivation parameters into the key derivation model for key derivation: - serial number of the product type, - the need to update one or more keys, - Identity counter.

12. A vehicle having at least one computing unit, wherein: The computing unit has a protected storage area in a memory, in which at least one cryptographic key is stored, the computing unit having: a further storage area in which at least one master key reference and a key derivation parameter set are stored, the key derivation parameter set having at least an identity counter reading regarding the state of the key of the vehicle; as well as A communication module, by means of which a master key reference and at least one stored key derivation parameter set stored in the storage area can be transmitted to the device for generating an encryption key according to claim 10 or 11; wherein, The key derivation parameter group includes at least the following key derivation parameters: a key type identifier and a key type learning counter; wherein the key type indicated by the key type identifier at least gives a key derivation path.

13. The vehicle of claim 12, wherein: In the storage area, additional key derivation parameters are stored, and the additional key derivation parameters at least include one or more of the following key derivation parameters: - serial number of the product type, - the need to update one or more keys, - Identity counter.

Citation Information

Patent Citations

  • Power supply system for motor vehicle, has master security module for signing message, and client security module for checking whether signed message received from master security module comes from authorized master security module

    DE102007058975A1

  • Key derivation

    EP2629450A2

  • Method for secure communication of a vehicle

    EP3157281A1

  • In-vehicle computer system, vehicle, key generation device, management method, key generation method, and computer program

    US20190028267A1

  • Secure Provision of a Key

    CN104734854A