Lines Matching refs:cp
371 char *cp; in php_sha512_crypt_r() local
486 cp = p_bytes = do_alloca(key_len, use_heap_p_bytes); in php_sha512_crypt_r()
488 cp = zend_mempcpy((void *) cp, (const void *)temp_result, 64); in php_sha512_crypt_r()
491 memcpy(cp, temp_result, cnt); in php_sha512_crypt_r()
506 cp = s_bytes = do_alloca(salt_len, use_heap_s_bytes); in php_sha512_crypt_r()
508 cp = zend_mempcpy(cp, temp_result, 64); in php_sha512_crypt_r()
510 memcpy(cp, temp_result, cnt); in php_sha512_crypt_r()
548 cp = __php_stpncpy(buffer, sha512_salt_prefix, MAX(0, buflen)); in php_sha512_crypt_r()
553 int n = _snprintf(cp, MAX(0, buflen), "%s" ZEND_ULONG_FMT "$", sha512_rounds_prefix, rounds); in php_sha512_crypt_r()
555 int n = snprintf(cp, MAX(0, buflen), "%s%zu$", sha512_rounds_prefix, rounds); in php_sha512_crypt_r()
557 cp += n; in php_sha512_crypt_r()
561 cp = __php_stpncpy(cp, salt, MIN((size_t) MAX(0, buflen), salt_len)); in php_sha512_crypt_r()
565 *cp++ = '$'; in php_sha512_crypt_r()
575 *cp++ = b64t[w & 0x3f]; \ in php_sha512_crypt_r()
608 *cp = '\0'; /* Terminate the string. */ in php_sha512_crypt_r()
810 char *cp = php_sha512_crypt(tests2[cnt].input, tests2[cnt].salt); in main() local
812 if (strcmp (cp, tests2[cnt].expected) != 0) { in main()
814 cnt, tests2[cnt].expected, cp); in main()