Lines Matching refs:hex_digest
169 char *hex_digest = safe_emalloc(ops->digest_size, 2, 1); in php_hash_do_hash() local
171 php_hash_bin2hex(hex_digest, (unsigned char *) digest, ops->digest_size); in php_hash_do_hash()
172 hex_digest[2 * ops->digest_size] = 0; in php_hash_do_hash()
174 RETURN_STRINGL(hex_digest, 2 * ops->digest_size, 0); in php_hash_do_hash()
281 char *hex_digest = safe_emalloc(ops->digest_size, 2, 1); in php_hash_do_hash_hmac() local
283 php_hash_bin2hex(hex_digest, (unsigned char *) digest, ops->digest_size); in php_hash_do_hash_hmac()
284 hex_digest[2 * ops->digest_size] = 0; in php_hash_do_hash_hmac()
286 RETURN_STRINGL(hex_digest, 2 * ops->digest_size, 0); in php_hash_do_hash_hmac()
520 char *hex_digest = safe_emalloc(digest_len,2,1); in PHP_FUNCTION() local
522 php_hash_bin2hex(hex_digest, (unsigned char *) digest, digest_len); in PHP_FUNCTION()
523 hex_digest[2 * digest_len] = 0; in PHP_FUNCTION()
525 RETURN_STRINGL(hex_digest, 2 * digest_len, 0); in PHP_FUNCTION()