Home
last modified time | relevance | path

Searched refs:digest_len (Results 1 – 4 of 4) sorted by relevance

/php-src/ext/hash/
H A Dhash_tiger.c168 static inline void TigerDigest(unsigned char *digest_str, unsigned int digest_len, PHP_TIGER_CTX *c… in TigerDigest() argument
172 for (i = 0; i < digest_len; ++i) { in TigerDigest()
H A Dhash.c785 size_t digest_len; in PHP_FUNCTION() local
794 digest_len = hash->ops->digest_size; in PHP_FUNCTION()
795 digest = zend_string_alloc(digest_len, 0); in PHP_FUNCTION()
817 ZSTR_VAL(digest)[digest_len] = 0; in PHP_FUNCTION()
826 zend_string *hex_digest = zend_string_safe_alloc(digest_len, 2, 0, 0); in PHP_FUNCTION()
828 php_hash_bin2hex(ZSTR_VAL(hex_digest), (unsigned char *) ZSTR_VAL(digest), digest_len); in PHP_FUNCTION()
829 ZSTR_VAL(hex_digest)[2 * digest_len] = 0; in PHP_FUNCTION()
/php-src/ext/phar/
H A Dutil.c1413 static int phar_hex_str(const char *digest, size_t digest_len, char **signature) /* {{{ */ in phar_hex_str() argument
1418 *signature = (char*)safe_pemalloc(digest_len, 2, 1, PHAR_G(persist)); in phar_hex_str()
1420 for (; len < digest_len; ++len) { in phar_hex_str()
H A Dphar.c3095 size_t digest_len; in phar_flush_ex() local
3097 if (FAILURE == phar_create_signature(phar, newfile, &digest, &digest_len, error)) { in phar_flush_ex()
3113 php_stream_write(newfile, digest, digest_len); in phar_flush_ex()
3118 phar_set_32(sig_buf, digest_len); in phar_flush_ex()

Completed in 20 milliseconds