Searched refs:opslimit (Results 1 – 4 of 4) sorted by relevance
/PHP-8.1/ext/sodium/ |
H A D | sodium_pwhash.c | 41 static inline int get_options(zend_array *options, size_t *memlimit, size_t *opslimit) { in get_options() argument 44 *opslimit = PHP_SODIUM_PWHASH_OPSLIMIT; in get_options() 59 *opslimit = zval_get_long(opt); in get_options() 60 if ((*opslimit < crypto_pwhash_OPSLIMIT_MIN) || (*opslimit > crypto_pwhash_OPSLIMIT_MAX)) { in get_options() 73 size_t opslimit, memlimit; in php_sodium_argon2_hash() local 81 if (get_options(options, &memlimit, &opslimit) == FAILURE) { in php_sodium_argon2_hash() 86 …if (crypto_pwhash_str_alg(ZSTR_VAL(ret), ZSTR_VAL(password), ZSTR_LEN(password), opslimit, memlimi… in php_sodium_argon2_hash() 106 size_t opslimit, memlimit; in php_sodium_argon2_needs_rehash() local 108 if (get_options(options, &memlimit, &opslimit) == FAILURE) { in php_sodium_argon2_needs_rehash() 111 return crypto_pwhash_str_needs_rehash(ZSTR_VAL(hash), opslimit, memlimit); in php_sodium_argon2_needs_rehash()
|
H A D | libsodium.stub.php | 119 function sodium_crypto_pwhash(int $length, string $password, string $salt, int $opslimit, int $meml… argument 121 function sodium_crypto_pwhash_str(string $password, int $opslimit, int $memlimit): string {} argument 127 function sodium_crypto_pwhash_str_needs_rehash(string $password, int $opslimit, int $memlimit): boo… argument 131 …_scryptsalsa208sha256(int $length, string $password, string $salt, int $opslimit, int $memlimit): … argument 133 function sodium_crypto_pwhash_scryptsalsa208sha256_str(string $password, int $opslimit, int $memlim… argument
|
H A D | libsodium.c | 1591 zend_long opslimit; in PHP_FUNCTION() local 1618 if (opslimit <= 0) { in PHP_FUNCTION() 1679 zend_long opslimit; in PHP_FUNCTION() local 1685 &opslimit, &memlimit) == FAILURE) { in PHP_FUNCTION() 1689 if (opslimit <= 0) { in PHP_FUNCTION() 1731 zend_long opslimit; in PHP_FUNCTION() local 1781 zend_long opslimit; in PHP_FUNCTION() local 1789 &opslimit, &memlimit) == FAILURE) { in PHP_FUNCTION() 1797 if (opslimit <= 0) { in PHP_FUNCTION() 1837 zend_long opslimit; in PHP_FUNCTION() local [all …]
|
H A D | libsodium_arginfo.h | 250 ZEND_ARG_TYPE_INFO(0, opslimit, IS_LONG, 0) 259 ZEND_ARG_TYPE_INFO(0, opslimit, IS_LONG, 0) 274 ZEND_ARG_TYPE_INFO(0, opslimit, IS_LONG, 0) 284 ZEND_ARG_TYPE_INFO(0, opslimit, IS_LONG, 0) 292 ZEND_ARG_TYPE_INFO(0, opslimit, IS_LONG, 0)
|
Completed in 23 milliseconds