Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
124 commits
Select commit Hold shift + click to select a range
47cf7db
F-16225 - Use only the IDENTITY label for the fwTPM RSA credential seed
dgarske Nov 17, 2026
5020890
F-16241 - Reject non-boolean TPMI_YES_NO in fwTPM ClearControl and Se…
dgarske Nov 17, 2026
8524fb8
F-18067 - Allow ownerAuth on platform-created fwTPM NV indexes with O…
dgarske Nov 17, 2026
d913b35
F-16219 - Require the fwTPM Duplicate policy session to be bound to T…
dgarske Nov 17, 2026
82cc079
Return TPM_RC_POLICY_FAIL when an fwTPM ADMIN or DUP policy session h…
dgarske Nov 17, 2026
5ebe713
F-17157 - Drop the command-parameter decrypt flag from fwTPM EncryptD…
dgarske Nov 17, 2026
4afe4d3
F-16132 - Mark every fwTPM command whose first parameter is a TPM2B f…
dgarske Nov 17, 2026
7c7f855
F-16236 - Enforce TPMA_SESSION attribute rules in the fwTPM dispatcher
dgarske Nov 17, 2026
52d0ea3
F-16834 - Extend the fwTPM PolicyPassword digest with TPM_CC_PolicyAu…
dgarske Nov 17, 2026
91af2de
F-16230 - Return TPM_RC_SIZE for an out-of-range fwTPM PolicyOR diges…
dgarske Nov 17, 2026
dd1d786
F-16229 - Accept fwTPM PolicyOR list entries of any digest size
dgarske Nov 17, 2026
b3381d1
F-16233 - Reject a repeated fwTPM PolicyNameHash with TPM_RC_CPHASH
dgarske Nov 17, 2026
3c09a9e
F-16231 - Return TPM_RC_VALUE for an fwTPM PolicyCounterTimer offset …
dgarske Nov 17, 2026
4037a19
F-16188 - Return an empty buffer for a zero-size fwTPM NV_Read
dgarske Nov 17, 2026
7e98c11
F-18077 - Bound fwTPM NV_Write, NV_Read and NV_Certify by MAX_NV_BUFF…
dgarske Nov 17, 2026
81b939e
F-16840 - Certify zero octets for a zero-size fwTPM NV_Certify at a n…
dgarske Nov 17, 2026
7b1c3d0
F-18068 - Accept fwTPM NV_Extend data up to MAX_NV_BUFFER_SIZE
dgarske Nov 17, 2026
657cea3
F-18069 - Leave fwTPM bits and extend NV indexes unwritten at definition
dgarske Nov 17, 2026
2a833fe
F-17152 - Add the NV_DefineSpace attribute, size and auth consistency…
dgarske Nov 17, 2026
f364f82
F-16228 - Skip NV state validation for trial sessions in fwTPM Policy…
dgarske Nov 17, 2026
b490190
F-16227 - Read a TPMT_HA from the NV index in fwTPM PolicyAuthorizeNV
dgarske Nov 17, 2026
aa6e5aa
Reject a fwTPM password authorization that has no handle to authorize
dgarske Nov 17, 2026
58c9608
F-18071 - Reset the fwTPM PCR authValues on Startup(CLEAR)
dgarske Nov 17, 2026
19a92c1
F-18076 - Reject fwTPM Shutdown(STATE) while a PCR_Allocate is staged
dgarske Nov 17, 2026
2dff65e
F-16182 - Skip unallocated PCR banks in fwTPM PCR_Extend
dgarske Nov 17, 2026
6162986
F-16183 - Clear unallocated PCR banks from the fwTPM PCR_Read selection
dgarske Nov 17, 2026
8efefed
F-18070 - Keep unlisted PCR banks allocated in fwTPM PCR_Allocate
dgarske Nov 17, 2026
6f7d3e9
F-18073 - Flush persistent objects of the changed hierarchy in fwTPM …
dgarske Nov 17, 2026
f12f71f
F-18072 - Reset platformPolicy and the PCR policies in fwTPM ChangePPS
dgarske Nov 17, 2026
b0f1269
F-16222 - Reset lockoutAuth in fwTPM Clear when built with FWTPM_NO_DA
dgarske Nov 17, 2026
a5b4edc
F-18066 - Set TPMA_NV_WRITELOCKED on GLOBALLOCK indexes in fwTPM NV_G…
dgarske Nov 17, 2026
06d7df2
F-17151 - Treat a zero recovery time as DA disabled in fwTPM
dgarske Nov 17, 2026
390250d
F-16835 - Accept an unrestricted signing key in fwTPM Quote
dgarske Nov 17, 2026
4335991
F-16836 - Hash the fwTPM Quote pcrDigest with the selected signing sc…
dgarske Nov 17, 2026
573a6c5
F-16224 - Refuse a fwTPM policy session for an entity that has no aut…
dgarske Nov 17, 2026
88cfac7
F-17156 - Return TPM_RC_AUTH_UNAVAILABLE for fwTPM authorization of a…
dgarske Nov 17, 2026
53d3121
F-16838 - Require TPM_RH_ENDORSEMENT as the fwTPM GetTime privacyAdmi…
dgarske Nov 17, 2026
132de1b
F-16134 - Return TPM_RC_TYPE for a non-storage fwTPM ActivateCredenti…
dgarske Nov 17, 2026
4bb1928
F-16126 - Wipe the fwTPM command authorizations on the SPDM channel r…
dgarske Nov 17, 2026
b4068b8
F-16125 - Wipe the fwTPM socket command buffer after dispatch
dgarske Nov 17, 2026
23ff7af
F-17150 - Report hierarchy policies and the PCR policy and auth prope…
dgarske Nov 17, 2026
e58b2c4
F-18075 - Validate the fwTPM GetCapability capability and the TPM_CAP…
dgarske Nov 17, 2026
2fc4fe4
F-16184 - Keep the allocation failure in fwTPM Duplicate and Rewrap b…
dgarske Nov 17, 2026
62cd64e
F-16185 - Keep the allocation failure in fwTPM policy, NV_Extend and …
dgarske Nov 17, 2026
c5ba2f6
F-17155 - Reject a fwTPM StartAuthSession salt without a tpmKey and a…
dgarske Nov 17, 2026
4838089
F-16846 - Wipe the fwTPM TIS command and response FIFOs after use
dgarske Nov 17, 2026
19c6ce8
F-16235 - Return TPM_RC_SEQUENCE from fwTPM ReadPublic for a sequence…
dgarske Nov 17, 2026
ad54e9d
F-16097 - Honor the TPM2B sizes of ECC coordinates and scalars in fwT…
dgarske Nov 17, 2026
352d81d
F-16124 - Check that a fwTPM ECC private scalar matches its public po…
dgarske Nov 17, 2026
5a6e34f
F-16137 - Reject a scheme on a fwTPM KEYEDHASH object that is both or…
dgarske Nov 17, 2026
6938bde
F-16239 - Enforce the sign-only and decrypt-only usage of fwTPM ML-DS…
dgarske Nov 17, 2026
22e1ad5
F-16186 - Use the TCG inner wrap format in fwTPM Duplicate, Import an…
dgarske Nov 17, 2026
bcfbdc1
F-16187 - Fail the fwTPM NV public area marshal when the packet overf…
dgarske Nov 17, 2026
a2666f0
F-16136 - Check the fwTPM Sign inScheme against the key scheme and si…
dgarske Nov 17, 2026
0f3d7d5
F-15792 - Verify fwTPM ECC signatures under the ECDSA scheme only
dgarske Nov 17, 2026
dc1388a
F-16135 - Load a KEYEDHASH sensitive area in fwTPM LoadExternal
dgarske Nov 17, 2026
3289819
F-16130 - Fill the fwTPM CreatePrimary creationData from the command …
dgarske Nov 17, 2026
dbf7c25
F-16131 - Fill the fwTPM Create creationData with the parent nameAlg …
dgarske Nov 17, 2026
531d27e
F-17126 - Describe the key scheme precedence in the fwTPM sign scheme…
dgarske Nov 17, 2026
e4120e9
F-16816 - Name bits 8-23 as the burst count in the fwTPM TIS STS comm…
dgarske Nov 17, 2026
1e6cd76
F-16102 - Fix the digest named in the fwTPM TPM_MAX_DIGEST_SIZE comment
dgarske Nov 17, 2026
8480a39
F-16103 - Document the error codes FWTPM_Init returns
dgarske Nov 17, 2026
b4bae66
F-18062 - Document the OP-TEE storage rollback protection the fwTPM p…
dgarske Nov 17, 2026
9a49e29
F-18002 - Describe the fwTPM NV clock entry as a Clock checkpoint
dgarske Nov 17, 2026
d186bd4
F-16105 - Document TPM_RC_HIERARCHY for an unknown hierarchy in FWTPM…
dgarske Nov 17, 2026
3032b51
F-16108 - Correct the ML-DSA signature sizes in the fwTPM TIS FIFO si…
dgarske Nov 17, 2026
efac178
F-16210 - Test the fwTPM StartAuthSession nonce size and tpmKey checks
dgarske Nov 17, 2026
05cf6f2
F-16203 - Test the fwTPM PolicyAuthorize ticket HMAC and approvedPoli…
dgarske Nov 17, 2026
5cd3ba4
F-16202 - Test that fwTPM VerifySignature rejects a changed digest or…
dgarske Nov 17, 2026
39fb81c
F-16201 - Test the fwTPM PolicySigned signature and expiration checks
dgarske Nov 17, 2026
4d7da8c
F-16207 - Test fwTPM NV access with platformAuth and against an index…
dgarske Nov 17, 2026
2768e7c
F-16209 - Test that fwTPM SignDigest rejects a forged or mismatched h…
dgarske Nov 17, 2026
aeb07b0
F-16200 - Test the fwTPM policy command code, name hash and NV writte…
dgarske Nov 17, 2026
da33005
F-16205 - Test that fwTPM Clear returns TPM_RC_DISABLED while disable…
dgarske Nov 17, 2026
311dadb
F-16204 - Test the fwTPM HierarchyControl authorization and disabled …
dgarske Nov 17, 2026
d09b7bd
F-16206 - Test the fwTPM Import outer integrity check
dgarske Nov 17, 2026
a92db4f
F-16211 - Test the fwTPM TIS FIFO and status gates from a non-owning …
dgarske Nov 17, 2026
ced38e8
Let only platformAuth re-enable Clear in fwTPM ClearControl
dgarske Nov 18, 2026
c120557
Return TPM_RC_NONCE for a fwTPM PolicySigned nonceTPM mismatch
dgarske Nov 18, 2026
e22f19f
Hash the fwTPM PolicySigned aHash with the signature hash algorithm
dgarske Nov 18, 2026
389555e
Accept a fwTPM HierarchyControl that enables an already enabled hiera…
dgarske Nov 18, 2026
773eb8a
Reject a fwTPM attestation inScheme that disagrees with the key scheme
dgarske Nov 18, 2026
ef10b4f
F-16226 - Track the Qualified Name of fwTPM objects
dgarske Nov 18, 2026
ad3836f
F-16837 - Support TPM_RH_NULL as the signHandle in fwTPM attestation …
dgarske Nov 18, 2026
242b6f4
Bound the fwTPM Create, CreateLoaded and CreatePrimary sensitive data…
dgarske Nov 18, 2026
91929cc
Use the caller key for a fwTPM SYMCIPHER object and require it to mat…
dgarske Nov 18, 2026
fb82cf2
Limit the fwTPM Create and CreatePrimary authValue to the nameAlg dig…
dgarske Nov 18, 2026
a41731a
Count a failed HMAC on a bound fwTPM session that authorizes no handl…
dgarske Nov 18, 2026
643af47
Skip the authorization area in fwTPM GetCapability, HashSequenceStart…
dgarske Nov 18, 2026
68731c8
Reject a fwTPM PCR selection that lists more than HASH_COUNT hash alg…
dgarske Nov 18, 2026
94fd4be
Size the fwTPM PCR auth NV record for the staged allocation and check…
dgarske Nov 18, 2026
415d296
Return the allocation failure from fwTPM FwComputeNvName before hashing
dgarske Nov 18, 2026
86523d0
Wipe the fwTPM DHKEM labeled extract scratch buffer that holds the EC…
dgarske Nov 18, 2026
61f2ae0
Pair wc_HmacInit and wc_HmacFree in the fwTPM context blob wrap and t…
dgarske Nov 18, 2026
ca751be
Bound the fwTPM FwCredentialWrap output by the size of the caller buffer
dgarske Nov 18, 2026
2a04033
Release the saved-context slot when a fwTPM session ContextSave canno…
dgarske Nov 18, 2026
f78378d
Wipe the fwTPM NV integrity key buffer when the HAL key callback fails
dgarske Nov 18, 2026
ad8898d
Fail the fwTPM NV journal load and save when the HAL integrity key ca…
dgarske Nov 18, 2026
cd1bb66
Count a failed HMAC on a DA bound fwTPM session after its bind handle…
dgarske Nov 18, 2026
aed0aa7
Limit a caller-supplied fwTPM KEYEDHASH sign or decrypt key to the sc…
dgarske Nov 18, 2026
c15e701
Keep the allocation failure and skip the HMAC free in fwTPM FwCompute…
dgarske Nov 18, 2026
c86cab9
Return the allocation failure from fwTPM FwCredentialWrap before encr…
dgarske Nov 18, 2026
6dded9a
Keep the fwTPM append-only NV granule state when the compaction erase…
dgarske Nov 18, 2026
ca767f3
Refuse a fwTPM session bound to a DA protected entity in every slot d…
dgarske Nov 18, 2026
f6174d8
Describe fwTPM FWTPM_NV_MAX_ENTRY as the initial NV entry buffer size
dgarske Nov 18, 2026
4baa186
Initialize the fwTPM HMAC sequence context in HMAC_Start before setti…
dgarske Nov 18, 2026
5b14651
Check the NV marshal results for the PCR auth record in fwTPM FWTPM_N…
dgarske Nov 18, 2026
7a7ca76
Free the fwTPM credential and wrap key AES and HMAC contexts only aft…
dgarske Nov 18, 2026
92c1f35
Verify an empty HMAC from a fwTPM HMAC session instead of refusing it…
dgarske Nov 18, 2026
07bc7c7
Store a seedValue in fwTPM objects and their private blobs and records
dgarske Nov 19, 2026
b1aa0b1
Keep the seedValue of an imported or externally loaded fwTPM object
dgarske Nov 19, 2026
8100312
Give fwTPM created objects a seedValue and compute unique from it
dgarske Nov 19, 2026
22c82c5
Check unique of an external SYMCIPHER key in fwTPM LoadExternal
dgarske Nov 19, 2026
62c7376
Derive a seedValue for fwTPM primary storage keys from the hierarchy …
dgarske Nov 19, 2026
e8ed443
Compute unique of a fwTPM KEYEDHASH or SYMCIPHER primary from a seedV…
dgarske Nov 19, 2026
5f0a156
Report an allocation failure from the fwTPM restricted key unique HMAC
dgarske Nov 19, 2026
cb8feba
Size the fwTPM private blob buffers for a full authValue and seedValue
dgarske Nov 19, 2026
0ad6949
Test the fwTPM Import rejections of a seedValue of the wrong size
dgarske Nov 19, 2026
c5afbbb
Add the session number to fwTPM session attribute response codes
dgarske Nov 24, 2026
04175d3
Apply the global NV write lock flag of an older fwTPM image on load
dgarske Nov 24, 2026
8d622aa
Reject a LoadExternal sensitive type that differs from the public type
dgarske Nov 24, 2026
0ad8f31
Use FwDupOuterWrap for the outer wrap in fwTPM Rewrap
dgarske Nov 24, 2026
9319043
Add the session number to fwTPM authorization failure codes
dgarske Nov 24, 2026
e596618
Return the parameter number with a fwTPM Load type mismatch
dgarske Nov 24, 2026
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
2 changes: 1 addition & 1 deletion docs/fwtpm/hal-and-porting.md
Original file line number Diff line number Diff line change
Expand Up @@ -95,7 +95,7 @@ FWTPM_NV_SetHAL(&ctx, &hal); /* before FWTPM_Init() */

