[−][src]Function argon2::encodedlen
pub fn encodedlen(
t_cost: u32,
m_cost: u32,
parallelism: u32,
saltlen: u32,
hashlen: u32,
variant: Variant
) -> usize
Returns the encoded hash length for the given input parameters.
Parameters
t_cost
: Number of iterations.
m_cost
: Memory usage in kibibytes.
parallelism
: Number of threads; used to compute lanes.
saltlen
: Salt size in bytes.
hashlen
: Hash size in bytes.
variant
: The Argon2 Variant that we want the encoded length for.
Returns
The encoded hash length in bytes.