Moodle  2.2.1
http://www.collinsharper.com
Crypt_CHAP_MSv2 Class Reference
Inheritance diagram for Crypt_CHAP_MSv2:
Collaboration diagram for Crypt_CHAP_MSv2:

Public Member Functions

 Crypt_CHAP_MSv2 ()
 ntPasswordHashHash ($nthash)
 challengeHash ()
 challengeResponse ()

Data Fields

 $username = null
 $peerChallenge = null
 $authChallenge = null

Detailed Description

Definition at line 393 of file CHAP.php.


Member Function Documentation

Generates the challenge hash from the peer and the authenticator challenge and the username. SHA1 is used for this, but only the first 8 Bytes are used.

public

Returns:
string

Definition at line 445 of file CHAP.php.

Here is the caller graph for this function:

Generates the response.

public

Returns:
string

Reimplemented from Crypt_CHAP_MSv1.

Definition at line 456 of file CHAP.php.

Here is the call graph for this function:

Constructor

Generates the 16 Bytes peer and authentication challenge

Returns:
void

Definition at line 419 of file CHAP.php.

Here is the call graph for this function:

ntPasswordHashHash ( nthash)

Generates a hash from the NT-HASH.

public

Parameters:
string$nthashThe NT-HASH
Returns:
string

Definition at line 433 of file CHAP.php.


Field Documentation

$authChallenge = null

Definition at line 411 of file CHAP.php.

$peerChallenge = null

Definition at line 405 of file CHAP.php.

$username = null

Definition at line 399 of file CHAP.php.


The documentation for this class was generated from the following file:
 All Data Structures Namespaces Files Functions Variables Enumerations