@@ -90,7 +90,7 @@ |
||
90 | 90 | } |
91 | 91 | |
92 | 92 | /** |
93 | - * @return \phpseclib\Crypt\RSA |
|
93 | + * @return JoseRSA |
|
94 | 94 | */ |
95 | 95 | private function getRsaObject() |
96 | 96 | { |
@@ -676,7 +676,7 @@ discard block |
||
676 | 676 | * ?> |
677 | 677 | * </code> |
678 | 678 | * |
679 | - * @param \Jose\Util\Integer $y |
|
679 | + * @param BigInteger $y |
|
680 | 680 | * @return \Jose\Util\BigInteger |
681 | 681 | * @internal Performs base-2**52 addition |
682 | 682 | */ |
@@ -803,7 +803,7 @@ discard block |
||
803 | 803 | * ?> |
804 | 804 | * </code> |
805 | 805 | * |
806 | - * @param \Jose\Util\Integer $y |
|
806 | + * @param BigInteger $y |
|
807 | 807 | * @return \Jose\Util\BigInteger |
808 | 808 | * @internal Performs base-2**52 subtraction |
809 | 809 | */ |
@@ -935,7 +935,7 @@ discard block |
||
935 | 935 | * ?> |
936 | 936 | * </code> |
937 | 937 | * |
938 | - * @param \Jose\Util\Integer $x |
|
938 | + * @param BigInteger $x |
|
939 | 939 | * @return \Jose\Util\BigInteger |
940 | 940 | */ |
941 | 941 | public function multiply(BigInteger $x) |
@@ -1212,8 +1212,8 @@ discard block |
||
1212 | 1212 | * ?> |
1213 | 1213 | * </code> |
1214 | 1214 | * |
1215 | - * @param \Jose\Util\Integer $y |
|
1216 | - * @return array |
|
1215 | + * @param BigInteger $y |
|
1216 | + * @return BigInteger[] |
|
1217 | 1217 | * @internal This function is based off of {@link http://www.cacr.math.uwaterloo.ca/hac/about/chap14.pdf#page=9 HAC 14.20}. |
1218 | 1218 | */ |
1219 | 1219 | public function divide(BigInteger $y) |
@@ -1426,8 +1426,8 @@ discard block |
||
1426 | 1426 | * ?> |
1427 | 1427 | * </code> |
1428 | 1428 | * |
1429 | - * @param \Jose\Util\Integer $e |
|
1430 | - * @param \Jose\Util\Integer $n |
|
1429 | + * @param BigInteger $e |
|
1430 | + * @param BigInteger $n |
|
1431 | 1431 | * @return \Jose\Util\BigInteger |
1432 | 1432 | * @internal The most naive approach to modular exponentiation has very unreasonable requirements, and |
1433 | 1433 | * and although the approach involving repeated squaring does vastly better, it, too, is impractical |
@@ -1595,8 +1595,8 @@ discard block |
||
1595 | 1595 | * |
1596 | 1596 | * Alias for modPow(). |
1597 | 1597 | * |
1598 | - * @param \Jose\Util\Integer $e |
|
1599 | - * @param \Jose\Util\Integer $n |
|
1598 | + * @param BigInteger $e |
|
1599 | + * @param BigInteger $n |
|
1600 | 1600 | * @return \Jose\Util\BigInteger |
1601 | 1601 | */ |
1602 | 1602 | public function powMod(BigInteger $e, BigInteger $n) |
@@ -2211,8 +2211,8 @@ discard block |
||
2211 | 2211 | * ?> |
2212 | 2212 | * </code> |
2213 | 2213 | * |
2214 | - * @param \Jose\Util\Integer $n |
|
2215 | - * @return \Jose\Util\eger|false |
|
2214 | + * @param BigInteger $n |
|
2215 | + * @return BigInteger |
|
2216 | 2216 | * @internal See {@link http://www.cacr.math.uwaterloo.ca/hac/about/chap14.pdf#page=21 HAC 14.64} for more information. |
2217 | 2217 | */ |
2218 | 2218 | public function modInverse(BigInteger $n) |
@@ -2272,7 +2272,7 @@ discard block |
||
2272 | 2272 | * ?> |
2273 | 2273 | * </code> |
2274 | 2274 | * |
2275 | - * @param \Jose\Util\Integer $n |
|
2275 | + * @param BigInteger $n |
|
2276 | 2276 | * @return \Jose\Util\BigInteger |
2277 | 2277 | * @internal Calculates the GCD using the binary xGCD algorithim described in |
2278 | 2278 | * {@link http://www.cacr.math.uwaterloo.ca/hac/about/chap14.pdf#page=19 HAC 14.61}. As the text above 14.61 notes, |
@@ -2403,7 +2403,7 @@ discard block |
||
2403 | 2403 | * ?> |
2404 | 2404 | * </code> |
2405 | 2405 | * |
2406 | - * @param \Jose\Util\Integer $n |
|
2406 | + * @param BigInteger $n |
|
2407 | 2407 | * @return \Jose\Util\BigInteger |
2408 | 2408 | */ |
2409 | 2409 | public function gcd(BigInteger $n) |
@@ -2447,7 +2447,7 @@ discard block |
||
2447 | 2447 | * |
2448 | 2448 | * Note how the same comparison operator is used. If you want to test for equality, use $x->equals($y). |
2449 | 2449 | * |
2450 | - * @param \Jose\Util\Integer $y |
|
2450 | + * @param BigInteger $y |
|
2451 | 2451 | * @return int < 0 if $this is less than $y; > 0 if $this is greater than $y, and 0 if they are equal. |
2452 | 2452 | * @internal Could return $this->subtract($x), but that's not as fast as what we do do. |
2453 | 2453 | */ |
@@ -2502,7 +2502,7 @@ discard block |
||
2502 | 2502 | * |
2503 | 2503 | * If you need to see if one number is greater than or less than another number, use BigInteger::compare() |
2504 | 2504 | * |
2505 | - * @param \Jose\Util\Integer $x |
|
2505 | + * @param BigInteger $x |
|
2506 | 2506 | * @return bool |
2507 | 2507 | */ |
2508 | 2508 | public function equals(BigInteger $x) |
@@ -2555,7 +2555,7 @@ discard block |
||
2555 | 2555 | /** |
2556 | 2556 | * Logical And |
2557 | 2557 | * |
2558 | - * @param \Jose\Util\Integer $x |
|
2558 | + * @param BigInteger $x |
|
2559 | 2559 | * @internal Implemented per a request by Lluis Pamies i Juarez <lluis _a_ pamies.cat> |
2560 | 2560 | * @return \Jose\Util\BigInteger |
2561 | 2561 | */ |
@@ -2595,7 +2595,7 @@ discard block |
||
2595 | 2595 | /** |
2596 | 2596 | * Logical Or |
2597 | 2597 | * |
2598 | - * @param \Jose\Util\Integer $x |
|
2598 | + * @param BigInteger $x |
|
2599 | 2599 | * @internal Implemented per a request by Lluis Pamies i Juarez <lluis _a_ pamies.cat> |
2600 | 2600 | * @return \Jose\Util\BigInteger |
2601 | 2601 | */ |
@@ -2634,7 +2634,7 @@ discard block |
||
2634 | 2634 | /** |
2635 | 2635 | * Logical Exclusive-Or |
2636 | 2636 | * |
2637 | - * @param \Jose\Util\Integer $x |
|
2637 | + * @param BigInteger $x |
|
2638 | 2638 | * @internal Implemented per a request by Lluis Pamies i Juarez <lluis _a_ pamies.cat> |
2639 | 2639 | * @return \Jose\Util\BigInteger |
2640 | 2640 | */ |
@@ -2845,7 +2845,7 @@ discard block |
||
2845 | 2845 | * |
2846 | 2846 | * Byte length is equal to $length. Uses \phpseclib\Crypt\Random if it's loaded and mt_rand if it's not. |
2847 | 2847 | * |
2848 | - * @param int $length |
|
2848 | + * @param integer $size |
|
2849 | 2849 | * @return \Jose\Util\BigInteger |
2850 | 2850 | */ |
2851 | 2851 | private static function _random_number_helper($size) |
@@ -2878,8 +2878,6 @@ discard block |
||
2878 | 2878 | * BigInteger::random($min, $max) |
2879 | 2879 | * BigInteger::random($max, $min) |
2880 | 2880 | * |
2881 | - * @param \Jose\Util\eger $arg1 |
|
2882 | - * @param \Jose\Util\eger $arg2 |
|
2883 | 2881 | * @return \Jose\Util\BigInteger |
2884 | 2882 | */ |
2885 | 2883 | static function random(BigInteger $min, BigInteger $max) |
@@ -2944,8 +2942,8 @@ discard block |
||
2944 | 2942 | * If there's not a prime within the given range, false will be returned. |
2945 | 2943 | * If more than $timeout seconds have elapsed, give up and return false. |
2946 | 2944 | * |
2947 | - * @param \Jose\Util\teger $min |
|
2948 | - * @param \Jose\Util\teger $max |
|
2945 | + * @param BigInteger $min |
|
2946 | + * @param BigInteger $max |
|
2949 | 2947 | * @param int $timeout |
2950 | 2948 | * @return Math_BigInteger|false |
2951 | 2949 | * @internal See {@link http://www.cacr.math.uwaterloo.ca/hac/about/chap4.pdf#page=15 HAC 4.44}. |
@@ -3344,8 +3342,8 @@ discard block |
||
3344 | 3342 | /** |
3345 | 3343 | * Array Repeat |
3346 | 3344 | * |
3347 | - * @param $input Array |
|
3348 | - * @param $multiplier mixed |
|
3345 | + * @param integer $input Array |
|
3346 | + * @param integer $multiplier mixed |
|
3349 | 3347 | * @return array |
3350 | 3348 | */ |
3351 | 3349 | private static function _array_repeat($input, $multiplier) |
@@ -3359,7 +3357,7 @@ discard block |
||
3359 | 3357 | * Shifts binary strings $shift bits, essentially multiplying by 2**$shift. |
3360 | 3358 | * |
3361 | 3359 | * @param $x String |
3362 | - * @param $shift Integer |
|
3360 | + * @param integer $shift Integer |
|
3363 | 3361 | * @return string |
3364 | 3362 | */ |
3365 | 3363 | private static function _base256_lshift(&$x, $shift) |
@@ -50,7 +50,7 @@ |
||
50 | 50 | * |
51 | 51 | * As set by the constructor or by the setHash() method. |
52 | 52 | * |
53 | - * @return string |
|
53 | + * @return integer |
|
54 | 54 | */ |
55 | 55 | public function getHash() |
56 | 56 | { |
@@ -1164,7 +1164,7 @@ discard block |
||
1164 | 1164 | * Typical salt lengths in octets are hLen (the length of the output |
1165 | 1165 | * of the hash function Hash) and 0. |
1166 | 1166 | * |
1167 | - * @param int $format |
|
1167 | + * @param integer $sLen |
|
1168 | 1168 | */ |
1169 | 1169 | public function setSaltLength($sLen) |
1170 | 1170 | { |
@@ -1403,7 +1403,6 @@ discard block |
||
1403 | 1403 | * See {@link http://tools.ietf.org/html/rfc3447#appendix-B.2.1 RFC3447#appendix-B.2.1}. |
1404 | 1404 | * |
1405 | 1405 | * @param string $mgfSeed |
1406 | - * @param int $mgfLen |
|
1407 | 1406 | * @return string |
1408 | 1407 | */ |
1409 | 1408 | private function _mgf1($mgfSeed, $maskLen) |
@@ -1705,7 +1704,7 @@ discard block |
||
1705 | 1704 | * @param string $m |
1706 | 1705 | * @param string $em |
1707 | 1706 | * @param int $emBits |
1708 | - * @return string |
|
1707 | + * @return boolean |
|
1709 | 1708 | */ |
1710 | 1709 | private function _emsa_pss_verify($m, $em, $emBits) |
1711 | 1710 | { |
@@ -1775,7 +1774,7 @@ discard block |
||
1775 | 1774 | * |
1776 | 1775 | * @param string $m |
1777 | 1776 | * @param string $s |
1778 | - * @return string |
|
1777 | + * @return boolean |
|
1779 | 1778 | */ |
1780 | 1779 | private function _rsassa_pss_verify($m, $s) |
1781 | 1780 | { |
@@ -1893,7 +1892,8 @@ discard block |
||
1893 | 1892 | * See {@link http://tools.ietf.org/html/rfc3447#section-8.2.2 RFC3447#section-8.2.2}. |
1894 | 1893 | * |
1895 | 1894 | * @param string $m |
1896 | - * @return string |
|
1895 | + * @param string $s |
|
1896 | + * @return boolean |
|
1897 | 1897 | */ |
1898 | 1898 | private function _rsassa_pkcs1_v1_5_verify($m, $s) |
1899 | 1899 | { |
@@ -2007,7 +2007,7 @@ discard block |
||
2007 | 2007 | * Decryption |
2008 | 2008 | * |
2009 | 2009 | * @see self::encrypt() |
2010 | - * @param string $plaintext |
|
2010 | + * @param string $ciphertext |
|
2011 | 2011 | * @return string |
2012 | 2012 | */ |
2013 | 2013 | public function decrypt($ciphertext) |