Lines Matching refs:options
41 static inline int get_options(zend_array *options, size_t *memlimit, size_t *opslimit) { in get_options() argument
46 if (!options) { in get_options()
49 if ((opt = zend_hash_str_find(options, "memory_cost", strlen("memory_cost")))) { in get_options()
58 if ((opt = zend_hash_str_find(options, "time_cost", strlen("time_cost")))) { in get_options()
65 …if ((opt = zend_hash_str_find(options, "threads", strlen("threads"))) && (zval_get_long(opt) != 1)… in get_options()
72 static zend_string *php_sodium_argon2_hash(const zend_string *password, zend_array *options, int al… in php_sodium_argon2_hash() argument
81 if (get_options(options, &memlimit, &opslimit) == FAILURE) { in php_sodium_argon2_hash()
105 static zend_bool php_sodium_argon2_needs_rehash(const zend_string *hash, zend_array *options) { in php_sodium_argon2_needs_rehash() argument
108 if (get_options(options, &memlimit, &opslimit) == FAILURE) { in php_sodium_argon2_needs_rehash()
145 static zend_string *php_sodium_argon2i_hash(const zend_string *password, zend_array *options) { in php_sodium_argon2i_hash() argument
146 return php_sodium_argon2_hash(password, options, crypto_pwhash_ALG_ARGON2I13); in php_sodium_argon2i_hash()
160 static zend_string *php_sodium_argon2id_hash(const zend_string *password, zend_array *options) { in php_sodium_argon2id_hash() argument
161 return php_sodium_argon2_hash(password, options, crypto_pwhash_ALG_ARGON2ID13); in php_sodium_argon2id_hash()