Lines Matching refs:options
43 static inline int get_options(zend_array *options, size_t *memlimit, size_t *opslimit) { in get_options() argument
48 if (!options) { in get_options()
51 if ((opt = zend_hash_str_find(options, "memory_cost", strlen("memory_cost")))) { in get_options()
60 if ((opt = zend_hash_str_find(options, "time_cost", strlen("time_cost")))) { in get_options()
67 …if ((opt = zend_hash_str_find(options, "threads", strlen("threads"))) && (zval_get_long(opt) != 1)… in get_options()
74 static zend_string *php_sodium_argon2_hash(const zend_string *password, zend_array *options, int al… in php_sodium_argon2_hash() argument
83 if (get_options(options, &memlimit, &opslimit) == FAILURE) { in php_sodium_argon2_hash()
107 static zend_bool php_sodium_argon2_needs_rehash(const zend_string *hash, zend_array *options) { in php_sodium_argon2_needs_rehash() argument
110 if (get_options(options, &memlimit, &opslimit) == FAILURE) { in php_sodium_argon2_needs_rehash()
147 static zend_string *php_sodium_argon2i_hash(const zend_string *password, zend_array *options) { in php_sodium_argon2i_hash() argument
148 return php_sodium_argon2_hash(password, options, crypto_pwhash_ALG_ARGON2I13); in php_sodium_argon2i_hash()
162 static zend_string *php_sodium_argon2id_hash(const zend_string *password, zend_array *options) { in php_sodium_argon2id_hash() argument
163 return php_sodium_argon2_hash(password, options, crypto_pwhash_ALG_ARGON2ID13); in php_sodium_argon2id_hash()