Lines Matching refs:options

106 …c zend_string* php_password_get_salt(zval *unused_, size_t required_salt_len, HashTable *options) {  in php_password_get_salt()  argument
107 if (options && zend_hash_str_exists(options, "salt", sizeof("salt") - 1)) { in php_password_get_salt()
136 static bool php_password_bcrypt_needs_rehash(const zend_string *hash, zend_array *options) { in php_password_bcrypt_needs_rehash() argument
147 if (options && (znew_cost = zend_hash_str_find(options, "cost", sizeof("cost")-1)) != NULL) { in php_password_bcrypt_needs_rehash()
180 static zend_string* php_password_bcrypt_hash(const zend_string *password, zend_array *options) { in php_password_bcrypt_hash() argument
192 if (options && (zcost = zend_hash_str_find(options, "cost", sizeof("cost")-1)) != NULL) { in php_password_bcrypt_hash()
202 if (!(salt = php_password_get_salt(NULL, Z_UL(22), options))) { in php_password_bcrypt_hash()
280 static bool php_password_argon2_needs_rehash(const zend_string *hash, zend_array *options) { in php_password_argon2_needs_rehash() argument
287 …if (options && (option_buffer = zend_hash_str_find(options, "memory_cost", sizeof("memory_cost")-1… in php_password_argon2_needs_rehash()
291 …if (options && (option_buffer = zend_hash_str_find(options, "time_cost", sizeof("time_cost")-1)) !… in php_password_argon2_needs_rehash()
295 …if (options && (option_buffer = zend_hash_str_find(options, "threads", sizeof("threads")-1)) != NU… in php_password_argon2_needs_rehash()
306 static zend_string *php_password_argon2_hash(const zend_string *password, zend_array *options, argo… in php_password_argon2_hash() argument
315 …if (options && (option_buffer = zend_hash_str_find(options, "memory_cost", sizeof("memory_cost")-1… in php_password_argon2_hash()
324 …if (options && (option_buffer = zend_hash_str_find(options, "time_cost", sizeof("time_cost")-1)) !… in php_password_argon2_hash()
333 …if (options && (option_buffer = zend_hash_str_find(options, "threads", sizeof("threads")-1)) != NU… in php_password_argon2_hash()
342 if (!(salt = php_password_get_salt(NULL, Z_UL(16), options))) { in php_password_argon2_hash()
392 static zend_string *php_password_argon2i_hash(const zend_string *password, zend_array *options) { in php_password_argon2i_hash() argument
393 return php_password_argon2_hash(password, options, Argon2_i); in php_password_argon2i_hash()
411 static zend_string *php_password_argon2id_hash(const zend_string *password, zend_array *options) { in php_password_argon2id_hash() argument
412 return php_password_argon2_hash(password, options, Argon2_id); in php_password_argon2id_hash()
563 zval options; in PHP_FUNCTION() local
570 array_init(&options); in PHP_FUNCTION()
580 add_assoc_zval(return_value, "options", &options); in PHP_FUNCTION()
589 algo->get_info(&options, hash); in PHP_FUNCTION()
591 add_assoc_zval(return_value, "options", &options); in PHP_FUNCTION()
603 zend_array *options = 0; in PHP_FUNCTION() local
609 Z_PARAM_ARRAY_HT(options) in PHP_FUNCTION()
624 RETURN_BOOL(old_algo->needs_rehash(hash, options)); in PHP_FUNCTION()
652 zend_array *options = NULL; in PHP_FUNCTION() local
658 Z_PARAM_ARRAY_HT(options) in PHP_FUNCTION()
667 digest = algo->hash(password, options); in PHP_FUNCTION()