A lifecycle-bound secure chip device and firmware identity activation method

By employing a hierarchical identity recording and lifecycle generation constraint activation method in secure chip devices, the problem of inconsistency between identity binding and lifecycle state is solved, achieving integrity and consistency management of the identity activation process and ensuring the reliability of identity validity and lifecycle state.

CN123179418APending Publication Date: 2026-11-27SHANGHAI LONGJUN SEMICONDUCTOR CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202611491888.2
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2026-09-23
Publication Date
2026-11-27

AI Technical Summary

Technical Problem

In secure chip devices, the lack of a verifiable hierarchical relationship between chip instance identifiers, device configuration records, and firmware version records leads to a lack of common submission conditions for identity validity and lifecycle changes. There is inconsistency between the activation verification and activation result publication, and power failure may result in the non-persistence of identity writing and valid marking. Existing technologies cannot effectively manage the association between identity binding and lifecycle state.

Method used

An activation method that employs hierarchical identity records and lifecycle generation constraints is adopted. The device configuration version and firmware version are bound by the chip root identity reference. The measurement values ​​of the external measurement module are combined with the lifecycle state and startup generation to ensure the validity and consistency of identity activation. A state coordinator is used to coordinate lifecycle migration and identity validity query to ensure the integrity and durability of the identity activation process.

Benefits of technology

It enables effective management of identity binding and lifecycle status in secure chip devices, ensuring the integrity and consistency of the identity activation process, avoiding identity invalidation due to power failure or malfunction, and providing a reliable identity validity query and management mechanism.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN123179418A_ABST
    Figure CN123179418A_ABST
Patent Text Reader

Abstract

The present invention relates to secure chip identity activation. Hierarchical bindings of chip root references, device configurations, and firmware measurements are established to co-limit activation records by identity, lifetime, and boot epoch. Dual-slot records must still satisfy current epoch and output gate conditions after write completion barriers, readback checks, and commit markers are persisted. Lifetime migration closes the output gate before advancing the epoch, even if both the old and new states allow valid identities. Suspended records are not persisted when the output gate is asynchronously closed due to a fault, so queries still return invalid until the audit is available. Reset only restores complete bindings, and the current boot is re-measured and activated before the gate is allowed to open.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This invention relates to identity management for security chips and security modules, specifically to a method and apparatus for binding, activating, suspending, updating, and revoking identities by constraining chip instances, device configurations, and firmware metrics based on chip lifecycle states. The identity management outputs whether an identity is valid and its references, without determining the generation, use, or destruction permissions of key objects within the identity management module. Background Technology

[0002] In devices containing security chips, chip instance identifiers, device configuration records, and firmware version records can be stored separately. If an identity is deemed valid based solely on the existence of one of these records, the device configuration might be copied to another chip instance, the old firmware identity might continue to be used after a firmware update, or the previously valid identity might revert even after entering a maintenance or fault state. This issue stems from the lack of a verifiable hierarchical relationship between the multiple records and the lack of a common commit condition between identity validity and lifecycle changes.

[0003] Another type of problem arises between activation verification and activation result publication: the lifecycle state on which the verification is based may have changed; power failure may also result in a new identity being written but the validity tag not being written, or an identity being replaced but the revocation information not being persisted. Simply adding a single identity validity bit cannot express which round of device configuration, lifecycle state, or system startup the identity corresponds to. Therefore, it is necessary to clearly define the binding fields of the identity record, the allowed state transitions, the validity determination time, and the interruption recovery rules. Summary of the Invention

[0004] This invention provides an activation method constrained by hierarchical identity records and lifecycle generations. A chip root identity reference determines the local chip instance; the device identity is bound to the device configuration version and digest on this reference; the firmware identity is bound to the device identity to the firmware version and metric value provided by an external metric module. Root identity secret material is kept within a protected boundary. The identity control module obtains the root identity reference and source verification result through a protected interface, and does not accept plaintext secret material.

