• Home
  • Annotate
  • current directory
Name Date Size #Lines LOC

..22-Aug-2025-

include/18-Apr-2025-

platform/18-Apr-2025-

reference/include/18-Apr-2025-

tee/18-Apr-2025-

.gitignore A D18-Apr-2025183 1514

LICENSE A D18-Apr-20251.6 KiB189

Makefile A D18-Apr-2025372 1511

README.md A D18-Apr-20251.7 KiB4332

fTPM.c A D18-Apr-202513.6 KiB481283

sub.mk A D18-Apr-202512.2 KiB307285

README.md

1OP-TEE integration for the MS TPM 2.0 Reference Implementation (fTPM)
2===========
3
4## fTPM TA
5The fTPM Trusted Application (TA) provides a secure firmware implementation
6of a TPM using the [MS reference
7implementation](https://github.com/microsoft/ms-tpm-20-ref).
8
9The platform specific integration code is kept in this repository.
10
11This is a fork from the the [MS reference
12implementation](https://github.com/microsoft/ms-tpm-20-ref) sample
13[ARM32-FirmwareTPM](https://github.com/microsoft/ms-tpm-20-ref/tree/Historical_Samples/Samples/ARM32-FirmwareTPM)
14maintained to work with OP-TEE.
15
16## Building the TA
17
18This TA is built as described in [Trusted
19Applications](https://optee.readthedocs.io/en/latest/building/trusted_applications.html)
20section in the [OP-TEE
21documentation](https://optee.readthedocs.io/en/latest/index.html) with the
22addition of `CFG_MS_TPM_20_REF` which must hold the path to a checked out
23copy of the [MS TPM 2.0 Reference
24Implementation](https://github.com/microsoft/ms-tpm-20-ref).
25
26## Measured Boot support
27The fTPM Trusted Application includes support for Measured Boot. This
28feature allows the TA to read a TPM Event Log compatible with the
29specification in Section 5 of the [TCG EFI Protocol
30Specification](https://trustedcomputinggroup.org/wp-content/uploads/EFI-Protocol-Specification-rev13-160330final.pdf).
31The event log is read and extended during the TA initialization.
32
33Measure Boot support requires OP-TEE System Call
34```PTA_SYSTEM_GET_TPM_EVENT_LOG```.
35
36Flags related to Measured Boot support:
37
38`CFG_TA_MEASURED_BOOT`: Controls whether Measured Boot is enabled
39(`CFG_TA_MEASURED_BOOT=y`) or disabled (by default).
40`CFG_TA_EVENT_LOG_SIZE`: Maximum size in bytes allowed for the Event Log.
41Defaults to 1024 bytes.
42
43