How to safely transition a product from one lifecycle stage to the next through a forward-only lifecycle and validate the integrity of the data and product status

A Merkle tree-based data structure with hash values ensures secure and authorized transitions through product lifecycle stages, maintaining data integrity and preventing unauthorized access.

JP2024536179AActive Publication Date: 2024-10-04コンチネンタル·オートモーティヴ·テクノロジーズ·ゲゼルシャフト·ミト·ベシュレンクテル·ハフツング
View PDF 4 Cites 0 Cited by

Patent Information

Application Number
JP2024519403
Authority / Receiving Office
JP · JP
Patent Type
Applications
Current Assignee / Owner
Priority Date
2021-09-29
Filing Date
2022-09-20
Publication Date
2024-10-04
Estimated Expiration
2042-09-20

AI Technical Summary

Technical Problem

Existing technologies fail to ensure the secure transition of products through their lifecycle stages while maintaining data integrity and preventing backward transitions, particularly in cases where sensitive data needs to be kept confidential and accessible only to authorized entities.

Method used

A data structure utilizing a Merkle tree with hash values and a lifecycle stage index field ensures secure transition and verification of the current lifecycle stage by using cryptographic hash functions to maintain data integrity and prevent unauthorized access or tampering.

Benefits of technology

The solution allows secure, tamper-proof transitions through lifecycle stages, ensuring only authorized entities can access sensitive data, reducing the risk of data leakage and unauthorized reversions.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure 2024536179000001_ABST
    Figure 2024536179000001_ABST
Patent Text Reader

Abstract

A lifecycle certificate implementing a Merkle tree-based data structure allows for validating a current lifecycle stage and for securely transitioning a first component or product to a next lifecycle stage in a forward-only manner. The lifecycle certificate includes a lifecycle index, a first level hash value or a reference thereto, at least one second level hash value or a reference thereto, a third level hash value, and a further third level hash value or a corresponding reference thereto. The third level hash value represents a hash of the corresponding secret data associated with each value of the lifecycle index. The lifecycle certificate further includes a control hash value, which is a hash value of the concatenation of all other components of the data structure. The method for forward-only transitioning a product's lifecycle stage uses the lifecycle certificate and a unique property of the Merkle tree-based data structure to prevent transition to a previous lifecycle stage.
Need to check novelty before this filing date? Find Prior Art

Description

[Technical field]

[0001] The present invention relates to products or components that store data, which may change during forward transitions through various stages of the product's lifecycle. In particular, the present invention relates to ensuring and verifying that the stored data is consistent with the corresponding stage of the lifecycle, and that transitions backwards to previous lifecycle stages are prevented and / or at least detectable. [Background technology]

[0002] In various technical fields, products or components store data that changes as they move forward through various stages of the product's life cycle. Such components or products can generally communicate with external entities via communication interfaces, either directly or via interfaces provided and / or shared by other components or products. The life cycle of a component or product may include stages such as production, customer delivery, OEM production, field application (also called post-sales use), and failure analysis or end-of-life analysis. End-of-life analysis may include general analysis to learn how a product or component has been used throughout its life, while failure analysis may relate, for example, to when a product or component fails before its normal end-of-life. However, end-of-life analysis and failure analysis are similar enough that both terms may be used interchangeably.

[0003] In the following description, the terms "component" and "product" are used interchangeably as a product may comprise one or more components that store data that changes as the product transitions between lifecycle stages.

[0004] The stored data may be sensitive data that may be used only during each stage of the lifecycle and further used only by authorized entities during each stage. Such sensitive data may include data required to test or execute security functions or features, such as encryption keys, access credentials, etc.

[0005] It is clear that some testing of such functions that rely on or use sensitive data may need to be performed during the production of the component or product to ensure proper operation. Similarly, some testing may be performed after the product or component is received by the OEM manufacturer and before the product or component is implemented in another product that is sold to a customer. Also, advanced test and diagnostic capabilities of the product or component may only be available for end-of-life analysis, after which the product or component must not be returned to normal service. However, if such sensitive data is available to too many entities during the product or component's life cycle, this may conflict with the goal of keeping the sensitive data secret.

[0006] For example, any confidential data that may be used during the production of a component may be accessible to the component manufacturer but must not be passed on to the customer. Reading of such confidential data may be prevented by security mechanisms implemented in the component, and once the component is received, the confidential data may be replaced with confidential data of the customer.

[0007] A customer may use the component for the development of a more complex further product that comprises or implements the component. This may also require testing of some of the components in the context of the more complex further product using appropriate confidential data. Once the development of the more complex further product is finished and ready for production by either the customer or a third party, for example an OEM manufacturer, the confidential data in the component will be replaced with corresponding data adapted for testing during production of the more complex further product. Thus, once the more complex further product is received at the production facility, the confidential data may be replaced with the OEM manufacturer's confidential data.