[0005] Lifecycle status is represented by a status value and a monotonically advancing lifecycle generation, which is advanced with each lifecycle migration, including migrations between two states where identity validity is allowed. The startup process advances the startup generation after a reset. Device configuration or firmware binding updates distinguish old and new records by the added identity generation. Activation submits a combination of identity generation, lifecycle generation, startup generation, and binding summary, rather than simply writing an activated status value. The validity interface compares this combination with the current combination within a controlled query period. After a lifecycle or startup generation change, the old activation record becomes invalid until a new activation is submitted under the current conditions.

[0006] Identity activation submission, lifecycle state publication, and identity validity query share a state coordinator, forming a verifiable processing order. Lifecycle migration first closes the identity validity output gate, then advances the lifecycle generation, and finally publishes the new state. After the activation record is written to the inactive storage slot, the storage completion barrier, readback integrity check, writing of the commit flag with the verification field, and the storage completion barrier are executed sequentially. The validity view is only updated after the commit flag becomes persistent. A full submission itself does not overwrite concurrent failure shutdown, nor does it constitute an instruction to unconditionally open the output gate. Queries are determined jointly by the current active record, the undo record, the output gate, and the lifecycle snapshot. Power-off recovery only rebuilds the binding of the full submission and keeps the output closed; it does not equate the recovered record with the currently active valid identity. Undo retains the persistent termination record, and suspends the binding but closes the validity. Failure shutdown does not wait for the identity suspension record to become persistent: after the output gate is closed, even if the record is still pending writing, the current query returns invalid; even if the state before and after the migration allows identity validity, the lifecycle generation change still invalidates the old activation. Audit unavailability does not prevent failure or undo gate closure, nor does it constitute a reason for restoring validity. Attached Figure Description

[0007] Figure 1 A schematic diagram illustrating the structure for coordinating hierarchical identity records, external measurement results, and lifecycle status.

[0008] Figure 2 This is a flowchart illustrating the dual-slot submission and power-off recovery process for identity changes. Each module in the diagram represents a function and data relationship. Specifically, 301 represents writing to an inactive slot; 302 represents readback verification; 303 represents writing the commit flag; 304 represents publishing the effective record; 305 represents resetting and closing output; 306 represents restoring a complete commit; and 307 represents reactivating the current startup. Detailed Implementation

[0009] In one implementation, the identity control module can be set in the protected processing domain within the security chip. The protected interface provides the chip root identity reference, firmware measurement results, and lifecycle status, and controls the identity validity according to the following record format and processing rules.

[0010] I. Modules and Input / Output. The device includes a protected root identity interface 101, a device and firmware identity recording module 102, an external measurement interface 103, a lifecycle status interface 104, a status coordinator 105, a commit and recovery module 106, and a validity output interface 107. The management caller submits a request after authentication by the upstream management channel; the identity module receives the caller reference and authentication result provided by the channel, and does not use the self-filled subject fields in the request body as the basis for authentication. The authentication protocol of the management channel itself is not discussed in this embodiment. The output includes a transaction identifier, success or rejection code, effective identity reference, and identity status.

[0011] II. Root and Hierarchical Records. The root record R contains schema_version, chip_instance_id, root_record_version, and root_record_digest. The protected root interface provides the native instance identifier and root record verification result. The device record D contains device_record_id, a reference to R, config_version, config_digest, and firmware_allowlist_version. The firmware record F contains firmware_record_id, a digest of D, firmware_version, measurement_algorithm_id, and measurement_digest. All digest calculations use a predetermined field order and length prefix encoding; for example, the type flag and number of fields are encoded first, followed by the field number, byte length, and field value. Different layers use different type flags; directly concatenating strings to form digest input is prohibited.

[0012] The configuration summary in the device record is generated by the configuration source module according to a fixed serialization specification. The identity module verifies the configuration source, record summary, and local root reference; it does not trust a chip number simply because the device configuration contains one. The allowed firmware manifest is a versioned record confirmed by the management channel, each entry containing at least the device record's scope, firmware version, measurement algorithm, and allowed summary. When firmware not in the manifest is received, `FIRMWARE_NOT_ALLOWED` is output. The creation and modification of the manifest are authorized by the management channel; this document does not specify how external firmware images are segmented for measurement, how they are started, or how image rollback prevention is performed.

