Home
last modified time | relevance | path

Searched refs:crc32 (Results 1 – 25 of 44) sorted by path

12

/PHP-7.4/
H A DUPGRADING293 . Added "crc32c" hash using Castagnoli's polynomial. This crc32 variant is
/PHP-7.4/Zend/tests/
H A Dbug78340.phpt14 $this->ino= crc32($path);
/PHP-7.4/ext/hash/tests/
H A Dcrc32.phpt5 echo "crc32\n";
6 echo hash('crc32', ''), "\n";
7 echo hash('crc32', 'a'), "\n";
8 echo hash('crc32', 'abc'), "\n";
9 echo hash('crc32', 'message digest'), "\n";
10 echo hash('crc32', 'abcdefghijklmnopqrstuvwxyz'), "\n";
11 echo hash('crc32', 'ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789'), "\n";
12 echo hash('crc32', '1234567890123456789012345678901234567890123456789012345678901234567890123456789…
65 crc32
H A Dhash-clone.phpt122 string(5) "crc32"
281 string(5) "crc32"
H A Dhash_algos.phpt81 string(5) "crc32"
H A Dhash_copy_001.phpt122 string(5) "crc32"
281 string(5) "crc32"
H A Dhash_file_basic1.phpt34 echo "crc32: " . hash_file('crc32', $file) . "\n";
63 crc32: 61664d33
H A Dhash_hkdf_error.phpt27 var_dump(hash_hkdf('crc32', $ikm));
67 Warning: hash_hkdf(): Non-cryptographic hashing algorithm: crc32 in %s on line %d
H A Dhash_hmac_error.phpt28 var_dump(hash_hmac('crc32', $data, $key));
58 Warning: hash_hmac(): Non-cryptographic hashing algorithm: crc32 in %s on line %d
H A Dhash_hmac_file_error.phpt19 var_dump(hash_hmac_file('crc32'));
20 var_dump(hash_hmac_file('crc32', $file));
24 hash_hmac_file('crc32', $file, $key, TRUE, $extra_arg);
30 hash_hmac_file('crc32', $file, $key, TRUE);
61 Warning: hash_hmac_file(): Non-cryptographic hashing algorithm: crc32 in %s on line %d
H A Dhash_init_error.phpt14 var_dump(hash_init('crc32', HASH_HMAC));
32 Warning: hash_init(): HMAC requested with a non-cryptographic hashing algorithm: crc32 in %s on lin…
H A Dhash_pbkdf2_error.phpt28 var_dump(hash_pbkdf2('crc32', $password, $salt, 1));
68 Warning: hash_pbkdf2(): Non-cryptographic hashing algorithm: crc32 in %s on line %d
/PHP-7.4/ext/phar/
H A Dphar.c1106 PHAR_GET_32(buffer, entry.crc32); in phar_parse_pharfile()
2344 int phar_postprocess_file(phar_entry_data *idata, uint32_t crc32, char **error, int process_zip) /*… in phar_postprocess_file() argument
2385 memcpy(&(local.crc32), &(desc.crc32), 12); in phar_postprocess_file()
2388 memcpy(&(local.crc32), &desc, 12); in phar_postprocess_file()
2392 …->filename_len != PHAR_ZIP_16(local.filename_len) || entry->crc32 != PHAR_ZIP_32(local.crc32) || e… in phar_postprocess_file()
2418 if (~crc == crc32) { in phar_postprocess_file()
2776 entry->crc32 = ~newcrc32; in phar_flush()
2976 phar_set_32(entry_buffer+12, entry->crc32); in phar_flush()
H A Dphar_internal.h221 uint32_t crc32; member
525 int phar_postprocess_file(phar_entry_data *idata, uint32_t crc32, char **error, int process_zip);
H A Dphar_object.c4622 RETURN_LONG(entry_obj->entry->crc32); in PHP_METHOD()
H A Dpharzip.h27 char crc32[4]; /* crc-32 4 bytes */ member
39 char crc32[4]; /* crc-32 4 bytes */ member
46 char crc32[4]; /* crc-32 4 bytes */ member
141 char crc32[4]; /* CRC Long CRC-32 of the remaining data */ member
157 char crc32[4]; /* crc-32 4 bytes */ member
H A Dshortarc.php271 if ($entry[3] != sprintf("%u", crc32((binary)$data) & 0xffffffff)) {
H A Dstream.c313 …ile->is_crc_checked && phar_postprocess_file(idata, idata->internal_file->crc32, &error, 2) != SUC… in phar_wrapper_open_url()
H A Dtar.c795 entry->crc32 = phar_tar_checksum((char *)&header, sizeof(header)); in phar_tar_writeheaders_int()
797 if (FAILURE == phar_tar_octal(header.checksum, entry->crc32, sizeof(header.checksum)-1)) { in phar_tar_writeheaders_int()
/PHP-7.4/ext/phar/tests/
H A D010.phpt15 $manifest = pack('V', 1) . 'a' . pack('VVVVVV', 0, time(), 0, crc32(''), 0x00000000, 0);
H A D014.phpt12 // wrong crc32
15 $files['a'] = array('cont'=>'a', 'crc32'=>crc32('aX'));
23 …/a): failed to open stream: phar error: internal corruption of phar "%s" (crc32 mismatch on file "…
/PHP-7.4/ext/phar/tests/cache_list/files/
H A Dnophar.phar265 if ($entry[3] != sprintf("%u", crc32($data) & 0xffffffff)) {
H A Dopenssl.phar265 if ($entry[3] != sprintf("%u", crc32($data) & 0xffffffff)) {
H A Dphar_test.inc13 $crc32= NULL;
24 foreach(array('comp','crc32','clen','ulen','time','flags','perm','meta','cont') as $what)
37 if (empty($crc32))$crc32= crc32((binary)$cont);
42 …$manifest .= pack('VVVVVV', $ulen, $time, $clen, $crc32, $flags|$perm, strlen($meta)) . (binary)$m…
/PHP-7.4/ext/phar/tests/files/
H A Dinclude_path2.phar265 if ($entry[3] != sprintf("%u", crc32($data) & 0xffffffff)) {

Completed in 64 milliseconds

12