pub enum Variant {
Argon2d,
Argon2i,
Argon2id,
}
Expand description
The Argon2 variant.
Variants§
Argon2d
Argon2 using data-dependent memory access to thwart tradeoff attacks. Recommended for cryptocurrencies and backend servers.
Argon2i
Argon2 using data-independent memory access to thwart side-channel attacks. Recommended for password hashing and password-based key derivation.
Argon2id
Argon2 using hybrid construction.
Implementations§
source§impl Variant
impl Variant
sourcepub fn as_lowercase_str(&self) -> &'static str
pub fn as_lowercase_str(&self) -> &'static str
Gets the lowercase string slice representation of the variant.
sourcepub fn as_uppercase_str(&self) -> &'static str
pub fn as_uppercase_str(&self) -> &'static str
Gets the uppercase string slice representation of the variant.
Trait Implementations§
source§impl Ord for Variant
impl Ord for Variant
source§impl PartialEq<Variant> for Variant
impl PartialEq<Variant> for Variant
source§impl PartialOrd<Variant> for Variant
impl PartialOrd<Variant> for Variant
1.0.0 · source§fn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
This method tests less than or equal to (for
self
and other
) and is used by the <=
operator. Read moreimpl Copy for Variant
impl Eq for Variant
impl StructuralEq for Variant
impl StructuralPartialEq for Variant
Auto Trait Implementations§
impl RefUnwindSafe for Variant
impl Send for Variant
impl Sync for Variant
impl Unpin for Variant
impl UnwindSafe for Variant
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