Data processing device and operating method therefor

By combining a hardware security module and an independent cryptographic module in the data processing device, efficient data processing and secure data transmission are achieved, solving the problems of insufficient flexibility and security in the existing technology, and meeting the needs for secure communication in complex communication environments. .

CN110532814BActive Publication Date: 2024-09-24ROBERT BOSCH GMBH
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN201910428759.2
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Priority Date
2018-05-23
Filing Date
2019-05-22
Publication Date
2024-09-24
Estimated Expiration
2039-05-22

AI Technical Summary

Technical Problem

Existing data processing devices lack flexibility and security and are difficult to meet complex data processing requirements.

Method used

By introducing hardware security modules and independent cryptographic modules into the data processing device, combined with hardware circuit design, the efficiency and security of data processing are achieved, and data exchange is performed through specialized interfaces and buses to ensure the isolation of the security domain and the confidentiality domain. .

Benefits of technology

The flexibility and security of the data processing device are improved, efficient data processing and secure data transmission are achieved, and the requirements for confidential communication in complex communication environments are met.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN110532814B_ABST
    Figure CN110532814B_ABST
Patent Text Reader

Abstract

The invention relates to a data processing device, in particular for controlling a device, wherein the data processing device has at least one computing device, a storage device, a hardware security module and at least one cryptographic module.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present disclosure relates to a data processing device, in particular for controlling a device, wherein the data processing device has at least one computing device and a storage device.

[0002] The disclosure further relates to an operating method for such a data processing device. Background Art

[0003] Data processing devices of the type mentioned in the introduction are known and have a relatively low level of flexibility and safety. Summary of the invention

[0004] Accordingly, it is an object of the present invention to improve a data processing device of the type mentioned in the introduction and a corresponding operating method in such a way that increased flexibility and safety are provided.

[0005] In the case of a data processing device of the type mentioned at the outset, the task is solved according to a preferred embodiment in the following manner: the data processing device has a hardware security module and at least one cryptographic module. This provides increased flexibility, in particular during the operation of the data processing device. Preferably, the cryptographic module can work at least temporarily independently of the hardware security module, so that different data processing tasks can be completed by the hardware security module on the one hand and the cryptographic module on the other hand, in particular also in a temporally overlapping manner. In the case of other preferred embodiments, it is conceivable, for example, that the hardware security module takes over the configuration task, in particular for or in order to prepare for cryptographic calculations, while the cryptographic calculations themselves are preferably carried out, for example, by the cryptographic module and in this case in particular independently of the hardware security module or without the involvement of the hardware security module.

[0006] In another preferred embodiment, it is provided that a first data bus is provided for exchanging data between the components of the data processing device. In this case, it can be, for example, a system bus of the data processing device or a target system, into which the data processing device can be integrated. The target system can be, for example, a control device.

[0007] In a further preferred embodiment, it is provided that the at least one cryptographic module is preferably designed completely as a hardware circuit, wherein in particular the at least one cryptographic module is arranged outside the hardware security module. This allows, on the one hand, particularly efficient data processing by the cryptographic module and, on the other hand, provides increased security and scalability (for example, by providing a plurality of cryptographic modules).

[0008] In another preferred embodiment, it is provided that the at least one cryptographic module has a first data interface for exchanging data via the first data bus, for example a system bus, thereby enabling efficient data exchange with other components connected to the first data bus.

[0009] In another preferred embodiment, it is provided that the at least one cryptographic module has a second data interface for direct data exchange with the hardware security module. This provides a particularly safe possibility for exchanging data with the hardware security module. In particular, other components (except the hardware security module) connected to the first data bus or the system bus, if necessary, cannot access the cryptographic module via the second data interface. In particular, this advantageously achieves a separation of the security domain from the confidentiality domain, because the separation according to hardware is achieved via the first data interface and the second data interface different from the first data interface.

[0010] In another preferred embodiment, it is provided that the at least one cryptographic module has at least one of the following components: a master cryptographic unit for performing at least one first cryptographic function, a processing unit, in particular a comparison unit, for performing at least one second cryptographic function and / or other functions (e.g. comparison), a key storage device for at least temporarily storing a cryptographic key, an interrupt request control unit, a rule monitoring unit, a manipulation register, a status register, and a data buffer.

[0011] In another preferred embodiment, it is provided that the first cryptographic function has at least one of the following elements: a) an AES algorithm, in particular an AES algorithm according to Federal Information Processing Standards Publication 197, November 26, 2001, https: / / doi.org / 10.6028%2FNIST.FIPS.197; b) CMAC, ciphertext-based message authentication code; c) ECB, electronic codebook mode; d) CBC, ciphertext block chaining mode; e) CTR, counter mode; f) OFB, output feedback mode; g) CFB, ciphertext feedback mode; h) GCM, Galois counter mode.

[0012] In another preferred embodiment, the hardware security module is configured to exchange data with at least one cryptographic module via a second data bus. The provision of the second data bus enables secure data transmission between the hardware security module and the cryptographic module, in particular completely independently of the first data bus or system bus.

[0013] A further preferred embodiment relates to a method for operating a data processing device according to patent claim 8 .

[0014] Further preferred embodiments relate to the control device according to patent claim 11. Further preferred embodiments are the subject matter of the dependent claims.

