This post is older than 2 years and might not be relevant anymore
More Info: Consider searching for newer posts
This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion

sd_ecb_block_encrypt() related question

Hello, I just want to clarity the sd_ecb_block_encrypt() operation cases (S110).

In pp. 23.1.3 of RM (Shared resources) sayed:

The ECB, CCM, and AAR share the same AES module. The ECB will always have lowest priority and if there is a sharing conflict during encryption, the ECB operation will be aborted and an ERRORECB event will be generated.

In PS sayed:

Time for a 16 byte AES block encrypt. 8.5 - 17 μs

So the question is whether the sd_ecb_block_encrypt() handles ERRORECB event and waits untill shared resource become available to perform the ECB encryption. If correct answer - YES, what timings of the sd_ecb_block_encrypt()?

Parents
  • Hi,

    A call to sd_ecb_block_encrypt() will block until the encryption is completed. If encryption is interrupted by higher priority call, the function will retry over and over until it is successfull. The timing will thus depend on what other tasks require access to the shared resource.

    Best regards,

    Jørgen

Reply
  • Hi,

    A call to sd_ecb_block_encrypt() will block until the encryption is completed. If encryption is interrupted by higher priority call, the function will retry over and over until it is successfull. The timing will thus depend on what other tasks require access to the shared resource.

    Best regards,

    Jørgen

Children
Related