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

/PHP_TRUNK/ext/hash/
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) {
H A Dhash.c504 int digest_len; local
514 digest_len = hash->ops->digest_size;
515 digest = zend_string_alloc(digest_len, 0);
536 ZSTR_VAL(digest)[digest_len] = 0;
544 zend_string *hex_digest = zend_string_safe_alloc(digest_len, 2, 0, 0);
546 php_hash_bin2hex(ZSTR_VAL(hex_digest), (unsigned char *) ZSTR_VAL(digest), digest_len); local
547 ZSTR_VAL(hex_digest)[2 * digest_len] = 0;
/PHP_TRUNK/ext/phar/
H A Dutil.c1373 static int phar_hex_str(const char *digest, size_t digest_len, char **signature) /* {{{ */ argument
1378 *signature = (char*)safe_pemalloc(digest_len, 2, 1, PHAR_G(persist));
1380 for (; len < digest_len; ++len) {
H A Dphar.c3108 int digest_len; local
3110 if (FAILURE == phar_create_signature(phar, newfile, &digest, &digest_len, error)) {
3126 php_stream_write(newfile, digest, digest_len);
3129 phar_set_32(sig_buf, digest_len);
/PHP_TRUNK/ext/session/
H A Dsession.c308 size_t digest_len; local
333 digest_len = 16;
338 digest_len = 20;
351 digest_len = PS(hash_ops)->digest_size;
415 digest = emalloc(digest_len + 1);
438 outid = zend_string_alloc((digest_len + 2) * ((8.0f / PS(hash_bits_per_character) + 0.5)), 0);
439 ZSTR_LEN(outid) = (size_t)(bin_to_readable((char *)digest, digest_len, ZSTR_VAL(outid), (char)PS(hash_bits_per_character)) - (char *)&ZSTR_VAL(outid));

Completed in 17 milliseconds