Your message dated Wed, 12 Jan 2005 19:31:34 +0100
with message-id <[EMAIL PROTECTED]>
and subject line argument used in function seems incorrect
has caused the attached Bug report to be marked as done.

This means that you claim that the problem has been dealt with.
If this is not the case it is now your responsibility to reopen the
Bug report if necessary, and/or fix the problem forthwith.

(NB: If you are a system administrator and have no idea what I am
talking about this indicates a serious mail system misconfiguration
somewhere.  Please contact me immediately.)

Debian bug tracking system administrator
(administrator, Debian Bugs database)

--------------------------------------
Received: (at submit) by bugs.debian.org; 12 Jan 2005 15:24:13 +0000
>From [EMAIL PROTECTED] Wed Jan 12 07:24:13 2005
Return-path: <[EMAIL PROTECTED]>
Received: from dsl81-214-31994.adsl.ttnet.net.tr (roadrunner.skyblue.gen.tr) 
[81.214.124.250] 
        by spohr.debian.org with esmtp (Exim 3.35 1 (Debian))
        id 1CokM0-0005oV-00; Wed, 12 Jan 2005 07:24:13 -0800
Received: from roadrunner.skyblue.gen.tr (roadrunner.skyblue.gen.tr [127.0.0.1])
        by roadrunner.skyblue.gen.tr (8.13.2/8.13.2/Debian-1) with ESMTP id 
j0CFO9t9012411
        (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NOT);
        Wed, 12 Jan 2005 17:24:09 +0200
Received: (from [EMAIL PROTECTED])
        by roadrunner.skyblue.gen.tr (8.13.2/8.13.2/Submit) id j0CFO9uZ012410;
        Wed, 12 Jan 2005 17:24:09 +0200
Message-Id: <[EMAIL PROTECTED]>
X-Authentication-Warning: roadrunner.skyblue.gen.tr: skyblue set sender to 
[EMAIL PROTECTED] using -f
Content-Type: text/plain; charset="us-ascii"
MIME-Version: 1.0
Content-Transfer-Encoding: 7bit
From: Enver ALTIN <[EMAIL PROTECTED]>
To: Debian Bug Tracking System <[EMAIL PROTECTED]>
Subject: php4-mcrypt fails to open encryption module
X-Mailer: reportbug 3.5
Date: Wed, 12 Jan 2005 17:24:08 +0200
Delivered-To: [EMAIL PROTECTED]
X-Spam-Checker-Version: SpamAssassin 2.60-bugs.debian.org_2005_01_02 
        (1.212-2003-09-23-exp) on spohr.debian.org
X-Spam-Status: No, hits=-8.0 required=4.0 tests=BAYES_00,HAS_PACKAGE 
        autolearn=no version=2.60-bugs.debian.org_2005_01_02
X-Spam-Level: 
X-CrossAssassin-Score: 2

Package: php4-mcrypt
Version: 3:4.2.3-10
Severity: grave
Justification: renders package unusable

The following simple test case doesn't work:

<?
$td = mcrypt_module_open ('des', '', 'ejb', '') or die;
$iv = mcrypt_create_iv (mcrypt_enc_get_iv_size($td), MCRYPT_DEV_RANDOM);
$ks = mcrypt_enc_get_key_size ($td);
$key = substr (md5 ($_GET["key"]), 0, $ks);
mcrypt_generic_init ($td, $key, $iv);
echo mcrypt_generic ($td, $_GET["data"]);
mcrypt_generic_deinit ($td);
?>

and fails with the error:

Warning: could not open encryption module in /tmp/1.php on line 2

Thanks,


-- System Information:
Debian Release: 3.1
  APT prefers unstable
  APT policy: (500, 'unstable'), (1, 'experimental')
Architecture: i386 (i686)
Kernel: Linux 2.6.9-1-686
Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8)

