pub struct Pbkdf2Params<const S: usize = 16> {
pub salt: Salt<S>,
pub iterations: u32,
pub key_length: usize,
}
Expand description
Parameters for PBKDF2
Fields§
§salt: Salt<S>
Salt value
iterations: u32
Number of iterations
key_length: usize
Length of derived key in bytes
Trait Implementations§
Source§impl<const S: usize> Clone for Pbkdf2Params<S>
impl<const S: usize> Clone for Pbkdf2Params<S>
Source§fn clone(&self) -> Pbkdf2Params<S>
fn clone(&self) -> Pbkdf2Params<S>
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreSource§impl<const S: usize> Debug for Pbkdf2Params<S>
impl<const S: usize> Debug for Pbkdf2Params<S>
Source§impl<const S: usize> Default for Pbkdf2Params<S>where
Salt<S>: Pbkdf2Compatible,
impl<const S: usize> Default for Pbkdf2Params<S>where
Salt<S>: Pbkdf2Compatible,
Auto Trait Implementations§
impl<const S: usize> Freeze for Pbkdf2Params<S>
impl<const S: usize> RefUnwindSafe for Pbkdf2Params<S>
impl<const S: usize> Send for Pbkdf2Params<S>
impl<const S: usize> Sync for Pbkdf2Params<S>
impl<const S: usize> Unpin for Pbkdf2Params<S>
impl<const S: usize> UnwindSafe for Pbkdf2Params<S>
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