Quantum Information Processing with Adversarial Devices