# Is ShiftRows(SubtBytes(x)) = SubtBytes(ShiftRows(x)) the same for the same entry : in AES

Is ShiftRows(SubtBytes(x)) = SubtBytes(ShiftRows(x)) the same for the same entry : in AES

It seems like these two are equal, can someone explain in theoretically?

• Is the same because the s-box values of row and col doesn't depend on the matrix row and col but its value... – MrJab Jun 19 at 12:56