From 254cadac7027e7f5d8aca9c19868ba2ab54f504c Mon Sep 17 00:00:00 2001 From: Waleed Elmelegy Date: Tue, 11 Mar 2025 12:27:34 +0000 Subject: [PATCH] Replace zero by PSA_ALG_NONE in key derivation internal functions Signed-off-by: Waleed Elmelegy --- library/psa_crypto.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/library/psa_crypto.c b/library/psa_crypto.c index 55eadc489a..b01f948fac 100644 --- a/library/psa_crypto.c +++ b/library/psa_crypto.c @@ -4751,7 +4751,7 @@ static psa_status_t psa_key_derivation_input_internal( psa_status_t status; psa_algorithm_t kdf_alg = psa_key_derivation_get_kdf_alg(operation); - if (kdf_alg == 0) { + if (kdf_alg == PSA_ALG_NONE) { /* This is a blank or aborted operation. */ status = PSA_ERROR_BAD_STATE; goto exit;