From 6101b23a329e87ec22709530a7408c2b1078a338 Mon Sep 17 00:00:00 2001 From: Jim Wigginton Date: Mon, 31 Mar 2008 00:49:09 +0000 Subject: [PATCH] - fixed a bug discovered by MarkDHamill (see http://www.frostjedi.com/phpbb/viewtopic.php?f=46&t=9796) git-svn-id: http://phpseclib.svn.sourceforge.net/svnroot/phpseclib/trunk@11 21d32557-59b3-4da0-833f-c5933fad653e --- phpseclib/Crypt/DES.php | 9 +-------- 1 file changed, 1 insertion(+), 8 deletions(-) diff --git a/phpseclib/Crypt/DES.php b/phpseclib/Crypt/DES.php index a2b8547b..d3d0a01e 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.3 2007-07-25 21:56:14 terrafrost Exp $ + * @version $Id: DES.php,v 1.4 2008-03-31 00:49:09 terrafrost Exp $ * @link http://phpseclib.sourceforge.net */ @@ -781,13 +781,6 @@ class Crypt_DES { $temp = ($key[1] & 0xF0000000) >> 28; $key[1] = ($key[1] | $temp) & 0x0FFFFFFF; - $temp = array(0, 0); - for ($j = 0; $j < 48; $j++) { - $bitmasked = $key[floor($ki[$j] / 28)] & (1 << ($ki[$j] % 28)); - $shift = 5 - ($j % 6); - $temp[floor($j / 6)] |= ($bitmasked != 0) << $shift; - } - $temp = array( (($key[1] & 0x00004000) >> 9) | (($key[1] & 0x00000800) >> 7) | (($key[1] & 0x00020000) >> 14) | (($key[1] & 0x00000010) >> 2) |