Req #62924 [Com]: Add Curve25519 support to PHP
Edit report at https://bugs.php.net/bug.php?id=62924&edit=1
ID: 62924
Comment by: scott at arciszewski dot me
Reported by: riptide dot tempora at opinehub dot com
Summary: Add Curve25519 support to PHP
Status: Open
Type: Feature/Change Request
Package: *Encryption and hash functions
Operating System: Any
PHP Version: Irrelevant
Block user comment: N
Private report: N
New Comment:
I believe this can be closed since these features are available with the PECL libsodium package.
pecl install libsodium
Previous Comments:
------------------------------------------------------------------------
[2014-03-08 02:19:38] scott at arciszewski dot me
So, who would be the correct person to assign to this? :/
------------------------------------------------------------------------
[2012-09-27 20:15:13] riptide dot tempora at opinehub dot com
http://matejdanter.com/2010/12/elliptic-curve-php-oop-dsa-and-diffie-hellman/
------------------------------------------------------------------------
[2012-08-24 14:15:19] riptide dot tempora at opinehub dot com
Description:
------------
Curve25519 is an elliptic curve variant of Diffie-Hellman key exchanging.
The author of Curve25519 (which is the chosen public key protocol for DNSCurve http://dnscurve.org) has released a public domain C library on his
website: http://cr.yp.to/ecdh.html
Test script:
---------------
Desired functionality would be something like this:
<?
$private = openssl_random_pseudo_bytes(32);
$private[0] &= 248;
$private[31] &= 127;
$private[31] |= 64;
$public = curve25519_get_public($private);
// Get Bob's public key here somehow
$shared = curve25519_get_secret($private, $bobPublic);
// Symmetric key ciphers here
?>
------------------------------------------------------------------------
--
Edit this bug report at https://bugs.php.net/bug.php?id=62924&edit=1
Thread (5 messages)