pub struct Params {
pub t_cost: u32,
pub m_cost: u32,
pub p_cost: u32,
pub tag_length: u32,
}Expand description
Parameters for Argon2id.
Fields§
§t_cost: u32Number of passes (iterations). Must be >= 1.
m_cost: u32Memory size in KiB. Must be >= 8*p_cost.
p_cost: u32Degree of parallelism (number of lanes). Must be >= 1.
tag_length: u32Output tag length in bytes. Must be >= 4.
Implementations§
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Params
impl RefUnwindSafe for Params
impl Send for Params
impl Sync for Params
impl Unpin for Params
impl UnsafeUnpin for Params
impl UnwindSafe for Params
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