php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Request #34301 ext/openssl: Add signing algorithm selection
Submitted: 2005-08-30 03:11 UTC Modified: 2006-10-28 01:00 UTC
From: diogoko at gmail dot com Assigned: pajoye (profile)
Status: No Feedback Package: Feature/Change Request
PHP Version: 4CVS-2005-08-30 (CVS) OS:
Private report: No CVE-ID: None
Welcome back! If you're the original bug submitter, here's where you can edit the bug or add additional notes.
If you forgot your password, you can retrieve your password here.
Password:
Status:
Package:
Bug Type:
Summary:
From: diogoko at gmail dot com
New email:
PHP Version: OS:

 

 [2005-08-30 03:11 UTC] diogoko at gmail dot com
Description:
------------
Add a signature_algo parameter to the openssl_sign and openssl_verify functions. This parameter would specify the digest algorithm to be used when signing or verifying a signature.

Currently, both functions are limited to the sha1 digest algorithm, even thought the OpenSSL C library supports at least other three algorithms (md2, md4, md5).

Actually, openssl_sign seems to have all that is needed to support a (somehow currently ignored) signature_algo parameter, as can be seen in the CVS. On the other hand, openssl_verify is hardcoded to only use sha1.


Patches

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2006-10-21 00:43 UTC] pajoye@php.net
Please try using this CVS snapshot:

  http://snaps.php.net/php5.2-latest.tar.gz
 
For Windows:
 
  http://snaps.php.net/win32/php5.2-win32-latest.zip

Algorithm selection support has been added, please try 5.2.
 [2006-10-28 01:00 UTC] php-bugs at lists dot php dot net
No feedback was provided for this bug for over a week, so it is
being suspended automatically. If you are able to provide the
information that was originally requested, please do so and change
the status of the bug back to "Open".
 
PHP Copyright © 2001-2025 The PHP Group
All rights reserved.
Last updated: Wed Jul 23 23:00:03 2025 UTC