cvs: php4 /pear/Crypt CBC.php

From: Date: Thu, 20 Dec 2001 17:20:24 +0000
Subject: cvs: php4 /pear/Crypt CBC.php
Groups: php.pear.cvs 
Request: Send a blank email to pear-cvs+get-1639@lists.php.net to get a copy of this message
cmv Thu Dec 20 12:20:24 2001 EDT Modified files: /php4/pear/Crypt CBC.php Log: Really fix it this time ... Index: php4/pear/Crypt/CBC.php diff -u php4/pear/Crypt/CBC.php:1.12 php4/pear/Crypt/CBC.php:1.13 --- php4/pear/Crypt/CBC.php:1.12 Thu Dec 20 12:12:32 2001 +++ php4/pear/Crypt/CBC.php Thu Dec 20 12:20:24 2001 @@ -41,7 +41,7 @@ * the author of libcrypt decides to name things internally. * * -* @version $Id: CBC.php,v 1.12 2001/12/20 17:12:32 cmv Exp $ +* @version $Id: CBC.php,v 1.13 2001/12/20 17:20:24 cmv Exp $ * @author Colin Viebrock <colin@easydns.com> * @author Mike Glover <mpg4@duluoz.net> * @access public @@ -191,7 +191,8 @@ function _Crypt_CBC () { - mcrypt_module_close($this->TD); + @mcrypt_generic_end($this->TD); + @mcrypt_module_close($this->TD); } @@ -238,10 +239,6 @@ $crypt .= $cblock; } - if (!mcrypt_generic_end($this->TD)) { - return $this->raiseError('mcrypt_generic_end failed' ); - } - $this->last_crypt = $crypt; return $crypt; @@ -288,10 +285,6 @@ $block = $iv ^ mdecrypt_generic($this->TD, $cblock); $iv = $cblock; $clear .= $block; - } - - if (!mcrypt_generic_end($this->TD)) { - return $this->raiseError('mcrypt_generic_end failed' ); } /* remove the padding from the end of the cleartext */

« previous php.pear.cvs (#1639) next »