diff options
-rw-r--r-- | Net/OpenID/CryptUtil.php | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/Net/OpenID/CryptUtil.php b/Net/OpenID/CryptUtil.php index 66ebe88..4fe9b46 100644 --- a/Net/OpenID/CryptUtil.php +++ b/Net/OpenID/CryptUtil.php @@ -550,6 +550,16 @@ class Net_OpenID_BcMathWrapper extends Net_OpenID_MathWrapper { { return bcdiv($x, $y); } + + function powmod($base, $exponent, $modulus) + { + if (false && function_exists('bcpowmod')) { + return bcpowmod($base, $exponent, $modulus); + } else { + return parent::powmod($base, $exponent, $modulus); + } + } + } /** |