Skip to content

Commit 73f05c8

Browse files
degjorvaendre-nordic
authored andcommitted
nrf_security: cracen: Fix ed25519ph sign bug
ed25519ph would return PSA_ERROR_NOT_SUPPORTED Signed-off-by: Dag Erik Gjørvad <[email protected]>
1 parent be8a037 commit 73f05c8

File tree

1 file changed

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

1 file changed

+2
-2
lines changed

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -371,8 +371,8 @@ static psa_status_t cracen_signature_ecc_sign(bool is_message,
371371
return PSA_ERROR_BUFFER_TOO_SMALL;
372372
}
373373

374-
if (alg == PSA_ALG_PURE_EDDSA && (IS_ENABLED(CONFIG_PSA_WANT_ALG_ED25519PH) ||
375-
IS_ENABLED(CONFIG_PSA_WANT_ALG_PURE_EDDSA))) {
374+
if ((alg == PSA_ALG_PURE_EDDSA && IS_ENABLED(CONFIG_PSA_WANT_ALG_PURE_EDDSA)) ||
375+
(alg == PSA_ALG_ED25519PH && IS_ENABLED(CONFIG_PSA_WANT_ALG_ED25519PH))) {
376376
return handle_eddsa_sign(is_message, attributes, key_buffer, alg, signature, input,
377377
input_length, ecurve, signature_length);
378378
} else if (PSA_ALG_IS_ECDSA(alg) && (IS_ENABLED(CONFIG_PSA_WANT_ALG_ECDSA) ||

0 commit comments

Comments
 (0)