Home
last modified time | relevance | path

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

12

/PHP-7.3/ext/standard/tests/strings/
H A Dcrc32_error.phpt2 Test crc32() function : error conditions
5 /* Prototype : string crc32(string $str)
6 * Description: Calculate the crc32 polynomial of a string
7 * Source code: ext/standard/crc32.c
12 * Testing crc32() : error conditions
15 echo "*** Testing crc32() : error conditions ***\n";
18 echo "\n-- Testing crc32() function with Zero arguments --\n";
19 var_dump( crc32() );
25 var_dump( crc32($str, $extra_arg) );
30 *** Testing crc32() : error conditions ***
[all …]
H A Dcrc32_basic.phpt2 Test crc32() function : basic functionality
5 /* Prototype : string crc32(string $str)
6 * Description: Calculate the crc32 polynomial of a string
7 * Source code: ext/standard/crc32.c
12 * Testing crc32() : basic functionality
15 echo "*** Testing crc32() : basic functionality ***\n";
21 // Calling crc32() with all possible arguments
24 var_dump( is_int(crc32($str)) );
27 printf("%u\n", crc32($str) );
32 *** Testing crc32() : basic functionality ***
H A Dcrc32_variation1.phpt2 Test crc32() function : usage variations - unexpected values
10 /* Prototype : string crc32(string $str)
11 * Description: Calculate the crc32 polynomial of a string
12 * Source code: ext/standard/crc32.c
17 * Testing crc32() : with unexpected values for str argument
20 echo "*** Testing crc32() : with unexpected values for str argument ***\n";
91 var_dump( crc32($value) );
101 *** Testing crc32() : with unexpected values for str argument ***
136 Warning: crc32() expects parameter 1 to be string, array given in %s on line %d
141 Warning: crc32() expects parameter 1 to be string, array given in %s on line %d
[all …]
H A Dbug36306.phpt2 Bug #36306 (crc32() 64bit)
6 /* as an example how to write crc32 tests
8 display crc32 like a signed integer.
12 echo dechex(crc32("platform independent")) . "\n";
H A Dcrc32_variation4.phpt2 Test crc32() function : usage variations - heredoc strings
10 /* Prototype : string crc32(string $str)
11 * Description: Calculate the crc32 polynomial of a string
12 * Source code: ext/standard/crc32.c
17 * Testing crc32() : with different heredoc strings passed to the str argument
20 echo "*** Testing crc32() : with different heredoc strings ***\n";
85 var_dump( crc32($str) );
92 *** Testing crc32() : with different heredoc strings ***
H A Dcrc32_variation2.phpt2 Test crc32() function : usage variations - single quoted strings
10 /* Prototype : string crc32(string $str)
11 * Description: Calculate the crc32 polynomial of a string
12 * Source code: ext/standard/crc32.c
17 * Testing crc32() : with different strings in single quotes passed to the function
20 echo "*** Testing crc32() : with different strings in single quotes ***\n";
69 var_dump( crc32($str) );
76 *** Testing crc32() : with different strings in single quotes ***
H A Dcrc32_variation3.phpt2 Test crc32() function : usage variations - double quoted strings
10 /* Prototype : string crc32(string $str)
11 * Description: Calculate the crc32 polynomial of a string
12 * Source code: ext/standard/crc32.c
17 * Testing crc32() : with different strings in double quotes passed to the function
20 echo "*** Testing crc32() : with different strings in double quotes ***\n";
71 var_dump( crc32($str) );
78 *** Testing crc32() : with different strings in double quotes ***
H A Dcrc32.phpt2 crc32() function
7 printf("%u\n", crc32($i));
/PHP-7.3/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_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, $key, TRUE);
63 Warning: hash_hmac_file(): Non-cryptographic hashing algorithm: crc32 in %s on line %d
H A Dhash_file_basic1.phpt36 echo "crc32: " . hash_file('crc32', $file) . "\n";
65 crc32: 61664d33
H A Dhash_init_error.phpt18 var_dump(hash_init('crc32', HASH_HMAC));
36 Warning: hash_init(): HMAC requested with a non-cryptographic hashing algorithm: crc32 in %s on lin…
H A Dhash_hmac_error.phpt30 var_dump(hash_hmac('crc32', $data, $key));
60 Warning: hash_hmac(): Non-cryptographic hashing algorithm: crc32 in %s on line %d
H A Dhash_pbkdf2_error.phpt30 var_dump(hash_pbkdf2('crc32', $password, $salt, 1));
70 Warning: hash_pbkdf2(): Non-cryptographic hashing algorithm: crc32 in %s on line %d
/PHP-7.3/ext/phar/
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
/PHP-7.3/ext/phar/tests/zip/files/
H A Dcorrupt_zipmaker.php.inc92 pack("VVVvv", $crc32, $complength, $uncomplength, strlen($filename), 0x00) .
99 pack("VVVvv", $crc32, $complength, $uncomplength, strlen($filename), 0x00) .
106 pack("VVVvv", $crc32, $complength, $uncomplength, strlen($filename), 0x00) .
110 case 'crc32' :
113 pack("VVVvv", $crc32 + 1, $complength, $uncomplength, strlen($filename), 0x00) .
120 pack("VVVvv", $crc32, $complength + 1, $uncomplength, strlen($filename), 0x00) .
141 pack("VVVvv", $crc32, $complength, $uncomplength, strlen($filename), 1) .
148 pack("VVVvv", $crc32, $complength, $uncomplength, strlen($filename), 0x00) .
155 pack("VVVvv", $crc32, $complength, $uncomplength, strlen($filename), 0x00) .
191 case 'crc32' :
[all …]
/PHP-7.3/ext/phar/tests/
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 "…
H A D010.phpt15 $manifest = pack('V', 1) . 'a' . pack('VVVVVV', 0, time(), 0, crc32(''), 0x00000000, 0);
/PHP-7.3/ext/phar/tests/files/
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-7.3/ext/phar/tests/cache_list/files/
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-7.3/ext/zip/lib/
H A Dzip_filerange_crc.c47 *crcp = crc32(0L, Z_NULL, 0); in _zip_filerange_crc()
70 *crcp = crc32(*crcp, buf, (uInt)n); in _zip_filerange_crc()
H A Dzip_string.c46 crc = (zip_uint32_t)crc32(0L, Z_NULL, 0); in _zip_string_crc32()
49 crc = (zip_uint32_t)crc32(crc, s->raw, s->length); in _zip_string_crc32()
H A Dzip_source_crc.c73 ctx->crc = (zip_uint32_t)crc32(0, NULL, 0); in zip_source_crc()
129 ctx->crc = (zip_uint32_t)crc32(ctx->crc, (const Bytef *)data+i, (uInt)nn); in crc_read()
H A Dzip_source_pkware.c119 ctx->key[0] = (zip_uint32_t)crc32(ctx->key[0] ^ 0xffffffffUL, &b, 1) ^ 0xffffffffUL; in decrypt()
122 ctx->key[2] = (zip_uint32_t)crc32(ctx->key[2] ^ 0xffffffffUL, &b, 1) ^ 0xffffffffUL; in decrypt()
/PHP-7.3/ext/zlib/
H A Dphp_zlib.def53 crc32

Completed in 32 milliseconds

12