Lines Matching refs:prefix
95 $magic = ['prefix' => $m[1], 'rounds' => $m[2]];
409 $salt = $itoa64[$compute] . $salt; // prefix iteration count
695 * - SHA-2 with 256-bit output for prefix $5$
696 * - SHA-2 with 512-bit output for prefix $6$ (default)
700 * @param array $opts ('rounds' => rounds for sha256/sha512, 'prefix' => selected method from SHA-2 family)
706 if (empty($opts['prefix'])) {
707 $prefix = '6';
709 $prefix = $opts['prefix'];
716 if ($prefix == '5' && (!defined('CRYPT_SHA256') || CRYPT_SHA256 !== 1)) {
719 if ($prefix == '6' && (!defined('CRYPT_SHA512') || CRYPT_SHA512 !== 1)) {
724 return crypt($clear, '$' . $prefix . '$' . $salt . '$');
726 return crypt($clear, '$' . $prefix . '$' . $rounds . '$' . $salt . '$');
733 $opts['prefix'] = 6;
740 $opts['prefix'] = 5;