A new feature reaches the G-17 design meeting: inspectors want to use their existing handheld terminal to enter the warehouse. The terminal already has a TPM and a company login service, yet a supplier proposes adding an SE. To judge whether that addition is justified, we first examine their shared capabilities, then follow the interfaces and management process the access application actually needs.
Try: requirements and compatibilityTry: what evidence answers
Related lessons:TPM · DICE · Measured Boot & Attestation
01 · Already have a TPM? Why add an SE?

Each day, a warehouse inspector carries a G-17 handheld service terminal between the shelves to record equipment checks and temperatures. The terminal reports to a company service. A TPM protects the private key used to log in. The company now wants another feature: the inspector should be able to tap the terminal on a fixed NFC reader at the door and use an employee access credential to enter. The handheld terminal and the door reader are separate devices. This is the fictional design scenario used throughout the lesson.
A supplier proposes an SE, short for Secure Element, for the new feature. Its description promises protected keys and signing inside the protected component. Yet the TPM in G-17 already protects a login key and uses it to sign. On those two capabilities, the options do look similar. MY therefore starts with the existing login requirement to find out what their shared capabilities can tell us.[S1][S2]
The company service sends fresh challenge data for this login. The terminal asks the protected component to sign that data, then returns the signature to the company. The service checks the result with a public key registered in advance. A successful check shows that the other party could use the corresponding private key for this operation. The key settings chosen for this example do not provide private-key export: the host receives a signature. Both the TPM and this SE candidate can provide this kind of protected operation.[S1][S2]
The drawing tests two alternative designs separately. The TPM design uses key A, the SE design uses key B, and the company registers each public key separately. Both tests pass, showing that the login function has more than one possible implementation. The components do not share a private key or copy one between them. This test establishes the ability to use a registered key. It does not establish which software version the terminal ran or who can manage its access application.
The next question is what the new access feature actually requires. This warehouse must use a particular secure-card application and the owner's chosen management process. Whether a candidate platform can run that application and support its interfaces now matters to the choice. Signing alone is not enough to decide whether to add an SE. We will first examine the capabilities TPM and SE share, then return to G-17's requirements.[S1]
02 · What can TPM and SE both do?

Both login paths begin with the same kind of request. The company sends a challenge created for this login. G-17's host software passes it to the protected component, which uses its own private key internally and returns a signature. The company checks the response with the corresponding public key enrolled earlier. The two keys form a pair: the public key lets the company verify the result without receiving the private key.[S1][S2]
Where the key is stored and where signing happens explain the value of this arrangement. If the host first reads a private key into ordinary memory, software with access to that memory may obtain it. Here, the protected component performs the operation and returns its result through a command interface. Both the TPM and the selected SE support this pattern. The example also chooses settings that do not provide private-key export through the normal interface.[S1][S2]
The component must still decide whether a caller may request the operation. A message saying 'sign this' is not sufficient authority by itself. The platform and application define the conditions that must hold before an allowed function runs. Those conditions may involve a usage capability held by the host. The protected boundary therefore preserves secrets and enforces rules for using them. Later, a compromised-host scenario will test how much those rules actually constrain.[S1][S2]
We can now follow the shared function from beginning to end: the host makes an allowed request, the protected component uses a private key, and the company verifies the result. Both candidates complete that task, each with its own key and enrollment. If login is the only requirement, G-17's existing TPM is already a working option. The next comparison concerns specifications, which determine whether existing software can use another platform directly.
03 · Do similar descriptions promise the same interface?

