Skip to content

Commit 53c555d

Browse files
frkvbjarki-andreasen
authored andcommitted
crypto: PSA core lite addition: Disable verify-message fallback
-Adding an ifdef to prevent call to psa_verfy_message_builtin. This API is only possible to use in a full PSA core and is unnecessary when the driver(s) provides explict support for verify message ref: NCSDK-30323 Signed-off-by: Frank Audun Kvamtrø <[email protected]>
1 parent 31ff2f8 commit 53c555d

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

subsys/nrf_security/src/psa_crypto_driver_wrappers.c

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -303,11 +303,15 @@ psa_status_t psa_driver_wrapper_verify_message(const psa_key_attributes_t *attri
303303
break;
304304
}
305305

306+
#if defined(CONFIG_PSA_CORE_LITE)
307+
return PSA_ERROR_NOT_SUPPORTED;
308+
#else
306309
/* Call back to the core with psa_verify_message_builtin.
307310
* This will in turn forward this to use psa_crypto_driver_wrapper_verify_hash
308311
*/
309312
return psa_verify_message_builtin(attributes, key_buffer, key_buffer_size, alg, input,
310313
input_length, signature, signature_length);
314+
#endif
311315
}
312316

313317
psa_status_t psa_driver_wrapper_sign_hash(const psa_key_attributes_t *attributes,

0 commit comments

Comments
 (0)