Home
last modified time | relevance | path

Searched refs:sig_flags (Results 1 – 6 of 6) sorted by relevance

/php-src/ext/phar/
H A Dzip.c521 mydata->sig_flags = PHAR_GET_32(sig); in phar_parse_zipfile()
522 …if (FAILURE == phar_verify_signature(sigfile, php_stream_tell(sigfile), mydata->sig_flags, sig + 8… in phar_parse_zipfile()
1181 if (!phar->is_data || phar->sig_flags) { in phar_zip_applysignature()
1225 PHAR_SET_32(sigbuf, phar->sig_flags); in phar_zip_applysignature()
1425 if (!phar->is_data && !phar->sig_flags) { in phar_zip_flush()
1426 phar->sig_flags = PHAR_SIG_SHA256; in phar_zip_flush()
1428 if (phar->sig_flags) { in phar_zip_flush()
H A Dphar.c738 uint32_t manifest_len, manifest_count, manifest_flags, manifest_index, tmp_len, sig_flags; in phar_parse_pharfile() local
860 PHAR_GET_32(sig_ptr, sig_flags); in phar_parse_pharfile()
862 switch(sig_flags) { in phar_parse_pharfile()
899 …if (FAILURE == phar_verify_signature(fp, end_of_phar, sig_flags, sig, signature_len, fname, &signa… in phar_parse_pharfile()
1039 sig_flags = 0; in phar_parse_pharfile()
1254 mydata->sig_flags = sig_flags; in phar_parse_pharfile()
3093 switch(phar->sig_flags) { in phar_flush_ex()
3116 if (phar->sig_flags == PHAR_SIG_OPENSSL || in phar_flush_ex()
3117 phar->sig_flags == PHAR_SIG_OPENSSL_SHA256 || in phar_flush_ex()
3118 phar->sig_flags == PHAR_SIG_OPENSSL_SHA512) { in phar_flush_ex()
[all …]
H A Dtar.c313 myphar->sig_flags = PHAR_GET_32(buf); in phar_parse_tarfile()
314 …if (FAILURE == phar_verify_signature(fp, php_stream_tell(fp) - size - 512, myphar->sig_flags, buf … in phar_parse_tarfile()
1175 if (!phar->is_data || phar->sig_flags) { in phar_tar_flush()
1209 PHAR_SET_32(sigbuf, phar->sig_flags); in phar_tar_flush()
H A Dutil.c1845 switch(phar->sig_flags) { in phar_create_signature()
1862 phar->sig_flags = PHAR_SIG_SHA256; in phar_create_signature()
1890 if (phar->sig_flags == PHAR_SIG_OPENSSL_SHA512) { in phar_create_signature()
1892 } else if (phar->sig_flags == PHAR_SIG_OPENSSL_SHA256) { in phar_create_signature()
1967 …openssl_privatekey), PHAR_G(openssl_privatekey_len), (char **)&sigbuf, &siglen, phar->sig_flags)) { in phar_create_signature()
H A Dphar_internal.h268 uint32_t sig_flags; member
H A Dphar_object.c3070 phar_obj->archive->sig_flags = (uint32_t)algo; in PHP_METHOD()
3102 switch(phar_obj->archive->sig_flags) { in PHP_METHOD()
3125 unknown = strpprintf(0, "Unknown (%u)", phar_obj->archive->sig_flags); in PHP_METHOD()

Completed in 49 milliseconds