Topic: INIT_MP_INT_SIZE failed.

when i try to wolfSSL_connect on mips static build

processing certificate
wolfSSL Entering DoCertificate
wolfSSL Entering ProcessPeerCerts
Loading peer's cert chain
        Put another cert into chain
Verifying Peer's cert
Getting Cert Name
Getting Cert Name
wolfSSL Entering GetAlgoId
CA found
wolfSSL Entering ConfirmSignature
INIT_MP_INT_SIZE failed.
wolfSSL Leaving ConfirmSignature, return -155
Confirm signature failed
Failed to verify Peer's cert
        fatal cert error

i load CA's with
wolfSSL_CTX_load_verify_buffer(ctx, myca, sizeof(myca), WOLFSSL_FILETYPE_PEM) != SSL_SUCCESS)

Share

Re: INIT_MP_INT_SIZE failed.

Hi ?,

That error typically means that you have not built wolfSSL with a large enough math big integer size. What size RSA key are you using?

To cover all math options add FP_MAX_BITS (max*2) and SP_INT_BITS (max). If you are using only the SP (Single Precision math) we only support 2048, 3072 and 4096, however for 4096 you need to add WOLFSSL_SP_4096.

If you can share the build settings you used (either configure or user_settings.h) that would help us provide you the best recommendation.

Thanks,
David Garske, wolfSSL

Share