Hello,
I am trying to encrypt some data using AES. I wrote the key to the SE using Se05x_API_WriteSymmKey() an now want to encrypt using sss_cipher_one_go(). This function returns kStatus_SSS_Fail. When debugging into this function I can see that DoAPDUTxRx_s_Case4_ext() returns SM_ERR_CONDITIONS_OF_USE_NOT_SATISFIED inside Se05x_API_CipherOneShot(). This error code is not documented for any APDU that is related to AES. So I have no idea what I have done wrong. Can you give me a hint?
Best regards
Hi @fvjdxe ,
Actually the MW for SE050 provides a demo of "ex_symmetric", in which an AES is created to perform Encryption on some data by sss_cipher_one_go().
Did your issue come from this demo? Please kindly clarify.
Is it possible to share the log?
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.
-------------------------------------------------------------------------------
Hello Kan,
I had adapted the demo. I fixed my problem by now. It turned out that some buffer had the wrong size.
Best regards
Hi @fvjdxe ,
Thanks for the update! It is great to know this issue has been solved.
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.
-------------------------------------------------------------------------------