[0015] Further features, application possibilities and advantages of the invention are apparent from the following description of the exemplary embodiments of the invention shown in the figures of the accompanying drawings. All features described or shown here constitute the subject matter of the invention by themselves or in any combination, regardless of their summary in the claims or their references and regardless of their description or representation in the description or drawings. BRIEF DESCRIPTION OF THE DRAWINGS

[0016] In the attached picture:

[0017] Figure 1 A simplified block diagram schematically illustrates a data processing device according to one embodiment;

[0018] Figure 2 Schematically illustrates a simplified block diagram of a cryptographic module according to one embodiment;

[0019] Figure 3 Schematically shows a simplified block diagram of a control device according to one embodiment;

[0020] Figure 4 Schematically illustrates a simplified block diagram of a cryptographic module according to another embodiment;

[0021] Figure 5 A simplified flow chart schematically illustrates a method according to one embodiment, and

[0022] Figure 6 A data structure according to one embodiment is schematically shown. DETAILED DESCRIPTION

[0023] Figure 1 A simplified block diagram of a data processing device 100 according to one embodiment is schematically shown. The data processing device 100 has at least one computing device 110 and a storage device 120. The computing device 110 can have one or more computing cores or processors in a manner known per se, which are designed to execute software, such as computer programs. The storage device 120 preferably has a volatile memory, in particular a working memory 120a, and a non-volatile memory, such as a flash EEPROM memory 120b.

[0024] The data processing device 100 also has a hardware security module 130, which is configured to implement cryptographic methods and / or to support the implementation of cryptographic methods through other components, for example, to protect or verify messages exchanged between the data processing device 100 or a target system containing the data processing device 100 and another unit (not shown). This may be the case in the preferred embodiment, especially when the data processing device 100 is used in a control device for a motor vehicle. Due to the increasingly extensive communication relationship inside and outside the motor vehicle, it is advantageous to protect individual vehicle messages in the control device association (Steuergeräteverbund) in the vehicle by means of cryptographic mechanisms, such as authentication and / or encryption. This action (Vorgehen) is classified as secure communication (Secure Communication). This involves the reception (verification) and transmission (generation) of reliable or authenticatable messages. In the preferred embodiment, the hardware security module 130 can therefore be used to support secure communication within the control device or between different control devices.

[0025] In a further particularly preferred embodiment, the hardware security module 130 can be used, for example, to calculate a unique fingerprint value for secure communication (e.g., a symmetric cipher based on the AES-128 CMAC method). This makes it possible to encapsulate the security functions of the security domain of the target system or control unit with its cryptographic keys and an external “unsecure” (especially in terms of security) security domain. In a further, quite particularly preferred embodiment, the hardware security module 130 can have an optional hardware accelerator (“AES accelerator”) for the above-mentioned types of cryptographic calculations.

[0026] In a further particularly preferred embodiment, the flexibility of data processing device 100 is advantageously further increased by providing at least one separate cryptographic module 140 , ie, for example, not integrated into hardware security module 130 , in addition to hardware security module 130 .

[0027] This provides even further increased flexibility, in particular during operation of the data processing device 100. Preferably, the cryptographic module 140 can operate at least temporarily independently of the hardware security module 130, so that in particular different data processing tasks can also be carried out in a temporally overlapping manner by the hardware security module 130 on the one hand and the cryptographic module 140 on the other hand. In other preferred embodiments, it is conceivable, for example, that the hardware security module 130 takes over configuration tasks, in particular for cryptographic calculations, while the cryptographic calculations themselves are carried out, for example, by the cryptographic module 140 and in this case in particular independently of the hardware security module 130 or without the involvement of the hardware security module 130.

[0028] In a further preferred embodiment, it is provided that a first data bus 150 is provided for exchanging data between components 110, 120, 130, 140 of data processing device 100. This may be, for example, a system bus of data processing device 100 or of a target system (control unit), into which data processing device 100 may be integrated.

[0029] Optionally, a device 160 for debugging may also be provided, the device having, for example, a debugging interface or dedicated debugging hardware. In other embodiments, the device 160 may be connected to other components of the data processing device 100 via the system bus 150 , for example.

[0030] In a further preferred embodiment, it is provided that the at least one cryptographic module 140 is designed in particular completely as a hardware circuit, wherein in particular the at least one cryptographic module 140 is arranged outside the hardware security module 130. This allows, on the one hand, particularly efficient data processing by the cryptographic module 140 and, on the other hand, provides increased security and scalability (for example, by optionally providing a plurality of cryptographic modules 140).

[0031] In another preferred embodiment, the at least one cryptographic module 140 has a first data interface 142a for exchanging data via the first data bus 150, such as a system bus. This allows efficient data exchange with other components 110, 120, 130 connected to the first data bus 150.

[0032] In a further preferred embodiment, it is provided that the at least one cryptographic module 140 has a second data interface 142b for a direct data exchange (see line 142b′) with the hardware security module 130. This provides a particularly secure possibility for exchanging data with the hardware security module 130. In particular, other components (except the hardware security module 130) which are possibly connected to the first data bus 150 or the system bus cannot access the cryptographic module 140 via the second data interface 142b.

