pub struct Params {
pub iterations: u32,
pub memory: u32,
pub parallelism: u32,
}Expand description
Argon2id parameters (RFC 9106).
The output length is not part of the parameters: it is inferred from the
length of the output buffer passed to derive_key.
§Example
ⓘ
use crypto::argon2::Params;
let params = Params {
iterations: 3,
memory: 65536,
parallelism: 4,
};Fields§
§iterations: u32Number of passes (iterations). Must be >= 1.
memory: u32Memory size in KiB. Must be >= 8 * parallelism.
parallelism: u32Degree of parallelism (number of lanes). Must be >= 1.
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