2
$\begingroup$

How the decryption process of AES is the reverse process of Encryption process of AES? Mean Reverse in what sense mean final round would be conducted first or steps in each round would be conducted first? Please Guide me...

$\endgroup$
3
  • $\begingroup$ reverse in a sense that every step done in encryption needs to be reversed. For Sbox, there is an Inverse Sbox. For MDS, there is inverse of MDS such the multiplication of MDS and invMDS is an identity Matrix. Since inverse of XOR is xor, so round keys are xored in decryption but in reverse order meaning, round 10 key is xored first, then round 9 and so on... $\endgroup$
    – crypt
    Commented May 1, 2018 at 17:16
  • 1
    $\begingroup$ @RI8S That is basically an answer rather a comment $\endgroup$
    – Ella Rose
    Commented May 1, 2018 at 20:14
  • $\begingroup$ @EllaRose posted an answer. $\endgroup$
    – crypt
    Commented May 2, 2018 at 8:47

3 Answers 3

4
$\begingroup$

Reverse in a sense that every step done in encryption needs to be reversed. For Sbox, there is an Inverse Sbox. For MDS, there is an inverse of MDS(invMDS) such the multiplication of MDS and invMDS is an identity Matrix. Since inverse of XOR is xor, so round keys are xored in decryption but in reverse order meaning, round 10 key is xored first, then round 9 and so on.

If you write down all the encrypting steps done between Plaintext and Ciphertext from Top to Bottom, then while decryption, you need to inverse of each step from Bottom to Top (moving from ciphertext to plaintext)

$\endgroup$
1
$\begingroup$

In decryption mode, the operations are in reverse order compared to their order in encryption mode. Thus it starts with an initial round, followed by 9 iterations of an inverse normal round and ends with an AddRoundKey. An inverse normal round consists of the following operations in this order: AddRoundKey, InvMixColumns, InvShiftRows, and InvSubBytes. An initial round is an inverse normal round without the InvMixColumns.

$\endgroup$
0
$\begingroup$

Linke in encryption, you first run the rounds and then the last round. Thus, you don't run the last round first and then the N-1 rounds.

$\endgroup$

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

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