Lines Matching refs:N
39 uint64_t N, uint64_t r, uint64_t p, uint64_t maxmem,
50 uint64_t N; member
118 dest->N = src->N; in kdf_scrypt_dup()
137 ctx->N = 1 << 20; in kdf_scrypt_init()
206 ctx->salt_len, ctx->N, ctx->r, ctx->p, in kdf_scrypt_derive()
239 ctx->N = u64_value; in kdf_scrypt_set_ctx_params()
385 static void scryptROMix(unsigned char *B, uint64_t r, uint64_t N, in scryptROMix() argument
400 for (i = 1; i < N; i++, pV += 32 * r) in scryptROMix()
403 scryptBlockMix(X, V + (N - 1) * 32 * r, r); in scryptROMix()
405 for (i = 0; i < N; i++) { in scryptROMix()
407 j = X[16 * (2 * r - 1)] % N; in scryptROMix()
445 uint64_t N, uint64_t r, uint64_t p, uint64_t maxmem, in scrypt_alg() argument
456 if (r == 0 || p == 0 || N < 2 || (N & (N - 1))) in scrypt_alg()
470 if (N >= (((uint64_t)1) << (16 * r))) { in scrypt_alg()
498 if (N + 2 > i / r) { in scrypt_alg()
502 Vlen = 32 * r * (N + 2) * sizeof(uint32_t); in scrypt_alg()
534 scryptROMix(B + 128 * r * i, r, N, X, T, V); in scrypt_alg()