Struct argon2::Params[][src]

pub struct Params {
    pub m_cost: u32,
    pub t_cost: u32,
    pub p_cost: u32,
    pub output_length: usize,
}
This is supported on crate feature password-hash only.

Argon2 password hash parameters.

These are parameters which can be encoded into a PHC hash string.

Fields

m_cost: u32

Memory size, expressed in kilobytes, between 1 and (2^32)-1.

Value is an integer in decimal (1 to 10 digits).

t_cost: u32

Number of iterations, between 1 and (2^32)-1.

Value is an integer in decimal (1 to 10 digits).

p_cost: u32

Degree of parallelism, between 1 and 255.

Value is an integer in decimal (1 to 3 digits).

output_length: usize

Size of the output (in bytes)

Trait Implementations

impl Clone for Params[src]

impl Copy for Params[src]

impl Debug for Params[src]

impl Default for Params[src]

impl Eq for Params[src]

impl PartialEq<Params> for Params[src]

impl StructuralEq for Params[src]

impl StructuralPartialEq for Params[src]

impl TryFrom<&'_ ParamsString> for Params[src]

type Error = HasherError

The type returned in the event of a conversion error.

Auto Trait Implementations

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> Same<T> for T

type Output = T

Should always be Self

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.