diff --git a/phpseclib/Crypt/DES.php b/phpseclib/Crypt/DES.php index 4084a87e..fd5746b4 100644 --- a/phpseclib/Crypt/DES.php +++ b/phpseclib/Crypt/DES.php @@ -53,7 +53,7 @@ * @author Jim Wigginton * @copyright MMVII Jim Wigginton * @license http://www.gnu.org/licenses/lgpl.txt - * @version $Id: DES.php,v 1.6 2009-02-16 22:22:13 terrafrost Exp $ + * @version $Id: DES.php,v 1.7 2009-03-09 05:13:24 terrafrost Exp $ * @link http://phpseclib.sourceforge.net */ @@ -508,7 +508,7 @@ class Crypt_DES { $length = strlen($text); if (!$this->padding) { - if ($length & 7 == 0) { + if (($length & 7) == 0) { return $text; } else { user_error("The plaintext's length ($length) is not a multiple of the block size (8)", E_USER_NOTICE); diff --git a/phpseclib/Crypt/TripleDES.php b/phpseclib/Crypt/TripleDES.php index c47985bf..527f7250 100644 --- a/phpseclib/Crypt/TripleDES.php +++ b/phpseclib/Crypt/TripleDES.php @@ -47,7 +47,7 @@ * @author Jim Wigginton * @copyright MMVII Jim Wigginton * @license http://www.gnu.org/licenses/lgpl.txt - * @version $Id: TripleDES.php,v 1.5 2009-02-16 22:22:13 terrafrost Exp $ + * @version $Id: TripleDES.php,v 1.6 2009-03-09 05:13:24 terrafrost Exp $ * @link http://phpseclib.sourceforge.net */ @@ -563,7 +563,7 @@ class Crypt_TripleDES { $length = strlen($text); if (!$this->padding) { - if ($length & 7 == 0) { + if (($length & 7) == 0) { return $text; } else { user_error("The plaintext's length ($length) is not a multiple of the block size (8)", E_USER_NOTICE);