Topic: [SOLVED] Making an RSA key using wc_MakeRsaKey never stops
Hi
I appreciate your help. I am running a very basic RSA code snippet on STM32F7xx. But it is stuck at wc_MakeRsaKey and never stops. Here is the code:
int ret;
size_t bytes;
WC_RNG rng;
RsaKey key;
/* initialize stack structures */
XMEMSET(&rng, 0, sizeof(rng));
XMEMSET(&key, 0, sizeof(key));
bytes = (size_t)sizeof_client_key_der_2048;
ret = wc_InitRsaKey(&key, NULL);
ret = wc_InitRng(&rng);
ret = wc_MakeRsaKey(&key, 1024, 65537, &rng);