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