[0013] III. External Measurement Results. The activation control module saves the transaction identifier, current boot generation, and new challenge value for each activation, and requests results from the external measurement module. The return value M includes source_id, chip_instance_id, boot_epoch, challenge, firmware_version, measurement_algorithm_id, measurement_digest, and integrity credentials. Integrity credentials are verified by the protected interface according to predefined measurement source trust relationships. The activation module checks the source permission, credential validity, local instance, current boot generation, current challenge, and allowed firmware list item by item. This interface stipulates that the external module is responsible for the measurement object and the returned results; this case only defines result reception and binding verification, and does not generate or guess firmware measurement values.

[0014] IV. Lifecycle States. Nine states—RESET, INITIALIZING, OPERATIONAL, SECURE_OPERATION, MAINTENANCE, DEBUG, FAULT, DEGRADED, and LOCKED—are used as an implementation option, representing reset, initialization, operation, secure operation, maintenance, debugging, fault, degradation, and lockout, respectively. The identity control module reads the legal states determined by the upstream state controller and does not rewrite the upstream lifecycle migration algorithm. Initialization and maintenance allow preparation of binding records; operation and secure operation allow activation and output of valid identities; other states do not output valid identities. Out-of-table requests are rejected by default. Even when transitioning from operation to secure operation, both allow valid identities, and the lifecycle generation continues. The original activated record must be re-verified and submitted to the current generation before it can remain valid.

[0015] V. Identity Status Table. Records awaiting binding become bound after checks by the root, configuration, and metric sources. Bound records become activated after completing activation verification within the allowed activation lifecycle state. Activated records lose validity and become suspended upon receiving a suspension request or detecting a state change. Suspended records can only be reactivated if the binding is not revoked, the current configuration and metric are rematched, and the state allows. Before a device or firmware update creates a new bound candidate to replace the old record, the old record remains suspended. Bound, activated, and suspended records can all be revoked through controlled revocation; revocation is the final state of the identity record. Reconfiguration must establish a different record identifier and a higher identity level; it cannot clear the revocation mark of the old record.

[0016] VI. Activation Processing. Step S201: Receive the request and verify the length, field type, management channel source, and request identifier. Step S202: Read the root record, device record, firmware record, and lifecycle snapshot. Step S203: Obtain and verify the external metric results of the current transaction. Step S204: Check the hierarchical summary and state table; if it fails, return a definite failure dimension. Step S205: Enter the controlled area of ​​the state coordinator, reread the lifecycle and startup generation, and verify that the device record, allowed firmware list, and identity generation have not changed; if they have changed, end the transaction and return CONTEXT_CHANGED, allowing the caller to initiate a new activation request. Step S206: Construct a new activation record containing the identity generation, lifecycle generation, startup generation, and binding summary within the controlled area, and complete the persistent commit in the order of storage completion barrier, readback integrity verification, and commit flag. In step S207, after the commit marker becomes persistent, the state coordinator updates the validity view and re-verifies that the identity, lifecycle, and start generation bound to the activated record are consistent with the current values, the current lifecycle belongs to the set of states that allow valid identities, and there are no pending, revoked, or fault-blocked states. Only when all the above conditions are met is the identity validity output gate allowed to open and a valid identity reference returned. If the conditions are not met, the output gate remains closed; the completion of the persistent commit itself does not constitute an unconditional gate opening command. The controlled interval covers S205 to S207, and lifecycle state publication is not allowed after re-verification but before the record becomes effective or the view is updated; when the fault closure condition exists or occurs during this period, the opening operation must not cover the fault closure.

[0017] Lifecycle state publication, S205 through S207, and identity validity queries are coordinated through the same state coordinator. At the start of a lifecycle migration, the validity output gate is closed first, then the lifecycle generation is advanced, and finally the new state is published. Fault inputs can asynchronously close the output gates; fault closure takes precedence over the gate opening decision in S207, and the coordinator must not override concurrent fault closure because an activation record has been fully committed. After processing fault inputs, the coordinator advances the generation and record pending state. During the period when the output gate is closed but the pending record has not been committed, queries still return invalid, and the completion of writing a non-volatile pending record is not a prerequisite for stopping the output of valid identities. Even if concurrent activations complete metric verification earlier, the generation must be compared again within the commit interval; after the lifecycle migration is completed, old activation records are not automatically restored to validity because the new state also allows valid identities; reopening the gate requires a new activation process that satisfies the current conditions of S207. Asynchronous fault closure does not change the results of completed queries at their decision time, nor does it make previously returned valid results a continuing authorization for subsequent use.

