@@ -689,7 +689,7 @@ discard block |
||
689 | 689 | * ?> |
690 | 690 | * </code> |
691 | 691 | * |
692 | - * @param \Jose\Util\Integer $y |
|
692 | + * @param BigInteger $y |
|
693 | 693 | * |
694 | 694 | * @return \Jose\Util\BigInteger |
695 | 695 | * |
@@ -819,7 +819,7 @@ discard block |
||
819 | 819 | * ?> |
820 | 820 | * </code> |
821 | 821 | * |
822 | - * @param \Jose\Util\Integer $y |
|
822 | + * @param BigInteger $y |
|
823 | 823 | * |
824 | 824 | * @return \Jose\Util\BigInteger |
825 | 825 | * |
@@ -954,7 +954,7 @@ discard block |
||
954 | 954 | * ?> |
955 | 955 | * </code> |
956 | 956 | * |
957 | - * @param \Jose\Util\Integer $x |
|
957 | + * @param BigInteger $x |
|
958 | 958 | * |
959 | 959 | * @return \Jose\Util\BigInteger |
960 | 960 | */ |
@@ -1238,9 +1238,9 @@ discard block |
||
1238 | 1238 | * ?> |
1239 | 1239 | * </code> |
1240 | 1240 | * |
1241 | - * @param \Jose\Util\Integer $y |
|
1241 | + * @param BigInteger $y |
|
1242 | 1242 | * |
1243 | - * @return array |
|
1243 | + * @return BigInteger[] |
|
1244 | 1244 | * |
1245 | 1245 | * @internal This function is based off of {@link http://www.cacr.math.uwaterloo.ca/hac/about/chap14.pdf#page=9 HAC 14.20}. |
1246 | 1246 | */ |
@@ -1458,8 +1458,8 @@ discard block |
||
1458 | 1458 | * ?> |
1459 | 1459 | * </code> |
1460 | 1460 | * |
1461 | - * @param \Jose\Util\Integer $e |
|
1462 | - * @param \Jose\Util\Integer $n |
|
1461 | + * @param BigInteger $e |
|
1462 | + * @param BigInteger $n |
|
1463 | 1463 | * |
1464 | 1464 | * @return \Jose\Util\BigInteger |
1465 | 1465 | * |
@@ -1633,8 +1633,8 @@ discard block |
||
1633 | 1633 | * |
1634 | 1634 | * Alias for modPow(). |
1635 | 1635 | * |
1636 | - * @param \Jose\Util\Integer $e |
|
1637 | - * @param \Jose\Util\Integer $n |
|
1636 | + * @param BigInteger $e |
|
1637 | + * @param BigInteger $n |
|
1638 | 1638 | * |
1639 | 1639 | * @return \Jose\Util\BigInteger |
1640 | 1640 | */ |
@@ -2274,9 +2274,9 @@ discard block |
||
2274 | 2274 | * ?> |
2275 | 2275 | * </code> |
2276 | 2276 | * |
2277 | - * @param \Jose\Util\Integer $n |
|
2277 | + * @param BigInteger $n |
|
2278 | 2278 | * |
2279 | - * @return \Jose\Util\eger|false |
|
2279 | + * @return BigInteger |
|
2280 | 2280 | * |
2281 | 2281 | * @internal See {@link http://www.cacr.math.uwaterloo.ca/hac/about/chap14.pdf#page=21 HAC 14.64} for more information. |
2282 | 2282 | */ |
@@ -2338,7 +2338,7 @@ discard block |
||
2338 | 2338 | * ?> |
2339 | 2339 | * </code> |
2340 | 2340 | * |
2341 | - * @param \Jose\Util\Integer $n |
|
2341 | + * @param BigInteger $n |
|
2342 | 2342 | * |
2343 | 2343 | * @return \Jose\Util\BigInteger |
2344 | 2344 | * |
@@ -2471,7 +2471,7 @@ discard block |
||
2471 | 2471 | * ?> |
2472 | 2472 | * </code> |
2473 | 2473 | * |
2474 | - * @param \Jose\Util\Integer $n |
|
2474 | + * @param BigInteger $n |
|
2475 | 2475 | * |
2476 | 2476 | * @return \Jose\Util\BigInteger |
2477 | 2477 | */ |
@@ -2517,7 +2517,7 @@ discard block |
||
2517 | 2517 | * |
2518 | 2518 | * Note how the same comparison operator is used. If you want to test for equality, use $x->equals($y). |
2519 | 2519 | * |
2520 | - * @param \Jose\Util\Integer $y |
|
2520 | + * @param BigInteger $y |
|
2521 | 2521 | * |
2522 | 2522 | * @return int < 0 if $this is less than $y; > 0 if $this is greater than $y, and 0 if they are equal. |
2523 | 2523 | * |
@@ -2575,7 +2575,7 @@ discard block |
||
2575 | 2575 | * |
2576 | 2576 | * If you need to see if one number is greater than or less than another number, use BigInteger::compare() |
2577 | 2577 | * |
2578 | - * @param \Jose\Util\Integer $x |
|
2578 | + * @param BigInteger $x |
|
2579 | 2579 | * |
2580 | 2580 | * @return bool |
2581 | 2581 | */ |
@@ -2629,7 +2629,7 @@ discard block |
||
2629 | 2629 | /** |
2630 | 2630 | * Logical And. |
2631 | 2631 | * |
2632 | - * @param \Jose\Util\Integer $x |
|
2632 | + * @param BigInteger $x |
|
2633 | 2633 | * |
2634 | 2634 | * @internal Implemented per a request by Lluis Pamies i Juarez <lluis _a_ pamies.cat> |
2635 | 2635 | * |
@@ -2671,7 +2671,7 @@ discard block |
||
2671 | 2671 | /** |
2672 | 2672 | * Logical Or. |
2673 | 2673 | * |
2674 | - * @param \Jose\Util\Integer $x |
|
2674 | + * @param BigInteger $x |
|
2675 | 2675 | * |
2676 | 2676 | * @internal Implemented per a request by Lluis Pamies i Juarez <lluis _a_ pamies.cat> |
2677 | 2677 | * |
@@ -2712,7 +2712,7 @@ discard block |
||
2712 | 2712 | /** |
2713 | 2713 | * Logical Exclusive-Or. |
2714 | 2714 | * |
2715 | - * @param \Jose\Util\Integer $x |
|
2715 | + * @param BigInteger $x |
|
2716 | 2716 | * |
2717 | 2717 | * @internal Implemented per a request by Lluis Pamies i Juarez <lluis _a_ pamies.cat> |
2718 | 2718 | * |
@@ -2933,8 +2933,8 @@ discard block |
||
2933 | 2933 | * |
2934 | 2934 | * Byte length is equal to $length. Uses \phpseclib\Crypt\Random if it's loaded and mt_rand if it's not. |
2935 | 2935 | * |
2936 | - * @param int $length |
|
2937 | 2936 | * |
2937 | + * @param integer $size |
|
2938 | 2938 | * @return \Jose\Util\BigInteger |
2939 | 2939 | */ |
2940 | 2940 | private static function _random_number_helper($size) |
@@ -2967,8 +2967,6 @@ discard block |
||
2967 | 2967 | * BigInteger::random($min, $max) |
2968 | 2968 | * BigInteger::random($max, $min) |
2969 | 2969 | * |
2970 | - * @param \Jose\Util\eger $arg1 |
|
2971 | - * @param \Jose\Util\eger $arg2 |
|
2972 | 2970 | * |
2973 | 2971 | * @return \Jose\Util\BigInteger |
2974 | 2972 | */ |
@@ -3034,8 +3032,8 @@ discard block |
||
3034 | 3032 | * If there's not a prime within the given range, false will be returned. |
3035 | 3033 | * If more than $timeout seconds have elapsed, give up and return false. |
3036 | 3034 | * |
3037 | - * @param \Jose\Util\teger $min |
|
3038 | - * @param \Jose\Util\teger $max |
|
3035 | + * @param BigInteger $min |
|
3036 | + * @param BigInteger $max |
|
3039 | 3037 | * @param int $timeout |
3040 | 3038 | * |
3041 | 3039 | * @return Math_BigInteger|false |
@@ -3464,8 +3462,8 @@ discard block |
||
3464 | 3462 | /** |
3465 | 3463 | * Array Repeat. |
3466 | 3464 | * |
3467 | - * @param $input Array |
|
3468 | - * @param $multiplier mixed |
|
3465 | + * @param integer $input Array |
|
3466 | + * @param integer $multiplier mixed |
|
3469 | 3467 | * |
3470 | 3468 | * @return array |
3471 | 3469 | */ |
@@ -3480,7 +3478,7 @@ discard block |
||
3480 | 3478 | * Shifts binary strings $shift bits, essentially multiplying by 2**$shift. |
3481 | 3479 | * |
3482 | 3480 | * @param $x String |
3483 | - * @param $shift Integer |
|
3481 | + * @param integer $shift Integer |
|
3484 | 3482 | * |
3485 | 3483 | * @return string |
3486 | 3484 | */ |
@@ -1187,7 +1187,7 @@ discard block |
||
1187 | 1187 | * Typical salt lengths in octets are hLen (the length of the output |
1188 | 1188 | * of the hash function Hash) and 0. |
1189 | 1189 | * |
1190 | - * @param int $format |
|
1190 | + * @param integer $sLen |
|
1191 | 1191 | */ |
1192 | 1192 | public function setSaltLength($sLen) |
1193 | 1193 | { |
@@ -1445,7 +1445,6 @@ discard block |
||
1445 | 1445 | * See {@link http://tools.ietf.org/html/rfc3447#appendix-B.2.1 RFC3447#appendix-B.2.1}. |
1446 | 1446 | * |
1447 | 1447 | * @param string $mgfSeed |
1448 | - * @param int $mgfLen |
|
1449 | 1448 | * |
1450 | 1449 | * @return string |
1451 | 1450 | */ |
@@ -1766,7 +1765,7 @@ discard block |
||
1766 | 1765 | * @param string $em |
1767 | 1766 | * @param int $emBits |
1768 | 1767 | * |
1769 | - * @return string |
|
1768 | + * @return boolean |
|
1770 | 1769 | */ |
1771 | 1770 | private function _emsa_pss_verify($m, $em, $emBits) |
1772 | 1771 | { |
@@ -1839,7 +1838,7 @@ discard block |
||
1839 | 1838 | * @param string $m |
1840 | 1839 | * @param string $s |
1841 | 1840 | * |
1842 | - * @return string |
|
1841 | + * @return boolean |
|
1843 | 1842 | */ |
1844 | 1843 | private function _rsassa_pss_verify($m, $s) |
1845 | 1844 | { |
@@ -1964,8 +1963,9 @@ discard block |
||
1964 | 1963 | * See {@link http://tools.ietf.org/html/rfc3447#section-8.2.2 RFC3447#section-8.2.2}. |
1965 | 1964 | * |
1966 | 1965 | * @param string $m |
1966 | + * @param string $s |
|
1967 | 1967 | * |
1968 | - * @return string |
|
1968 | + * @return boolean |
|
1969 | 1969 | */ |
1970 | 1970 | private function _rsassa_pkcs1_v1_5_verify($m, $s) |
1971 | 1971 | { |
@@ -2089,8 +2089,8 @@ discard block |
||
2089 | 2089 | * |
2090 | 2090 | * @see self::encrypt() |
2091 | 2091 | * |
2092 | - * @param string $plaintext |
|
2093 | 2092 | * |
2093 | + * @param string $ciphertext |
|
2094 | 2094 | * @return string |
2095 | 2095 | */ |
2096 | 2096 | public function decrypt($ciphertext) |