ENC_ECB problem

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

ENC_ECB problem

733 Views
a_yusof
Contributor I

Hello,

i am quite new with NXP S32K144. I want to ask about the encryption using CSEC. I am using ENC_ECB and the encrypted text is the same as the plain text. Am i missing something? I have already referred to the example 3_Basic_Operations and ran the example code with ENC_CBC, i faced the same problem. The encrypted text is the same as plain text.

Thank you in advance.

Regards,

Jazmi

0 Kudos
2 Replies

630 Views
dianabatrlova
NXP TechSupport
NXP TechSupport

Hello Jazmi,

At first, I need to ask you, did you follow the steps in the "4 Programming the CSEc Security Module" in the  AN5401?

https://www.nxp.com/webapp/Download?colCode=AN5401 

There is an important description:

"4.1 PRGPART: Program Partition Command

To start using the CSEc command set, the user must configure the device into emulated-EEPROM mode."

Did you run the Program Partition Command?

I would like to recommend you the working example, but I cannot share it on the community. 

Could you please create a ticket? How to submit a new question for NXP Support 

Thank you.

Best Regards,

Diana

0 Kudos

630 Views
a_yusof
Contributor I

Hello Diana,

thank you for the reply. I have configured it before for the partition using this:

flash_error = configure_part_CSEc();

I have created the ticket. Case 00195659

Thank you.

Regards,

Jazmi

0 Kudos