Topic: USE_FAST_MATH required for MakeCertReq?
I'm trying to create a certificate request and started with trying to copy/paste out of test.c (like the manual says).
I have the cert and key initialized with InitCert and InitRsaKey respectively.
Then I call MakeCertReq and it goes into an infinite loop. Further investigation puts the problem in SetRsaPublicKey where mp_leading_bit is called (and never returns). It appears the issue is that the mp_int members of the RsaKey structure aren't initialized completely if USE_FAST_MATH isn't defined. mp_leading_bit uses the whole mp_int structure to find the leading bit and InitRsaKey doesn't do that if USE_FAST_MATH isn't defined.
USE_FAST_MATH seems to be a good "default" option to have on (larger) platforms that can handle it (like Windows). I'm using Windows (for now), so I'm surprised USE_FAST_MATH isn't on by default. Am I missing something? Do I have "include header" issues like https://www.wolfssl.com/forums/topic817 … hing.html?