Bug #78079 [Csd]: openssl_encrypt_ccm.phpt fails with OpenSSL 1.1.1c

From: Date: Sun, 02 Jun 2019 18:18:38 +0000
Subject: Bug #78079 [Csd]: openssl_encrypt_ccm.phpt fails with OpenSSL 1.1.1c
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-221083@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: bukka@php.net Reported by: cmb@php.net Summary: openssl_encrypt_ccm.phpt fails with OpenSSL 1.1.1c Status: Closed 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: It was actually a bug as the result of setting the tag length has not been checked correctly. I modified the test a bit to reflect the changes. Previous Comments: ------------------------------------------------------------------------ [2019-06-02 18:15:51] bukka@php.net Automatic comment on behalf of bukka Revision: http://git.php.net/?p=php-src.git;a=commit;h=2e025794745e09f7d0c72822ad0238bf6d67b2e8 Log: Fix bug #78079 (openssl_encrypt_ccm.phpt fails with OpenSSL 1.1.1c) ------------------------------------------------------------------------ [2019-06-02 18:15:08] bukka@php.net Automatic comment on behalf of bukka Revision: http://git.php.net/?p=php-src.git;a=commit;h=2e025794745e09f7d0c72822ad0238bf6d67b2e8 Log: Fix bug #78079 (openssl_encrypt_ccm.phpt fails with OpenSSL 1.1.1c) ------------------------------------------------------------------------ [2019-06-02 18:13:33] bukka@php.net Automatic comment on behalf of bukka Revision: http://git.php.net/?p=php-src.git;a=commit;h=2e025794745e09f7d0c72822ad0238bf6d67b2e8 Log: Fix bug #78079 (openssl_encrypt_ccm.phpt fails with OpenSSL 1.1.1c) ------------------------------------------------------------------------ [2019-06-02 18:11:24] bukka@php.net Automatic comment on behalf of bukka Revision: http://git.php.net/?p=php-src.git;a=commit;h=2e025794745e09f7d0c72822ad0238bf6d67b2e8 Log: Fix bug #78079 (openssl_encrypt_ccm.phpt fails with OpenSSL 1.1.1c) ------------------------------------------------------------------------ [2019-05-29 09:28:07] cmb@php.net 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> ------------------------------------------------------------------------ The remainder of the comments for this report are too long. To view the rest of the comments, please view the bug report online at https://bugs.php.net/bug.php?id=78079 -- Edit this bug report at https://bugs.php.net/bug.php?id=78079&edit=1

« previous php.bugs (#221083) next »