The company management software already sends particular commands to a TPM and interprets the responses according to a specification. Trusted Platform Module therefore carries a checkable behavioral contract. TCG specifications define the architecture, data structures and commands, together with authorization behavior. Software developers can integrate implementations from different suppliers against that contract, while checking the versions and capabilities each product supports.[S3]
Secure Element describes a tamper-resistant platform for storing data and executing applications securely. Sensitive operations and secrets are handled within its protected environment, while applications and the host communicate through selected interfaces. The SE ecosystem also has platform and application specifications, including the GlobalPlatform management mechanisms used later in this lesson. The name SE alone, however, does not identify the commands or applications a candidate supports, or establish compatibility with the company's TPM commands.[S1]
Physical appearance cannot settle the classification either. A TPM may be a discrete component, integrated into another chip, or implemented in firmware within a protected environment. These are different ways to provide TPM functionality. They do not justify drawing every TPM inside an SE category. A useful system diagram identifies the actual protection boundary and the interface software sees. A package photograph supplies only part of that information.[S2]
DICE belongs at another level. It describes a mechanism that starts with a protected secret and connects measured software to later identity or attestation material. Hardware and trusted boot code implement that mechanism together. It can be used in systems with or without a TPM. MY therefore marks DICE along the boot trust flow and places TPM and SE where their services are provided. With those levels clear, we can examine who meets G-17's two requirements.[S4][S5]
04 · Can one component directly meet both requirements?

G-17's first requirement is already in service. Company management accepts standardized boot measurement records and signed reports as well as device login. Host software, TPM commands and server-side verification are integrated. Replacing that path with generic signing would require another arrangement for protecting measurements, encoding reports and verifying them at the service. A signature operation alone does not supply the existing service contract.[S3]
The second requirement comes from the warehouse owner. The access system specifies a particular secure-card application and an authorized management process. G-17 must host that application and an employee access credential, then interact with the door reader through the required interface. In this example, the handheld already has the necessary NFC connectivity. The fixed reader remains a separate device. We can therefore focus on application execution and management, without making a radio hardware selection.
The supplier's SE candidate has been confirmed to support the required application and its GlobalPlatform management process. A general TPM command interface makes no promise that this secure-card application can be installed directly. That gives the proposed SE a specific job. Equally, an SE's ability to protect keys does not establish compatibility with the TPM commands and evidence required by company management. Both requirements must be checked against concrete interfaces.[S1][S3]
The example therefore keeps the existing TPM path and evaluates adding the compatible SE for access control. Another platform also adds integration and maintenance work, so evidence and engineering costs still need review. If the specified card application were removed and only the original login remained, our earlier test would give no reason to add a component. Before examining the SE internally, we use a firmware update to separate login, boot-state evidence and the role of DICE.
05 · What does each approach do after a firmware update?

G-17 replaces firmware v1 with a different image, v2. Company management now wants evidence of what actually loaded. Trusted boot code first computes a fingerprint of selected code; this is the measurement used here. The service compares evidence of that measurement with its allowed states. Asking a genuine key to sign 'I am v2' leaves the origin of that statement unexplained. Boot-state evidence needs a protected, verifiable relationship between measurement and signing.[S3][S8]
In this TPM path, trusted boot code obtains measurements and accumulates their digests in protected Platform Configuration Registers, or PCRs. A separate event log describes individual measurements. The TPM can produce a signed report called a Quote, covering a digest of selected PCRs and bound to the current request under the protocol. The verifier checks the report, log and state policy. The update changes the reported state; this example may retain the same attestation key.[S3]
The DICE comparison uses the attestation path of the Open Profile for DICE. A trusted earlier stage includes measurement inputs in secret derivation to establish later attestation material. With other inputs fixed, the different v2 image changes the affected stage and later material. A new certificate branch can still reach the retained trusted stage. This dependency does not change every earlier stage retroactively or erase every identity associated with the device.[S5]
An SE can also participate in software attestation when trusted measurement, protected state, signing authority and an external verification protocol are provided. G-17's chosen SE access application does not automatically provide that boot-attestation service, so company management retains its existing TPM architecture. The two labs let you change requirements and evidence scope separately. With those roles clear, we can examine how the SE protects the access application and its secrets.[S1][S8]
Engineer extension: compare specified attestation paths
Open Profile for DICE v2.6 is the named profile used here, rather than a formal TCG standard. Attestation derivation also includes config, authority, mode and hidden inputs. This comparison fixes those conditions and the trusted earlier stage, changing only firmware content. Stability for other uses requires separate analysis. Complete TPM verification also checks PCR selection, the event log, attestation-key provenance and request freshness, beyond the Quote signature alone.[S3][S5]
06 · How does an SE protect both applications and secrets?

