diff -r 5a6b6e770365 -r 68c69c656a2c web/lib/Zend/Crypt/Math/BigInteger/Gmp.php --- a/web/lib/Zend/Crypt/Math/BigInteger/Gmp.php Thu May 07 15:10:09 2015 +0200 +++ b/web/lib/Zend/Crypt/Math/BigInteger/Gmp.php Thu May 07 15:16:02 2015 +0200 @@ -15,9 +15,9 @@ * @category Zend * @package Zend_Crypt * @subpackage Math - * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com) + * @copyright Copyright (c) 2005-2015 Zend Technologies USA Inc. (http://www.zend.com) * @license http://framework.zend.com/license/new-bsd New BSD License - * @version $Id: Gmp.php 24593 2012-01-05 20:35:02Z matthew $ + * @version $Id$ */ /** @@ -33,7 +33,7 @@ * * @category Zend * @package Zend_Crypt - * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com) + * @copyright Copyright (c) 2005-2015 Zend Technologies USA Inc. (http://www.zend.com) * @license http://framework.zend.com/license/new-bsd New BSD License */ class Zend_Crypt_Math_BigInteger_Gmp implements Zend_Crypt_Math_BigInteger_Interface @@ -53,8 +53,8 @@ /** * Adds two arbitrary precision numbers * - * @param string $left_operand - * @param string $right_operand + * @param resource $left_operand + * @param resource $right_operand * @return string */ public function add($left_operand, $right_operand) @@ -64,8 +64,10 @@ } /** - * @param string $left_operand - * @param string $right_operand + * Subtract numbers + * + * @param resource $left_operand + * @param resource $right_operand * @return string */ public function subtract($left_operand, $right_operand) @@ -78,8 +80,9 @@ * Compare two big integers and returns result as an integer where 0 means * both are identical, 1 that left_operand is larger, or -1 that * right_operand is larger. - * @param string $left_operand - * @param string $right_operand + * + * @param resource $left_operand + * @param resource $right_operand * @return int */ public function compare($left_operand, $right_operand) @@ -91,8 +94,9 @@ /** * Divide two big integers and return result or NULL if the denominator * is zero. - * @param string $left_operand - * @param string $right_operand + * + * @param resource $left_operand + * @param resource $right_operand * @return string|null */ public function divide($left_operand, $right_operand) @@ -102,8 +106,11 @@ } /** - * @param string $left_operand - * @param string $right_operand + * Modulo operation + * + * @param resource $left_operand + * @param resource $modulus + * @internal param string $right_operand * @return string */ public function modulus($left_operand, $modulus) @@ -113,8 +120,10 @@ } /** - * @param string $left_operand - * @param string $right_operand + * Multiply numbers + * + * @param resource $left_operand + * @param resource $right_operand * @return string */ public function multiply($left_operand, $right_operand) @@ -124,8 +133,10 @@ } /** - * @param string $left_operand - * @param string $right_operand + * Raise number into power + * + * @param resource $left_operand + * @param int $right_operand * @return string */ public function pow($left_operand, $right_operand) @@ -135,8 +146,11 @@ } /** - * @param string $left_operand - * @param string $right_operand + * Raise number into power with modulo + * + * @param resource $left_operand + * @param resource $right_operand + * @param resource $modulus * @return string */ public function powmod($left_operand, $right_operand, $modulus) @@ -146,8 +160,9 @@ } /** - * @param string $left_operand - * @param string $right_operand + * Calculate square root + * + * @param $operand * @return string */ public function sqrt($operand) @@ -156,7 +171,10 @@ return gmp_strval($result); } - + /** + * @param string $operand + * @return string + */ public function binaryToInteger($operand) { $result = '0'; @@ -168,7 +186,10 @@ return gmp_strval($result); } - + /** + * @param resource $operand GMP number resource + * @return string + */ public function integerToBinary($operand) { $bigInt = gmp_strval($operand, 16); @@ -181,7 +202,10 @@ return $return; } - + /** + * @param string $operand + * @return string + */ public function hexToDecimal($operand) { $return = '0'; @@ -193,4 +217,4 @@ return $return; } -} \ No newline at end of file +}