Skip to content

Commit fd56f68

Browse files
committed
Guard verify-only ticket helper
1 parent ceeab36 commit fd56f68

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

src/fwtpm/fwtpm_command.c

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16229,6 +16229,7 @@ static TPM_RC FwSignSeqInitMldsaMuCtx(FWTPM_SignSeq* seq,
1622916229
return rc;
1623016230
}
1623116231

16232+
#ifdef WOLFTPM_MLDSA_VERIFY
1623216233
/* Start the HMAC for a MESSAGE_VERIFIED ticket. SequenceUpdate streams the
1623316234
* raw message into this context and VerifySequenceComplete appends keyName. */
1623416235
static TPM_RC FwSignSeqInitTicketHmac(FWTPM_CTX* ctx, FWTPM_SignSeq* seq,
@@ -16271,6 +16272,7 @@ static TPM_RC FwSignSeqInitTicketHmac(FWTPM_CTX* ctx, FWTPM_SignSeq* seq,
1627116272
TPM2_ForceZero(proof, sizeof(proof));
1627216273
return (rc == 0) ? TPM_RC_SUCCESS : TPM_RC_FAILURE;
1627316274
}
16275+
#endif /* WOLFTPM_MLDSA_VERIFY */
1627416276

1627516277
static TPM_RC FwValidateSignatureContext(const FWTPM_Object* obj,
1627616278
UINT16 contextSz)

0 commit comments

Comments
 (0)