[0033] In the following, reference is made to Figure 2 In another preferred embodiment described in the configuration 1400, it is provided that the at least one cryptographic module 140 ( Figure 1 ) has at least one of the following components: a master cryptographic unit 1410 for implementing at least one first cryptographic function, a processing unit 1420 for implementing at least one second cryptographic function and / or other functions (such as comparison), in particular a comparison unit, a key storage device 1430 for at least temporarily storing a cryptographic key, an interrupt request control unit 1440, a rule monitoring unit 1450, a manipulation register 1460a, a status register 1460b, and data buffers 1470a, 1470b.

[0034] In another preferred embodiment, Figure 1 At least one cryptographic module 140 in may have, for example, Figure 2 Configuration 1400 depicted in FIG. In another embodiment, it is conceivable that the cryptographic module 140 has Figure 2 Only one or more of the components depicted in the Figure 2 All components in the components exemplarily depicted in FIG.

[0035] In a further preferred embodiment, it is provided that the first cryptographic function (in particular by master cryptographic unit 1410 ( Figure 2) may implement) having at least one of the following elements: a) an AES algorithm, in particular an AES algorithm according to Federal Information Processing Standards Publication 197, November 26, 2001, https: / / doi.org / 10.6028%2FNIST.FIPS.197; b) CMAC, Cipher-Based Message Authentication Code; c) ECB, Electronic codebook mode; d) CBC, Cipher block chaining mode; e) CTR, Counter mode; f) OFB, Output feedback mode; g) CFB, Cipher feedback mode; h) GCM, Galois counter mode.

[0036] In a further preferred embodiment, it is provided that the hardware security module 130 is designed to communicate with the user via the second data bus 150 a ( Figure 1 ) exchanges data with at least one cryptographic module 140. The provision of the second data bus 150a enables particularly secure data transmission between the hardware security module 130 and the cryptographic module 140, in particular completely independently of the first data bus 150 or the system bus.

[0037] Figure 3 A simplified block diagram of a control device 1000 as a target system for a data processing device 100 according to the embodiment is schematically shown. The control device 1000 can be used, for example, in a motor vehicle, for example, for controlling the operation of an internal combustion engine 10 of the motor vehicle. The control device 1000 can have a further component 200. Advantageously, the functionality provided by the data processing device 100 can be used by the control device 1000 or its further component 200, in particular in terms of implementing cryptographic functions. In particular, this makes it possible to achieve protected communication, for example, within the further component 200 and / or with external components (not shown), such as, for example, further control devices of the motor vehicle.

[0038] Figure 4 A cryptographic module 1400a according to another embodiment is schematically shown. In some embodiments, for example, according to Figure 1 The password module 140 or according to Figure 2 The password module 1400 may have the following reference Figure 4 The described configuration or at least part of the described configuration. Particularly preferably, the cryptographic module 1400a is completely implemented in hardware.

[0039] The cryptographic module 1400a has a master cryptographic unit 1410, which is, for example, Figure 2 The master password unit 1410 is constructed in a comparable manner. In other words, according to Figure 4 The master cryptographic unit 1410 is designed to implement at least one first cryptographic function, wherein the first cryptographic function has at least one of the following elements: a) an AES algorithm, in particular an AES algorithm according to Federal Information Processing Standards Publication 197, November 26, 2001, https: / / doi.org / 10.6028%2FNIST.FIPS.197; b) CMAC, Cipher-Based Message Authentication Code; c) ECB, Electronic code book mode; d) CBC, Cipher block chaining mode; e) CTR, Counter mode; f) OFB, Output feedback mode; g) CFB, Cipher feedback mode; h) GCM, Galois counter mode. In other words, in a further preferred embodiment, master cryptographic unit 1410 is designed to execute one or more of the above-mentioned cryptographic functions, in particular the AES mode.

[0040] In another preferred embodiment, the cryptographic functions mentioned, in particular the AES mode, can be configured by means of at least one manipulation register 1461a. Preferably, this can be achieved, for example, by the computing device 110 accessing the at least one manipulation register 1461a in a write and / or read manner via the first data bus 150, see arrow 1461a'.

[0041] In a further preferred embodiment, the data buffer 1471a is preferably again provided in the form of at least one register in such a way that, for example, input data for carrying out the first cryptographic function by the master cryptographic unit 1410 can be stored at least temporarily. Preferably, a local parallel data bus or a parallel data connection dv1 is provided in order to transfer data from the data buffer 1471a to the master cryptographic unit 1410. Preferably, the input data can be written to the data buffer 1471a by the computing device 110 via the first data bus 150, see arrow 1471a'. If the execution of the first cryptographic function requires, for example, padding of the input data, this can preferably be carried out by the computing device 10, for example, a so-called 10^n padding for the last block in the case of a CMAC calculation.

[0042] Further preferably, the computing device 110 can control which of a plurality of possible cryptographic functions (e.g., CMAC, AES encryption, AES decryption, etc.) should be implemented by the master cryptographic unit 1410 by writing corresponding control data to the manipulation register 1461a. Particularly preferably, the implementation of the cryptographic functions by the master cryptographic unit 1410 can also be automatically started once the corresponding control data have been written to the manipulation register 1461a.

[0043] Further preferably, a cryptographic key and optionally a corresponding context associated with the cryptographic key can be selected for executing a cryptographic function by the master cryptographic unit 1410. This can preferably be done as a function of the selected cryptographic function (eg, by control data predefined in the manipulation register 1461a).

