Struct scrypt::ScryptParams [−][src]
pub struct ScryptParams { /* fields omitted */ }
The Scrypt parameter values.
Methods
impl ScryptParams
[src]
impl ScryptParams
pub fn new(log_n: u8, r: u32, p: u32) -> Result<ScryptParams, InvalidParams>
[src]
pub fn new(log_n: u8, r: u32, p: u32) -> Result<ScryptParams, InvalidParams>
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
Trait Implementations
impl Clone for ScryptParams
[src]
impl Clone for ScryptParams
fn clone(&self) -> ScryptParams
[src]
fn clone(&self) -> ScryptParams
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0[src]
fn clone_from(&mut self, source: &Self)
1.0.0
[src]Performs copy-assignment from source
. Read more
impl Copy for ScryptParams
[src]
impl Copy for ScryptParams
Auto Trait Implementations
impl Send for ScryptParams
impl Send for ScryptParams
impl Sync for ScryptParams
impl Sync for ScryptParams