Struct argon2::Params [−][src]
pub struct Params { /* fields omitted */ }
Expand description
Argon2 password hash parameters.
These are parameters which can be encoded into a PHC hash string.
Implementations
Default memory cost.
Minimum number of memory blocks.
Maximum number of memory blocks.
Default number of iterations (i.e. “time”).
Minimum number of passes.
Maximum number of passes.
Default degree of parallelism.
Minimum and maximum number of threads (i.e. parallelism).
Minimum and maximum number of threads (i.e. parallelism).
Maximum length of a key ID in bytes.
Maximum length of associated data in bytes.
Default output length.
Minimum digest size in bytes.
Maximum digest size in bytes.
Create new parameters.
Memory size, expressed in kilobytes, between 1 and (2^32)-1.
Value is an integer in decimal (1 to 10 digits).
Number of iterations, between 1 and (2^32)-1.
Value is an integer in decimal (1 to 10 digits).
Degree of parallelism, between 1 and 255.
Value is an integer in decimal (1 to 3 digits).
Key identifier: byte slice between 0 and 8 bytes in length.
Defaults to an empty byte slice.
Note this field is only present as a helper for reading/storing in the PHC hash string format (i.e. it is totally ignored from a cryptographical standpoint).
On top of that, this field is not longer part of the argon2 standard (see: https://github.com/P-H-C/phc-winner-argon2/pull/173), and should not be used for any non-legacy work.
Associated data: byte slice between 0 and 32 bytes in length.
Defaults to an empty byte slice.
This field is not longer part of the argon2 standard (see: https://github.com/P-H-C/phc-winner-argon2/pull/173), and should not be used for any non-legacy work.
Length of the output (in bytes).
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
password-hash
only.Auto Trait Implementations
impl RefUnwindSafe for Params
impl UnwindSafe for Params
Blanket Implementations
Mutably borrows from an owned value. Read more