AES encryption performance test

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

AES encryption performance test

1,317 Views
minjaekang99
Contributor I

Hello, nxp

I would like to measure the AES cryptographic performance of HSM.
For the three main modes of AES, ECB, CBC, and CTR, I want to encrypt and decrypt data of various lengths to measure the time it takes each, and I wonder if HSE provides a timer or API that can be used to measure the time.
For example, I would like to check if there is a built-in timer function that can measure the time before and after the AES encryption/decryption function call, or if there is an API that supports it.

If HSE itself does not provide timer functionality, I would also appreciate it if you could let me know if there is any performance measurement method recommended by NXP platform (e.g. using specific MCU timer, using debugging tool, etc.).

Thank you.

0 Kudos
Reply
2 Replies

1,259 Views
lukaszadrapa
NXP TechSupport
NXP TechSupport

Hi @minjaekang99 

No, HSE does not have a timer or API which could be used for performance monitoring.

The easiest method is to toggle a pin before and after calling a service and then simply measure the time by an oscilloscope. It's probably the most effective method taking minimal effort.

Regards,

Lukas

0 Kudos
Reply

1,285 Views
minjaekang99
Contributor I

Please reply to anyone.

0 Kudos
Reply