[0008] Once the more complex further product is produced and ready for sale to a user or, more broadly, ready for use in the field, the sensitive data necessary to operate the more complex further product that comprises or implements the component may be stored in the component. Operation may include field testing and field diagnostics. Storage of sensitive data for field use may be performed by the user or by the manufacturer at the user's request.

[0009] Finally, at the end of the product's life, in a mode that provides access to more advanced testing and diagnostics, the sensitive data for operating the more complex further product may be replaced with sensitive data for field use, which may be restricted to trusted and authorized entities, for example, since such advanced testing and diagnostics may reveal sensitive information from previous stages.

[0010] From the above examples, it is clear that sensitive data at each stage should be kept secret from other parties that have control during other stages, and that returning to previous stages should be prevented, since reselling a used or otherwise compromised product can be dangerous in security or safety related applications. Preventing returning to previous stages of a product's lifecycle is hereinafter referred to as a forward-only lifecycle.

[0011] It is an object of the present invention to provide a data structure that allows for validation of the current lifecycle stage and secure forward-only transition of a product's lifecycle stage to the next lifecycle stage. It is a further object of the present invention to provide a method for securely transitioning lifecycle stages and for ensuring and validating the integrity of data and device status throughout the various lifecycle stages of a product's forward-only lifecycle. Summary of the Invention [Means for solving the problem]

[0012] These objects are achieved by the data structure of claim 1 and the methods of claims 3, 4 and 6. Advantageous embodiments and developments of the data structure and the methods are set out in the respective dependent claims.

[0013] According to a first aspect of the invention, a Merkle tree based data structure for validating a current life cycle stage and for safely transitioning a product's life cycle stage to the next life cycle stage in a forward-only manner comprises a life cycle stage index field, a first level hash value or a reference to the first level hash value, at least one second level hash value or a reference to the at least one second level hash value, a third level hash value, a further third level hash value or a corresponding reference value for the latter, and a control hash value. The control hash value is a hash value of the concatenation of the index field, the first level hash value or its reference value, the at least one second level hash value or its reference value, the third level hash value and the further third level hash value or its reference value. The control hash value prevents any manipulation of the individual fields of the data structure and ensures its integrity.

[0014] An exemplary Merkle tree showing the relationship of some elements of the data structure to the nodes of the Merkle tree (hash tree) is shown in FIG. 1. The leaf nodes of the Merkle tree, in this data structure the third level hash values ​​H0-0, H0-1, H1-0, H1-1, H2-0, and H2-1, contain the hash values ​​#(D0) to #(D5) of the corresponding data blocks D0 to D5. The data blocks D0 to D5 may store sensitive data, e.g. operating software and / or parameters, access credentials, cryptographic keys, secrets, signatures, etc., related to different life cycle stages of the product, represented by index i. The life cycle stages may correspond, for example, to a device production stage, an OEM customer delivery stage, e.g. an OEM production stage where the device is integrated into a product, a field application stage or use stage, a failure analysis stage, and further stages.

[0015] The second-level hash values ​​H0, H1, and H2, which are non-leaf node hash values, each include the hash value of the third-level hash values ​​H0-0, H0-1, H1-0, H1-1, H2-0, and H2-1 to which they are connected. In FIG. 1, the second-level hash value H0 includes the hash values ​​of the third-level hash values ​​H0-0 and H0-1, the second-level hash value H1 includes the hash values ​​of the third-level hash values ​​H1-0 and H1-1, and the second-level hash value H2 includes the hash values ​​of the third-level hash values ​​H2-0 and H2-1. The first-level hash value H includes the hash values ​​of the second-level hash values ​​H0, H1, and H3.

[0016] The index field i of the data structure represents the index of the life cycle stage. The data structure may also include a field for additional data, in which case the concatenation of the various fields to determine the control hash value includes the field for the additional data.

[0017] FIG. 2 shows an exemplary data structure of a preferred embodiment of the present invention. This data structure includes various fields and hash values ​​in the following order: index field i, additional information or data field, second level hash value H0, third level hash value for index i=2, further third level hash value or reference thereto for index i=3, second level hash value H2, first level hash value, and finally a control hash value. As is readily apparent, the second level hash value H1, which includes the third level hash value associated with the current lifecycle stage, is replaced by the third level hash value of the current lifecycle stage, and the third level hash value or reference thereto of the next lifecycle stage. In general, the second level hash values ​​or their references are provided in ascending order and are arranged in ascending order as well, unless replaced by the underlying third level hash value or reference thereto. However, other predefined orders may also be used. It should be noted that the exemplary data structure shown in FIG. 2 corresponds to a lifecycle certificate sent by a product after transitioning from lifecycle stage index 1 to lifecycle stage index 2.

