Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:97371 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 16896 invoked from network); 12 Dec 2016 16:02:16 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 12 Dec 2016 16:02:16 -0000 Authentication-Results: pb1.pair.com smtp.mail=andreas@heigl.org; spf=permerror; sender-id=unknown Authentication-Results: pb1.pair.com header.from=andreas@heigl.org; sender-id=unknown Received-SPF: error (pb1.pair.com: domain heigl.org from 195.191.240.18 cause and error) X-PHP-List-Original-Sender: andreas@heigl.org X-Host-Fingerprint: 195.191.240.18 hos109.unaxus.net Received: from [195.191.240.18] ([195.191.240.18:59729] helo=hos109.unaxus.net) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 64/AB-27518-30ACE485 for ; Mon, 12 Dec 2016 11:02:14 -0500 Received: from [212.185.30.151] (port=53935 helo=wdv-hg-0.C.07-zX4090-Heigl.Andreas.dhcp.hg.wdv.de) by hos109.unaxus.net with esmtpsa (TLSv1.2:ECDHE-RSA-AES128-GCM-SHA256:128) (Exim 4.87) (envelope-from ) id 1cGT3G-000ceI-0E; Mon, 12 Dec 2016 17:02:06 +0100 To: Sammy Kaye Powers , PHP Internals References: Message-ID: Date: Mon, 12 Dec 2016 17:02:05 +0100 MIME-Version: 1.0 In-Reply-To: Content-Type: multipart/signed; protocol="application/pkcs7-signature"; micalg=sha-256; boundary="------------ms010605080604030704040105" X-AntiAbuse: This header was added to track abuse, please include it with any abuse report X-AntiAbuse: Primary Hostname - hos109.unaxus.net X-AntiAbuse: Original Domain - lists.php.net X-AntiAbuse: Originator/Caller UID/GID - [47 12] / [47 12] X-AntiAbuse: Sender Address Domain - heigl.org X-Get-Message-Sender-Via: hos109.unaxus.net: authenticated_id: a.heigl+heigl.org/only user confirmed/virtual account not confirmed X-Authenticated-Sender: hos109.unaxus.net: a.heigl@heigl.org Subject: Re: [PHP-DEV] More secure defaults for openssl_public_encrypt() & openssl_private_decrypt() From: andreas@heigl.org (Andreas Heigl) --------------ms010605080604030704040105 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Am 12.12.16 um 16:26 schrieb Sammy Kaye Powers: > Hey internals! >=20 > As pointed out in Paragon's excellent blog post, > openssl_public_encrypt() & openssl_private_decrypt() defaults to the > insecure OPENSSL_PKCS1_PADDING constant. >=20 > https://paragonie.com/blog/2016/12/everything-you-know-about-public-key= -encryption-in-php-is-wrong#php-openssl-rsa-bad-default >=20 > What are your thoughts about deprecating OPENSSL_PKCS1_PADDING and > using OPENSSL_PKCS1_OAEP_PADDING as the new default? Is that backwards compatible? I'm thinking of decrypting data that was encrypted with the "old" settings... I just tested this: