Lines Matching refs:digest_size
171 digest = emalloc(ops->digest_size + 1); in php_hash_do_hash()
176 digest[ops->digest_size] = 0; in php_hash_do_hash()
177 RETURN_STRINGL(digest, ops->digest_size, 0); in php_hash_do_hash()
179 char *hex_digest = safe_emalloc(ops->digest_size, 2, 1); in php_hash_do_hash()
181 php_hash_bin2hex(hex_digest, (unsigned char *) digest, ops->digest_size); in php_hash_do_hash()
182 hex_digest[2 * ops->digest_size] = 0; in php_hash_do_hash()
184 RETURN_STRINGL(hex_digest, 2 * ops->digest_size, 0); in php_hash_do_hash()
276 digest = emalloc(ops->digest_size + 1); in php_hash_do_hash_hmac()
296 …ned char *) digest, ops, context, (unsigned char *) K, (unsigned char *) digest, ops->digest_size); in php_hash_do_hash_hmac()
304 digest[ops->digest_size] = 0; in php_hash_do_hash_hmac()
305 RETURN_STRINGL(digest, ops->digest_size, 0); in php_hash_do_hash_hmac()
307 char *hex_digest = safe_emalloc(ops->digest_size, 2, 1); in php_hash_do_hash_hmac()
309 php_hash_bin2hex(hex_digest, (unsigned char *) digest, ops->digest_size); in php_hash_do_hash_hmac()
310 hex_digest[2 * ops->digest_size] = 0; in php_hash_do_hash_hmac()
312 RETURN_STRINGL(hex_digest, 2 * ops->digest_size, 0); in php_hash_do_hash_hmac()
509 digest_len = hash->ops->digest_size; in PHP_FUNCTION()
523 hash->ops->hash_update(hash->context, (unsigned char *) digest, hash->ops->digest_size); in PHP_FUNCTION()
655 digest = emalloc(ops->digest_size); in PHP_FUNCTION()
656 temp = emalloc(ops->digest_size); in PHP_FUNCTION()
665 length = ops->digest_size; in PHP_FUNCTION()
675 loops = (long) ceil((float) digest_length / (float) ops->digest_size); in PHP_FUNCTION()
677 result = safe_emalloc(loops, ops->digest_size, 0); in PHP_FUNCTION()
692 php_hash_hmac_round(digest, ops, context, K2, digest, ops->digest_size); in PHP_FUNCTION()
696 memcpy(temp, digest, ops->digest_size); in PHP_FUNCTION()
704 php_hash_hmac_round(digest, ops, context, K1, digest, ops->digest_size); in PHP_FUNCTION()
705 php_hash_hmac_round(digest, ops, context, K2, digest, ops->digest_size); in PHP_FUNCTION()
708 php_hash_string_xor(temp, temp, digest, ops->digest_size); in PHP_FUNCTION()
711 memcpy(result + ((i - 1) * ops->digest_size), temp, ops->digest_size); in PHP_FUNCTION()
784 unsigned char *dummy = emalloc(hash->ops->digest_size); in php_hash_dtor()
921 RETVAL_LONG(ops->digest_size); in PHP_FUNCTION()
968 int block_size = ops->digest_size; in PHP_FUNCTION()
976 digest = emalloc(ops->digest_size + 1); in PHP_FUNCTION()