ILIAS  eassessment Revision 61809
 All Data Structures Namespaces Files Functions Variables Groups Pages
Auth_OpenID_GmpMathWrapper Class Reference
+ Inheritance diagram for Auth_OpenID_GmpMathWrapper:
+ Collaboration diagram for Auth_OpenID_GmpMathWrapper:

Public Member Functions

 add ($x, $y)
 sub ($x, $y)
 pow ($base, $exponent)
 cmp ($x, $y)
 init ($number, $base=10)
 mod ($base, $modulus)
 mul ($x, $y)
 div ($x, $y)
 powmod ($base, $exponent, $modulus)
 toString ($num)
- Public Member Functions inherited from Auth_OpenID_MathLibrary
 longToBinary ($long)
 Given a long integer, returns the number converted to a binary string.
 binaryToLong ($str)
 Given a binary string, returns the binary string converted to a long number.
 base64ToLong ($str)
 longToBase64 ($str)
 rand ($stop)
 Returns a random number in the specified range.

Data Fields

 $type = 'gmp'

Detailed Description

Definition at line 276 of file BigMath.php.

Member Function Documentation

Auth_OpenID_GmpMathWrapper::add (   $x,
  $y 
)

Definition at line 279 of file BigMath.php.

References $x, and $y.

{
return gmp_add($x, $y);
}
Auth_OpenID_GmpMathWrapper::cmp (   $x,
  $y 
)

Definition at line 294 of file BigMath.php.

References $x, and $y.

{
return gmp_cmp($x, $y);
}
Auth_OpenID_GmpMathWrapper::div (   $x,
  $y 
)

Definition at line 314 of file BigMath.php.

References $x, and $y.

{
return gmp_div_q($x, $y);
}
Auth_OpenID_GmpMathWrapper::init (   $number,
  $base = 10 
)

Definition at line 299 of file BigMath.php.

{
return gmp_init($number, $base);
}
Auth_OpenID_GmpMathWrapper::mod (   $base,
  $modulus 
)

Definition at line 304 of file BigMath.php.

{
return gmp_mod($base, $modulus);
}
Auth_OpenID_GmpMathWrapper::mul (   $x,
  $y 
)

Definition at line 309 of file BigMath.php.

References $x, and $y.

{
return gmp_mul($x, $y);
}
Auth_OpenID_GmpMathWrapper::pow (   $base,
  $exponent 
)

Definition at line 289 of file BigMath.php.

{
return gmp_pow($base, $exponent);
}
Auth_OpenID_GmpMathWrapper::powmod (   $base,
  $exponent,
  $modulus 
)

Definition at line 319 of file BigMath.php.

{
return gmp_powm($base, $exponent, $modulus);
}
Auth_OpenID_GmpMathWrapper::sub (   $x,
  $y 
)

Definition at line 284 of file BigMath.php.

References $x, and $y.

{
return gmp_sub($x, $y);
}
Auth_OpenID_GmpMathWrapper::toString (   $num)

Definition at line 324 of file BigMath.php.

{
return gmp_strval($num);
}

Field Documentation

Auth_OpenID_GmpMathWrapper::$type = 'gmp'

Definition at line 277 of file BigMath.php.


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