function _openid_math_powmod
7.x openid.inc | _openid_math_powmod($x, $y, $z) |
Calls the mul function from the available math library for OpenID.
2 calls to _openid_math_powmod()
- openid_association in drupal-7.x/
modules/ openid/ openid.module - Attempt to create a shared secret with the OpenID Provider.
- _openid_test_endpoint_associate in drupal-7.x/
modules/ openid/ tests/ openid_test.module - OpenID endpoint; handle "associate" requests (see OpenID Authentication 2.0, section 8).
File
- drupal-7.x/
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);
}
}