Quantum information in security protocols