Versions of packages php4-mcrypt depends on:
ii  debconf                     1.4.41       Debian configuration management sy
ii  libapache-mod-php4 [phpapi- 4:4.3.10-2   server-side, HTML-embedded scripti
ii  libc6                       2.3.2.ds1-20 GNU C Library: Shared libraries an
ii  libltdl3                    1.6-0+1.5a-4 A system independent dlopen wrappe
ii  libmcrypt4                  2.5.7-4      De-/Encryption Library
ii  php4-cgi [phpapi-20020918]  4:4.3.10-2   server-side, HTML-embedded scripti
ii  php4-cli [phpapi-20020918]  4:4.3.10-2   command-line interpreter for the p

-- debconf information:
  php4/add_extension: true
  php4/remove_extension: true
  php4/extension_mcrypt_apache: true
  php4/extension_mcrypt_cgi: true

---------------------------------------
Received: (at 290046-done) by bugs.debian.org; 12 Jan 2005 18:32:07 +0000
>From [EMAIL PROTECTED] Wed Jan 12 10:32:07 2005
Return-path: <[EMAIL PROTECTED]>
Received: from smtp5.wanadoo.fr [193.252.22.26] 
        by spohr.debian.org with esmtp (Exim 3.35 1 (Debian))
        id 1ConHr-0001U7-00; Wed, 12 Jan 2005 10:32:07 -0800
Received: from me-wanadoo.net (localhost [127.0.0.1])
        by mwinf0508.wanadoo.fr (SMTP Server) with ESMTP id 4CB9F1C000FE;
        Wed, 12 Jan 2005 19:31:36 +0100 (CET)
Received: from g-tt.rd.francetelecom.fr 
(AGrenoble-202-1-4-69.w80-15.abo.wanadoo.fr [80.15.194.69])
        by mwinf0508.wanadoo.fr (SMTP Server) with ESMTP id 1876A1C000E8;
        Wed, 12 Jan 2005 19:31:36 +0100 (CET)
Received: from localhost ([127.0.0.1] ident=bayle)
        by g-tt.rd.francetelecom.fr with esmtp (Exim 3.36 #1 (Debian))
        id 1ConHL-0001u1-00; Wed, 12 Jan 2005 19:31:35 +0100
Subject: argument used in function seems incorrect
From: Christian BAYLE <[EMAIL PROTECTED]>
To: [EMAIL PROTECTED], [EMAIL PROTECTED]
Cc: [EMAIL PROTECTED]
Content-Type: multipart/signed; micalg=pgp-sha1; 
protocol="application/pgp-signature"; boundary="=-35ho5y3ea/OImXDfrI5M"
Date: Wed, 12 Jan 2005 19:31:34 +0100
Message-Id: <[EMAIL PROTECTED]>
Mime-Version: 1.0
X-Mailer: Evolution 2.0.2 
Delivered-To: [EMAIL PROTECTED]
X-Spam-Checker-Version: SpamAssassin 2.60-bugs.debian.org_2005_01_02 
        (1.212-2003-09-23-exp) on spohr.debian.org
X-Spam-Status: No, hits=-3.0 required=4.0 tests=BAYES_00 autolearn=no 
        version=2.60-bugs.debian.org_2005_01_02
X-Spam-Level: 
X-CrossAssassin-Score: 2


--=-35ho5y3ea/OImXDfrI5M
Content-Type: text/plain
Content-Transfer-Encoding: quoted-printable

Looks like your ejb argument is incorrect and should be something like
ofb.
I didn't find any reference about a possible argument =3D ejb
If you have any, please send me and reopen the bug.
The following exemple works perfectly.

Christian

#! /usr/bin/php4 -f
<?php
//$td =3D mcrypt_module_open ('des', '', 'ejb', '') or die;
$td =3D mcrypt_module_open ('des', '', 'ofb', '') or die;
//$td =3D mcrypt_module_open('rijndael-256', '', 'ofb', '');
$iv =3D mcrypt_create_iv (mcrypt_enc_get_iv_size($td), MCRYPT_DEV_RANDOM);
$ks =3D mcrypt_enc_get_key_size ($td);
$key =3D substr (md5 ($_GET["key"]), 0, $ks);
mcrypt_generic_init ($td, $key, $iv);
echo mcrypt_generic ($td, $_GET["data"]);
mcrypt_generic_deinit ($td);
?>


--=-35ho5y3ea/OImXDfrI5M
Content-Type: application/pgp-signature; name=signature.asc
Content-Description: Ceci est une partie de message
        =?ISO-8859-1?Q?num=E9riquement?= =?ISO-8859-1?Q?_sign=E9e?=

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.5 (GNU/Linux)

iD8DBQBB5W0FTx4JB6685x8RAixyAJ4jAAUxiKZ9CoooxcUgLj0FKcxS/gCeI70/
m/2lPM943EHBFZRjLyqInKM=
=IX6c
-----END PGP SIGNATURE-----

--=-35ho5y3ea/OImXDfrI5M--



-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]

Reply via email to