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

/PHP_TRUNK/ext/phar/
H A Dutil.c1374 static int phar_hex_str(const char *digest, size_t digest_len, char **signature TSRMLS_DC) /* {{{ */ argument
1379 *signature = (char*)safe_pemalloc(digest_len, 2, 1, PHAR_G(persist));
1381 for (; len < digest_len; ++len) {
H A Dphar.c3111 int digest_len; local
3113 if (FAILURE == phar_create_signature(phar, newfile, &digest, &digest_len, error TSRMLS_CC)) {
3129 php_stream_write(newfile, digest, digest_len);
3132 phar_set_32(sig_buf, digest_len);
/PHP_TRUNK/ext/hash/
H A Dhash.c492 int digest_len; local
500 digest_len = hash->ops->digest_size;
501 digest = zend_string_alloc(digest_len, 0);
522 digest->val[digest_len] = 0;
538 zend_string *hex_digest = zend_string_safe_alloc(digest_len, 2, 0, 0);
540 php_hash_bin2hex(hex_digest->val, (unsigned char *) digest->val, digest_len);
541 hex_digest->val[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_TRUNK/ext/session/
H A Dsession.c289 int digest_len; local
314 digest_len = 16;
319 digest_len = 20;
332 digest_len = PS(hash_ops)->digest_size;
396 digest = emalloc(digest_len + 1);
419 outid = zend_string_alloc((digest_len + 2) * ((8.0f / PS(hash_bits_per_character) + 0.5)), 0);
420 outid->len = (int)(bin_to_readable((char *)digest, digest_len, outid->val, (char)PS(hash_bits_per_character)) - (char *)&outid->val);

Completed in 21 milliseconds