How to save secure data to SE050

キャンセル
次の結果を表示 
表示  限定  | 次の代わりに検索 
もしかして: 

How to save secure data to SE050

ソリューションへジャンプ
2,588件の閲覧回数
namht
Contributor III

Hi all,

Currenly, i'm working with secure element SE050. 
I readed on SE050's datasheet and found content: "Secured user flash memory up to 50 kB for secure data or key storage".
My question: How to save/read my secure data to flash memory of SE050?

Thanks.

ラベル(1)
0 件の賞賛
返信
1 解決策
2,532件の閲覧回数
Kan_Li
NXP TechSupport
NXP TechSupport

Hi @namht ,

 

There is another demo called "se05x_GetCertificate". Please kindly refer to simw-top\demos\se05x\se05x_GetCertificate for details.

 

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.
-------------------------------------------------------------------------------

元の投稿で解決策を見る

7 返答(返信)
2,568件の閲覧回数
Kan_Li
NXP TechSupport
NXP TechSupport

Hi @namht ,

 

Binary file is a secure object supported by SE050, so you may create a file object at first and store your secure data into it, for example, the device certificate . We provide a demo of se05x_InjectCertificate for that purpose. You may find this demo within the MW: https://www.nxp.com/webapp/Download?colCode=SE05x-PLUG-TRUST-MW&appType=license .

 

Hope that helps,

 

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.
-------------------------------------------------------------------------------

2,539件の閲覧回数
namht
Contributor III
Hi Kan,
Thank you for reply.
I tried following the example, but i don't know how to read back it again.
I tried "sss_key_store_get_key()" and return status = kStatus_SSS_Fail
0 件の賞賛
返信
2,533件の閲覧回数
Kan_Li
NXP TechSupport
NXP TechSupport

Hi @namht ,

 

There is another demo called "se05x_GetCertificate". Please kindly refer to simw-top\demos\se05x\se05x_GetCertificate for details.

 

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.
-------------------------------------------------------------------------------

2,512件の閲覧回数
namht
Contributor III

Hi @Kan_Li 

I tried demo of "se05x_InjectCertificate" for save data to SE050 and "se05x_GetCertificate" for read back this data from SE050 successly. Howerver, my secure data can be leak if anyone try  "brute force" keyID for get data, rights?

And, I tried a demo of "se05x_Minimal" for gets available memory from secure element. I see before and after Inject Certificate, Se05x_API_GetFreeMemory() return pfreeMem = 32767. Why available memory of SE050 not change?

 
0 件の賞賛
返信
2,499件の閲覧回数
Kan_Li
NXP TechSupport
NXP TechSupport

Hi @namht ,

 

Yes, it is possible so we recommend binging with your host in real application, please kindly refer to https://www.nxp.com/docs/en/application-note/AN12662.pdf for details.

 

Actually the mem size should change, but I am not sure if you have enabled the following definition so the application deleted all custom defined secure objects from the beginning of the demo.

Kan_Li_0-1727248821234.png

 

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.
-------------------------------------------------------------------------------

 

2,496件の閲覧回数
namht
Contributor III

I call ex_sss_boot_factory_reset() → Se05x_API_GetFreeMemory() → InjectCertificate → Se05x_API_GetFreeMemory() .

Log :

App :INFO :mem=32767
App :INFO :Inject certificate example
App :INFO :Injecting ECC certificate at 0x00000014
App :INFO :mem=32767

0 件の賞賛
返信
2,486件の閲覧回数
Kan_Li
NXP TechSupport
NXP TechSupport

Hi @namht ,

 

Is it possible to turn on the verbose log level? so I may have the APDU command log for analyzation. 

Kan_Li_0-1727328799825.png

 

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.
-------------------------------------------------------------------------------

 

 

