Using SE050 I want to generate AES 128 key and write this key into SE050,
I am referring to the AN12543 and UM11225 documents for guidance.
Could someone assist me with the correct I2C data format to use for generating and writing the AES key into the SE050?
Hi @chirag123 ,
Run the demo of ex_sss_symmetric with verbose log option , you may easily have an example of APDU command to generate the AES Key inside SE.
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.
-------------------------------------------------------------------------------
Hi, @Kan_Li
First off all thank you for your response,
I want to use the SE050 with a custom MCU, and for generate AES Key I need to implement the APDU package to generate and store it in the SE.
Could you please provide a link to any example code or documentation where the APDU package example is available for generate AES key into SE and store key into SE?
Hi @chirag123 ,
The example is in the MW ,you may find it in simw-top\sss\ex\symmetric.
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.
-------------------------------------------------------------------------------
Hi @chirag123 ,
It is not recommended using raw APDU command in your application, as it can be easily probed via the I2C lines, you have to secure the channel at first, and such kind of functionalities have all been implemented in the MW(https://www.nxp.com/webapp/Download?colCode=SE05x-PLUG-TRUST-MW&appType=license ), you may simply develop your own application code based on the MW which will help you with the command frame construction , no need to take additional time to develop another similar MW.
Hope that makes sense,
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.
-------------------------------------------------------------------------------
Hi @chirag123 ,
The MW is the correct choice but as STM is not supported so you have to do some porting before use it, and for your case, it is recommended to start the porting with the nano version of MW. Please kindly refer to https://github.com/NXPPlugNTrust/nano-package#porting 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.
-------------------------------------------------------------------------------
Hi @chirag123 ,
Actually it mainly depends on your application requirement, from my point of view, if both Nordic MCU and STM32 can support I2C interface, either of them may directly interface the SE050.
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.
-------------------------------------------------------------------------------
Hi @chirag123 ,
Basically the following source files in the platform folder need to be updated with your custom MCU SDK drivers, and you may compare the files between different platform folders for more 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.
-------------------------------------------------------------------------------
Hi @chirag123 ,
Such files should be provided by the MCU SDK, for your case, if the nRF Connect SDK supports mbedtls, you may find those files in it, similar as the K64 SDK.
frdmk64f-sdk\middleware\mbedtls\include\mbedtls
Hope that makes sense,
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.
-------------------------------------------------------------------------------