pub struct KeyDerivation {
pub algorithm: KdfAlgorithm,
pub salt: String,
pub iterations: Option<u32>,
pub memory: Option<u32>,
pub parallelism: Option<u32>,
}Available on crate features
signatures and encryption only.Expand description
Key derivation function parameters.
Fields§
§algorithm: KdfAlgorithmKDF algorithm.
salt: StringSalt (base64 encoded).
iterations: Option<u32>Iteration count (for PBKDF2).
memory: Option<u32>Memory parameter (for Argon2).
parallelism: Option<u32>Parallelism parameter (for Argon2).
Trait Implementations§
Source§impl Clone for KeyDerivation
impl Clone for KeyDerivation
Source§fn clone(&self) -> KeyDerivation
fn clone(&self) -> KeyDerivation
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 KeyDerivation
impl Debug for KeyDerivation
Source§impl<'de> Deserialize<'de> for KeyDerivation
impl<'de> Deserialize<'de> for KeyDerivation
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl PartialEq for KeyDerivation
impl PartialEq for KeyDerivation
Source§impl Serialize for KeyDerivation
impl Serialize for KeyDerivation
impl Eq for KeyDerivation
impl StructuralPartialEq for KeyDerivation
Auto Trait Implementations§
impl Freeze for KeyDerivation
impl RefUnwindSafe for KeyDerivation
impl Send for KeyDerivation
impl Sync for KeyDerivation
impl Unpin for KeyDerivation
impl UnsafeUnpin for KeyDerivation
impl UnwindSafe for KeyDerivation
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.