function _openid_math_powmod

Calls the mul function from the available math library for OpenID.

2 calls to _openid_math_powmod()
openid_association in drupal/core/modules/openid/openid.module
Attempt to create a shared secret with the OpenID Provider.
_openid_test_endpoint_associate in drupal/core/modules/openid/tests/openid_test.module
OpenID endpoint; handle "associate" requests (see OpenID Authentication 2.0, section 8).

File

drupal/core/modules/openid/openid.inc, line 812
OpenID utility functions.

Code

function _openid_math_powmod($x, $y, $z) {
  $library = _openid_get_math_library();
  switch ($library) {
    case 'gmp':
      return gmp_powm($x, $y, $z);
    case 'bcmath':
      return bcpowmod($x, $y, $z);
  }
}