mirror of
https://github.com/stefanberger/libtpms
synced 2026-08-10 04:57:38 +00:00
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:
parent
c7baa7e1ac
commit
46548da8ed
@ -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
|
||||
|
||||
Loading…
Reference in New Issue
Block a user