pub struct KdfParams {
pub m_cost: u32,
pub t_cost: u32,
pub p_cost: u32,
}Expand description
Argon2id cost parameters. Stored (unencrypted) in the file header so the KEK can be re-derived on open.
Fields§
§m_cost: u32Memory cost in KiB.
t_cost: u32Time cost (number of iterations).
p_cost: u32Parallelism (lanes).
Implementations§
Trait Implementations§
Auto Trait Implementations§
impl Freeze for KdfParams
impl RefUnwindSafe for KdfParams
impl Send for KdfParams
impl Sync for KdfParams
impl Unpin for KdfParams
impl UnsafeUnpin for KdfParams
impl UnwindSafe for KdfParams
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