<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>0xDEADBEEF &#187; DES</title>
	<atom:link href="http://deadbeef.psychotomy.net/tag/des/feed/" rel="self" type="application/rss+xml" />
	<link>http://deadbeef.psychotomy.net</link>
	<description>Geek Chic?  Or just Geek!</description>
	<lastBuildDate>Sat, 30 Mar 2013 04:06:15 +0000</lastBuildDate>
	<language>en-US</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.5.1</generator>
		<item>
		<title>DES Fail</title>
		<link>http://deadbeef.psychotomy.net/2009/04/des-fail/?utm_source=rss&#038;utm_medium=rss&#038;utm_campaign=des-fail</link>
		<comments>http://deadbeef.psychotomy.net/2009/04/des-fail/#comments</comments>
		<pubDate>Fri, 10 Apr 2009 19:33:29 +0000</pubDate>
		<dc:creator>attriel</dc:creator>
				<category><![CDATA[Crypts]]></category>
		<category><![CDATA[Demonstration]]></category>
		<category><![CDATA[DES]]></category>

		<guid isPermaLink="false">http://deadbeef.psychotomy.net/?p=124</guid>
		<description><![CDATA[One of the early things I started doing with this blog, actually with the predecessor to this blog, was going through encryption examples longhand.  And I was going to start with a simple hash like MD5, except it turns out to be the opposite of simple.  So I decided to do DES, which seems to [...]]]></description>
				<content:encoded><![CDATA[<p>One of the early things I started doing with this blog, actually with the predecessor to this blog, was going through encryption examples longhand.  And I was going to start with a simple hash like MD5, except it turns out to be the opposite of simple.  So I decided to do DES, which seems to baseline a number of other common tools.</p>
<p>I got through 10 iterations of 16 and realized I&#8217;d been doing a step wrong since iteration 3.  Tossed that all away after months of trouble.  Then I started again, I got through 6 iterations and realized I was getting two arrays reversed on occasion.</p>
<p>Then I started on it AGAIN, with a plan to have my pages laid out to copy data A to B, 1 to 2, and keep everything in line.  Only by now, I&#8217;m no longer enthused by doing DES a third time.  It&#8217;s a serious PITA!  Add to that the issue that once I finish DES, this was one of the &#8220;easy&#8221; ones.  Which means the rest get harder. Un*x password files are saved via crypt, which is based on multiple passes of DES.</p>
<p>So after a year of doing 16 iterations of DES, I&#8217;d be moving on to doing 48 iterations of DES.  And then things would really get hard.  So I&#8217;m thinking this isn&#8217;t working.  I&#8217;ve now moved to what had originally been stage 2 plan, which was to develop scripts that would produce the longhand for looking at.  Hopefully I&#8217;ll get DES done in the next week or so.  I&#8217;ll post the script and the output if I get that working.</p>
]]></content:encoded>
			<wfw:commentRss>http://deadbeef.psychotomy.net/2009/04/des-fail/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Digital Encryption Screwup</title>
		<link>http://deadbeef.psychotomy.net/2008/10/digital-encryption-screwup/?utm_source=rss&#038;utm_medium=rss&#038;utm_campaign=digital-encryption-screwup</link>
		<comments>http://deadbeef.psychotomy.net/2008/10/digital-encryption-screwup/#comments</comments>
		<pubDate>Tue, 28 Oct 2008 19:08:23 +0000</pubDate>
		<dc:creator>attriel</dc:creator>
				<category><![CDATA[Crypts]]></category>
		<category><![CDATA[Demonstration]]></category>
		<category><![CDATA[DES]]></category>

		<guid isPermaLink="false">http://deadbeef.psychotomy.net/?p=69</guid>
		<description><![CDATA[So, I screwed up the DES example somewhere I think.  I&#8217;m fairly sure, anyway.  Yeah. Somewhere in: I made a mistake.  I&#8217;m fairly sure the setup was correct:   And the first few iterations:     You can see where I botched R&#8217;(2) by shifting the wrong values around. Then F(3), K(4), R&#8217;(4), C(6), K(6), [...]]]></description>
				<content:encoded><![CDATA[<p>So, I screwed up the DES example somewhere I think.  I&#8217;m fairly sure, anyway.  Yeah.</p>
<p>Somewhere in:</p>
<div id="attachment_70" class="wp-caption alignnone" style="width: 310px"><a href="http://deadbeef-aws.psychotomy.net/wp-content/uploads/2008/10/dsc_0013.jpg"><img class="size-medium wp-image-70" title="DES Complete 8 Iterations" src="http://deadbeef-aws.psychotomy.net/wp-content/uploads/2008/10/dsc_0013-300x199.jpg" alt="First 8 iterations of DES Example" width="300" height="199" /></a><p class="wp-caption-text">First 8 iterations of DES Example</p></div>
<p>I made a mistake.  I&#8217;m fairly sure the setup was correct:</p>
<p> </p>
<div id="attachment_71" class="wp-caption alignnone" style="width: 310px"><a href="http://deadbeef-aws.psychotomy.net/wp-content/uploads/2008/10/dsc_0014.jpg"><img class="size-medium wp-image-71" title="DES Initial Setup" src="http://deadbeef-aws.psychotomy.net/wp-content/uploads/2008/10/dsc_0014-300x199.jpg" alt="Initial DES Setup Steps" width="300" height="199" /></a><p class="wp-caption-text">Initial DES Setup Steps</p></div>
<p>And the first few iterations:</p>
<p> </p>
<div id="attachment_72" class="wp-caption alignnone" style="width: 310px"><a href="http://deadbeef-aws.psychotomy.net/wp-content/uploads/2008/10/dsc_0017.jpg"><img class="size-medium wp-image-72" title="DES Iteration 1" src="http://deadbeef-aws.psychotomy.net/wp-content/uploads/2008/10/dsc_0017-300x199.jpg" alt="DES Iteration 1" width="300" height="199" /></a><p class="wp-caption-text">DES Iteration 1</p></div>
<p> </p>
<div id="attachment_74" class="wp-caption alignnone" style="width: 310px"><a href="http://deadbeef-aws.psychotomy.net/wp-content/uploads/2008/10/dsc_0018.jpg"><img class="size-medium wp-image-74" title="DES Iteration 2" src="http://deadbeef-aws.psychotomy.net/wp-content/uploads/2008/10/dsc_0018-300x199.jpg" alt="DES Iteration 2" width="300" height="199" /></a><p class="wp-caption-text">DES Iteration 2</p></div>
<div id="attachment_73" class="wp-caption alignnone" style="width: 310px"><a href="http://deadbeef-aws.psychotomy.net/wp-content/uploads/2008/10/dsc_0019.jpg"><img class="size-medium wp-image-73" title="DES Iteration 3" src="http://deadbeef-aws.psychotomy.net/wp-content/uploads/2008/10/dsc_0019-300x199.jpg" alt="DES Iteration 3" width="300" height="199" /></a><p class="wp-caption-text">DES Iteration 3</p></div>
<p>You can see where I botched R&#8217;(2) by shifting the wrong values around.</p>
<p>Then F(3), K(4), R&#8217;(4), C(6), K(6), F(5), R(5), R(8), D(9), K(9), F(8), R(9) &#8230;</p>
<p> </p>
<div id="attachment_77" class="wp-caption alignnone" style="width: 310px"><a href="http://deadbeef-aws.psychotomy.net/wp-content/uploads/2008/10/dsc_0020.jpg"><img class="size-medium wp-image-77" title="DES Iteration 4" src="http://deadbeef-aws.psychotomy.net/wp-content/uploads/2008/10/dsc_0020-300x199.jpg" alt="DES Iteration 4" width="300" height="199" /></a><p class="wp-caption-text">DES Iteration 4</p></div>
<div id="attachment_75" class="wp-caption alignnone" style="width: 310px"><a href="http://deadbeef-aws.psychotomy.net/wp-content/uploads/2008/10/dsc_0021.jpg"><img class="size-medium wp-image-75" title="DES Iteration 5" src="http://deadbeef-aws.psychotomy.net/wp-content/uploads/2008/10/dsc_0021-300x199.jpg" alt="DES Iteration 5" width="300" height="199" /></a><p class="wp-caption-text">DES Iteration 5</p></div>
<div id="attachment_78" class="wp-caption alignnone" style="width: 310px"><a href="http://deadbeef-aws.psychotomy.net/wp-content/uploads/2008/10/dsc_0022.jpg"><img class="size-medium wp-image-78" title="DES Iteration 6-7" src="http://deadbeef-aws.psychotomy.net/wp-content/uploads/2008/10/dsc_0022-300x199.jpg" alt="DES Iteration 6-7" width="300" height="199" /></a><p class="wp-caption-text">DES Iteration 6-7</p></div>
<div id="attachment_76" class="wp-caption alignnone" style="width: 310px"><a href="http://deadbeef-aws.psychotomy.net/wp-content/uploads/2008/10/dsc_0023.jpg"><img class="size-medium wp-image-76" title="DES Iteration 8" src="http://deadbeef-aws.psychotomy.net/wp-content/uploads/2008/10/dsc_0023-300x199.jpg" alt="DES Iteration 8" width="300" height="199" /></a><p class="wp-caption-text">DES Iteration 8</p></div>
<p>Those are the errors I found while I was working.</p>
<p>I&#8217;m also fairly sure that at some point I started getting R and L confused, in F most likely, when I&#8217;m XOR&#8217;ing.  And I just didn&#8217;t have the &#8230; energy to go through it all to find the issue.  I may work it after thanksgiving, or I may restart it in a more structured manner that will force me o keep track of the C D L R in proper manners.</p>
<p>OTOH, If I ever get this done properly and find a good way of displaying it, this is basically what I started this blog for.  Showing the process, so that it&#8217;s easier to grasp, rather than just the mathematics and the sometimes hard-to-follow standards definitions.  Not that I&#8217;m looking forward to MD5, RSA or Blowfish, for example <img src='http://deadbeef.psychotomy.net/wp-includes/images/smilies/icon_surprised.gif' alt=':o' class='wp-smiley' /> </p>
]]></content:encoded>
			<wfw:commentRss>http://deadbeef.psychotomy.net/2008/10/digital-encryption-screwup/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>DES Erroer!!!</title>
		<link>http://deadbeef.psychotomy.net/2008/10/des-erroer/?utm_source=rss&#038;utm_medium=rss&#038;utm_campaign=des-erroer</link>
		<comments>http://deadbeef.psychotomy.net/2008/10/des-erroer/#comments</comments>
		<pubDate>Mon, 06 Oct 2008 23:57:04 +0000</pubDate>
		<dc:creator>attriel</dc:creator>
				<category><![CDATA[Crypts]]></category>
		<category><![CDATA[Demonstration]]></category>
		<category><![CDATA[DES]]></category>

		<guid isPermaLink="false">http://deadbeef.psychotomy.net/?p=53</guid>
		<description><![CDATA[So, as I was finishing iteration 9 (yeah, this is taking longer than anticipated, because frankly it&#8217;s a bit tedious and requires that I have some decent space on the train) I found myself making an error in structure.  I was XORing R(i-1) with F(i) to get R(i) , and it should be L(i-1) &#8230; [...]]]></description>
				<content:encoded><![CDATA[<p>So, as I was finishing iteration 9 (yeah, this is taking longer than anticipated, because frankly it&#8217;s a bit tedious and requires that I have some decent space on the train) I found myself making an error in structure.  I was XORing R(i-1) with F(i) to get R(i) , and it should be L(i-1) &#8230;</p>
<p> </p>
<p>Which means I need to go back and review iterations 1-8 and make sure I didn&#8217;t make this mistake earlier.  And if I did, I have to restart from that point, because the math will propogate :/</p>
<p>It may be a few more weeks before this gets posted.  And I still need to figure out a good mechanism for displaying it rather than just table after table.  I may look into some kind of graphical table or something  ; I&#8217;d like to do some kind of overlaying of grids to the numbers to show, but that might take some fancy flash and I don&#8217;t have flash <img src='http://deadbeef.psychotomy.net/wp-includes/images/smilies/icon_surprised.gif' alt=':o' class='wp-smiley' /> </p>
]]></content:encoded>
			<wfw:commentRss>http://deadbeef.psychotomy.net/2008/10/des-erroer/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Generating DES Example</title>
		<link>http://deadbeef.psychotomy.net/2008/09/generating-des-example/?utm_source=rss&#038;utm_medium=rss&#038;utm_campaign=generating-des-example</link>
		<comments>http://deadbeef.psychotomy.net/2008/09/generating-des-example/#comments</comments>
		<pubDate>Fri, 12 Sep 2008 01:46:29 +0000</pubDate>
		<dc:creator>attriel</dc:creator>
				<category><![CDATA[Crypts]]></category>
		<category><![CDATA[Demonstration]]></category>
		<category><![CDATA[DES]]></category>

		<guid isPermaLink="false">http://deadbeef.psychotomy.net/?p=32</guid>
		<description><![CDATA[I wanted to let folks know that I&#8217;m working on the DES example (nee demonstration). I&#8217;m currently doing it while I&#8217;m on the train every day, usually in the evening now that the fall season is starting up and iTunes is having my shows again  But it&#8217;s slow, and some days I just feel like [...]]]></description>
				<content:encoded><![CDATA[<p>I wanted to let folks know that I&#8217;m working on the DES example (nee demonstration).</p>
<p>I&#8217;m currently doing it while I&#8217;m on the train every day, usually in the evening now that the fall season is starting up and iTunes is having my shows again <img src='http://deadbeef.psychotomy.net/wp-includes/images/smilies/icon_surprised.gif' alt=':o' class='wp-smiley' />   But it&#8217;s slow, and some days I just feel like reading my book.</p>
<p>Anyway, each iteration takes ~3 half-sheets (I&#8217;m folding papers over and using half a sheet to write on, just because it gives me a contained space that&#8217;s easy to hold on to for writing). It looks like I can do 1.5-2 iterations a day at this point, but I&#8217;m only done with the 3rd iteration, so that may be over or under.  The first iteration took a day, then I finished the next two in one day give or take, but the XORs are starting to get more complex &#8230; Hopefully will be done by the end of the month, then I&#8217;ll have to work on typing it all in.  I want to get them posted in a row, though, so it&#8217;ll be a while before they start posting.</p>
<p>I did change the example some, however, so the old start is no longer relevant.</p>
]]></content:encoded>
			<wfw:commentRss>http://deadbeef.psychotomy.net/2008/09/generating-des-example/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>DES Key Manipulation K(1)</title>
		<link>http://deadbeef.psychotomy.net/2008/06/des-key-manipulation-k1/?utm_source=rss&#038;utm_medium=rss&#038;utm_campaign=des-key-manipulation-k1</link>
		<comments>http://deadbeef.psychotomy.net/2008/06/des-key-manipulation-k1/#comments</comments>
		<pubDate>Tue, 24 Jun 2008 16:30:53 +0000</pubDate>
		<dc:creator>attriel</dc:creator>
				<category><![CDATA[Crypts]]></category>
		<category><![CDATA[Demonstration]]></category>
		<category><![CDATA[DES]]></category>

		<guid isPermaLink="false">http://deadbeef.psychotomy.net/?p=18</guid>
		<description><![CDATA[Starting from K(0): 57 49 41 33 25 17 9 1 58 50 42 34 26 18 10 2 59 51 43 35 27 19 11 3 60 52 44 36 Using our translation table for C 57 49 41 33 25 17 9 1 58 50 42 34 26 18 10 2 59 51 [...]]]></description>
				<content:encoded><![CDATA[<p>Starting from K(0):</p>
<p style="padding-left:30px;">
57 49 41 33 25 17 9<br />
1 58 50 42 34 26 18<br />
10 2 59 51 43 35 27<br />
19 11 3 60 52 44 36
</p>
<p>Using our translation table for C</p>
<p style="padding-left:30px;">
57 49 41 33 25 17 9<br />
1 58 50 42 34 26 18<br />
10 2 59 51 43 35 27<br />
19 11 3 60 52 44 36
</p>
<p>We are left with C(0)</p>
<p style="padding-left:30px">
0  1  1  1  1  0  1<br />
1  1  0  1  1  0  1<br />
0  1  0  1  1  1  1<br />
1  0  1  1  1  1  1
</p>
<p>Translation D</p>
<p style="padding-left:30px;">
63 55 47 39 31 23 15<br />
7 62 54 46 38 30 22<br />
14 6 61 53 45 37 29<br />
21 13 5 28 20 12 4
</p>
<p style="padding-left:30px;">
1  0  0  0  1  1  1<br />
0  1  1  0  0  1  1<br />
0  0  1  0  0  0  1<br />
1  0  0  0  1  1  1
</p>
<p>Rotating C(0) to the left by 1 gives us C(1):</p>
<p style="padding-left:30px;">
1  1  1  1  0  1  1<br />
1  0  1  1  0  1  0<br />
1  0  1  1  1  1  1<br />
0  1  1  1  1  1  0
</p>
<p>This simply moves the first bit to the end of the sequence.  If the 4 lines are thought of as a single line, you take the first number and put it at the end, then break down into four lines again.</p>
<p>D(1), thusly, becomes</p>
<p style="padding-left:30px;">
0  0  0  1  1  1  0<br />
1  1  0  0  1  1  0<br />
0  1  0  0  0  1  1<br />
0  0  0  1  1  1  1
</p>
<p>CD(1) is the merging of C(1) and D(1) (the 4 lines from C(1) followed by 4 more lines of D(1))</p>
<p style="padding-left:30px;">
R  1  2  3  4  5  6  7<br />
1  0  0  0  1  1  1  0<br />
8  1  1  0  0  1  1  0<br />
15 0  1  0  0  0  1  1<br />
22 0  0  0  1  1  1  1<br />
29 1  1  1  1  0  1  1<br />
36 1  0  1  1  0  1  0<br />
43 1  0  1  1  1  1  1<br />
50 0  1  1  1  1  1  0
</p>
<p>Using the K conversion table</p>
<p style="padding-left:30px;">
14 17 11 24 1 5<br />
3 28 15 6 21 10<br />
23 19 12 4 26 8<br />
16 7 27 20 13 2<br />
41 52 31 37 47 55<br />
30 40 51 45 33 48<br />
44 49 39 56 34 53<br />
46 42 50 36 29 32
</p>
<p>We take the nth field from our CD(1) to define K(1)</p>
<p style="padding-left:30px;">
0  0  0  0  0  1<br />
0  1  0  1  1  0<br />
0  0  1  1  1  1<br />
1  0  1  1  1  0<br />
1  1  1  0  1  1<br />
1  0  1  1  0  1<br />
0  1  1  0  1  1<br />
1  0  0  1  1  1</p>
]]></content:encoded>
			<wfw:commentRss>http://deadbeef.psychotomy.net/2008/06/des-key-manipulation-k1/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>DES Initial Permutation</title>
		<link>http://deadbeef.psychotomy.net/2008/06/des-initial-permutation-2/?utm_source=rss&#038;utm_medium=rss&#038;utm_campaign=des-initial-permutation-2</link>
		<comments>http://deadbeef.psychotomy.net/2008/06/des-initial-permutation-2/#comments</comments>
		<pubDate>Thu, 19 Jun 2008 18:19:36 +0000</pubDate>
		<dc:creator>attriel</dc:creator>
				<category><![CDATA[Crypts]]></category>
		<category><![CDATA[Demonstration]]></category>
		<category><![CDATA[DES]]></category>

		<guid isPermaLink="false">http://deadbeef.psychotomy.net/?p=17</guid>
		<description><![CDATA[With our initial Block R 1 2 3 4 5 6 7 8 1 0 1 0 0 0 1 0 0 9 0 1 0 0 0 1 0 1 17 0 1 0 0 0 0 0 1 25 0 1 0 0 0 1 0 0 33 0 1 0 0 0 [...]]]></description>
				<content:encoded><![CDATA[<p>With our initial Block</p>
<p style="padding-left: 30px">
R   1 2 3 4 5 6 7 8<br />
1   0 1 0 0 0 1 0 0<br />
9   0 1 0 0 0 1 0 1<br />
17  0 1 0 0 0 0 0 1<br />
25  0 1 0 0 0 1 0 0<br />
33  0 1 0 0 0 0 1 0<br />
41  0 1 0 0 0 1 0 1<br />
49  0 1 0 0 0 1 0 1<br />
57  0 1 0 0 0 1 1 0
</p>
<p>Using the L(0) translation table</p>
<p style="padding-left: 30px;">
58 50 42 34 26 18 10 2<br />
60 52 44 36 28 20 12 4<br />
62 54 46 38 30 22 14 6<br />
64 56 48 40 32 24 16 8
</p>
<p style="padding-left: 30px;">
1  1  1  1  1  1  1  1<br />
0  0  0  0  0  0  0  0<br />
1  1  1  0  1  0  1  1<br />
0  1  1  0  0  1  1  0
</p>
<p>The R translation Table:</p>
<p style="padding-left: 30px;">
57 49 41 33 25 17 9 1<br />
59 51 43 35 27 19 11 3<br />
61 53 45 37 29 21 13 5<br />
63 55 47 39 31 23 15 7
</p>
<p>The resulting R(0) is such:</p>
<p style="padding-left: 30px;">
0  0  0  0  0  0  0  0<br />
0  0  0  0  0  0  0  0<br />
0  0  0  0  0  0  0  0<br />
1  0  0  1  0  0  0  0</p>
]]></content:encoded>
			<wfw:commentRss>http://deadbeef.psychotomy.net/2008/06/des-initial-permutation-2/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>DES: Pre-setup</title>
		<link>http://deadbeef.psychotomy.net/2008/06/des-pre-setup/?utm_source=rss&#038;utm_medium=rss&#038;utm_campaign=des-pre-setup</link>
		<comments>http://deadbeef.psychotomy.net/2008/06/des-pre-setup/#comments</comments>
		<pubDate>Tue, 17 Jun 2008 16:20:38 +0000</pubDate>
		<dc:creator>attriel</dc:creator>
				<category><![CDATA[Crypts]]></category>
		<category><![CDATA[Demonstration]]></category>
		<category><![CDATA[DES]]></category>

		<guid isPermaLink="false">http://deadbeef.psychotomy.net/?p=16</guid>
		<description><![CDATA[For the purposes of this exercise, we&#8217;re going to use the following information: Data: &#8216;DEADBEEF&#8217; 0 1 0 0 0 1 0 0 0 1 0 0 0 1 0 1 0 1 0 0 0 0 0 1 0 1 0 0 0 1 0 0 0 1 0 0 0 0 1 0 [...]]]></description>
				<content:encoded><![CDATA[<p>For the purposes of this exercise, we&#8217;re going to use the following information:</p>
<p>Data:  &#8216;DEADBEEF&#8217;</p>
<p style="padding-left: 30px;">0 1 0 0 0 1 0 0<br />
0 1 0 0 0 1 0 1<br />
0 1 0 0 0 0 0 1<br />
0 1 0 0 0 1 0 0<br />
0 1 0 0 0 0 1 0<br />
0 1 0 0 0 1 0 1<br />
0 1 0 0 0 1 0 1<br />
0 1 0 0 0 1 1 0</p>
<p>This is our initial 64-bit datablock</p>
<p>Key:0xDEADBEEF313371, layed out vertically</p>
<p style="padding-left: 30px;">1 1 1 1 0 0 0 0<br />
1 0 0 1 0 0 1 1<br />
0 1 1 1 1 1 1 1<br />
1 0 1 0 1 1 1 1<br />
1 1 1 1 0 0 0 0<br />
1 1 1 1 0 0 0 0<br />
1 0 1 1 0 1 0 0<br />
0 1 0 1 1 1 1 1</p>
<p>This gives us our 64-bit Key block, and every row has an even number of 1&#8242;s and 0&#8242;s, utilizing the 8th-bit of each word for parity.</p>
]]></content:encoded>
			<wfw:commentRss>http://deadbeef.psychotomy.net/2008/06/des-pre-setup/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>DES Overview</title>
		<link>http://deadbeef.psychotomy.net/2008/06/des-overview/?utm_source=rss&#038;utm_medium=rss&#038;utm_campaign=des-overview</link>
		<comments>http://deadbeef.psychotomy.net/2008/06/des-overview/#comments</comments>
		<pubDate>Fri, 13 Jun 2008 04:10:21 +0000</pubDate>
		<dc:creator>attriel</dc:creator>
				<category><![CDATA[Crypts]]></category>
		<category><![CDATA[Descriptions]]></category>
		<category><![CDATA[DES]]></category>

		<guid isPermaLink="false">http://deadbeef.psychotomy.net/?p=15</guid>
		<description><![CDATA[Many people would have put this first, I realize.  Actually, had I thought of it, I might have too. But I also think it makes a great deal of sense now.  Because now I can link the bits to their posts.  WHEE! Setup (Initial Permutation) Do 16x: Process Key (Key Manipulations) Process L &#38; R [...]]]></description>
				<content:encoded><![CDATA[<p>Many people would have put this first, I realize.  Actually, had I thought of it, I might have too.</p>
<p>But I also think it makes a great deal of sense now.  Because now I can link the bits to their posts.  WHEE!</p>
<p style="padding-left: 30px;">Setup (<a title="Set Up" href="http://deadbeef.psychotomy.net/?p=10">Initial Permutation</a>)<br />
Do 16x:</p>
<p style="padding-left: 60px;">Process Key (<a title="Process Key" href="http://deadbeef.psychotomy.net/?p=11">Key Manipulations</a>)<br />
Process L &amp; R with K through f (<a title="Process Values" href="http://deadbeef.psychotomy.net/?p=12">Main Algorithm</a>)</p>
<p style="padding-left: 30px;">Done<br />
Finish (<a title="Finish" href="http://deadbeef.psychotomy.net/?p=13">Final Permutation</a>)</p>
<p>FINI</p>
<p>The demonstrated versions are going to be HUGE!  And start Tuesday!</p>
]]></content:encoded>
			<wfw:commentRss>http://deadbeef.psychotomy.net/2008/06/des-overview/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>DES: Final Permutation</title>
		<link>http://deadbeef.psychotomy.net/2008/06/des-final-permutation/?utm_source=rss&#038;utm_medium=rss&#038;utm_campaign=des-final-permutation</link>
		<comments>http://deadbeef.psychotomy.net/2008/06/des-final-permutation/#comments</comments>
		<pubDate>Tue, 10 Jun 2008 16:36:11 +0000</pubDate>
		<dc:creator>attriel</dc:creator>
				<category><![CDATA[Crypts]]></category>
		<category><![CDATA[Descriptions]]></category>
		<category><![CDATA[DES]]></category>

		<guid isPermaLink="false">http://deadbeef.psychotomy.net/?p=13</guid>
		<description><![CDATA[After 16 cycles are complete, we take the L(16) and R(16), catenate them, and use the following Final Permutation to generate our encrypted 64-bit data block 40 8 48 16 56 24 64 32 39 7 47 15 55 23 63 31 38 6 46 14 54 22 62 30 37 5 45 13 53 [...]]]></description>
				<content:encoded><![CDATA[<p>After 16 cycles are complete, we take the L(16) and R(16), catenate them, and use the following Final Permutation to generate our encrypted 64-bit data block</p>
<p><code>40 8 48 16 56 24 64 32<br />
39 7 47 15 55 23 63 31<br />
38 6 46 14 54 22 62 30<br />
37 5 45 13 53 21 61 29<br />
36 4 44 12 52 20 60 28<br />
35 3 43 11 51 19 59 27<br />
34 2 42 10 50 18 58 26<br />
33 1 41 9 49 17 57 25</code></p>
]]></content:encoded>
			<wfw:commentRss>http://deadbeef.psychotomy.net/2008/06/des-final-permutation/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>DES: Main Algorithm</title>
		<link>http://deadbeef.psychotomy.net/2008/06/des-main-algorithm/?utm_source=rss&#038;utm_medium=rss&#038;utm_campaign=des-main-algorithm</link>
		<comments>http://deadbeef.psychotomy.net/2008/06/des-main-algorithm/#comments</comments>
		<pubDate>Thu, 05 Jun 2008 16:36:36 +0000</pubDate>
		<dc:creator>attriel</dc:creator>
				<category><![CDATA[Crypts]]></category>
		<category><![CDATA[Descriptions]]></category>
		<category><![CDATA[DES]]></category>

		<guid isPermaLink="false">http://deadbeef.psychotomy.net/?p=12</guid>
		<description><![CDATA[Given the initial L(0) and R(0), we then develop L(1) and R(1) L(i+1) = R(i) R(i+1) = L XOR f(R(i),K(i+1)) For function f, R(i) is expanded from 32-bit to 48-bit R&#8217;(i) 32 1 2 3 4 5 4 5 6 7 8 9 8 9 10 11 12 13 12 13 14 15 16 17 [...]]]></description>
				<content:encoded><![CDATA[<p>Given the initial L(0) and R(0), we then develop L(1) and R(1)</p>
<p>L(i+1) = R(i)<br />
R(i+1) = L XOR f(R(i),K(i+1))</p>
<p>For function f, R(i) is expanded from 32-bit to 48-bit R&#8217;(i)</p>
<p>32 1 2 3 4 5<br />
4 5 6 7 8 9<br />
8 9 10 11 12 13<br />
12 13 14 15 16 17<br />
16 17 18 19 20 21<br />
20 21 22 23 24 25<br />
24 25 26 27 28 29<br />
28 29 30 31 32 1</p>
<p>R&#8217;(i) XOR K(i+1) (RK(i))is then broken into 8 6-bit chunks and permuted through S tables. (See <a href="http://deadbeef.psychotomy.net/?p=14">S-Table post</a>)</p>
<p>This permutation is then FURTHER permuted, which gives us the result (F(i)) of f(R(i),K(i+1))</p>
<p>16 7 20 21<br />
29 12 28 17<br />
1 15 23 26<br />
5 18 31 10<br />
2 8 24 14<br />
32 27 3 9<br />
19 13 30 6<br />
22 11 4 25</p>
<p>F(i) is then XOR’d with L(i) (from WAAAY back), giving us the R(i+1).</p>
]]></content:encoded>
			<wfw:commentRss>http://deadbeef.psychotomy.net/2008/06/des-main-algorithm/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
