pub struct ScryptParams {
pub n: u64,
pub r: u32,
pub p: u32,
}Expand description
Scrypt cost parameters.
Use struct-update syntax for partial overrides:
ⓘ
ScryptParams { n: 1 << 20, ..ScryptParams::default() }Fields§
§n: u64CPU/memory cost factor — must be a power of two and greater than 1.
r: u32Block size factor.
p: u32Parallelisation factor.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for ScryptParams
impl RefUnwindSafe for ScryptParams
impl Send for ScryptParams
impl Sync for ScryptParams
impl Unpin for ScryptParams
impl UnsafeUnpin for ScryptParams
impl UnwindSafe for ScryptParams
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