You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Safeguard `cracen_signature_set_hashalgo_from_digestsz()`
and `cracen_signature_set_hashalgo()` inside `PSA_MAX_RSA_KEY_BITS > 0`.
Safeguard `can_sign()` inside
> CONFIG_PSA_WANT_ALG_PURE_EDDSA || `CONFIG_PSA_WANT_ALG_ED25519PH ||
> CONFIG_PSA_WANT_ALG_ECDSA || CONFIG_PSA_WANT_ALG_HMAC
All calls to `cracen_signature_set_hashalgo()` and
`cracen_signature_set_hashalgo_from_digestsz()` are safeguarded in
`PSA_MAX_RSA_KEY_BITS > 0` resulting in unused function warning because
those static functions will never be used when the condition is not met.
Similar for calls to `can_sign()`.
Fixes:
> ...subsys/nrf_security/src/drivers/cracen/cracenpsa/src/sign.c:41:12:
> warning: unused function
> 'cracen_signature_set_hashalgo' [-Wunused-function]
> 41 | static int cracen_signature_set_hashalgo(...
> | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~
> 1 warning generated.
> ...subsys/nrf_security/src/drivers/cracen/cracenpsa/src/sign.c:46:12:
> warning: unused function
> 'cracen_signature_set_hashalgo_from_digestsz' [-Wunused-function]
> 46 | static int cracen_signature_set_hashalgo_from_digestsz(...
> | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
> 1 warning generated.
> ...subsys/nrf_security/src/drivers/cracen/cracenpsa/src/kmu.c:297:13:
> warning: unused function 'can_sign' [-Wunused-function]
> 297 | static bool can_sign(const psa_key_attributes_t *key_attr)
> | ^~~~~~~~
> 1 warning generated.
Signed-off-by: Torsten Rasmussen <[email protected]>
0 commit comments