Hi,
I'm working on an mimx1170-evk and I'm currently facing an issue with ECDH.
In mbedtls configuration file (ksdk_mbedtls.config.h) I've enabled the curve secp521r1 (#define MBEDTLS_ECP_DP_SECP521R1_ENABLED) and with this curve I get an error when I call the function "mbedtls_ecdh_calc_secret".
This error doesn't happen with the other curves and if I remove the CAAM acceleration (remove CRYPTO_USE_CAAM from project defines) everything works fine. From what I can see, with this curve there is an error in the computation of the public key.
Have you never seen this?
Is there any known limit about the usage of secp521r1 curve?
Thanks
Emiliano
Solved! Go to Solution.
Hello Emiliano,
Thanks for your patience with this thread. This issue was captured during the MbedTLS update to version 2.26.0. It's caused by a missing A parameter in our ECP alt implementation. The fix will be included in future releases of the SDK.
Regards,
Victor
Thank you so much!
Hello Emiliano,
I'm checking this internally, I will provide you an update as soon as possible.
Regards,
Victor
Hello Emiliano,
Thanks for your patience with this thread. This issue was captured during the MbedTLS update to version 2.26.0. It's caused by a missing A parameter in our ECP alt implementation. The fix will be included in future releases of the SDK.
Regards,
Victor