PN7642 mbedtls_demo – Crash on APP_ECDSA() (mbedtls_ecdsa_sign)

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

PN7642 mbedtls_demo – Crash on APP_ECDSA() (mbedtls_ecdsa_sign)

873 次查看
pberveiller
Contributor II

Hello,

I'm encountering an issue with the mbedtls_demo project. The program crashes when calling the APP_ECDSA() function, specifically during the mbedtls_ecdsa_sign call.

I am not using the key store, and I'm calling APP_InitMbedCrypto() at the begin (cf FAQ AN13936)

All other functions in the demo are working perfectly.

Do you have any idea what could be causing this?

Best regards,

0 项奖励
回复
4 回复数

785 次查看
pberveiller
Contributor II

Hello, thank you for you reply.  

I just want to run the example from the PN7642 SDK.

In second time, I will use the keystore .

I share you the init function.

pberveiller_0-1746774911786.png

 

0 项奖励
回复

832 次查看
jimmychan
NXP TechSupport
NXP TechSupport

What key you are using for ECDSA signing?

0 项奖励
回复

823 次查看
pberveiller
Contributor II

Hello, I user the demo project included in the SDK of PN7642.

The program crashes  for all keys: 

static const struct

{

mbedtls_ecp_group_id id;

const char *name;

uint16_t keySize;

} ecpInfo[] = {

{

MBEDTLS_ECP_DP_SECP256R1,

"SECP256R1",

256 / 8,

},

{

MBEDTLS_ECP_DP_SECP384R1,

"SECP384R1",

384 / 8,

},

{

MBEDTLS_ECP_DP_BP256R1,

"BP256R1",

256 / 8,

},

{

MBEDTLS_ECP_DP_BP384R1,

"BP384R1",

384 / 8,

}

};

 

Regards.

标记 (2)
0 项奖励
回复

789 次查看
jimmychan
NXP TechSupport
NXP TechSupport

Please try the key store first.  If you want to use cryptographic operations with the key store you have to initialize it first. Please have a look at PN76_Sys_KeyStore_Init in our mbedTls demo application.

0 项奖励
回复