Bug #78079 [Asn]: openssl_encrypt_ccm.phpt fails with OpenSSL 1.1.1c
| From: | cmb@php.net | Date: | Wed, 29 May 2019 09:28:07 +0000 |
| Subject: | Bug #78079 [Asn]: openssl_encrypt_ccm.phpt fails with OpenSSL 1.1.1c | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-221040@lists.php.net to get a copy of this message | ||
Edit report at https://bugs.php.net/bug.php?id=78079&edit=1
ID: 78079
Updated by: cmb@php.net
Reported by: cmb@php.net
Summary: openssl_encrypt_ccm.phpt fails with OpenSSL 1.1.1c
Status: Assigned
Type: Bug
Package: OpenSSL related
Operating System: Windows
PHP Version: 7.2Git-2019-05-28 (Git)
Assigned To: bukka
Block user comment: N
Private report: N
New Comment:
I debugged, and found that the failing test is caused by enforcing
a strict output length check in CRYPTO_ccm128_tag[1]. It seems to
me that removing the last openssl_encrypt() call in the test is
the appropriate solution.
[1] <https://github.com/openssl/openssl/commit/fc4c034ee823c18de34d72dc46da6aabbb6f551e>
Previous Comments:
------------------------------------------------------------------------
[2019-05-28 21:24:56] cmb@php.net
Jakub, could you please have a look at this?
------------------------------------------------------------------------
[2019-05-28 21:24:04] cmb@php.net
Description:
------------
When building PHP with OpenSSL 1.1.1c, openssl_encrypt_ccm.phpt[1]
reproducibly fails (the other tests are passing). I have only
tested this on Windows, but other systems may be affected as well.
[1] <https://github.com/php/php-src/blob/php-7.3.6/ext/openssl/tests/openssl_encrypt_ccm.phpt>
Test script:
---------------
nmake test TESTS=ext\openssl\tests\openssl_encrypt_ccm.phpt
Actual result:
--------------
007+
008+ Warning: openssl_encrypt(): Retrieving verification tag failed in
D:\php-sdk\phpdev\vc15\x64\php-src-7.3\ext\openssl\tests\openssl_encrypt_ccm.php on line 18
007- string(8) "p/lvgA=="
008- int(1024)
009+ bool(false)
010+ int(16)
------------------------------------------------------------------------
--
Edit this bug report at https://bugs.php.net/bug.php?id=78079&edit=1