The access application needs more than a place to store a key. It must recognize commands, decide which operations are allowed and use credentials according to the access protocol. The selected SE is therefore a platform capable of running that application. Its internal system manages storage and resources, the secure application handles requests, and cryptographic functions perform the required operations. Together they provide a service whose sensitive processing remains inside the protected boundary.[S1]
The host sees an interface rather than unrestricted memory. G-17 sends commands supported by the application and receives responses. It cannot read the example's private key by choosing an address as it might read an ordinary Flash file. Internal system software, the application and hardware must maintain that boundary together. If an application exposes sensitive data in a response, protected storage alone cannot close the resulting interface gap.[S1]
Logical isolation restricts access between code and data. Physical protection addresses attacks made with direct access to the component, including attempts to observe or disturb its operation. Those protections require evidence from the concrete product and its evaluation. We do not assign a particular shield or detection circuit to this hypothetical platform. Hardware TPMs may also provide physical defenses, so the component names alone cannot rank protection.[S1][S2]
Moving an application into an SE can keep some sensitive data and decisions away from the host. It also creates requirements for software interfaces and resource allocation. The access team must still confirm that the application runs on the selected system, has the resources it needs and works with the host and reader. The protected platform is a starting point. Next, we establish a trustworthy relationship among the application, its key and service enrollment.
Engineer extension: keep product defenses tied to their product
NXP's SE050 datasheet Rev. 3.8 describes its security platform, internal IoT application, memory isolation and physical protection features. It is a useful example of how to read product documentation. Those statements belong to the products and configurations identified there. SE050 is not the assumed candidate for loading G-17's specified access application, and its defenses are not assigned to the hypothetical platform. Match evidence to the chip, internal system and application versions.[S6]
07 · How is the access key created and trusted?

Before G-17 ships, its access application and required permissions must be prepared. Placing applications, credentials and settings in their intended locations is provisioning. This example uses a controlled production process: confirm the platform and application versions, then deploy through an authorized procedure. Its records let the service distinguish expected devices from arbitrary requests. A protected execution environment does not create the enterprise enrollment register on its own.[S1]
The example's access application generates a key pair inside the SE. The private key remains protected, with no export operation provided by this interface. The public key goes to the access service for checking later evidence or operation results. This is the provisioning design selected for the story. Actual platforms may support other key origins and storage arrangements, which require product and application review. Internal generation lets us trace where this private key stays from creation through use.[S1]
Receiving a public key is only part of enrollment. Anyone can create a key pair and claim its public key belongs to G-17. The mathematical relationship between the pair does not establish that claim. Controlled provisioning therefore connects the public key to the expected platform, application and settings, then supplies that relationship through a trusted enrollment process. Certificates or other provenance evidence also require a trusted issuer or starting point.[S1]
When a valid response later reaches the door system, the service can use those records to identify the credential involved and apply its access policy. Which door an employee may enter remains an authorization decision within that system. Knowing the key's application and origin gives that decision a foundation. Provisioning also establishes who can change the application. We next separate ordinary use from management and follow both kinds of request through the host.
08 · Does using an access credential grant application management?

An inspector entering the warehouse uses an already provisioned credential. An administrator changing the application configuration changes what future operations will be allowed. Those jobs need separate authority. Otherwise, software allowed to use a credential could also replace the application or expand its functions. This example routes ordinary requests to the access application and management requests to the designated management mechanism. The host may transport both, but the recipient checks different authority.[S1]
An authorized administrator follows the chosen GlobalPlatform process, establishes a protected management channel and sends commands supported by the platform. The channel lets the recipient check the authorized peer and the configured message protection. Management credentials, together with the ability to use them, must therefore remain within designated authority. A host message merely calling its sender an administrator cannot substitute for those checks.[S1]
A channel's scope follows its endpoints and configuration. Protection between a management backend and the SE's management function does not automatically cover every host program. It also does not establish that all data between the terminal and door reader is encrypted. NFC transport and the access application have their own protocol arrangements. Following each segment shows which data has which protection and what a modified host might still observe or alter.[S1]
This separation lets the team inspect daily use and maintenance authority independently. Permission to request an access operation need not grant application installation. An administrator updating the application must also stay within the platform's management scope. Next, we place the ordinary host software in a compromised state and examine whether these two authority paths constrain the effects as intended.
Engineer extension: a product example of a host channel
SE050 application note AN12514 Rev. 1.4 describes that product's host binding, external host credentials and related channel protection. It is useful for tracing credential storage and channel peers. Its endpoints and object model should not be substituted for this example's GlobalPlatform application management. Procurement and implementation require the applicable product and document revisions. Rev. 1.4 is not presented here as the latest revision for every model.[S7]
09 · What can SE rules still constrain after host compromise?

