Home
last modified time | relevance | path

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

12

/PHP-5.5/
H A DNEWS6811 - Fixed bug #45028 (CRC32 output endianness is different between crc32() and
8796 - Fixed bug #36306 (crc32() differ on 32-bit and 64-bit platforms)
/PHP-5.5/ext/hash/tests/
H A Dcrc32.phpt7 echo hash('crc32', ''), "\n";
8 echo hash('crc32', 'a'), "\n";
9 echo hash('crc32', 'abc'), "\n";
10 echo hash('crc32', 'message digest'), "\n";
11 echo hash('crc32', 'abcdefghijklmnopqrstuvwxyz'), "\n";
12 echo hash('crc32', 'ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789'), "\n";
13 echo hash('crc32', '1234567890123456789012345678901234567890123456789012345678901234567890123456789…
H A Dhash_algos.phpt69 string(5) "crc32"
H A Dhash_copy_001.phpt103 string(5) "crc32"
232 string(5) "crc32"
H A Dhash_file_basic1.phpt36 echo "crc32: " . hash_file('crc32', $file) . "\n";
65 crc32: 61664d33
H A Dhash_hmac_basic.phpt20 echo "crc32: " . hash_hmac('crc32', $content, $key) . "\n";
46 crc32: 96859101
H A Dhash_hmac_error.phpt19 var_dump(hash_hmac('crc32'));
20 var_dump(hash_hmac('crc32', $data));
24 var_dump(hash_hmac('crc32', $data, $key, TRUE, $extra_arg));
H A Dhash_hmac_file_basic.phpt40 echo "crc32: " . hash_hmac_file('crc32', $file, $key) . "\n";
74 crc32: f2a60b9c
H A Dhash_hmac_file_error.phpt21 var_dump(hash_hmac_file('crc32'));
22 var_dump(hash_hmac_file('crc32', $file));
26 hash_hmac_file('crc32', $file, $key, TRUE, $extra_arg);
32 hash_hmac_file('crc32', $file.chr(0).$file, $key, TRUE);
H A Dhash_pbkdf2_error.phpt20 var_dump(@hash_pbkdf2('crc32'));
22 var_dump(@hash_pbkdf2('crc32', $password));
24 var_dump(@hash_pbkdf2('crc32', $password, $salt));
28 var_dump(@hash_pbkdf2('crc32', $password, $salt, 10, 10, true, 'extra arg'));
/PHP-5.5/ext/phar/
H A Dphar.c1100 PHAR_GET_32(buffer, entry.crc32);
2408 int phar_postprocess_file(phar_entry_data *idata, php_uint32 crc32, char **error, int process_zip T… argument
2449 memcpy(&(local.crc32), &(desc.crc32), 12);
2452 memcpy(&(local.crc32), &desc, 12);
2456 …->filename_len != PHAR_ZIP_16(local.filename_len) || entry->crc32 != PHAR_ZIP_32(local.crc32) || e…
2482 if (~crc == crc32) {
2849 entry->crc32 = ~newcrc32;
3051 phar_set_32(entry_buffer+12, entry->crc32);
H A Dphar_internal.h259 php_uint32 crc32; member
584 int phar_postprocess_file(phar_entry_data *idata, php_uint32 crc32, char **error, int process_zip T…
H A Dphar_object.c4594 RETURN_LONG(entry_obj->ent.entry->crc32); in PHP_METHOD()
H A Dpharzip.h29 char crc32[4]; /* crc-32 4 bytes */ member
41 char crc32[4]; /* crc-32 4 bytes */ member
48 char crc32[4]; /* crc-32 4 bytes */ member
143 char crc32[4]; /* CRC Long CRC-32 of the remaining data */ member
159 char crc32[4]; /* crc-32 4 bytes */ member
H A Dshortarc.php271 if ($entry[3] != sprintf("%u", crc32((binary)$data) & 0xffffffff)) {
H A Dstream.c311 …ile->is_crc_checked && phar_postprocess_file(idata, idata->internal_file->crc32, &error, 2 TSRMLS_… in phar_wrapper_open_url()
H A Dtar.c772 entry->crc32 = phar_tar_checksum((char *)&header, sizeof(header)); in phar_tar_writeheaders()
774 if (FAILURE == phar_tar_octal(header.checksum, entry->crc32, sizeof(header.checksum)-1)) { in phar_tar_writeheaders()
/PHP-5.5/ext/phar/tests/
H A D010.phpt15 $manifest = pack('V', 1) . 'a' . pack('VVVVVV', 0, time(), 0, crc32(b''), 0x00000000, 0);
H A D014.phpt12 // wrong crc32
15 $files['a'] = array('cont'=>'a', 'crc32'=>crc32(b'aX'));
23 …/a): failed to open stream: phar error: internal corruption of phar "%s" (crc32 mismatch on file "…
/PHP-5.5/ext/phar/tests/cache_list/files/
H A Dnophar.phar265 if ($entry[3] != sprintf("%u", crc32((binary)$data) & 0xffffffff)) {
H A Dopenssl.phar265 if ($entry[3] != sprintf("%u", crc32((binary)$data) & 0xffffffff)) {
H A Dphar_test.inc15 $crc32= NULL;
26 foreach(array('comp','crc32','clen','ulen','time','flags','perm','meta','cont') as $what)
39 if (empty($crc32))$crc32= crc32((binary)$cont);
44 …$manifest .= pack('VVVVVV', $ulen, $time, $clen, $crc32, $flags|$perm, strlen($meta)) . (binary)$m…
/PHP-5.5/ext/phar/tests/files/
H A Dinclude_path2.phar265 if ($entry[3] != sprintf("%u", crc32((binary)$data) & 0xffffffff)) {
H A Dnophar.phar265 if ($entry[3] != sprintf("%u", crc32((binary)$data) & 0xffffffff)) {
H A Dopenssl.phar265 if ($entry[3] != sprintf("%u", crc32((binary)$data) & 0xffffffff)) {

Completed in 89 milliseconds

12