[0018] The various fields and hash values ​​of the data structure may be separated by predefined characters or codes or may have predefined lengths so that they can be padded with default data if the actual content does not use the entire space provided.

[0019] The hash value may be determined according to a secure hash algorithm, for example SHA-256, SHA-512, or the SHAKE hash function, but other hash functions for calculating cryptographic hash values ​​at least 128 bits wide may also be used, including the Davis-Meyer hash operation in combination with AES-128, for example a hash operation based on a special operation mode of a symmetric block cipher or a stream cipher.

[0020] If the data structure contains the actual hash value, then all the information necessary for verification or migration is contained in the message.

[0021] However, if a reference to a hash value and the actual hash value are provided in the data structure, the data structure rather provides the correct path through the Merkle tree. The hash values ​​that are only referenced in the data structure may need to be obtained from other sources or may be determined based on data that is known to the verifying entity. In this way, the data structures respectively provide some information or a representation of information currently available in the product, and otherwise provide information indicating which data is further required for verification. This data may be obtained from entities related to the other lifecycle stages. This information may be provided through relatively insecure channels, since the required information does not include the actual sensitive data, only its hash. The validity of the complementary data may always be verified against a first level hash that may be stored in and provided by the product, itself considered a trusted source. An embodiment of the invention using this type of content in the data structure provides an additional level of security, which may involve further communication and may involve additional authentication checks, since the missing information needs to be provided by various different entities authorized for the other lifecycle stages.

[0022] To transition from one lifecycle stage to the next, e.g., from a lifecycle stage with index 1 to a next lifecycle stage with index 2, e.g., from OEM customer delivery stage to OEM production stage, sensitive data stored in the component for delivery and testing by the OEM may need to be replaced by data required for integration into the OEM product. Such a replacement typically occurs with the transition of lifecycle stages. Furthermore, as mentioned above, it is preferable that the product cannot be reverted to a previous lifecycle stage. Since the memory of the product typically cannot and does not need to permanently store all kinds of data that may be used throughout the different lifecycle stages, but rather stores only the data required for the current lifecycle stage, ideally some evidence must be provided to show that the product is or has been in a particular lifecycle stage, in a way that is tamper-safe and does not reveal any information that can be used to reverse engineer the data. This evidence may be provided by the product itself using data structures, thereby eliminating the need to keep records in some place external to the product.

[0023] It is well known that a special type of hash function belonging to the group of cryptographic hash functions can generate a unique and unambiguous representation of large amounts of data, which representation occupies a relatively small memory space and does not allow to identify or determine the data on which it is based. Thus, by keeping only small sized hash values ​​of lifecycle stage data in the memory of a product, it is possible to use the majority of the memory for data related to the current lifecycle stage, while keeping unique and unambiguous evidence that sensitive data from a previous lifecycle stage was previously stored in the product, and ultimately to show that the product was at that lifecycle stage.

[0024] Such cryptographic hash values ​​can be computed with relatively little effort, but it is deemed impossible to reconstruct the underlying data from the hash value, which is why such special hash functions are deemed resistant to quantum computer-based attacks.

[0025] In a second aspect of the invention, a method for validating a current lifecycle stage of a product at a requesting entity, e.g. before transitioning to a next lifecycle stage, comprises sending a request to the product to provide the current lifecycle stage. The method further comprises receiving from the product the current lifecycle stage and a lifecycle certificate implementing a data structure according to the invention, reconstructing a path through the Merkle tree based on the first level, second level and third level hash values ​​or references thereof provided in the lifecycle certificate, determining a corresponding lifecycle stage index, and verifying whether the provided received lifecycle stage index matches the determined lifecycle stage index. If the received lifecycle index matches the lifecycle index determined from other information provided in the lifecycle certificate, the current lifecycle stage is verified.

[0026] A requesting entity in this context may be any device that is at least temporarily communicatively connected to the product. The communication connection may be wired or wireless and may use any suitable communication protocol. Similarly, communication between the requesting entity and the product may be direct or via an intermediate communication node.

[0027] The life cycle stage index and life cycle certificate may be retrieved from the product's memory or may be generated on demand based on data stored in the product's memory, in which case the life cycle certificate may have been previously generated and stored.

[0028] If the requesting entity is an entity associated with the current lifecycle stage, all information provided in the lifecycle certificate, except the index field of the current lifecycle stage and the third level hash value, may be used to determine the control hash value. The index is replaced with the index received upon request, and the third level hash value associated with the current lifecycle stage provided in the received lifecycle certificate is replaced with a hash value of sensitive data that the requesting entity knows should be stored in the product, where the hash value of the known sensitive data is determined by the requesting entity. If the control hashes provided in the lifecycle certificate and the control hashes determined by the requesting entity match, i.e., are equal, the lifecycle stage reported by the product is valid. Otherwise, the reported lifecycle stage is invalid and the product may not be usable at the current lifecycle stage or may be defective and may need to be discarded.