Change one condition: G-17 boots normally, but a vulnerability later gives an attacker control of its ordinary host software. To examine the boundary, we also assume the attacker retains a required authorization capability and can submit some normally allowed requests. The earlier boot measurement has not observed this later compromise, so its successful check cannot establish the host's current safety. We now ask which operations can still reach the SE.
The access application inside the SE continues to enforce its selected rules. It can reject unsupported commands and check the application's usage conditions. The ordinary usage interface in this example exposes only the required signing operation, without a private-key export operation. Ordinary usage authority also does not include updating other applications or installing new ones. Obtaining a signature therefore does not itself give the attacker the private key or management authority.[S1]
A request that satisfies the conditions may still succeed. The component sees the command and conditions it checks; it does not automatically know the host operator's actual intent. Compromised software that retains the required capability may initiate an operation it should not have requested. System design must therefore consider what user confirmation sensitive actions require and how host-held capabilities are isolated. The appropriate measures follow the actual threat model and application.
Both observations can hold together: some secrets and management functions remain restricted, while some allowed operations can be misused. TPM-based protected-key services also face this system-level issue. For G-17, the team must list callable operations and their conditions, then keep management capabilities outside ordinary software that does not need them. The next section follows the management chain that must continue working after shipment.
Engineer extension: read usage policies in a fixed-function product
SE050 object policies provide a concrete product example for checking which operations an object permits and how authorization relates to the host. G-17's access rules come from its selected platform and application; they are not claimed to use the SE050 object format. Policy enforcement, host-credential protection and physical defenses are related but distinct review items. Check the documented behavior and conditions for each.[S6][S7]
10 · Who can add or update the access application after shipment?

The warehouse later changes its access requirements, and the shipped application needs an update. New code or settings must enter the protected environment and may change how credentials are used. A platform selected only because it opens the door today may leave the team unable to maintain that function tomorrow. This example therefore includes management capability in the requirements from the start.[S1]
The selected platform supports the owner's chosen GlobalPlatform management process. An authorized manager uses supported procedures and commands to install or update the secure application, then provision the required credentials. The team must check which data and credentials survive an update; update support alone does not promise automatic preservation. The process must identify the target, application version and available authority; the recipient must verify the management request. The host may transport the data, but changes inside the protected boundary still pass through this authorized chain.[S1]
An employee using an access credential does not need application installation authority. Separating the permissions also makes the maintenance process inspectable. Who approves a new application? Who holds the management credentials? Who can deliver commands to the intended platform, and what records confirm completion? Describing a product only as updatable hides steps that affect both maintenance and risk. The team must connect them to the organization's actual process.
Loading applications after issuance is a capability of the manageable SE platform selected here. The name SE does not give that capability to every product. Some fixed-function IoT security components expose predefined functions and may not run this application. Procurement must confirm executable applications and management authority, then check versions and interfaces. Revocation and retirement are further lifecycle questions; this section first completes the management chain required by the story.[S1]
11 · What evidence must G-17 check beyond functional compatibility?

