ILIAS  release_4-4 Revision
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. More...
 
 binaryToLong ($str)
 Given a binary string, returns the binary string converted to a long number. More...
 
 base64ToLong ($str)
 
 longToBase64 ($str)
 
 rand ($stop)
 Returns a random number in the specified range. More...
 

Data Fields

 $type = 'gmp'
 

Detailed Description

Definition at line 276 of file BigMath.php.

Member Function Documentation

◆ add()

Auth_OpenID_GmpMathWrapper::add (   $x,
  $y 
)

Definition at line 279 of file BigMath.php.

280  {
281  return gmp_add($x, $y);
282  }

◆ cmp()

Auth_OpenID_GmpMathWrapper::cmp (   $x,
  $y 
)

Definition at line 294 of file BigMath.php.

295  {
296  return gmp_cmp($x, $y);
297  }

◆ div()

Auth_OpenID_GmpMathWrapper::div (   $x,
  $y 
)

Definition at line 314 of file BigMath.php.

315  {
316  return gmp_div_q($x, $y);
317  }

◆ init()

Auth_OpenID_GmpMathWrapper::init (   $number,
  $base = 10 
)

Definition at line 299 of file BigMath.php.

300  {
301  return gmp_init($number, $base);
302  }

◆ mod()

Auth_OpenID_GmpMathWrapper::mod (   $base,
  $modulus 
)

Definition at line 304 of file BigMath.php.

305  {
306  return gmp_mod($base, $modulus);
307  }

◆ mul()

Auth_OpenID_GmpMathWrapper::mul (   $x,
  $y 
)

Definition at line 309 of file BigMath.php.

310  {
311  return gmp_mul($x, $y);
312  }

◆ pow()

Auth_OpenID_GmpMathWrapper::pow (   $base,
  $exponent 
)

Definition at line 289 of file BigMath.php.

290  {
291  return gmp_pow($base, $exponent);
292  }

◆ powmod()

Auth_OpenID_GmpMathWrapper::powmod (   $base,
  $exponent,
  $modulus 
)

Definition at line 319 of file BigMath.php.

320  {
321  return gmp_powm($base, $exponent, $modulus);
322  }

◆ sub()

Auth_OpenID_GmpMathWrapper::sub (   $x,
  $y 
)

Definition at line 284 of file BigMath.php.

285  {
286  return gmp_sub($x, $y);
287  }

◆ toString()

Auth_OpenID_GmpMathWrapper::toString (   $num)

Definition at line 324 of file BigMath.php.

325  {
326  return gmp_strval($num);
327  }

Field Documentation

◆ $type

Auth_OpenID_GmpMathWrapper::$type = 'gmp'

Definition at line 277 of file BigMath.php.


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