Lines Matching refs:sp
136 const char *sp = salt; in php_md5_crypt_r() local
150 sp = salt; in php_md5_crypt_r()
153 if (strncmp(sp, MD5_MAGIC, MD5_MAGIC_LEN) == 0) { in php_md5_crypt_r()
154 sp += MD5_MAGIC_LEN; in php_md5_crypt_r()
158 for (ep = sp; *ep != '\0' && *ep != '$' && ep < (sp + 8); ep++) { in php_md5_crypt_r()
163 sl = ep - sp; in php_md5_crypt_r()
181 if(!CryptHashData( ctx, (BYTE *)sp, sl, 0)) { in php_md5_crypt_r()
193 if(!CryptHashData(ctx1, (BYTE *)sp, sl, 0)) { in php_md5_crypt_r()
222 if (strncpy_s(passwd + MD5_MAGIC_LEN, MD5_HASH_MAX_LEN - MD5_MAGIC_LEN, sp, sl + 1) != 0) { in php_md5_crypt_r()
249 if(!CryptHashData(ctx1, (BYTE *)sp, sl, 0)) { in php_md5_crypt_r()
322 const char *sp, *ep; in php_md5_crypt_r() local
332 sp = salt; in php_md5_crypt_r()
335 if (strncmp(sp, MD5_MAGIC, MD5_MAGIC_LEN) == 0) in php_md5_crypt_r()
336 sp += MD5_MAGIC_LEN; in php_md5_crypt_r()
339 for (ep = sp; *ep != '\0' && *ep != '$' && ep < (sp + 8); ep++) in php_md5_crypt_r()
343 sl = ep - sp; in php_md5_crypt_r()
354 PHP_MD5Update(&ctx, (const unsigned char *)sp, sl); in php_md5_crypt_r()
359 PHP_MD5Update(&ctx1, (const unsigned char *)sp, sl); in php_md5_crypt_r()
378 strlcpy(passwd + MD5_MAGIC_LEN, sp, sl + 1); in php_md5_crypt_r()
397 PHP_MD5Update(&ctx1, (const unsigned char *)sp, sl); in php_md5_crypt_r()