2391904_en-US

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

2391904_en-US

2391904_en-US

S32K389 AES_ACCEL hangs/freezes when encrypting 64KB data
Hi NXP team,
I’m working with the S32K389​ and testing the AES_ACCEL (ACE/MSC)​ module. I’ve encountered a stability issue when processing large data buffers.
Test Setup:
  • Mode:​ AES-CBC
  • Case 1 (Pass):​ Encrypting 4KB​ data works correctly.

企业微信截图_17834738161180.png

  • Case 2 (Fail):​ Encrypting 64KB​ data causes the chip to crash/hang immediately when the AES service is executed.
Observed Behavior:
  1. S32DS (S32 Design Studio) freezes during the execution of the AES service.
  2. Attempts to Attach​ to the S32K389 via the debugger fail completely.

企业微信截图_17834744241242.png

Questions:
  1. Are there any known limitations regarding the maximum data length per AES_ACCEL transaction?

Best Regards,
xianlong

Re: S32K389 AES_ACCEL hangs/freezes when encrypting 64KB data

Hi @wuxianlong 

Let me check this. I will get back to you as soon as possible. 

Regards,

Lukas

Re: S32K389 AES_ACCEL hangs/freezes when encrypting 64KB data

I'm sorry for delay, I have some issues with access rights to internal resources and it takes more time than expected to solve it. I will answer this as soon as possible. Thanks for your patience. 

Regards,

Lukas

Re: S32K389 AES_ACCEL hangs/freezes when encrypting 64KB data

Hi @wuxianlong 

There's following limitation for CMAC generate a verify services:

lukaszadrapa_2-1784041947940.png


I'm still checking if there's a limitation also for encryption. I will let you know later. 

Regards,

Lukas

Re: S32K389 AES_ACCEL hangs/freezes when encrypting 64KB data

Hi,@lukaszadrapa 

Thank you very much for your explanation. It is probable that encryption and CMAC verification face the same limitations.

Best Regards,
xianlong

Re: S32K389 AES_ACCEL hangs/freezes when encrypting 64KB data

I got information that size limitation is 512KB - the size of LEN bit field is 19 bits. 

Interesting thing is that the execution crashed completely. I would expect that AES_ACCEL just returns some error code in case of invalid parameters. 

Isn't that caused by XRDC? Is XRDC enabled? Could you try to disable it for test purposes?

Regards,

Lukas

Re: S32K389 AES_ACCEL hangs/freezes when encrypting 64KB data

Hi,@lukaszadrapa 

Testing with 64KB still fails. Enabling AEC error detection revealed the IP driver macro sets the limit to (1 << 19) - 1​ bit < 64 KB.
image.png
Best Regards,
xianlong


Tags (1)
No ratings
Version history
Last update:
2 weeks ago
Updated by: