Skip to content

Commit d0c5466

Browse files
andrei-hadadearlubos
authored andcommitted
nrf_security: CRACEN: Error check for invalid curve.
Jira: NCSDK-35645 Signed-off-by: Andrei Urs-Hadadea <[email protected]>
1 parent ff9852f commit d0c5466

File tree

1 file changed

+3
-0
lines changed
  • subsys/nrf_security/src/drivers/cracen/cracenpsa/src

1 file changed

+3
-0
lines changed

subsys/nrf_security/src/drivers/cracen/cracenpsa/src/sign.c

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -293,6 +293,9 @@ static psa_status_t cracen_signature_ecc_sign(bool is_message,
293293
status = cracen_ecc_get_ecurve_from_psa(
294294
PSA_KEY_TYPE_ECC_GET_FAMILY(psa_get_key_type(attributes)),
295295
psa_get_key_bits(attributes), &ecurve);
296+
if (status != PSA_SUCCESS) {
297+
return status;
298+
}
296299

297300
status = validate_signing_conditions(is_message, alg, attributes, ecurve->sz,
298301
signature_size);

0 commit comments

Comments
 (0)