Adding an SE now has a functional reason, but a photograph of a successful door entry cannot complete engineering selection. A test may cover only one application version or setting. G-17's selection sheet therefore fixes the candidate platform, internal system and access application versions before checking host interfaces and the owner's management process. When those conditions match the planned product, the functional result becomes relevant evidence.[S1]
Next, the team checks whether usage conditions and management authority are implemented as intended. Callable operations, holders of management credentials and protected-channel endpoints must have configurations and evidence that can be inspected. Protection evaluations also have a defined target and scope, such as a product version, configuration and attacker capabilities. If an evaluation does not cover the team's application or complete system, its conclusions cannot simply be extended to them.[S1][S2]
The application must also fit the product's operating constraints. How much capacity do the application and credentials need? How long does a complete operation take? What power is required during standby and use, and what do the component and maintenance cost? This lesson has measured none of those values, so the selection sheet leaves them pending. Measurements should record versions, workload and environment so the results can be compared with G-17's use.
Combining the best features from unrelated product documents would describe a component that does not exist. Manageable platforms and fixed-function products each retain their own capabilities and conditions. Neither TPM nor SE is a price, speed or security score. With compatibility, management evidence and pending costs recorded, the team can return to the opening decision with reasons it can inspect.
12 · What does G-17 choose, and what would change the decision?

