HSE on S32K344 - Symmetric Encryption not possible

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

HSE on S32K344 - Symmetric Encryption not possible

Jump to solution
480 Views
jthelemann
Contributor II

Hello everybody,

currently I am working with the HSE-B on a S32K344. I want to use the "HSE_SRV_ID_SYM_CIPHER" service in order to perform an AES-CTR encryption/decryption of data in flash memory. When calling the corresponding HSE Service, I always get the error code "HSE_SRV_RSP_NOT_ALLOWED". I already read the HSE Firmware Reference Manual in order to identify the problem, but I cannot figure it out.

I attached picture of following things:

  • Definition of the NVM key attributes (inclusive symmetric key)
  • Definition of the corresponding HSE Service 
  • Function call of the corresponding HSE Service

Hope you can help to get rid of this problem.

Thanks!

0 Kudos
Reply
1 Solution
453 Views
jthelemann
Contributor II

Hi Lukas,

I could solve the problem by sending the corresponding HSE service request over a different MU channel (e.g. 1) instead over the MU admin channel "0".

Best regards,

Julian Thelemann

View solution in original post

0 Kudos
Reply
2 Replies
457 Views
lukaszadrapa
NXP TechSupport
NXP TechSupport

Hi @jthelemann 

at first glance, it looks good. I can see nothing obvious wrong.

Isn't there a problem with data cache? All the data structures used for communication with HSE must be forced to non-cacheable RAM. Easiest option is to disable the data cache completely to see if it makes a difference.

Regards,

Lukas

0 Kudos
Reply
454 Views
jthelemann
Contributor II

Hi Lukas,

I could solve the problem by sending the corresponding HSE service request over a different MU channel (e.g. 1) instead over the MU admin channel "0".

Best regards,

Julian Thelemann

0 Kudos
Reply