Home
last modified time | relevance | path

Searched refs:checksum (Results 1 – 25 of 32) sorted by relevance

12

/php-src/ext/phar/tests/tar/
H A Dbadchecksum.phpt2 Phar: tar with bad checksum
13 $a->addFile('hithere', 'contents', null, 'checksum');
28 phar error: "%sbadchecksum.tar" is a corrupted tar file (checksum mismatch of file "hithere")
/php-src/ext/phar/tests/tar/files/
H A Dcorrupt_tarmaker.php.inc112 $checksum = 256; // 8 * ord(' ');
113 $checksum += array_reduce($checkheader, '_pear2tarchecksum');
115 if ($corrupt === 'checksum') $checksum++;
116 $checksum = pack('a8', sprintf('%6s ', decoct($checksum)));
118 fwrite($this->tmp, $block . $checksum . $blockend, 512);
H A Dtarmaker.php.inc105 $checksum = 256; // 8 * ord(' ');
106 $checksum += array_reduce($checkheader, '_pear2tarchecksum');
108 $checksum = pack('a8', sprintf('%6s ', decoct($checksum)));
110 fwrite($this->tmp, (binary)$block . $checksum . $blockend, 512);
H A Dmake.dangerous.tar.php.inc106 $checksum = 256; // 8 * ord(' ');
107 $checksum += array_reduce($checkheader, '_pear2tarchecksum');
109 $checksum = pack('a8', sprintf('%6s ', decoct($checksum)));
111 fwrite($this->tmp, (binary)$block . $checksum . $blockend, 512);
/php-src/ext/phar/
H A Dtar.h48 char checksum[8]; /* checksum for header */ member
72 char checksum[8]; /* checksum for header */ member
H A Dtar.c106 uint32_t checksum = phar_tar_number(header->checksum, sizeof(header->checksum)); in phar_is_tar() local
108 char save[sizeof(header->checksum)], *bname; in phar_is_tar()
115 memcpy(save, header->checksum, sizeof(header->checksum)); in phar_is_tar()
116 memset(header->checksum, ' ', sizeof(header->checksum)); in phar_is_tar()
117 is_tar = (checksum == phar_tar_checksum(buf, 512)); in phar_is_tar()
118 memcpy(header->checksum, save, sizeof(header->checksum)); in phar_is_tar()
258 sum1 = phar_tar_number(hdr->checksum, sizeof(hdr->checksum)); in phar_parse_tarfile()
262 memset(hdr->checksum, ' ', sizeof(hdr->checksum)); in phar_parse_tarfile()
350 sum1 = phar_tar_number(hdr->checksum, sizeof(hdr->checksum)); in phar_parse_tarfile()
791 memcpy(header.checksum, " ", sizeof(" ")-1); in phar_tar_writeheaders_int()
[all …]
/php-src/ext/dba/tests/
H A Ddba_cdb_make.phpt17 // print md5 checksum of test.cdb which is generated by cdb_make program
29 // write md5 checksum of generated database file
H A Dbug38698.phpt26 // write md5 checksum of generated database file
/php-src/ext/opcache/
H A Dzend_accelerator_util_funcs.c515 unsigned int zend_adler32(unsigned int checksum, unsigned char *buf, uint32_t len) in zend_adler32() argument
517 unsigned int s1 = checksum & 0xffff; in zend_adler32()
518 unsigned int s2 = (checksum >> 16) & 0xffff; in zend_adler32()
556 unsigned int checksum = ADLER32_INIT; in zend_accel_script_checksum() local
559 checksum = zend_adler32(checksum, mem, (unsigned char*)persistent_script - mem); in zend_accel_script_checksum()
564 zend_adler32(checksum, mem, persistent_script_check_block_size); in zend_accel_script_checksum()
569 checksum = zend_adler32(checksum, mem, size); in zend_accel_script_checksum()
571 return checksum; in zend_accel_script_checksum()
H A Dzend_accelerator_util_funcs.h43 unsigned int zend_adler32(unsigned int checksum, unsigned char *buf, uint32_t len);
H A Dzend_file_cache.c202 uint32_t checksum; member
1156 info.checksum = zend_adler32(ADLER32_INIT, buf, script->size);
1157 info.checksum = zend_adler32(info.checksum, (unsigned char*)ZSTR_VAL(s), info.str_size);
1906 …tual_checksum = zend_adler32(ADLER32_INIT, mem, info.mem_size + info.str_size)) != info.checksum) {
1907 …s' excepted checksum: 0x%08x actual checksum: 0x%08x\n", filename, info.checksum, actual_checksum);
/php-src/ext/sockets/tests/
H A Dsocket_icmp.phpt28 $checksum = function($header): int {
37 $header = pack('C2n3a*', $type, $code, $checksum($header), $identifier, $sequence, $data);
/php-src/ext/phar/tests/
H A Dbug75102.phpt2 Bug #75102 (`PharData` says invalid checksum for valid tar)
H A Dbug69453.phpt15 UnexpectedValueException: phar error: "%s%ebug69453.tar.phar" is a corrupted tar file (checksum mis…
H A Dphar_createdefaultstub.phpt301 die("Invalid internal .phar file (checksum error)");
595 die("Invalid internal .phar file (checksum error)");
897 die("Invalid internal .phar file (checksum error)");
H A Dphar_setdefaultstub.phpt321 die("Invalid internal .phar file (checksum error)");
616 die("Invalid internal .phar file (checksum error)");
911 die("Invalid internal .phar file (checksum error)");
/php-src/ext/hash/
H A Dphp_hash_md.h39 unsigned char checksum[16]; member
H A Dhash_md.c313 t = context->checksum[15]; in MD2_Transform()
315 t = context->checksum[i] ^= MD2_S[block[i] ^ t]; in MD2_Transform()
354 MD2_Transform(context, context->checksum); in PHP_MD2Final()
/php-src/win32/build/
H A Dmkdist.php186 $checksum = 0;
188 $checksum += ord($hdr_data[$i]);
190 $checksum += 32;
192 $checksum += ord($hdr_data[$i]);
198 if ($hdr['checksum'] != $checksum) {
/php-src/ext/zlib/
H A Dphp_zlib.def52 ; checksum functions
/php-src/ext/standard/tests/filters/
H A Dgh13264.phpt15 // Mess up the checksum
/php-src/ext/phar/tests/files/
H A Dopenssl.phar266 die("Invalid internal .phar file (checksum error)");
H A Dopenssl256.phar266 die("Invalid internal .phar file (checksum error)");
H A Dopenssl512.phar266 die("Invalid internal .phar file (checksum error)");
/php-src/ext/phar/tests/cache_list/files/
H A Dnophar.phar266 die("Invalid internal .phar file (checksum error)");

Completed in 38 milliseconds

12