diff -r 5b37998e522e -r 162c1de6545a web/lib/Zend/Crypt/Math/BigInteger/Gmp.php --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/web/lib/Zend/Crypt/Math/BigInteger/Gmp.php Fri Mar 11 15:05:35 2011 +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