pub struct KeyDerivationParams { /* private fields */ }
Expand description
Parameters to be provided to the key derivation function. These are fairly common to most such functions.
Implementations§
Source§impl KeyDerivationParams
impl KeyDerivationParams
Sourcepub fn time_cost(self, time_cost: Option<u32>) -> Self
pub fn time_cost(self, time_cost: Option<u32>) -> Self
Set the time cost from the optional value found in the archive.
Sourcepub fn mem_cost(self, mem_cost: Option<u32>) -> Self
pub fn mem_cost(self, mem_cost: Option<u32>) -> Self
Set the memory cost from the optional value found in the archive.
Sourcepub fn para_cost(self, para_cost: Option<u32>) -> Self
pub fn para_cost(self, para_cost: Option<u32>) -> Self
Set the degree of parallelism from the optional value found in the archive.
Sourcepub fn tag_length(self, tag_length: Option<u32>) -> Self
pub fn tag_length(self, tag_length: Option<u32>) -> Self
Set the output length from the optional value found in the archive.
Trait Implementations§
Source§impl Clone for KeyDerivationParams
impl Clone for KeyDerivationParams
Source§fn clone(&self) -> KeyDerivationParams
fn clone(&self) -> KeyDerivationParams
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 Debug for KeyDerivationParams
impl Debug for KeyDerivationParams
Auto Trait Implementations§
impl Freeze for KeyDerivationParams
impl RefUnwindSafe for KeyDerivationParams
impl Send for KeyDerivationParams
impl Sync for KeyDerivationParams
impl Unpin for KeyDerivationParams
impl UnwindSafe for KeyDerivationParams
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