[0018] VII. Valid Identity Reference. The reference I returned upon successful activation includes record_id, identity_epoch, binding_digest, lifecycle_epoch, and boot_epoch. When a downstream request verifies I, the output interface, within the query-controlled interval managed by the state coordinator, compares the current active record, revoked record, output gate, and lifecycle snapshot, returning valid, reason, and current_epoch, where current_epoch represents the current identity generation used for this comparison. Valid is true only when the output gate is open, the record is not suspended or revoked, the identity generation and lifecycle in I match the boot generation, and the current lifecycle allows for identity validity. I is not a permanent self-proving credential; downstream users should call the current validity interface, not just cache past valid=true. For callers with controlled usage submissions after a query, their usage submissions and changes in identity and lifecycle must satisfy the interface contract for joint coordination and current validity verification; a single query cannot be interpreted as an indefinite guarantee. This module only establishes, activates, and queries device and firmware identities; it does not determine key operation, communication session, or debugging credential permissions. The authentication of the management caller is still the responsibility of the aforementioned upstream management channel, and this module does not change the device or firmware running identity in the maintenance state to be valid.

[0019] 8. Updates and Undo. Updates are prepared in maintenance mode: the output gate is closed, and the old identity is saved as suspended; candidate devices or firmware bindings are written to inactive slots, and the added identity generation is committed after verification. If an update fails, the candidate is not marked as active; the old binding is retained for diagnostics or for restoration by the administrator. Upon returning to running mode, the new metric results corresponding to the current startup and current inventory must be obtained and the device reactivated. Undo closes the output gate and writes a final record during the commit interval. When repeatedly requesting to revoke the same identity, the existing revoke transaction and status are returned; no activation record is generated based on the repeated request, nor is the revoke history obscured by adding a generation.

[0020] 9. Persistence and Power Loss. Each identity slot records the subject, summary, transaction identifier, identity generation, previous commit generation, and audit events to be output. The commit order is: write the inactive slot subject; execute the storage completion barrier; read back and verify the subject summary; write the commit flag with the validation field; execute the storage completion barrier; update the in-memory active view. A valid commit flag is the point of persistence. The active slot index is only acceleration information; during recovery, the slot content and commit flag must be checked, and validity cannot be determined solely by the index. A non-volatile storage interface that provides tear write detection units and protected commit sequences can be used to prevent incomplete commit flags from being accepted during the recovery process.

[0021] After reset, the output gate is first closed and the protected startup generation is advanced. Then, the two slots and the revocation record are verified. Inactive slots with only the main body and no complete commit marker are ignored. When the new slot marker is complete and the old active index has not been updated, the complete commit slot with the highest preceding association and generation is restored. If there are different digests for the same generation, the preceding chain cannot be interpreted, the startup generation fails to advance, or the revocation record is corrupted, the recovery is restricted and no record is automatically selected for activation. Normal recovery only restores the bound and suspended states. Activation can only be performed after the current startup is remeasured and the lifecycle allows. The output gate can only be opened when the current condition check of S207 for this activation passes and there is no fault-free shutdown blocking. The complete storage slot itself cannot be opened directly.

[0022] 10. Rejection and Auditing. Rejection codes must at least distinguish between SOURCE_INVALID, ROOT_MISMATCH, CONFIG_MISMATCH, FIGRMWARE_NOT_ALLOWED, MEASUREMENT_CONTEXT_MISMATCH, LIFECYCLE_NOT_ALLOWED, CONTEXT_CHANGED, IDENTITY_REVOKED, and STORAGE_UNAVAILABLE. Rejection does not rewrite the effective identity subject; rejection events can be appended, each containing a transaction identifier, identity reference digest, failure dimension, and lifecycle generation. Change events are persistently committed along with the new identity record, and then sent to the auditing interface with the transaction identifier. Duplicate transmissions are deduplicated by the receiver. If auditing is temporarily unavailable, events to be sent are retained; if capacity is insufficient to retain the next change event, new activations or updates are rejected. Undo and failure-closed output gates are executed first, and effective identities are not restored even if auditing is unavailable.

