def METHOD_NAME(self, backend, params):
    _skip_if_memory_limited(_MEM_LIMIT, params)
    password = params["password"]
    work_factor = int(params["n"])
    block_size = int(params["r"])
    parallelization_factor = int(params["p"])
    length = int(params["length"])
    salt = params["salt"]
    derived_key = params["derived_key"]
    scrypt = Scrypt(
        salt,
        length,
        work_factor,
        block_size,
        parallelization_factor,
        backend,
    )
    scrypt.verify(password, binascii.unhexlify(derived_key))