Hi Team,
We are using the nrf52840 soc for our application along with crypto engine (mbed TLS ) along with RNG, ECC, SHA256.
While validating the digital signature with SHA-256 for 1k data message, it is taking almost 6 sec time, same functionality with CC310 engine it is taking less than 1 sec.
Is there any way to optimize this execution time for mbed TLS engine.
We enabled the below macros in sdk_config.h file mbed TLS library, is that any macro is missing for this mbed TLS crypto engine or else we are enabled unwanted macros.
sdk_config.h file settings for mbedtls:
#define NRF_CRYPTO_BACKEND_MBEDTLS_ENABLED 1
#define NRF_CRYPTO_BACKEND_NRF_HW_RNG_MBEDTLS_CTR_DRBG_ENABLED 1
#define NRF_CRYPTO_BACKEND_NRF_HW_RNG_ENABLED 1
#define RNG_ENABLED 1
#define NRF_CRYPTO_RNG_AUTO_INIT_ENABLED 1
#define NRF_CRYPTO_RNG_STATIC_MEMORY_BUFFERS_ENABLED 1
#define NRFX_RNG_ENABLED 1
#define NRF_CRYPTO_BACKEND_MBEDTLS_HASH_SHA256_ENABLED 1
#define NRF_CRYPTO_BACKEND_MBEDTLS_ECC_SECP256R1_ENABLED 1
#define NRF_CRYPTO_BACKEND_CC310_RNG_ENABLED 0
#define NRF_CRYPTO_BACKEND_CC310_ENABLED 0
Regards,
Srinivas.V