Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:31352 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 63476 invoked by uid 1010); 1 Aug 2007 12:12:11 -0000 Delivered-To: ezmlm-scan-internals@lists.php.net Delivered-To: ezmlm-internals@lists.php.net Received: (qmail 63461 invoked from network); 1 Aug 2007 12:12:11 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 1 Aug 2007 12:12:11 -0000 Authentication-Results: pb1.pair.com header.from=rrichards@ctindustries.net; sender-id=unknown Authentication-Results: pb1.pair.com smtp.mail=rrichards@ctindustries.net; spf=permerror; sender-id=unknown Received-SPF: error (pb1.pair.com: domain ctindustries.net from 216.117.147.250 cause and error) X-PHP-List-Original-Sender: rrichards@ctindustries.net X-Host-Fingerprint: 216.117.147.250 unknown Received: from [216.117.147.250] ([216.117.147.250:33669] helo=ctindustries.net) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 0F/FE-39533-99870B64 for ; Wed, 01 Aug 2007 08:12:10 -0400 Received: from localhost.localdomain (ctindustries.net [127.0.0.1]) (authenticated bits=0) by ctindustries.net (8.13.8/8.13.8) with ESMTP id l71CASoL010478; Wed, 1 Aug 2007 08:10:29 -0400 Message-ID: <46B07877.9020609@ctindustries.net> Date: Wed, 01 Aug 2007 08:11:35 -0400 User-Agent: Thunderbird 2.0.0.5 (X11/20070720) MIME-Version: 1.0 To: Dmitry Stogov CC: internals@lists.php.net References: <002b01c7d419$e6914720$6e02a8c0@thinkpad> In-Reply-To: <002b01c7d419$e6914720$6e02a8c0@thinkpad> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Virus-Scanned: ClamAV version 0.90.3, clamav-milter version 0.90.3 on localhost X-Virus-Status: Clean X-Spam-Status: No, score=-1.4 required=4.4 tests=ALL_TRUSTED autolearn=disabled version=3.1.9 X-Spam-Checker-Version: SpamAssassin 3.1.9 (2007-02-13) on ctindustries.net Subject: Re: [PHP-DEV] Ext/OpenSSL patch From: rrichards@ctindustries.net (Rob Richards) Hi Dmitry, Dmitry Stogov wrote: > Hi, > > I propose a patch for ext/openssl that extends support for crypto API. > - it provides access to openSSL digest functions > function openssl_get_md_methods(); > function openssl_digest(string $data, string $method [, bool $raw]); > - it provides access to openSSL digest functions > function openssl_get_cipher_methods(); > function openssl_encrypt(string $data, string $method, $string > $password [, bool $raw]); > function openssl_decrypt(string $data, string $method, $string > $password [, bool $raw]); > - It extends existing functions openssl_pkey_new() and > openssl_pkey_get_details() to access internal values of DSA, RSA and DH > keys. For example you can create DH key and then access its internal values > using the following code: ... I would like to see this committed. I really could use this for some XML Sec functionality. Rob