@@ -44,7 +44,7 @@ |
||
44 | 44 | * @param string $mode Mcrypt mode |
45 | 45 | * @param string $algo Hashing algorithm to use for internal operations |
46 | 46 | * |
47 | - * @return string|boolean Returns false on checksum validation failure |
|
47 | + * @return false|string Returns false on checksum validation failure |
|
48 | 48 | */ |
49 | 49 | public static function decrypt($cyphertext, $password, $cost = 0, $cipher = MCRYPT_RIJNDAEL_128, $mode = MCRYPT_MODE_CBC, $algo = 'sha256') |
50 | 50 | { |
@@ -75,6 +75,9 @@ |
||
75 | 75 | return $cost % \pow(2, 32); |
76 | 76 | } |
77 | 77 | |
78 | + /** |
|
79 | + * @param string $password |
|
80 | + */ |
|
78 | 81 | private static function costHash($cost, $salt, $password) |
79 | 82 | { |
80 | 83 | // Hash and return first 12 bytes |