Procedures for implementing secure data communication

The method generates data keys from a master key and identifier string to enable secure data communication in computing units with limited resources, addressing the lack of security in bus systems and enabling secure data exchange.

DE102023205541B3Active Publication Date: 2024-09-19ROBERT BOSCH GMBH LIMITS HAFTUNG 70469
View PDF 6 Cites 0 Cited by

Patent Information

Application Number
DE102023205541
Authority / Receiving Office
DE · DE
Patent Type
Patents
Current Assignee / Owner
Filing Date
2023-06-14
Publication Date
2024-09-19
Estimated Expiration
2043-06-14

AI Technical Summary

Technical Problem

In bus systems of machines, such as motor vehicles, data messages are not secured, allowing manipulation and forgery, and computing units with limited resources cannot perform complex cryptographic procedures within time constraints.

Method used

A method involving a master key and an identifier string is used to generate multiple data keys, stored in both computing units, enabling secure data communication using symmetrical cryptographic methods, suitable for units with limited computing resources.

Benefits of technology

Ensures secure data transmission between computing units with limited resources by leveraging symmetrical cryptography, preventing manipulation and ensuring secure data exchange.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure 00000000_0000_ABST
    Figure 00000000_0000_ABST
Patent Text Reader

Abstract

The invention relates to a method for implementing secure data communication between a first computing unit (2) and a second computing unit (4) of a machine system (1), wherein a master key (10) stored in the second computing unit (4) is used and an identifier string (14) is assigned to the first computing unit, comprising determining several data keys (121, 122, ..., 12N) from the master key (10) and the identifier string (14) by a third computing unit (6), storing the several data keys in the first computing unit, installing (270) the first computing unit (2) in the machine system (19), transmitting (310) the identifier string (14) from the first computing unit (2) to the second computing unit (4), and determining (320) the several data keys (121, 122, ..., 12N) in the second computing unit (4) from the main key (10) and the transmitted identifier string (14), a selection (332, 334) of one of the several data keys (121, 122, ..., 12N) in the first and second computing units according to a predetermined selection rule, and a use (342, 344) of the selected data key (12A) for cryptographically secured communication of data (340) between the first and second computing units (2, 4).
Need to check novelty before this filing date? Find Prior Art

Description

[0001] The present invention relates to a method for implementing secure data communication between a first and a second computing unit of a machine system. Background of the invention

[0002] In machines, e.g. motor vehicles, bus systems used for transmitting data, e.g. a CAN- Bus system (CAN: Controller Area Network), sent messages are often not subject to any security mechanisms, i.e. i.e. messages and the data they transmit can be falsified. For example, in a motor vehicle in The nitrogen oxide value transmitted to a control unit of the motor vehicle can be manipulated by the exhaust gas sensor system with the aim of Although machine control units can have high computing capacity, the Computing capacity of sensors or their control units can be very limited, so that in particular Key exchange taking into account computing time requirements more complex cryptographic procedures are not are practical. Disclosure of the invention

[0003] According to the invention, a method for implementing secure data communication between a first and a second computing unit of a machine system having the features of the independent patent claims proposed. Advantageous embodiments are the subject of the dependent claims and the following description. The method is particularly computer-implemented.

[0004] According to the invention, based on or from a master key and an identification string of the first processing unit, several data keys are determined and stored in the first processing unit, whereby the Master key is stored in the second processing unit. The first processing unit is integrated into the machine System and transmits the identification string to the second processing unit, which is based on the master key and the transmitted identification string determines the multiple data keys. In both Computing units, one of the data keys is selected according to a predetermined selection rule and cryptographically secured data communication. This procedure is useful because it allows for the first Computing unit (e.g. a sensor) whose computing resources, especially taking into account temporal boundary conditions, are not sufficient to implement more complex cryptographic procedures, a secure Data communication with the second computing unit (e.g. a control unit) is enabled.

