This post is older than 2 years and might not be relevant anymore
More Info: Consider searching for newer posts

RSA library in nrf_crypto

HI

I need to perform some RSA tasks on my NRF52832, but I don't see any RSA files under nrf_crypto folder of SDK v16. I am trying to use RSA from mbedtls external folder by adding following into makefile that is provided in cli as an experiment.

  $(SDK_ROOT)/external/mbedtls/library/rsa.c \
  $(SDK_ROOT)/external/mbedtls/library/entropy.c \

But it still failed to find it even though I can see rsa.o is being generated in _build folder.

implicit declaration of function 'mbedtls_rsa_init'; did you mean 'mbedtls_md_init'? [-Werror=implicit-function-declaration]
  324 |  mbedtls_rsa_init( &rsa, MBEDTLS_RSA_PKCS_V15, 0 );
      |  ^~~~~~~~~~~~~~~~
      |  mbedtls_md_init
cc1.exe: all warnings being treated as errors

Is this the right way to hook up RSA functionality for NRF52832?

Thanks

Related