Professional Documents
Culture Documents
حل الواجبات الخاصة ب DES
حل الواجبات الخاصة ب DES
علوم الحاسبات
4th Class
Computers & Data Security
أمنية الحاسوب والبيانات
أستاذ المادة
أ .م .د .اخالص عباس البحراني
The solution of the homework about the Initial
Permutation
IP(675a6967 5e5a6b5a) = (ffb2194d 004df6fb)
6 7 5 a 6 9 6 7 5 e 5 a 6 b 5 a
0110 0111 0101 1010 0110 1001 0110 0111 0101 1110 0101 1010 0110 1011 0101 1010
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32
0 1 1 0 0 1 1 1 0 1 0 1 1 0 1 0 0 1 1 0 1 0 0 1 0 1 1 0 0 1 1 1
33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64
0 1 0 1 1 1 1 0 0 1 0 1 1 0 1 0 0 1 1 0 1 0 1 1 0 1 0 1 1 0 1 0
0 0 0 1 1 0 0 1 0 1 0 0 1 1 0 1
0 0 0 0 0 0 0 0 0 1 0 0 1 1 0 1
1 1 1 1 0 1 1 0 1 1 1 1 1 0 1 1
1111 1111 1011 0010 0001 1001 0100 1101 0000 0000 0100 1101 1111 0110 1111 1011
f f b 2 1 9 4 d 0 0 4 d f 6 f b
So the result after IP is ffb2194d 004df6fb
اخالص عباس البحراني.د.م.ا 3
The solution of the homework about The Key
Transformation
keyinit(5b5a5767, 6a56676e)
5 b 5 a 5 7 6 7 6 a 5 6 6 7 6 e
0101 1011 0101 1010 0101 0111 0110 0111 0110 1010 0101 0110 0110 0111 0110 1110
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32
0 1 0 1 1 0 1 1 0 1 0 1 1 0 1 0 0 1 0 1 0 1 1 1 0 1 1 0 0 1 1 1
33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64
0 1 1 0 1 0 1 0 0 1 0 1 0 1 1 0 0 1 1 0 0 1 1 1 0 1 1 0 1 1 1 0
0 0 0 0 0 0 0 0 1 1 1 1 1 1
1 1 1 1 0 1 1 0 0 0 0 0 1 0
1 1 1 1 1 1 1 1 1 1 1 0 1 1
0 0 1 0 0 1 0 0 1 1 0 1 1 1
The result =0000 0000 1111 1111 1101 1000 0010 1111 1111 1110 1100 1001 0011 0111
C D
0000 0000 1111 1111 1101 1000 0010 1111 1111 1110 1100 1001 0011 0111
We are in the first round so The halves C and D are circularly shifted left one bits based on the table
C D
0000 0001 1111 1111 1011 0000 0100 1111 1111 1101 1001 0010 0110 1111
0000 0001 1111 1111 1011 0000 0100 1111 1111 1101 1001 0010 0110 1111
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28
0 0 0 0 0 0 0 1 1 1 1 1 1 1 1 1 1 0 1 1 0 0 0 0 0 1 0 0
29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56
1 1 1 1 1 1 1 1 1 1 0 1 1 0 0 1 0 0 1 0 0 1 1 0 1 1 1 1
1 1 1 0 0 0 0 0 1 0 0 1
0 1 1 0 1 1 1 0 0 1 1 0
1 0 1 1 1 1 1 1 1 0 1 0
1 0 0 1 1 1 0 0 1 1 1 1
= 5fd25e03