DES Algorithm: S-Box and Key Mixing
Added on 2023-01-19
7 Pages1460 Words97 Views
|
|
|
DES
Solution
S-Box-1
S-Box-2
0 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15
0 12 01 08 14 06 11 03 04 09 07 02 13 12 00 05 10
1 03 13 04 07 15 02 08 14 12 00 01 10 06 09 11 05
2 00 14 07 11 10 04 13 01 05 08 12 06 09 03 02 15
3 13 08 10 01 03 15 04 12 11 06 07 12 00 05 14 09
S-Box-3
0 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15
0 10 00 09 14 06 03 15 05 01 13 12 07 11 04 02 08
1 13 07 00 09 03 04 06 10 02 08 05 14 012 11 15 01
2 13 06 04 09 08 15 03 00 11 01 02 12 05 10 14 07
3 01 10 13 00 06 09 08 07 04 15 14 03 11 05 02 12
S-Box-4
0 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15
0 07 13 14 03 00 06 09 10 1 02 08 05 11 12 04 15
1 13 08 11 05 06 15 00 03 04 07 02 12 01 10 14 09
2 10 06 09 00 12 11 07 13 15 01 03 14 05 02 08 04
3 03 15 00 06 10 01 13 08 09 04 05 11 12 07 02 14
S-Box-5
Solution
S-Box-1
S-Box-2
0 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15
0 12 01 08 14 06 11 03 04 09 07 02 13 12 00 05 10
1 03 13 04 07 15 02 08 14 12 00 01 10 06 09 11 05
2 00 14 07 11 10 04 13 01 05 08 12 06 09 03 02 15
3 13 08 10 01 03 15 04 12 11 06 07 12 00 05 14 09
S-Box-3
0 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15
0 10 00 09 14 06 03 15 05 01 13 12 07 11 04 02 08
1 13 07 00 09 03 04 06 10 02 08 05 14 012 11 15 01
2 13 06 04 09 08 15 03 00 11 01 02 12 05 10 14 07
3 01 10 13 00 06 09 08 07 04 15 14 03 11 05 02 12
S-Box-4
0 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15
0 07 13 14 03 00 06 09 10 1 02 08 05 11 12 04 15
1 13 08 11 05 06 15 00 03 04 07 02 12 01 10 14 09
2 10 06 09 00 12 11 07 13 15 01 03 14 05 02 08 04
3 03 15 00 06 10 01 13 08 09 04 05 11 12 07 02 14
S-Box-5
![DES Algorithm: S-Box and Key Mixing_1](/_next/image/?url=https%3A%2F%2Fdesklib.com%2Fmedia%2Fimages%2Fdv%2F25901902eb41465dbf9ac35e6460e5e7.jpg&w=3840&q=10)
0 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15
0 02 12 04 01 07 10 11 06 08 05 03 15 13 00 14 09
1 14 11 02 12 04 07 13 01 05 00 15 10 03 09 08 06
2 04 02 01 11 10 13 07 08 15 09 12 05 06 03 00 14
3 11 08 12 07 01 14 02 13 06 15 00 09 10 04 05 03
S-Box-6
0 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15
0 12 01 10 15 09 02 06 08 00 13 03 04 14 07 05 11
1 10 15 04 02 07 12 09 05 06 01 13 14 00 11 03 08
2 09 14 15 05 02 08 12 03 07 00 04 10 01 13 11 06
3 04 03 02 12 09 05 15 10 11 14 01 07 10 00 08 13
S-Box-7
0 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15
0 4 11 2 14 15 00 08 13 03 12 09 07 05 10 06 01
1 13 00 11 07 04 09 01 10 14 03 05 12 02 15 08 06
2 01 04 11 13 12 03 07 14 10 15 06 08 00 05 09 02
3 06 11 13 08 01 04 10 07 09 05 00 15 14 02 03 12
0 02 12 04 01 07 10 11 06 08 05 03 15 13 00 14 09
1 14 11 02 12 04 07 13 01 05 00 15 10 03 09 08 06
2 04 02 01 11 10 13 07 08 15 09 12 05 06 03 00 14
3 11 08 12 07 01 14 02 13 06 15 00 09 10 04 05 03
S-Box-6
0 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15
0 12 01 10 15 09 02 06 08 00 13 03 04 14 07 05 11
1 10 15 04 02 07 12 09 05 06 01 13 14 00 11 03 08
2 09 14 15 05 02 08 12 03 07 00 04 10 01 13 11 06
3 04 03 02 12 09 05 15 10 11 14 01 07 10 00 08 13
S-Box-7
0 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15
0 4 11 2 14 15 00 08 13 03 12 09 07 05 10 06 01
1 13 00 11 07 04 09 01 10 14 03 05 12 02 15 08 06
2 01 04 11 13 12 03 07 14 10 15 06 08 00 05 09 02
3 06 11 13 08 01 04 10 07 09 05 00 15 14 02 03 12
![DES Algorithm: S-Box and Key Mixing_2](/_next/image/?url=https%3A%2F%2Fdesklib.com%2Fmedia%2Fimages%2Ffe%2F4727765f86064b9b9b171608f3bf66a5.jpg&w=3840&q=10)
S-Box-8
0 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15
0 13 02 08 04 06 15 11 01 10 09 03 14 05 00 12 07
1 01 15 13 08 10 03 07 04 12 05 06 11 10 14 09 02
2 07 11 04 01 09 12 14 02 00 06 10 10 15 03 05 08
3 02 01 14 07 04 10 08 13 15 12 09 09 03 05 06 11
PlainText (5CB7)
Key=(101011 011100 110011 101110)
Key(101011)
The first and sixth bites together (101011),we get 11 in binary and that decimal value is
3.
Remaining values is 0101 in binary and that decimal value is 2.So look the row 3,column 2 in
table s-box-1.The results is 8 and that binary value is 1000.So the input 101011 for plaintext
5 yields the output 1000.
Key(011100)
The first and sixth bites together (011100),we get 00 in binary and that decimal value is
0.
Remaining values is 1110 in binary and that decimal value is 3.So look the row 0,column 3 in
table s-box-8.The results is 2 and that binary value is 0010.So the input 011100 for plaintext
12 yields the output 0010.
Key(110011)
The first and sixth bites together (110011),we get 11 in binary and that decimal value is
3.
Remaining values is 1001 in binary and that decimal value is 2.So look the row 3,column 2 in
table s-box-1.The results is 8 and that binary value is 1000.So the input 110011 for plaintext
11 yields the output 1000.
0 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15
0 13 02 08 04 06 15 11 01 10 09 03 14 05 00 12 07
1 01 15 13 08 10 03 07 04 12 05 06 11 10 14 09 02
2 07 11 04 01 09 12 14 02 00 06 10 10 15 03 05 08
3 02 01 14 07 04 10 08 13 15 12 09 09 03 05 06 11
PlainText (5CB7)
Key=(101011 011100 110011 101110)
Key(101011)
The first and sixth bites together (101011),we get 11 in binary and that decimal value is
3.
Remaining values is 0101 in binary and that decimal value is 2.So look the row 3,column 2 in
table s-box-1.The results is 8 and that binary value is 1000.So the input 101011 for plaintext
5 yields the output 1000.
Key(011100)
The first and sixth bites together (011100),we get 00 in binary and that decimal value is
0.
Remaining values is 1110 in binary and that decimal value is 3.So look the row 0,column 3 in
table s-box-8.The results is 2 and that binary value is 0010.So the input 011100 for plaintext
12 yields the output 0010.
Key(110011)
The first and sixth bites together (110011),we get 11 in binary and that decimal value is
3.
Remaining values is 1001 in binary and that decimal value is 2.So look the row 3,column 2 in
table s-box-1.The results is 8 and that binary value is 1000.So the input 110011 for plaintext
11 yields the output 1000.
![DES Algorithm: S-Box and Key Mixing_3](/_next/image/?url=https%3A%2F%2Fdesklib.com%2Fmedia%2Fimages%2Fwr%2F36f30e03ca1a44b98586cb61cba76b5e.jpg&w=3840&q=10)
End of preview
Want to access all the pages? Upload your documents or become a member.
Related Documents
Empirical Analysis of S&P500 Returnslg...
|7
|1051
|355
Investment Management Solutionlg...
|267
|66230
|497
Project Management Assignment: Answerslg...
|9
|1409
|72
Business Financelg...
|18
|2844
|466
Business Project Managementlg...
|7
|1291
|18
Incorporate feedback into functional specificationslg...
|4
|811
|299