Searched refs:memlimit (Results 1 – 4 of 4) sorted by relevance
/PHP-8.0/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 45 *memlimit = PHP_SODIUM_PWHASH_MEMLIMIT << 10; in get_options() 56 *memlimit = smemlimit << 10; 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 …o_pwhash_str_alg(ZSTR_VAL(ret), ZSTR_VAL(password), ZSTR_LEN(password), opslimit, memlimit, alg)) { 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 | 88 …pwhash(int $length, string $password, string $salt, int $opslimit, int $memlimit, int $algo = SODI… argument 90 function sodium_crypto_pwhash_str(string $password, int $opslimit, int $memlimit): string {} argument 96 function sodium_crypto_pwhash_str_needs_rehash(string $password, int $opslimit, int $memlimit): boo… argument 100 …alsa208sha256(int $length, string $password, string $salt, int $opslimit, int $memlimit): string {} argument 102 …m_crypto_pwhash_scryptsalsa208sha256_str(string $password, int $opslimit, int $memlimit): string {} argument
|
H A D | libsodium.c | 1478 zend_long memlimit; in PHP_FUNCTION() local 1510 if (memlimit <= 0 || memlimit > SIZE_MAX) { in PHP_FUNCTION() 1566 zend_long memlimit; in PHP_FUNCTION() local 1573 &opslimit, &memlimit) == FAILURE) { in PHP_FUNCTION() 1581 if (memlimit <= 0 || memlimit > SIZE_MAX) { in PHP_FUNCTION() 1618 zend_long memlimit; in PHP_FUNCTION() local 1668 zend_long memlimit; in PHP_FUNCTION() local 1677 &opslimit, &memlimit) == FAILURE) { in PHP_FUNCTION() 1689 if (memlimit <= 0 || memlimit > SIZE_MAX) { in PHP_FUNCTION() 1724 zend_long memlimit; in PHP_FUNCTION() local [all …]
|
H A D | libsodium_arginfo.h | 188 ZEND_ARG_TYPE_INFO(0, memlimit, IS_LONG, 0) 197 ZEND_ARG_TYPE_INFO(0, memlimit, IS_LONG, 0) 212 ZEND_ARG_TYPE_INFO(0, memlimit, IS_LONG, 0) 222 ZEND_ARG_TYPE_INFO(0, memlimit, IS_LONG, 0) 230 ZEND_ARG_TYPE_INFO(0, memlimit, IS_LONG, 0)
|
Completed in 22 milliseconds