Lines Matching refs:cp
373 char *cp; in php_sha512_crypt_r() local
476 cp = p_bytes = alloca(key_len); in php_sha512_crypt_r()
478 cp = __php_mempcpy((void *) cp, (const void *)temp_result, 64); in php_sha512_crypt_r()
481 memcpy(cp, temp_result, cnt); in php_sha512_crypt_r()
495 cp = s_bytes = alloca(salt_len); in php_sha512_crypt_r()
497 cp = __php_mempcpy(cp, temp_result, 64); in php_sha512_crypt_r()
499 memcpy(cp, temp_result, cnt); in php_sha512_crypt_r()
537 cp = __php_stpncpy(buffer, sha512_salt_prefix, MAX(0, buflen)); in php_sha512_crypt_r()
542 int n = _snprintf(cp, MAX(0, buflen), "%s" ZEND_ULONG_FMT "$", sha512_rounds_prefix, rounds); in php_sha512_crypt_r()
544 int n = snprintf(cp, MAX(0, buflen), "%s%zu$", sha512_rounds_prefix, rounds); in php_sha512_crypt_r()
546 cp += n; in php_sha512_crypt_r()
550 cp = __php_stpncpy(cp, salt, MIN((size_t) MAX(0, buflen), salt_len)); in php_sha512_crypt_r()
554 *cp++ = '$'; in php_sha512_crypt_r()
564 *cp++ = b64t[w & 0x3f]; \ in php_sha512_crypt_r()
597 *cp = '\0'; /* Terminate the string. */ in php_sha512_crypt_r()
791 char *cp = php_sha512_crypt(tests2[cnt].input, tests2[cnt].salt); in main() local
793 if (strcmp (cp, tests2[cnt].expected) != 0) { in main()
795 cnt, tests2[cnt].expected, cp); in main()