Topic: Infinite Loop for MakeRsaKey()

I am trying to make an RSA key and my program gets into an infinite loop when it gets to the
sp_prime_miller_rabin(const sp_int* a, sp_int* b, int* result, sp_int* n1, sp_int* r)  function. The function at the end checks that the y and n1 arrays are equal to each other (y is a pointer to the parameter b in this case) and if they are equal then the function will set *result to the correct value needed for the program to continue. But for me they never equal to each other so it sets *result to MP_NO and that just causes my program to be stuck in an infinite loop. Any help would be appreciated. Thanks.

Share

Re: Infinite Loop for MakeRsaKey()

HI DJ3434,

My name is Anthony and I am a member of the wolfSSL team.

This is an interesting result you are seeing. Its very odd and I've never seen such a report.  Do you have a simple example application that shows this behaviour?

Warm regards, Anthony

Share

Re: Infinite Loop for MakeRsaKey()

DJ3434,

May I ask if your interest in wolfSSL is professional, academic or person?  If you are concerned about confidentiality you can submit more information via support@wolfssl.com .

Warm regards, Anthony

Share