Lines Matching refs:threads

49 …result get_options(zend_array *options, uint32_t *memlimit, uint32_t *iterlimit, uint32_t *threads)  in get_options()  argument
55 *threads = PHP_OPENSSL_PWHASH_THREADS; in get_options()
83 *threads = sthreads; in get_options()
90 uint32_t version, uint32_t memlimit, uint32_t iterlimit, uint32_t threads, in php_openssl_argon2_compute_hash() argument
102 if (OSSL_set_max_threads(NULL, threads) != 1) { in php_openssl_argon2_compute_hash()
106 *p++ = OSSL_PARAM_construct_uint32(OSSL_KDF_PARAM_THREADS, &threads); in php_openssl_argon2_compute_hash()
107 *p++ = OSSL_PARAM_construct_uint32(OSSL_KDF_PARAM_ARGON2_LANES, &threads); in php_openssl_argon2_compute_hash()
137 uint32_t iterlimit, memlimit, threads, version = PHP_OPENSSL_ARGON_VERSION; in php_openssl_argon2_hash() local
145 if (get_options(options, &memlimit, &iterlimit, &threads) == FAILURE) { in php_openssl_argon2_hash()
152 if (!php_openssl_argon2_compute_hash(algo, version, memlimit, iterlimit, threads, in php_openssl_argon2_hash()
163 algo, version, memlimit, iterlimit, threads, ZSTR_VAL(salt64), ZSTR_VAL(hash64)); in php_openssl_argon2_hash()
173 uint32_t *threads, zend_string **salt, zend_string **hash) in php_openssl_argon2_extract() argument
190 version, memlimit, iterlimit, threads) != 4) { in php_openssl_argon2_extract()
221 uint32_t version, iterlimit, memlimit, threads; in php_openssl_argon2_verify() local
228 …if (FAILURE == php_openssl_argon2_extract(digest, &version, &memlimit, &iterlimit, &threads, &salt… in php_openssl_argon2_verify()
233 if (php_openssl_argon2_compute_hash(algo, version, memlimit, iterlimit, threads, in php_openssl_argon2_verify()
258 uint32_t version, iterlimit, memlimit, threads; in php_openssl_argon2_needs_rehash() local
264 …if (FAILURE == php_openssl_argon2_extract(hash, &version, &memlimit, &iterlimit, &threads, NULL, N… in php_openssl_argon2_needs_rehash()
272 (threads != new_threads); in php_openssl_argon2_needs_rehash()
277 uint32_t v, threads; in php_openssl_argon2_get_info() local
281 …if (FAILURE == php_openssl_argon2_extract(hash, &v, &memory_cost, &time_cost, &threads, NULL, NULL… in php_openssl_argon2_get_info()
286 add_assoc_long(return_value, "threads", threads); in php_openssl_argon2_get_info()