Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:87997 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 93524 invoked from network); 1 Sep 2015 19:04:42 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 1 Sep 2015 19:04:42 -0000 Authentication-Results: pb1.pair.com header.from=jakub.php@gmail.com; sender-id=pass Authentication-Results: pb1.pair.com smtp.mail=jakub.php@gmail.com; spf=pass; sender-id=pass Received-SPF: pass (pb1.pair.com: domain gmail.com designates 209.85.213.178 as permitted sender) X-PHP-List-Original-Sender: jakub.php@gmail.com X-Host-Fingerprint: 209.85.213.178 mail-ig0-f178.google.com Received: from [209.85.213.178] ([209.85.213.178:38576] helo=mail-ig0-f178.google.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 50/C0-23910-AC6F5E55 for ; Tue, 01 Sep 2015 15:04:42 -0400 Received: by igbut12 with SMTP id ut12so8561174igb.1 for ; Tue, 01 Sep 2015 12:04:39 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:sender:in-reply-to:references:date:message-id:subject :from:to:cc:content-type; bh=wqHj9yX1itTztiucHh8U5krUGSWR9S5qMbuN4UlNQvY=; b=zLajkhI6MRE0lEmJYJeSOo5tdyvRUwtM773e/pVsk8X5CD46syFdgne8Dd/GBn7Ybd ps6qXsGRmZ7+JC4YUo23OX/MC6cIUT318ve+pj6qyVSVQ/ihtw+K9n3LTB5RsA1l+fRs HKGWUE3VVjBhM25VaAQ0S93Rsow7K9GIc8IunjhuPIaKb20B6tajR+5UM3x0JZ2A6Dyp DNSDHKecRVIZszfHOtNYJ607/PSOeRvPpyMEraJR8BD2GjDLMF+5x3XTeJY0R+yg6dHg JvA7HtJr+v73/hdv2aLKzmLoOjakqee7MtbtzN+kICdIoOQ4xn4eh6b9vpxkRhlerwVx nQWw== MIME-Version: 1.0 X-Received: by 10.50.21.10 with SMTP id r10mr4342235ige.94.1441134279460; Tue, 01 Sep 2015 12:04:39 -0700 (PDT) Sender: jakub.php@gmail.com Received: by 10.107.155.70 with HTTP; Tue, 1 Sep 2015 12:04:39 -0700 (PDT) In-Reply-To: References: <020801d0e3de$a8be40f0$fa3ac2d0$@belski.net> <030d01d0e432$5e002570$1a007050$@belski.net> Date: Tue, 1 Sep 2015 20:04:39 +0100 X-Google-Sender-Auth: M9WgKm9Y1pIF_zoqPjE1009xB-0 Message-ID: To: Scott Arciszewski Cc: Anatol Belski , PHP internals list , Ferenc Kovacs , Pierre Joye Content-Type: multipart/alternative; boundary=047d7b86eeaecd0dc8051eb438ec Subject: Re: [PHP-DEV] openssl_seal new param From: bukka@php.net (Jakub Zelenka) --047d7b86eeaecd0dc8051eb438ec Content-Type: text/plain; charset=UTF-8 Hi Scott, On Mon, Aug 31, 2015 at 10:56 PM, Scott Arciszewski wrote: > > > At the risk of sounding silly, can we just use random_bytes()? :) > > This is about internal calls in OpenSSL so we would have to register our RAND methods. That can be however problematic with potential using of engine API. > Additionally, I'd like to (for example) be able to use ChaCha20 > instead of RC4. Is that what the (currently undocumented) $method > parameter is for? > > The $method param is for setting a cipher algorithm (the same name that you can pass to openssl_encrypt for example). Only the algorithms returned from openssl_get_cipher_methods() can be used though - atm only the ones with empty IV... Cheers Jakub --047d7b86eeaecd0dc8051eb438ec--