-
Notifications
You must be signed in to change notification settings - Fork 153
IDevID: allow using pre-computed auth values #803
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
Open
rizlik
wants to merge
8
commits into
wolfSSL:master
Choose a base branch
from
rizlik:tpm_mfg_auth_value
base: master
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Changes from all commits
Commits
Show all changes
8 commits
Select commit
Hold shift + click to select a range
801ae8f
tpm: DevId identity allow to use precomputed auth values
rizlik dd4387e
config: example: stm32h5 tpm IDevId example
rizlik 8518eab
tpm: fix wolfBoot_tpm2_get_aik typo in header comment
rizlik cb56e86
tpm: remove trailing whitespace in MFG identity docs
rizlik f9cad20
tpm: zeroize EH master secret after derive
rizlik 68c797d
tpm: dedupe precomputed authValue handle copy
rizlik 723fffe
tpm: build MFG identity configs in CI
rizlik 0438c54
tpm: rename masterPassword param to authOverride
rizlik File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,44 @@ | ||
| ARCH?=ARM | ||
| TZEN?=1 | ||
| TARGET?=stm32h5 | ||
| SIGN?=ECC256 | ||
| HASH?=SHA256 | ||
| DEBUG?=0 | ||
| VTOR?=1 | ||
| CORTEX_M0?=0 | ||
| CORTEX_M33?=1 | ||
| NO_ASM?=0 | ||
| NO_MPU=1 | ||
| EXT_FLASH?=0 | ||
| SPI_FLASH?=0 | ||
| ALLOW_DOWNGRADE?=0 | ||
| NVM_FLASH_WRITEONCE?=1 | ||
| WOLFBOOT_VERSION?=1 | ||
| V?=0 | ||
| SPMATH?=1 | ||
| RAM_CODE?=1 | ||
| DUALBANK_SWAP?=0 | ||
| WOLFBOOT_PARTITION_SIZE?=0xA0000 | ||
| WOLFBOOT_SECTOR_SIZE?=0x2000 | ||
| WOLFBOOT_KEYVAULT_ADDRESS?=0x0C040000 | ||
| WOLFBOOT_KEYVAULT_SIZE?=0x1C000 | ||
| WOLFBOOT_NSC_ADDRESS?=0x0C05C000 | ||
| WOLFBOOT_NSC_SIZE?=0x4000 | ||
| WOLFBOOT_PARTITION_BOOT_ADDRESS?=0x08060000 | ||
| WOLFBOOT_PARTITION_UPDATE_ADDRESS?=0x0C100000 | ||
| WOLFBOOT_PARTITION_SWAP_ADDRESS?=0x0C1A0000 | ||
| FLAGS_HOME=0 | ||
| DISABLE_BACKUP=0 | ||
| WOLFCRYPT_TZ=1 | ||
| WOLFCRYPT_TZ_PKCS11=1 | ||
| IMAGE_HEADER_SIZE?=1024 | ||
| ARMORED=1 | ||
| WOLFTPM=1 | ||
| # Exercise the pre-provisioned ST33KTPM identity keys (IAK/IDevID). | ||
| # ST33 vendor support is required (wolfTPM2_SetIdentityAuth -> TPM2_GetProductInfo). | ||
| CFLAGS_EXTRA+=-DWOLFTPM_ST33 | ||
| CFLAGS_EXTRA+=-DWOLFTPM_MFG_IDENTITY | ||
| # Default precomputed mode (WOLFBOOT_TPM_MFG_AUTH_DERIVE unset): the per-device | ||
| # authValue is set directly from the WOLFBOOT_TPM_MFG_AIK_AUTH/EH_AUTH macros. | ||
| # Ships a 0xFF placeholder that fails TPM auth until provisioned per-device; this | ||
| # config exists to build-test the precomputed branch in CI. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,44 @@ | ||
| ARCH?=ARM | ||
| TZEN?=1 | ||
| TARGET?=stm32h5 | ||
| SIGN?=ECC256 | ||
| HASH?=SHA256 | ||
| DEBUG?=0 | ||
| VTOR?=1 | ||
| CORTEX_M0?=0 | ||
| CORTEX_M33?=1 | ||
| NO_ASM?=0 | ||
| NO_MPU=1 | ||
| EXT_FLASH?=0 | ||
| SPI_FLASH?=0 | ||
| ALLOW_DOWNGRADE?=0 | ||
| NVM_FLASH_WRITEONCE?=1 | ||
| WOLFBOOT_VERSION?=1 | ||
| V?=0 | ||
| SPMATH?=1 | ||
| RAM_CODE?=1 | ||
| DUALBANK_SWAP?=0 | ||
| WOLFBOOT_PARTITION_SIZE?=0xA0000 | ||
| WOLFBOOT_SECTOR_SIZE?=0x2000 | ||
| WOLFBOOT_KEYVAULT_ADDRESS?=0x0C040000 | ||
| WOLFBOOT_KEYVAULT_SIZE?=0x1C000 | ||
| WOLFBOOT_NSC_ADDRESS?=0x0C05C000 | ||
| WOLFBOOT_NSC_SIZE?=0x4000 | ||
| WOLFBOOT_PARTITION_BOOT_ADDRESS?=0x08060000 | ||
| WOLFBOOT_PARTITION_UPDATE_ADDRESS?=0x0C100000 | ||
| WOLFBOOT_PARTITION_SWAP_ADDRESS?=0x0C1A0000 | ||
| FLAGS_HOME=0 | ||
| DISABLE_BACKUP=0 | ||
| WOLFCRYPT_TZ=1 | ||
| WOLFCRYPT_TZ_PKCS11=1 | ||
| IMAGE_HEADER_SIZE?=1024 | ||
| ARMORED=1 | ||
| WOLFTPM=1 | ||
| # Exercise the pre-provisioned ST33KTPM identity keys (IAK/IDevID). | ||
| # ST33 vendor support is required (wolfTPM2_SetIdentityAuth -> TPM2_GetProductInfo). | ||
| CFLAGS_EXTRA+=-DWOLFTPM_ST33 | ||
| CFLAGS_EXTRA+=-DWOLFTPM_MFG_IDENTITY | ||
| # Derive the authValue on-device so the test-app works on a sample TPM. The | ||
| # default precomputed mode ships a 0xFF placeholder that must be provisioned | ||
| # per-device first. | ||
| WOLFBOOT_TPM_MFG_AUTH_DERIVE=1 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.