<?xml version="1.0" encoding="UTF-8"?>
<commit>
  <added type="array"/>
  <modified type="array">
    <modified>
      <diff>@@ -69,19 +69,19 @@ module Feistel
     e_xor_k = XOR.run(e, k) # X-or e (expanded r) with k (the sub key).
     
     # Break e_xor_k into 8 6-bit arrays and find both m (s-box row) and n (s-box column) for the s-box lookup.
-    8.times do |j|
+    8.times do |i|
       b &lt;&lt; []
         6.times do 
-        b[j] &lt;&lt; e_xor_k.shift
+        b[i] &lt;&lt; e_xor_k.shift
       end
       
-      m &lt;&lt; (b[j].first.to_s + b[j].last.to_s).to_i(2) * 16 # [1, 0, 1, 0, 1, 0] =&gt; [1, 0] =&gt; 2 =&gt; 32 =&gt; 3rd row.
-      n &lt;&lt; b[j][1..4].to_s.to_i(2) # [1, 0, 1, 0, 1, 0] =&gt; [0, 1, 0, 1] =&gt; 5 =&gt; 6th column.
+      m &lt;&lt; (b[i].first.to_s + b[i].last.to_s).to_i(2) * 16 # [1, 0, 1, 0, 1, 0] =&gt; [1, 0] =&gt; 2 =&gt; 32 =&gt; 3rd row.
+      n &lt;&lt; b[i][1..4].to_s.to_i(2) # [1, 0, 1, 0, 1, 0] =&gt; [0, 1, 0, 1] =&gt; 5 =&gt; 6th column.
     end
     
     # Substitute every 6-bit array with the 4-bit array specified by the appropriate s-box.
-    8.times do |j|
-        b[j] = S[j][m[j] + n[j]].to_s(2).rjust(4, '0').split('').collect{|bit| bit.to_i}
+    8.times do |i|
+        b[i] = S[i][m[i] + n[i]].to_s(2).rjust(4, '0').split('').collect{|bit| bit.to_i}
     end
         
     return P.collect{|p| b.flatten[p - 1]}</diff>
      <filename>lib/ruby-des/feistel.rb</filename>
    </modified>
    <modified>
      <diff>@@ -9,12 +9,12 @@ class CtxTest &lt; Test::Unit::TestCase
   end
   
   def test_run
-    encrypted = RubyDES::Ctx.new(@data, @key).encrypt
+    encrypted_data = RubyDES::Ctx.new(@data, @key).encrypt
     
-    assert_equal ctx(:encrypted_bit_array), encrypted.bit_array
+    assert_equal ctx(:encrypted_bit_array), encrypted_data.bit_array
     
-    decrypted = RubyDES::Ctx.new(encrypted, @key).decrypt
+    decrypted_data = RubyDES::Ctx.new(encrypted_data, @key).decrypt
     
-    assert_equal ctx(:decrypted_bit_array), decrypted.bit_array
+    assert_equal ctx(:decrypted_bit_array), decrypted_data.bit_array
   end
 end</diff>
      <filename>test/ctx_test.rb</filename>
    </modified>
  </modified>
  <removed type="array"/>
  <parents type="array">
    <parent>
      <id>d64038ad88de53b08f5dc2cdbedad5ff4c37f4a5</id>
    </parent>
  </parents>
  <author>
    <name>Robert Sosinski</name>
    <email>robert@capansis.com</email>
  </author>
  <url>http://github.com/robertsosinski/ruby-des/commit/c36560f2990db6d49d48baf5c2c4bd099fbfe78c</url>
  <id>c36560f2990db6d49d48baf5c2c4bd099fbfe78c</id>
  <committed-date>2008-08-03T17:33:34-07:00</committed-date>
  <authored-date>2008-08-03T17:33:34-07:00</authored-date>
  <message>cleanup</message>
  <tree>a87a69d5bf31e8eefc59d522684b7abeaea3b67f</tree>
  <committer>
    <name>Robert Sosinski</name>
    <email>robert@capansis.com</email>
  </committer>
</commit>
