Lines Matching refs:memory_cost
238 zend_long *v, zend_long *memory_cost, in extract_argon2_parameters() argument
254 v, memory_cost, time_cost, threads); in extract_argon2_parameters()
262 zend_long memory_cost = PHP_PASSWORD_ARGON2_MEMORY_COST; in php_password_argon2_get_info() local
266 extract_argon2_parameters(hash, &v, &memory_cost, &time_cost, &threads); in php_password_argon2_get_info()
268 add_assoc_long(return_value, "memory_cost", memory_cost); in php_password_argon2_get_info()
277 zend_long new_memory_cost = PHP_PASSWORD_ARGON2_MEMORY_COST, memory_cost = 0; in php_password_argon2_needs_rehash() local
294 extract_argon2_parameters(hash, &v, &memory_cost, &time_cost, &threads); in php_password_argon2_needs_rehash()
297 (new_memory_cost != memory_cost) || in php_password_argon2_needs_rehash()
305 size_t memory_cost = PHP_PASSWORD_ARGON2_MEMORY_COST; in php_password_argon2_hash() local
311 memory_cost = zval_get_long(option_buffer); in php_password_argon2_hash()
314 if (memory_cost > ARGON2_MAX_MEMORY || memory_cost < ARGON2_MIN_MEMORY) { in php_password_argon2_hash()
344 memory_cost, in php_password_argon2_hash()
354 memory_cost, in php_password_argon2_hash()