Lines Matching refs:hex_digest
169 zend_string *hex_digest = zend_string_safe_alloc(ops->digest_size, 2, 0, 0); in php_hash_do_hash() local
171 php_hash_bin2hex(ZSTR_VAL(hex_digest), (unsigned char *) ZSTR_VAL(digest), ops->digest_size); in php_hash_do_hash()
172 ZSTR_VAL(hex_digest)[2 * ops->digest_size] = 0; in php_hash_do_hash() local
174 RETURN_NEW_STR(hex_digest); in php_hash_do_hash()
304 zend_string *hex_digest = zend_string_safe_alloc(ops->digest_size, 2, 0, 0); in php_hash_do_hash_hmac() local
306 php_hash_bin2hex(ZSTR_VAL(hex_digest), (unsigned char *) ZSTR_VAL(digest), ops->digest_size); in php_hash_do_hash_hmac()
307 ZSTR_VAL(hex_digest)[2 * ops->digest_size] = 0; in php_hash_do_hash_hmac() local
309 RETURN_NEW_STR(hex_digest); in php_hash_do_hash_hmac()
558 zend_string *hex_digest = zend_string_safe_alloc(digest_len, 2, 0, 0); in PHP_FUNCTION() local
560 php_hash_bin2hex(ZSTR_VAL(hex_digest), (unsigned char *) ZSTR_VAL(digest), digest_len); in PHP_FUNCTION()
561 ZSTR_VAL(hex_digest)[2 * digest_len] = 0; in PHP_FUNCTION() local
563 RETURN_NEW_STR(hex_digest); in PHP_FUNCTION()