In append-only mode the journal buffers a pending program granule internally and flushes full, aligned granules through `write()`. A programmed cell is never rewritten, and a whole sector is erased only on compaction. The header sector is therefore not erased on every append, and a torn final commit (for example from power loss) is ignored on the next load while all previously committed state survives.

A `get_integrity_key` callback is strongly recommended on flash, so the MAC checkpoints authenticate the journal and reject a torn or tampered tail. Setting `writeAlign <= 1` selects no buffering, so byte-writable NV (EEPROM or FRAM) works with a plain `write()`.
A `get_integrity_key` callback is strongly recommended on flash, so the MAC checkpoints authenticate the journal and reject a torn or tampered tail. When the callback returns an error or a zero-length key, `FWTPM_Init()` and NV saves fail instead of running without the MAC. Setting `writeAlign <= 1` selects no buffering, so byte-writable NV (EEPROM or FRAM) works with a plain `write()`.

!!! warning
Compaction still erases the whole region before rewriting, so a power loss during compaction itself remains a vulnerable window. A future two-region ping-pong layout would close it.
Expand Down
2 changes: 1 addition & 1 deletion examples/management/da_check.c
Original file line number Diff line number Diff line change
Expand Up @@ -169,7 +169,7 @@ int TPM2_DA_Check_Example(void* userCtx, int argc, char *argv[])
daSaved = 1;

wolfTPM2_SetAuthPassword(&dev, 0, NULL);
rc = wolfTPM2_DictionaryAttackParameters(&dev, 3, 0, 0);
rc = wolfTPM2_DictionaryAttackParameters(&dev, 3, 1000, 0);
if (rc != 0) goto exit;

/* Bad auth until lockout. */
Expand Down
Loading
Loading