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

/PHP_5_6/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.c496 int digest_len; local
504 digest_len = hash->ops->digest_size;
505 digest = emalloc(digest_len + 1);
526 digest[digest_len] = 0;
539 RETURN_STRINGL(digest, digest_len, 0);
541 char *hex_digest = safe_emalloc(digest_len,2,1);
543 php_hash_bin2hex(hex_digest, (unsigned char *) digest, digest_len);
544 hex_digest[2 * digest_len] = 0;
546 RETURN_STRINGL(hex_digest, 2 * digest_len, 0);
/PHP_5_6/ext/phar/
H A Dphar.c3160 int digest_len; local
3162 if (FAILURE == phar_create_signature(phar, newfile, &digest, &digest_len, error TSRMLS_CC)) {
3178 php_stream_write(newfile, digest, digest_len);
3181 phar_set_32(sig_buf, digest_len);
H A Dutil.c1385 static int phar_hex_str(const char *digest, size_t digest_len, char **signature TSRMLS_DC) /* {{{ */ argument
1390 *signature = (char*)safe_pemalloc(digest_len, 2, 1, PHAR_G(persist));
1392 for (; len < digest_len; ++len) {
/PHP_5_6/ext/session/
H A Dsession.c292 int digest_len; local
317 digest_len = 16;
322 digest_len = 20;
335 digest_len = PS(hash_ops)->digest_size;
399 digest = emalloc(digest_len + 1);
422 outid = emalloc((size_t)((digest_len + 2) * ((8.0f / PS(hash_bits_per_character)) + 0.5)));
423 j = (int) (bin_to_readable((char *)digest, digest_len, outid, (char)PS(hash_bits_per_character)) - outid);

Completed in 18 milliseconds