Hey Avenuti,
I am able to reproduce the error with normal math and ECC-521 on that board. I was then also able to reproduce on my Mac with 32-bit mode (-m32) and NO_64BIT defined. Happens with or without ECC_TIMING_RESISTANT.
This failure only happens on 32-bit systems with normal math. Until then please use fast math with ECC-521.
For reference the error is:
"ecc_test_curve_size 66 failed!: -1023
ECC test failed!
error = -1023"
The error is happening inside the "ecc_check_pubkey_order" function, which returns -215 (ECC_INF_E).
We are investigating the cause and will let you know when we have a resolution. Thanks again for the report!
Thanks, David Garske, wolfSSL