[0044] Optionally, a key storage device 1430 is provided, which has an access and priority control device 1431. In the key storage device 1430, a plurality of cryptographic keys and optionally contexts associated with the plurality of cryptographic keys can be stored. Figure 4, a total of three sets of key data 1432 are listed, each of which has, for example, at least one cryptographic key, an associated context ("key context") or rule ("policy") and optionally a so-called chaining variable. Chaining variables (English: chaining variable, CV) can preferably be used to store, at least temporarily, intermediate results of cryptographic functions or initialization vectors (IVs), for example for block ciphertexts in so-called "chained mode". The selection of which set of key data 1432 is to be used for carrying out a certain cryptographic function by the master cryptographic unit 1410 can preferably be carried out, for example, under the control of a priority control device 1431. For this purpose, for example, the priority control device 1431 can control a context selector 1433 (for example, by a multiplexer) as a function of the content of a manipulation register 1461a, see data connections dv2, dv21. In this way, in a further preferred embodiment, it is ensured that a cryptographic key and, if necessary, a chaining variable matching the selected key context is used.

[0045] In other words, in a preferred embodiment, the key storage device 1430 implements a hardware-supported context change between a plurality of key contexts. It is preferably possible to perform a dedicated cryptographic operation, in particular an encryption operation, such as an AES operation, in each of the plurality of key contexts. This is preferably performed independently of the other key contexts and preferably in parallel with the other key contexts. This advantageously enables the cryptographic data processing to be changed quickly and dynamically (i.e., performed during the runtime of the data processing device 100) between different security domains by the data processing device 100.

[0046] In other embodiments, cryptographic functions according to standards other than AES are also conceivable.

[0047] For example, key storage device 1430 is designed to provide a corresponding cryptographic key for each possible cryptographic function of master cryptographic unit 1410 and optionally provide additional values ​​(Zusatzwerte) therefor, such as the linking variables and / or other intermediate results already described above, etc., depending on the desired cryptographic function.

[0048] Particularly preferably, the organization of the key storage device 1430 in the form of so-called key contexts enables efficient management of a plurality of cryptographic keys and associated optional data, such as link variables. Further optionally, each set of key data can have rule data or at least one variable, which characterizes predefinable rules for data processing, in particular the execution of cryptographic functions ("key policy"). In a particularly preferred embodiment, a set of key data therefore has at least one cryptographic key, optional additional data, for example in the form of link variables and rule data.

[0049] In a further preferred embodiment, the key context can be selected both by the computing device 110 and by the hardware security module 130, wherein the hardware security module 130 preferably has a higher priority with respect to the key context selection. In a preferred embodiment, access to a specific key context or the selection of a specific key context can be controlled by the already mentioned access and priority control device 1431. For example, the access and priority control device 1431 can implement the selection of a specific key context based on a control register or a control register 1461a (which can be predefined by the computing device 110 and / or the hardware security module 130), 1461b (in particular, only predefined by the hardware security module 130).

[0050] In a further preferred embodiment, the cryptographic key and / or the associated rule data can preferably be written to the key storage device 1430 only via the hardware security module 13, see data connections dv4, dv41. Figure 4 As can be seen, at least one register can optionally be provided for this purpose as an intermediate memory or buffer 1462 .

[0051] Figure 6 Schematically a data structure is shown which can be used to store cryptographic keys in particular, as for example by key storage 1430. The data structure has a first section CV for receiving optional linking variables, a second section KEY for receiving cryptographic keys and a third section POL for receiving optional rule data.

[0052] In a further preferred embodiment, the linking variable CV of the key context can be used in particular for the two application cases a) and b) described further below.

[0053] a) initialization of the execution of a cryptographic function, in particular an AES operation, wherein the initialization can preferably be performed by the computing device 110 ,

[0054] b) Support for chained AES operations.

[0055] According to a further preferred embodiment, the following aspects can be applied to the above-mentioned initialization a) for the implementation of the cryptographic function. For some AES operating types or operations, at least one initialization value is used, for example a counter value in the AES counter mode and / or an initialization vector in the CBC mode or CMAC mode. In a preferred embodiment, the mentioned initialization value can advantageously be provided by means of a buffer preferably implemented in the form of at least one register 1463, see also data connection dv5. For this purpose, the computing device 110 can write the corresponding data to the buffer 1463, for example via the first data bus 150. The buffer 1463 is preferably connected to the multiplexer 1434 via a parallel data connection dv51, which can also be called a CV selector, because the multiplexer realizes the selection of different input data of the buffer 1462 (via the data connection dv41), 1463 (via the data connection dv51) for storage in the key storage device 1430.

[0056] Further preferably, the computing device 110 can trigger the transmission of the corresponding initialization value by writing the control data into the corresponding manipulation register 1461 a. Optionally, the process can be monitored or controlled by the access and priority control device 1431 .

[0057] According to a further preferred embodiment, the following aspects can be applied to the above-mentioned support for chained AES operations (eg CBC, CMAC for data or messages whose length exceeds a predeterminable maximum length of, for example, approximately 16 bytes). Chaining variable CV ( Figure 6 ) can be advantageously used to store intermediate results for subsequent AES operations. Particularly preferably, based on the principle that can be realized by the above-described implementation of context transformation between multiple key contexts, it is advantageous that a dynamic transformation to another key context is required even in the following AES operation, that is, such an AES operation has not been completed, but only an intermediate value exists in the AES operation (von denen), for example. In this case, the corresponding intermediate results can be stored in the link variable CV. Then, the key context can be transformed so that the implementation of the cryptographic function on another key context can be realized. If necessary, it can be transformed back to the previously processed key context later, wherein the intermediate results stored in the link variable CV are picked up and further processed. The above-mentioned implementation therefore advantageously realizes a fully hardware-supported transformation between different key contexts, and in particular does not require interaction on the hardware security module 130 side.

