Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Initial source import for fTPM #1

Open
wants to merge 24 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
24 commits
Select commit Hold shift + click to select a range
b265552
Import fTPM source
jenswi-linaro Sep 18, 2024
4cfb509
Import TEE crypto API wrappers
jenswi-linaro Sep 18, 2024
9208276
ftpm: fixup TEE crypto API wrappers
jenswi-linaro Oct 15, 2024
5ffd67c
Implement hashlib using mbedtls
jenswi-linaro Sep 26, 2024
d51fccb
Add secure storage TA flag
jenswi-linaro Sep 20, 2024
76a96ff
PlatformData: remove redundant s_NV*
jenswi-linaro Sep 24, 2024
a8553c5
_plat__Fail(): fix __noreturn
jenswi-linaro Sep 24, 2024
26d2102
Fix conflicting types for _plat__NvMemoryWrite()
jenswi-linaro Sep 24, 2024
797caf2
Remove _plat__Signal_PowerOn() from fTPM.h
jenswi-linaro Sep 24, 2024
5d1f20b
Remove TA_ALL_PARAM_TYPE() from fTPM.c
jenswi-linaro Sep 24, 2024
9785b04
Move user_ta_header_defines.h to include
jenswi-linaro Oct 22, 2024
44779e3
Remove redundant to{upp,low}er() declarations
jenswi-linaro Sep 24, 2024
1b0f86a
Provide and use ftpm_ta.h
jenswi-linaro Sep 25, 2024
22d1a7a
Ifdef BYTE_ARRAY_TO_UINT32 in fTPM.h
jenswi-linaro Oct 22, 2024
5ee867b
Remove TPM_RS_PW from fTPM_event_log_private.h
jenswi-linaro Oct 22, 2024
592f117
Add missing includes in fTPM_event_log.c
jenswi-linaro Oct 22, 2024
09c9b86
Remove TpmProfile.h
jenswi-linaro Sep 25, 2024
0beab79
Update makefiles to make it compile
jenswi-linaro Sep 24, 2024
8b9874c
Remove unused RuntimeSupport.c
jenswi-linaro Sep 24, 2024
91b4eb7
Remove unused wolfssl crypto wrappers
jenswi-linaro Sep 19, 2024
9bf80a9
Remove unused sub.mk files
jenswi-linaro Sep 24, 2024
d4407b8
Disable PPI emulation by default
jenswi-linaro Oct 7, 2024
e816d25
README.md: add build instructions
jenswi-linaro Oct 23, 2024
22d1193
Makefile: check for CFG_MS_TPM_20_REF
jenswi-linaro Oct 23, 2024
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
14 changes: 14 additions & 0 deletions Makefile
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
BINARY=bc50d971-d4c9-42c4-82cb-343fb7f37896

-include $(TA_DEV_KIT_DIR)/mk/ta_dev_kit.mk

ifeq ($(wildcard $(TA_DEV_KIT_DIR)/mk/ta_dev_kit.mk), )
clean:
@echo 'Note: $$(TA_DEV_KIT_DIR)/mk/ta_dev_kit.mk not found, cannot clean TA'
endif

ifeq ($(wildcard $(CFG_MS_TPM_20_REF)),)
ifneq ($(MAKECMDGOALS),clean)
$(error CFG_MS_TPM_20_REF not supplied or invalid)
endif
endif
10 changes: 10 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,16 @@ implementation](https://github.com/microsoft/ms-tpm-20-ref) sample
[ARM32-FirmwareTPM](https://github.com/microsoft/ms-tpm-20-ref/tree/Historical_Samples/Samples/ARM32-FirmwareTPM)
maintained to work with OP-TEE.

## Building the TA

This TA is built as described in [Trusted
Applications](https://optee.readthedocs.io/en/latest/building/trusted_applications.html)
section in the [OP-TEE
documentation](https://optee.readthedocs.io/en/latest/index.html) with the
addition of `CFG_MS_TPM_20_REF` which must hold the path to a checked out
copy of the [MS TPM 2.0 Reference
Implementation](https://github.com/microsoft/ms-tpm-20-ref).

## Measured Boot support
The fTPM Trusted Application includes support for Measured Boot. This
feature allows the TA to read a TPM Event Log compatible with the
Expand Down
Loading