[0023] XI. Examples of Handling Abnormal Inputs and Interruptions. If a device record references another chip instance, it is rejected at the root binding check; if an old boot firmware metric result is received, it is rejected due to a mismatch in boot generation or challenge; if the device enters maintenance mode between activation verification and submission, the submission re-check fails and the output gate remains closed; if power is lost after the slot body is written but before the submission flag is written, the original submitted binding is restored; if power is lost after the full submission flag is written, a new full binding is restored, and reactivation is required in both cases; if a revocation is repeatedly initiated for a revoked identity, the device returns to an existing terminated state, and all old references remain invalid. Under the above processing rules, if the device migrates from the running state to a secure running state that also allows valid identities, the old activation record remains invalid due to a mismatch in lifecycle generation; if a fault has closed the output gate and a suspended record has not yet been submitted due to storage wait, the query still rejects valid identities based on the closed output gate. The aforementioned judgments are based on the current generation and the current output gate, and do not replace the current validity check with historical full submissions.

Claims

1. A method for activating the identity of a lifecycle-bound security chip device and firmware, characterized in that, include: Obtain the chip root identity reference provided by the protected interface of the security chip, establish a device identity record containing the chip root identity reference and device configuration summary, receive firmware measurement results provided by an external measurement module, and establish a firmware identity record containing the device identity reference, firmware version, and firmware measurement value; receive activation requests for the device identity record and firmware identity record, read the current chip lifecycle state, lifecycle generation, and startup generation, verify the hierarchical binding relationship of the records, the correspondence between the firmware measurement results and the current startup and this activation request, and whether the lifecycle state belongs to the set of states that are allowed to be activated; The activation record activation, lifecycle status publication, and identity validity query are coordinated through the same state coordinator. Within the controlled commit interval of the state coordinator, the lifecycle generation, startup generation, device record, allowed firmware list, and identity generation are rechecked to ensure they remain unchanged. The activation record, containing the identity generation, lifecycle generation, startup generation, and binding summary, is written to the inactive storage slot. A storage completion barrier is executed, the record integrity is read back and verified, and a commit flag with a verification field is written after successful verification. The storage completion barrier is then executed again, and the state coordinator updates the validity view after the commit flag becomes persistent, re-verifying the identity bound to the activation record. The generation, lifecycle generation, and startup generation are consistent with the current generation, and the current lifecycle state belongs to the set of states that allow valid identity. The identity validity output gate is allowed to be opened only when the above conditions are met and there are no suspension, cancellation, or fault blocking. The output gate is kept closed when the fault closure condition exists or occurs during the process, and the successful submission does not overwrite the concurrent fault closure. During lifecycle migration, the identity validity output gate is closed first, then the lifecycle generation is advanced, and finally the new lifecycle state is published, so that the old activation record is no longer valid before it is re-verified and submitted to the current generation. The lifecycle migration includes migration between two states that both allow valid identity. The fault input is allowed to asynchronously close the identity validity output gate. During the period when the output gate is closed but the identity suspension record has not been persistently committed, the identity validity query returns an invalid result. After the state coordinator processes the fault input, it advances the lifecycle generation and records the suspension state. After a power failure and reset, the identity validity output gate is closed first, and the startup generation is advanced. Storage slots lacking complete commit markers or with inconsistent record digests are discarded. The binding and suspended states are rebuilt from complete commit slots instead of directly restoring the activated state. The output gate is only allowed to be opened after obtaining the measurement result of the current startup generation and completing the activation verification and commit again. Within the controlled interval of the identity validity query, the current activity record, the revocation record, the identity validity output gate, and the lifecycle snapshot are compared. A valid identity reference is output only when the output gate is open, the effective record is not suspended or revoked, the identity generation, lifecycle generation, and startup generation bound to the record are consistent with the current generation, and the current lifecycle state belongs to the set of states that allow identity validity.

