tpm2: Add missing break statement

Add a missing break statement that was forgotten in recent
commit b389781f49.

Signed-off-by: Stefan Berger <stefanb@linux.ibm.com>
This commit is contained in:
Stefan Berger 2024-09-11 16:14:49 -04:00 committed by Stefan Berger
parent c7baa7e1ac
commit 46548da8ed

View File

@ -1540,15 +1540,16 @@ CryptSign(OBJECT* signKey, // IN: signing key
case TPM_ALG_RSA:
case TPM_ALG_ECC:
if (signScheme->details.any.hashAlg == TPM_ALG_SHA1 &&
RuntimeProfileRequiresAttributeFlags(&g_RuntimeProfile,
RuntimeProfileRequiresAttributeFlags(&g_RuntimeProfile,
RUNTIME_ATTRIBUTE_NO_SHA1_SIGNING))
return TPM_RC_HASH;
break;
case TPM_ALG_KEYEDHASH:
if (signScheme->details.any.hashAlg == TPM_ALG_SHA1 &&
RuntimeProfileRequiresAttributeFlags(&g_RuntimeProfile,
RuntimeProfileRequiresAttributeFlags(&g_RuntimeProfile,
RUNTIME_ATTRIBUTE_NO_SHA1_HMAC_CREATION))
return TPM_RC_HASH;
break;
break;
} // libtpms added end
// perform sign operation based on different key type