Searched refs:digest_len (Results 1 - 5 of 5) sorted by relevance

/PHP_5_4/ext/phar/
H A Dphar.c3186 int digest_len; local
3188 if (FAILURE == phar_create_signature(phar, newfile, &digest, &digest_len, error TSRMLS_CC)) {
3204 php_stream_write(newfile, digest, digest_len);
3207 phar_set_32(sig_buf, digest_len);
H A Dutil.c1642 static int phar_hex_str(const char *digest, size_t digest_len, char **signature TSRMLS_DC) /* {{{ */ argument
1647 *signature = (char*)safe_pemalloc(digest_len, 2, 1, PHAR_G(persist));
1649 for (; len < digest_len; ++len) {
/PHP_5_4/ext/hash/
H A Dhash.c483 int digest_len; local
491 digest_len = hash->ops->digest_size;
492 digest = emalloc(digest_len + 1);
513 digest[digest_len] = 0;
526 RETURN_STRINGL(digest, digest_len, 0);
528 char *hex_digest = safe_emalloc(digest_len,2,1);
530 php_hash_bin2hex(hex_digest, (unsigned char *) digest, digest_len);
531 hex_digest[2 * digest_len] = 0;
533 RETURN_STRINGL(hex_digest, 2 * digest_len, 0);
H A Dhash_tiger.c172 static inline void TigerDigest(unsigned char *digest_str, unsigned int digest_len, PHP_TIGER_CTX *context) argument
176 for (i = 0; i < digest_len; ++i) {
/PHP_5_4/ext/session/
H A Dsession.c287 int digest_len; local
312 digest_len = 16;
317 digest_len = 20;
330 digest_len = PS(hash_ops)->digest_size;
394 digest = emalloc(digest_len + 1);
417 outid = emalloc((size_t)((digest_len + 2) * ((8.0f / PS(hash_bits_per_character)) + 0.5)));
418 j = (int) (bin_to_readable((char *)digest, digest_len, outid, (char)PS(hash_bits_per_character)) - outid);

Completed in 18 milliseconds