DiffieHellmanKeyPair Class Reference
[Diffie-Hellman Key Agreement Method (RFC-2631) implementation]

See also:
http://tools.ietf.org/html/rfc2631
More...

Inheritance diagram for DiffieHellmanKeyPair:

Inheritance graph
[legend]

List of all members.

Public Member Functions

 __construct (DiffieHellmanParameters $parameters)
 setPrivate (BigInteger $private)
 
Returns:
DiffieHellmanKeyPair

 getPrivate ()
 
Returns:
BigInteger

 setPublic (BigInteger $public)
 
Returns:
DiffieHellmanKeyPair

 getPublic ()
 
Returns:
BigInteger

 makeSharedKey (BigInteger $otherSitePublic)
 
Returns:
BigInteger


Static Public Member Functions

static create (DiffieHellmanParameters $parameters)
 
Returns:
DiffieHellmanKeyPair

static generate (DiffieHellmanParameters $parameters, RandomSource $randomSource)
 
Returns:
DiffieHellmanKeyPair


Private Attributes

 $private = null
 $public = null
 $parameters = null


Detailed Description

See also:
http://tools.ietf.org/html/rfc2631

Definition at line 18 of file DiffieHellmanKeyPair.class.php.


Constructor & Destructor Documentation

DiffieHellmanKeyPair::__construct ( DiffieHellmanParameters parameters  ) 

Definition at line 24 of file DiffieHellmanKeyPair.class.php.


Member Function Documentation

static DiffieHellmanKeyPair::create ( DiffieHellmanParameters parameters  )  [static]

Returns:
DiffieHellmanKeyPair

Definition at line 32 of file DiffieHellmanKeyPair.class.php.

static DiffieHellmanKeyPair::generate ( DiffieHellmanParameters parameters,
RandomSource randomSource 
) [static]

Returns:
DiffieHellmanKeyPair

Definition at line 40 of file DiffieHellmanKeyPair.class.php.

References DiffieHellmanParameters::getGen(), and DiffieHellmanParameters::getModulus().

Referenced by OpenIdConsumer::associate().

Here is the call graph for this function:

DiffieHellmanKeyPair::setPrivate ( BigInteger private  ) 

Returns:
DiffieHellmanKeyPair

Definition at line 65 of file DiffieHellmanKeyPair.class.php.

DiffieHellmanKeyPair::getPrivate (  ) 

Returns:
BigInteger

Implements KeyPair.

Definition at line 74 of file DiffieHellmanKeyPair.class.php.

DiffieHellmanKeyPair::setPublic ( BigInteger public  ) 

Returns:
DiffieHellmanKeyPair

Definition at line 82 of file DiffieHellmanKeyPair.class.php.

DiffieHellmanKeyPair::getPublic (  ) 

Returns:
BigInteger

Implements KeyPair.

Definition at line 91 of file DiffieHellmanKeyPair.class.php.

DiffieHellmanKeyPair::makeSharedKey ( BigInteger otherSitePublic  ) 

Returns:
BigInteger

Definition at line 99 of file DiffieHellmanKeyPair.class.php.

References BigInteger::modPow().

Here is the call graph for this function:


Member Data Documentation

DiffieHellmanKeyPair::$private = null [private]

Definition at line 20 of file DiffieHellmanKeyPair.class.php.

DiffieHellmanKeyPair::$public = null [private]

Definition at line 21 of file DiffieHellmanKeyPair.class.php.

DiffieHellmanKeyPair::$parameters = null [private]

Definition at line 22 of file DiffieHellmanKeyPair.class.php.


The documentation for this class was generated from the following file:
Generated on Sun Dec 9 21:57:17 2007 for onPHP by  doxygen 1.5.4