Please let me know if this is not the right place to ask this question. I will remove it.
I am trying to find how much time an AES encryption and decryption takes for a given amount of data and key. In all the cases encryption takes way lesser processing time than decryption. I tried to get this answer somewhere else but can't find. May I know why does decryption takes a lot more time than encryption for AES 128/256 bit?
Added information: I am trying to implement a simple AES encryption in Arduino UNO. And used micros() to measure the time it takes to encrypt or decrypt. Here is what I did for encryption:
unsigned long start1 = micros();
String enc = aes_encrypt("this is data source","this is key");
unsigned long start2 = micros();
unsigned long diff1 = start2 - start1;
Serial.print("Time to encrypt the data: ");