HSE on S32K344 - Symmetric Encryption not possible

取消
显示结果 
显示  仅  | 搜索替代 
您的意思是: 
已解决

HSE on S32K344 - Symmetric Encryption not possible

跳至解决方案
605 次查看
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 项奖励
回复
1 解答
578 次查看
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 项奖励
回复
2 回复数
582 次查看
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 项奖励
回复
579 次查看
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 项奖励
回复