diff -r bd595ad770fc -r 1c2f13fd785c web/enmi/Zend/Crypt/Math/BigInteger/Gmp.php --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/web/enmi/Zend/Crypt/Math/BigInteger/Gmp.php Thu Jan 20 19:30:54 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