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.
Please post questions or comments you have about wolfSSL products here. It is helpful to be as descriptive as possible when asking your questions.
ReferencesStable Releases - download stable product releases.
Development Branch - latest development branch on GitHub.
wolfSSL Manual - wolfSSL (formerly CyaSSL) product manual and API reference.