[0005] The term ´´computing unit´´ or ´´computing system´´ should generally be understood in the sense of a unit (e.g. microcontroller, Computer, server, or similar) which has at least one processing unit and a communication interface and possibly at least one memory (volatile and / or non-volatile). The at least one Processing unit is designed to process computer programs encoded in software and / or hardware can execute, and may include, for example, one or more of a processor with one or more computing cores, an integrated circuit (such as FPGA (Field Programmable Gate Array) or ASIC (Application-Specific Integrated Circuit), a hardware accelerator for cryptographic functions, and the like.

[0006] For example, the first computing unit can be a sensor or its control unit and the second The computing unit can be a control unit of the machine system.

[0007] With the data keys (ie each of the multiple data keys and possibly based thereon with a Symmetric cryptographic methods can be implemented using additional data keys determined by the algorithm In the cryptographically secured communication of data between the first and second Accordingly, a symmetric cryptographic method is used in particular for the computing unit. The multiple Data keys and the master key are secret keys, ie they should be kept outside their inventive Use must be kept secret.

[0008] When determining the plurality of data keys by the third computing unit and when determining the plurality of Data key in the second processing unit, for example, a key derivation function is used, where the Key derivation function in the second and third computing units is in particular the same.

[0009] According to a possible embodiment, the storage of the plurality of data keys takes place in the first Computing unit before the first computing unit is installed in the machine system. For example, enables the data keys to be generated by a supplier of the first processing unit and stored in the first processing unit The installation of the first processing unit into the machine system can then be carried out by a manufacturer of the same take place.

[0010] According to a further possible embodiment, the method comprises updating the selection of one of the several Data keys in the first and second computing units according to the predetermined selection rule and using of the updated selected data key in the cryptographically secured communication of data. Updating during use can prevent replay attacks or similar.

[0011] The selection can be updated according to an order of the multiple data keys or the Selection rule may include updating the selection according to an order of the multiple The selection can be updated after a predetermined period of time and / or in Reaction to the occurrence of at least one predetermined event and / or at least one predetermined time.

[0012] The selection rule may in particular include that when updating the selection, a not yet used data key of the multiple data keys is selected. Furthermore, it can be provided that, if there is no unused data key left from the multiple data keys when the selection is updated, based on the last selected data key, a new data key is determined using an algorithm, which is used as the updated selected data key. Accordingly, during operation, additional, data keys that are not yet used can be determined.

[0013] Further advantages and embodiments of the invention will become apparent from the description and the accompanying Drawing.

[0014] The invention is schematically illustrated by means of embodiments in the drawing and is described in Described below with reference to the drawing. Short description of the drawings Fig. 1A and Fig. 1B illustrate a method for implementing secure data communication between a first computing unit and a second computing unit of a machine system according to a exemplary embodiment of the invention. Embodiment(s) of the invention

[0015] Fig. 1A and Fig. 1B illustrate a method for implementing secure data communication between a first computing unit 2 and a second computing unit 4 of a machine system 1 according to an exemplary Embodiment of the invention. Figure 1A shows the configuration of the system, and Figure 1B shows the use of the system.

[0016] In the final application, data (referred to as data to be transmitted) from (at least) a first Computing unit 2 to a second computing unit 4, both of which are integrated into a machine system 1, e.g. a vehicle or a mobile work machine or other machine or installation. At the first Computing unit 2 is in particular a computing unit with relatively few computing resources, ie a Computing unit that has sufficient computing resources to perform relatively simple cryptographic procedures to perform, e.g. encryption or signing of data with a symmetric encryption method (e.g. AES for encryption or generation of a Message Authentication Code (MAC)), but too little Computing resources (especially computing power and / or memory) to implement more complex cryptographic procedures to perform (e.g. no dedicated hardware accelerators for cryptographic procedures), which e.g. allow the signing of Include data with an asymmetric encryption method (particularly taking into account For example, the first processing unit could have a processor with only one processing core and only have little memory.

[0017] The second computing unit 4 is in particular a computing unit with a relatively large Computing resources, ie which has sufficient computing resources to perform even more complex cryptographic For example, the second processing unit could be a microcontroller or processor with several processing cores and a hardware accelerator for cryptographic procedures as well as a relatively large amount of storage space For example, the first processing unit can be a sensor or its control unit (microcontroller) that is located in the mechanical system 1, such as a motor vehicle, or be enclosed in such a sensor, and the second computing unit can be a control unit of the machine system 1, such as an engine control unit of a motor vehicle. The data to be transmitted is then, in particular, measurement data measured by the sensor.

[0018] Referring to Fig. 1A, in step 200, a master key 10 may first be provided, in particular be generated by a suitable method. The master key 10 should be a key that is cryptographic procedure, ie any sufficiently long character string that only requires trial and error all possible character sequences should be able to be guessed (so-called brute force attack), in particular a random or pseudo-random character string. The step 200 can be carried out, for example, by a fourth computing unit 8 The fourth computing unit 8 can be, for example, a computer or a server system in a Be the manufacturer of the machine system 1 (so-called OEM: original equipment manufacturer).

[0019] Furthermore, in step 210, the master key 10 can be stored in the second computing unit, e.g. during programming the second computing unit.

[0020] In step 220, the master key 10 is transferred to a computing unit referred to as the third computing unit 6 The third processing unit 6 can be, for example, a computer or a server system at a supplier that the component to be incorporated into the mechanical system 1 (for example a sensor), which comprises the first computing unit 2, It is also conceivable that the third computing unit 6 and the fourth computing unit 8 are the same computing unit, e.g. B. if the manufacturer of the mechanical system produces the component to be installed itself.

[0021] In step 230, the master key 10 and an identification string 14 of the first computing unit 2 several data keys 121, 122, ..., 12N are determined. Thus, a data key set 12 is determined. In step 230, A key derivation function (KDF) is used for this purpose. Known Key derivation functions include PBKDF2 (RFC 2898, RFC 8018), bcrypt, or scrypt. In principle, a Key derivation function can be viewed as a function that maps an input string to a The input string for a first of the multiple data keys is, for example, the master key 10 and the identification character string 14 (e.g. by joining them together), whereby the Output string forms the first of the multiple data keys. By recursive application, for example by Output string or the corresponding data key as input string (or at least as part of it) of the Key derivation function is used to determine the next data key as the output string, further Alternatively (or additionally), the input string for each (or part of) the several data keys, for example the main key 10, the identification string 14 and a Counting string (corresponding to the different data keys) or similar, e.g. by concatenation. The Data keys 121, 122, ..., 12N are then the respective output strings. The key derivation function can, for example, be formed using a cryptographic hash function H.

[0022] The data keys 121, 122, ..., 12N are cryptographic keys used in symmetric cryptographic Procedures, e.g. in symmetric cryptographic encryption methods and Message authentication methods can be used. In encryption methods, the Data keys 121, 122, ..., 12N data is encrypted and the encrypted data is read again decrypted. Suitable symmetric cryptographic encryption methods are, for example, AES (Advanced Encryption Standard), DES (Data Encryption Standard), Triple-DES, Blowfish, or similar. In Message authentication methods can include, for example, message authentication codes (English: Message Authentication Code, MAC) can be generated with it.

[0023] The identification character string 14 can, for example, already be known, read from the first computing unit 2 or generated in step 240, e.g., as a random character string. The identification character string 14 may be, for example, one or more of: a product ID, a part number, a production date, a production time (each related to the first computing unit 2 or a component in which the first computing unit is used), a Random number, a random string, an iteration counter. Preferably, the identifier string 14 of the first Computing unit 2 is assigned uniquely or one-to-one, ie several first computing units are assigned to different Different identification strings are assigned to computing units.

[0024] In step 250, the plurality of data keys 121, 122, ..., 12N or the data key set 12 in the first Computing unit 2. Likewise, the identification string 14 can be stored in the first computing unit 2 if it is not already stored there.

[0025] In step 260, the second computing unit 4 can be installed in the machine system 1. Alternatively, it can already be installed there, so that the above-described storage of the master key 10 in an already installed state of the second computing unit.

[0026] In step 270, the first computing unit 2 is installed in the machine system 1.

[0027] The process shown in Fig. 1A on the left occurs in particular at a manufacturer of the machine system 1. The The process shown on the right takes place in especially in the case of a supplier who supplies the second processing unit 2 or a unit to be incorporated into the machine system 1 Component that includes the second computing unit 2, manufactures and / or configures to the manufacturer of the machine System 1 delivers.

[0028] In Fig. 1B, which concerns the secure data communication in the machine system 1 during its operation, The state obtained at the end of the process shown in Fig. 1A is assumed. a machine system 1 is assumed, which comprises the first computing unit 2 and the second computing unit 4, wherein in the first computing unit 2 the plurality of data keys 121, 122, ..., 12N (or the data key set 12) and the Identification character string 14 is stored and in the second computing unit 4 the master key 10 is stored It is further assumed that the first and second computing units are connected by means of a serial or parallel data communication network are connected to each other for data communication, for example via Ethernet or a Fieldbus, such as a CAN bus (CAN: controller area network).

[0029] In step 310, the identification string 14 is sent from the first computing unit 2 to the second computing unit 4 This can be done, for example, in response to a corresponding request (identification request) in step 300 from the second processing unit 4 to the first processing unit 2 or at another time, in particular in Reaction to another event (e.g. restart or reinitialization of the machine system). The identification After step 310, character string 14 is also present or stored in the second computing unit 4.

[0030] In step 320, the second computing unit 4 uses the master key 10 and the identification string 14 several data keys are determined using the same key derivation functions as those used by the third Computing unit 6 was used in step 230, so that the same data keys are obtained. Accordingly, the plurality of data keys 121, 122, ..., 12N or the data key set 12 also in the second computing unit 4 and are thus present or stored in the second computing unit 4.

[0031] In step 332, in the first computing unit 2, from the plurality of data keys 121, 122, ..., 12N under Using a predetermined selection rule, a data key 12A is selected. Likewise, in step 334 in the second computing unit 4 from the plurality of data keys 121, 122, ..., 12N using the same predetermined Selection rule of the data key 12A selected. The selection is made based on the respective Since the same selection rule is used, both Computing units the same data key 12A is selected from the respective data key set 12. The Selection rules could include, for example, that the selection depends on the time of selection and / or at least one predetermined event and / or that according to a sequence of the several Data keys 121, 122, ..., 12N first a first of the several data keys 121, 122, ..., 12N is selected and later an update is carried out (see steps 350, 352, 354 below). The selection rule is, for example, Selection algorithm implemented.

[0032] In general, algorithms (e.g. the above selection rule or the selection algorithm and others in algorithms mentioned in this application) by means of a respective computer program or computer program module which is stored and executed in the respective processing unit to carry out the respective algorithm to implement.

[0033] In step 340, the selected data key 12A is used for cryptographically secured data communication between the first processing unit 2 and the second processing unit 4. Corresponding Communication algorithms 342, 344 in the two computing units 2, 4 therefore include cryptographic algorithms that use the selected data key 12A.

[0034] In step 350, an update of the For this purpose, an update algorithm can be implemented in both processing units 2, 4 be provided or implemented that initiates the update in the respective processing unit. For example, a Update algorithm 352 in the first computing unit 2 and an update algorithm 354 in the second Computing unit 4. The two update algorithms 352, 354 are identical, so that the update 350 in both Computing units 2, 4 are initiated at the same time. After the update, the cryptographically Secured data communication using the updated selected data key.

[0035] The two update algorithms 352, 354 (or the update algorithm, since they are identical) are in particular designed to detect the expiration of a predetermined period of time and / or the occurrence of at least one predetermined event and / or the occurrence of at least one predetermined time and in Reaction to this detection to initiate the update 350. This means the update 350 of the selection takes place after a predetermined period of time and / or in response to the occurrence of at least one predetermined event and / or in response to the occurrence of at least one predetermined time. The at least one predetermined Event can include, for example, one or more of: Start of machine system 1 or the first and second Computing unit 2, 4, incorrect additional message for authentication / validation, external trigger signal, certain State of the machine system (e.g. error event, error state, operating time, mileage of a vehicle, or similar).

[0036] Alternatively, an update algorithm can be implemented or executed in only one of the two computing units 2, 4. which allows updating both in the computing unit in which it is provided and in the other Arithmetic unit, e.g., by an update signal. For example, in the second arithmetic unit 4, a An update algorithm may be provided which performs the update in the second processing unit 4 and (for example by transmitting an update signal) in the first processing unit 2, or it can be in the first An update algorithm may be provided in the computing unit 2, which carries out the update in the first computing unit 2 and (for example by transmitting an update signal) in the second computing unit 4.

[0037] During the update, the predetermined selection rule can be used again, ie steps 332, 334 are carried out again in both calculation units. The selection rule can, for example, include that according to the sequence of the multiple data keys 121, 122, ..., 12N the respective next data key (related to the last selected data key) from the multiple data keys 121, 122, ..., 12N. Alternatively or additionally, the selection rule may include that the selection depends on the detected event and / or the detected time (which led to the update).

[0038] The selection rule may in particular include selecting a data key when updating, which has not been selected before, and which therefore has not yet been used for cryptographically secured data communication was used. If there are no more unselected data keys, ie if each of the several data keys have already been selected once, can be provided (within the framework of the predetermined selection rule) that all or at least a subset of the multiple data keys 121, 122, ..., 12N are again selection (and start from scratch, so to speak) or by means of an algorithm from the last selected data key 12A a new data key is calculated, which is called an updated selected Data key 12A is used.

Claims

1. Method for implementing secure data communication between a first computing unit (2) and a second computing unit (4) of a machine system (1), wherein a master key (10) stored in the second computing unit (4) is stored or is stored, is used and the first computing unit (2) is provided with an identification string (14), comprising: Determining a plurality of data keys (121, 122, ..., 12N) based on the master key (10) and the identification character string (14) by a third computing unit (6); Storing the plurality of data keys in the first computing unit (250); Installing (270) the first computing unit (2) in the machine system (1); transmitting (310) the identification character string (14) from the first computing unit (2) to the second computing unit (4); Determining (320) the plurality of data keys (121, 122, ..., 12N) in the second computing unit (4) from the master key (10) and the transmitted identification string (14); Selecting (332, 334) one of the plurality of data keys (121, 122, ..., 12N) in the first and second computing units according to a predetermined selection rule; and Using (342, 344) the selected data key (12A) for cryptographically secured communication of Data (340) between the first and the second computing unit.

2. The method according to claim 1, wherein storing (250) the plurality of data keys (121, 122, ..., 12N) in the first Computing unit (2) before the installation (270) of the first computing unit (2) into the mechanical system (1).

3. Method according to one of the preceding claims, further comprising updating (350) the selection (332, 334) one of the plurality of data keys (121, 122, ..., 12N) in the first and second computing units (2, 4) according to the predetermined selection rule and using the updated selected data key (12A) in the cryptographically secured communication of data (340).

4. The method according to claim 3, wherein the selection rule includes updating (350) the selection according to a sequence of the multiple data keys.

5. Method according to one of claims 3 or 4, wherein the updating (350) of the selection after a predetermined period of time; and / or wherein the updating (350) of the selection is carried out in response to the occurrence of at least one predetermined event and / or at least one predetermined point in time.

6. Method according to one of claims 3 to 5, wherein the selection rule includes that when updating (350) the Selection of one unused data key of the multiple data keys (121, 122, ..., 12N) becomes.

7. The method according to claim 6, wherein, if no unused data key of the several data keys (121, 122, ..., 12N) is left, based on the last selected data key by means of an algorithm, a new data key is determined, which is used as an updated selected data key (12A) is used.

8. Method according to one of the preceding claims, wherein when determining a plurality of data keys (121, 122, ..., 12N) by the third computing unit (6) and in determining the plurality of data keys (121, 122, ..., 12N) in the second computing unit uses the same key derivation function.

9. Method according to one of the preceding claims, wherein each of the plurality of data keys (121, 122, ..., 12N) is suitable for implementing symmetric cryptographic methods.

10. Method according to one of the preceding claims, wherein in the cryptographically secured communication of Data (340) between the first and the second computing unit uses a symmetric cryptographic method becomes.

11. Method according to one of the preceding claims, wherein the first computing unit (2) is a sensor or its control unit.

12. Method according to one of the preceding claims, wherein the second computing unit (4) is a control unit of the machine system (1).

13. Method according to one of the preceding claims, further comprising storing (210) the master key (10) in the second computing unit (4) 14. Method according to one of the preceding claims, further comprising generating (200) the master key (10) by a fourth computing unit (8).

15. Method according to one of the preceding claims, further comprising generating (240) the identification string (14).

Citation Information

Patent Citations

  • Motor vehicle control unit with cryptographic device

    DE102011014688B3

  • procedure for protected communication of a vehicle

    DE102015220224A1

  • Method and device for generating cryptographic keys according to a key derivation model, as well as vehicle

    DE102019212958B3

  • Method for storing a digital key in a control unit

    DE102020214508A1

  • Key management device, and communication apparatus

    US20200220724A1