Edit report at https://bugs.php.net/bug.php?id=62924&edit=1

 ID:                 62924
 Comment by:         riptide dot tempora at opinehub dot com
 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:

http://matejdanter.com/2010/12/elliptic-curve-php-oop-dsa-and-diffie-hellman/


Previous Comments:
------------------------------------------------------------------------
[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

Reply via email to