Beruflich Dokumente
Kultur Dokumente
INTRODUCTION
S-AES is to AES just as S-DES is to DES. In fact, the structure of S-AES is exactly the
same as AES. The differences are in the key size (16 bits), the block size (16 bits) and the number
of rounds (3 rounds). Here is an overview
This is a 4by 4 matrix of nibble values called S-BOX. It is a permutation of all possible 4bit
values .Use it to substitute each input nibble, leftmost 2 bits of nibbles are used as row values
and rightmost 2bits as column values,as shown in the figure below
SHIFT ROW
The next step is to shift rows(in fact shifting the second row). The first row is left unaltered and
second row is shifted i.e we perform a one nibble circula shift of second row as shown below
Example
MIX COLUMN
After shifting rows we mix the columns. Each column is multiplied by the matrix (1
4)
(4
1)
The last round does not have this stage of operation, i.e it does up to shift row operation
The transformation can be defined by the following matrix
multiplication on State [as in the figure below]
ADDROUNDKEYS
Round 0: AddRound0Key=plaintext XOR Key0
Round1:
Round2(the last round) : AddRound2Key= Output of Round2 shift Row Operation of round2 XOR Key2
This is the last operation that gives a cipher corresponding to inputted key at the beginning;
DECRYPTION
Decryption works the same way as encryption in that it has the same main operations in encreption.We
use here the same keys generated in encryption and for nibble substution we use inverse S-BOX .