Simplification of verify_hash