[0058] In other preferred embodiments, it is also conceivable that the principle of the key context transformation can be additionally extended by the hardware security module 130 or corresponding software. For this purpose, it can be advantageously provided that the link variable CV can be read in by the hardware security module 130, for example, using a further data buffer 1464, which preferably again has at least one register. The transmission of the link variable CV from the key storage device 1430 to the hardware security module 130 can therefore be carried out, for example, using the data connections dv6, dv61 and the second data bus 150a. It is thus possible to store the link variable CV or the intermediate results contained therein at least temporarily for at least one key context by the hardware security module 130 in the form of software (for example, by controlling the hardware security module 130 by a computer program implemented on the computing unit 110) and to continue the corresponding AES operation on the corresponding key context at another time, in that the intermediate results stored at least temporarily in the form of software are reloaded into the link variable CV of the relevant key context of the key storage device 1430.

[0059] In a further preferred embodiment, the cryptographic module 1400a is advantageously designed to support at least approximately 30 different key contexts, wherein each key context can preferably be accessed by way of example in Figure 6 The data structure depicted in (exemplarily with optional linking variable CV, cryptographic key KEY and optional rule data POL) is characterized. In other embodiments, the mentioned key contexts can be used particularly advantageously simultaneously or pseudo-simultaneously by the cryptographic module 1400a, that is, in particular, without the need to reconfigure the corresponding key contexts by other components 110, 130.

[0060] In a further preferred embodiment, the cryptographic key or the entire data structure CV, KEY, POL is stored in a volatile memory, in particular a working memory (RAM), so that in the event of a reset of the data processing device 100 or the cryptographic module 1400a or an interruption in the electrical energy supply to at least one of these components, a preferably complete data loss occurs regarding the mentioned key or data structure.

[0061] Particularly preferably, write accesses concerning the transmission of cryptographic keys KEY and / or link variables CV into key storage 1430 can only be carried out via hardware security module 130, for example, using second data bus 150a, thereby further increasing the security of cryptographic module 1400a. In particular, this prevents an attacker from transmitting a forged cryptographic key into key storage 1430 by fully utilizing first data bus 150, for example, by using compromised software for computing device 110.

[0062] In a further preferred embodiment, it may be provided that a read access to key storage device 1430 (in particular by a component different from hardware security module 130 ) provides a predefinable fixed value instead of the actual content of the key context or at least one element CV, KEY, POL of a stored data structure.

[0063] In a further preferred embodiment, it is provided that the (particularly single) hardware security module 130 has read access to the link value CV, see data connections dv6 , dv61 , 150 a , thereby making possible in particular the software-supported context change already described above.

[0064] In a further preferred specific embodiment, it is provided that the key context can be selected both from computing device 110 (see data connection dv2 ) and from hardware security module 130 (see data connection dv7 ), wherein prioritization preferably takes place via access and priority control device 1431 .

[0065] Particularly preferably, in a further embodiment, the selected key context is available for each cryptographic function which can be executed by master cryptographic unit 1410 and / or processing unit 1420 , in particular a comparison unit.

[0066] In a further preferred embodiment, it is provided that the result of the cryptographic function carried out by master cryptographic unit 1410 is at least temporarily stored in output data buffer 1471b. Preferably, output data buffer 1471b is designed as a register or a register memory.

[0067] Optionally, the result of the first cryptographic function performed by the master cryptographic unit 1410 can also be transmitted to the processing unit 1420, in particular the comparison unit, see data connection dv3. Preferably, data connection dv3 is a parallel data connection, as in the case of data connections dv2, dv21.

[0068] In a preferred embodiment, according to Figure 4The processing unit 1420, in particular the comparison unit, can be connected with Figure 2 Unit 1420 is designed to be comparable, ie to be used for carrying out, for example, a comparison.

[0069] In preferred embodiments, the processing unit 1420, in particular the comparison unit, has a CMAC (Ciphertext-based Message Authentication Code, German: verschlüsselungsbasierter Nachrichtenauthentifizierungscode (Encryption-based Message Authentication Code)) storage unit 1422 and a comparison unit 1424. In these embodiments, the functionality of the processing unit 1420, in particular the comparison unit, can therefore also be described as a “CMAC comparison”.

[0070] By way of example, CMAC storage unit 1422 is designed to at least temporarily buffer store a CMAC value obtained with the aid of master cryptographic module 1410 , see data connection dv3 .

[0071] Further preferably, the comparison unit 1424 is designed to compare the truncated first CMAC value with the calculated second CMAC value as obtained by the master cryptographic module 1410 and temporarily stored in the CMAC storage unit 1422. Preferably, the comparison unit 1424 is first configured before such a comparison. This configuration can, for example, include information corresponding to the bits of the calculated second CMAC value and the truncated first CMAC value.

[0072] In another preferred embodiment, the start of the comparison by the comparison unit 1424 can be initiated, for example, when the master cryptographic module 1410 has completed the calculation of the second CMAC value (this can be signaled, for example, by the computing device 110, for example by means of the signaling of the “last block”) and when the calculated CMAC value has been written to the CMAC storage unit 1422.

