pssht  latest
SSH server library written in PHP
fpoirotte\Pssht\ECC\Curve25519 Class Reference

Public Member Functions

 getPublic ($S)
 
 getShared ($S, $P)
 

Static Public Member Functions

static getInstance ()
 

Protected Member Functions

 doubleAndAdd ($P2, $P3, $X1)
 
 pointToPubkey ($P)
 
 pubkeyToPoint ($public)
 
 scalarmult ($X, $N)
 

Protected Attributes

 $p
 Set to 2**255 - 19, hence this curve's name.
 

Static Protected Attributes

static $instance = null
 Singleton instance.
 

Detailed Description

Definition for the elliptic curve "Curve25519".

See also
http://cr.yp.to/ecdh/curve25519-20060209.pdf for more information about this curve.
http://ietfreport.isoc.org/idref/draft-josefsson-tls-curve25519/ for an example implementation of this curve in the TLS protocol. Most of the gory details in our implementation are based on this document.

Definition at line 26 of file Curve25519.php.


The documentation for this class was generated from the following file: