Browse files

fixes

git-svn-id: http://svn.php.net/repository/pear/packages/Crypt_CBC/trunk@120157 c90b9560-bf6c-de11-be94-00142212c4b1
  • Loading branch information...
1 parent f513cc7 commit 11800d52103d7be4be7d83dd90155143d1159fff Colin Viebrock committed Mar 13, 2003
Showing with 6 additions and 8 deletions.
  1. +3 −4 CBC.php
  2. +3 −4 package.xml
View
7 CBC.php
@@ -142,7 +142,7 @@ function Crypt_CBC ($key, $cipher='DES')
}
if (!function_exists('mcrypt_module_open')) {
return $this->raiseError('libmcrypt version insufficient', null,
- PEAR_ERROR_DIE, null, 'this class requires libmcrypt >= 2.4.x, preferably >= 2.4.18' );
+ PEAR_ERROR_DIE, null, 'this class requires libmcrypt >= 2.4.x, preferably >= 2.5.5' );
}
if (function_exists('mcrypt_generic_deinit')) {
$this->deinit_function = 'mcrypt_generic_deinit';
@@ -179,9 +179,9 @@ function Crypt_CBC ($key, $cipher='DES')
/* initialize cipher */
- $this->blocksize = mcrypt_get_block_size($this->cipher,'cbc');
- $this->keysize = mcrypt_get_key_size($this->cipher,'cbc');
$this->TD = mcrypt_module_open ($this->cipher, '', 'ecb', '');
+ $this->blocksize = mcrypt_enc_get_block_size($this->TD);
+ $this->keysize = mcrypt_enc_get_key_size($this->TD);
/* mangle key with MD5 */
@@ -204,7 +204,6 @@ function Crypt_CBC ($key, $cipher='DES')
function _Crypt_CBC ()
{
- @mcrypt_generic_end($this->TD);
@mcrypt_module_close($this->TD);
}
View
7 package.xml
@@ -18,13 +18,12 @@
</maintainer>
</maintainers>
<release>
- <version>0.3</version>
+ <version>0.4</version>
<state>stable</state>
<license>PHP 2.02</license>
- <date>2002-05-10</date>
+ <date>2003-03-13</date>
<notes>
- Previous bug fixed worked, but required PHP 4.2.0. The class has been changed
- to allow for more backwards compatability (back to 4.0.2)
+ Fix deinit problems.
</notes>
<filelist>
<dir name="/" baseinstalldir="Crypt">

0 comments on commit 11800d5

Please sign in to comment.