diff -r 000000000000 -r 4eba9c11703f web/Zend/Crypt/Math/BigInteger/Gmp.php --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/web/Zend/Crypt/Math/BigInteger/Gmp.php Mon Dec 13 18:29:26 2010 +0100 @@ -0,0 +1,196 @@ + '7') { + $bigInt = '00' . $bigInt; + } + $return = pack("H*", $bigInt); + return $return; + } + + + public function hexToDecimal($operand) + { + $return = '0'; + while(strlen($hex)) { + $hex = hexdec(substr($operand, 0, 4)); + $dec = gmp_add(gmp_mul($return, 65536), $hex); + $operand = substr($operand, 4); + } + return $return; + } + +} \ No newline at end of file