The design meeting returns to its proposal. Company management still requires the existing TPM commands and boot evidence. Warehouse access still requires the specified secure-card application and GlobalPlatform management process. The example keeps the integrated TPM and selects the confirmed compatible SE to host the access application. Each path answers a concrete requirement. Application compatibility explains the addition, while both candidates had already passed the login-signing comparison.
Boot-state evidence continues to follow its complete architecture. The TPM path needs trusted measurement and verification. An SE assigned an attestation role would also need traceable provenance and protected state relationships. DICE offers a mechanism for connecting a protected secret and measurements to later attestation material. Those relationships do not automatically change company-service or access-application interfaces. Designers still have to integrate each required contract.[S3][S4][S5]
Change the requirement to the original device login alone, and the conclusion changes. G-17 already has a working TPM, and the opening comparison found no missing protected-signing capability for that task. Without another requirement, this comparison gives no reason to add an SE. If a different access application could use the existing platform, the integration decision should also be revisited. Our earlier choice applies to the specified application and management conditions in this example.
Finally, send the terminal for repair and return it with a replacement board. The repair and provisioning process must establish whether the original application and credentials remain, and how new protected keys connect to service enrollment. Copying the old public key into a new device record does not give that device the corresponding private key. G-17's functional selection is resolved. A concrete next question remains: how should repair, revocation and retirement continue or end the trust relationships already established?
Lab 1: Can both candidates handle the request?
Both candidates in this example can sign with a protected key. Start with the original login, then add requirements and inspect how the reason for selecting a platform changes. This compares capability and compatibility without a security score.
Candidate conditions in this example
The existing TPM is integrated with company services. The SE candidate is confirmed compatible with the card application and its authorized GlobalPlatform management. G-17 has the required NFC connectivity; the fixed door reader is a separate device. Procurement still requires concrete product checks.
Lab 2: What question does this evidence answer?
Choose evidence, then change the measured version, service policy or post-boot scenario. Key provenance and current-response checks pass by assumption. Complete measurement paths additionally assume trusted measurement and protected state. The lab displays reasoning and performs no real cryptographic operations.
Recap: explain the choice through requirements
- Both the TPM and selected SE can perform operations with protected private keys. Export behavior and permitted uses follow the chosen settings.
- TPM command compatibility and SE platform/application compatibility each affect whether an existing service can use a candidate directly.
- G-17 evaluates adding a compatible SE for the specified access application and management process, while keeping its TPM company service.
- Trusted provisioning connects a public key to the expected platform, application and settings. Ordinary usage authority is separate from application management.
- Boot evidence, key usage and current system state each have a scope. Engineering selection compares complete architectures, concrete product evidence and costs still to be measured.
#SecureElement #TPM #HardwareSecurity #Provisioning #AccessControl
Glossary
- Secure Element (SE)
- A tamper-resistant platform for secure application execution and sensitive data storage; actual application and interface capabilities require product review.
- Trusted Platform Module (TPM)
- A module providing security functions under TCG architecture, data and command behavior, with discrete, integrated and firmware implementation forms.
- DICE
- A mechanism connecting protected secrets, trusted measurements, derivation and handoff to identity and attestation relationships.
- Provisioning
- Preparing applications, credentials and settings through a controlled process, with the enrollment relationships a service needs.
- Enrollment
- A trusted process that associates a public key or credential with an expected subject and configuration; receiving a key alone does not establish provenance.
- Authorization
- Rules and permissions deciding which operations a subject may perform and under which conditions.
- GlobalPlatform management
- The authorized application-management approach used by this SE candidate; supported commands, channels and authority scope require platform confirmation.
- Platform Configuration Register (PCR)
- A protected TPM record that accumulates measurement digests; distinct from a log describing individual events.
- Quote
- Signed TPM attestation that can cover a digest of selected PCRs and protocol-specified data for a verifier to inspect.
- Protected channel
- A channel protecting messages between specified endpoints under a chosen protocol and configuration; its scope follows the actual path.
Five questions with explanations
1. Does a valid signature on the current challenge establish that G-17 booted v2?
The response supports the ability to use the enrolled key, but does not by itself establish the boot version. The service needs a trustworthy measurement and a protected relationship from measurement to signing, followed by provenance, freshness and policy checks. A host-supplied v2 label, even signed with a genuine key, does not supply the missing measurement origin.
2. Both candidates protect keys and sign. Why can the SE not simply replace the TPM service?
The existing service is integrated against particular TPM commands, data and evidence behavior. Shared signing capability does not establish that compatibility; the actual platform and application must be checked. The same reasoning applies to access control: a general TPM command interface does not promise to run the specified SE application. G-17 must match capabilities to required interfaces and account for reintegration work.
3. The warehouse drops the specified card application and keeps only device login. Does this lesson still give a reason to add an SE?
With that condition changed, the reason for adding the SE in this lesson disappears. G-17 already has a TPM that completes login, and the comparison found no missing protected-signing capability for that task. New cost, supply or protection requirements would need new evidence. A decision made for application compatibility cannot simply be carried over after that requirement has been removed.
4. A compromised host still obtains signatures. Must the SE key have been extracted, or installation authority gained?
Neither conclusion follows without evidence. The example explicitly lets the attacker satisfy a usage condition, so an allowed operation may complete. The private key may remain internal, while the management interface still rejects requests lacking management authority. Diagnose which capability was used and which conditions the application checked, then assess the misuse. Confirming that the key was not exported is also insufficient to establish complete system safety.
5. After a board replacement, can copying the old public key into the new G-17 record restore access? What design work is missing?
A public key verifies operations by its corresponding private key; copying a record does not recreate that private key. Repair must identify which applications and protected credentials changed, then establish the new relationship through authorized provisioning and enrollment while handling the old credential under policy. Design should assign application management, service-enrollment responsibility and repair confirmation before replacement, instead of assuming trust continues automatically.
Further study: repair and lifecycle
The next useful topic is repair and lifecycle management: re-enrollment after board replacement, delivery of revocation decisions to services, and confirmation that management authority has ended at retirement. This lesson establishes platform choice, application management and usage boundaries. Full protocols, certificate formats and manufacturing procedures belong in implementation work.
Primary sources and verification date
Checked on 2026-10-23. G-17 is a fictional teaching product with explicit candidate capabilities and requirements, without measured price, power or performance. The DICE comparison uses the Open Profile v2.6 attestation path, rather than a formal TCG standard. SE050 documentation is used only in engineer extensions, not as the platform for loading this access application.
- [S1] GlobalPlatform — Introduction to Secure Elements (May 2018)
- [S2] Microsoft Learn — TPM recommendations
- [S3] Trusted Computing Group — TPM workgroup and TPM specifications
- [S4] Trusted Computing Group — DICE workgroup
- [S5] Open Profile for DICE v2.6 — named attestation example
- [S6] NXP — SE050 datasheet Rev. 3.8 (2023-10-18), engineer extensions only
- [S7] NXP — AN12514 Rev. 1.4 (2021-11-21), engineer extensions only
- [S8] RFC 9334 — RATS Architecture (Informational), measurement and evidence scope