pub struct ScryptPassParams {
pub log_n: u8,
pub r: u32,
pub p: u32,
}Expand description
scrypt parameters for the second pass of the KDF chain.
Fields§
§log_n: u8CPU/memory cost exponent: N = 2^log_n. Each increment doubles memory.
r: u32Block size (r). Standard value is 8.
p: u32Parallelization factor (p). Keep at 1 for sequential derivation.
Trait Implementations§
Source§impl Clone for ScryptPassParams
impl Clone for ScryptPassParams
Source§fn clone(&self) -> ScryptPassParams
fn clone(&self) -> ScryptPassParams
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for ScryptPassParams
impl Debug for ScryptPassParams
Source§impl PartialEq for ScryptPassParams
impl PartialEq for ScryptPassParams
impl Copy for ScryptPassParams
impl Eq for ScryptPassParams
impl StructuralPartialEq for ScryptPassParams
Auto Trait Implementations§
impl Freeze for ScryptPassParams
impl RefUnwindSafe for ScryptPassParams
impl Send for ScryptPassParams
impl Sync for ScryptPassParams
impl Unpin for ScryptPassParams
impl UnsafeUnpin for ScryptPassParams
impl UnwindSafe for ScryptPassParams
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.