Enum argon2::Variant
[−]
[src]
pub enum Variant {
Argon2d,
Argon2i,
Argon2id,
}The Argon2 variant.
Variants
Argon2dArgon2 using data-dependent memory access to thwart tradeoff attacks. Recommended for cryptocurrencies and backend servers.
Argon2iArgon2 using data-independent memory access to thwart side-channel attacks. Recommended for password hashing and password-based key derivation.
Argon2idArgon2 using hybrid construction.
Methods
impl Variant[src]
fn as_lowercase_str(&self) -> &'static str
Gets the lowercase string slice representation of the variant.
fn as_u32(&self) -> u32
Gets the u32 representation of the variant.
fn as_u64(&self) -> u64
Gets the u64 representation of the variant.
fn as_uppercase_str(&self) -> &'static str
Gets the uppercase string slice representation of the variant.
fn from_str(str: &str) -> Result<Variant>
Attempts to create a variant from a string slice.
fn from_u32(val: u32) -> Result<Variant>
Attempts to create a variant from an u32.
Trait Implementations
impl Clone for Variant[src]
fn clone(&self) -> Variant
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)1.0.0
Performs copy-assignment from source. Read more
impl Copy for Variant[src]
impl Debug for Variant[src]
impl Eq for Variant[src]
impl PartialEq for Variant[src]
fn eq(&self, __arg_0: &Variant) -> bool
This method tests for self and other values to be equal, and is used by ==. Read more
fn ne(&self, other: &Rhs) -> bool1.0.0
This method tests for !=.
impl PartialOrd for Variant[src]
fn partial_cmp(&self, __arg_0: &Variant) -> Option<Ordering>
This method returns an ordering between self and other values if one exists. Read more
fn lt(&self, other: &Rhs) -> bool1.0.0
This method tests less than (for self and other) and is used by the < operator. Read more
fn le(&self, other: &Rhs) -> bool1.0.0
This method tests less than or equal to (for self and other) and is used by the <= operator. Read more
fn gt(&self, other: &Rhs) -> bool1.0.0
This method tests greater than (for self and other) and is used by the > operator. Read more
fn ge(&self, other: &Rhs) -> bool1.0.0
This method tests greater than or equal to (for self and other) and is used by the >= operator. Read more
impl Ord for Variant[src]
fn cmp(&self, __arg_0: &Variant) -> Ordering
This method returns an Ordering between self and other. Read more