Home
last modified time | relevance | path

Searched refs:maxmem (Results 1 – 25 of 31) sorted by relevance

12

/third_party/node/lib/internal/crypto/
Dscrypt.js38 maxmem: 32 << 20, // 32 MiB, matches SCRYPT_MAX_MEM. property
48 const { N, r, p, maxmem } = options;
54 kCryptoJobAsync, password, salt, N, r, p, maxmem, keylen);
71 const { N, r, p, maxmem } = options;
74 kCryptoJobSync, password, salt, N, r, p, maxmem, keylen);
93 let { N, r, p, maxmem } = defaults;
125 if (options.maxmem !== undefined) {
126 maxmem = options.maxmem;
127 validateInteger(maxmem, 'maxmem', 0);
132 if (maxmem === 0) maxmem = defaults.maxmem;
[all …]
/third_party/node/deps/openssl/openssl/crypto/evp/
Dpbe_scrypt.c39 uint64_t N, uint64_t r, uint64_t p, uint64_t maxmem, in EVP_PBE_scrypt_ex() argument
63 if (maxmem == 0) in EVP_PBE_scrypt_ex()
64 maxmem = SCRYPT_MAX_MEM; in EVP_PBE_scrypt_ex()
81 *z++ = OSSL_PARAM_construct_uint64(OSSL_KDF_PARAM_SCRYPT_MAXMEM, &maxmem); in EVP_PBE_scrypt_ex()
92 uint64_t N, uint64_t r, uint64_t p, uint64_t maxmem, in EVP_PBE_scrypt() argument
95 return EVP_PBE_scrypt_ex(pass, passlen, salt, saltlen, N, r, p, maxmem, in EVP_PBE_scrypt()
/third_party/openssl/crypto/evp/
Dpbe_scrypt.c39 uint64_t N, uint64_t r, uint64_t p, uint64_t maxmem, in EVP_PBE_scrypt_ex() argument
63 if (maxmem == 0) in EVP_PBE_scrypt_ex()
64 maxmem = SCRYPT_MAX_MEM; in EVP_PBE_scrypt_ex()
81 *z++ = OSSL_PARAM_construct_uint64(OSSL_KDF_PARAM_SCRYPT_MAXMEM, &maxmem); in EVP_PBE_scrypt_ex()
92 uint64_t N, uint64_t r, uint64_t p, uint64_t maxmem, in EVP_PBE_scrypt() argument
95 return EVP_PBE_scrypt_ex(pass, passlen, salt, saltlen, N, r, p, maxmem, in EVP_PBE_scrypt()
/third_party/node/src/crypto/
Dcrypto_scrypt.cc30 maxmem(other.maxmem), in ScryptConfig()
94 params->maxmem = args[offset + 5]->IntegerValue(env->context()).ToChecked(); in AdditionalConfig()
104 params->maxmem, in AdditionalConfig()
132 params.maxmem, in DeriveBits()
Dcrypto_scrypt.h34 uint64_t maxmem; member
/third_party/curl/tests/
Dmemanalyze.pl62 my $maxmem; # the high water mark
68 if($newtot > $maxmem) {
69 $maxmem= $newtot;
432 print "Maximum allocated: $maxmem\n";
/third_party/libxml2/
Dbackport-xmllint-Fix-use-after-free-with-maxmem.patch4 Subject: [PATCH] xmllint: Fix use-after-free with --maxmem
44 - if (xmlMemUsed() > maxmem) {
49 + if (xmlMemUsed() + size - oldsize > (size_t) maxmem) {
/third_party/node/test/parallel/
Dtest-crypto-scrypt.js110 { N: 2 ** 10, p: 1, r: 8, maxmem: 2 ** 20 }, property
232 crypto.scrypt('', '', 4, { maxmem: 2 ** 52 }, property
238 assert.throws(() => crypto.scryptSync('', '', 0, { maxmem: 2 ** 53 }), { property
/third_party/node/deps/openssl/openssl/providers/implementations/kdfs/
Dscrypt.c38 uint64_t N, uint64_t r, uint64_t p, uint64_t maxmem,
412 uint64_t N, uint64_t r, uint64_t p, uint64_t maxmem, in scrypt_alg() argument
478 if (maxmem > SIZE_MAX) in scrypt_alg()
479 maxmem = SIZE_MAX; in scrypt_alg()
481 if (Blen + Vlen > maxmem) { in scrypt_alg()
/third_party/openssl/providers/implementations/kdfs/
Dscrypt.c38 uint64_t N, uint64_t r, uint64_t p, uint64_t maxmem,
412 uint64_t N, uint64_t r, uint64_t p, uint64_t maxmem, in scrypt_alg() argument
478 if (maxmem > SIZE_MAX) in scrypt_alg()
479 maxmem = SIZE_MAX; in scrypt_alg()
481 if (Blen + Vlen > maxmem) { in scrypt_alg()
/third_party/openssl/test/recipes/30-test_evp_data/
Devppbe_scrypt.txt42 # uncomment out the "maxmem" line and comment out the "Result"
52 #maxmem = 10000000000
/third_party/rust/crates/rust-openssl/openssl/src/
Dpkcs5.rs126 maxmem: u64, in scrypt()
139 maxmem.try_into().unwrap(), in scrypt()
/third_party/python/Modules/clinic/
D_hashopenssl.c.h968 long maxmem, long dklen);
983 long maxmem = 0; in _hashlib_scrypt() local
1043 maxmem = PyLong_AsLong(args[5]); in _hashlib_scrypt()
1044 if (maxmem == -1 && PyErr_Occurred()) { in _hashlib_scrypt()
1056 … return_value = _hashlib_scrypt_impl(module, &password, &salt, n_obj, r_obj, p_obj, maxmem, dklen); in _hashlib_scrypt()
/third_party/python/Modules/
D_hashopenssl.c1320 long maxmem, long dklen) in _hashlib_scrypt_impl() argument
1371 if (maxmem < 0 || maxmem > INT_MAX) { in _hashlib_scrypt_impl()
1388 retval = EVP_PBE_scrypt(NULL, 0, NULL, 0, n, r, p, maxmem, NULL, 0); in _hashlib_scrypt_impl()
1404 n, r, p, maxmem, in _hashlib_scrypt_impl()
/third_party/ltp/testcases/kernel/mce-test/stress/
Dhwpoison.sh141 local maxmem=0
164 maxmem=`cat /proc/meminfo | grep MemTotal | awk '{print $2}'`
165 let "g_maxpfn= $maxmem / 4"
/third_party/openssl/doc/man3/
DPKCS5_PBE_keyivgen.pod33 uint64_t N, uint64_t r, uint64_t p, uint64_t maxmem,
37 uint64_t N, uint64_t r, uint64_t p, uint64_t maxmem,
DEVP_PKEY_CTX_set_scrypt_N.pod26 uint64_t maxmem);
/third_party/python/Lib/test/
Dtest_hashlib.py1098 for maxmem in [-1, None]:
1101 maxmem=maxmem)
/third_party/openssl/doc/man7/
DEVP_KDF-SCRYPT.pod60 These parameters configure the scrypt work factors N, r, maxmem and p.
Dprovider-kdf.pod240 Sets the scrypt work factor parameter maxmem in the associated KDF ctx.
/third_party/openssl/test/
Devp_kdf_test.c815 unsigned int nu = 1024, ru = 8, pu = 16, maxmem = 16; in test_kdf_scrypt() local
834 *p++ = OSSL_PARAM_construct_uint(OSSL_KDF_PARAM_SCRYPT_MAXMEM, &maxmem); in test_kdf_scrypt()
Devp_test.c2022 uint64_t N, r, p, maxmem; member
2075 return parse_uint64(value, &pdata->maxmem); in scrypt_test_parse()
2198 expected->maxmem, key, expected->key_len) == 0) { in pbe_test_run()
/third_party/rust/crates/rust-openssl/openssl-sys/src/handwritten/
Devp.rs495 maxmem: u64, in EVP_PBE_scrypt()
/third_party/python/Doc/library/
Dhashlib.rst277 .. function:: scrypt(password, *, salt, n, r, p, maxmem=0, dklen=64)
288 factor and *maxmem* limits memory (OpenSSL 1.1.0 defaults to 32 MiB).
/third_party/node/deps/openssl/openssl/include/openssl/
Devp.h1500 uint64_t N, uint64_t r, uint64_t p, uint64_t maxmem,
1504 uint64_t N, uint64_t r, uint64_t p, uint64_t maxmem,

12