Lines Matching refs:buf
1476 unsigned char buf[1024]; in phar_verify_signature() local
1563 if ((size_t)read_len > sizeof(buf)) { in phar_verify_signature()
1564 read_size = sizeof(buf); in phar_verify_signature()
1571 while (read_size && (len = php_stream_read(fp, (char*)buf, read_size)) > 0) { in phar_verify_signature()
1572 EVP_VerifyUpdate (md_ctx, buf, len); in phar_verify_signature()
1613 if ((size_t)read_len > sizeof(buf)) { in phar_verify_signature()
1614 read_size = sizeof(buf); in phar_verify_signature()
1619 while ((len = php_stream_read(fp, (char*)buf, read_size)) > 0) { in phar_verify_signature()
1620 PHP_SHA512Update(&context, buf, len); in phar_verify_signature()
1653 if ((size_t)read_len > sizeof(buf)) { in phar_verify_signature()
1654 read_size = sizeof(buf); in phar_verify_signature()
1659 while ((len = php_stream_read(fp, (char*)buf, read_size)) > 0) { in phar_verify_signature()
1660 PHP_SHA256Update(&context, buf, len); in phar_verify_signature()
1693 if ((size_t)read_len > sizeof(buf)) { in phar_verify_signature()
1694 read_size = sizeof(buf); in phar_verify_signature()
1699 while ((len = php_stream_read(fp, (char*)buf, read_size)) > 0) { in phar_verify_signature()
1700 PHP_SHA1Update(&context, buf, len); in phar_verify_signature()
1733 if ((size_t)read_len > sizeof(buf)) { in phar_verify_signature()
1734 read_size = sizeof(buf); in phar_verify_signature()
1739 while ((len = php_stream_read(fp, (char*)buf, read_size)) > 0) { in phar_verify_signature()
1740 PHP_MD5Update(&context, buf, len); in phar_verify_signature()
1771 unsigned char buf[1024]; in phar_create_signature() local
1788 while ((sig_len = php_stream_read(fp, (char*)buf, sizeof(buf))) > 0) { in phar_create_signature()
1789 PHP_SHA512Update(&context, buf, sig_len); in phar_create_signature()
1803 while ((sig_len = php_stream_read(fp, (char*)buf, sizeof(buf))) > 0) { in phar_create_signature()
1804 PHP_SHA256Update(&context, buf, sig_len); in phar_create_signature()
1853 while ((sig_len = php_stream_read(fp, (char*)buf, sizeof(buf))) > 0) { in phar_create_signature()
1854 if (!EVP_SignUpdate(md_ctx, buf, sig_len)) { in phar_create_signature()
1901 while ((sig_len = php_stream_read(fp, (char*)buf, sizeof(buf))) > 0) { in phar_create_signature()
1902 PHP_SHA1Update(&context, buf, sig_len); in phar_create_signature()
1916 while ((sig_len = php_stream_read(fp, (char*)buf, sizeof(buf))) > 0) { in phar_create_signature()
1917 PHP_MD5Update(&context, buf, sig_len); in phar_create_signature()
1977 char *buf = estrndup((char *) Z_PTR(entry->metadata), entry->metadata_len); in phar_update_cached_entry() local
1979 phar_parse_metadata((char **) &buf, &entry->metadata, entry->metadata_len); in phar_update_cached_entry()
1980 efree(buf); in phar_update_cached_entry()
2023 char *buf = estrndup((char *) Z_PTR(phar->metadata), phar->metadata_len); in phar_copy_cached_phar() local
2024 phar_parse_metadata(&buf, &phar->metadata, phar->metadata_len); in phar_copy_cached_phar()
2025 efree(buf); in phar_copy_cached_phar()