Lines Matching refs:memory_cost
243 zend_long *v, zend_long *memory_cost, in extract_argon2_parameters() argument
259 v, memory_cost, time_cost, threads); in extract_argon2_parameters()
267 zend_long memory_cost = PHP_PASSWORD_ARGON2_MEMORY_COST; in php_password_argon2_get_info() local
271 extract_argon2_parameters(hash, &v, &memory_cost, &time_cost, &threads); in php_password_argon2_get_info()
273 add_assoc_long(return_value, "memory_cost", memory_cost); in php_password_argon2_get_info()
282 zend_long new_memory_cost = PHP_PASSWORD_ARGON2_MEMORY_COST, memory_cost = 0; in php_password_argon2_needs_rehash() local
299 extract_argon2_parameters(hash, &v, &memory_cost, &time_cost, &threads); in php_password_argon2_needs_rehash()
302 (new_memory_cost != memory_cost) || in php_password_argon2_needs_rehash()
310 size_t memory_cost = PHP_PASSWORD_ARGON2_MEMORY_COST; in php_password_argon2_hash() local
316 memory_cost = zval_get_long(option_buffer); in php_password_argon2_hash()
319 if (memory_cost > ARGON2_MAX_MEMORY || memory_cost < ARGON2_MIN_MEMORY) { in php_password_argon2_hash()
349 memory_cost, in php_password_argon2_hash()
359 memory_cost, in php_password_argon2_hash()