Searched refs:opslimit (Results 1 – 2 of 2) sorted by relevance
/PHP-7.4/ext/sodium/ |
H A D | sodium_pwhash.c | 43 static inline int get_options(zend_array *options, size_t *memlimit, size_t *opslimit) { in get_options() argument 46 *opslimit = PHP_SODIUM_PWHASH_OPSLIMIT; in get_options() 61 *opslimit = zval_get_long(opt); in get_options() 62 if ((*opslimit < crypto_pwhash_OPSLIMIT_MIN) || (*opslimit > crypto_pwhash_OPSLIMIT_MAX)) { in get_options() 75 size_t opslimit, memlimit; in php_sodium_argon2_hash() local 83 if (get_options(options, &memlimit, &opslimit) == FAILURE) { in php_sodium_argon2_hash() 88 …if (crypto_pwhash_str_alg(ZSTR_VAL(ret), ZSTR_VAL(password), ZSTR_LEN(password), opslimit, memlimi… in php_sodium_argon2_hash() 108 size_t opslimit, memlimit; in php_sodium_argon2_needs_rehash() local 110 if (get_options(options, &memlimit, &opslimit) == FAILURE) { in php_sodium_argon2_needs_rehash() 113 return crypto_pwhash_str_needs_rehash(ZSTR_VAL(hash), opslimit, memlimit); in php_sodium_argon2_needs_rehash()
|
H A D | libsodium.c | 139 ZEND_ARG_INFO(0, opslimit) 147 ZEND_ARG_INFO(0, opslimit) 1829 zend_long opslimit; in PHP_FUNCTION() local 1852 if (opslimit <= 0) { in PHP_FUNCTION() 1915 zend_long opslimit; in PHP_FUNCTION() local 1925 if (opslimit <= 0) { in PHP_FUNCTION() 1969 zend_long opslimit; in PHP_FUNCTION() local 2021 zend_long opslimit; in PHP_FUNCTION() local 2037 if (opslimit <= 0) { in PHP_FUNCTION() 2081 zend_long opslimit; in PHP_FUNCTION() local [all …]
|
Completed in 14 milliseconds