So anyways, DES. Ada 6 steps. And then the 6 steps repeated for 16 times. DES mula2nya plaintext of 64 bits. Then you split into half, so jadi 32 bits. So now there's two 32 bits, one left one right.
The 32 bits on the right side will be processed. First, the bits go through Expansion Permutation, where durang kana expand jadi 48 bits. Then each bits are XOR-ed with the round key, which is also 48 bits. The output will still be 48 bits, and then you split the bits into eight lots, which means 6 bits each lah ah. Then each 6 bits will be passed through S-Box, which is substitution box. Ada 8 S-Box altogether. Then the output from each S-Box will be 4 bits, which means the total bits from all 8 S-Box is 32 bits (which is macam amount of bits yang mula2). Then the 32 bits are combined and permuted. And finally, the permuted 32 bits are then XOR-ed with the initial left half that didn't go through the DES round tadi, and when they're XOR-ed, the result will be a new right half, then the process will be repeated for 16 times lah. Then after 16 rounds, we get our ciphertext.
So the steps tadi:
- Expansion permutation - 32 bits expanded to 48 bits
- Use of Round Key(48 bits) to XOR with result of (1)
- Splitting of result into 8 lots of 6 bits.
- S-Box - outputnya 4 bits each, which total up to 32 bits
- P-Box - combine everything, so 32 bits, and permutate.
- Feistel Part - XOR with left half to get new right half.
...and repeat sampai sangal... 16 kali plang saja.
I've checked the past year exam papers for this module yang since 1998, and yang ani usulnya rajin keluar. Bah baiktah ingati kali.
But assignment ani cana ni? Inda jua bekaitan ni dengan apa yang ku explain tadi. Apatah jawapannya ni? =/
Tata.
No comments:
Post a Comment