Class OpenID_Association_DiffieHellman

Description

OpenID_Association_DiffieHellman

Segregates the DiffieHellman specific parts of an association request. This is aimed at folks that don't want to use DH for associations.

Located in /OpenID/Association/DiffieHellman.php (line 32)


	
			
Class Constant Summary
 DH_DEFAULT_MODULUS = '155172898181473697471232257763715539915724801966915404479707795314057629378541917580651227423698188993727816152646631438561595825688188889951272158842675419950341258706556549803580104870537681476726513255747040765857479291291572334510643245094715007229621094194349783925984760375594985848253359305585439638443'
Variable Summary
Method Summary
void __construct (OpenID_Message $message, [Crypt_DiffieHellman $cdh = null])
void getSharedSecret ( $response,  &$params)
BTWOC getSharedSecretKey (string $publicKey)
void init ()
Variables
Crypt_DiffieHellman $cdh = null (line 54)

The instance of Crypt_DiffieHellman. May be passed into the constructor if you want to use custom keys.

  • access: protected
OpenID_Message $message = null (line 46)

The OpenID_Message being used in the request

  • access: protected
int $sharedKeyComputed = 0 (line 62)

Whether or not the sharedSecretKey has been computed or not

Methods
Constructor __construct (line 73)

Sets the instance of OpenID_Message being used, and also an optional instance of Crypt_DiffieHellman

  • access: public
void __construct (OpenID_Message $message, [Crypt_DiffieHellman $cdh = null])
  • OpenID_Message $message: The request OpenID_Message
  • Crypt_DiffieHellman $cdh: Optional instance of Crypt_DiffieHellman
getSharedSecret (line 116)

Gets the shared secret out of a response

  • access: public
void getSharedSecret ( $response,  &$params)
  • array $response: The response in array format
  • array &$params: The parameters being build for OpenID_Association_Reqequest::buildAssociation()
getSharedSecretKey (line 148)

Gets the shared secret key in BTWOC format. Computes the key if it has not been computed already.

  • return: representation of the number
  • access: public
BTWOC getSharedSecretKey (string $publicKey)
  • string $publicKey: Public key of the OP
init (line 86)

Initialize the diffie-hellman parameters for the association request.

  • access: public
void init ()
Class Constants
DH_DEFAULT_GENERATOR = '2' (line 39)
DH_DEFAULT_MODULUS = '155172898181473697471232257763715539915724801966915404479707795314057629378541917580651227423698188993727816152646631438561595825688188889951272158842675419950341258706556549803580104870537681476726513255747040765857479291291572334510643245094715007229621094194349783925984760375594985848253359305585439638443' (line 37)

DiffieHellman specific constants

Documentation generated on Tue, 15 Dec 2009 19:00:52 -0800 by phpDocumentor 1.4.3