[−][src]Function argon2::verify_ctx
pub fn verify_ctx<C: TryInto<Argon2_Context, Error = Error>>(
context: C,
hash: &[u8],
variant: Variant
) -> Result<(), Error>
Verify if a given password is correct for a given variant of Argon2 hashing.
Parameters
context
: The current Argon2 context.hash
: The password hash to verify. The length of the hash must match the length of the out parameter in context.