pub enum Algorithm {
Argon2d = 0,
Argon2i = 1,
Argon2id = 2,
}
Expand description
Argon2 variant types
Variants§
Argon2d = 0
Argon2d variant - uses data-dependent memory access, which offers the highest resistance against GPU cracking attacks but is vulnerable to side-channel attacks
Argon2i = 1
Argon2i variant - uses data-independent memory access, which offers better protection against side-channel attacks but less resistance against GPU attacks
Argon2id = 2
Argon2id variant - hybrid approach that combines Argon2i and Argon2d for a good balance between resistance to both side-channel and GPU attacks
Trait Implementations§
impl Copy for Algorithm
impl Eq for Algorithm
impl StructuralPartialEq for Algorithm
Auto Trait Implementations§
impl Freeze for Algorithm
impl RefUnwindSafe for Algorithm
impl Send for Algorithm
impl Sync for Algorithm
impl Unpin for Algorithm
impl UnwindSafe for Algorithm
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