@@ -618,7 +618,7 @@ discard block |
||
618 | 618 | * Expands the key |
619 | 619 | * The key expands based on the block size as well as the key size |
620 | 620 | * |
621 | - * @return void |
|
621 | + * @return boolean|null |
|
622 | 622 | */ |
623 | 623 | protected function expandKey() |
624 | 624 | { |
@@ -635,7 +635,7 @@ discard block |
||
635 | 635 | * Expand a 16 byte key, the size it is expanded to varies |
636 | 636 | * based on the block size of the Rijndael implementation chosen |
637 | 637 | * |
638 | - * @return void |
|
638 | + * @return boolean |
|
639 | 639 | */ |
640 | 640 | private function expandKey128() |
641 | 641 | { |
@@ -695,7 +695,7 @@ discard block |
||
695 | 695 | * Expand a 24 byte key, the size it is expanded to varies |
696 | 696 | * based on the block size of the Rijndael implementation chosen |
697 | 697 | * |
698 | - * @return void |
|
698 | + * @return boolean |
|
699 | 699 | */ |
700 | 700 | private function expandKey192() |
701 | 701 | { |
@@ -755,7 +755,7 @@ discard block |
||
755 | 755 | * Expand a 32 byte key, the size it is expanded to varies |
756 | 756 | * based on the block size of the Rijndael implementation chosen |
757 | 757 | * |
758 | - * @return void |
|
758 | + * @return boolean |
|
759 | 759 | */ |
760 | 760 | private function expandKey256() |
761 | 761 | { |
@@ -108,7 +108,7 @@ |
||
108 | 108 | * this function contains the code to do both. The SimpleXOR::Encrypt() |
109 | 109 | * and SimpleXOR::Decrypt() function above just call this function |
110 | 110 | * |
111 | - * @param string $input |
|
111 | + * @param string $text |
|
112 | 112 | * @return boolean Always returns true |
113 | 113 | */ |
114 | 114 | private function simpleXOR(&$text) |
@@ -88,7 +88,6 @@ discard block |
||
88 | 88 | /** |
89 | 89 | * Encrypt plain text data using Skipjack |
90 | 90 | * |
91 | - * @param string $data A plain text string, 8 bytes long |
|
92 | 91 | * @return boolean Returns true |
93 | 92 | */ |
94 | 93 | public function encrypt(&$text) |
@@ -120,7 +119,6 @@ discard block |
||
120 | 119 | /** |
121 | 120 | * Decrypt a Skipjack encrypted string |
122 | 121 | * |
123 | - * @param string $encrypted A Skipjack encrypted string, 8 bytes long |
|
124 | 122 | * @return boolean Returns true |
125 | 123 | */ |
126 | 124 | public function decrypt(&$text) |
@@ -77,7 +77,6 @@ discard block |
||
77 | 77 | /** |
78 | 78 | * Encrypt plain text data using Vigenere cipher |
79 | 79 | * |
80 | - * @param string $data A plain text string |
|
81 | 80 | * @return boolean Returns true |
82 | 81 | */ |
83 | 82 | public function encrypt(&$text) |
@@ -114,7 +113,6 @@ discard block |
||
114 | 113 | /** |
115 | 114 | * Decrypt a Vigenere encrypted string |
116 | 115 | * |
117 | - * @param string $encrypted A Vigenere encrypted string |
|
118 | 116 | * @return boolean Returns true |
119 | 117 | */ |
120 | 118 | public function decrypt(&$text) |
@@ -155,6 +155,7 @@ discard block |
||
155 | 155 | * Convert a binary string (ie: 01101011) to a decimal number |
156 | 156 | * |
157 | 157 | * @param string A string representation of a binary number |
158 | + * @param string $bin |
|
158 | 159 | * @return integer The number converted from the binary string |
159 | 160 | */ |
160 | 161 | public static function bin2Dec($bin) |
@@ -478,7 +479,6 @@ discard block |
||
478 | 479 | /** |
479 | 480 | * Rotates bits Left, appending the bits pushed off the left onto the right |
480 | 481 | * |
481 | - * @param integer $n The integer to rotate bits to the left |
|
482 | 482 | * @param integer $shifts The number of shifts left to make |
483 | 483 | * @return integer The resulting value from the rotation |
484 | 484 | */ |
@@ -504,7 +504,6 @@ discard block |
||
504 | 504 | /** |
505 | 505 | * Rotates bits right, appending the bits pushed off the right onto the left |
506 | 506 | * |
507 | - * @param integer $n The integer to rotate bits to the right |
|
508 | 507 | * @param integer $shifts The number of shifts right to make |
509 | 508 | * @return integer The resulting value from the rotation |
510 | 509 | */ |
@@ -240,7 +240,7 @@ |
||
240 | 240 | * returns the the padding type only. |
241 | 241 | * |
242 | 242 | * @param string $type One of the predefined padding types |
243 | - * @return void |
|
243 | + * @return string |
|
244 | 244 | */ |
245 | 245 | public function padding($type = "") |
246 | 246 | { |
@@ -41,7 +41,6 @@ |
||
41 | 41 | * Sets the cipher object that will be used for encryption |
42 | 42 | * |
43 | 43 | * @param object $cipher one of the phpCrypt encryption cipher objects |
44 | - * @param int $block_size The size of blocks (in bits) used for encryption |
|
45 | 44 | * @return void |
46 | 45 | */ |
47 | 46 | public function __construct($cipher) |
@@ -79,7 +79,6 @@ discard block |
||
79 | 79 | * Encrypts an the string using the Cipher with no Mode |
80 | 80 | * NOTE: The data in $text must be the exact length required by the Cipher |
81 | 81 | * |
82 | - * @param string $str the string to be encrypted |
|
83 | 82 | * @return boolean Always returns false |
84 | 83 | */ |
85 | 84 | public function encrypt(&$text) |
@@ -93,7 +92,6 @@ discard block |
||
93 | 92 | * Decrypts one block of cipher text, not using any mode. |
94 | 93 | * NOTE: The data in $text must be the exact length required by the Cipher |
95 | 94 | * |
96 | - * @param string $str the string to be decrypted |
|
97 | 95 | * @return boolean Always returns false |
98 | 96 | */ |
99 | 97 | public function decrypt(&$text) |
@@ -173,6 +173,7 @@ discard block |
||
173 | 173 | * |
174 | 174 | * @param string $text The string to pad |
175 | 175 | * @param integer The number of bytes to pad |
176 | + * @param integer $bytes |
|
176 | 177 | * @return boolean Returns true |
177 | 178 | */ |
178 | 179 | private static function ansiX923Pad(&$text, $bytes) |
@@ -217,6 +218,7 @@ discard block |
||
217 | 218 | * |
218 | 219 | * @param string $text The string to pad |
219 | 220 | * @param integer The number of bytes to pad |
221 | + * @param integer $bytes |
|
220 | 222 | * @return boolean Returns true |
221 | 223 | */ |
222 | 224 | private static function iso10126Pad(&$text, $bytes) |
@@ -261,6 +263,7 @@ discard block |
||
261 | 263 | * |
262 | 264 | * @param string $text The string to pad |
263 | 265 | * @param integer The number of bytes to pad |
266 | + * @param integer $bytes |
|
264 | 267 | * @return boolean Returns true |
265 | 268 | */ |
266 | 269 | private static function pkcs7Pad(&$text, $bytes) |
@@ -296,6 +299,7 @@ discard block |
||
296 | 299 | * |
297 | 300 | * @param string $text The string to pad |
298 | 301 | * @param integer The number of bytes to pad |
302 | + * @param integer $bytes |
|
299 | 303 | * @return boolean Returns true |
300 | 304 | */ |
301 | 305 | private static function iso7816Pad(&$text, $bytes) |