6 years, 2 months ago.

NRF52 encryption and decryption-error MBEDTLS_ERR_CTR_DRBG_ENTROPY_SOURCE_FAILED...

I want to use mbedtls_pk_encrypt to encrypt data.while executing mbedtls_ctr_drbg_seed function it gives return code 0x0034 ie MBEDTLS_ERR_CTR_DRBG_ENTROPY_SOURCE_FAILED... I think because of that I cant decrypt data.. please suggest some solution.

Used function as- mbedtls_ctr_drbg_seed(&ctr_drbg, mbedtls_entropy_func, &entropy,(const unsigned char*)"RANDOM_GEN", 10);

Be the first to answer this question.