Mbedtls on imxrt1176 : ECDH error with curve secp521r1

取消
显示结果 
显示  仅  | 搜索替代 
您的意思是: 
已解决

Mbedtls on imxrt1176 : ECDH error with curve secp521r1

跳至解决方案
2,334 次查看
emilianocarnati
Contributor II

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

0 项奖励
回复
1 解答
2,287 次查看
victorjimenez
NXP TechSupport
NXP TechSupport

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 

在原帖中查看解决方案

3 回复数
2,265 次查看
emilianocarnati
Contributor II

Thank you so much!

 

0 项奖励
回复
2,322 次查看
victorjimenez
NXP TechSupport
NXP TechSupport

Hello Emiliano,

I'm checking this internally, I will provide you an update as soon as possible. 

Regards,
Victor 

0 项奖励
回复
2,288 次查看
victorjimenez
NXP TechSupport
NXP TechSupport

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