@@ -1588,7 +1588,7 @@ discard block |
||
| 1588 | 1588 | * |
| 1589 | 1589 | * @param array ref $root |
| 1590 | 1590 | * @param string $path |
| 1591 | - * @param object $asn1 |
|
| 1591 | + * @param ASN1 $asn1 |
|
| 1592 | 1592 | * @access private |
| 1593 | 1593 | */ |
| 1594 | 1594 | function _mapInExtensions(&$root, $path, $asn1) |
@@ -1638,7 +1638,7 @@ discard block |
||
| 1638 | 1638 | * |
| 1639 | 1639 | * @param array ref $root |
| 1640 | 1640 | * @param string $path |
| 1641 | - * @param object $asn1 |
|
| 1641 | + * @param ASN1 $asn1 |
|
| 1642 | 1642 | * @access private |
| 1643 | 1643 | */ |
| 1644 | 1644 | function _mapOutExtensions(&$root, $path, $asn1) |
@@ -168,6 +168,7 @@ |
||
| 168 | 168 | |
| 169 | 169 | /** |
| 170 | 170 | * Builds a string to be encoded in a QR code |
| 171 | + * @param string $label |
|
| 171 | 172 | */ |
| 172 | 173 | public function getQRText($label, $secret) |
| 173 | 174 | { |
@@ -76,6 +76,7 @@ |
||
| 76 | 76 | * @throws Ex\EnvironmentIsBrokenException |
| 77 | 77 | * @throws Ex\WrongKeyOrModifiedCiphertextException |
| 78 | 78 | * |
| 79 | + * @param string $password |
|
| 79 | 80 | * @return Key |
| 80 | 81 | */ |
| 81 | 82 | public function unlockKey($password) |
@@ -150,6 +150,9 @@ |
||
| 150 | 150 | return array($hi, $lo); |
| 151 | 151 | } |
| 152 | 152 | |
| 153 | + /** |
|
| 154 | + * @param string $tag |
|
| 155 | + */ |
|
| 153 | 156 | function get_table_pos($tag) { |
| 154 | 157 | $offset = $this->tables[$tag]['offset']; |
| 155 | 158 | $length = $this->tables[$tag]['length']; |
@@ -164,6 +164,7 @@ |
||
| 164 | 164 | |
| 165 | 165 | /** |
| 166 | 166 | * Get MD5 as binary string |
| 167 | + * @param string $string |
|
| 167 | 168 | */ |
| 168 | 169 | function _md5_16($string) |
| 169 | 170 | { |
@@ -1331,6 +1331,9 @@ |
||
| 1331 | 1331 | } |
| 1332 | 1332 | } |
| 1333 | 1333 | |
| 1334 | +/** |
|
| 1335 | + * @param string $size |
|
| 1336 | + */ |
|
| 1334 | 1337 | function _getpagesize($size) |
| 1335 | 1338 | { |
| 1336 | 1339 | if (is_string($size)) |
@@ -340,7 +340,7 @@ |
||
| 340 | 340 | * to the self::$_e[] table. |
| 341 | 341 | * This is only used in the F() function |
| 342 | 342 | * |
| 343 | - * @param array $r 32 bit binary, each bit in an array element |
|
| 343 | + * @param string $r 32 bit binary, each bit in an array element |
|
| 344 | 344 | * @return string 48 bit binary string |
| 345 | 345 | */ |
| 346 | 346 | private function e($r) |
@@ -232,10 +232,10 @@ discard block |
||
| 232 | 232 | * |
| 233 | 233 | * Unicode multi-byte character safe |
| 234 | 234 | * |
| 235 | - * @param plaintext source text to be encrypted |
|
| 235 | + * @param plaintext string text to be encrypted |
|
| 236 | 236 | * @param password the password to use to generate a key |
| 237 | - * @param nBits number of bits to be used in the key (128, 192, or 256) |
|
| 238 | - * @return encrypted text |
|
| 237 | + * @param nBits integer of bits to be used in the key (128, 192, or 256) |
|
| 238 | + * @return string text |
|
| 239 | 239 | */ |
| 240 | 240 | public static function encrypt($plaintext, $password, $nBits) |
| 241 | 241 | { |
@@ -315,8 +315,8 @@ discard block |
||
| 315 | 315 | * |
| 316 | 316 | * @param ciphertext source text to be decrypted |
| 317 | 317 | * @param password the password to use to generate a key |
| 318 | - * @param nBits number of bits to be used in the key (128, 192, or 256) |
|
| 319 | - * @return decrypted text |
|
| 318 | + * @param nBits integer of bits to be used in the key (128, 192, or 256) |
|
| 319 | + * @return string text |
|
| 320 | 320 | */ |
| 321 | 321 | public static function decrypt($ciphertext, $password, $nBits) |
| 322 | 322 | { |