[0073] In a further preferred specific embodiment, the result of the comparison by comparison unit 1424 can be stored in a data buffer 1465 which is preferably designed as a register.

[0074] According to a preferred embodiment, the following concept is proposed for carrying out the comparison by means of the comparison unit 1424. The processing unit 1420, in particular the comparison unit or the comparison unit 1424, is initialized with a starting bit position and the length of the first truncated CMAC value. Preferably, the computing device 110 is designed to copy the first truncated CMAC value into a data buffer 1466 provided for this purpose (which is preferably again implemented as a register), see data connection dv8, before carrying out the comparison by means of the comparison unit 1424. Particularly preferably, the first truncated CMAC value is stored in the data buffer 1466 aligned at byte boundaries ("bytewise aligned") . This can be implemented by the computing device 110 as necessary (as long as, for example, such an alignment at the corresponding byte boundary does not already exist). The configuration according to the embodiment described above can be implemented particularly simply and efficiently by the computing device 110, for example by means of a simple memory access (memory copy), which can preferably even be implemented with hardware support.

[0075] For the comparison by means of the comparison unit 1424, the following scheme is proposed according to another preferred embodiment. The comparison unit 1424 is initialized by means of a bit mask stored in an optional further data buffer 1477. In the case of a preferred embodiment, in the bit mask, such bits corresponding to the bits of the first truncated CMAC value are set (value "1"), and the remaining bits are reset or not set (value "0"). In these embodiments, the computing device 110 accordingly expands the truncated first CMAC value according to the bit mask over its full length according to the calculated CMAC value with a bit width as provided, for example, by the master cryptographic module 1410, and stores the value obtained in this way in the data buffer 1466. In these embodiments, a particularly large flexibility and a relatively uncomplicated hardware implementation can be achieved.

[0076] In a further preferred embodiment, an interrupt request control unit (interrupt controller or interrupt control unit) 1440 is provided, which enables a reaction to events which can be signaled or characterized by interrupt requests during operation of the data processing device 100, in particular the cryptographic module 1400a. In a preferred embodiment, at least one of the following events can be taken into account by the interrupt request control unit 1440 and optionally signaled to other units, such as the hardware security module 130, see data connection 1442: execution of a cryptographic function, such as an AES operation (for example, by the master cryptographic unit 1410), execution of a cryptographic function or comparison by the processing unit 1420, in particular the comparison unit (for example, comparison of intercepted and calculated CMAC values). The master cryptographic unit 1410 can signal such an interrupt request, for example, by means of a signal 1410a, and the processing unit 1420, in particular the comparison unit, can signal such an interrupt request, for example, by means of a signal 1420a. Particularly preferably, there is a device for sending a signal to the hardware security module 130 and / or the computing device 110 ( Figure 1 ) A dedicated data connection 1442 for signaling interrupt requests. Further preferably, the signaling can also be designed to be configurable, for example to be controllable by means of software. In another preferred embodiment, the interrupt request control unit 1440 accordingly has its own configuration and / or status register, which is Figure 4 Not depicted for the sake of overview.

[0077] In another preferred embodiment, a rule monitoring unit 1450 is provided. The rule monitoring unit is designed to check whether the execution of the cryptographic function, for example initiated by the computing device 110 and by the master cryptographic unit 1410, complies with one or more rules, which are determined by the rule data POL ( Figure 6 ) is pre-determined or permitted. If this is the case, the execution of the password function by the master password unit 1410 is released by the rule monitoring unit 1450, see Figure 414. The arrow from unit 1450 to unit 1410, which is not marked in more detail, is shown in FIG. Otherwise, the execution of the cryptographic function by the master cryptographic unit 1410 can be blocked or prevented by the rule monitoring unit 1450. In a further preferred embodiment, the corresponding state of the rule monitoring unit 1450 or the master cryptographic unit 1410 can be stored in a register, for example, the control register 1461a. In a further preferred embodiment, the rule can also be conceived so that the output of the result of the analysis of the cryptographic function by the master cryptographic unit 1410 to the data buffer 1471b is prohibited, see data connection dv9 and symbolic switch dv9a.

[0078] In another preferred embodiment, the cryptographic module 1400a or its components 1410, 1420, 1430, 1440, 1450 and the data processing device 100 ( Figure 1 )'s interface between other components 110, 130.

[0079] Further advantageous embodiments are described below, which relate to the interface between the hardware security module 130 and the cryptographic module 1400 a .

[0080] Preferably, at least one manipulation register or control register may be provided, which is preferably accessible only via the hardware security module 130, see, for example, reference numeral 1461b. This control register may be used, for example, to enable the selection of a key context for the implementation of a subsequent cryptographic function by the cryptographic module 1400a with the aid of the hardware security module 130.

[0081] Further preferably, a register 1462 may be provided to transfer the cryptographic key and / or the link value CV from the hardware security module 130 to the key storage device 1430 and / or to transfer the link value CV from the key storage device 1430 to the hardware security module 130 .

[0082] Further preferably, a further register 1464 may be provided, which can only be read by the hardware security module 130, for example for the purpose of reading the link value CV from the key storage device 1430. Thus, context changes can be advantageously supported by the hardware security module 130 with software support.

