Browse files

RC4

git-svn-id: http://svn.php.net/repository/pear/packages/Crypt_Xtea/trunk@232780 c90b9560-bf6c-de11-be94-00142212c4b1
  • Loading branch information...
1 parent fc14410 commit 5790cb9d4fca07052334ca61284e6e85bba664c3 @cweiske cweiske committed Mar 27, 2007
Showing with 4 additions and 4 deletions.
  1. +3 −3 Xtea.php
  2. +1 −1 package.xml
View
6 Xtea.php
@@ -343,7 +343,7 @@ function decrypt($enc_data, $key)
function _encipherLong($y, $z, &$w, &$k)
{
$sum = (integer) 0;
- $delta = (integer) 0x9E3779B9;
+ $delta = 0x9E3779B9;
$n = (integer) $this->n_iter;
while ($n-- > 0) {
@@ -378,8 +378,8 @@ function _encipherLong($y, $z, &$w, &$k)
function _decipherLong($y, $z, &$w, &$k)
{
// sum = delta<<5, in general sum = delta * n
- $sum = (integer) 0xC6EF3720;
- $delta = (integer) 0x9E3779B9;
+ $sum = 0xC6EF3720;
+ $delta = 0x9E3779B9;
$n = (integer) $this->n_iter;
while ($n-- > 0) {
View
2 package.xml
@@ -27,7 +27,7 @@
</maintainer>
</maintainers>
<release>
- <version>1.1.0RC3</version>
+ <version>1.1.0RC4</version>
<state>beta</state>
<date>2004-10-04</date>
<notes>

0 comments on commit 5790cb9

Please sign in to comment.