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

How to call micro ecc functions in sdk12.2 ?

The micro ecc works well in sdk11.0. However, after I recompile micro ecc in sd12.2, micro ecc can't work in S132 3.0.

I append micro Ecc functions to the Uart Demo in SDK12.2, the source as follow:

void testecc(void) {

	uint8_t sk[32];
	uint8_t pk[64];
	ecc_init (true);
	NRF_LOG_INFO("----------ECC Begins-------------\r\n");
	NRF_LOG_FLUSH();
	uint32_t err_code = ecc_p256_keypair_gen(sk,pk);
	APP_ERROR_CHECK(err_code);
	NRF_LOG_INFO("Private Key:\r\n");
	NRF_LOG_FLUSH();
	NRF_LOG_HEXDUMP_INFO(sk,32);
	NRF_LOG_FLUSH();
	NRF_LOG_INFO("Public Key:\r\n");
	NRF_LOG_HEXDUMP_INFO(pk,64);
	NRF_LOG_FLUSH();

}

I found ecc_init works well , however, there was no response after ecc_p256_keypair_gen().

Is there anyone know what's wrong ?

Thanks,

Eric

Parents Reply Children
No Data
Related