Lines Matching refs:cp
356 char *cp; in php_sha256_crypt_r() local
458 cp = p_bytes = alloca(key_len); in php_sha256_crypt_r()
460 cp = __php_mempcpy((void *)cp, (const void *)temp_result, 32); in php_sha256_crypt_r()
462 memcpy(cp, temp_result, cnt); in php_sha256_crypt_r()
476 cp = s_bytes = alloca(salt_len); in php_sha256_crypt_r()
478 cp = __php_mempcpy(cp, temp_result, 32); in php_sha256_crypt_r()
480 memcpy(cp, temp_result, cnt); in php_sha256_crypt_r()
518 cp = __php_stpncpy(buffer, sha256_salt_prefix, MAX(0, buflen)); in php_sha256_crypt_r()
523 int n = _snprintf(cp, MAX(0, buflen), "%s" ZEND_ULONG_FMT "$", sha256_rounds_prefix, rounds); in php_sha256_crypt_r()
525 int n = snprintf(cp, MAX(0, buflen), "%s%zu$", sha256_rounds_prefix, rounds); in php_sha256_crypt_r()
527 cp += n; in php_sha256_crypt_r()
531 cp = __php_stpncpy(cp, salt, MIN ((size_t) MAX (0, buflen), salt_len)); in php_sha256_crypt_r()
535 *cp++ = '$'; in php_sha256_crypt_r()
545 *cp++ = b64t[w & 0x3f]; \ in php_sha256_crypt_r()
566 *cp = '\0'; /* Terminate the string. */ in php_sha256_crypt_r()
740 char *cp = php_sha256_crypt(tests2[cnt].input, tests2[cnt].salt); in main() local
741 if (strcmp(cp, tests2[cnt].expected) != 0) { in main()
742 printf("test %d: expected \"%s\", got \"%s\"\n", cnt, tests2[cnt].expected, cp); in main()