pub enum KdfConfig {
Aes {
rounds: u64,
},
Argon2 {
iterations: u64,
memory: u64,
parallelism: u32,
version: Version,
},
Argon2id {
iterations: u64,
memory: u64,
parallelism: u32,
version: Version,
},
}Expand description
Choices for Key Derivation Functions (KDFs)
Variants§
Aes
Derive keys with repeated AES encryption
Argon2
Derive keys with Argon2d
Fields
Argon2id
Derive keys with Argon2id
Trait Implementations§
impl Eq for KdfConfig
impl StructuralPartialEq for KdfConfig
Auto Trait Implementations§
impl Freeze for KdfConfig
impl RefUnwindSafe for KdfConfig
impl Send for KdfConfig
impl Sync for KdfConfig
impl Unpin for KdfConfig
impl UnsafeUnpin for KdfConfig
impl UnwindSafe for KdfConfig
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.