Checks if the given password is a match by comparing it to the previously computed and stored hash.
The stored password hash for that user.
The password entered by the user in their login attempt.
Checks if the given password is a match by comparing it to the previously computed and stored hash.