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 parameterNr- The Scrypt parameterrp- The Scrypt parameterp
Conditions
log_nmust be less than64rmust be greater than0and less than or equal to4294967295pmust be greater than0and less than4294967295
Recommended values sufficient for most use-cases
log_n = 15(n = 32768)r = 8p = 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