Struct scrypt::Params [−][src]
pub struct Params { /* fields omitted */ }
Expand description
The Scrypt parameter values.
Implementations
Create a new instance of ScryptParams.
Arguments
log_n
- The log2 of the Scrypt parameterN
r
- The Scrypt parameterr
p
- The Scrypt parameterp
Conditions
log_n
must be less than64
r
must be greater than0
and less than or equal to4294967295
p
must be greater than0
and less than4294967295
Recommended values sufficient for most use-cases
log_n = 15
(n = 32768
)r = 8
p = 1
log2 of the Scrypt parameter N
, the work factor.
Memory and CPU usage scale linearly with N
.
r
parameter: resource usage.
scrypt iterates 2*r times. Memory and CPU time scale linearly with this parameter.
Trait Implementations
Auto Trait Implementations
impl RefUnwindSafe for Params
impl UnwindSafe for Params
Blanket Implementations
Mutably borrows from an owned value. Read more
type Output = T
type Output = T
Should always be Self