Skip to content

tpm2: Add missing check for disallowed SHA1 HMAC creation#573

Merged
stefanberger merged 1 commit intomasterfrom
master.next
Mar 19, 2026
Merged

tpm2: Add missing check for disallowed SHA1 HMAC creation#573
stefanberger merged 1 commit intomasterfrom
master.next

Conversation

@stefanberger
Copy link
Copy Markdown
Owner

CryptSelectMac is called (only) from TPM2_HMAC and TPM2_Mac_Start and needs to check whether the creation of an HMAC with SHA1 is not allowed per the profile attribute no-sha1-hmac-creation and/or no-sha1-hmac.

CryptSelectMac is called (only) from TPM2_HMAC and TPM2_Mac_Start and needs
to check whether the creation of an HMAC with SHA1 is not allowed per the
profile attribute no-sha1-hmac-creation and/or no-sha1-hmac.

Signed-off-by: Stefan Berger <stefanb@linux.ibm.com>
@stefanberger stefanberger merged commit de20bf4 into master Mar 19, 2026
4 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant