Function argon2_sys::argon2_encodedlen[][src]

pub unsafe extern "C" fn argon2_encodedlen(
    t_cost: u32,
    m_cost: u32,
    parallelism: u32,
    saltlen: u32,
    hashlen: u32,
    ty: argon2_type
) -> size_t
Expand description

Returns the encoded hash length for the given input parameters

@param t_cost Number of iterations

@param m_cost Memory usage in kibibytes

@param parallelism Number of threads; used to compute lanes

@param saltlen Salt size in bytes

@param hashlen Hash size in bytes

@param type The argon2_type that we want the encoded length for

@return The encoded hash length in bytes