Lines Matching refs:options

105 …c zend_string* php_password_get_salt(zval *unused_, size_t required_salt_len, HashTable *options) {  in php_password_get_salt()  argument
106 if (options && zend_hash_str_exists(options, "salt", sizeof("salt") - 1)) { in php_password_get_salt()
135 static bool php_password_bcrypt_needs_rehash(const zend_string *hash, zend_array *options) { in php_password_bcrypt_needs_rehash() argument
146 if (options && (znew_cost = zend_hash_str_find(options, "cost", sizeof("cost")-1)) != NULL) { in php_password_bcrypt_needs_rehash()
176 static zend_string* php_password_bcrypt_hash(const zend_string *password, zend_array *options) { in php_password_bcrypt_hash() argument
188 if (options && (zcost = zend_hash_str_find(options, "cost", sizeof("cost")-1)) != NULL) { in php_password_bcrypt_hash()
198 if (!(salt = php_password_get_salt(NULL, Z_UL(22), options))) { in php_password_bcrypt_hash()
276 static bool php_password_argon2_needs_rehash(const zend_string *hash, zend_array *options) { in php_password_argon2_needs_rehash() argument
283 …if (options && (option_buffer = zend_hash_str_find(options, "memory_cost", sizeof("memory_cost")-1… in php_password_argon2_needs_rehash()
287 …if (options && (option_buffer = zend_hash_str_find(options, "time_cost", sizeof("time_cost")-1)) !… in php_password_argon2_needs_rehash()
291 …if (options && (option_buffer = zend_hash_str_find(options, "threads", sizeof("threads")-1)) != NU… in php_password_argon2_needs_rehash()
302 static zend_string *php_password_argon2_hash(const zend_string *password, zend_array *options, argo… in php_password_argon2_hash() argument
311 …if (options && (option_buffer = zend_hash_str_find(options, "memory_cost", sizeof("memory_cost")-1… in php_password_argon2_hash()
320 …if (options && (option_buffer = zend_hash_str_find(options, "time_cost", sizeof("time_cost")-1)) !… in php_password_argon2_hash()
329 …if (options && (option_buffer = zend_hash_str_find(options, "threads", sizeof("threads")-1)) != NU… in php_password_argon2_hash()
338 if (!(salt = php_password_get_salt(NULL, Z_UL(16), options))) { in php_password_argon2_hash()
388 static zend_string *php_password_argon2i_hash(const zend_string *password, zend_array *options) { in php_password_argon2i_hash() argument
389 return php_password_argon2_hash(password, options, Argon2_i); in php_password_argon2i_hash()
407 static zend_string *php_password_argon2id_hash(const zend_string *password, zend_array *options) { in php_password_argon2id_hash() argument
408 return php_password_argon2_hash(password, options, Argon2_id); in php_password_argon2id_hash()
559 zval options; in PHP_FUNCTION() local
566 array_init(&options); in PHP_FUNCTION()
576 add_assoc_zval(return_value, "options", &options); in PHP_FUNCTION()
585 algo->get_info(&options, hash); in PHP_FUNCTION()
587 add_assoc_zval(return_value, "options", &options); in PHP_FUNCTION()
599 zend_array *options = 0; in PHP_FUNCTION() local
605 Z_PARAM_ARRAY_HT(options) in PHP_FUNCTION()
620 RETURN_BOOL(old_algo->needs_rehash(hash, options)); in PHP_FUNCTION()
648 zend_array *options = NULL; in PHP_FUNCTION() local
654 Z_PARAM_ARRAY_HT(options) in PHP_FUNCTION()
663 digest = algo->hash(password, options); in PHP_FUNCTION()