Home
last modified time | relevance | path

Searched refs:memlimit (Results 1 – 2 of 2) sorted by relevance

/PHP-7.4/ext/sodium/
H A Dsodium_pwhash.c43 static inline int get_options(zend_array *options, size_t *memlimit, size_t *opslimit) { in get_options() argument
47 *memlimit = PHP_SODIUM_PWHASH_MEMLIMIT << 10; in get_options()
58 *memlimit = smemlimit << 10; 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 …o_pwhash_str_alg(ZSTR_VAL(ret), ZSTR_VAL(password), ZSTR_LEN(password), opslimit, memlimit, alg)) { 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 Dlibsodium.c140 ZEND_ARG_INFO(0, memlimit)
148 ZEND_ARG_INFO(0, memlimit)
1828 zend_long memlimit; in PHP_FUNCTION() local
1856 if (memlimit <= 0 || memlimit > SIZE_MAX) { in PHP_FUNCTION()
1914 zend_long memlimit; in PHP_FUNCTION() local
1929 if (memlimit <= 0 || memlimit > SIZE_MAX) { in PHP_FUNCTION()
1968 zend_long memlimit; in PHP_FUNCTION() local
2020 zend_long memlimit; in PHP_FUNCTION() local
2041 if (memlimit <= 0 || memlimit > SIZE_MAX) { in PHP_FUNCTION()
2080 zend_long memlimit; in PHP_FUNCTION() local
[all …]

Completed in 27 milliseconds