METHOD AND DEVICE FOR PROCESSING DATA STORED IN A STORAGE DEVICE
Patent Information
- Application Number
- DE502020008867
- Authority / Receiving Office
- DE · DE
- Patent Type
- Patents
- Current Assignee / Owner
- Priority Date
- 2019-02-14
- Filing Date
- 2020-01-30
- Publication Date
- 2024-08-29
- Estimated Expiration
- 2040-01-30
AI Technical Summary
Existing methods for processing data in storage devices, particularly in motor vehicle control systems, face challenges in efficiently detecting changes or manipulations within memory areas without covering the entire memory space, which is resource-intensive and vulnerable to manipulation.
A method involving a pseudo-randomly formed test pattern that characterizes a subset of the memory area, allowing for the detection of changes by comparing a test variable with a reference variable, using cryptographic hash functions and message authentication codes, to ensure data integrity without covering the entire memory area.
This approach enables efficient and secure detection of data manipulations within specific memory areas, reducing resource usage and enhancing security by making it difficult for attackers to predict the tested areas, thus ensuring data integrity and authenticity.
Description
State of the art
[0001] The disclosure relates to a method for processing data stored in a storage device.
[0002] WO 2018 / 024658 concerns a method for storing data blocks from client devices to a cloud storage system, the method comprising the following steps: storing an encrypted first data block and a challenge of the first data block of a first client device on the cloud storage system and determining whether a hash value of a second data block of a second client device stored on the cloud storage system is equal to the hash value of the first data block.
[0003] The disclosure also relates to a device for processing data stored in a storage device. Disclosure of the invention
[0004] Preferred embodiments relate to a method for processing data stored in a storage device of a motor vehicle control unit, comprising the features of claim 1. In further preferred embodiments, the storage device comprises at least one semiconductor memory element and is, for example, volatile memory (e.g., main memory, RAM, random access memory) or non-volatile memory, e.g., flash memory (e.g., NOR flash or NAND flash). The randomly or pseudorandomly generated test pattern allows the memory area used to determine the test parameter to be selected or specified unpredictably and individually for, e.g., a specific storage device. The test parameter advantageously characterizes a data content of the first sub-area and enables, e.g.,by comparison with a reference test parameter, the detection of changes, especially manipulations of the data of the first sub-area.
[0005] In further preferred embodiments, a device for carrying out the method according to the embodiments may be provided. In further particularly preferred embodiments, the device comprises at least one computing unit, to which, for example, the storage unit described above may be assigned, in particular for at least temporary storage of at least one computer program and / or data, especially data to be processed by the device. More preferably, a computer program for controlling the operation of the device, in particular for carrying out the method according to the embodiments, may be stored in the storage unit.
[0006] In further preferred embodiments, the computing device comprises at least one of the following elements: a microprocessor, a microcontroller, a digital signal processor (DSP), a programmable logic device (e.g., FPGA, field-programmable gate array), or an ASIC (application-specific integrated circuit). Combinations thereof are also conceivable in further preferred embodiments.
[0007] In further preferred embodiments, the device may, in addition to the storage device already described above, also be assigned at least one further storage device, which comprises at least one of the following elements: volatile memory, in particular main memory (RAM), non-volatile memory, in particular flash memory, e.g., flash EEPROM or NOR flash or NAND flash. With the optional provision of at least one further storage device, a computer program designed to control the operation of the device, in particular to execute the method according to the embodiments, may alternatively or additionally also be stored in the at least one further storage device.
[0008] In further preferred embodiments, the first sub-area does not correspond to the entire memory area, but, for example, only to a fraction of the entire memory area. In other words, in further preferred embodiments, the test sample is provided that it does not completely cover the memory area. In further preferred embodiments, the test sample covers, for example, 50% of the memory area of the storage device or less, in particular 20% or less. More or less coverage than, for example, 50% is also possible in further preferred embodiments.
[0009] In further preferred embodiments, the first sub-area of the memory area can, for example, correspond to at least one address range (or a part thereof) of the memory device. In further preferred embodiments, the first sub-area characterizes a contiguous address range of the memory device, wherein the first sub-area can be described, for example, by a) a start address and an end address and / or b) a start address and a length of the first sub-area and / or c) the end address and the length of the first sub-area.
[0010] In further preferred embodiments, the first sub-area characterizes a non-contiguous address range of the storage device, wherein several start addresses and / or end addresses and / or length information can be used to describe the first sub-area. Alternatively or additionally to the aforementioned information (start address, end address, length), an address mask, in particular a bitmask or bytemask, can also be used to define the first sub-area in further preferred embodiments. In further preferred embodiments, for example, at least one of the aforementioned pieces of information (start address, end address, length, bitmask or bytemask) can be selected randomly and / or pseudorandomly during the random or pseudorandom generation of the test pattern.In further preferred embodiments, several, in particular all, pieces of information required to describe the first sub-area (start address, end address, length, bitmask or bytemask) are preferably selected or generated randomly and / or pseudorandomly.
[0011] In further preferred embodiments, the method includes the additional feature of at least temporary storage of the test parameter. This allows the test parameter to be used later, for example as a reference parameter to determine whether data from the first sub-area has been manipulated (i.e., intentionally altered) and / or unintentionally changed.
[0012] In further preferred embodiments, the method further comprises: comparing the test parameter with a reference test parameter for the at least one first sub-area. For example, the reference test parameter may have been determined during the manufacture of the storage device and / or the programming of the storage device and / or on another occasion, in particular by applying the method according to the embodiments, and may have been stored, at least temporarily, preferably in secure memory for later use, so that it is available for comparison. If the (currently generated) test parameter deviates from the corresponding reference test parameter, it may be inferred, for example, that there has been an (unintentional) change or manipulation of the data of the associated sub-area or sub-areas for which the reference test parameter was generated.If the currently calculated test parameter matches the corresponding reference test parameter, it can be concluded that there has been no (unintentional) change or manipulation of the data.
[0013] In further preferred embodiments, the determination of the test pattern comprises at least one of the following elements: a) random or pseudorandom generation of the test pattern, b) receiving the test pattern from an external unit, c) reading the test pattern from the storage device and / or another (i.e., different) storage device, d) deriving the test pattern from test pattern base data.
[0014] In further preferred embodiments, for example, a pseudorandom number generator or a random number generator can be used to generate the test pattern. This generator is assigned to a device for carrying out the method according to the embodiments, for example, comprising or configured as a microcontroller. In further preferred embodiments, for example, a noise signal from the device can be used as a random variable for the random generation of the test pattern. This noise signal can be determined, for example, at an analog input of the device (e.g., a microcontroller).
[0015] In further preferred embodiments, the randomly or pseudorandomly generated test pattern can also be received by an external unit, for example, a computing unit of a manufacturing facility for a device intended to carry out the method according to the embodiments. In this case, in further preferred embodiments, the test pattern is transmitted to the device via a secure communication channel.
[0016] In further preferred embodiments, the test sample or at least one test sample, and in further embodiments optionally several test samples, can be stored in the storage device and / or in the at least one further (optional) storage device, so that the device designed to carry out the method according to the embodiments can read the relevant test sample from the corresponding storage device if required.
[0017] In further preferred embodiments, instead of a complete test pattern, randomly or pseudorandomly generated test pattern base data, which do not already represent a complete test pattern, can be provided and transmitted to the device according to the embodiments and / or stored in at least one of the storage devices. In further preferred embodiments, at least one test pattern can be generated by the device according to the embodiments based on this test pattern base data, in particular also dynamically (during the device's runtime).
[0018] In further preferred embodiments, at least one test sample or the test sample base data is stored in a secure storage device or a secure storage area of the storage device, to which, for example, only a device intended for executing the method according to the embodiments has access, but not other (especially external) units. This can be achieved, for example, by assigning to the device according to the embodiments a further storage device, preferably integrated into the device, which can only be read by the device and which, for example, has no data interfaces to external units. In further preferred embodiments, the further storage device can, for example, also be integrated into a hardware security module, which, for example, can also be used to execute cryptographic methods or...Algorithms, or at least parts thereof, are designed which, in further preferred embodiments, can be used, for example, to form the test parameter.
[0019] In further preferred embodiments, the generation of the test pattern comprises the following steps: providing a random or pseudorandom, preferably binary, sequence of numbers; determining the at least one first sub-section depending on at least one first part of the sequence, wherein, in particular, a start address of the first sub-section is generated in the memory area depending on the first part of the sequence. In further preferred embodiments, an end address of the first sub-section and / or a length of the first sub-section can alternatively or additionally be generated depending on the sequence, in particular depending on parts of the sequence other than the aforementioned first part.
[0020] In further preferred embodiments, for example, a starting address of the first sub-area can be determined depending on the first part of the number sequence, and a length of the first sub-area can be determined depending on a second part of the number sequence that differs from the first part. If, in further preferred embodiments (see below), additional sub-areas are provided to form the test sample, these additional sub-areas can preferably be determined in a comparable manner.
[0021] In further preferred embodiments, the starting address can be determined depending on the first part of the number sequence, and the end address of, for example, the first sub-area can be determined depending on the second part of the number sequence.
[0022] In further preferred embodiments, determining the start address and / or the end address and / or the length, depending on a relevant part of the number sequence, can also involve multiplying a numerical value represented by that part of the sequence by a predefinable factor (which, in further preferred embodiments, can be chosen differently for the different parts of the sequence). The use of such a factor advantageously makes it possible to determine comparatively large memory areas or memory addresses from comparatively short parts of the sequence. In further preferred embodiments, the respective factor can be determined (pseudo-)randomly or be constant or variable (for example, depending on at least one operating parameter of a device according to the embodiments).In other preferred embodiments, alternatively or additionally to the aforementioned use of the factor, an adjustment of previously used values (start address and / or end address and / or length, etc.) may also be provided.
[0023] In other preferred embodiments, the starting address of, for example, the first sub-area can also be interpreted as the address distance (offset) of the first sub-area from a starting address of the memory area of the storage device.
[0024] In further preferred embodiments, the test pattern is characterized by at least one second sub-area, preferably several further sub-areas, in addition to the first sub-area. Preferably, the second sub-area, and in particular the at least one further sub-area, does not directly border the first sub-area. This means that the start address of the second or further sub-area in the address space of the storage device does not directly follow the end address of the first sub-area or any other further sub-area, resulting in a distribution of the sub-areas contributing to the generation of the test variable across the storage area of the storage device. This advantageously allows comparatively large areas of the storage device to be tested by generating and evaluating the test variable without having to consider a data set corresponding to the entire storage area of the storage device.Rather, it suffices to consider the memory areas characterized by at least one first sub-area or, optionally, further optional sub-areas. This consideration is based on the fact that targeted manipulation of such a memory area, which is not covered by the sub-area(s) according to the embodiments in terms of the generation of the test variable, is extremely difficult or impossible without knowledge of the test pattern due to its random or pseudo-random generation. Therefore, in further preferred embodiments, it is sufficient if the at least one first sub-area or the optional further sub-areas do not cover the entire memory area of the storage device.Furthermore, this accelerates the verification of the memory area compared to variants that consider all the data of the entire memory area for the formation of a test parameter, because in the particularly preferred embodiments less data than all the data of the entire memory area is processed for the formation of the test parameter.
[0025] In further preferred embodiments, the method further comprises at least one of the following elements: a) determining the second sub-area depending on a second part of the number sequence, which is different from the first part of the number sequence, wherein in particular a start address of the second sub-area is formed in the memory area depending on the second part of the number sequence, b) determining the further sub-areas depending on a respective corresponding further part of the number sequence, which in particular is different from the first part of the number sequence and / or from the second part of the number sequence, wherein in particular a start address of the respective further sub-area is formed in the memory area depending on the corresponding further part of the number sequence.In further preferred embodiments, the aspects described above with reference to the determination of the first sub-area can also be applied accordingly to the second sub-area and / or at least one further memory area.
[0026] In further preferred embodiments, all sub-areas have the same length. In these further preferred embodiments, the start address or the end address of the respective sub-area can, for example, be determined pseudo-randomly or randomly.
[0027] In further preferred embodiments, at least some of the sub-areas have different lengths. In these further preferred embodiments, the length (and optionally the start and / or end address) of the relevant sub-area can, for example, be determined pseudorandomly or randomly.
[0028] In further preferred embodiments, the calculation of the check metric comprises at least one of the following elements: a) applying a hash function, in particular a cryptographic hash function, especially to data stored in the at least one first sub-area; b) calculating a checksum based on the data stored in the at least one first sub-area; c) calculating a signature based on a first secret (in particular an asymmetric private) key and the data stored in the at least one first sub-area (in further preferred embodiments, the signature can also be calculated using a hash value (see element a) above)); d) calculating a message authentication code (MAC), in particular based on a second secret (in particular a symmetric) key and the data stored in the at least one first sub-area.
[0029] In further preferred embodiments, the formation of the test parameter comprises the following steps: forming a primary test parameter as a function of the data stored in the at least one first sub-area, preferably as a function of data stored in several sub-areas, forming a secondary test parameter at least as a function of the primary test parameter.
[0030] In further preferred embodiments, the formation of the primary test variable includes, for example, the formation of a checksum, in particular a CRC checksum and / or the evaluation of a hash function, for example an MD5 (Message Digest 5) hash function.
[0031] In further preferred embodiments, the generation of the test parameter comprises the following steps: selecting a first number of sub-areas of the memory area of the storage device; selecting a second number of sub-areas of the memory area of the storage device, which are particularly different from the first number; generating a primary test parameter for the first number of sub-areas of the memory area; generating a secondary test parameter for the second number of sub-areas of the memory area, wherein the generation of the secondary test parameter is optionally also performed for at least a part of the primary test parameter. This advantageously allows different test parameters (e.g., also using different methods) to be generated for the different sub-areas, thereby advantageously enabling flexible, and especially dynamic, control of computational effort and / or tamper resistance.For example, in further preferred embodiments, the first number of sub-areas may be associated with a test parameter that is comparatively easy to determine computationally, and the second number of sub-areas may be associated with a second test parameter that requires more computational effort. By selecting the first and second number, or the ratio of the first number to the second number, the computational effort and / or the tamper resistance can be advantageously controlled.
[0032] Further preferred embodiments relate to the use of the method according to the embodiments before and / or after and / or during at least one of the following operating phases of a computing device configured to access the storage device: a) starting the computing device from a switched-off state, b) starting the computing device from a power-saving state, in particular a suspend-to-RAM state, c) starting the computing device from a reset state, in particular a soft reset, d) normal operation.
[0033] This allows the memory contents of the storage device to be advantageously checked for proper content, e.g., before or during startup from a switched-off state ("booting") or during startup or waking up from a suspend-to-RAM state, or even during normal operation. This can also be referred to as "runtime manipulation detection".
[0034] Further preferred embodiments relate to a device for processing data stored in a storage device of a control unit for a motor vehicle, having the features of claim 14.
[0035] Further preferred embodiments relate to a method for generating a test pattern that characterizes at least a first sub-area of a memory area of a storage device for storing data, wherein the test pattern is generated randomly or pseudorandomly. In further preferred embodiments, the method for generating the test pattern is carried out by the device described above. However, in further preferred embodiments, the method for generating the test pattern can (also) be carried out by other units, which then make the generated test pattern available to the device according to the embodiments, preferably via a secure channel, e.g., in a protected manufacturing environment in which the device according to the embodiments is manufactured.
[0036] Further features, applications, and advantages of the invention will become apparent from the following description of exemplary embodiments of the invention, which are illustrated in the figures of the drawing. All described or illustrated features, individually or in any combination, constitute the subject matter of the invention, irrespective of their compilation in the claims or their cross-reference, and irrespective of their formulation or representation in the description or in the drawing.
[0037] The drawing shows: Figure 1A Schematic simplified block diagram of a storage device according to preferred embodiments, Figure 1B Schematic simplified block diagram of a storage device according to further preferred embodiments, Figure 2A Schematic simplified flowchart of a method according to further preferred embodiments, Figure 2B Schematic simplified flowchart of a method according to further preferred embodiments, Figure 3 Schematic simplified flowchart of a method according to further preferred embodiments, Figure 4A Schematic numerical sequence according to further preferred embodiments, Figure 4B Schematic table with data contents according to Figur 4A Figure 5A Schematic representation of a sequence of numbers according to further preferred embodiments, Figure 5B Schematic representation of a table with data contents according to Figur 5A Figure 6A Schematic representation of a sequence of numbers according to further preferred embodiments, Figure 6B Schematic representation of a multiplier arrangement according to further preferred embodiments, Figure 6C Schematic representation of a table with data contents according to Figur 6A , 6BFigure 7A: Schematic simplified block diagram of a storage device according to further preferred embodiments; Figure 7B: Schematic simplified block diagram of a storage device according to further preferred embodiments; Figure 8A: Schematic simplified flowchart of a method according to further preferred embodiments; Figure 8B: Schematic simplified flowchart of a method according to further preferred embodiments; Figure 9: Schematic simplified flowchart of a method according to further preferred embodiments; Figure 10: Schematic simplified flowchart of a method according to further preferred embodiments; Figures 11A, 11B, and 11C: Schematic simplified flowcharts of methods according to further preferred embodiments; Figure 12: Schematic simplified block diagram of a device according to further preferred embodiments.and Figure 13 schematically shows a simplified block diagram according to further preferred embodiments.
[0038] Figur 1A Figure 1 schematically shows a simplified block diagram of a memory device 100 according to preferred embodiments. The memory device 100 comprises, for example, at least one semiconductor memory component and is, for example, volatile memory (e.g., main memory, RAM, random access memory) or non-volatile memory, e.g., flash memory. A memory area 110 is defined between a start address SA and an end address EA.
[0039] Further preferred embodiments relate to a method for processing data D stored in the storage device 100, comprising the following steps; see also the simplified flowchart from Figur 2A : Determine 200 of a randomly or pseudorandomly generated test pattern PM that contains at least one first sub-area 110_1 ( Fig. 1A ) of one or of the storage area 110 of the storage device 100 characterized, image 202 ( Fig. 2A ), depending on the test pattern PM, a test parameter PG associated with data D stored in at least one first sub-area 110_1. The randomly or pseudorandomly generated test pattern PM allows the storage area (or the data stored therein) used as the basis for generating the test parameter PG to be selected unpredictably and individually for, e.g., a specific storage device 100. The test parameter PG advantageously characterizes a data content of the first sub-area 110_1 and enables, e.g., by comparison with a reference test parameter, the detection of changes, in particular manipulations, of the data of the first sub-area.
[0040] In further preferred embodiments, the test parameter, the determination of which is described in more detail below, can represent a (single) numerical value, e.g., in the case of determination of the test parameter using a checksum method (e.g., CRC, cyclic redundancy check), the value of the (CRC) checksum, or in the case of determination of the test parameter using a hash value method, the hash value. In further preferred embodiments, however, the test parameter can also represent an n-tuple, n=2, 3, 4, ... of a corresponding number of individual values, or another form of values, e.g., a vector and / or a matrix or the like.
[0041] In further preferred embodiments, a device 300 is provided for carrying out the method according to the embodiments, cf. the simplified block diagram of Figur 12 .
[0042] The device 300 preferably has at least one computing unit 302, to which, for example, the storage unit 100 described above may be assigned, in particular for at least temporary storage of at least one computer program PRG and / or data D ( Fig. 1A ), in particular data to be processed by means of the device 300. More preferably, a computer program PRG can be stored in the storage device 100 for controlling the operation of the device 300, in particular for carrying out the method according to the embodiments. In further preferred embodiments, several computer programs (not in Fig. 12 (shown) stored, e.g. a bootloader that can control a start process of the device or the calling of other computer programs, as well as the other computer programs, which are, for example, an operating system and / or application programs.
[0043] In further preferred embodiments, the computing device 302 comprises at least one of the following elements: a microprocessor, a microcontroller, a digital signal processor (DSP), a programmable logic device (e.g., FPGA, field-programmable gate array), an ASIC (application-specific integrated circuit), or a hardware circuit. Combinations thereof are also conceivable in further preferred embodiments.
[0044] In further preferred embodiments, the device 300 ( Fig. 12 In addition to the storage device 100 already described above, at least one further storage device 304 may also be assigned, which comprises at least one of the following elements: a volatile memory 304a, in particular working memory (RAM), a non-volatile memory 304b, in particular flash memory, e.g., flash EEPROM. If the optional at least one further storage device 304 is provided, a computer program PRG' designed to control the operation of the device 300, in particular to execute the method according to the embodiments, may alternatively or additionally also be stored in the at least one further storage device 304. One or more test patterns PM and / or test parameters PG, in particular also reference test parameters, may also be stored, for example, at least temporarily, in the storage device 304.
[0045] For further preferred embodiments, see: Fig. 1A , the first sub-area 110_1 does not correspond to the entire memory area 110, but, for example, only to a fraction of the entire memory area 110. In other words, in further preferred embodiments, it is therefore provided that the test sample PM ( Fig. 2A ) does not completely cover the memory area 110. In further preferred embodiments, the test specimen covers, for example, 50% of the memory area 110 of the memory device 100 or less (or more), in particular 20% or less.
[0046] In further preferred embodiments, the first sub-area 110_1 of the memory area 110 can, for example, correspond to at least one address range AB1 (in particular not the entire theoretically possible or physically existing address range) of the memory device 100, wherein the at least one address range lies, for example, between the start address SA1 and the end address EA1. In further preferred embodiments, the first sub-area 110_1 thus characterizes a contiguous address range AB1 of the memory device 100, wherein the first sub-area 110_1 can be described, for example, by a) the aforementioned start address SA1 and the end address EA1 and / or b) a start address SA1 and a length (not shown) of the first sub-area 110_1 and / or c) the end address EA1 and the length of the first sub-area 110_1.
[0047] In further preferred embodiments (not shown), the first sub-area 110_1 characterizes a non-contiguous address range of the memory device 100, wherein several start addresses and / or end addresses and / or length information can be used to describe the first sub-area.
[0048] Alternatively or additionally to the aforementioned information (start address, end address, length), in further preferred embodiments an address mask, in particular a bitmask, bytemask, wordmask, or blockmask (comprising blocks of, for example, k bytes each, k = 2, 3, 4, ...), can also be used to define the first sub-area 110_1. In further preferred embodiments, during the random or pseudorandom generation of the test pattern PM, at least one of the aforementioned pieces of information (start address, end address, length, bitmask, bytemask, wordmask, or blockmask) can be selected randomly and / or pseudorandomly. In further preferred embodiments, several, in particular all, pieces of information required to describe the first sub-area (start address, end address, length, bitmask, bytemask, wordmask, or blockmask) are preferably used.The byte mask, word mask, or block mask is chosen or generated randomly and / or pseudorandomly.
[0049] For example, for sub-area 110_1, both the start address SA1 and the end address EA1 can be determined (pseudo-)randomly in order to form the test pattern.
[0050] For further preferred embodiments, see: Fig. 2A The procedure is designed to further include: at least temporary storage of the test parameter PG. This allows the test parameter PG to be used later, for example as a reference test parameter RPG ( Fig. 12 ), e.g., usable to determine whether data from the first sub-area 110_1 has been manipulated (i.e., intentionally changed) and / or unintentionally altered in the meantime (since the creation of the test statistic).
[0051] In further preferred embodiments, the method further comprises: Comparing 205 of a currently formed test parameter PG' ( Fig. 2A ) with a reference test parameter RPG (e.g., obtained through the preceding steps 202, 204) for the at least one first sub-area 110_1. For example, the reference test parameter RPG may have been determined during the manufacture of the storage device 100 and / or the programming of the storage device 100 and / or on another occasion, in particular by applying the method according to the embodiments (e.g., steps 200, 202), and may have been stored at least temporarily for later use, preferably in a secure memory (see step 204), so that it is available for comparison 205. If the (currently generated) test parameter PG' deviates from the corresponding reference test parameter RPG, it may be concluded, for example, that there has been an (unintentional) change or manipulation of the data of the associated sub-area 110_1 or the associated sub-areas for which the reference test parameter RPG was generated.If the currently calculated test statistic PG' matches the corresponding reference test statistic RPG, it can be concluded that there is no (unintentional) change or manipulation of the data.
[0052] In further preferred embodiments, it is provided that the test sample PM is determined during the manufacture of the storage device 100 and / or the programming of the storage device 100 and / or on another occasion, in particular by applying the method according to the embodiments (e.g. step 200), and is optionally stored for later use at least temporarily, preferably in a secure memory, so that it is available in the future.
[0053] In further preferred embodiments, it is provided that the determination of 200 ( Fig. 2A ) of the test sample PM exhibits at least one of the following elements, see below. Fig. 2B : a) random or pseudorandom formation 200a of the test sample, b) receiving 200b of the test sample PM from an external unit 400 ( Fig. 12 ), e.g. by means of a data interface 306, in particular by means of a secure communication channel and / or in a secure (production) environment, c) reading 200c of the test sample from the storage device 100 and / or another (i.e., different) storage device 304, d) deriving 200d of the test sample from test sample base data.
[0054] In further preferred embodiments, for example a pseudorandom number generator or a random number generator can be used to form the test pattern, which is connected to the device 300 ( Fig. 12 ), for example, having a microcontroller or configured as a microcontroller. In further preferred embodiments, for example, a noise signal RS of the device 300 can be used as a random variable for the random generation of the test pattern, which noise signal RS can be determined, for example, at an analog input 308 of the device 300.
[0055] In further preferred embodiments, the randomly or pseudorandomly generated test pattern PM can optionally also be generated by an external unit 400, cf. Fig. 12 , can be received, for example, by a computing unit of a manufacturing facility for the device 300. In this case, in further preferred embodiments, the test pattern PM is transmitted to the device 300 via a secure communication channel and the data interface 306. A test pattern PM received in this way can also be stored, for example, in the further storage device 304. In further preferred embodiments, the test pattern PM can be determined or generated by the external unit 400 using a (pseudo-)random number generator (e.g., depending on a noise signal).
[0056] In further preferred embodiments, as already mentioned above, the test pattern PM or at least one test pattern, and in still further embodiments optionally several test patterns, can be stored in the storage device 100 and / or in the at least one further (optional) storage device 304, so that the device 300 designed to carry out the method according to the embodiments can read the relevant test pattern PM from the corresponding storage device 100, 304 as required.
[0057] In further preferred embodiments, the additional storage device 304 is a storage device integrated into the device 300, which external units in particular cannot access. In further preferred embodiments, the storage device 100 ( Figur 12 ) assigned to the device 300, but optionally arranged externally to the device 100, for example such that a data interface 306' (address bus and / or data bus and / or serial communication bus or the like) is accessible from the outside. In these embodiments, it is particularly advantageous if at least one test pattern PM, or several test patterns, or all test patterns available to the device 300 are arranged in the integrated storage device 304 to make manipulation of the test patterns PM more difficult. In this way, the processing unit 302 can efficiently access the test patterns PM, which are stored, for example, in the working memory 304a of the integrated storage device 304, in particular for applying the method according to the embodiments to at least one memory area of the storage device 100.
[0058] In further preferred embodiments, instead of a complete test pattern PM, for example randomly or pseudorandomly generated test pattern base data PMB ( Fig. 12 ), which do not already represent a complete test pattern, are provided and transmitted to the device 300 according to the embodiments and / or stored in at least one of the storage devices 100, 304 (preferably again in the integrated storage device 304). In further preferred embodiments, at least one test pattern PM can be generated by the device 300 depending on these test pattern base data PMB, in particular also dynamically (during the runtime of the device 300). For this purpose, for example, one or more counter values of the computing device 302 or other operating parameters of the computing device 302 can be used to vary the test pattern base data PMB in the desired manner in order to obtain an unpredictable test pattern.In further preferred embodiments, the formation of a test pattern depending on the test pattern base data PMB can, for example, advantageously save computing time resources of the computing device 302 compared to a complete (re-)formation of a complete test pattern PM.
[0059] In further preferred embodiments, the device 300 is associated with a hardware security module or cryptographic module 307 or the like, which has a separate, protected memory for storing at least one test pattern PMa. Particularly preferably, only the computing unit 302, which is configured to carry out the method according to the embodiments, has access to the test pattern PMa stored in the hardware security module 307.
[0060] In further preferred embodiments, the hardware security module or cryptography module 307 is provided to execute the method according to the embodiments at least partially or completely, e.g., steps 200, 202, etc. In further preferred embodiments, the hardware security module or cryptography module 307 is provided to manage (in particular, store and / or generate) the test pattern PMa, and / or determine the test parameter PG, and / or compare the test parameter PG with a reference test parameter RPG. In further preferred embodiments, the hardware security module or cryptography module 307 is provided to output a result of the comparison of the values PG and RPG to another unit, e.g., the computing unit 302.
[0061] For other preferred embodiments, compare the simplified flowchart according to Figur 3 , is intended to ensure that the formation of the test sample PM ( Fig. 12 ) includes the following steps: Deploy 210 ( Fig. 3 ) a random or pseudorandom, preferably binary, sequence of numbers ZF, compare Figur 4A , Determine 212 ( Fig. 3 ) of at least one first sub-area 110_1 ( Fig. 1A ) depending on at least one first part ZF1 ( Fig. 4A ) of the number sequence ZF, in particular a start address SA1 ( Fig. 1A ) of the first sub-area 110_1 in the memory area 110 depending on the first part ZF1 ( Fig. 4A ) of the number sequence ZF is formed. In this case, the random number sequence ZF is generated by a random number generator (RNG) of the device 300 ( Figur 12 ) formed, and its first part ZF1 is in Figur 4A Designated with the reference symbol ZF1, it exemplarily exhibits three bits "111" in this example. Table T1 according to Figur 4B The first column, S1, shows, by way of example, the identifiers of start addresses SA1, SA2, SA3, ... of various sub-areas according to further preferred embodiments. For example, in these embodiments, a test sample is used which comprises a total of three sub-areas 110_1, 110_2, 110_3 of the memory area 110a according to Figur 1B characterized, whose respective starting address SA1, SA2, SA3 is designated in the first column S1 of the table T1.
[0062] The second column S2 of table T1 from Figur 4B Each row Z1, Z2, Z3, ... contains a respective part of the random sequence ZF according to Figur 4A For example, in the table cell corresponding to the first row Z1 and the second column S2 ("Z1;S2"), the numerical value assigned to the first part ZF1 of the random sequence ZF (0111b (binary) or 0x7 (hexadecimal)) is assigned, which represents an address distance ("offset", preferably measured in bytes) of the first sub-area 110_1 associated with the first row Z1 from a reference address in the memory area 110a ( Fig. 1B ), for example, the start address SA of memory area 110a or an end address of a potentially preceding sub-area. In this case, the first sub-area 110_1 is, for example, 0111b (binary), seven bytes in decimal, located a considerable distance from the start address SA of memory area 110a. From row Z2 and column S2 of table T1, the address distance or offset for the start address SA2 of the second sub-area 110_2, in this case relative to the end address EA1 of the first sub-area 110_1, is 0x1, i.e., 1 byte. It should be noted that the representation according to Figur 1B is not to scale.
[0063] In further preferred embodiments, the length of all sub-areas 110_1, 110_2, 110_3, which are characterized by the test sample, is constant, e.g., fixed or configurable (parameterized). Therefore, the respective end address EA1, EA2, EA3 of the respective sub-areas 110_1, 110_2, 110_3 can be determined particularly efficiently by adding the constant length to the respective start address SA1, SA2, SA3.
[0064] In further preferred embodiments, the start address SA1 of a considered sub-area 110_1 can also be determined, depending on the associated part ZF1 of the random sequence ZF, by multiplying the value of the part of the random sequence ZF1 by a constant or configurable first factor F1. For example, the first factor F1 can be 32 in further preferred embodiments, F1 = 32. In this case, based on the exemplary specified value of the first part ZF1 of the random sequence ZF, the start address SA1 of the first sub-area 110_1 can be determined by multiplying the value of the first part ZF1 by the first factor F1, i.e., SA1 = 7 (corresponding to 111b) * F1 = 7 * 32 = 224 (bytes). Thus, in this embodiment, the first sub-area 110_1 begins at the start address SA1 = 224 (e.g., SA+224).Similarly, the starting address SA2 of the second sub-area 110_2 can be determined as follows: SA2 = 001b * 32 = 32, where this second starting address SA2, for example, indicates the distance of the beginning of the second sub-area 110_2 from the end address EA1 of the preceding first sub-area 110_1. The starting address SA3 of the third sub-area 110_3 is determined from table T1 according to... Figur 4B , Column S2, row Z3 - even when applying the factor F1 - the value is 000b. This means that the start address SA3 of the third sub-area 110_3 directly follows the end address EA2 of the preceding second sub-area 110_2.
[0065] In further preferred embodiments, the first factor F1 can also be selected pseudorandomly or randomly, whereby, advantageously, a lower limit and / or an upper limit for the first factor F1 is specified, in particular depending on the size of the entire memory area 110a and / or depending on the number of sub-areas underlying the respective test sample. Alternatively, in further preferred embodiments, lower and upper limits can also be specified for parts ZF1, 2, 3 of the random sequence ZF. If, for example, a part of the number sequence (e.g., ZF1) falls below or exceeds the lower or upper limit, this part of the number sequence (e.g., ZF1) is not included in the test sample generation, and instead, the following number part (e.g., ZF2) is used, and so on.
[0066] In further preferred embodiments, the number of sub-areas that can be specified for the formation of the test pattern PM can be predetermined, thereby advantageously providing a further degree of freedom for controlling the formation of the test pattern PM.
[0067] In further preferred embodiments, an end address EA1 of, for example, the first sub-area 110_1 and / or a length of the first sub-area 110_1 depending on the number sequence ZF ( can alternatively or additionally be specified. Fig. 4A ) are formed, especially depending on other parts of the number sequence besides the aforementioned first part ZF1.
[0068] For further preferred embodiments, compare the random sequence ZF' according to Figur 5A and Table T2 according to Figur 5B , for example, depending on the first part ZF1 of the number sequence ZF`, a start address SA1 of the first sub-area 110_1 can be determined, and depending on a second part ZF2 of the number sequence ZF`, which is different from the first part ZF1 of the number sequence ZF`, a length L1 ( Fig. 1B ) of the first sub-area 110_1. If further sub-areas 110_2, 110_3, ... are provided in other preferred embodiments to form the test specimen, the further sub-areas can be determined in a comparable manner in other preferred embodiments.
[0069] In table T2 according to Figur 5B For example, the first line Z1 is assigned to a first memory area of a test sample, the second line Z2 to a second memory area, and so on. A random value resulting from the first part ZF1 of the number sequence ZF` is entered in column S2, row Z1, and in further preferred embodiments characterizes a size or length of the first sub-area 110_1. Another random value resulting from the second part ZF2 of the number sequence ZF` is entered in column S3, row Z1, and in further preferred embodiments characterizes an address difference (offset) of the first sub-area 110_1 to the subsequent second sub-area 110_2, i.e., for example, a difference between the start address SA2 of the second sub-area and the end address EA1 of the first sub-area.A third random value, derived from the third part ZF3 of the number sequence ZF`, is entered in column S2, row Z2 and characterizes the length of the second sub-area 110_2. A fourth random value, derived from the fourth part ZF4 of the number sequence ZF`, is entered in column S3, row Z2 and characterizes the address distance (offset) of the second sub-area 110_2 to the subsequent third sub-area, etc.
[0070] In further preferred embodiments, the start address can be determined depending on the first part ZF1 of the number sequence ZF` and the end address can be determined depending on the second part ZF2 of the number sequence ZF`, for example of the first sub-area and / or at least one further sub-area.
[0071] In further preferred embodiments, determining the start address and / or the end address and / or the length of at least one sub-area as a function of a relevant part of the number sequence can also involve multiplying a numerical value represented by the relevant part of the number sequence by a respective predefinable factor (e.g., similar to the first factor described above, wherein the respective predefinable factor can also be chosen differently for the different parts of the number sequence in further preferred embodiments). The use of such a factor advantageously makes it possible to determine comparatively large memory areas or memory addresses and / or comparatively large offsets between the respective memory areas (if, for example, the factor is multiplied by the parts of the random sequence that encode the offset) from comparatively short parts ZF1, ZF2, ... of the number sequence ZF, ZF'.In further preferred embodiments, the respective factor can be determined (pseudo-)randomly or be constant or variable (for example, depending on at least one operating parameter of the device 300 (. Fig. 12 )) be chosen.
[0072] In further preferred embodiments, the start address SA1 of, for example, the first sub-area 110_1 can also be defined as the address distance (offset) of the first sub-area 110_1 from the start address SA of the memory area 110a ( Fig. 1B ) of the storage device.
[0073] In further preferred embodiments, it is provided that the test specimen, in addition to the first sub-area 110_1, includes at least a second sub-area 110_2 ( Fig. 1B ), preferably several further sub-areas, characterized, wherein preferably the second sub-area 110_2, in particular the at least one further sub-area, does not directly border the first sub-area 110_1. This means that the start address SA2 of the second or further sub-area in the address space of the storage device does not directly follow the end address EA1 of the first sub-area 110_1 or of any other further (preceding) sub-area, resulting in a distribution of the values used to form the test variable PG ( Fig. 2A ) contributing sub-areas 110_1, 110_2 via the storage area 110a ( Fig. 1B ) of the storage device 100. This allows comparatively large areas of the storage device 100 to be advantageously ( Fig. 1 ) by means of generating and evaluating the test parameter, without having to consider a data set corresponding to the entire memory area 110, 110a of the storage device 100. Rather, it suffices to consider the memory areas characterized by the at least one first sub-area 110_1 or, if applicable, further optional sub-areas 110_2, 110_3. This consideration is based on the fact that targeted manipulation of such a memory area or part of the memory area that is not covered by the sub-areas 110_1, 110_2, ... according to the embodiments in the sense of generating the test parameter PG is extremely difficult or impossible due to the random or pseudorandom generation of the test pattern PM, especially in those further preferred embodiments in which the test pattern PM is repeatedly, and in particular periodically, regenerated.Therefore, in further preferred embodiments, it is sufficient if the at least one first sub-area 110_1 or the optional further sub-areas 110_2, 110_3 do not cover the entire memory area 110, 110a of the memory device 100. Furthermore, this accelerates the verification of the memory area 110, 110a compared to variants that consider all the data of the entire memory area for generating a test parameter, because in the particularly preferred embodiments, less data than all the data of the entire memory area is processed for generating the test parameter.
[0074] In further preferred embodiments, the method further comprises, compare the flowchart according to Figur 3 a) Determine 214a of the second sub-area 110_2 depending on a second part ZF2 of the number sequence ZF, ZF' ( Fig. 4A , 5A), which differs from the first part ZF1 of the number sequence ZF, ZF`, wherein in particular a start address SA2 of the second sub-area 110_2 in the memory area 110, 110a is formed depending on the second part ZF2 of the number sequence ZF, ZF`. Further preferred embodiments are already described above with reference to the Figuren 4A , 4B , 5A , 5B has been described.
[0075] In further preferred embodiments, the method further comprises, compare the flowchart according to Figur 3 Determine 214b the further sub-areas 110_3, ... depending on a respective corresponding further part ZF3, ZF4 of the number sequence ZF`, which in particular is different from the first part ZF1 of the number sequence ZF` and / or from the second part ZF2 of the number sequence ZF`, wherein in particular a start address SA3 of the respective further sub-area 110_3 is formed in the memory area 110a depending on the corresponding further part ZF3 of the number sequence ZF`. In further preferred embodiments, the aspects described above with reference to the determination of the first sub-area 110_1 can also be applied accordingly to the second sub-area and / or at least one further memory area.
[0076] In further preferred embodiments, as already mentioned above with reference to Fig. 1B It is mentioned that at least two, preferably all, sub-areas 110_1, 110_2, 110_3 have the same length L1. In further preferred embodiments, the start address or the end address of the respective sub-area can, for example, be determined pseudorandomly or randomly. In further preferred embodiments, it is also conceivable to determine the constant length L1 (pseudo-)randomly and then use it for defining the different sub-areas.
[0077] In further preferred embodiments, at least some of the sub-areas have different lengths. In these further preferred embodiments, the length (and optionally the start and / or end address) of the relevant sub-area can, for example, be determined pseudorandomly or randomly.
[0078] In further preferred embodiments, it is provided that the length L1 ( Fig. 1B ) at least one sub-area 110_1 is determined depending on at least one part of the number sequence ZF, ZF'.
[0079] Below, with reference to the Figuren 6A , 6B, 6C Further preferred embodiments are described. Figur 6A The figure shows a random sequence ZF, which is shown here as an example divided into four different parts ZF1', .., ZF4', each of which has an exemplary length of 4 bits. The multiplier arrangement according to... Figur 6B The corresponding binary values of the different parts ZF1', .., ZF4` are transformed or scaled into different output value ranges using a first factor F1 and a second factor F2. For example, a value assigned to the first part ZF1' of the random sequence ZF is multiplied by the first factor F1 using a first multiplier m1, resulting in the output value ZF1", which is also shown in column S2 and row Z1 of table T3 according to Figur 6C is entered. This initial value ZF1" can be used, for example, in other preferred embodiments to determine the size or length L1 of the first sub-area 110_1. In a similar manner, a second multiplier m2 ( Fig. 6B ) another initial value ZF3" is determined, which is entered in column S2, row Z2 and is used as an example to define the size or length of the second sub-area. The initial values ZF2", ZF4" determined in column S3, rows Z1, Z2 can be used as shown below. Figur 6B The further multipliers m3, m4 can be determined depending on the further parts ZF2`, ZF4` of the random sequence ZF and a second factor F2, and define, for example, an address distance or offset of the sub-areas corresponding to the respective line Z1, Z2 to an end of a preceding sub-area or the start address SA of the memory area 110a ( Fig. 1B ).
[0080] In further preferred embodiments, the second factor F2 can also be constant, for example configurable or (pseudo-)randomly generated.
[0081] Figur 7A Figure 1 schematically shows a simplified block diagram of a memory area 110b of a memory device according to further preferred embodiments. The memory area 110b of the memory device, defined by the start address SA and the end address EA, is here subdivided into a plurality of different sub-areas 110_1, 110_2, 110_3a, 110_3b, 110_3c, 110_3d (collectively denotes several further sub-areas), 110_4a, 110_4b, 110_4c, 110_4d, 110_4e (collectively denotes several further sub-areas). The sub-areas 110_1, 110_2, 110_3a, 110_3b, 110_3c, 110_3d form a test sample PM ( Fig. 12 ) according to the embodiments, which, for example, has been formed (pseudo-)randomly according to the embodiments described above by way of example. Each of the sub-areas 110_1, 110_2, 110_3a, 110_3b, 110_3c, 110_3d can be characterized, by way of example, by a respective start address and a respective end address, which are not shown for the sake of clarity. The further sub-areas 110_4a, 110_4b, 110_4c, 110_4d, 110_4e are not part of the test sample PM and are therefore not included in the formation of the test variable PG in further preferred embodiments (compare step 202 from Figur 2A ) as a basis. In the example in Figur 7A In the configuration shown, all sub-areas that together form the test pattern have, for example, the same length. Figur 7A It is evident that the test pattern characterized or formed by the sub-areas 110_1, 110_2, 110_3a, 110_3b, 110_3c, 110_3d covers the entire memory area 110b essentially uniformly, so that a reliable verification of the entire memory area 110b is possible with the test parameter PG determined according to the embodiments as a function of the test pattern PM. Because the test pattern PM contains random elements, an attacker cannot know or predict the test pattern PM or parts thereof, in particular the number and / or position and / or size of individual sub-areas, so that on this basis the formation of the test parameter PG, and thus any manipulation that aims to replicate the test parameter by altering data in the memory area 110b, is extremely difficult or even impossible.
[0082] Figur 7B Figure 1 schematically shows a simplified block diagram of a memory area 110c of a memory device 100 according to further preferred embodiments. As shown from Figur 7B As can be seen, the sub-areas 110_1, 110_2, 110_3a, 110_3b, 110_3c, 110_3d associated with the test sample PM have different lengths, which in further preferred embodiments can be determined, for example, randomly, in particular depending on the random sequence ZF, ZF'. Some of the sub-areas not covered by the test sample PM in the present case are in Figur 7B symbolically designated with the reference numbers 110_4a, 110_4b.
[0083] The above with reference to Figur 7A, 7B The memory areas and their sub-areas depicted (not to scale or highly schematic) and the division of the sub-areas into a test sample are purely exemplary. In other preferred embodiments, different numbers of respective sub-areas and / or arrangements of the respective sub-areas within memory areas 110b, 110c, and the like may be used.
[0084] In further preferred embodiments, it is provided that the forming 202 ( Fig. 2A ) the test parameter PG has at least one of the following elements, see also the simplified flowchart according to Figur 8A a) Applying 220 a hash function, in particular a cryptographic hash function, especially to data D stored in the at least one first sub-area 110_1 ( Fig. 1A ), b) Form a checksum 222 depending on the data D stored in the at least one first sub-area 110_1, c) Form a signature 224 depending on a first secret (or private) key and the data stored in the at least one first sub-area 110_1 (and / or a hash value of the data stored in the sub-area 110_1 (from steps 220 and 224)), d) Form a message authentication code 226, in particular a cipher-based MAC, especially depending on a second secret (or symmetric) key and the data D stored in the at least one first sub-area 110_1.
[0085] In further preferred embodiments, the application of a hash function 220 can, for example, include the application of a hash function of type SHA-2, such as SHA-224 and / or SHA-256 and / or SHA-384 and / or SHA-512 and / or other, preferably cryptographic (i.e., collision-resistant), hash functions. This provides a particularly high level of security against manipulation. Details of hash functions that can be used by way of example according to further preferred embodiments are given at http: / / dx.doi.org / 10.6028 / NIST.FIPS.180-4.
[0086] In further preferred embodiments, the generation of the checksum 222 can in particular include the generation of a CRC checksum and / or a hash function or the like, wherein in particular the hash function is not necessarily collision-resistant. This allows for a particularly efficient generation of the checksum PG, which in further preferred embodiments requires fewer computing resources than the application of cryptographic hash functions, at least in some implementations of the device 300 or of any other device configured to perform the method according to the embodiments.
[0087] In further preferred embodiments, the selection of which of the aforementioned methods for generating the test variable PG is used can also be made dynamically, i.e., during the operation of the device 300. This makes it possible to flexibly exploit the available degrees of freedom for generating the test variable PG, for example, to adapt to predefined boundary conditions such as computing time resources and / or memory of the device 300 or safety requirements. In further preferred embodiments, it is also possible to use a first method for generating the test variable PG temporarily, for example, a cryptographic hash function, e.g., SHA-256, and a comparatively easy-to-evaluate CRC checksum for generating the test variable PG temporarily. According to further preferred embodiments, it is advantageous if corresponding reference test variables RPG ( Fig. 2A ) for the various methods used to determine the test parameter.
[0088] In further preferred embodiments, the formation of the test parameter PG comprises the following steps; see the simplified flowchart from [reference]. Fig. 8B : Form 228 a primary test variable PG1 as a function of the data D stored in the at least one first sub-area 110_1 ( Fig. 1A ), preferably depending on several sub-areas 110_1, 110_2 ( Fig. 1B ) stored data, images 229 ( Fig. 8B ) a secondary test parameter PG2 at least as a function of the primary test parameter PG1.
[0089] In further preferred embodiments, generating the primary test variable PG1 comprises, for example, generating a checksum, in particular a CRC checksum, and / or evaluating a hash function, preferably a non-cryptological one, such as an MD5 (Message Digest 5) hash function. This allows the primary test variable PG1 to be determined efficiently with comparatively low resource expenditure, and to increase tamper resistance, the secondary test variable PG2 can be generated, for example, using a cryptographic hash function, such as SHA-256, with this generation preferably depending on the primary test variable PG1. In further preferred embodiments, the secondary test variable PG2 can also be generated depending on the primary test variable PG1 and at least one sub-area 110_1 of the memory area 110 associated with the test pattern PM.In further preferred embodiments, this enables at least a partially two-stage generation of the test parameter, namely the secondary test parameter PG2, which, in addition to the primary test parameter PG1, optionally also directly considers data, for example, from the sub-area 110_1 associated with the test sample PM. In further preferred embodiments, the generation of the primary test parameter PG1 can also be interpreted as "data compression" and / or "data reduction" of the input data used to generate the primary test parameter PG1, since the primary test parameter PG1 itself can be significantly smaller than the input data used to determine it. This advantageously reduces the amount of data required to generate the secondary test parameter.
[0090] In further preferred embodiments, it is provided that the forming 202 ( Fig. 2A ) the test parameter PG has the following steps, compare the simplified flowchart from Figur 9 : Select 230 of a first number of sub-areas of the memory area 110 ( Fig. 1A ) of the storage device 100, selecting 232 a second number of sub-areas of the storage area 110 of the storage device 100, which are in particular different from the first number, forming 234 a primary test parameter PG1 for the first number of sub-areas of the storage area 110, forming 236 a secondary test parameter PG2 for the second number of sub-areas of the storage area, wherein optionally the forming 236 of the secondary test parameter PG2 is additionally carried out for at least a part of the primary test parameter PG1. This allows advantageously different test parameters (e.g., also by means of different methods) to be formed for the different sub-areas, whereby, for example, computational effort and / or tamper resistance can be flexibly controlled, in particular also dynamically (i.e., during the running time of the device 300).For example, in further preferred embodiments, the first number of sub-areas can be associated with a first test parameter PG1 that is comparatively easy to determine computationally, and the second number of sub-areas can be associated with a second test parameter PG2 that requires more computational effort (e.g., SHA-256). By selecting the first and second number, or the ratio of the first number to the second number, the computational effort and / or the tamper resistance of the entire process can be advantageously controlled, and, for example, in further preferred embodiments, the current operating state of the device 300 or the utilization of the computing unit 302 can be adapted. Particularly preferred are the data that are used to generate the first test parameter PG1 and the second test parameter PG2, for example, associated with the test sample PM.
[0091] Figur 10 Figure 1 schematically shows a simplified flowchart of a method according to further preferred embodiments. For the purposes of this study, five storage areas 110a, 110b, 110c, 110d, 110e are considered by way of example, each of which, for instance, represents a part of the storage device 100 ( Fig. 1A , 12 ). Each of the five memory areas 110a, 110b, 110c, 110d, 110e is assigned its own reference test parameter RPGa, RPGb, RPGc, RPGd, RPGe, which is determined, for example, during the manufacturing of the memory device 100 according to the embodiments described above and stored in a secured memory area, for example, of a hardware security module 307 (see also Fig. 12 ) has been stored. In further preferred embodiments, the associated test patterns for determining the respective reference test parameter RPGa, RPGb, RPGc, RPGd, RPGe can also be stored in the hardware security module 307. In further preferred embodiments, the test pattern can, for example, also be (in particular completely) generated or stored in the hardware security module 307, and the hardware security module 307 can, for example, also be configured to determine the test parameter(s).
[0092] The first memory area 110a contains, for example, a bootloader, i.e., a computer program that controls the startup process of the computing unit 302 or the device 300 and, for instance, determines which other computer programs are executed after the startup process. The second memory area 110b represents computer programs and / or data of an operating system for the device 300 or its computing unit 302, and the further memory areas 110c, 110d, 110e, for example, application programs for the device 300.
[0093] At the beginning of the boot process, in step s1, a (current) checksum for memory area 110a, where the bootloader is located, is first determined and then compared with the reference checksum RPGa. If they match, the bootloader is considered intact and is then started in step s2. In step s3, the bootloader then generates a current checksum for the next memory area, 110b, which contains the operating system, and compares this current checksum with the corresponding reference checksum RPGb. If the current checksum matches the reference checksum RPGb for memory area 110b, it is concluded that the operating system's programs and / or data are intact, i.e., not manipulated, and a corresponding operating system program is executed in step s4.Subsequently, an analogous process is carried out for the further memory areas 110c, 110d, 110e using the steps s5, s6, s7, s8, sn, sn+1, each using the correspondingly assigned reference checksum RPGc, RPGd, RPGe.
[0094] In the above, with reference to Figur 10 In the described embodiment, the memory area 110a containing the bootloader has preferably been completely inspected or inspected using a test pattern that covers the entire memory area 110a. In further preferred embodiments, the memory area 110a containing the bootloader can also be inspected using a test pattern that does not cover the entire memory area 110a, as is the case here by way of example for the further memory areas 110b, 110c, 110d, 110e.
[0095] Figur 11A , 11B , 11CEach figure shows a simplified flowchart of a method according to further preferred embodiments, schematically (and not to scale).
[0096] At the Figur 11A The configuration shown includes a test pattern that characterizes a first set of several non-contiguous sub-areas 110_1, 110_2, ..., 110_9 of the entire memory area 110f. Furthermore, the test pattern characterizes a second set of additional sub-areas, which, for clarity, are collectively designated with the reference symbol 111. For example, between sub-areas 110_1 and 110_2, there are four individual additional sub-areas 111; between sub-areas 110_2 and 110_3, there are three individual additional sub-areas 111, and so on. The in Fig. 11A The undesignated areas of memory space 110f are not covered by the test pattern. Eight functional blocks, PG1_1, PG1_2, ..., PG1_8, are provided, each forming a part of a primary test variable PG1 depending on the data contents of their assigned memory spaces 111. For example, functional block PG1_1 forms a first part of the primary test variable PG1 depending on the four individual sub-spaces 111 between memory spaces 110_1, 110_2; functional block PG1_2 forms a second part of the primary test variable PG1 depending on the three individual sub-spaces 111 between memory spaces 110_2, 110_3, etc. The primary test variable PG1 can thus be characterized as an 8-tuple of the output values formed by the respective functional blocks PG1_1, ..., PG1_8.In further preferred embodiments, a secondary test parameter PG2 is generated depending on both the primary test parameter PG1 and a data content of the first number of sub-areas 110_1, 110_2, ..., 110_9, which can be implemented, for example, using the functional block PG2_1. The secondary test parameter PG2 can, for example, be a reference test parameter RPG (. Fig. 2A ) can be saved for later use or used as the current secondary check statistic PG2, e.g., for comparison with a previously saved reference check statistic RPG.
[0097] In further preferred embodiments, the functional blocks PG1_1, .., PG1_8 can, for example, be configured to generate a CRC checksum over their input data, e.g., a 32-bit CRC checksum, which enables particularly efficient determination of the primary check metric as an 8-tuple from the resulting CRC checksums. In further preferred embodiments, the functional block PG2_1 is configured to apply a cryptographic hash function, e.g., SHA-256, to the input data ED supplied to it, resulting in the secondary check metric PG2. In further preferred embodiments, the input data ED can, for example, be formed as a concatenation of the output values of the functional blocks PG1_1, .., PG1_8 and the data of the first set of sub-areas 110_1, 110_2, .., 110_9.
[0098] At the Figur 11B The configuration shown is analogous to Fig. 11A A test sample is provided that characterizes a first number of several non-contiguous sub-areas 110_1, 110_2, ..., 110_9 of the entire storage area 110g. Furthermore, the test sample characterizes, insofar as analogous to Fig. 11A , a second set of further sub-areas, which for the sake of clarity are collectively designated with the reference numeral 111. As already stated in the embodiments according to Fig. 11A are the in Fig. 11B The undesignated areas of the 110g storage area were not covered by the test sample. This differs from the configuration according to... Figur 11A is in the configuration according to Figur 11B A single function block PG1_1' is provided, to which the data of the further sub-areas 111 can be fed as initial input data ED1, for example, again as a concatenation (see element K) of the data of the individual sub-areas 111. The function block PG1_1' forms the first check metric PG1 as a function of the first input data ED1, for example, again using a CRC checksum or a comparatively simple, and in particular non-cryptological or non-collision-free, hash function. The first check metric PG1 is then combined with the data contents of the first number of sub-areas 110_1, 110_2, ..., 110_9, for example, concatenated, resulting in second input data ED2, which is transformed into the second check metric PG2 by the further block PG2_1, for example, using another, preferably cryptological, hash function, such as SHA-256.
[0099] At the Figur 11C The configuration shown is analogous to Fig. 11A and 11B A test pattern is provided that characterizes a first number of several non-contiguous sub-areas 110_1, 110_2, ..., 110_9 of the entire memory area 110h. Furthermore, the test pattern characterizes, insofar as analogous to Fig. 11A , 11B , a second set of further sub-areas, which for the sake of clarity are collectively designated with the reference numeral 111. As already stated in the embodiments according to Fig. 11A , 11B , are the in Fig. 11C The undesignated areas of memory space 110h were not covered by the test pattern. This differs from the configuration according to... Figur 11A , 11B is in the configuration according to Figur 11C Each further sub-area 111 is assigned its own function block for generating a primary test variable, for example by generating a CRC checksum, of which in Figur 11C For the sake of clarity, however, only the three blocks PG1_1, PG1_2, and PG1_21 are designated. The output values of the function blocks PG1_1, PG1_2, ..., PG1_21 are combined, preferably together with the data contents of the first set of sub-areas 110_1, 110_2, ..., 110_9, whereby the combining may preferably include concatenation, and the function block PG2_1 applies a hash function, preferably cryptographic, e.g., SHA-512, to the input data ED supplied to it.
[0100] Alternatively or in addition to the checksums or hash functions mentioned above as examples, message authentication codes (e.g. MAC, CMAC) and / or signatures can also be used in other preferred embodiments to determine at least one of the check variables PG, PG1, PG2.
[0101] Further preferred embodiments relate to the use of the method according to the embodiments before and / or after and / or during at least one of the following operating phases of a computing device 302 ( Fig. 12 ), which is trained to access the storage device 100: a) Starting the computing device 302 from a switched-off state ("booting"), b) (re)starting the computing device 302 from a power-saving state, in particular a suspend-to-RAM state, c) Starting the computing device from a reset state, in particular a soft reset, d) Normal operation.
[0102] This allows the memory contents of the memory device 100 to be advantageously checked for proper content, e.g., before starting ("booting") or starting up from a suspend-to-RAM state, or even during normal operation, which can also be referred to as "runtime manipulation detection".
[0103] Further preferred embodiments relate to a device 300 ( Fig. 12 ) for processing data stored in a storage device, wherein the device 300 is configured to perform the method according to the embodiments.
[0104] Further preferred embodiments relate to a method for forming a test sample PM ( Fig. 12 ), which at least a first sub-area 110_1 ( Fig. 1A ) of a storage area 110 of a storage device 100 for storing data D, wherein the test pattern PM is generated randomly or pseudorandomly. In further preferred embodiments, the method for generating the test pattern PM is carried out by the device 300 described above. In further preferred embodiments, however, the method for generating the test pattern PM can (also) be carried out by other units 400, which then make the generated test pattern PM available, for example, to the device 300 according to the embodiments, preferably via a secure channel, e.g., in a protected manufacturing environment in which the device 300 is manufactured according to the embodiments.
[0105] In further preferred embodiments, the method according to the embodiments can, for example, be carried out by the computing device 302. Alternatively or additionally, the method according to the embodiments can be carried out at least partially by an optional hardware security module 307, which in further preferred embodiments can be integrated into the device 300, and in particular can also be arranged on the same semiconductor substrate as the computing device 302 and / or the further storage device 304.
[0106] In further preferred embodiments, the hardware security module 307 can have or provide a programming interface (API) so that a computer program executed by the computing device 302 can call corresponding functions of the hardware security module 307 via the programming interface to execute at least some steps of the method according to the embodiments, for example, the evaluation of a hash function, using the hardware security module 307. In further preferred embodiments, this is particularly advantageous if the determination or generation of the check metric PG is based on MAC or CMAC or signatures, or generally in cases where at least one secret key or a shared secret or the like is to be used.
[0107] In further preferred embodiments, a computer program configured to execute the method according to the embodiments can, for example, also be stored in a read-only memory, such as a ROM and / or an OTP (one-time programmable memory).
[0108] In further preferred embodiments, it is provided that at least two different memory areas 110a, 110b, 110c, 110d, 110e ( Fig. 10 Different test patterns (PM) are provided for each memory area. This allows for a further degree of freedom. For example, a relatively thorough test with a correspondingly detailed or comprehensive test pattern (PM) can be provided for memory area 110a containing the bootloader, while less comprehensive test patterns are provided for other memory areas 110c and 110d, covering, for example, a smaller portion of the respective memory area.
[0109] In further preferred embodiments, it is provided that, depending on the computer programs and / or data stored in the different memory areas, a respective test pattern is selected for the relevant memory area.
[0110] In further preferred embodiments, the determination 200, in particular the formation 200a, of at least one test sample can advantageously be carried out dynamically, i.e., during the operation of the device 300, and in further preferred embodiments also repeatedly, in particular periodically. In further preferred embodiments, the determination 200, in particular the formation 200a of at least one test sample, can be carried out on one or more of the following occasions: completion of the manufacture of the device 300, completion of a start-up process or the boot-up of the device 300, during a run-up, in particular before the device 300 is deactivated. The embodiments mentioned above also apply accordingly to the determination of the at least one test parameter as a function of the respective test sample.
[0111] In further preferred embodiments, a determined or generated test sample is used only once. Afterwards, at least one further test sample can optionally be determined, in particular created. In further preferred embodiments, the test parameter PG or an associated reference test parameter can also be used only once in a corresponding manner.
[0112] In further preferred embodiments, a reference test parameter RPG is written to a one-time programmable memory (OTP), from which the device 300 can then read the reference test parameter as needed. This can be particularly advantageous if the device 300 does not have an optional hardware safety module 307.
[0113] In further preferred embodiments, it may be provided that the memory area 110 or at least one first sub-area 110_1 from the memory device 100 is transferred to a working memory 304a ( Fig. 12 ) to copy in order to execute the method according to the embodiments with the copied data, for example, to calculate the test parameter as a function of the copied data. In further preferred embodiments, the method according to the embodiments can also be applied directly to data located in the storage device 100, particularly if the storage device 100 has memory cells based on NOR flash technology.
[0114] In further preferred embodiments, the device 300 can be configured as a control unit, in particular for a motor vehicle, for example for an internal combustion engine of a motor vehicle. However, in further preferred embodiments, the application of the principle according to the embodiments is not limited to the motor vehicle sector or the area of control units.
[0115] In further preferred embodiments, the method according to the embodiments can also be combined with other methods for checking the storage device 100. For example, the storage device 100 can be checked at least temporarily according to the embodiments described above, for example by determining a test pattern, generating a reference test quantity and, optionally later, generating a current test quantity using the same test pattern, comparing the current test quantity with the reference test quantity, and temporarily the storage device 100 can also be checked with other test methods, for example, methods in which a test pattern is not generated (pseudo-)randomly.
[0116] A significant advantage of the principle according to the embodiments is the fact that the test pattern is not deterministic; therefore, an attacker cannot predict which areas of the storage device 100 will be checked using the test pattern according to the embodiments. A further particular advantage is that individual devices 300 can each determine, create, and / or use individual test patterns PM and / or test pattern base data PMB, so that, for example, the relevant test patterns and / or test pattern base data are only known within the device 300, which further complicates manipulation. Another advantage of the principle according to the embodiments is the ability to flexibly specify a storage area to be checked, which can be achieved, for example, by dimensioning the test pattern PM.Furthermore, it is advantageous to dynamically adjust the "test density," i.e., the proportion of the storage area covered by the test pattern PM to the total storage area of the storage device 100. In addition, in further preferred embodiments, waiting times between successive repetitions or re-executions of the method according to the embodiments are also flexibly adjustable, which enables precise setting of a temporal test density. In further preferred embodiments, for example, different sub-areas 110_1, 110_2 of a storage device can be checked with different frequencies or with test patterns of different sizes.
[0117] Figur 13 Figure 1 schematically shows a simplified block diagram according to further preferred embodiments. A memory area 110 of the memory device 100 is depicted ( Figur 1A ) in three different operating states Z_1, Z_2, Z_3. The first operating state Z_1 is characterized by the fact that in Figur 13 The unspecified sub-areas, indicated as rectangles, have been checked using a first (pseudo-)randomly generated test pattern, for example by comparing a first test value obtained using the first test pattern with a corresponding, possibly previously generated, reference test value. A remaining, unchecked area is hatched.
[0118] The second operating state Z_2 is characterized by the fact that in Figur 13 Further unspecified sub-areas were checked using a second (pseudo-)randomly generated test sample, for example by comparing a second test parameter obtained using the second test sample with a corresponding, possibly previously generated, reference test parameter. The third operating state Z_3 is characterized by the fact that in Figur 13Further unspecified sub-areas were checked using a third (pseudo-)randomly generated test pattern, for example by comparing a third test parameter obtained using the third test pattern with a corresponding, possibly previously generated, reference test parameter. Between the first operating state Z_1 and the second operating state Z_2, see phase P1, a device 300 accessing the memory device 100 may be inactive, for example by deactivation or entering a suspend-to-RAM state or another energy-saving state. Between the second operating state Z_2 and the third operating state Z_3, see phase P2, the device 300 accessing the memory device 100 may again be inactive, for example by deactivation or entering a suspend-to-RAM state or another energy-saving state.
[0119] After the end of phase P1, the device 300 is reactivated and then performs a check using the second test sample. Due to its non-deterministic nature, this second test sample at least partially checks the memory areas not previously checked using the first test sample. The same applies to the further check after the end of phase P2. In this way, in further preferred embodiments, almost the entire memory area 110 of the storage device 100 can advantageously be checked successively. At the same time, the resource requirements, especially computing time, can be flexibly controlled, particularly so that even larger memory areas can be checked efficiently without impairing the operation of the device.
[0120] In further preferred embodiments, the second test pattern for verification during the second operating state Z_2 can, for example, be determined by the device 300 before it is deactivated or shut down at the end of the first operating state Z_1. After its formation, the second test pattern is securely stored, preferably within the device 300, and a test parameter is determined using the second test pattern. This parameter can be used as a reference test parameter for verification during the second operating state Z_2 and is also stored in the device 300. The device 300 then enters the inactivity phase P1, which it exits to assume the second operating state Z_2.Then, particularly before normal operation is initiated during the second operating state Z_2 (executing application programs and the like), for example via a bootloader, a second check can be performed using the previously generated second test pattern and the corresponding reference test value. The second check can, for example, include generating a current test value using the second test pattern and comparing the resulting current test value with the reference test value. If the current test value matches the reference test value, it can be concluded that no manipulation of the storage device has occurred and that the data is therefore authentic and intact. Otherwise, an error response can be initiated, for example.A similar process can occur for a state transition from the second operating state Z_2 to the third operating state Z_3. Since the test pattern changes continuously in a non-deterministic manner in the individual operating states, an attacker cannot predict the test pattern and thus the basis for calculating the test variable, making undetected manipulation of the data stored in the storage device 100 virtually impossible.
[0121] In further preferred embodiments, the method according to the embodiments can be carried out at least partially by a computing device 302 and / or an optional hardware security module 307. For example, in further preferred embodiments, at least some of the following steps can be carried out by the computing device 302 and / or the optional hardware security module 307: storing the first or second secret key or a hash value of the first or second secret key, respectively; processing the first or second secret key; generating and / or storing the test pattern PM or the test pattern base data; generating and / or storing the reference test quantity based on the test pattern or the test pattern base data; generating and / or storing the current test quantity based on the test pattern or the test pattern base data.the test sample basic data, comparison of the current test parameter with the reference test parameter or verification of the current test parameter.
[0122] In further preferred embodiments, the test pattern PM or the test pattern basic data PMB and / or the reference test parameter RPG are not necessarily stored in an internal memory, e.g., of the computing unit 302. Alternatively or additionally, in further preferred embodiments, the test pattern PM or the test pattern basic data PMB, e.g., in encrypted form, can also be stored in an external storage unit, and / or a key used for encryption or a hash value of this key can optionally be stored in an internal memory. Furthermore, in further preferred embodiments, this key can preferably be implemented individually for each device / control unit (generally: device).
[0123] In further preferred embodiments, the reference check parameter RPG, in particular in unencrypted form, can be stored in an internal or external storage unit, especially if: the reference check parameter RPG represents an asymmetric signature, and / or the reference check parameter represents a MAC.
[0124] In further preferred embodiments, the reference test quantity RPG, in particular in encrypted form, can be stored in an external storage unit, especially if the reference test quantity RPG represents a cryptographic hash (value), wherein, in particular, the same or comparable criteria as for the encryption of the test sample PM can be used for the key used for encryption (see description above).
Claims
1. Method for processing data stored in a memory device (100) of a control unit for a motor vehicle, wherein the method is carried out by a computing device (302), wherein the memory device (100) is assigned to the computing device (302), wherein the method comprises the following steps: determining (200) at least one first subarea (110_1) of a memory area (110) of the memory device (100) by way of a randomly dependently or pseudo-randomly dependently formed test pattern (PM) by randomly dependently and / or pseudo-randomly dependently choosing at least one out of start address, end address, length, bit mask or byte mask, forming (202) a test variable (PG) formed in a manner dependent on the data (D) stored in the at least one first subarea (110_1), comparing (205) the test variable (PG; PG') with a stored reference test variable (RPG) for the at least one first subarea (110_1), wherein an effected alteration or manipulation of the data of the associated subarea (110_1) for which the reference test variable (RPG) was formed is deduced in the case of a deviation of the test variable (PG) from the reference test variable (RPG).
2. Method according to Claim 1, further comprising: a) at least temporarily storing (204) the test variable (PG).
3. Method according to at least one of the preceding claims, wherein determining (200) the test pattern (PM) comprises at least one of the following elements: a) receiving (200b) the test pattern (PM) from an external unit (400), b) reading (200c) the test pattern (PM) out of the memory device (100) and / or a further memory device (304), c) deriving (200d) the test pattern (PM) from test pattern base data (PMB) that do not already represent a complete test pattern (PM).
4. Method according to Claim 3, wherein forming (200a) the test pattern (PM) comprises the following steps: providing (210) a random or pseudo-random, preferably binary, number sequence (ZF; ZF`), determining (212) the at least one first subarea (110_1) in a manner dependent on at least one first portion (ZF1) of the number sequence (ZF), wherein in particular a start address (SA1) of the first subarea (110_1) in the memory area (110) is formed in a manner dependent on the first portion (ZF1) of the number sequence (ZF).
5. Method according to at least one of the preceding claims, wherein the test pattern (PM) characterizes at least one second subarea (110_2), preferably a plurality of further subareas (110_3a, 110_3b, 110_3c, ..), in addition to the first subarea (110_1), wherein preferably the second subarea (110_2), in particular the at least one further subarea, does not directly adjoin the first subarea (110_1) and / or is at a non-vanishing distance from the first subarea (110_1).
6. Method according to Claim 5, referring back to Claim 4, further comprising at least one of the following elements: a) determining (214a) the second subarea (110_2) in a manner dependent on a second portion (ZF2) of the number sequence (ZF), which is different from the first portion (ZF1) of the number sequence (ZF), wherein in particular a start address (SA2) of the second subarea (110_2) in the memory area (110) is formed in a manner dependent on the second portion (ZF2) of the number sequence (ZF), b) determining (214b) the further subareas (110_3a, 110_3b, 110_3c, ..) in a manner dependent on a respective corresponding further portion of the number sequence (ZF), which in particular is different in each case from the first portion (ZF1) of the number sequence (ZF) and / or from the second portion (ZF2) of the number sequence (ZF), wherein in particular a start address of the respective further subarea in the memory area (110) is formed in a manner dependent on the corresponding further portion of the number sequence (ZF).
7. Method according to at least one of Claims 5 to 6, wherein a) all subareas (110_1, 110_2, 110_3a, 110_3b, 110_3c, ..) have the same length or b) at least some of the subareas (110_1, 110_2, 110_3a, 110_3b, 110_3c, ..) have a different length.
8. Method according to at least one of Claims 4 to 7, wherein a or the length (ZF2", ZF4") of at least one subarea (110_1, 110_2, 110_3a, 110_3b, 110_3c, ..) is determined in a manner dependent on at least one portion (ZF2`, ZF4`) of the number sequence (ZF).
9. Method according to at least one of the preceding claims, wherein the test pattern (PM) does not completely cover the memory area (110).
10. Method according to at least one of the preceding claims, wherein forming (202) the test variable (PG) comprises at least one of the following elements: a) applying (220) a hash function, in particular a cryptological hash function, in particular to data (D) stored in the at least one first subarea (110_1), b) forming (222) a checksum in a manner dependent on the data (D) stored in the at least one first subarea (110_1), c) forming (224) a signature, in particular in a manner dependent on a first secret key and the data (D) stored in the at least one first subarea (110_1), d) forming (226) a message authentication code, in particular in a manner dependent on a second secret key and the data (D) stored in the at least one first subarea (110_1).
11. Method according to at least one of the preceding claims, wherein forming (202) the test variable (PG) comprises the following steps: forming (228) a primary test variable (PG1) in a manner dependent on the data (D) stored in the at least one first subarea (110_1), preferably in a manner dependent on data (D) stored in a plurality of subareas (110_1, 110_2, 110_3a), forming (229) a secondary test variable (PG2) at least in a manner dependent on the primary test variable (PG1).
12. Method according to at least one of the preceding claims, wherein forming (202) the test variable (PG) comprises the following steps: selecting (230) a first number of subareas of the memory area (110) of the memory device (100), selecting (232) a second number of subareas of the memory area (110) of the memory device (100), which in particular are different from the first number, forming (234) a or the primary test variable (PG1) for the first number of subareas of the memory area (110), forming (236) a or the secondary test variable (PG2) for the second number of subareas of the memory area (110).
13. Use of the method according to at least one of the preceding claims before and / or after and / or during at least one of the following operating phases of a computing device (302) designed to access the memory device (100): a) starting the computing device (302) from a switched-off state, b) starting the computing device (302) from an energy-saving state, in particular a suspend-to-RAM state, c) starting the computing device (302) from a reset state, in particular a soft reset, d) normal operation.
14. Apparatus (300) for processing data stored in a memory device (100) of a control unit for a motor vehicle, wherein the memory device (100) is assigned to a computing device (302) of the apparatus (300), and wherein the computing device (302) is designed to carry out the following steps: determining (200) at least one first subarea (110_1) of a memory area (110) of the memory device (100) by way of a randomly dependently or pseudo-randomly dependently formed test pattern (PM) by randomly dependently and / or pseudo-randomly dependently choosing at least one out of start address, end address, length, bit mask or byte mask, forming (202) a test variable (PG) formed in a manner dependent on the data (D) stored in the at least one first subarea (110_1), comparing (205) the test variable (PG; PG') with a stored reference test variable (RPG) for the at least one first subarea (110_1), wherein an effected alteration or manipulation of the data of the associated subarea (110_1) for which the reference test variable (RPG) was formed is deduced in the case of a deviation of the test variable (PG) from the reference test variable (RPG).
