You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
* Check to see if GMP or Bcmath are available and supply the
18
+
* appropriate implementation.
19
+
*/
3
20
if (extension_loaded('gmp') || @dl('gmp.' . PHP_SHLIB_SUFFIX) ||
4
21
@dl('php_gmp.' . PHP_SHLIB_SUFFIX)) {
5
22
6
23
define('Net_OpenID_math_type', 'gmp');
7
24
8
-
// XXX: untested!
25
+
/**
26
+
* The Diffie-Hellman key exchange class.
27
+
*
28
+
* @package OpenID
29
+
*/
9
30
class Net_OpenID_DiffieHellman {
10
31
var $DEFAULT_MOD = '155172898181473697471232257763715539915724801966915404479707795314057629378541917580651227423698188993727816152646631438561595825688188889951272158842675419950341258706556549803580104870537681476726513255747040765857479291291572334510643245094715007229621094194349783925984760375594985848253359305585439638443';
11
32
@@ -55,6 +76,9 @@ function decryptKeyExchange( $keyEx ) {
@@ -77,6 +101,10 @@ function bcpowmod($base, $exponent, $modulus) {
77
101
}
78
102
}
79
103
104
+
/**
105
+
* @ignore
106
+
* @package OpenID
107
+
*/
80
108
class Net_OpenID_DiffieHellman {
81
109
var $DEFAULT_MOD = '155172898181473697471232257763715539915724801966915404479707795314057629378541917580651227423698188993727816152646631438561595825688188889951272158842675419950341258706556549803580104870537681476726513255747040765857479291291572334510643245094715007229621094194349783925984760375594985848253359305585439638443';
0 commit comments