2382586_en-US

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

2382586_en-US

2382586_en-US

Generate Private RSA key Inside SE052

I use SE052 Secuere element IC.
I create zephyr based sample application which is generates RSA private key inside SE052.
But face the issue to generate new private RSA key, check this logs and fix it.
I want to Generate RSA key inside SE052 which can be use for TLS handshake process.

board is ESP32c3devkitm.
Zephyr RTOS version is 3.7.0 and TLS handshake v.1.2 is use.
I attach also sample application and logs with you. Please suggest how to generate RSA key.
@Kan_Li 
Logs are in .c file key_generation_failed.c file 

A71CHSE050Re: Generate Private RSA key Inside SE052

Hi @MohitGediya ,


Please use Se05x_API_WriteRSAKey() to generate the RSA key, the sample code can be something like below:

status = Se05x_API_WriteRSAKey(pSe05xSession,
(Se05xPolicy_t *)&policy_for_auth_obj,
RSA_ATTESTATION_KEY_ID,
2048,
SE05X_RSA_NO_p,
SE05X_RSA_NO_q,
SE05X_RSA_NO_dp,
SE05X_RSA_NO_dq,
SE05X_RSA_NO_qInv,
SE05X_RSA_NO_pubExp,
SE05X_RSA_NO_priv,
SE05X_RSA_NO_pubMod,
kSE05x_INS_NA,
kSE05x_KeyPart_Pair,
kSE05x_RSAKeyFormat_CRT);


Please assign proper policy to the key pair, especially no disabling the deletion, otherwise the key can not be removed any more.


Have a great day,
Kan


-------------------------------------------------------------------------------
Note:
- If this post answers your question, please click the "Mark Correct" button. Thank you!
- We are following threads for 7 weeks after the last post, later replies are ignored
Please open a new thread and refer to the closed one, if you have a related question at a later point in time.
-------------------------------------------------------------------------------

Re: Generate Private RSA key Inside SE052

Please reply MbedTLS Server connection with client using SE052 MbedTLS v.1.2 handshake @Kan_Li 

Re: Generate Private RSA key Inside SE052

Function defination of called function is in last and it's comment for your reference.
Is there any issue about associated keyID?
Or APDU command header.
Can i generate only private key or key_pair in any format. There is no issue about type.
I just want any type of private RSA key inside SE052. 

标记 (1)
无评分
版本历史
最后更新:
4 小时之前
更新人: