Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:96562 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 74857 invoked from network); 23 Oct 2016 18:20:55 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 23 Oct 2016 18:20:55 -0000 Authentication-Results: pb1.pair.com smtp.mail=jakub.php@gmail.com; spf=pass; sender-id=pass Authentication-Results: pb1.pair.com header.from=jakub.php@gmail.com; sender-id=pass Received-SPF: pass (pb1.pair.com: domain gmail.com designates 209.85.217.172 as permitted sender) X-PHP-List-Original-Sender: jakub.php@gmail.com X-Host-Fingerprint: 209.85.217.172 mail-ua0-f172.google.com Received: from [209.85.217.172] ([209.85.217.172:36813] helo=mail-ua0-f172.google.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 89/21-28528-58FFC085 for ; Sun, 23 Oct 2016 14:20:53 -0400 Received: by mail-ua0-f172.google.com with SMTP id m11so26468936uab.3 for ; Sun, 23 Oct 2016 11:20:53 -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:from:date:message-id :subject:to:cc; bh=VLNwtAaKux38CamYClB2ylX3MWaHIJCmvix5SIG3YX0=; b=JVECTL1qho323t0yF0R9iINYVN3F4BKrdB90WqehMfLP7KiN6UQyjnoI4lMcqaYvqa 1q79gvSZiQR3EPHBaTdrj5Q2E+WjfnjQCKJNg8zhN0vc87hmgOqo5R46x+JWmNd6nDaK 49dwUh4RKZwxBzTwWCvk3GvQMAiL+eznzGrEv5zdxERnJ36hPLWH/l4BU3db8wxKYLNu G73aKs+UOTi2MtKjSNkrxO4dRtGCZLrf0WZmwcc4tZJh7CFrHoUmn7GT9b7A5hSNTB2B KJgNyBIdbZIb5i6t+x4rS3mDmM80Hx8MuJopOGqH4eIsMqdJ8j/OQ070hZUvHZnhAESZ +aew== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:mime-version:sender:in-reply-to:references:from :date:message-id:subject:to:cc; bh=VLNwtAaKux38CamYClB2ylX3MWaHIJCmvix5SIG3YX0=; b=Ar764kPgihtAypQxoG2EV+Gipr5pvD5E6Ro9TGSjNOkJx9i1iRlJ5oM5HeWFq6xc73 3o/b49Yn+NXH7epMBXd+t6YuIhrar9QoJnNFNGhQBoSRrJ2RfoqiSBdXLojM+LcLKFdw IMU2QGFQZoKP/m119dOSM5GCk6kndfy6QpnzwjtQYtOQjSEBL1BLg6vZS38SX3rH6l4U XOXEctsg4fhhnRaaijFWte/Wzjm5yThklEHUqSKSMnLH67ONkEYIVfXq1g4egyGibKw5 zZc3WF7ZoNK2JEHFyh7VfsS7K27UNasCpK/G6tDEfYec30y3++cQXPDiuFMLgvtv3VBB 6veg== X-Gm-Message-State: ABUngvcw/vHgZgjnk1d3rudHNK8jZKXjGYL5BBLWrZMs/Y7SUj6np4TfQHgEyW7JkhhBpWj0R/Ed0Afod8qUfw== X-Received: by 10.176.81.56 with SMTP id e53mr3250929uaa.100.1477246851109; Sun, 23 Oct 2016 11:20:51 -0700 (PDT) MIME-Version: 1.0 Sender: jakub.php@gmail.com Received: by 10.31.174.20 with HTTP; Sun, 23 Oct 2016 11:20:50 -0700 (PDT) In-Reply-To: References: Date: Sun, 23 Oct 2016 19:20:50 +0100 X-Google-Sender-Auth: wHMGtiYiv0n8Cfq4_S9V8RZpvzY Message-ID: To: Sara Golemon Cc: PHP internals Content-Type: multipart/alternative; boundary=94eb2c190c54ce58a7053f8c55e8 Subject: Re: [PHP-DEV] [RFC] OpenSSL BigNum support From: bukka@php.net (Jakub Zelenka) --94eb2c190c54ce58a7053f8c55e8 Content-Type: text/plain; charset=UTF-8 On Tue, Oct 18, 2016 at 2:35 AM, Sara Golemon wrote: > As it says on the tin: Wrap the BN (BigNumber) library in OpenSSL. > > https://wiki.php.net/rfc/openssl.bignum > > I don't see any reason why we should expose BN API if it's not integrated with PKEY algorithms. This proposal doesn't really fit with the current functions IMHO so in this case it doesn't make much sense to introduce it unless you would also add classes like OpenSSL\RSA , OpenSSL\EC\Key and so on. I think that having just BigNum in OpenSSL namespace is kind of strange as BN is just a supporting API in for crypto operations in OpenSSL... If it was a functional API, than it would probably fit better with current functions and it would just need to be integrated with openssl_pkey_new which is more achievable and would be a bit more consistent. Cheers Jakub --94eb2c190c54ce58a7053f8c55e8--