[0029] Thus, if the requesting entity is an entity associated with the next lifecycle stage, it may use all of the information provided in the lifecycle certificate except the index field of the next lifecycle stage and the third level hash value to determine the control hash value. The index is replaced with the index received upon request, and the third level hash value associated with the next lifecycle stage provided in the received lifecycle certificate is replaced with the hash value of the sensitive data that the requesting entity knows will or should be stored in the product in the next lifecycle stage. If the control hash provided in the lifecycle certificate and the control hash determined by the requesting entity match, the lifecycle stage reported by the product is valid. If not, the reported lifecycle stage is invalid and the product may not be able to move to the next lifecycle stage or may be defective and may need to be scrapped.

[0030] Because only hash values ​​or information known to each requesting entity is used, the information provided in the data structure allows the current lifecycle stage to be securely verified without having to reveal or have knowledge of sensitive data of other lifecycle stages.

[0031] Alternatively, it may be sufficient for the requesting entity to use all of the data from the received lifecycle certificate, except for the lifecycle stage that is replaced with the lifecycle stage received in response to the request, to determine a control hash, and then compare the control hash with the lifecycle stage from the received lifecycle certificate, thereby revealing any tampering with malicious software or a man-in-the-middle sending a lifecycle stage and appending it to the certificate received from the product.

[0032] According to a third aspect of the invention, a method for transitioning a product from a current lifecycle stage to a next lifecycle stage includes receiving a request from a requesting entity at the product to provide a current lifecycle stage, In response to the request, the product provides to the requesting entity its current lifecycle stage as well as a lifecycle certificate implementing a data structure according to the first aspect of the invention.

[0033] As mentioned above, the lifecycle stages and data structures may be retrieved from the memory of the product or may be generated on demand based on data stored in the memory of the product. In the former case, the data structures have been previously generated and stored. If the lifecycle certificate contains any actual third level hash values ​​other than the current lifecycle stage, then at least all third level hash values ​​except the current lifecycle stage need to be stored in the product, thereby making it possible to determine the second and first level hash values ​​at the product. However, it is also possible to store all hash values ​​in the component or product. If the lifecycle certificate contains references to various hash values, then only the appropriate reference values ​​need to be stored in the product.

[0034] The requesting entity may use the provided information to verify the lifecycle stage before continuing with the transition, for example as described above with reference to the method according to the second aspect of the invention.

[0035] The method further includes receiving a request in the product to transition to a target lifecycle stage (typically a lifecycle stage having a higher index than the current lifecycle stage). The product verifies whether the target lifecycle stage received in the request is higher than the current lifecycle stage. In the affirmative, i.e., if the target lifecycle stage is higher than the current lifecycle stage, the current lifecycle certificate or information on how to configure or generate the current lifecycle certificate is deleted and an index counter representing the current lifecycle stage is incremented to an index corresponding to the target lifecycle stage.

[0036] The index counter may preferably be provided in a protected memory area that cannot be easily accessed through the communications interface. The protected memory may include OTP memory, i.e., memory whose contents can be written only once. Similarly, the computer program instructions for incrementing the index counter are preferably stored in and executed from a protected memory area to prevent tampering.

[0037] Before or after incrementing the index counter, new sensitive data for the target lifecycle stage may be stored in the component's memory. Additionally, information for generating a lifecycle certificate for the new lifecycle stage, i.e., the path through the Merkle tree on which the lifecycle certificate is based, is determined and a new lifecycle certificate is generated. The new lifecycle certificate and the new current lifecycle stage index are then provided to the requesting entity.

[0038] If the target lifecycle stage is not higher than the current lifecycle stage, the request is ignored.

[0039] In one or more embodiments of the method, the requesting entity can verify whether the migration is successful by determining a life cycle certificate for the target life cycle stage based on data from the life cycle certificate received before requesting the migration, the index of the target life cycle stage, and the sensitive data of the target life cycle stage sent to the product, and comparing the life cycle certificate received from the product after the migration with the one determined previously. If the two life cycle certificates are identical, the migration is successfully completed. It may be sufficient to compare the control hashes of the life cycle certificates, which can at least reduce the amount of processing required for the comparison. In this way, the requesting entity uses information provided by the product regarding the life cycle stage before the request for migration, as well as information about the target life cycle stage known at the requesting entity, to predict the expected life cycle certificate after a successful migration. The requesting entity can store the received life cycle certificate in association with the product for later use.

