DES.

Trying out my Crypto assignment 3. But I haven't found the answer to anything yet huhu. But I sort of know how DES works now, thanks to D, who helped to explain it through the phone huhu. She explained willingly when she called my room, I didn't have to ask. I tell you I've the nicest coursemates, like everrr~ Never in my entire school years dariku damit sampai uni years have I found people inda karit ilmu as the lots I hang out wit in my course. Sampai aku plang rasa guilty of taking up their time to help me, when most of the time it wasn't even me who even asked for help, pasal aku ego sikit kan~ =P and malas jua kan nyusahkan urang. Huhuhu. They often ask me how I'm doing and ask about my work and then when ku say I'm stuck with this and that, abis tia segala jenis pertulungan datang arahku. So nice ah. They also commented on my decision, and said that they can help if I need help on my studies and that sort of stuff, but I told them how will I learn things myself if I get people to help me on everything? =)

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:
  1. Expansion permutation - 32 bits expanded to 48 bits
  2. Use of Round Key(48 bits) to XOR with result of (1)
  3. Splitting of result into 8 lots of 6 bits.
  4. S-Box - outputnya 4 bits each, which total up to 32 bits
  5. P-Box - combine everything, so 32 bits, and permutate.
  6. 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: