Topic: [SOLVED] --enable-fastmath Segmentation fault

Hello,

I try to run my 3072-bit RSA code with --enable-fastmath.
Resetting FP_MAX_BITS to 6144 or 8192 does not solve the segmentation fault. I tried resetting it through both tfm.h and -DFP_MAX_BITS=8192 flag.

Any help would be highly appreciated!

Olga

Share

Re: [SOLVED] --enable-fastmath Segmentation fault

Hi Olga,

How are you using RSA in your application?  Is this during an SSL/TLS connection or standalone?  Do you know where the segmentation fault is happening?

One thing to check, if you are compiling wolfSSL using the ./configure system, are you including <wolfssl/options.h> in your application before any other wolfSSL headers?  This will ensure that you application uses the same settings as how wolfSSL was compiled.

Thanks,
Chris

Re: [SOLVED] --enable-fastmath Segmentation fault

Hi Chris,

Including <wolfssl/options.h> fixed the problem.
My application was standalone and the segmentation fault happened by the InitRsaKey.

Thank you very much for your support!
Olga

Share

Re: [SOLVED] --enable-fastmath Segmentation fault

Hi Olga,

Glad to hear that fixed your problem!

Best Regards,
Chris