Scrypt parameters
Fields
ln: u6,
The CPU/Memory cost parameter [ln] is log2(N).
r: u30,
The [r]esource usage parameter specifies the block size.
p: u30,
The [p]arallelization parameter. A large value of [p] can be used to increase the computational cost of scrypt without increasing the memory usage.
Functions
fn fromLimits(ops_limit: u64, mem_limit: usize) Self
Create parameters from ops and mem limits, where mem_limit given in bytes
Values
interactive | undefined | Baseline parameters for interactive logins |
sensitive | undefined | Baseline parameters for offline usage |