diff options
Diffstat (limited to 'modules/openid/tests/openid_test.module')
-rw-r--r-- | modules/openid/tests/openid_test.module | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/modules/openid/tests/openid_test.module b/modules/openid/tests/openid_test.module index 5beb5fa41..3251b1d8f 100644 --- a/modules/openid/tests/openid_test.module +++ b/modules/openid/tests/openid_test.module @@ -228,14 +228,14 @@ function _openid_test_endpoint_associate() { // Generate private Diffie-Helmann key. $r = _openid_dh_rand($mod); - $private = bcadd($r, 1); + $private = _openid_math_add($r, 1); // Calculate public Diffie-Helmann key. - $public = bcpowmod($gen, $private, $mod); + $public = _openid_math_powmod($gen, $private, $mod); // Calculate shared secret based on Relying Party's public key. $cpub = _openid_dh_base64_to_long($_REQUEST['openid_dh_consumer_public']); - $shared = bcpowmod($cpub, $private, $mod); + $shared = _openid_math_powmod($cpub, $private, $mod); // Encrypt the MAC key using the shared secret. $enc_mac_key = base64_encode(_openid_dh_xorsecret($shared, base64_decode(variable_get('mac_key')))); |