Searched refs:N_log2 (Results 1 – 2 of 2) sorted by relevance
/freebsd/sys/contrib/libsodium/src/libsodium/crypto_pwhash/scryptsalsa208sha256/ |
H A D | pwhash_scryptsalsa208sha256.c | 20 uint32_t *const N_log2, uint32_t *const p, uint32_t *const r) in pickparams() argument 32 for (*N_log2 = 1; *N_log2 < 63; *N_log2 += 1) { in pickparams() 33 if ((uint64_t)(1) << *N_log2 > maxN / 2) { in pickparams() 39 for (*N_log2 = 1; *N_log2 < 63; *N_log2 += 1) { in pickparams() 40 if ((uint64_t)(1) << *N_log2 > maxN / 2) { in pickparams() 44 maxrp = (opslimit / 4) / ((uint64_t)(1) << *N_log2); in pickparams() 164 uint32_t N_log2; in crypto_pwhash_scryptsalsa208sha256() local 175 pickparams(opslimit, memlimit, &N_log2, &p, &r) != 0) { in crypto_pwhash_scryptsalsa208sha256() 181 crypto_pwhash_scryptsalsa208sha256_SALTBYTES, (uint64_t)(1) << N_log2, in crypto_pwhash_scryptsalsa208sha256() 194 uint32_t N_log2; in crypto_pwhash_scryptsalsa208sha256_str() local [all …]
|
H A D | crypto_scrypt-common.c | 149 uint32_t N_log2; in escrypt_r() local 153 src = escrypt_parse_setting(setting, &N_log2, &r, &p); in escrypt_r() 157 N = (uint64_t) 1 << N_log2; in escrypt_r() 198 escrypt_gensalt_r(uint32_t N_log2, uint32_t r, uint32_t p, const uint8_t *src, in escrypt_gensalt_r() argument 211 if (N_log2 > 63 || ((uint64_t) r * (uint64_t) p >= (1U << 30))) { in escrypt_gensalt_r() 219 *dst++ = itoa64[N_log2]; in escrypt_gensalt_r()
|