diff options
author | Josh Hoyt <josh@janrain.com> | 2006-01-06 22:07:58 +0000 |
---|---|---|
committer | Josh Hoyt <josh@janrain.com> | 2006-01-06 22:07:58 +0000 |
commit | 9937ebfe347f22fa71516f197b54785b42dd2dba (patch) | |
tree | c25ab3bd8a47950cfd8e93bd70bfed7679fff119 | |
parent | a210929e9def4c07897574989bcad3d901f46a00 (diff) | |
download | php-openid-9937ebfe347f22fa71516f197b54785b42dd2dba.zip php-openid-9937ebfe347f22fa71516f197b54785b42dd2dba.tar.gz php-openid-9937ebfe347f22fa71516f197b54785b42dd2dba.tar.bz2 |
[project @ Use bcpowmod if it's available]
-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); + } + } + } /** |