From d132cacb38a4dc6e05d110887ecbd69c10cd2634 Mon Sep 17 00:00:00 2001 From: Kusumit Ghoderao Date: Wed, 3 May 2023 12:00:27 +0530 Subject: [PATCH] Add pbkdf2_hmac to is_kdf_alg_supported() Signed-off-by: Kusumit Ghoderao --- library/psa_crypto.c | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/library/psa_crypto.c b/library/psa_crypto.c index 6c7f2b0ec..46b957874 100644 --- a/library/psa_crypto.c +++ b/library/psa_crypto.c @@ -5890,6 +5890,11 @@ static int is_kdf_alg_supported(psa_algorithm_t kdf_alg) if (kdf_alg == PSA_ALG_TLS12_ECJPAKE_TO_PMS) { return 1; } +#endif +#if defined(MBEDTLS_PSA_BUILTIN_ALG_PBKDF2_HMAC) + if (PSA_ALG_IS_PBKDF2_HMAC(kdf_alg)) { + return 1; + } #endif return 0; }