mirror of
https://github.com/Mbed-TLS/mbedtls.git
synced 2025-07-30 22:43:08 +03:00
Add pbkdf2_hmac to is_kdf_alg_supported()
Signed-off-by: Kusumit Ghoderao <Kusumit.Ghoderao@silabs.com>
This commit is contained in:
committed by
Kusumit Ghoderao
parent
af0b534256
commit
d132cacb38
@ -5890,6 +5890,11 @@ static int is_kdf_alg_supported(psa_algorithm_t kdf_alg)
|
|||||||
if (kdf_alg == PSA_ALG_TLS12_ECJPAKE_TO_PMS) {
|
if (kdf_alg == PSA_ALG_TLS12_ECJPAKE_TO_PMS) {
|
||||||
return 1;
|
return 1;
|
||||||
}
|
}
|
||||||
|
#endif
|
||||||
|
#if defined(MBEDTLS_PSA_BUILTIN_ALG_PBKDF2_HMAC)
|
||||||
|
if (PSA_ALG_IS_PBKDF2_HMAC(kdf_alg)) {
|
||||||
|
return 1;
|
||||||
|
}
|
||||||
#endif
|
#endif
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user