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
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