Req #80495 [NEW]: Enable to set padding in openssl_verify
| From: | tobias dot assmann at ecsec dot de | Date: | Tue, 08 Dec 2020 14:17:12 +0000 |
| Subject: | Req #80495 [NEW]: Enable to set padding in openssl_verify | ||
| Groups: | php.bugs | ||
| Request: | Send a blank email to php-bugs+get-230941@lists.php.net to get a copy of this message | ||
From: tobias dot assmann at ecsec dot de
Operating system: Linux
PHP version: Irrelevant
Package: OpenSSL related
Bug Type: Feature/Change Request
Bug description:Enable to set padding in openssl_verify
Description:
------------
Hi,
when using the openssl extension for public en-/decryption
(openssl_public_decrypt) you can set the padding with values like
OPENSSL_PKCS1_PADDING.
This is not possible when trying to verify a signature using
openssl_verify()
But setting the padding or using a greater collection of alorithems is
needed, when wanting to verify a signature which has been created with a
PKCS1 v2 (RSASSA-PSS) based algorithm i.E. sha256-rsa-MGF1.
It would be great if the PHP openssl extensions could be enhanced to use
it with more flexibility regarding cryptographic algorithms.
--
Edit bug report at https://bugs.php.net/bug.php?id=80495&edit=1
--
Fix committed: https://bugs.php.net/fix.php?id=80495&r=fixed
Fixed in release: https://bugs.php.net/fix.php?id=80495&r=alreadyfixed
Need backtrace: https://bugs.php.net/fix.php?id=80495&r=needtrace
Need Reproduce Script: https://bugs.php.net/fix.php?id=80495&r=needscript
Try newer version: https://bugs.php.net/fix.php?id=80495&r=oldversion
Not developer issue: https://bugs.php.net/fix.php?id=80495&r=support
Expected behavior: https://bugs.php.net/fix.php?id=80495&r=notwrong
Not enough info: https://bugs.php.net/fix.php?id=80495&r=notenoughinfo
Submitted twice: https://bugs.php.net/fix.php?id=80495&r=submittedtwice
register_globals: https://bugs.php.net/fix.php?id=80495&r=globals
PHP version support discontinued: https://bugs.php.net/fix.php?id=80495&r=phptooold
Daylight Savings: https://bugs.php.net/fix.php?id=80495&r=dst
IIS Stability: https://bugs.php.net/fix.php?id=80495&r=isapi
Install GNU Sed: https://bugs.php.net/fix.php?id=80495&r=gnused
Floating point limitations: https://bugs.php.net/fix.php?id=80495&r=float
No Zend Extensions: https://bugs.php.net/fix.php?id=80495&r=nozend
MySQL Configuration Error: https://bugs.php.net/fix.php?id=80495&r=mysqlcfg