pub struct ScryptStretchParams {
pub log_n: u8,
pub r: u32,
pub p: u32,
pub out_len: usize,
}Expand description
Parameters for the scrypt stretching backend.
Fields§
§log_n: u8CPU/memory cost factor as log₂(N).
r: u32Block size (RFC 7914 recommends r = 8).
p: u32Parallelization factor (RFC 7914 recommends p = 1).
out_len: usizeDerived-key length in bytes (> 0).
Trait Implementations§
Source§impl Clone for ScryptStretchParams
impl Clone for ScryptStretchParams
Source§fn clone(&self) -> ScryptStretchParams
fn clone(&self) -> ScryptStretchParams
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 ScryptStretchParams
impl Debug for ScryptStretchParams
impl Copy for ScryptStretchParams
Auto Trait Implementations§
impl Freeze for ScryptStretchParams
impl RefUnwindSafe for ScryptStretchParams
impl Send for ScryptStretchParams
impl Sync for ScryptStretchParams
impl Unpin for ScryptStretchParams
impl UnsafeUnpin for ScryptStretchParams
impl UnwindSafe for ScryptStretchParams
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