mbedtls PBKDF2: Activating function in prj.conf is not possible

Hello,

I want to use the function mbedtls_pkcs5_pbkdf2_hmac which can be found in mbedtls\library\pkc5s.c.

There is a compiler switch named  MBEDTLS_PKCS5_C which activates this function.

I thougt if I set the following configurations in prj.conf the function would be available for compiling my code. But it is not:

CONFIG_MBEDTLS=y
CONFIG_MBEDTLS_PKCS5_C=y
CONFIG_MBEDTLS_ENABLE_HEAP=y
CONFIG_MBEDTLS_HEAP_SIZE=8192


If I uncomment MBEDTLS_PKCS5_C in file pkc5s.c it is working as intended.
Should this be activated in another way? There is also a config-file called: nrf-config-user.h Should I use this instead? If yes, how?
I am using nrf connect v2.0.0.
Regards
Jan
Related