Struct argon2::Params [−][src]
pub struct Params { pub m_cost: u32, pub t_cost: u32, pub p_cost: u32, pub output_size: usize, pub version: Version, }
Expand description
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_size: usize
Size of the output (in bytes)
version: Version
Algorithm version
Implementations
Default memory cost.
Default number of iterations.
Default degree of parallelism.
Default output size.
Trait Implementations
impl<'a> TryFrom<&'a PasswordHash<'a>> for Params
This is supported on crate feature password-hash
only.
impl<'a> TryFrom<&'a PasswordHash<'a>> for Params
This is supported on crate feature
password-hash
only.Auto Trait Implementations
impl RefUnwindSafe for Params
impl UnwindSafe for Params
Blanket Implementations
Mutably borrows from an owned value. Read more
type Output = T
type Output = T
Should always be Self