Struct rust_scrypt::ScryptParams [−][src]
The Scrypt parameter values
Fields
n: u64
Number of iterations
r: u32
Block size for the underlying hash
p: u32
Parallelization factor
Methods
impl ScryptParams
[src]
impl ScryptParams
pub fn new(n: u64, r: u32, p: u32) -> ScryptParams
[src]
pub fn new(n: u64, r: u32, p: u32) -> ScryptParams
Create a new instance of ScryptParams
Arguments:
log_n - The log2 of the Scrypt parameter N r - The Scrypt parameter r p - The Scrypt parameter p
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
impl Debug for ScryptParams
[src]
impl Debug for ScryptParams
Auto Trait Implementations
impl Send for ScryptParams
impl Send for ScryptParams
impl Sync for ScryptParams
impl Sync for ScryptParams