[0083] Further advantageous embodiments are described below, which relate to the interface between the computing device 110 and the cryptographic module 1400a.

[0084] Preferably, a manipulation register or control register 1461a is provided, which can be accessed by the computing device 110, see data connection 150, 1461a'. Optionally, it is also possible for the hardware security module 130 to access the control register 1461a via this data connection.

[0085] Furthermore, the control register 1461a may be used to select a key context, which may be used to implement cryptographic functions by the cryptographic module 1400a. To select a corresponding key context, for example, the computing device 110 may write corresponding control data into the control register 1461a.

[0086] Furthermore, the control register 1461a can be used to select one or more cryptographic functions which are to be implemented by the cryptographic module 1400a or its master cryptographic unit 1410 and / or the processing unit 1420 , in particular the comparison unit, such as the different AES operating modes already described several times above.

[0087] Furthermore, the control register 1461 a may be used for at least temporarily storing an internal state or an operating state of the cryptographic module 1400 a or at least one of its components 1410 , 1420 .

[0088] Furthermore, a further register 1463 may preferably be provided which can be used to input the value of the link variable CV, for example as an intermediate memory for transmitting the value of the link variable from the computing device 110 to the key storage device 1430 .

[0089] Furthermore, a further register 1471a may preferably be provided, which may be used to input input data for carrying out (multiple) cryptographic functions by means of the master cryptographic unit 1410. Preferably, accordingly, the computing device 110 may write the corresponding input data into the register 1471a, see data connection 1471a'. 。

[0090] In addition, preferably, a further register 1471b can be provided, which can be used to output the output data of the master cryptographic unit 1410. The computing device 110 can access the further register 1471b, for example, in a read mode, in order to load the output data. As already described above, in some embodiments, it can be provided that the output data is written to the register 1471b only when a corresponding rule exists.

[0091] Further aspects and embodiments are described below by way of example, which relate to protected communication using the data processing device 100 or its cryptographic module 140 , 1400 , 1400 a .

[0092] In some embodiments, an initialization phase may be provided for protected communications. In the initialization phase, the hardware security module 130 may transfer key contexts for one or more secure communication domains to the cryptographic module 1400a, wherein, for example, corresponding cryptographic keys and / or optional additional data, such as link values ​​CV or optional rules POL, are provided.

[0093] Once a message is received, for example, by the computing device 110 or a communication interface (not shown) assigned to the computing device via a communication channel, the computing device 110 can select a corresponding key context for the received message, for example by writing corresponding control data into the register 1461b. In a comparable manner, a corresponding configuration of the comparison unit 1424 and the input of the received message into the buffer 1471a and the input of the intercepted CMAC value of the received message into the buffer 1466 can be performed. For this purpose, in other embodiments, it can be expedient for the computing device 110 to divide the received message into a useful data part (payload) and a CMAC part. Then, in other preferred embodiments, the computing device 10 can initiate the execution of the relevant cryptographic function (for example, the formation of a CMAC value for the received message) by the cryptographic module 1400a or the master cryptographic unit 1410, for example, by writing corresponding control data into the control register 1461a. After the execution, the comparison unit 1424 can compare the CMAC value formed during the execution with the intercepted CMAC value of the received message.

[0094] In a further preferred embodiment, the comparison result, if necessary together with the key context or a value identifying the key context, and optionally also a status code (which, for example, characterizes a successful comparison or a failed comparison), can be written to register 1465 and then read in by computing device 110. In a further preferred embodiment, the provision of the comparison result can be signaled by an interrupt request 1420a, which can be forwarded to computing device 110 by unit 1440, in particular, see data connection 1442.

[0095] In other embodiments, in which, for example, a message can be sent to other units (not shown) via the data processing device 100 or its computing device 110, the following steps can be implemented. Preferably, the computing device 110 can select a key context according to the security domain to be selected for the message to be sent, so that the corresponding CMAC value can be obtained by the cryptographic module 1400a. Then, in other embodiments, the computing device 110 can transfer the message to be sent to the input buffer 1471a and trigger the corresponding AES operation (currently, exemplarily, the CMAC value is obtained for the message or corresponding data present in the input buffer 1471a), for example, by writing the corresponding control data to the control register 1461a.

[0096] In other specific embodiments, after carrying out an AES operation (in the present case, by way of example, ascertaining a CMAC value for a message to be sent), the ascertained CMAC value may be stored in output buffer 1471 b , which in turn may advantageously be signaled via interrupt request 1410 a .

[0097] In other specific embodiments, computing device 110 can therefore format the message to be sent (in particular with the addition of the CMAC value ascertained as described above) and forward it to the communication interface for transmission.

[0098] In other preferred embodiments, it is also conceivable that the execution of a relatively long cryptographic function by a cryptographic module can be interrupted by one or more other, for example relatively shorter cryptographic functions. This is advantageously supported by the key context described above, either hardware-supported, for example by cryptographic module 1400a, and / or hardware-supported and optionally software-supported, for example by software-based control of parts of computing device 110 when using hardware security module 130.

[0099] In other advantageous embodiments, it is also conceivable that the computing device 110 has a plurality of computing cores, which can each cooperate with the cryptographic module 1400a in the manner described above by way of example. For example, it is conceivable that each of the plurality of computing cores maintains a different communication process in, for example, two different security domains and uses a different key context supported by the cryptographic module 1400a for this purpose.