%3CLINGO-SUB%20id%3D%22lingo-sub-1957639%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3ESE050%E3%81%AB%E5%AE%89%E5%85%A8%E3%81%AA%E3%83%87%E3%83%BC%E3%82%BF%E3%82%92%E4%BF%9D%E5%AD%98%E3%81%99%E3%82%8B%E6%96%B9%E6%B3%95%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-1957639%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3E%3CP%3E%E7%9A%86%E3%81%95%E3%82%93%E3%80%81%E3%81%93%E3%82%93%E3%81%AB%E3%81%A1%E3%81%AF%3C%2FP%3E%3CP%3E%E7%8F%BE%E5%9C%A8%E3%80%81%E7%A7%81%E3%81%AF%E3%82%BB%E3%82%AD%E3%83%A5%E3%82%A2%E3%82%A8%E3%83%AC%E3%83%A1%E3%83%B3%E3%83%88SE050%E3%82%92%E4%BD%BF%E7%94%A8%E3%81%97%E3%81%A6%E3%81%84%E3%81%BE%E3%81%99%E3%80%82%3CBR%20%2F%3ESE050%E3%81%AE%E3%83%87%E3%83%BC%E3%82%BF%E3%82%B7%E3%83%BC%E3%83%88%E3%82%92%E8%AA%AD%E3%82%93%E3%81%A0%E3%81%A8%E3%81%93%E3%82%8D%E3%80%81%E3%80%8C%E5%AE%89%E5%85%A8%E3%81%AA%E3%83%87%E3%83%BC%E3%82%BF%E3%81%BE%E3%81%9F%E3%81%AF%E3%82%AD%E3%83%BC%E3%82%B9%E3%83%88%E3%83%AC%E3%83%BC%E3%82%B8%E3%81%AE%E3%81%9F%E3%82%81%E3%81%AE%E6%9C%80%E5%A4%A750kB%E3%81%AE%E5%AE%89%E5%85%A8%E3%81%AA%E3%83%A6%E3%83%BC%E3%82%B6%E3%83%BC%E3%83%95%E3%83%A9%E3%83%83%E3%82%B7%E3%83%A5%E3%83%A1%E3%83%A2%E3%83%AA%E3%80%8D%E3%81%A8%E3%81%84%E3%81%86%E5%86%85%E5%AE%B9%E3%81%8C%E8%A6%8B%E3%81%A4%E3%81%8B%E3%82%8A%E3%81%BE%E3%81%97%E3%81%9F%E3%80%82%3CBR%20%2F%3E%E7%A7%81%E3%81%AE%E8%B3%AA%E5%95%8F%3ASE050%E3%81%AE%E3%83%95%E3%83%A9%E3%83%83%E3%82%B7%E3%83%A5%E3%83%A1%E3%83%A2%E3%83%AA%E3%81%AB%E5%AE%89%E5%85%A8%E3%81%AA%E3%83%87%E3%83%BC%E3%82%BF%E3%82%92%E4%BF%9D%E5%AD%98%2F%E8%AA%AD%E3%81%BF%E5%8F%96%E3%82%8B%E6%96%B9%E6%B3%95%E3%81%AF%3F%3C%2FP%3E%3CP%3E%E3%81%82%E3%82%8A%E3%81%8C%E3%81%A8%E3%81%86%E3%81%94%E3%81%96%E3%81%84%E3%81%BE%E3%81%99%E3%80%82%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-LABS%20id%3D%22lingo-labs-1957639%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3E%3CLINGO-LABEL%3Ei.MXRT%20106%E5%80%8D%3C%2FLINGO-LABEL%3E%3C%2FLINGO-LABS%3E%3CLINGO-SUB%20id%3D%22lingo-sub-1961499%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3ERe%3ASE050%E3%81%AB%E5%AE%89%E5%85%A8%E3%81%AA%E3%83%87%E3%83%BC%E3%82%BF%E3%82%92%E4%BF%9D%E5%AD%98%E3%81%99%E3%82%8B%E6%96%B9%E6%B3%95%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-1961499%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3E%3CP%3E%3CSTRONG%3Eex_sss_boot_factory_reset()%3C%2FSTRONG%3E%20%3CSPAN%3E%3CSTRONG%3E%E2%86%92Se05x_API_GetFreeMemory()%3C%2FSTRONG%3E%20%E2%86%92%20%3CSTRONG%3EInjectCertificate%3C%2FSTRONG%3E%20%3CSTRONG%3E%E2%86%92%20Se05x_API_GetFreeMemory()%20%3C%2FSTRONG%3E%E3%82%92%E5%91%BC%E3%81%B3%E5%87%BA%E3%81%97%E3%81%BE%E3%81%99%E3%80%82%20%3C%2FSPAN%3E%26nbsp%3B%3C%2FP%3E%3CP%3E%3CSPAN%3E%E4%B8%B8%E5%A4%AA%EF%BC%9A%3C%2FSPAN%3E%3C%2FP%3E%3CP%3E%E3%82%A2%E3%83%97%E3%83%AA%20%3AINFO%20%3Amem%3D32767%3CBR%20%2F%3EApp%20%3AINFO%20%3AInject%20certificate%20example%3CBR%20%2F%3EApp%20%3AINFO%20%3AECC%E8%A8%BC%E6%98%8E%E6%9B%B8%E3%82%920x00000014%E3%81%AB%E6%B3%A8%E5%85%A5%E3%81%97%E3%81%A6%E3%81%84%E3%81%BE%E3%81%99%3CBR%20%2F%3E%E3%82%A2%E3%83%97%E3%83%AA%20%3AINFO%20%3Amem%3D32767%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-1960235%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3ERe%3ASE050%E3%81%AB%E5%AE%89%E5%85%A8%E3%81%AA%E3%83%87%E3%83%BC%E3%82%BF%E3%82%92%E4%BF%9D%E5%AD%98%E3%81%99%E3%82%8B%E6%96%B9%E6%B3%95%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-1960235%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3E%E3%81%93%E3%82%93%E3%81%AB%E3%81%A1%E3%81%AF%E3%80%81%E8%8F%85%E3%81%95%E3%82%93%E3%80%82%3CBR%20%2F%3E%E3%81%94%E8%BF%94%E4%BF%A1%E3%81%82%E3%82%8A%E3%81%8C%E3%81%A8%E3%81%86%E3%81%94%E3%81%96%E3%81%84%E3%81%BE%E3%81%99%E3%80%82%3CBR%20%2F%3E%E4%BE%8B%E3%81%AB%E5%BE%93%E3%81%A3%E3%81%A6%E3%81%BF%E3%81%BE%E3%81%97%E3%81%9F%E3%81%8C%E3%80%81%E5%86%8D%E5%BA%A6%E8%AA%AD%E3%81%BF%E8%BF%94%E3%81%99%E6%96%B9%E6%B3%95%E3%81%8C%E3%82%8F%E3%81%8B%E3%82%8A%E3%81%BE%E3%81%9B%E3%82%93%E3%80%82%3CBR%20%2F%3E%E3%80%8Csss_key_store_get_key()%E3%80%8D%E3%82%92%E8%A9%A6%E3%81%97%E3%81%A6%E3%81%BF%E3%81%9F%E3%81%A8%E3%81%93%E3%82%8D%E3%80%81%E3%82%B9%E3%83%86%E3%83%BC%E3%82%BF%E3%82%B9%3DkStatus_SSS_Fail%E3%81%8C%E8%BF%94%E3%81%A3%E3%81%A6%E3%81%8D%E3%81%BE%E3%81%97%E3%81%9F%3C%2FLINGO-BODY%3E