2. The method according to claim 1, characterized in that, The chip root identity reference includes a chip instance identifier, a root record version, and a root record digest. The chip instance identifier is compared with the native identifier read from the protected interface. The device identity digest is calculated by encoding a length field containing a type flag, a chip root identity reference, a device configuration version, and a device configuration digest. The firmware identity digest is calculated by encoding a length field containing a type flag, a device identity digest, a firmware version, and a firmware metric, thereby determining the binding relationship between device identity and chip instance, and between firmware identity and device identity, respectively.

3. The method according to claim 1, characterized in that, The external measurement result includes the measurement result source identifier, chip instance identifier, startup generation, challenge value, firmware version, firmware measurement value, and integrity credentials. The activation control module verifies the integrity credentials through the protected interface, compares the challenge value with the challenge value saved in the current activation transaction, and compares the firmware version and firmware measurement value with the list of allowed firmware associated with the device identity record. Activation is rejected if any comparison is inconsistent.

4. The method according to claim 1, characterized in that, Identity record status includes pending binding, bound, activated, suspended, and revoked; bound records can be created in the initialization or maintenance state, and bound or suspended records can be activated in the running or secure running state; when an identity is transferred from activated to suspended, its binding relationship is not deleted, and revoked records are not transferred back to bound or activated; requests that do not belong to the explicitly allowed migration set retain the effective identity record and generate a rejection record.

5. The method according to claim 1, characterized in that, Audit events pending output generated by identity changes are persistently stored together with effective records. The event is retained when the external audit channel is unavailable. New activation or update is rejected when the storage capacity is insufficient to retain the next change event. The revocation and failure to close the identity validity output gate are executed before the corresponding audit output. The closure of the output gate is not based on the recovery of the audit channel or the successful output of the audit event, and the valid identity is not restored due to audit unavailability.

6. The method according to claim 1, characterized in that, Identity updates are performed in maintenance mode, first invalidating the original identity, and then establishing a new binding record for the candidate device configuration or firmware version; When a candidate record fails to be verified, the original record is retained as a suspended record. When a candidate record is verified successfully, the candidate record is submitted with an added identity generation, and the old identity reference becomes invalid. The updated record is activated after entering a lifecycle state that allows activation and obtaining the measurement result of the current startup generation.

7. The method according to claim 1, characterized in that, The revocation operation submits a persistent revocation record containing the identity reference, identity generation, and revocation status; for repeated revocations of the same revoked identity, the existing revocation result is returned, and no new valid identity is generated; The identity validity query checks the corresponding revocation record before returning the activation result. If a revocation record is detected, an invalid result is output.

8. The method according to claim 1, characterized in that, The storage slot includes the record body, record summary, identity generation, transaction identifier, and commit flag. During power failure recovery, the identity validity output gate is first closed and the startup generation is advanced. The active slot index is only used to accelerate location. The recovery judgment checks the record body and commit flag slot by slot. It not only selects the effective record based on the active slot index, but also discards slots with missing commit flags or inconsistent summaries. It re-establishes the binding and suspended state of the complete commit slot with the highest previous association and generation, without directly restoring the active state. It obtains the measurement result corresponding to the current startup generation and reactivates it when the lifecycle allows. When the startup generation advancement fails, different summaries of the same generation occur, the previous association cannot be explained, or the record integrity check for reversal fails, it enters a recovery restricted state, which only allows querying and controlled repair, and prohibits the output of valid identities.

9. The method according to claim 1, characterized in that, Each identity change transaction is associated with a request identifier, the identity generation before and after the change, the lifecycle status and generation, the decision, and the result; the rejection record further includes a failure dimension and does not include root identity secret material; the effective record includes audit events to be output, and when the event output fails, the audit events to be output are retained for deduplication and resending by transaction identifier, and new activation or updates are rejected when the audit storage cannot retain new change records.

10. A security chip device and firmware identity activation device, characterized in that, It includes a chip root identity interface, a device and firmware identity recording module, an external measurement result interface, a lifecycle status interface, a status coordinator, a dual-slot commit and recovery module, and an identity validity output interface; The processor of the device executes stored instructions to cause the modules to jointly implement the method according to any one of claims 1 to 9.