1 (edited by Sharklasers 2019-06-03 05:58:46)

Topic: [SOLVED] build error in wolfssl/wolfcrypt/settings.h

Hello, being new to wolfSSL and this forum I could not find any helpful clue as
to solving the following build error:

/usr/local/stow/riscv64-unknown-elf-gcc/bin/riscv64-unknown-elf-gcc -DWOLFSSL_USER_SETTINGS -DIPADDR="" -DNETMASK="" -g -ffunction-sections -fdata-sections -march=rv32imac -mabi=ilp32 -mcmodel=medany -msmall-data-limit=8 -mdiv -Os -I. -I../ext/multizone -I../ext/picotcp/build/include -I../ext/wolfssl -I../bsp/X300 -c -o main.o main.c
In file included from main.c:18: ../ext/wolfssl/wolfssl/wolfcrypt/settings.h:1698:10: error: #error "FFDHE parameters are too large for FP_MAX_BIT as set"

The build is a subsidiary build with the enclosing one being a build of the IoT stack by Hex Five. I can build wolfSSL
in a stand-alone fashion without any problem. Toolchain is the RISC-V GNU toolchain supplied by SiFive.



Re: [SOLVED] build error in wolfssl/wolfcrypt/settings.h

Hi Sharklasers,

Can you tell us what the project is and for whom? If you can not share details on a public forum please contact us via support@wolfssl.com, we would enjoy learning more about your project and end goals.

The error is telling you to configure FP_MAX_BITS to be larger. That define should be set to the largest key size time 2 so for RSA-4096 bit you would want to set it to 8192, if the largest key is DH-2048-bit then set it to 4096 and so on. Configure with

CFLAGS="<other flags> -DFP_MAX_BITS=8192"

(for example)



Re: [SOLVED] build error in wolfssl/wolfcrypt/settings.h

Thx, I could solve it along those lines.