@@ -1456,6 +1456,7 @@ discard block |
||
1456 | 1456 | * |
1457 | 1457 | * @see Crypt_Rijndael::_unpad() |
1458 | 1458 | * @access private |
1459 | + * @param string $text |
|
1459 | 1460 | */ |
1460 | 1461 | function _pad($text) |
1461 | 1462 | { |
@@ -1483,6 +1484,7 @@ discard block |
||
1483 | 1484 | * |
1484 | 1485 | * @see Crypt_Rijndael::_pad() |
1485 | 1486 | * @access private |
1487 | + * @param string $text |
|
1486 | 1488 | */ |
1487 | 1489 | function _unpad($text) |
1488 | 1490 | { |
@@ -677,7 +677,6 @@ discard block |
||
677 | 677 | * |
678 | 678 | * @access private |
679 | 679 | * @see setPrivateKeyFormat() |
680 | - * @param String $RSAPrivateKey |
|
681 | 680 | * @return String |
682 | 681 | */ |
683 | 682 | function _convertPrivateKey($n, $e, $d, $primes, $exponents, $coefficients) |
@@ -830,7 +829,6 @@ discard block |
||
830 | 829 | * |
831 | 830 | * @access private |
832 | 831 | * @see setPublicKeyFormat() |
833 | - * @param String $RSAPrivateKey |
|
834 | 832 | * @return String |
835 | 833 | */ |
836 | 834 | function _convertPublicKey($n, $e) |
@@ -1491,7 +1489,6 @@ discard block |
||
1491 | 1489 | * |
1492 | 1490 | * @see getPublicKey() |
1493 | 1491 | * @access public |
1494 | - * @param String $key |
|
1495 | 1492 | * @param Integer $type optional |
1496 | 1493 | */ |
1497 | 1494 | function getPublicKey($type = CRYPT_RSA_PUBLIC_FORMAT_PKCS1) |
@@ -1514,7 +1511,6 @@ discard block |
||
1514 | 1511 | * |
1515 | 1512 | * @see getPublicKey() |
1516 | 1513 | * @access public |
1517 | - * @param String $key |
|
1518 | 1514 | * @param Integer $type optional |
1519 | 1515 | */ |
1520 | 1516 | function getPrivateKey($type = CRYPT_RSA_PUBLIC_FORMAT_PKCS1) |
@@ -1538,8 +1534,7 @@ discard block |
||
1538 | 1534 | * |
1539 | 1535 | * @see getPrivateKey() |
1540 | 1536 | * @access private |
1541 | - * @param String $key |
|
1542 | - * @param Integer $type optional |
|
1537 | + * @param integer $mode |
|
1543 | 1538 | */ |
1544 | 1539 | function _getPrivatePublicKey($mode = CRYPT_RSA_PUBLIC_FORMAT_PKCS1) |
1545 | 1540 | { |
@@ -1742,7 +1737,6 @@ discard block |
||
1742 | 1737 | * of the hash function Hash) and 0. |
1743 | 1738 | * |
1744 | 1739 | * @access public |
1745 | - * @param Integer $format |
|
1746 | 1740 | */ |
1747 | 1741 | function setSaltLength($sLen) |
1748 | 1742 | { |
@@ -1991,7 +1985,6 @@ discard block |
||
1991 | 1985 | * |
1992 | 1986 | * @access private |
1993 | 1987 | * @param String $mgfSeed |
1994 | - * @param Integer $mgfLen |
|
1995 | 1988 | * @return String |
1996 | 1989 | */ |
1997 | 1990 | function _mgf1($mgfSeed, $maskLen) |
@@ -2284,7 +2277,7 @@ discard block |
||
2284 | 2277 | * @param String $m |
2285 | 2278 | * @param String $em |
2286 | 2279 | * @param Integer $emBits |
2287 | - * @return String |
|
2280 | + * @return boolean |
|
2288 | 2281 | */ |
2289 | 2282 | function _emsa_pss_verify($m, $em, $emBits) |
2290 | 2283 | { |
@@ -2356,7 +2349,7 @@ discard block |
||
2356 | 2349 | * @access private |
2357 | 2350 | * @param String $m |
2358 | 2351 | * @param String $s |
2359 | - * @return String |
|
2352 | + * @return boolean |
|
2360 | 2353 | */ |
2361 | 2354 | function _rsassa_pss_verify($m, $s) |
2362 | 2355 | { |
@@ -2477,7 +2470,8 @@ discard block |
||
2477 | 2470 | * |
2478 | 2471 | * @access private |
2479 | 2472 | * @param String $m |
2480 | - * @return String |
|
2473 | + * @param string $s |
|
2474 | + * @return boolean |
|
2481 | 2475 | */ |
2482 | 2476 | function _rsassa_pkcs1_v1_5_verify($m, $s) |
2483 | 2477 | { |
@@ -2610,7 +2604,6 @@ discard block |
||
2610 | 2604 | * |
2611 | 2605 | * @see encrypt() |
2612 | 2606 | * @access public |
2613 | - * @param String $plaintext |
|
2614 | 2607 | * @return String |
2615 | 2608 | */ |
2616 | 2609 | function decrypt($ciphertext) |
@@ -98,6 +98,7 @@ discard block |
||
98 | 98 | * CRYPT_DES_MODE_ECB or CRYPT_DES_MODE_CBC. If not explictly set, CRYPT_DES_MODE_CBC will be used. |
99 | 99 | * |
100 | 100 | * @param optional Integer $mode |
101 | + * @param integer $mode |
|
101 | 102 | * @return Crypt_TripleDES |
102 | 103 | * @access public |
103 | 104 | */ |
@@ -318,6 +319,7 @@ discard block |
||
318 | 319 | * |
319 | 320 | * @access public |
320 | 321 | * @param String $plaintext |
322 | + * @return string |
|
321 | 323 | */ |
322 | 324 | function encrypt($plaintext) |
323 | 325 | { |
@@ -563,6 +563,7 @@ discard block |
||
563 | 563 | * If not explictly set, CRYPT_TWOFISH_MODE_CBC will be used. |
564 | 564 | * |
565 | 565 | * @param optional Integer $mode |
566 | + * @param integer $mode |
|
566 | 567 | * @access public |
567 | 568 | */ |
568 | 569 | function Crypt_Twofish($mode = CRYPT_TWOFISH_MODE_CBC) |
@@ -1072,6 +1073,7 @@ discard block |
||
1072 | 1073 | * |
1073 | 1074 | * @see Crypt_Twofish::_unpad() |
1074 | 1075 | * @access private |
1076 | + * @param string $text |
|
1075 | 1077 | */ |
1076 | 1078 | function _pad($text) |
1077 | 1079 | { |
@@ -1099,6 +1101,7 @@ discard block |
||
1099 | 1101 | * |
1100 | 1102 | * @see Crypt_Twofish::_pad() |
1101 | 1103 | * @access private |
1104 | + * @param string $text |
|
1102 | 1105 | */ |
1103 | 1106 | function _unpad($text) |
1104 | 1107 | { |
@@ -250,9 +250,8 @@ |
||
250 | 250 | /** |
251 | 251 | * Set the number of lines that should be logged past the terminal height |
252 | 252 | * |
253 | - * @param Integer $x |
|
254 | - * @param Integer $y |
|
255 | 253 | * @access public |
254 | + * @param integer $history |
|
256 | 255 | */ |
257 | 256 | function setHistory($history) |
258 | 257 | { |
@@ -263,7 +263,7 @@ discard block |
||
263 | 263 | * Serves a similar purpose to openssl's asn1parse |
264 | 264 | * |
265 | 265 | * @param String $encoded |
266 | - * @return Array |
|
266 | + * @return string |
|
267 | 267 | * @access public |
268 | 268 | */ |
269 | 269 | function decodeBER($encoded) |
@@ -776,7 +776,6 @@ discard block |
||
776 | 776 | * |
777 | 777 | * @param String $source |
778 | 778 | * @param String $mapping |
779 | - * @param Integer $idx |
|
780 | 779 | * @return String |
781 | 780 | * @access public |
782 | 781 | */ |
@@ -1095,7 +1094,7 @@ discard block |
||
1095 | 1094 | * @access private |
1096 | 1095 | * @param String $content |
1097 | 1096 | * @param Integer $tag |
1098 | - * @return String |
|
1097 | + * @return double |
|
1099 | 1098 | */ |
1100 | 1099 | function _decodeTime($content, $tag) |
1101 | 1100 | { |
@@ -1653,7 +1653,7 @@ discard block |
||
1653 | 1653 | * |
1654 | 1654 | * @param Array ref $root |
1655 | 1655 | * @param String $path |
1656 | - * @param Object $asn1 |
|
1656 | + * @param File_ASN1 $asn1 |
|
1657 | 1657 | * @access private |
1658 | 1658 | */ |
1659 | 1659 | function _mapInAttributes(&$root, $path, $asn1) |
@@ -1694,7 +1694,7 @@ discard block |
||
1694 | 1694 | * |
1695 | 1695 | * @param Array ref $root |
1696 | 1696 | * @param String $path |
1697 | - * @param Object $asn1 |
|
1697 | + * @param File_ASN1 $asn1 |
|
1698 | 1698 | * @access private |
1699 | 1699 | */ |
1700 | 1700 | function _mapOutAttributes(&$root, $path, $asn1) |
@@ -2111,7 +2111,7 @@ discard block |
||
2111 | 2111 | * @param String $signature |
2112 | 2112 | * @param String $signatureSubject |
2113 | 2113 | * @access private |
2114 | - * @return Integer |
|
2114 | + * @return null|boolean |
|
2115 | 2115 | */ |
2116 | 2116 | function _validateSignature($publicKeyAlgorithm, $publicKey, $signatureAlgorithm, $signature, $signatureSubject) |
2117 | 2117 | { |
@@ -2179,7 +2179,7 @@ discard block |
||
2179 | 2179 | * |
2180 | 2180 | * @param String $propName |
2181 | 2181 | * @access private |
2182 | - * @return Mixed |
|
2182 | + * @return string|false |
|
2183 | 2183 | */ |
2184 | 2184 | function _translateDNProp($propName) |
2185 | 2185 | { |
@@ -2421,7 +2421,7 @@ discard block |
||
2421 | 2421 | /** |
2422 | 2422 | * Get the Distinguished Name for a certificates subject |
2423 | 2423 | * |
2424 | - * @param Mixed $format optional |
|
2424 | + * @param integer $format optional |
|
2425 | 2425 | * @param Array $dn optional |
2426 | 2426 | * @access public |
2427 | 2427 | * @return Boolean |
@@ -2568,7 +2568,7 @@ discard block |
||
2568 | 2568 | * |
2569 | 2569 | * @param Integer $format optional |
2570 | 2570 | * @access public |
2571 | - * @return Mixed |
|
2571 | + * @return boolean |
|
2572 | 2572 | */ |
2573 | 2573 | function getIssuerDN($format = FILE_X509_DN_ARRAY) |
2574 | 2574 | { |
@@ -2590,7 +2590,7 @@ discard block |
||
2590 | 2590 | * |
2591 | 2591 | * @param Integer $format optional |
2592 | 2592 | * @access public |
2593 | - * @return Mixed |
|
2593 | + * @return boolean |
|
2594 | 2594 | */ |
2595 | 2595 | function getSubjectDN($format = FILE_X509_DN_ARRAY) |
2596 | 2596 | { |
@@ -2706,7 +2706,7 @@ discard block |
||
2706 | 2706 | * |
2707 | 2707 | * @param Object $key |
2708 | 2708 | * @access public |
2709 | - * @return Boolean |
|
2709 | + * @return boolean|null |
|
2710 | 2710 | */ |
2711 | 2711 | function setPublicKey($key) |
2712 | 2712 | { |
@@ -3427,7 +3427,6 @@ discard block |
||
3427 | 3427 | * X.509 certificate signing helper function. |
3428 | 3428 | * |
3429 | 3429 | * @param Object $key |
3430 | - * @param File_X509 $subject |
|
3431 | 3430 | * @param String $signatureAlgorithm |
3432 | 3431 | * @access public |
3433 | 3432 | * @return Mixed |
@@ -251,7 +251,7 @@ discard block |
||
251 | 251 | * ?> |
252 | 252 | * </code> |
253 | 253 | * |
254 | - * @param optional $x base-10 number or base-$base number if $base set. |
|
254 | + * @param integer $x base-10 number or base-$base number if $base set. |
|
255 | 255 | * @param optional integer $base |
256 | 256 | * @return Math_BigInteger |
257 | 257 | * @access public |
@@ -1368,7 +1368,7 @@ discard block |
||
1368 | 1368 | * </code> |
1369 | 1369 | * |
1370 | 1370 | * @param Math_BigInteger $y |
1371 | - * @return Array |
|
1371 | + * @return Math_BigInteger[] |
|
1372 | 1372 | * @access public |
1373 | 1373 | * @internal This function is based off of {@link http://www.cacr.math.uwaterloo.ca/hac/about/chap14.pdf#page=9 HAC 14.20}. |
1374 | 1374 | */ |
@@ -3520,8 +3520,8 @@ discard block |
||
3520 | 3520 | /** |
3521 | 3521 | * Array Repeat |
3522 | 3522 | * |
3523 | - * @param $input Array |
|
3524 | - * @param $multiplier mixed |
|
3523 | + * @param integer $input Array |
|
3524 | + * @param integer $multiplier mixed |
|
3525 | 3525 | * @return Array |
3526 | 3526 | * @access private |
3527 | 3527 | */ |
@@ -3536,7 +3536,7 @@ discard block |
||
3536 | 3536 | * Shifts binary strings $shift bits, essentially multiplying by 2**$shift. |
3537 | 3537 | * |
3538 | 3538 | * @param $x String |
3539 | - * @param $shift Integer |
|
3539 | + * @param integer $shift Integer |
|
3540 | 3540 | * @return String |
3541 | 3541 | * @access private |
3542 | 3542 | */ |
@@ -3565,7 +3565,7 @@ discard block |
||
3565 | 3565 | * Shifts binary strings $shift bits, essentially dividing by 2**$shift and returning the remainder. |
3566 | 3566 | * |
3567 | 3567 | * @param $x String |
3568 | - * @param $shift Integer |
|
3568 | + * @param integer $shift Integer |
|
3569 | 3569 | * @return String |
3570 | 3570 | * @access private |
3571 | 3571 | */ |
@@ -117,7 +117,6 @@ discard block |
||
117 | 117 | * |
118 | 118 | * Connects to an SSH server |
119 | 119 | * |
120 | - * @param String $host |
|
121 | 120 | * @param optional Integer $port |
122 | 121 | * @param optional Integer $timeout |
123 | 122 | * @return Net_SCP |
@@ -161,7 +160,7 @@ discard block |
||
161 | 160 | * @param String $remote_file |
162 | 161 | * @param String $data |
163 | 162 | * @param optional Integer $mode |
164 | - * @return Boolean |
|
163 | + * @return false|null |
|
165 | 164 | * @access public |
166 | 165 | */ |
167 | 166 | function put($remote_file, $data, $mode = NET_SCP_STRING) |
@@ -218,7 +217,7 @@ discard block |
||
218 | 217 | * |
219 | 218 | * @param String $remote_file |
220 | 219 | * @param optional String $local_file |
221 | - * @return Mixed |
|
220 | + * @return boolean|string |
|
222 | 221 | * @access public |
223 | 222 | */ |
224 | 223 | function get($remote_file, $local_file = false) |