[0040] According to a fourth aspect of the invention, a method for verifying the validity of a life cycle certificate of a product includes receiving, in a component, a request to verify a life cycle certificate from a requesting entity. The request may include the life cycle certificate to be verified or the life cycle certificate may be received in a separate transmission after validating the request. The life cycle certificate to be verified is typically for the assumed current life cycle stage of the product. The product verifies whether the life cycle stage index of the life cycle certificate to be verified matches the current value of the life cycle stage index present in an index counter of the product. If the result of the verification is positive, the product compares the life cycle certificate with one stored in the memory of the device or one determined from information stored in the memory of the product according to information for generating a life cycle certificate stored in the product. If the two life cycle certificates match, e.g. are identical, the product responds with a message indicating that the life cycle certificate received for verification is valid. Otherwise, if either the index does not match the value of the index counter or the life cycle certificates are not equal, the product responds with a message indicating that the transmitted life cycle certificate is no longer valid. A life cycle certificate that is no longer valid may be revoked.

[0041] In one or more embodiments of the method according to the invention, the requesting entity may be required to go through an authentication and / or authorization process before the product will accept the request. If authentication or authorization fails, the request is ignored. To prevent brute force attacks on authentication or authorization, commonly known mechanisms may be employed, such as increasing the delay between attempts and / or the maximum number of allowed failed attempts for each user.

[0042] The computer program product comprises computer program instructions which, when executed by a computer, cause the computer to perform one of the methods according to the aspects of the invention presented herein.

[0043] The computer program product may be stored on a computer-readable medium or data carrier. The medium or data carrier may be physically embodied in the form of, for example, a hard disk, a solid-state disk, a flash memory device, etc. However, the medium or data carrier may also comprise a modulated electromagnetic, electrical or optical signal that is received by a computer using a corresponding receiver and transferred to and stored in the computer's memory.

[0044] Because the trusted source of the first level hash value is the product itself, the data structure and the method of using the data structure do not rely on an external key infrastructure, reducing possible attack vectors. Additionally, the data structure allows for local validation of lifecycle certificates without the need to access a remote database.

[0045] The invention will now be described with reference to the following drawings, in which: [Brief description of the drawings]

[0046] [Figure 1] FIG. 2 illustrates an exemplary Merkle tree on which a data structure in accordance with the present invention is constructed. [Diagram 2] FIG. 2 illustrates an exemplary life cycle certificate implementing a data structure in accordance with the present invention. [Diagram 3] FIG. 2 illustrates a data structure according to the present invention with information that needs to be provided by a requesting entity to effectively transition from life cycle index 1 to life cycle index 2. [Figure 4] FIG. 1 illustrates an example flow diagram of a method for validating a current lifecycle stage of a product. [Diagram 5] FIG. 1 illustrates an example flow diagram of a method for safely transitioning a product's current lifecycle stage to a target lifecycle stage in a forward-only manner. [Figure 6]FIG. 6 is an exemplary message flow diagram between a requesting entity and a product as it transitions through life cycle stages according to the method described with reference to FIG. 5. [Figure 7] FIG. 2 is an exemplary flow diagram of a method for verifying the validity of a lifecycle certificate implementing a data structure in accordance with the present invention. [Figure 8] FIG. 8 is an exemplary message flow diagram between a requesting entity and a product when validating a lifecycle certificate according to the method described with reference to FIG. 7. [Figure 9] FIG. 2 is an exemplary block diagram of a product adapted to perform the product-side steps of the methods previously presented herein.

[0047] In the drawings, identical or similar elements may be labeled with the same reference value designators. DETAILED DESCRIPTION OF THE PREFERRED EMBODIMENTS

[0048] 1 and 2 have been further described above and will not be described in detail again.

[0049] 3 shows a data structure according to the invention with information that needs to be provided by the requesting entity to effectively transition from life cycle index 1 to life cycle index 2. Information that needs to be provided is shown in text boxes with a solid outline, and information that does not need to be provided is represented by text boxes with a dashed line. Data D0...D5, which may represent signatures or other sensitive data on which their hash values ​​are based that do not belong to the next life cycle index, do not need to be provided by the requesting entity or even known to it.

[0050] In this example, the requesting entity is an entity associated with life cycle index 2. It may have received a product from a supplier associated with life cycle index 1, where it is ready to store its confidential data in the product to trigger a transition to life cycle index 2. For example, to ensure that the product is at the correct life cycle index, or at least at a lower life cycle index than the target life cycle index, the requesting entity may first send a request to the product, asking for the product's current life cycle index. The product responds by sending the requested information along with a life cycle certificate for its current life cycle stage. From the received life cycle index and life cycle certificate, the requesting entity can determine what information it has to provide to the product in the next step.

[0051] The first level hash H is provided in the lifecycle certificate. However, the second level hashes H0, H1, H2 must be known in order to be able to compute the first level hash H. They may be provided in the lifecycle certificate or obtained through other channels, as they do not give any information about the sensitive data they represent. The validity of the second level hashes may be verified by concatenating them together, hashing them, and comparing the result to the first level hash provided in the lifecycle certificate. A source providing second level hashes that are successfully verified may be considered a trusted source.

