Skip to content

Commit

Permalink
Unnecesary deprecated code
Browse files Browse the repository at this point in the history
  • Loading branch information
CodersBrothers committed Jul 13, 2014
1 parent 1bcbd76 commit 921297d
Showing 1 changed file with 1 addition and 32 deletions.
33 changes: 1 addition & 32 deletions src/RC4.class.php
Original file line number Diff line number Diff line change
Expand Up @@ -42,35 +42,4 @@ protected function swap($i, $j)
$this->s[$j] = $c;
}

}

// DEPRECATED: WAUTH-1
//class KeyStream
//{
// private $rc4;
// private $key;
//
// public function __construct($key)
// {
// $this->rc4 = new RC4($key, 256);
// $this->key = $key;
// }
//
// public function encode($data, $offset, $length, $append = true)
// {
// $d = $this->rc4->cipher($data, $offset, $length);
// $h = substr(hash_hmac('sha1', $d, $this->key, true), 0, 4);
// if ($append)
// return $d . $h;
// else
// return $h . $d;
// }
//
// public function decode($data, $offset, $length)
// {
// /* TODO: Hash check */
//
// return $this->rc4->cipher($data, $offset + 4, $length - 4);
// }
//
//}
}

0 comments on commit 921297d

Please sign in to comment.