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?

  • 1
    $\begingroup$ Is the same because the s-box values of row and col doesn't depend on the matrix row and col but its value... $\endgroup$ – MrJab Jun 19 at 12:56
  • 1
    $\begingroup$ have you heard about super-box? . you might find your answer in this link: eprint.iacr.org/2009/531.pdf $\endgroup$ – hardyrama Jun 19 at 14:12

There is no theoretically required here.

ShiftRows changes the position of bytes, regardless of their value

SubBytes changes the value of bytes, regardless of their position

Therefore the order of these operations does not matter

| improve this answer | |

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.