[0052] Here, the requesting entity sends a request to transition the life cycle index to a target life cycle index.

[0053] The request may include the third level hash value H1-1, and the second level hash values ​​H0 and H2, along with the sensitive data associated with the target lifecycle index, or its hash value. The hash value H1-1 may be provided to the requesting entity by an authorized entity for subsequent lifecycle stages. Because it does not give any information about the underlying data, the sensitive data from other authorized entities remains secret.

[0054] The data received in the request allows the product to verify that the requesting entity is indeed authorized to initiate the transition to a higher lifecycle index. To do so, the product determines a third level hash value H1-0 from the received sensitive data or uses the hash value provided in the request, determines a second level hash value H1 from the received or previously determined third level hash value H1-0 and the third level hash value H1-1 received in the request, and determines a first level hash value H from the previously determined second level hash value H1 and the second level hash values ​​H0 and H2 received in the request. The first level hash value H thus determined is compared to the first level hash value stored in the product. If both hash values ​​match, the request is valid and can be executed.

[0055] FIG. 4 shows an exemplary flow diagram of a method 200 for validating a current life cycle stage of a component. The method includes, in step 202, sending a request to a product, asking it to provide its current life cycle stage, and in step 204, receiving the current life cycle stage and a life cycle certificate, as described with reference to FIG. 2. The requesting entity then verifies whether the life cycle stage index included in the received life cycle certificate matches the one provided in response to the request. If yes, the reported life cycle stage is verified, otherwise the product may be defective and may need to be discarded. In the figure, this includes, in step 206, reconstructing a path through the Merkle tree and determining the corresponding life cycle stage index, and in step 208, verifying whether the received life cycle stage index matches the determined life cycle stage index.

[0056] 5 illustrates an example flow diagram of a method 300 for safely transitioning a product's current lifecycle stage to a target lifecycle stage in a forward-only manner. In step 302, the product receives a current lifecycle stage index (i c In response to the request, the product receives a request to provide its current life cycle stage index (i c ) and a life cycle certificate. The requesting entity may verify the information provided in the received data, for example as described with reference to FIG. 4. Next, in step 306, the product receives a request to transition to the target life cycle stage. The product then receives, in step 308, the target life cycle stage index (i t ) is the current life cycle stage index (i c ) is higher than the target life cycle index (i t ) to the current life cycle stage index (ic ), in step 312, new sensitive data that replaces the sensitive data associated with the previous lifecycle stage index is stored in the product, and in step 314, a third level hash value is generated that represents the new sensitive data and is stored at least temporarily. In step 316, the product determines the information for generating a new lifecycle certificate, i.e., the path through the Merkle tree on which the data structure is based, and generates a new lifecycle certificate. In step 318, the product stores the new now current lifecycle stage index (i c ) and the new life cycle certificate to the requesting entity. t ) is the current life cycle stage index (i c ), the request is ignored on the “no” branch of step 308 and proceeds to step 320 .

[0057] The requesting entity may determine a life cycle certificate in step 322 based on the life cycle stage index and life cycle certificate received in response to the initial request and the sensitive data sent to the target life cycle stage and product, and compare the previously determined life cycle certificate with the life cycle certificate received from the product after the migration in step 324. If the life cycle certificates are identical, the migration has been successfully completed. However, other ways of verifying that the update was successful are also possible, for example by checking whether a hash value of the transmitted sensitive data matches a hash value determined at the requesting entity and reported in the life cycle certificate, and / or whether the path through the data structures transmitted in the life cycle certificate is correct.

[0058] Figure 6 shows an exemplary message flow diagram between a requesting entity RE and a product P when moving through lifecycle stages according to the method described with reference to figure 5. Before performing the actual steps of the method, authentication and authorization may be performed, or more generally an access control scheme 500 may be performed, which may involve sending a challenge and receiving a response. If access is denied, the product P will reject any request. The access control scheme may be optional and is shown in dashed lines only as an example.

[0059] As mentioned above, a request is sent to the product P providing its current life cycle stage index, and the product P responds by providing its current life cycle stage index as well as its current life cycle certificate. The requesting entity RE then sends a request to the product P to perform steps 306-316 or 320 and further transition to the target life cycle stage, providing the requesting entity RE with a new current life cycle stage index and a new life cycle certificate. The requesting entity RE can then perform steps 322 and 324 to check whether the transition was successful.

