From 9937ebfe347f22fa71516f197b54785b42dd2dba Mon Sep 17 00:00:00 2001 From: Josh Hoyt Date: Fri, 6 Jan 2006 22:07:58 +0000 Subject: [project @ Use bcpowmod if it's available] --- Net/OpenID/CryptUtil.php | 10 ++++++++++ 1 file changed, 10 insertions(+) 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); + } + } + } /** -- cgit v1.1