How to change number of rounds?

Is there any way to change the number of rounds? For example the AES code seems to have 12 rounds, what if I wanted it to have 4 rounds only? Is it possible, if yes then kindly guide me.

AES128 has 10 rounds. You could modify the crypto code to change the number of rounds, but this is something you’ll have to figure out for yourself.

If you’re curious, changing the number of rounds isn’t really something that affects side channel attacks. This is because we typically target either the very start or the very end of the encryption operation using the plaintext or ciphertext, respectively.

@Alex_Dewar it means i need to change .c file in crypto folder? In which AES is implemented.

Yeah, that’s correct.

1 Like

Thanks @Alex_Dewar for very helpful guide