[0060] 7 shows an exemplary flow diagram of a method 400 for verifying the validity of a life cycle certificate implementing a data structure according to the present invention. In step 402, the product P receives a request from the requesting entity RE to verify the life cycle certificate. If no life cycle certificate to be verified was received with the request, the request is received from the requesting entity RE in another step 404. In step 406, the product P compares the life cycle stage index included in the received life cycle certificate with the current life cycle stage index of the product P, as indicated by a life cycle stage index counter provided in the product P. If the life cycle stage indexes are equal, in the "yes" branch of step 406, the product P compares in step 408 the received life cycle certificate with a life cycle certificate retrieved from the memory of the product P or a life cycle certificate generated by the product P based on information stored in the memory of the product P. If the life cycle certificates are equal, in the "yes" branch of step 408, the product P responds to the requesting entity RE that the life cycle certificate is valid. If this is not the case, ie, if the life cycle stage indexes or the life cycle certificates are not identical, the product P responds to the requesting entity RE that the life cycle certificate is invalid.

[0061] Figure 8 shows an exemplary message flow diagram between a requesting entity RE and a product P when validating a lifecycle certificate according to the method 400 described with reference to Figure 7. Before performing the actual steps of the method, authentication and authorization may be performed, or more generally, an access control scheme 500 may be performed, which may involve sending a challenge and receiving a response. If access is denied, the product P will reject any request. The access control scheme may be optional and is shown by dashed lines only as an example.

[0062] As mentioned above, the requesting entity RE sends a request to the product P to validate the lifecycle certificate. If the lifecycle certificate to be validated was not received with the request, the request is sent in a separate message, for example after a confirmation signal from the product P. The product performs steps 406-408 of the method 400 and responds with either a valid or invalid lifecycle certificate.

[0063] 9 shows an exemplary block diagram of a product P adapted to perform the product-side steps of the methods 300 and / or 400 previously presented herein. The product P comprises a microprocessor 602, a volatile memory 604, a non-volatile memory 606 and a communication interface 608 communicatively connected via at least one data connection or bus 610. The product P further comprises a secure memory area 616a for tamper-proof storing a life cycle stage index counter value and, optionally, computer program instructions for tamper-proof incrementing the life cycle stage index counter. The non-volatile memory 606 stores computer program instructions that, when executed by the microprocessor 602, cause the product P to perform the product-side steps of the methods 300 and / or 400 of the invention presented above. [Explanation of symbols]

[0064] 100 Data Structures H is the first level hash value H0, H1, H2 Second level hash values H0-0, H0-1, H1-0, H1-1, H2-0, H2-1 3rd level hash value CTRL Control hash value P product RE Requesting Entity i Life Cycle Stage Index 200 ways Sending a 202 request 204 Current Lifecycle Stage and Certificate Receipt 206 Reconstructing a Path Through a Merkle Tree 208 Verification 300 ways Receiving a 302 request 304 Current life cycle stage and certification provided 306 Received a request to migrate 308 Validation of Goal Lifecycle Stages 310 Setting the life cycle stages 312 New confidential data storage 314 Third level hash value generation 316 Passing Decision 318 Providing Life Cycle Index and Certificate 320 Request Ignored 322 Life Cycle Certificate Decision 324 Comparison of received and determined life cycle certificates 400 ways 402 Validating Request Received 404 Receiving Lifecycle Certificate for Validation 406 Comparing the received life cycle index with the life cycle index stored in the product 408 Comparing the received life cycle certificate with the product life cycle certificate 410 "Valid" Response 412 "Invalid" Response 602 Microprocessor 604 Volatile Memory 606 Non-volatile memory 606a Secure Memory Area 608 Communication Interface 610 Data Line / Bus

Claims

