pub struct HashOptions {
pub iterations: u32,
pub time_cost: u32,
pub memory_cost: u32,
pub parallelism: u32,
pub output_length: usize,
pub log_n: u8,
pub r: u32,
pub p: u32,
pub cost: u32,
}Expand description
Options for password hashing and key derivation.
Fields§
§iterations: u32PBKDF2 iteration count.
time_cost: u32Argon2 time cost.
memory_cost: u32Argon2 memory cost in KiB.
parallelism: u32Argon2 parallelism.
output_length: usizeDerived key length in bytes.
log_n: u8scrypt log₂(N).
r: u32scrypt block size parameter.
p: u32scrypt parallelization parameter.
cost: u32bcrypt cost factor.
Implementations§
Trait Implementations§
Source§impl Clone for HashOptions
impl Clone for HashOptions
Source§fn clone(&self) -> HashOptions
fn clone(&self) -> HashOptions
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 HashOptions
impl Debug for HashOptions
Auto Trait Implementations§
impl Freeze for HashOptions
impl RefUnwindSafe for HashOptions
impl Send for HashOptions
impl Sync for HashOptions
impl Unpin for HashOptions
impl UnsafeUnpin for HashOptions
impl UnwindSafe for HashOptions
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