Lines Matching defs:len
45 $len = strlen($hash);
101 } elseif ($len == 32) {
103 } elseif ($len == 40) {
105 } elseif ($len == 16) {
107 } elseif ($len == 41 && $hash[0] == '*') {
109 } elseif ($len == 34) {
129 * @param int $len The length of the salt
132 public function gen_salt($len = 32)
136 for ($i = 0; $i < $len; $i++) {
149 * @param int $len The length of the salt
152 public function init_salt(&$salt, $len = 32, $cut = true)
155 $salt = $this->gen_salt($len);
158 if (strlen($salt) > $len && $cut) $salt = substr($salt, 0, $len);
228 $len = strlen($clear);
231 for ($i = $len; $i > 0; $i -= 16) {
234 for ($i = $len; $i > 0; $i >>= 1) {