/dports/multimedia/gstreamer1-plugins-rust/gst-plugins-rs-d0466b3eee114207f851b37cae0015c0e718f021/cargo-crates/libsodium-sys-0.2.7/libsodium/src/libsodium/crypto_pwhash/argon2/ |
H A D | pwhash_argon2i.c | 143 unsigned long long opslimit, size_t memlimit, int alg) in crypto_pwhash_argon2i() argument 155 opslimit > crypto_pwhash_argon2i_OPSLIMIT_MAX || in crypto_pwhash_argon2i() 161 opslimit < crypto_pwhash_argon2i_OPSLIMIT_MIN || in crypto_pwhash_argon2i() 189 unsigned long long opslimit, size_t memlimit) in crypto_pwhash_argon2i_str() argument 195 opslimit > crypto_pwhash_argon2i_OPSLIMIT_MAX || in crypto_pwhash_argon2i_str() 201 opslimit < crypto_pwhash_argon2i_OPSLIMIT_MIN || in crypto_pwhash_argon2i_str() 245 _needs_rehash(const char *str, unsigned long long opslimit, size_t memlimit, in _needs_rehash() argument 255 if (opslimit > UINT32_MAX || memlimit > UINT32_MAX || in _needs_rehash() 271 } else if (ctx.t_cost != (uint32_t) opslimit || in _needs_rehash() 286 return _needs_rehash(str, opslimit, memlimit, Argon2_i); in crypto_pwhash_argon2i_str_needs_rehash() [all …]
|
/dports/security/libsodium/libsodium-1.0.18/src/libsodium/crypto_pwhash/argon2/ |
H A D | pwhash_argon2i.c | 143 unsigned long long opslimit, size_t memlimit, int alg) in crypto_pwhash_argon2i() argument 155 opslimit > crypto_pwhash_argon2i_OPSLIMIT_MAX || in crypto_pwhash_argon2i() 161 opslimit < crypto_pwhash_argon2i_OPSLIMIT_MIN || in crypto_pwhash_argon2i() 185 unsigned long long opslimit, size_t memlimit) in crypto_pwhash_argon2i_str() argument 191 opslimit > crypto_pwhash_argon2i_OPSLIMIT_MAX || in crypto_pwhash_argon2i_str() 197 opslimit < crypto_pwhash_argon2i_OPSLIMIT_MIN || in crypto_pwhash_argon2i_str() 241 _needs_rehash(const char *str, unsigned long long opslimit, size_t memlimit, in _needs_rehash() argument 251 if (opslimit > UINT32_MAX || memlimit > UINT32_MAX || in _needs_rehash() 267 } else if (ctx.t_cost != (uint32_t) opslimit || in _needs_rehash() 282 return _needs_rehash(str, opslimit, memlimit, Argon2_i); in crypto_pwhash_argon2i_str_needs_rehash() [all …]
|
/dports/security/py-pynacl/PyNaCl-1.4.0/src/libsodium/src/libsodium/crypto_pwhash/argon2/ |
H A D | pwhash_argon2i.c | 143 unsigned long long opslimit, size_t memlimit, int alg) in crypto_pwhash_argon2i() argument 155 opslimit > crypto_pwhash_argon2i_OPSLIMIT_MAX || in crypto_pwhash_argon2i() 161 opslimit < crypto_pwhash_argon2i_OPSLIMIT_MIN || in crypto_pwhash_argon2i() 185 unsigned long long opslimit, size_t memlimit) in crypto_pwhash_argon2i_str() argument 191 opslimit > crypto_pwhash_argon2i_OPSLIMIT_MAX || in crypto_pwhash_argon2i_str() 197 opslimit < crypto_pwhash_argon2i_OPSLIMIT_MIN || in crypto_pwhash_argon2i_str() 241 _needs_rehash(const char *str, unsigned long long opslimit, size_t memlimit, in _needs_rehash() argument 251 if (opslimit > UINT32_MAX || memlimit > UINT32_MAX || in _needs_rehash() 267 } else if (ctx.t_cost != (uint32_t) opslimit || in _needs_rehash() 282 return _needs_rehash(str, opslimit, memlimit, Argon2_i); in crypto_pwhash_argon2i_str_needs_rehash() [all …]
|
/dports/devel/pijul/pijul-1.0.0.a55/cargo-crates/libsodium-sys-0.2.7/libsodium/src/libsodium/crypto_pwhash/argon2/ |
H A D | pwhash_argon2i.c | 143 unsigned long long opslimit, size_t memlimit, int alg) in crypto_pwhash_argon2i() argument 155 opslimit > crypto_pwhash_argon2i_OPSLIMIT_MAX || in crypto_pwhash_argon2i() 161 opslimit < crypto_pwhash_argon2i_OPSLIMIT_MIN || in crypto_pwhash_argon2i() 189 unsigned long long opslimit, size_t memlimit) in crypto_pwhash_argon2i_str() argument 195 opslimit > crypto_pwhash_argon2i_OPSLIMIT_MAX || in crypto_pwhash_argon2i_str() 201 opslimit < crypto_pwhash_argon2i_OPSLIMIT_MIN || in crypto_pwhash_argon2i_str() 245 _needs_rehash(const char *str, unsigned long long opslimit, size_t memlimit, in _needs_rehash() argument 255 if (opslimit > UINT32_MAX || memlimit > UINT32_MAX || in _needs_rehash() 271 } else if (ctx.t_cost != (uint32_t) opslimit || in _needs_rehash() 286 return _needs_rehash(str, opslimit, memlimit, Argon2_i); in crypto_pwhash_argon2i_str_needs_rehash() [all …]
|
/dports/multimedia/gstreamer1-plugins-rust/gst-plugins-rs-d0466b3eee114207f851b37cae0015c0e718f021/cargo-crates/libsodium-sys-0.2.7/libsodium/src/libsodium/crypto_pwhash/ |
H A D | crypto_pwhash.c | 132 unsigned long long opslimit, size_t memlimit, int alg) in crypto_pwhash() argument 137 opslimit, memlimit, alg); in crypto_pwhash() 140 opslimit, memlimit, alg); in crypto_pwhash() 150 unsigned long long opslimit, size_t memlimit) in crypto_pwhash_str() argument 153 opslimit, memlimit); in crypto_pwhash_str() 159 unsigned long long opslimit, size_t memlimit, int alg) in crypto_pwhash_str_alg() argument 164 opslimit, memlimit); in crypto_pwhash_str_alg() 167 opslimit, memlimit); in crypto_pwhash_str_alg() 194 unsigned long long opslimit, size_t memlimit) in crypto_pwhash_str_needs_rehash() argument 198 return crypto_pwhash_argon2id_str_needs_rehash(str, opslimit, memlimit); in crypto_pwhash_str_needs_rehash() [all …]
|
/dports/security/libsodium/libsodium-1.0.18/src/libsodium/crypto_pwhash/ |
H A D | crypto_pwhash.c | 132 unsigned long long opslimit, size_t memlimit, int alg) in crypto_pwhash() argument 137 opslimit, memlimit, alg); in crypto_pwhash() 140 opslimit, memlimit, alg); in crypto_pwhash() 150 unsigned long long opslimit, size_t memlimit) in crypto_pwhash_str() argument 153 opslimit, memlimit); in crypto_pwhash_str() 159 unsigned long long opslimit, size_t memlimit, int alg) in crypto_pwhash_str_alg() argument 164 opslimit, memlimit); in crypto_pwhash_str_alg() 167 opslimit, memlimit); in crypto_pwhash_str_alg() 194 unsigned long long opslimit, size_t memlimit) in crypto_pwhash_str_needs_rehash() argument 198 return crypto_pwhash_argon2id_str_needs_rehash(str, opslimit, memlimit); in crypto_pwhash_str_needs_rehash() [all …]
|
/dports/security/py-pynacl/PyNaCl-1.4.0/src/libsodium/src/libsodium/crypto_pwhash/ |
H A D | crypto_pwhash.c | 132 unsigned long long opslimit, size_t memlimit, int alg) in crypto_pwhash() argument 137 opslimit, memlimit, alg); in crypto_pwhash() 140 opslimit, memlimit, alg); in crypto_pwhash() 150 unsigned long long opslimit, size_t memlimit) in crypto_pwhash_str() argument 153 opslimit, memlimit); in crypto_pwhash_str() 159 unsigned long long opslimit, size_t memlimit, int alg) in crypto_pwhash_str_alg() argument 164 opslimit, memlimit); in crypto_pwhash_str_alg() 167 opslimit, memlimit); in crypto_pwhash_str_alg() 194 unsigned long long opslimit, size_t memlimit) in crypto_pwhash_str_needs_rehash() argument 198 return crypto_pwhash_argon2id_str_needs_rehash(str, opslimit, memlimit); in crypto_pwhash_str_needs_rehash() [all …]
|
/dports/devel/pijul/pijul-1.0.0.a55/cargo-crates/libsodium-sys-0.2.7/libsodium/src/libsodium/crypto_pwhash/ |
H A D | crypto_pwhash.c | 132 unsigned long long opslimit, size_t memlimit, int alg) in crypto_pwhash() argument 137 opslimit, memlimit, alg); in crypto_pwhash() 140 opslimit, memlimit, alg); in crypto_pwhash() 150 unsigned long long opslimit, size_t memlimit) in crypto_pwhash_str() argument 153 opslimit, memlimit); in crypto_pwhash_str() 159 unsigned long long opslimit, size_t memlimit, int alg) in crypto_pwhash_str_alg() argument 164 opslimit, memlimit); in crypto_pwhash_str_alg() 167 opslimit, memlimit); in crypto_pwhash_str_alg() 194 unsigned long long opslimit, size_t memlimit) in crypto_pwhash_str_needs_rehash() argument 198 return crypto_pwhash_argon2id_str_needs_rehash(str, opslimit, memlimit); in crypto_pwhash_str_needs_rehash() [all …]
|
/dports/security/py-pynacl/PyNaCl-1.4.0/src/nacl/bindings/ |
H A D | crypto_pwhash.py | 205 if opslimit < 32768: 206 opslimit = 32768 210 if opslimit < (memlimit // 32): 212 maxn = opslimit // (4 * r) 222 maxrp = (opslimit // 4) // (2 ** n_log2) 287 passwd, opslimit=SCRYPT_OPSLIMIT_INTERACTIVE, argument 352 def _check_argon2_limits_alg(opslimit, memlimit, alg): argument 405 ensure(isinstance(opslimit, integer_types), 428 _check_argon2_limits_alg(opslimit, memlimit, alg) 458 ensure(isinstance(opslimit, integer_types), [all …]
|
/dports/security/nextcloud-twofactor_webauthn/twofactor_webauthn/vendor/thecodingmachine/safe/generated/ |
H A D | sodium.php | 11 …* @param int $opslimit Represents a maximum amount of computations to perform. Raising this number… 22 function sodium_crypto_pwhash_str(string $password, int $opslimit, int $memlimit): string argument 25 $result = \sodium_crypto_pwhash_str($password, $opslimit, $memlimit); 39 …* @param int $opslimit Represents a maximum amount of computations to perform. Raising this number… 46 function sodium_crypto_pwhash(int $length, string $password, string $salt, int $opslimit, int $meml… argument 50 $result = \sodium_crypto_pwhash($length, $password, $salt, $opslimit, $memlimit, $alg); 52 $result = \sodium_crypto_pwhash($length, $password, $salt, $opslimit, $memlimit);
|
/dports/www/nextcloud/nextcloud/3rdparty/thecodingmachine/safe/generated/ |
H A D | sodium.php | 11 …* @param int $opslimit Represents a maximum amount of computations to perform. Raising this number… 22 function sodium_crypto_pwhash_str(string $password, int $opslimit, int $memlimit): string argument 25 $result = \sodium_crypto_pwhash_str($password, $opslimit, $memlimit); 39 …* @param int $opslimit Represents a maximum amount of computations to perform. Raising this number… 46 function sodium_crypto_pwhash(int $length, string $password, string $salt, int $opslimit, int $meml… argument 50 $result = \sodium_crypto_pwhash($length, $password, $salt, $opslimit, $memlimit, $alg); 52 $result = \sodium_crypto_pwhash($length, $password, $salt, $opslimit, $memlimit);
|
/dports/lang/php80/php-8.0.15/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()
|
/dports/lang/php81/php-8.1.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()
|
/dports/security/php81-sodium/php-8.1.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()
|
/dports/security/php80-sodium/php-8.0.15/ext/sodium/ |
H A D | sodium_pwhash.c | 41 static inline int get_options(zend_array *options, size_t *memlimit, size_t *opslimit) { 44 *opslimit = PHP_SODIUM_PWHASH_OPSLIMIT; 59 *opslimit = zval_get_long(opt); 60 if ((*opslimit < crypto_pwhash_OPSLIMIT_MIN) || (*opslimit > crypto_pwhash_OPSLIMIT_MAX)) { 73 size_t opslimit, memlimit; 81 if (get_options(options, &memlimit, &opslimit) == FAILURE) { 86 …if (crypto_pwhash_str_alg(ZSTR_VAL(ret), ZSTR_VAL(password), ZSTR_LEN(password), opslimit, memlimi… 106 size_t opslimit, memlimit; 108 if (get_options(options, &memlimit, &opslimit) == FAILURE) { 111 return crypto_pwhash_str_needs_rehash(ZSTR_VAL(hash), opslimit, memlimit);
|
/dports/www/mod_php81/php-8.1.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()
|
/dports/www/mod_php80/php-8.0.15/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()
|
/dports/security/libsodium/libsodium-1.0.18/src/libsodium/crypto_pwhash/scryptsalsa208sha256/ |
H A D | pwhash_scryptsalsa208sha256.c | 19 pickparams(unsigned long long opslimit, const size_t memlimit, in pickparams() argument 25 if (opslimit < 32768) { in pickparams() 26 opslimit = 32768; in pickparams() 29 if (opslimit < memlimit / 32) { in pickparams() 31 maxN = opslimit / (*r * 4); in pickparams() 44 maxrp = (opslimit / 4) / ((uint64_t)(1) << *N_log2); in pickparams() 175 pickparams(opslimit, memlimit, &N_log2, &p, &r) != 0) { in crypto_pwhash_scryptsalsa208sha256() 189 unsigned long long opslimit, size_t memlimit) in crypto_pwhash_scryptsalsa208sha256_str() argument 204 pickparams(opslimit, memlimit, &N_log2, &p, &r) != 0) { in crypto_pwhash_scryptsalsa208sha256_str() 272 unsigned long long opslimit, size_t memlimit) in crypto_pwhash_scryptsalsa208sha256_str_needs_rehash() argument [all …]
|
/dports/security/py-pynacl/PyNaCl-1.4.0/src/libsodium/src/libsodium/crypto_pwhash/scryptsalsa208sha256/ |
H A D | pwhash_scryptsalsa208sha256.c | 19 pickparams(unsigned long long opslimit, const size_t memlimit, in pickparams() argument 25 if (opslimit < 32768) { in pickparams() 26 opslimit = 32768; in pickparams() 29 if (opslimit < memlimit / 32) { in pickparams() 31 maxN = opslimit / (*r * 4); in pickparams() 44 maxrp = (opslimit / 4) / ((uint64_t)(1) << *N_log2); in pickparams() 175 pickparams(opslimit, memlimit, &N_log2, &p, &r) != 0) { in crypto_pwhash_scryptsalsa208sha256() 189 unsigned long long opslimit, size_t memlimit) in crypto_pwhash_scryptsalsa208sha256_str() argument 204 pickparams(opslimit, memlimit, &N_log2, &p, &r) != 0) { in crypto_pwhash_scryptsalsa208sha256_str() 272 unsigned long long opslimit, size_t memlimit) in crypto_pwhash_scryptsalsa208sha256_str_needs_rehash() argument [all …]
|
/dports/devel/pijul/pijul-1.0.0.a55/cargo-crates/libsodium-sys-0.2.7/libsodium/src/libsodium/crypto_pwhash/scryptsalsa208sha256/ |
H A D | pwhash_scryptsalsa208sha256.c | 19 pickparams(unsigned long long opslimit, const size_t memlimit, in pickparams() argument 25 if (opslimit < 32768) { in pickparams() 26 opslimit = 32768; in pickparams() 29 if (opslimit < memlimit / 32) { in pickparams() 31 maxN = opslimit / (*r * 4); in pickparams() 44 maxrp = (opslimit / 4) / ((uint64_t)(1) << *N_log2); in pickparams() 175 pickparams(opslimit, memlimit, &N_log2, &p, &r) != 0) { in crypto_pwhash_scryptsalsa208sha256() 193 unsigned long long opslimit, size_t memlimit) in crypto_pwhash_scryptsalsa208sha256_str() argument 208 pickparams(opslimit, memlimit, &N_log2, &p, &r) != 0) { in crypto_pwhash_scryptsalsa208sha256_str() 276 unsigned long long opslimit, size_t memlimit) in crypto_pwhash_scryptsalsa208sha256_str_needs_rehash() argument [all …]
|
/dports/multimedia/gstreamer1-plugins-rust/gst-plugins-rs-d0466b3eee114207f851b37cae0015c0e718f021/cargo-crates/libsodium-sys-0.2.7/libsodium/src/libsodium/crypto_pwhash/scryptsalsa208sha256/ |
H A D | pwhash_scryptsalsa208sha256.c | 19 pickparams(unsigned long long opslimit, const size_t memlimit, in pickparams() argument 25 if (opslimit < 32768) { in pickparams() 26 opslimit = 32768; in pickparams() 29 if (opslimit < memlimit / 32) { in pickparams() 31 maxN = opslimit / (*r * 4); in pickparams() 44 maxrp = (opslimit / 4) / ((uint64_t)(1) << *N_log2); in pickparams() 175 pickparams(opslimit, memlimit, &N_log2, &p, &r) != 0) { in crypto_pwhash_scryptsalsa208sha256() 193 unsigned long long opslimit, size_t memlimit) in crypto_pwhash_scryptsalsa208sha256_str() argument 208 pickparams(opslimit, memlimit, &N_log2, &p, &r) != 0) { in crypto_pwhash_scryptsalsa208sha256_str() 276 unsigned long long opslimit, size_t memlimit) in crypto_pwhash_scryptsalsa208sha256_str_needs_rehash() argument [all …]
|
/dports/net-im/tox/c-toxcore-0.2.13/toxencryptsave/crypto_pwhash_scryptsalsa208sha256/ |
H A D | pwhash_scryptsalsa208sha256.c | 22 pickparams(unsigned long long opslimit, const size_t memlimit, in pickparams() argument 28 if (opslimit < 32768) { in pickparams() 29 opslimit = 32768; in pickparams() 32 if (opslimit < memlimit / 32) { in pickparams() 34 maxN = opslimit / (*r * 4); in pickparams() 47 maxrp = (opslimit / 4) / ((uint64_t) (1) << *N_log2); in pickparams() 104 unsigned long long opslimit, in crypto_pwhash_scryptsalsa208sha256() argument 117 if (pickparams(opslimit, memlimit, &N_log2, &p, &r) != 0) { in crypto_pwhash_scryptsalsa208sha256() 133 unsigned long long opslimit, in crypto_pwhash_scryptsalsa208sha256_str() argument 148 if (pickparams(opslimit, memlimit, &N_log2, &p, &r) != 0) { in crypto_pwhash_scryptsalsa208sha256_str()
|
/dports/lang/php74/php-7.4.27/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()
|
/dports/security/php74-sodium/php-7.4.27/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()
|
/dports/www/mod_php74/php-7.4.27/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()
|