1. A Merkle tree-based data structure (100) that allows for validating a current lifecycle stage and safely transitioning a product (P) from one lifecycle stage to the next in a forward-only manner, comprising: a life cycle stage index (i); and a first level hash value (H) or a reference to said first level hash value (H); at least one second level hash value (H0, H1, H2) or a reference to said at least one second level hash value (H0, H1, H2); A third level hash value (#(D) representing a hash of the corresponding sensitive data associated with each value of the lifecycle index (i). 0 ), # (D 1 ), # (D 2 ), # (D 3 ), # (D 4 ), # (D 5 )), and a further third level hash value (#(D 0 ), # (D 1 ), # (D 2 ), # (D 3 ), # (D 4 ), # (D 5 )) or corresponding reference values ​​for the latter (H0-0, H0-1, H1-0, H1-1, H2-0, H2-1), The index field (i), the first level hash value (H) or the reference value thereof, the at least one second level hash value (H0, H1, H2) or the reference value thereof, and the third level hash value (#(D 0 ), # (D 1 ), # (D 2 ), # (D 3 ), # (D 4 ), # (D 5 )) and a further third level hash value (#(D 0 ), # (D 1 ), # (D 2 ), # (D 3 ), # (D 4 ), # (D 5 ) or a hash value of the concatenation of said reference values ​​(H0-0, H0-1, H1-0, H1-1, H2-0, H2-1), A data structure (100).

2. 2. The data structure (100) of claim 1, wherein the hash value is determined according to a cryptographic hash function, including SHA-256, SHA-512, or SHAKE hash function, or a special operation mode of a symmetric block or stream cipher for computing a cryptographic hash value, preferably at least 128 bits wide.

3. A method (200) for validating a current lifecycle stage of a product (P) at a requesting entity (RE), comprising: Sending (202) a request for provision of a current life cycle stage of said product (P); receiving (204) from said product (P) said current life cycle stage and a life cycle certificate implementing a data structure (100) according to claim 1 or 2; reconstructing (206) a path through the Merkle tree based on the first level, second level, and third level hash values ​​or references thereof provided in the data structure and determining the corresponding life cycle stage index; verifying (208) whether the received life cycle index is equal to the determined life cycle index, where if the received and determined life cycle indexes are equal, the life cycle stage is verified; The method (200).

4. A method (300) for safely transitioning a product (P) through a life cycle stage to a target life cycle stage in a forward-only manner, comprising: a) The current life cycle stage index (i c receiving 302 a request to provide b) providing the requesting entity (RE) with a current lifecycle stage index (i c ) and providing (304) a life cycle certificate implementing the data structure (100) according to claim 1 or 2; c) receiving (306) a request to transition the product (P) to a target lifecycle stage; d) the life cycle stage index of said goal (i t ) is the current life cycle stage index (i c ) (308); and Including, The life cycle stage index (i t ) is the current life cycle stage index (i c ), the method (300) e) the life cycle index (i) of the target received in the request t ) as the current life cycle stage index (ic) (310); f) storing (312) new sensitive data in said product (P) replacing said sensitive data associated with said previous lifecycle stage index; g) generating (314) and at least temporarily storing a third level hash value representative of the new sensitive data; h) determining (316) information for generating a new life cycle certificate implementing the data structure (100) according to claim 1 or 2, and generating said new life cycle certificate; i) the current life cycle stage index (i c providing (318) the new life cycle certificate generated in step h) to the requesting entity (RE); Including, or the life cycle stage index (i t ) is the current life cycle stage index (i c ), the method (300) i) ignoring the request (320); The method (300).

5. k) determining (322) in the requesting entity (RE) a life cycle certificate from the target life cycle stage and the confidential data sent to the product (P) based on the life cycle stage index and the life cycle certificate provided in step b); l) comparing (324) the life cycle certificate determined in step j) with the life cycle certificate provided by the product (P) in step h); Further comprising: If the determined life cycle certificate and the provided life cycle certificate are identical, the transition is completed successfully.

5. The method of claim 4 (300).

6. A method (400) for verifying the validity of a life cycle certificate of a product implementing a data structure according to claim 1 or 2, comprising the steps of: Receiving (402) a request to validate a lifecycle certificate from a requesting entity (RE) and at the product (P); receiving (404) a lifecycle certificate to be validated from the requesting entity (RE) and at the product (P), if the lifecycle certificate to be validated was not received with the request; comparing (406) the life cycle stage index contained in the received life cycle certificate with the current life cycle stage index of the product (P); If the life cycle stage indices are equal, comparing (408) at the product (P) the received life cycle certificate with a life cycle certificate obtained from a memory of the product (P) or generated by the product (P) based on information stored in a memory of the product (P); If the life cycle certificates are the same, Responding (410) to the requesting entity (RE) that the lifecycle certificate is valid; or If the life cycle stage indexes are not equal or the life cycle certificates are not identical, Responding to the requesting entity (RE) that the lifecycle certificate is invalid (412); The method (400).

7. A method (200, 300, 400) according to any one of claims 3 to 6, comprising - implementing an access control scheme for authentication and / or authorization between said requesting entity (RE) and said product (P); Upon successful authentication and / or authorization, accepting the request in said product (P), or Denying the request; and The method (200, 300, 400) further comprises:

8. A product (P) comprising a microprocessor (602), a volatile memory (604) and a non-volatile memory (606), and a communication interface (608), communicatively connected via one or more data lines and / or buses (610), further comprising a secure memory area (606a) for storing a life cycle stage index counter value, the non-volatile memory (606) storing computer program instructions which, when executed by the microprocessor (602), configure the product (P) to perform steps of the method of any one of claims 4, 6 or 7.

9. A computer program product comprising computer program instructions which, when executed by a computer, cause the computer to carry out the method according to any one of claims 3 to 7.

10. 10. A computer readable medium retrievably storing the computer program product of claim 9.

Citation Information

Patent Citations

  • Event certificate for electronic device

    JP2018121328A

  • Apparatus and method for making certificate data digitally available, and program therefor

    JP2021097392A

  • Method and system for tracking food safety data using hash trees

    JP2021518600A

  • Device authentication

    US20200274706A1