[0100] In another advantageous embodiment, the functionality provided by the cryptographic module 1400a can be advantageously scaled by providing a further similar or analogous cryptographic module (not shown) and connecting it to the hardware security module 130, for example by means of a second data bus 150a and / or at least one separate further data bus (not shown).

[0101] Figure 5 A simplified flow chart of a method according to one embodiment is schematically shown. In an optional first step 300, the control device 110 ( Figure 1 ) configures the cryptographic module 140, 1400, 1400a. In a subsequent second step 310, the cryptographic module performs at least one first cryptographic function, for example forming a CMAC value from the input data provided by (auf).

[0102] In particular, in terms of the implementation of cryptographic functions, the principle of the embodiment advantageously enables a flexible and efficient operation of the data processing device 100. The data processing device according to the embodiment can advantageously be used to efficiently cryptographically protect and / or verify data, such as received or to be sent messages, for example by forming or verifying corresponding CMAC values ​​or the like. Particularly advantageously, even in the case of a high communication load for the data processing device 100 or its computing device 110, only a relatively low load is formed for the hardware security module 130, because the main part of the implementation of the cryptographic functions can be efficiently taken over by at least one cryptographic module 140, 1400, 1400a. Particularly advantageously, in the case of another preferred embodiment, the actual calculation of the cryptographic functions can be carried out without the active participation of the hardware security module 130, without thereby compromising the integrity of the domain (confidentiality and security (Security and Safety)). It can advantageously be provided that the hardware security module 130 essentially performs configuration tasks, but does not perform the active implementation of the cryptographic functions themselves.

[0103] Compared to conventional data processing devices, this embodiment results in a significant increase in flexibility and efficiency, wherein in addition, the requirements for the security domain (ISO 26266) can also advantageously be met separately from the privacy domain.

[0104] Another advantage of this embodiment is that information that can be used to implement cryptographic functions (such as calculating fingerprints or CMAC values, etc.) (such as the length of the message, the length of the fingerprint, the freshness counter, verification / generation, etc.) and that can preferably be managed by the computing device 110 can be transmitted directly from the computing device 110 to the cryptographic module, in particular without first transmitting the data or information involved to the hardware security module 130.

[0105] The principle of the embodiment described is advantageously conceivable for all target systems for data processing devices, such as control devices, in which cryptographic functions are used. The principle of the embodiment described can be particularly advantageously used for control devices, which implement secure communication with a large number of communication relationships.

Claims

1. A data processing device, wherein the data processing device has at least one computing device, a storage device, a hardware security module and at least one cryptographic module, A first data bus is provided for exchanging data between at least one computing device, a storage device, a hardware security module and at least one cryptographic module of the data processing device. wherein the at least one cryptographic module has a first data interface for exchanging data via the first data bus, wherein the at least one cryptographic module has a second data interface for exchanging data directly with the hardware security module, wherein the at least one cryptographic module comprises a master cryptographic unit for implementing at least one first cryptographic function, The first cryptographic function has CMAC, i.e., a ciphertext-based message authentication code, and The at least one cryptographic module is configured to compare the intercepted first CMAC value with the calculated second CMAC value.

2. The data processing apparatus according to claim 1, wherein the data processing apparatus is used to control a device. 3 . The data processing device according to claim 1 , wherein the at least one cryptographic module is constructed as a hardware circuit. The data processing device according to claim 3 , wherein the at least one cryptographic module is arranged outside the hardware security module.

5. A data processing device according to claim 1 or 2, wherein the at least one cryptographic module has at least one of the following components: a processing unit for implementing at least one second cryptographic function, a key storage device for at least temporarily storing a cryptographic key, an interrupt request control unit, a rule monitoring unit, a manipulation register, a status register, and a data buffer. The data processing apparatus according to claim 5 , wherein the processing unit comprises a comparison unit.

7. A data processing device according to claim 5, wherein the first cryptographic function has at least one of the following elements: a) AES algorithm; b) ECB, electronic codebook mode; c) CBC, ciphertext block chaining mode; d) CTR, counter mode; e) OFB, output feedback mode; f) CFB, ciphertext feedback mode; g) GCM, Galois counter mode.

8. The data processing device according to claim 1 or 2, wherein the hardware security module is configured to exchange data with the at least one cryptographic module via a second data bus.

9. A method for operating a data processing device according to any one of claims 1 to 8, wherein the data processing device has at least one computing device, a storage device, a hardware security module and at least one cryptographic module, wherein the cryptographic module implements at least one first cryptographic function, wherein the cryptographic module implements the first cryptographic function in parallel with the operation of the hardware security module.

10. The method according to claim 9, wherein the data processing device is used to control a device.

11. The method of claim 9, wherein the cryptographic module implements the first cryptographic function independently of the hardware security module.

12. The method according to claim 9, wherein the first cryptographic function has at least one of the following elements: a) AES algorithm; b) ECB, electronic codebook mode; c) CBC, ciphertext block chaining mode; d) CTR, counter mode; e) OFB, output feedback mode; f) CFB, ciphertext feedback mode; g) GCM, Galois counter mode.

13. The method according to claim 9, wherein the at least one cryptographic module has a first data interface for exchanging data via a first data bus of the data processing device and has a second data interface for exchanging data directly with the hardware security module. 14 . A control device having at least one data processing device according to claim 1 .